]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
remove avr-rtems support
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
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
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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
198 fi
199 fi
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
209
210
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+"$@"}
220 fi
221
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."
233 fi
234 exit 1
235 fi
236 fi
237 fi
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
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
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 ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
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/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
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"
318
319
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 ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
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 ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
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 ()
363 {
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
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
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
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
390 fi
391
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/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
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
417
418
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 '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
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; }
441
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
448 }
449
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;;
459 *)
460 ECHO_N='-n';;
461 esac
462
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
469 fi
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'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
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
495 fi
496
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=
504 fi
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
516 '
517 fi
518 as_executable_p=$as_test_x
519
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'"
522
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'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
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`
533
534 #
535 # Initializations.
536 #
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=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
683 AWK
684 SED
685 LN_S
686 LN
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 with_system_zlib
753 enable_as_accelerator_for
754 enable_offload_targets
755 enable_gold
756 enable_ld
757 enable_compressed_debug_sections
758 enable_libquadmath
759 enable_libquadmath_support
760 enable_libada
761 enable_libssp
762 enable_libstdcxx
763 enable_liboffloadmic
764 enable_static_libjava
765 enable_bootstrap
766 with_mpc
767 with_mpc_include
768 with_mpc_lib
769 with_mpfr_dir
770 with_mpfr
771 with_mpfr_include
772 with_mpfr_lib
773 with_gmp_dir
774 with_gmp
775 with_gmp_include
776 with_gmp_lib
777 with_stage1_libs
778 with_stage1_ldflags
779 with_boot_libs
780 with_boot_ldflags
781 with_isl
782 with_isl_include
783 with_isl_lib
784 enable_isl_version_check
785 enable_lto
786 enable_linker_plugin_configure_flags
787 enable_linker_plugin_flags
788 enable_stage1_languages
789 enable_objc_gc
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
798 enable_werror
799 enable_host_shared
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CXX
810 CXXFLAGS
811 CCC
812 build_configargs
813 host_configargs
814 target_configargs
815 AR
816 AS
817 DLLTOOL
818 LD
819 LIPO
820 NM
821 RANLIB
822 STRIP
823 WINDRES
824 WINDMC
825 OBJCOPY
826 OBJDUMP
827 READELF
828 CC_FOR_TARGET
829 CXX_FOR_TARGET
830 GCC_FOR_TARGET
831 GCJ_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
896
897 ac_prev=
898 ac_dashdash=
899 for ac_option
900 do
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
906 fi
907
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
923
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
938
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
943
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1012
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1017
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1047
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1121
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
1495 --disable-isl-version-check
1496 disable check for isl version
1497 --enable-lto enable link time optimization support
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
1509 --enable-vtable-verify Enable vtable verification feature
1510 --enable-serial-[{host,target,build}-]configure
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
1520 --enable-werror enable -Werror in bootstrap stage2 and later
1521 --enable-host-shared build host code as shared libraries
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
1527 --with-system-zlib use installed libz
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
1537 --with-mpfr-include=PATH
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
1547 --with-stage1-libs=LIBS libraries for stage1
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
1553 --with-isl=PATH Specify prefix directory for the installed isl
1554 package. Equivalent to
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
1559 --with-build-sysroot=SYSROOT
1560 use sysroot as the system root during the build
1561 --with-debug-prefix-map='A=B C=D ...'
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
1565 --with-build-time-tools=PATH
1566 use given path to find target tools during the build
1567
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
1593 WINDMC WINDMC for the host
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
1596 READELF READELF for the host
1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
1607 GOC_FOR_TARGET
1608 GOC for the target
1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
1627 READELF_FOR_TARGET
1628 READELF for the target
1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.64
1704
1705 Copyright (C) 2009 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748 fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790 } # ac_fn_cxx_try_compile
1791
1792 # ac_fn_cxx_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836 } # ac_fn_cxx_try_link
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882 } # ac_fn_c_try_link
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by $as_me, which was
1888 generated by GNU Autoconf 2.64. Invocation command line was
1889
1890 $ $0 $@
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1925 done
1926 IFS=$as_save_IFS
1927
1928 } >&5
1929
1930 cat >&5 <<_ACEOF
1931
1932
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1936
1937 _ACEOF
1938
1939
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 esac
1961 case $ac_pass in
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 2)
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
1980 as_fn_append ac_configure_args " '$ac_arg'"
1981 ;;
1982 esac
1983 done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1987
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 cat <<\_ASBOX
1999 ## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##
2002 _ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
2005 (
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
2021 (set) 2>&1 |
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
2024 sed -n \
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
2028 *)
2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030 ;;
2031 esac |
2032 sort
2033 )
2034 echo
2035
2036 cat <<\_ASBOX
2037 ## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##
2040 _ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
2054 ## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##
2057 _ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072 ## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##
2075 _ASBOX
2076 echo
2077 cat confdefs.h
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2083 } >&5
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 exit $exit_status
2087 ' 0
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2092
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2095
2096 $as_echo "/* confdefs.h */" > confdefs.h
2097
2098 # Predefined preprocessor variables.
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134 else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2137 fi
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 do
2140 test "x$ac_site_file" = xNONE && continue
2141 if test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file"
2146 fi
2147 done
2148
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2159 fi
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2164 fi
2165
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2175 set,)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,set)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,);;
2184 *)
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213 esac
2214 fi
2215 done
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 fi
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2226
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241 progname=$0
2242 # if PWD already has a value, it is probably wrong.
2243 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245 # Export original configure arguments for use by sub-configures.
2246 # Quote arguments with shell meta charatcers.
2247 TOPLEVEL_CONFIGURE_ARGUMENTS=
2248 set -- "$progname" "$@"
2249 for ac_arg
2250 do
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260 done
2261 if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263 fi
2264 # Remove the initial space we just introduced and, as these will be
2265 # expanded by make, quote '$'.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
2268
2269 # Find the build, host, and target systems.
2270 ac_aux_dir=
2271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2277 fi
2278 done
2279 done
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
2292
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
2334 esac
2335
2336
2337
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
2341 esac
2342
2343
2344
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
2348 esac
2349
2350
2351
2352
2353 test "$host_noncanonical" = "$target_noncanonical" &&
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
2356 program_transform_name=s,y,y,
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359 $as_echo_n "checking host system type... " >&6; }
2360 if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365 else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368 fi
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372 $as_echo "$ac_cv_host" >&6; }
2373 case $ac_cv_host in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376 esac
2377 host=$ac_cv_host
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_host
2380 shift
2381 host_cpu=$1
2382 host_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 host_os=$*
2387 IFS=$ac_save_IFS
2388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392 $as_echo_n "checking target system type... " >&6; }
2393 if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398 else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405 $as_echo "$ac_cv_target" >&6; }
2406 case $ac_cv_target in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409 esac
2410 target=$ac_cv_target
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_target
2413 shift
2414 target_cpu=$1
2415 target_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 target_os=$*
2420 IFS=$ac_save_IFS
2421 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 # The aliases save the names the user supplied, while $host etc.
2425 # will get canonicalized.
2426 test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
2430
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440
2441
2442
2443 # Get 'install' or 'install-sh' and its variants.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2485 :
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
2504 fi
2505 done
2506 done
2507 ;;
2508 esac
2509
2510 done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2524 fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538 $as_echo_n "checking whether ln works... " >&6; }
2539 if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 rm -f conftestdata_t
2543 echo >conftestdata_f
2544 if ln conftestdata_f conftestdata_t 2>/dev/null
2545 then
2546 acx_cv_prog_LN=ln
2547 else
2548 acx_cv_prog_LN=no
2549 fi
2550 rm -f conftestdata_f conftestdata_t
2551
2552 fi
2553 if test $acx_cv_prog_LN = no; then
2554 LN="cp"
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556 $as_echo "no, using $LN" >&6; }
2557 else
2558 LN="$acx_cv_prog_LN"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2561 fi
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564 $as_echo_n "checking whether ln -s works... " >&6; }
2565 LN_S=$as_ln_s
2566 if test "$LN_S" = "ln -s"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571 $as_echo "no, using $LN_S" >&6; }
2572 fi
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576 if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597 # Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599 case `"$ac_path_SED" --version 2>&1` in
2600 *GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602 *)
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2606 do
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2618 fi
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623 esac
2624
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629 IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 fi
2633 else
2634 ac_cv_path_SED=$SED
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639 $as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2642
2643 for ac_prog in gawk mawk nawk awk
2644 do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 test -n "$AWK" && break
2683 done
2684
2685
2686 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689 # a relative path.
2690 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2692 fi
2693
2694 # Set srcdir to "." if that's what it is.
2695 # This is important for multilib support.
2696 pwd=`${PWDCMD-pwd}`
2697 if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
2699 fi
2700
2701 topsrcdir=$srcpwd
2702
2703 extra_host_args=
2704
2705 ### To add a new directory to the tree, first choose whether it is a target
2706 ### or a host dependent tool. Then put it into the appropriate list
2707 ### (library or tools, host or target), doing a dependency sort.
2708
2709 # Subdirs will be configured in the order listed in build_configdirs,
2710 # configdirs, or target_configdirs; see the serialization section below.
2711
2712 # Dependency sorting is only needed when *configuration* must be done in
2713 # a particular order. In all cases a dependency should be specified in
2714 # the Makefile, whether or not it's implicitly specified here.
2715
2716 # Double entries in build_configdirs, configdirs, or target_configdirs may
2717 # cause circular dependencies and break everything horribly.
2718
2719 # these library is used by various programs built for the build
2720 # environment
2721 #
2722 build_libs="build-libiberty build-libcpp"
2723
2724 # these tools are built for the build environment
2725 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2726
2727 # these libraries are used by various programs built for the host environment
2728 #f
2729 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2730
2731 # these tools are built for the host environment
2732 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733 # know that we are building the simulator.
2734 # binutils, gas and ld appear in that order because it makes sense to run
2735 # "make check" in that particular order.
2736 # If --enable-gold is used, "gold" may replace "ld".
2737 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2738
2739 # libgcj represents the runtime libraries only used by gcj.
2740 libgcj="target-libffi \
2741 target-zlib \
2742 target-libjava"
2743
2744 # these libraries are built for the target environment, and are built after
2745 # the host libraries and the host tools (which may be a cross compiler)
2746 # Note that libiberty is not a target library.
2747 target_libraries="target-libgcc \
2748 target-libbacktrace \
2749 target-libgloss \
2750 target-newlib \
2751 target-libgomp \
2752 target-libcilkrts \
2753 target-liboffloadmic \
2754 target-libatomic \
2755 target-libitm \
2756 target-libstdc++-v3 \
2757 target-libsanitizer \
2758 target-libvtv \
2759 target-libmpx \
2760 target-libssp \
2761 target-libquadmath \
2762 target-libgfortran \
2763 target-boehm-gc \
2764 ${libgcj} \
2765 target-libobjc \
2766 target-libada \
2767 target-libgo"
2768
2769 # these tools are built using the target libraries, and are intended to
2770 # run only in the target environment
2771 #
2772 # note: any program that *uses* libraries that are in the "target_libraries"
2773 # list belongs in this list.
2774 #
2775 target_tools="target-rda"
2776
2777 ################################################################################
2778
2779 ## All tools belong in one of the four categories, and are assigned above
2780 ## We assign ${configdirs} this way to remove all embedded newlines. This
2781 ## is important because configure will choke if they ever get through.
2782 ## ${configdirs} is directories we build using the host tools.
2783 ## ${target_configdirs} is directories we build using the target tools.
2784 configdirs=`echo ${host_libs} ${host_tools}`
2785 target_configdirs=`echo ${target_libraries} ${target_tools}`
2786 build_configdirs=`echo ${build_libs} ${build_tools}`
2787
2788
2789
2790 ################################################################################
2791
2792 srcname="gnu development package"
2793
2794 # This gets set non-empty for some net releases of packages.
2795 appdirs=""
2796
2797 # Define is_cross_compiler to save on calls to 'test'.
2798 is_cross_compiler=
2799 if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
2801 else
2802 is_cross_compiler=yes
2803 fi
2804
2805 # Find the build and target subdir names.
2806
2807 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808 # have matching libraries, they should use host libraries: Makefile.tpl
2809 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810 # However, they still use the build modules, because the corresponding
2811 # host modules (e.g. bison) are only built for the host when bootstrap
2812 # finishes. So:
2813 # - build_subdir is where we find build modules, and never changes.
2814 # - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816 # Prefix 'build-' so this never conflicts with target_subdir.
2817 build_subdir="build-${build_noncanonical}"
2818
2819 # Check whether --with-build-libsubdir was given.
2820 if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
2822 else
2823 build_libsubdir="$build_subdir"
2824 fi
2825
2826 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827 if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830 else
2831 host_subdir=.
2832 fi
2833 # No prefix.
2834 target_subdir=${target_noncanonical}
2835
2836 # Be sure to cover against remnants of an in-tree build.
2837 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 fi
2841
2842 # Skipdirs are removed silently.
2843 skipdirs=
2844 # Noconfigdirs are removed loudly.
2845 noconfigdirs=""
2846
2847 use_gnu_ld=
2848 # Make sure we don't let GNU ld be added if we didn't want it.
2849 if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
2851 noconfigdirs="$noconfigdirs ld gold"
2852 fi
2853
2854 use_gnu_as=
2855 # Make sure we don't let GNU as be added if we didn't want it.
2856 if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
2859 fi
2860
2861 use_included_zlib=
2862
2863 # Check whether --with-system-zlib was given.
2864 if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2866 fi
2867
2868 # Make sure we don't let ZLIB be added if we didn't want it.
2869 if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2872 fi
2873
2874 # some tools are so dependent upon X11 that if we're not building with X,
2875 # it's not even worth trying to configure, much less build, that tool.
2876
2877 case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2879 no)
2880 skipdirs="${skipdirs} tk itcl libgui"
2881 # We won't be able to build gdbtk without X.
2882 enable_gdbtk=no
2883 ;;
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 esac
2886
2887 # Some are only suitable for cross toolchains.
2888 # Remove these if host=target.
2889 cross_only="target-libgloss target-newlib target-opcodes"
2890
2891 case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 esac
2894
2895 # If both --with-headers and --with-libs are specified, default to
2896 # --without-newlib.
2897 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2901 fi
2902 fi
2903
2904 # Recognize --with-newlib/--without-newlib.
2905 case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 esac
2909
2910 # Check whether --enable-as-accelerator-for was given.
2911 if test "${enable_as_accelerator_for+set}" = set; then :
2912 enableval=$enable_as_accelerator_for;
2913 fi
2914
2915
2916 # Check whether --enable-offload-targets was given.
2917 if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2921 fi
2922
2923 else
2924 enable_offload_targets=
2925 fi
2926
2927
2928 # Handle --enable-gold, --enable-ld.
2929 # --disable-gold [--enable-ld]
2930 # Build only ld. Default option.
2931 # --enable-gold [--enable-ld]
2932 # Build both gold and ld. Install gold as "ld.gold", install ld
2933 # as "ld.bfd" and "ld".
2934 # --enable-gold=default [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2936 # install ld as "ld.bfd".
2937 # --enable-gold[=default] --disable-ld
2938 # Build only gold, which is then installed as both "ld.gold" and "ld".
2939 # --enable-gold --enable-ld=default
2940 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941 # and ld.bfd).
2942 # In other words, ld is default
2943 # --enable-gold=default --enable-ld=default
2944 # Error.
2945
2946 default_ld=
2947 # Check whether --enable-gold was given.
2948 if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
2950 else
2951 ENABLE_GOLD=no
2952 fi
2953
2954 case "${ENABLE_GOLD}" in
2955 yes|default)
2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2965 ;;
2966 *)
2967 is_elf=yes
2968 ;;
2969 esac
2970 esac
2971
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
2974 case "${target}" in
2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2980 fi
2981 ENABLE_GOLD=yes
2982 ;;
2983 esac
2984 fi
2985 ;;
2986 no)
2987 ;;
2988 *)
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 ;;
2991 esac
2992
2993 # Check whether --enable-ld was given.
2994 if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996 else
2997 ENABLE_LD=yes
2998 fi
2999
3000
3001 case "${ENABLE_LD}" in
3002 default)
3003 if test x${default_ld} != x; then
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 fi
3006 ;;
3007 yes)
3008 ;;
3009 no)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 fi
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 ;;
3016 *)
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 ;;
3019 esac
3020
3021 # PR gas/19109
3022 # Decide the default method for compressing debug sections.
3023 # Provide a configure time option to override our default.
3024 # Check whether --enable-compressed_debug_sections was given.
3025 if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 fi
3030
3031 else
3032 enable_compressed_debug_sections=
3033 fi
3034
3035
3036 # Configure extra directories which are host specific
3037
3038 case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041 esac
3042
3043 # A target can indicate whether a language isn't supported for some reason.
3044 # Only spaces may be used in this macro; not newlines or tabs.
3045 unsupported_languages=
3046
3047 # Remove more programs from consideration, based on the host or
3048 # target this usually means that a port of the program doesn't
3049 # exist yet.
3050
3051 case "${host}" in
3052 i[3456789]86-*-msdosdjgpp*)
3053 noconfigdirs="$noconfigdirs tcl tk itcl"
3054 ;;
3055 esac
3056
3057
3058 # Check whether --enable-libquadmath was given.
3059 if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061 else
3062 ENABLE_LIBQUADMATH=yes
3063 fi
3064
3065 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3067 fi
3068
3069
3070 # Check whether --enable-libquadmath-support was given.
3071 if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073 else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3075 fi
3076
3077 enable_libquadmath_support=
3078 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3080 fi
3081
3082
3083 # Check whether --enable-libada was given.
3084 if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3086 else
3087 ENABLE_LIBADA=yes
3088 fi
3089
3090 if test "${ENABLE_LIBADA}" != "yes" ; then
3091 noconfigdirs="$noconfigdirs gnattools"
3092 fi
3093
3094 # Check whether --enable-libssp was given.
3095 if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3097 else
3098 ENABLE_LIBSSP=yes
3099 fi
3100
3101
3102 # Check whether --enable-libstdcxx was given.
3103 if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105 else
3106 ENABLE_LIBSTDCXX=default
3107 fi
3108
3109 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111 fi
3112
3113 # If this is accelerator compiler and its target is intelmic we enable
3114 # target liboffloadmic by default. If this is compiler with offloading
3115 # for intelmic we enable host liboffloadmic by default. Otherwise
3116 # liboffloadmic is disabled by default.
3117 # Check whether --enable-liboffloadmic was given.
3118 if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3122 *)
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124 esac
3125 else
3126 if test x"$enable_as_accelerator_for" != x; then
3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 ;;
3132 *)
3133 enable_liboffloadmic=no
3134 ;;
3135 esac
3136 else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 ;;
3142 *)
3143 enable_liboffloadmic=no
3144 ;;
3145 esac
3146 fi
3147 fi
3148
3149
3150
3151 # Save it here so that, even in case of --enable-libgcj, if the Java
3152 # front-end isn't enabled, we still get libgcj disabled.
3153 libgcj_saved=$libgcj
3154 case $enable_libgcj in
3155 yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3160 ;;
3161 no)
3162 # Make sure we get it printed in the list of not supported target libs.
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
3168 ;;
3169 esac
3170
3171 # Check whether --enable-static-libjava was given.
3172 if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174 else
3175 ENABLE_STATIC_LIBJAVA=no
3176 fi
3177
3178 enable_static_libjava=
3179 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3181 fi
3182
3183 if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185 fi
3186
3187
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3190 case "${target}" in
3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3192 ;;
3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3194 ;;
3195 *-*-solaris2* | *-*-hpux11*)
3196 ;;
3197 *-*-darwin* | *-*-aix*)
3198 ;;
3199 nvptx*-*-*)
3200 ;;
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
3205 fi
3206
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222 fi
3223 fi
3224 fi
3225
3226 # Disable libcilkrts on unsupported systems.
3227 if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230 $as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 fi
3243 fi
3244
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 fi
3262 fi
3263
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279 fi
3280 fi
3281 fi
3282
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 fi
3319 fi
3320
3321
3322 # Enable libmpx on supported systems by request.
3323 if test -d ${srcdir}/libmpx; then
3324 if test x$enable_libmpx = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326 $as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 fi
3339 fi
3340
3341
3342
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353 esac
3354
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357 avr-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3363 ;;
3364 rl78-*-*)
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
3374 esac
3375
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 esac
3395 fi
3396
3397 # Disable Fortran for some systems.
3398 case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3402 ;;
3403 esac
3404
3405 # Disable Java if libffi is not supported.
3406 case "${target}" in
3407 aarch64-*-*)
3408 ;;
3409 alpha*-*-*)
3410 ;;
3411 arm*-*-*)
3412 ;;
3413 cris-*-*)
3414 ;;
3415 frv-*-*)
3416 ;;
3417 hppa*-*-linux*)
3418 ;;
3419 hppa*-*-hpux*)
3420 ;;
3421 i?86-*-*)
3422 ;;
3423 ia64*-*-*)
3424 ;;
3425 m32r*-*-*)
3426 ;;
3427 m68k-*-*)
3428 ;;
3429 mips*-*-rtems*)
3430 ;;
3431 mips*-*-linux*)
3432 ;;
3433 powerpc*-*-linux*)
3434 ;;
3435 powerpc-*-darwin*)
3436 ;;
3437 powerpc-*-aix* | rs6000-*-aix*)
3438 ;;
3439 powerpc-*-freebsd*)
3440 ;;
3441 powerpc64-*-freebsd*)
3442 ;;
3443 powerpc*-*-rtems*)
3444 ;;
3445 s390-*-* | s390x-*-*)
3446 ;;
3447 sh-*-* | sh[34]*-*-*)
3448 ;;
3449 sparc*-*-*)
3450 ;;
3451 x86_64-*-*)
3452 ;;
3453 *-*-*)
3454 unsupported_languages="$unsupported_languages java"
3455 ;;
3456 esac
3457
3458 # Disable Java, libgcj or related libraries for some systems.
3459 case "${target}" in
3460 powerpc-*-darwin*)
3461 ;;
3462 i[3456789]86-*-darwin*)
3463 ;;
3464 x86_64-*-darwin[912]*)
3465 ;;
3466 *-*-darwin*)
3467 noconfigdirs="$noconfigdirs ${libgcj}"
3468 ;;
3469 *-*-netware*)
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3471 ;;
3472 *-*-rtems*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 ;;
3475 *-*-tpf*)
3476 noconfigdirs="$noconfigdirs ${libgcj}"
3477 ;;
3478 *-*-uclinux*)
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3480 ;;
3481 *-*-vxworks*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3483 ;;
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 ;;
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 ;;
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs ${libgcj}"
3495 ;;
3496 bfin-*-*)
3497 noconfigdirs="$noconfigdirs target-boehm-gc"
3498 ;;
3499 cris-*-* | crisv32-*-*)
3500 unsupported_languages="$unsupported_languages java"
3501 case "${target}" in
3502 *-*-linux*)
3503 ;;
3504 *) # See PR46792 regarding target-libffi.
3505 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3506 esac
3507 ;;
3508 hppa*64*-*-linux*)
3509 # In this case, it's because the hppa64-linux target is for
3510 # the kernel only at this point and has no libc, and thus no
3511 # headers, crt*.o, etc., all of which are needed by these.
3512 unsupported_languages="$unsupported_languages java"
3513 ;;
3514 hppa*64*-*-hpux*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3516 ;;
3517 hppa*-hp-hpux11*)
3518 ;;
3519 hppa*-*-hpux*)
3520 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3521 # build on HP-UX 10.20.
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ;;
3524 ia64*-*-*vms*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
3527 i[3456789]86-w64-mingw*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3529 ;;
3530 i[3456789]86-*-mingw*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 ;;
3533 x86_64-*-mingw*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3535 ;;
3536 mmix-*-*)
3537 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3538 ;;
3539 powerpc-*-aix*)
3540 # copied from rs6000-*-* entry
3541 noconfigdirs="$noconfigdirs ${libgcj}"
3542 ;;
3543 rs6000-*-aix*)
3544 noconfigdirs="$noconfigdirs ${libgcj}"
3545 ;;
3546 ft32-*-*)
3547 noconfigdirs="$noconfigdirs ${libgcj}"
3548 ;;
3549 *-*-lynxos*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
3551 ;;
3552 esac
3553
3554 # Disable the go frontend on systems where it is known to not work. Please keep
3555 # this in sync with contrib/config-list.mk.
3556 case "${target}" in
3557 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3558 unsupported_languages="$unsupported_languages go"
3559 ;;
3560 esac
3561
3562 # Disable libgo for some systems where it is known to not work.
3563 # For testing, you can easily override this with --enable-libgo.
3564 if test x$enable_libgo = x; then
3565 case "${target}" in
3566 *-*-darwin*)
3567 # PR 46986
3568 noconfigdirs="$noconfigdirs target-libgo"
3569 ;;
3570 *-*-cygwin* | *-*-mingw*)
3571 noconfigdirs="$noconfigdirs target-libgo"
3572 ;;
3573 *-*-aix*)
3574 noconfigdirs="$noconfigdirs target-libgo"
3575 ;;
3576 esac
3577 fi
3578
3579 # Default libgloss CPU subdirectory.
3580 libgloss_dir="$target_cpu"
3581
3582 case "${target}" in
3583 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3584 libgloss_dir=wince
3585 ;;
3586 aarch64*-*-* )
3587 libgloss_dir=aarch64
3588 ;;
3589 arm*-*-*)
3590 libgloss_dir=arm
3591 ;;
3592 cris-*-* | crisv32-*-*)
3593 libgloss_dir=cris
3594 ;;
3595 hppa*-*-*)
3596 libgloss_dir=pa
3597 ;;
3598 i[3456789]86-*-*)
3599 libgloss_dir=i386
3600 ;;
3601 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3602 libgloss_dir=m68hc11
3603 ;;
3604 m68*-*-* | fido-*-*)
3605 libgloss_dir=m68k
3606 ;;
3607 mips*-*-*)
3608 libgloss_dir=mips
3609 ;;
3610 powerpc*-*-*)
3611 libgloss_dir=rs6000
3612 ;;
3613 sparc*-*-*)
3614 libgloss_dir=sparc
3615 ;;
3616 esac
3617
3618 # Disable newlib and libgloss for various target OSes.
3619 case "${target}" in
3620 alpha*-dec-osf*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 i[3456789]86-*-linux*)
3624 # This section makes it possible to build newlib natively on linux.
3625 # If we are using a cross compiler then don't configure newlib.
3626 if test x${is_cross_compiler} != xno ; then
3627 noconfigdirs="$noconfigdirs target-newlib"
3628 fi
3629 noconfigdirs="$noconfigdirs target-libgloss"
3630 # If we are not using a cross compiler, do configure newlib.
3631 # Note however, that newlib will only be configured in this situation
3632 # if the --with-newlib option has been given, because otherwise
3633 # 'target-newlib' will appear in skipdirs.
3634 ;;
3635 i[3456789]86-*-rdos*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 sparc-*-sunos4*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-aix*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 *-*-beos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 *-*-chorusos)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 *-*-dragonfly*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 *-*-freebsd*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-lynxos*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
3665 *-*-mingw*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 *-*-netbsd*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-netware*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 *-*-tpf*)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 ;;
3677 *-*-uclinux*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-vxworks*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 esac
3684
3685 case "${target}" in
3686 *-*-chorusos)
3687 ;;
3688 aarch64-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3691 ;;
3692 arm-*-darwin*)
3693 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3695 ;;
3696 powerpc-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3699 ;;
3700 i[3456789]86-*-darwin*)
3701 noconfigdirs="$noconfigdirs ld gprof"
3702 noconfigdirs="$noconfigdirs sim target-rda"
3703 ;;
3704 x86_64-*-darwin[912]*)
3705 noconfigdirs="$noconfigdirs ld gas gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3707 ;;
3708 *-*-darwin*)
3709 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3710 noconfigdirs="$noconfigdirs sim target-rda"
3711 ;;
3712 *-*-dragonfly*)
3713 ;;
3714 *-*-freebsd*)
3715 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3716 && test -f /usr/local/include/gmp.h; then
3717 with_gmp=/usr/local
3718 fi
3719 ;;
3720 *-*-kaos*)
3721 # Remove unsupported stuff on all kaOS configurations.
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 ;;
3724 *-*-netbsd*)
3725 ;;
3726 *-*-netware*)
3727 ;;
3728 *-*-rtems*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3730 # this is not caught below because this stanza matches earlier
3731 case $target in
3732 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3733 esac
3734 ;;
3735 # The tpf target doesn't support gdb yet.
3736 *-*-tpf*)
3737 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3738 ;;
3739 *-*-uclinux*)
3740 noconfigdirs="$noconfigdirs target-rda"
3741 ;;
3742 *-*-vxworks*)
3743 ;;
3744 alpha*-dec-osf*)
3745 # ld works, but does not support shared libraries.
3746 # gas doesn't generate exception information.
3747 noconfigdirs="$noconfigdirs gas ld"
3748 ;;
3749 alpha*-*-*vms*)
3750 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3751 ;;
3752 alpha*-*-*)
3753 # newlib is not 64 bit ready
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 ;;
3756 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3757 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3758 ;;
3759 arm-*-pe*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 ;;
3762 arm-*-riscix*)
3763 noconfigdirs="$noconfigdirs ld target-libgloss"
3764 ;;
3765 avr-*-*)
3766 if test x${with_avrlibc} != xno; then
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768 fi
3769 ;;
3770 c4x-*-* | tic4x-*-*)
3771 noconfigdirs="$noconfigdirs target-libgloss"
3772 ;;
3773 tic54x-*-*)
3774 noconfigdirs="$noconfigdirs target-libgloss gdb"
3775 ;;
3776 d10v-*-*)
3777 noconfigdirs="$noconfigdirs target-libgloss"
3778 ;;
3779 d30v-*-*)
3780 noconfigdirs="$noconfigdirs gdb"
3781 ;;
3782 fr30-*-elf*)
3783 noconfigdirs="$noconfigdirs gdb"
3784 ;;
3785 ft32-*-*)
3786 noconfigdirs="$noconfigdirs target-rda gprof"
3787 ;;
3788 moxie-*-*)
3789 noconfigdirs="$noconfigdirs"
3790 ;;
3791 h8300*-*-*)
3792 noconfigdirs="$noconfigdirs target-libgloss"
3793 ;;
3794 h8500-*-*)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3796 ;;
3797 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3798 ;;
3799 hppa*64*-*-hpux*)
3800 noconfigdirs="$noconfigdirs gdb"
3801 ;;
3802 hppa*-*-hpux11*)
3803 noconfigdirs="$noconfigdirs gdb ld"
3804 ;;
3805 hppa*64*-*-linux*)
3806 ;;
3807 hppa*-*-linux*)
3808 ;;
3809 hppa*-*-*elf* | \
3810 hppa*-*-lites* | \
3811 hppa*-*-openbsd* | \
3812 hppa*64*-*-*)
3813 ;;
3814 hppa*-*-pro*)
3815 ;;
3816 hppa*-*-*)
3817 noconfigdirs="$noconfigdirs ld"
3818 ;;
3819 i960-*-*)
3820 noconfigdirs="$noconfigdirs gdb"
3821 ;;
3822 ia64*-*-elf*)
3823 # No gdb support yet.
3824 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3825 ;;
3826 ia64*-**-hpux*)
3827 # No ld support yet.
3828 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3829 ;;
3830 ia64*-*-*vms*)
3831 # No ld support yet.
3832 noconfigdirs="$noconfigdirs libgui itcl ld"
3833 ;;
3834 i[3456789]86-w64-mingw*)
3835 ;;
3836 i[3456789]86-*-mingw*)
3837 target_configdirs="$target_configdirs target-winsup"
3838 ;;
3839 *-*-cygwin*)
3840 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3841 noconfigdirs="$noconfigdirs target-libgloss"
3842 # always build newlib if winsup directory is present.
3843 if test -d "$srcdir/winsup/cygwin"; then
3844 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3845 elif test -d "$srcdir/newlib"; then
3846 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3847 fi
3848 ;;
3849 i[3456789]86-*-pe)
3850 noconfigdirs="$noconfigdirs target-libgloss"
3851 ;;
3852 i[3456789]86-*-sco3.2v5*)
3853 # The linker does not yet know about weak symbols in COFF,
3854 # and is not configured to handle mixed ELF and COFF.
3855 noconfigdirs="$noconfigdirs ld target-libgloss"
3856 ;;
3857 i[3456789]86-*-sco*)
3858 noconfigdirs="$noconfigdirs gprof target-libgloss"
3859 ;;
3860 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3861 noconfigdirs="$noconfigdirs target-libgloss"
3862 ;;
3863 i[3456789]86-*-sysv4*)
3864 noconfigdirs="$noconfigdirs target-libgloss"
3865 ;;
3866 i[3456789]86-*-beos*)
3867 noconfigdirs="$noconfigdirs gdb"
3868 ;;
3869 i[3456789]86-*-rdos*)
3870 noconfigdirs="$noconfigdirs gdb"
3871 ;;
3872 mmix-*-*)
3873 noconfigdirs="$noconfigdirs gdb"
3874 ;;
3875 mt-*-*)
3876 noconfigdirs="$noconfigdirs sim"
3877 ;;
3878 powerpc-*-aix*)
3879 # copied from rs6000-*-* entry
3880 noconfigdirs="$noconfigdirs gprof"
3881 ;;
3882 powerpc*-*-winnt* | powerpc*-*-pe*)
3883 target_configdirs="$target_configdirs target-winsup"
3884 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3885 # always build newlib.
3886 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3887 ;;
3888 # This is temporary until we can link against shared libraries
3889 powerpcle-*-solaris*)
3890 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3891 ;;
3892 powerpc-*-beos*)
3893 noconfigdirs="$noconfigdirs gdb"
3894 ;;
3895 rs6000-*-lynxos*)
3896 noconfigdirs="$noconfigdirs gprof"
3897 ;;
3898 rs6000-*-aix*)
3899 noconfigdirs="$noconfigdirs gprof"
3900 ;;
3901 rs6000-*-*)
3902 noconfigdirs="$noconfigdirs gprof"
3903 ;;
3904 m68k-apollo-*)
3905 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3906 ;;
3907 microblaze*)
3908 noconfigdirs="$noconfigdirs gprof"
3909 ;;
3910 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3911 if test x$with_newlib = xyes; then
3912 noconfigdirs="$noconfigdirs gprof"
3913 fi
3914 ;;
3915 mips*-*-irix5*)
3916 noconfigdirs="$noconfigdirs gprof target-libgloss"
3917 ;;
3918 mips*-*-irix6*)
3919 noconfigdirs="$noconfigdirs gprof target-libgloss"
3920 ;;
3921 mips*-*-bsd*)
3922 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3923 ;;
3924 mips*-*-linux*)
3925 ;;
3926 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3927 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3928 noconfigdirs="$noconfigdirs ld gas gprof"
3929 ;;
3930 mips*-*-*)
3931 noconfigdirs="$noconfigdirs gprof"
3932 ;;
3933 nds32*-*-*)
3934 noconfigdirs="$noconfigdirs gdb"
3935 ;;
3936 nvptx*-*-*)
3937 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3938 ;;
3939 or1k*-*-*)
3940 noconfigdirs="$noconfigdirs gdb"
3941 ;;
3942 sh-*-*)
3943 case "${target}" in
3944 sh*-*-elf)
3945 ;;
3946 *)
3947 noconfigdirs="$noconfigdirs target-libgloss" ;;
3948 esac
3949 ;;
3950 sparc-*-sunos4*)
3951 if test x${is_cross_compiler} = xno ; then
3952 use_gnu_ld=no
3953 fi
3954 ;;
3955 tic6x-*-*)
3956 noconfigdirs="$noconfigdirs sim"
3957 ;;
3958 tilepro*-*-* | tilegx*-*-*)
3959 noconfigdirs="$noconfigdirs sim"
3960 ;;
3961 v810-*-*)
3962 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3963 ;;
3964 vax-*-*)
3965 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3966 ;;
3967 esac
3968
3969 # If we aren't building newlib, then don't build libgloss, since libgloss
3970 # depends upon some newlib header files.
3971 case "${noconfigdirs}" in
3972 *target-libgloss*) ;;
3973 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3974 esac
3975
3976 # Work in distributions that contain no compiler tools, like Autoconf.
3977 host_makefile_frag=/dev/null
3978 if test -d ${srcdir}/config ; then
3979 case "${host}" in
3980 i[3456789]86-*-msdosdjgpp*)
3981 host_makefile_frag="config/mh-djgpp"
3982 ;;
3983 *-cygwin*)
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3986 $as_echo_n "checking to see if cat works as expected... " >&6; }
3987 echo a >cygwin-cat-check
3988 if test `cat cygwin-cat-check` = a ; then
3989 rm cygwin-cat-check
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991 $as_echo "yes" >&6; }
3992 else
3993 rm cygwin-cat-check
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 as_fn_error "The cat command does not ignore carriage return characters.
3997 Please either mount the build directory in binary mode or run the following
3998 commands before running any configure script:
3999 set -o igncr
4000 export SHELLOPTS
4001 " "$LINENO" 5
4002 fi
4003
4004 host_makefile_frag="config/mh-cygwin"
4005 ;;
4006 *-mingw*)
4007 host_makefile_frag="config/mh-mingw"
4008 ;;
4009 alpha*-linux*)
4010 host_makefile_frag="config/mh-alpha-linux"
4011 ;;
4012 hppa*-hp-hpux10*)
4013 host_makefile_frag="config/mh-pa-hpux10"
4014 ;;
4015 hppa*-hp-hpux*)
4016 host_makefile_frag="config/mh-pa"
4017 ;;
4018 hppa*-*)
4019 host_makefile_frag="config/mh-pa"
4020 ;;
4021 *-*-darwin*)
4022 host_makefile_frag="config/mh-darwin"
4023 ;;
4024 powerpc-*-aix*)
4025 host_makefile_frag="config/mh-ppc-aix"
4026 ;;
4027 rs6000-*-aix*)
4028 host_makefile_frag="config/mh-ppc-aix"
4029 ;;
4030 esac
4031 fi
4032
4033 if test "${build}" != "${host}" ; then
4034 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4035 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4036 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4037 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4038 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4039 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4040 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4041 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4042 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4043 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4044 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4045 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4046 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4047 else
4048 AR_FOR_BUILD="\$(AR)"
4049 AS_FOR_BUILD="\$(AS)"
4050 CC_FOR_BUILD="\$(CC)"
4051 CXX_FOR_BUILD="\$(CXX)"
4052 GCJ_FOR_BUILD="\$(GCJ)"
4053 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4054 GOC_FOR_BUILD="\$(GOC)"
4055 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4056 LD_FOR_BUILD="\$(LD)"
4057 NM_FOR_BUILD="\$(NM)"
4058 RANLIB_FOR_BUILD="\$(RANLIB)"
4059 WINDRES_FOR_BUILD="\$(WINDRES)"
4060 WINDMC_FOR_BUILD="\$(WINDMC)"
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if test "${ac_cv_prog_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090 done
4091 done
4092 IFS=$as_save_IFS
4093
4094 fi
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$ac_cv_prog_CC"; then
4108 ac_ct_CC=$CC
4109 # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$ac_ct_CC"; then
4117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_ac_ct_CC="gcc"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130 done
4131 done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4139 $as_echo "$ac_ct_CC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4143 fi
4144
4145 if test "x$ac_ct_CC" = x; then
4146 CC=""
4147 else
4148 case $cross_compiling:$ac_tool_warned in
4149 yes:)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4152 ac_tool_warned=yes ;;
4153 esac
4154 CC=$ac_ct_CC
4155 fi
4156 else
4157 CC="$ac_cv_prog_CC"
4158 fi
4159
4160 if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_CC+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_CC="${ac_tool_prefix}cc"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 $as_echo "$CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198
4199 fi
4200 fi
4201 if test -z "$CC"; then
4202 # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_CC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221 ac_prog_rejected=yes
4222 continue
4223 fi
4224 ac_cv_prog_CC="cc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232 if test $ac_prog_rejected = yes; then
4233 # We found a bogon in the path, so make sure we never use it.
4234 set dummy $ac_cv_prog_CC
4235 shift
4236 if test $# != 0; then
4237 # We chose a different compiler from the bogus one.
4238 # However, it has the same basename, so the bogon will be chosen
4239 # first if we set CC to just the basename; use the full file name.
4240 shift
4241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4242 fi
4243 fi
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256 fi
4257 if test -z "$CC"; then
4258 if test -n "$ac_tool_prefix"; then
4259 for ac_prog in cl.exe
4260 do
4261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4262 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if test "${ac_cv_prog_CC+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4295 fi
4296
4297
4298 test -n "$CC" && break
4299 done
4300 fi
4301 if test -z "$CC"; then
4302 ac_ct_CC=$CC
4303 for ac_prog in cl.exe
4304 do
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$ac_ct_CC"; then
4313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_ac_ct_CC="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4333 if test -n "$ac_ct_CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4335 $as_echo "$ac_ct_CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 test -n "$ac_ct_CC" && break
4343 done
4344
4345 if test "x$ac_ct_CC" = x; then
4346 CC=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349 yes:)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4353 esac
4354 CC=$ac_ct_CC
4355 fi
4356 fi
4357
4358 fi
4359
4360
4361 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error "no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details." "$LINENO" 5; }
4365
4366 # Provide some information about the compiler.
4367 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4368 set X $ac_compile
4369 ac_compiler=$2
4370 for ac_option in --version -v -V -qversion; do
4371 { { ac_try="$ac_compiler $ac_option >&5"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4379 ac_status=$?
4380 if test -s conftest.err; then
4381 sed '10a\
4382 ... rest of stderr output deleted ...
4383 10q' conftest.err >conftest.er1
4384 cat conftest.er1 >&5
4385 rm -f conftest.er1 conftest.err
4386 fi
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }
4389 done
4390
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393
4394 int
4395 main ()
4396 {
4397
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 ac_clean_files_save=$ac_clean_files
4403 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4404 # Try to create an executable without -o first, disregard a.out.
4405 # It will help us diagnose broken compilers, and finding out an intuition
4406 # of exeext.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4408 $as_echo_n "checking for C compiler default output file name... " >&6; }
4409 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4410
4411 # The possible output files:
4412 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4413
4414 ac_rmfiles=
4415 for ac_file in $ac_files
4416 do
4417 case $ac_file in
4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4420 esac
4421 done
4422 rm -f $ac_rmfiles
4423
4424 if { { ac_try="$ac_link_default"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link_default") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4438 # so that the user can short-circuit this test for compilers unknown to
4439 # Autoconf.
4440 for ac_file in $ac_files ''
4441 do
4442 test -f "$ac_file" || continue
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4445 ;;
4446 [ab].out )
4447 # We found the default executable, but exeext='' is most
4448 # certainly right.
4449 break;;
4450 *.* )
4451 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4452 then :; else
4453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454 fi
4455 # We set ac_cv_exeext here because the later test for it is not
4456 # safe: cross compilers may not add the suffix if given an `-o'
4457 # argument, so we may need to know it at that point already.
4458 # Even if this section looks crufty: it has the advantage of
4459 # actually working.
4460 break;;
4461 * )
4462 break;;
4463 esac
4464 done
4465 test "$ac_cv_exeext" = no && ac_cv_exeext=
4466
4467 else
4468 ac_file=''
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4471 $as_echo "$ac_file" >&6; }
4472 if test -z "$ac_file"; then :
4473 $as_echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 { as_fn_set_status 77
4479 as_fn_error "C compiler cannot create executables
4480 See \`config.log' for more details." "$LINENO" 5; }; }
4481 fi
4482 ac_exeext=$ac_cv_exeext
4483
4484 # Check that the compiler produces executables we can run. If not, either
4485 # the compiler is broken, or we cross compile.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4487 $as_echo_n "checking whether the C compiler works... " >&6; }
4488 # If not cross compiling, check that we can run a simple program.
4489 if test "$cross_compiling" != yes; then
4490 if { ac_try='./$ac_file'
4491 { { case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497 (eval "$ac_try") 2>&5
4498 ac_status=$?
4499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }; }; then
4501 cross_compiling=no
4502 else
4503 if test "$cross_compiling" = maybe; then
4504 cross_compiling=yes
4505 else
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error "cannot run C compiled programs.
4509 If you meant to cross compile, use \`--host'.
4510 See \`config.log' for more details." "$LINENO" 5; }
4511 fi
4512 fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 $as_echo "yes" >&6; }
4516
4517 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4518 ac_clean_files=$ac_clean_files_save
4519 # Check that the compiler produces executables we can run. If not, either
4520 # the compiler is broken, or we cross compile.
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4522 $as_echo_n "checking whether we are cross compiling... " >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4524 $as_echo "$cross_compiling" >&6; }
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4527 $as_echo_n "checking for suffix of executables... " >&6; }
4528 if { { ac_try="$ac_link"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535 (eval "$ac_link") 2>&5
4536 ac_status=$?
4537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; then :
4539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4541 # work properly (i.e., refer to `conftest.exe'), while it won't with
4542 # `rm'.
4543 for ac_file in conftest.exe conftest conftest.*; do
4544 test -f "$ac_file" || continue
4545 case $ac_file in
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548 break;;
4549 * ) break;;
4550 esac
4551 done
4552 else
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error "cannot compute suffix of executables: cannot compile and link
4556 See \`config.log' for more details." "$LINENO" 5; }
4557 fi
4558 rm -f conftest$ac_cv_exeext
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4560 $as_echo "$ac_cv_exeext" >&6; }
4561
4562 rm -f conftest.$ac_ext
4563 EXEEXT=$ac_cv_exeext
4564 ac_exeext=$EXEEXT
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4566 $as_echo_n "checking for suffix of object files... " >&6; }
4567 if test "${ac_cv_objext+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572
4573 int
4574 main ()
4575 {
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.o conftest.obj
4582 if { { ac_try="$ac_compile"
4583 case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588 $as_echo "$ac_try_echo"; } >&5
4589 (eval "$ac_compile") 2>&5
4590 ac_status=$?
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }; then :
4593 for ac_file in conftest.o conftest.obj conftest.*; do
4594 test -f "$ac_file" || continue;
4595 case $ac_file in
4596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4598 break;;
4599 esac
4600 done
4601 else
4602 $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error "cannot compute suffix of object files: cannot compile
4608 See \`config.log' for more details." "$LINENO" 5; }
4609 fi
4610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4613 $as_echo "$ac_cv_objext" >&6; }
4614 OBJEXT=$ac_cv_objext
4615 ac_objext=$OBJEXT
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4618 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623
4624 int
4625 main ()
4626 {
4627 #ifndef __GNUC__
4628 choke me
4629 #endif
4630
4631 ;
4632 return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_compiler_gnu=yes
4637 else
4638 ac_compiler_gnu=no
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4642
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4646 if test $ac_compiler_gnu = yes; then
4647 GCC=yes
4648 else
4649 GCC=
4650 fi
4651 ac_test_CFLAGS=${CFLAGS+set}
4652 ac_save_CFLAGS=$CFLAGS
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4655 if test "${ac_cv_prog_cc_g+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 ac_save_c_werror_flag=$ac_c_werror_flag
4659 ac_c_werror_flag=yes
4660 ac_cv_prog_cc_g=no
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main ()
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675 else
4676 CFLAGS=""
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689
4690 else
4691 ac_c_werror_flag=$ac_save_c_werror_flag
4692 CFLAGS="-g"
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695
4696 int
4697 main ()
4698 {
4699
4700 ;
4701 return 0;
4702 }
4703 _ACEOF
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_prog_cc_g=yes
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_c_werror_flag=$ac_save_c_werror_flag
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4715 $as_echo "$ac_cv_prog_cc_g" >&6; }
4716 if test "$ac_test_CFLAGS" = set; then
4717 CFLAGS=$ac_save_CFLAGS
4718 elif test $ac_cv_prog_cc_g = yes; then
4719 if test "$GCC" = yes; then
4720 CFLAGS="-g -O2"
4721 else
4722 CFLAGS="-g"
4723 fi
4724 else
4725 if test "$GCC" = yes; then
4726 CFLAGS="-O2"
4727 else
4728 CFLAGS=
4729 fi
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4733 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 ac_cv_prog_cc_c89=no
4737 ac_save_CC=$CC
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <stdarg.h>
4741 #include <stdio.h>
4742 #include <sys/types.h>
4743 #include <sys/stat.h>
4744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4745 struct buf { int x; };
4746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4747 static char *e (p, i)
4748 char **p;
4749 int i;
4750 {
4751 return p[i];
4752 }
4753 static char *f (char * (*g) (char **, int), char **p, ...)
4754 {
4755 char *s;
4756 va_list v;
4757 va_start (v,p);
4758 s = g (p, va_arg (v,int));
4759 va_end (v);
4760 return s;
4761 }
4762
4763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4764 function prototypes and stuff, but not '\xHH' hex character constants.
4765 These don't provoke an error unfortunately, instead are silently treated
4766 as 'x'. The following induces an error, until -std is added to get
4767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4768 array size at least. It's necessary to write '\x00'==0 to get something
4769 that's true only with -std. */
4770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4771
4772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4773 inside strings and character constants. */
4774 #define FOO(x) 'x'
4775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4776
4777 int test (int i, double x);
4778 struct s1 {int (*f) (int a);};
4779 struct s2 {int (*f) (double a);};
4780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4781 int argc;
4782 char **argv;
4783 int
4784 main ()
4785 {
4786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4793 do
4794 CC="$ac_save_CC $ac_arg"
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 ac_cv_prog_cc_c89=$ac_arg
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext
4799 test "x$ac_cv_prog_cc_c89" != "xno" && break
4800 done
4801 rm -f conftest.$ac_ext
4802 CC=$ac_save_CC
4803
4804 fi
4805 # AC_CACHE_VAL
4806 case "x$ac_cv_prog_cc_c89" in
4807 x)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4809 $as_echo "none needed" >&6; } ;;
4810 xno)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4812 $as_echo "unsupported" >&6; } ;;
4813 *)
4814 CC="$CC $ac_cv_prog_cc_c89"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4816 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4817 esac
4818 if test "x$ac_cv_prog_cc_c89" != xno; then :
4819
4820 fi
4821
4822 ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
4828 ac_ext=cpp
4829 ac_cpp='$CXXCPP $CPPFLAGS'
4830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4833 if test -z "$CXX"; then
4834 if test -n "$CCC"; then
4835 CXX=$CCC
4836 else
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if test "${ac_cv_prog_CXX+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$CXX"; then
4848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 CXX=$ac_cv_prog_CXX
4868 if test -n "$CXX"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4870 $as_echo "$CXX" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 test -n "$CXX" && break
4878 done
4879 fi
4880 if test -z "$CXX"; then
4881 ac_ct_CXX=$CXX
4882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4883 do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$ac_ct_CXX"; then
4892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_ac_ct_CXX="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4912 if test -n "$ac_ct_CXX"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4914 $as_echo "$ac_ct_CXX" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 test -n "$ac_ct_CXX" && break
4922 done
4923
4924 if test "x$ac_ct_CXX" = x; then
4925 CXX="g++"
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928 yes:)
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931 ac_tool_warned=yes ;;
4932 esac
4933 CXX=$ac_ct_CXX
4934 fi
4935 fi
4936
4937 fi
4938 fi
4939 # Provide some information about the compiler.
4940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4941 set X $ac_compile
4942 ac_compiler=$2
4943 for ac_option in --version -v -V -qversion; do
4944 { { ac_try="$ac_compiler $ac_option >&5"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950 $as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4952 ac_status=$?
4953 if test -s conftest.err; then
4954 sed '10a\
4955 ... rest of stderr output deleted ...
4956 10q' conftest.err >conftest.er1
4957 cat conftest.er1 >&5
4958 rm -f conftest.er1 conftest.err
4959 fi
4960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }
4962 done
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4965 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4966 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971
4972 int
4973 main ()
4974 {
4975 #ifndef __GNUC__
4976 choke me
4977 #endif
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 if ac_fn_cxx_try_compile "$LINENO"; then :
4984 ac_compiler_gnu=yes
4985 else
4986 ac_compiler_gnu=no
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4990
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4993 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4994 if test $ac_compiler_gnu = yes; then
4995 GXX=yes
4996 else
4997 GXX=
4998 fi
4999 ac_test_CXXFLAGS=${CXXFLAGS+set}
5000 ac_save_CXXFLAGS=$CXXFLAGS
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5002 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5003 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5007 ac_cxx_werror_flag=yes
5008 ac_cv_prog_cxx_g=no
5009 CXXFLAGS="-g"
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012
5013 int
5014 main ()
5015 {
5016
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 if ac_fn_cxx_try_compile "$LINENO"; then :
5022 ac_cv_prog_cxx_g=yes
5023 else
5024 CXXFLAGS=""
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027
5028 int
5029 main ()
5030 {
5031
5032 ;
5033 return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_cxx_try_compile "$LINENO"; then :
5037
5038 else
5039 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5040 CXXFLAGS="-g"
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043
5044 int
5045 main ()
5046 {
5047
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 if ac_fn_cxx_try_compile "$LINENO"; then :
5053 ac_cv_prog_cxx_g=yes
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5063 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5064 if test "$ac_test_CXXFLAGS" = set; then
5065 CXXFLAGS=$ac_save_CXXFLAGS
5066 elif test $ac_cv_prog_cxx_g = yes; then
5067 if test "$GXX" = yes; then
5068 CXXFLAGS="-g -O2"
5069 else
5070 CXXFLAGS="-g"
5071 fi
5072 else
5073 if test "$GXX" = yes; then
5074 CXXFLAGS="-O2"
5075 else
5076 CXXFLAGS=
5077 fi
5078 fi
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086 # We must set the default linker to the linker used by gcc for the correct
5087 # operation of libtool. If LD is not defined and we are using gcc, try to
5088 # set the LD default to the ld used by gcc.
5089 if test -z "$LD"; then
5090 if test "$GCC" = yes; then
5091 case $build in
5092 *-*-mingw*)
5093 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5094 *)
5095 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5096 esac
5097 case $gcc_prog_ld in
5098 # Accept absolute paths.
5099 [\\/]* | [A-Za-z]:[\\/]*)
5100 LD="$gcc_prog_ld" ;;
5101 esac
5102 fi
5103 fi
5104
5105 # Check whether -static-libstdc++ -static-libgcc is supported.
5106 have_static_libs=no
5107 if test "$GCC" = yes; then
5108 saved_LDFLAGS="$LDFLAGS"
5109
5110 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5112 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118
5119
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122
5123 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5124 #error -static-libstdc++ not implemented
5125 #endif
5126 int main() {}
5127 _ACEOF
5128 if ac_fn_cxx_try_link "$LINENO"; then :
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5130 $as_echo "yes" >&6; }; have_static_libs=yes
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142
5143
5144 LDFLAGS="$saved_LDFLAGS"
5145 fi
5146
5147
5148
5149
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5152 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$GNATBIND"; then
5159 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 GNATBIND=$ac_cv_prog_GNATBIND
5179 if test -n "$GNATBIND"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5181 $as_echo "$GNATBIND" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188 fi
5189 if test -z "$ac_cv_prog_GNATBIND"; then
5190 ac_ct_GNATBIND=$GNATBIND
5191 # Extract the first word of "gnatbind", so it can be a program name with args.
5192 set dummy gnatbind; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$ac_ct_GNATBIND"; then
5199 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5219 if test -n "$ac_ct_GNATBIND"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5221 $as_echo "$ac_ct_GNATBIND" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227 if test "x$ac_ct_GNATBIND" = x; then
5228 GNATBIND="no"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231 yes:)
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5234 ac_tool_warned=yes ;;
5235 esac
5236 GNATBIND=$ac_ct_GNATBIND
5237 fi
5238 else
5239 GNATBIND="$ac_cv_prog_GNATBIND"
5240 fi
5241
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$GNATMAKE"; then
5251 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5255 do
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5263 fi
5264 done
5265 done
5266 IFS=$as_save_IFS
5267
5268 fi
5269 fi
5270 GNATMAKE=$ac_cv_prog_GNATMAKE
5271 if test -n "$GNATMAKE"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5273 $as_echo "$GNATMAKE" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5277 fi
5278
5279
5280 fi
5281 if test -z "$ac_cv_prog_GNATMAKE"; then
5282 ac_ct_GNATMAKE=$GNATMAKE
5283 # Extract the first word of "gnatmake", so it can be a program name with args.
5284 set dummy gnatmake; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$ac_ct_GNATMAKE"; then
5291 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5303 fi
5304 done
5305 done
5306 IFS=$as_save_IFS
5307
5308 fi
5309 fi
5310 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5311 if test -n "$ac_ct_GNATMAKE"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5313 $as_echo "$ac_ct_GNATMAKE" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5317 fi
5318
5319 if test "x$ac_ct_GNATMAKE" = x; then
5320 GNATMAKE="no"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323 yes:)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5327 esac
5328 GNATMAKE=$ac_ct_GNATMAKE
5329 fi
5330 else
5331 GNATMAKE="$ac_cv_prog_GNATMAKE"
5332 fi
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5335 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5336 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 cat >conftest.adb <<EOF
5340 procedure conftest is begin null; end conftest;
5341 EOF
5342 acx_cv_cc_gcc_supports_ada=no
5343 # There is a bug in old released versions of GCC which causes the
5344 # driver to exit successfully when the appropriate language module
5345 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5346 # Therefore we must check for the error message as well as an
5347 # unsuccessful exit.
5348 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5349 # given a .adb file, but produce no object file. So we must check
5350 # if an object file was really produced to guard against this.
5351 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5352 if test x"$errors" = x && test -f conftest.$ac_objext; then
5353 acx_cv_cc_gcc_supports_ada=yes
5354 fi
5355 rm -f conftest.*
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5358 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5359
5360 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5361 have_gnat=yes
5362 else
5363 have_gnat=no
5364 fi
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5367 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5368 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 echo abfoo >t1
5372 echo cdfoo >t2
5373 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5374 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5375 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5376 :
5377 else
5378 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5379 fi
5380 fi
5381 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5382 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5383 :
5384 else
5385 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5386 fi
5387 fi
5388 rm t1 t2
5389
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5392 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5393 do_compare="$gcc_cv_prog_cmp_skip"
5394
5395
5396
5397 # Check whether --enable-bootstrap was given.
5398 if test "${enable_bootstrap+set}" = set; then :
5399 enableval=$enable_bootstrap;
5400 else
5401 enable_bootstrap=default
5402 fi
5403
5404
5405 # Issue errors and warnings for invalid/strange bootstrap combinations.
5406 if test -r $srcdir/gcc/configure; then
5407 have_compiler=yes
5408 else
5409 have_compiler=no
5410 fi
5411
5412 case "$have_compiler:$host:$target:$enable_bootstrap" in
5413 *:*:*:no) ;;
5414
5415 # Default behavior. Enable bootstrap if we have a compiler
5416 # and we are in a native configuration.
5417 yes:$build:$build:default)
5418 enable_bootstrap=yes ;;
5419
5420 *:*:*:default)
5421 enable_bootstrap=no ;;
5422
5423 # We have a compiler and we are in a native configuration, bootstrap is ok
5424 yes:$build:$build:yes)
5425 ;;
5426
5427 # Other configurations, but we have a compiler. Assume the user knows
5428 # what he's doing.
5429 yes:*:*:yes)
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5431 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5432 ;;
5433
5434 # No compiler: if they passed --enable-bootstrap explicitly, fail
5435 no:*:*:yes)
5436 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5437
5438 # Fail if wrong command line
5439 *)
5440 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5441 ;;
5442 esac
5443
5444 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5445 # C++98 compiler can still start the bootstrap.
5446 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5447 CXX="$CXX -std=gnu++98"
5448 fi
5449
5450 # Used for setting $lt_cv_objdir
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5452 $as_echo_n "checking for objdir... " >&6; }
5453 if test "${lt_cv_objdir+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 rm -f .libs 2>/dev/null
5457 mkdir .libs 2>/dev/null
5458 if test -d .libs; then
5459 lt_cv_objdir=.libs
5460 else
5461 # MS-DOS does not allow filenames that begin with a dot.
5462 lt_cv_objdir=_libs
5463 fi
5464 rmdir .libs 2>/dev/null
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5467 $as_echo "$lt_cv_objdir" >&6; }
5468 objdir=$lt_cv_objdir
5469
5470
5471
5472
5473
5474 cat >>confdefs.h <<_ACEOF
5475 #define LT_OBJDIR "$lt_cv_objdir/"
5476 _ACEOF
5477
5478
5479
5480 # Check for GMP, MPFR and MPC
5481 gmplibs="-lmpc -lmpfr -lgmp"
5482 gmpinc=
5483 have_gmp=no
5484
5485 # Specify a location for mpc
5486 # check for this first so it ends up on the link line before mpfr.
5487
5488 # Check whether --with-mpc was given.
5489 if test "${with_mpc+set}" = set; then :
5490 withval=$with_mpc;
5491 fi
5492
5493
5494 # Check whether --with-mpc-include was given.
5495 if test "${with_mpc_include+set}" = set; then :
5496 withval=$with_mpc_include;
5497 fi
5498
5499
5500 # Check whether --with-mpc-lib was given.
5501 if test "${with_mpc_lib+set}" = set; then :
5502 withval=$with_mpc_lib;
5503 fi
5504
5505
5506 if test "x$with_mpc" != x; then
5507 gmplibs="-L$with_mpc/lib $gmplibs"
5508 gmpinc="-I$with_mpc/include $gmpinc"
5509 fi
5510 if test "x$with_mpc_include" != x; then
5511 gmpinc="-I$with_mpc_include $gmpinc"
5512 fi
5513 if test "x$with_mpc_lib" != x; then
5514 gmplibs="-L$with_mpc_lib $gmplibs"
5515 fi
5516 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5517 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5518 gmpinc='-I$$s/mpc/src '"$gmpinc"
5519 # Do not test the mpc version. Assume that it is sufficient, since
5520 # it is in the source tree, and the library has not been built yet
5521 # but it would be included on the link line in the version check below
5522 # hence making the test fail.
5523 have_gmp=yes
5524 fi
5525
5526 # Specify a location for mpfr
5527 # check for this first so it ends up on the link line before gmp.
5528
5529 # Check whether --with-mpfr-dir was given.
5530 if test "${with_mpfr_dir+set}" = set; then :
5531 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5532 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5533 fi
5534
5535
5536
5537 # Check whether --with-mpfr was given.
5538 if test "${with_mpfr+set}" = set; then :
5539 withval=$with_mpfr;
5540 fi
5541
5542
5543 # Check whether --with-mpfr-include was given.
5544 if test "${with_mpfr_include+set}" = set; then :
5545 withval=$with_mpfr_include;
5546 fi
5547
5548
5549 # Check whether --with-mpfr-lib was given.
5550 if test "${with_mpfr_lib+set}" = set; then :
5551 withval=$with_mpfr_lib;
5552 fi
5553
5554
5555 if test "x$with_mpfr" != x; then
5556 gmplibs="-L$with_mpfr/lib $gmplibs"
5557 gmpinc="-I$with_mpfr/include $gmpinc"
5558 fi
5559 if test "x$with_mpfr_include" != x; then
5560 gmpinc="-I$with_mpfr_include $gmpinc"
5561 fi
5562 if test "x$with_mpfr_lib" != x; then
5563 gmplibs="-L$with_mpfr_lib $gmplibs"
5564 fi
5565 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5566 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5567 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5568 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5569 # Do not test the mpfr version. Assume that it is sufficient, since
5570 # it is in the source tree, and the library has not been built yet
5571 # but it would be included on the link line in the version check below
5572 # hence making the test fail.
5573 have_gmp=yes
5574 fi
5575
5576 # Specify a location for gmp
5577
5578 # Check whether --with-gmp-dir was given.
5579 if test "${with_gmp_dir+set}" = set; then :
5580 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5581 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5582 fi
5583
5584
5585
5586 # Check whether --with-gmp was given.
5587 if test "${with_gmp+set}" = set; then :
5588 withval=$with_gmp;
5589 fi
5590
5591
5592 # Check whether --with-gmp-include was given.
5593 if test "${with_gmp_include+set}" = set; then :
5594 withval=$with_gmp_include;
5595 fi
5596
5597
5598 # Check whether --with-gmp-lib was given.
5599 if test "${with_gmp_lib+set}" = set; then :
5600 withval=$with_gmp_lib;
5601 fi
5602
5603
5604
5605 if test "x$with_gmp" != x; then
5606 gmplibs="-L$with_gmp/lib $gmplibs"
5607 gmpinc="-I$with_gmp/include $gmpinc"
5608 fi
5609 if test "x$with_gmp_include" != x; then
5610 gmpinc="-I$with_gmp_include $gmpinc"
5611 fi
5612 if test "x$with_gmp_lib" != x; then
5613 gmplibs="-L$with_gmp_lib $gmplibs"
5614 fi
5615 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5616 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5617 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5618 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5619 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5620 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5621 # Do not test the gmp version. Assume that it is sufficient, since
5622 # it is in the source tree, and the library has not been built yet
5623 # but it would be included on the link line in the version check below
5624 # hence making the test fail.
5625 have_gmp=yes
5626 fi
5627
5628 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5629 have_gmp=yes
5630 saved_CFLAGS="$CFLAGS"
5631 CFLAGS="$CFLAGS $gmpinc"
5632 # Check for the recommended and required versions of GMP.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5634 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5635
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include "gmp.h"
5639 int
5640 main ()
5641 {
5642
5643 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5644 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5645 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5646 choke me
5647 #endif
5648
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <gmp.h>
5657 int
5658 main ()
5659 {
5660
5661 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5662 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5663 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5664 choke me
5665 #endif
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5673 $as_echo "yes" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5676 $as_echo "buggy but acceptable" >&6; }
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }; have_gmp=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684
5685 # If we have GMP, check the MPFR version.
5686 if test x"$have_gmp" = xyes; then
5687 # Check for the recommended and required versions of MPFR.
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5689 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <gmp.h>
5693 #include <mpfr.h>
5694 int
5695 main ()
5696 {
5697
5698 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5699 choke me
5700 #endif
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <gmp.h>
5710 #include <mpfr.h>
5711 int
5712 main ()
5713 {
5714
5715 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5716 choke me
5717 #endif
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5728 $as_echo "buggy but acceptable" >&6; }
5729 fi
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }; have_gmp=no
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 fi
5737
5738 # Check for the MPC header version.
5739 if test x"$have_gmp" = xyes ; then
5740 # Check for the recommended and required versions of MPC.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5742 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <mpc.h>
5746 int
5747 main ()
5748 {
5749
5750 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5751 choke me
5752 #endif
5753
5754 ;
5755 return 0;
5756 }
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <mpc.h>
5762 int
5763 main ()
5764 {
5765
5766 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5767 choke me
5768 #endif
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776 $as_echo "yes" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5779 $as_echo "buggy but acceptable" >&6; }
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }; have_gmp=no
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 fi
5788
5789 # Now check the MPFR library.
5790 if test x"$have_gmp" = xyes; then
5791 saved_LIBS="$LIBS"
5792 LIBS="$LIBS $gmplibs"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5794 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <mpc.h>
5798 int
5799 main ()
5800 {
5801
5802 mpfr_t n;
5803 mpfr_t x;
5804 mpc_t c;
5805 int t;
5806 mpfr_init (n);
5807 mpfr_init (x);
5808 mpfr_atan2 (n, n, x, GMP_RNDN);
5809 mpfr_erfc (n, x, GMP_RNDN);
5810 mpfr_subnormalize (x, t, GMP_RNDN);
5811 mpfr_clear(n);
5812 mpfr_clear(x);
5813 mpc_init2 (c, 53);
5814 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5815 mpc_cosh (c, c, MPC_RNDNN);
5816 mpc_pow (c, c, c, MPC_RNDNN);
5817 mpc_acosh (c, c, MPC_RNDNN);
5818 mpc_clear (c);
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_link "$LINENO"; then :
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5826 $as_echo "yes" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }; have_gmp=no
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
5833 LIBS="$saved_LIBS"
5834 fi
5835
5836 CFLAGS="$saved_CFLAGS"
5837
5838 # The library versions listed in the error message below should match
5839 # the HARD-minimums enforced above.
5840 if test x$have_gmp != xyes; then
5841 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5842 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5843 their locations. Source code for these libraries can be found at
5844 their respective hosting sites as well as at
5845 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5846 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5847 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5848 make sure that you have installed both the libraries and the header
5849 files. They may be located in separate packages." "$LINENO" 5
5850 fi
5851 fi
5852
5853 # Flags needed for both GMP, MPFR and/or MPC.
5854
5855
5856
5857
5858
5859
5860
5861 # Libraries to use for stage1 or when not bootstrapping.
5862
5863 # Check whether --with-stage1-libs was given.
5864 if test "${with_stage1_libs+set}" = set; then :
5865 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5866 stage1_libs=
5867 else
5868 stage1_libs=$withval
5869 fi
5870 else
5871 stage1_libs=
5872 fi
5873
5874
5875
5876 # Linker flags to use for stage1 or when not bootstrapping.
5877
5878 # Check whether --with-stage1-ldflags was given.
5879 if test "${with_stage1_ldflags+set}" = set; then :
5880 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5881 stage1_ldflags=
5882 else
5883 stage1_ldflags=$withval
5884 fi
5885 else
5886 stage1_ldflags=
5887 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5888 # if supported. But if the user explicitly specified the libraries to use,
5889 # trust that they are doing what they want.
5890 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5891 stage1_ldflags="-static-libstdc++ -static-libgcc"
5892 fi
5893 fi
5894
5895
5896
5897 # Libraries to use for stage2 and later builds.
5898
5899 # Check whether --with-boot-libs was given.
5900 if test "${with_boot_libs+set}" = set; then :
5901 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5902 poststage1_libs=
5903 else
5904 poststage1_libs=$withval
5905 fi
5906 else
5907 poststage1_libs=
5908 fi
5909
5910
5911
5912 # Linker flags to use for stage2 and later builds.
5913
5914 # Check whether --with-boot-ldflags was given.
5915 if test "${with_boot_ldflags+set}" = set; then :
5916 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5917 poststage1_ldflags=
5918 else
5919 poststage1_ldflags=$withval
5920 fi
5921 else
5922 poststage1_ldflags=
5923 # In stages 2 and 3, default to linking libstdc++ and libgcc
5924 # statically. But if the user explicitly specified the libraries to
5925 # use, trust that they are doing what they want.
5926 if test "$poststage1_libs" = ""; then
5927 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5928 fi
5929 fi
5930
5931
5932
5933 # GCC GRAPHITE dependency isl.
5934 # Basic setup is inlined here, actual checks are in config/isl.m4
5935
5936
5937 # Check whether --with-isl was given.
5938 if test "${with_isl+set}" = set; then :
5939 withval=$with_isl;
5940 fi
5941
5942
5943 # Treat --without-isl as a request to disable
5944 # GRAPHITE support and skip all following checks.
5945 if test "x$with_isl" != "xno"; then
5946 # Check for isl
5947
5948
5949 # Check whether --with-isl-include was given.
5950 if test "${with_isl_include+set}" = set; then :
5951 withval=$with_isl_include;
5952 fi
5953
5954
5955 # Check whether --with-isl-lib was given.
5956 if test "${with_isl_lib+set}" = set; then :
5957 withval=$with_isl_lib;
5958 fi
5959
5960
5961 # Check whether --enable-isl-version-check was given.
5962 if test "${enable_isl_version_check+set}" = set; then :
5963 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5964 else
5965 ENABLE_ISL_CHECK=yes
5966 fi
5967
5968
5969 # Initialize isllibs and islinc.
5970 case $with_isl in
5971 no)
5972 isllibs=
5973 islinc=
5974 ;;
5975 "" | yes)
5976 ;;
5977 *)
5978 isllibs="-L$with_isl/lib"
5979 islinc="-I$with_isl/include"
5980 ;;
5981 esac
5982 if test "x${with_isl_include}" != x ; then
5983 islinc="-I$with_isl_include"
5984 fi
5985 if test "x${with_isl_lib}" != x; then
5986 isllibs="-L$with_isl_lib"
5987 fi
5988 if test "x${islinc}" = x && test "x${isllibs}" = x \
5989 && test -d ${srcdir}/isl; then
5990 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5991 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5992 ENABLE_ISL_CHECK=no
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5994 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5995 fi
5996
5997 isllibs="${isllibs} -lisl"
5998
5999
6000
6001 if test "${ENABLE_ISL_CHECK}" = yes ; then
6002 _isl_saved_CFLAGS=$CFLAGS
6003 _isl_saved_LDFLAGS=$LDFLAGS
6004 _isl_saved_LIBS=$LIBS
6005
6006 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6007 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6008 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6011 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <isl/ctx.h>
6015 int
6016 main ()
6017 {
6018 isl_ctx_get_max_operations (isl_ctx_alloc ());
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 gcc_cv_isl=yes
6025 else
6026 gcc_cv_isl=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6031 $as_echo "$gcc_cv_isl" >&6; }
6032
6033 if test "${gcc_cv_isl}" = no ; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6035 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6036 fi
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6039 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <isl/schedule.h>
6043 int
6044 main ()
6045 {
6046 isl_options_set_schedule_serialize_sccs (NULL, 0);
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 if ac_fn_c_try_link "$LINENO"; then :
6052 ac_has_isl_options_set_schedule_serialize_sccs=yes
6053 else
6054 ac_has_isl_options_set_schedule_serialize_sccs=no
6055 fi
6056 rm -f core conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6059 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6060
6061 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6062 islver="0.15"
6063
6064 fi
6065
6066 CFLAGS=$_isl_saved_CFLAGS
6067 LDFLAGS=$_isl_saved_LDFLAGS
6068 LIBS=$_isl_saved_LIBS
6069 fi
6070
6071
6072
6073
6074
6075
6076 if test "x${with_isl}" = xno; then
6077 graphite_requested=no
6078 elif test "x${with_isl}" != x \
6079 || test "x${with_isl_include}" != x \
6080 || test "x${with_isl_lib}" != x ; then
6081 graphite_requested=yes
6082 else
6083 graphite_requested=no
6084 fi
6085
6086
6087
6088 if test "${gcc_cv_isl}" = no ; then
6089 isllibs=
6090 islinc=
6091 fi
6092
6093 if test "${graphite_requested}" = yes \
6094 && test "x${isllibs}" = x \
6095 && test "x${islinc}" = x ; then
6096
6097 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6098 fi
6099
6100
6101 fi
6102
6103 # If the isl check failed, disable builds of in-tree variant of isl
6104 if test "x$with_isl" = xno ||
6105 test "x$gcc_cv_isl" = xno; then
6106 noconfigdirs="$noconfigdirs isl"
6107 islinc=
6108 fi
6109
6110
6111
6112
6113 # Check for LTO support.
6114 # Check whether --enable-lto was given.
6115 if test "${enable_lto+set}" = set; then :
6116 enableval=$enable_lto; enable_lto=$enableval
6117 else
6118 enable_lto=yes; default_enable_lto=yes
6119 fi
6120
6121
6122
6123
6124
6125 target_elf=no
6126 case $target in
6127 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6128 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6129 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6130 nvptx-*-none)
6131 target_elf=no
6132 ;;
6133 *)
6134 target_elf=yes
6135 ;;
6136 esac
6137
6138 if test $target_elf = yes; then :
6139 # ELF platforms build the lto-plugin always.
6140 build_lto_plugin=yes
6141
6142 else
6143 if test x"$default_enable_lto" = x"yes" ; then
6144 case $target in
6145 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6146 # On other non-ELF platforms, LTO has yet to be validated.
6147 *) enable_lto=no ;;
6148 esac
6149 else
6150 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6151 # It would also be nice to check the binutils support, but we don't
6152 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6153 # warn during gcc/ subconfigure; unless you're bootstrapping with
6154 # -flto it won't be needed until after installation anyway.
6155 case $target in
6156 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6157 *) if test x"$enable_lto" = x"yes"; then
6158 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6159 fi
6160 ;;
6161 esac
6162 fi
6163 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6164 # Build it unless LTO was explicitly disabled.
6165 case $target in
6166 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6167 *) ;;
6168 esac
6169
6170 fi
6171
6172
6173 # Check whether --enable-linker-plugin-configure-flags was given.
6174 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6175 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6176 else
6177 extra_linker_plugin_configure_flags=
6178 fi
6179
6180
6181 # Check whether --enable-linker-plugin-flags was given.
6182 if test "${enable_linker_plugin_flags+set}" = set; then :
6183 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6184 else
6185 extra_linker_plugin_flags=
6186 fi
6187
6188
6189
6190
6191 # By default, C and C++ are the only stage 1 languages.
6192 stage1_languages=,c,
6193
6194 # Target libraries that we bootstrap.
6195 bootstrap_target_libs=,target-libgcc,
6196
6197 # Figure out what language subdirectories are present.
6198 # Look if the user specified --enable-languages="..."; if not, use
6199 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6200 # go away some day.
6201 # NB: embedded tabs in this IF block -- do not untabify
6202 if test -d ${srcdir}/gcc; then
6203 if test x"${enable_languages+set}" != xset; then
6204 if test x"${LANGUAGES+set}" = xset; then
6205 enable_languages="${LANGUAGES}"
6206 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6207 else
6208 enable_languages=all
6209 fi
6210 else
6211 if test x"${enable_languages}" = x ||
6212 test x"${enable_languages}" = xyes;
6213 then
6214 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6215 exit 1
6216 fi
6217 fi
6218 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6219
6220 # 'f95' is the old name for the 'fortran' language. We issue a warning
6221 # and make the substitution.
6222 case ,${enable_languages}, in
6223 *,f95,*)
6224 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6225 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6226 ;;
6227 esac
6228
6229 # If bootstrapping, C++ must be enabled.
6230 case ",$enable_languages,:$enable_bootstrap" in
6231 *,c++,*:*) ;;
6232 *:yes)
6233 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6234 enable_languages="${enable_languages},c++"
6235 else
6236 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6237 fi
6238 ;;
6239 esac
6240
6241 # First scan to see if an enabled language requires some other language.
6242 # We assume that a given config-lang.in will list all the language
6243 # front ends it requires, even if some are required indirectly.
6244 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6245 case ${lang_frag} in
6246 ..) ;;
6247 # The odd quoting in the next line works around
6248 # an apparent bug in bash 1.12 on linux.
6249 ${srcdir}/gcc/[*]/config-lang.in) ;;
6250 *)
6251 # From the config-lang.in, get $language, $lang_requires, and
6252 # $lang_requires_boot_languages.
6253 language=
6254 lang_requires=
6255 lang_requires_boot_languages=
6256 . ${lang_frag}
6257 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6258 case ,${enable_languages}, in
6259 *,$other,*) ;;
6260 *,all,*) ;;
6261 *,$language,*)
6262 echo " \`$other' language required by \`$language'; enabling" 1>&2
6263 enable_languages="${enable_languages},${other}"
6264 ;;
6265 esac
6266 done
6267 for other in ${lang_requires_boot_languages} ; do
6268 if test "$other" != "c"; then
6269 case ,${enable_stage1_languages}, in
6270 *,$other,*) ;;
6271 *,all,*) ;;
6272 *)
6273 case ,${enable_languages}, in
6274 *,$language,*)
6275 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6276 enable_stage1_languages="$enable_stage1_languages,${other}"
6277 ;;
6278 esac
6279 ;;
6280 esac
6281 fi
6282 done
6283 ;;
6284 esac
6285 done
6286
6287 new_enable_languages=,c,
6288
6289 # If LTO is enabled, add the LTO front end.
6290 if test "$enable_lto" = "yes" ; then
6291 case ,${enable_languages}, in
6292 *,lto,*) ;;
6293 *) enable_languages="${enable_languages},lto" ;;
6294 esac
6295 if test "${build_lto_plugin}" = "yes" ; then
6296 configdirs="$configdirs lto-plugin"
6297 fi
6298 fi
6299
6300 # If we're building an offloading compiler, add the LTO front end.
6301 if test x"$enable_as_accelerator_for" != x ; then
6302 case ,${enable_languages}, in
6303 *,lto,*) ;;
6304 *) enable_languages="${enable_languages},lto" ;;
6305 esac
6306 fi
6307
6308 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6309 potential_languages=,c,
6310
6311 enabled_target_libs=
6312 disabled_target_libs=
6313
6314 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6315 case ${lang_frag} in
6316 ..) ;;
6317 # The odd quoting in the next line works around
6318 # an apparent bug in bash 1.12 on linux.
6319 ${srcdir}/gcc/[*]/config-lang.in) ;;
6320 *)
6321 # From the config-lang.in, get $language, $target_libs,
6322 # $lang_dirs, $boot_language, and $build_by_default
6323 language=
6324 target_libs=
6325 lang_dirs=
6326 subdir_requires=
6327 boot_language=no
6328 build_by_default=yes
6329 . ${lang_frag}
6330 if test x${language} = x; then
6331 echo "${lang_frag} doesn't set \$language." 1>&2
6332 exit 1
6333 fi
6334
6335 if test "$language" = "c++"; then
6336 boot_language=yes
6337 fi
6338
6339 add_this_lang=no
6340 case ,${enable_languages}, in
6341 *,${language},*)
6342 # Language was explicitly selected; include it
6343 # unless it is C, which is enabled by default.
6344 if test "$language" != "c"; then
6345 add_this_lang=yes
6346 fi
6347 ;;
6348 *,all,*)
6349 # 'all' was selected, select it if it is a default language
6350 if test "$language" != "c"; then
6351 add_this_lang=${build_by_default}
6352 fi
6353 ;;
6354 esac
6355
6356 # Disable languages that need other directories if these aren't available.
6357 for i in $subdir_requires; do
6358 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6359 case ,${enable_languages}, in
6360 *,${language},*)
6361 # Specifically requested language; tell them.
6362 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6363 ;;
6364 *)
6365 # Silently disable.
6366 add_this_lang=unsupported
6367 ;;
6368 esac
6369 done
6370
6371 # Disable Ada if no preexisting GNAT is available.
6372 case ,${enable_languages},:${language}:${have_gnat} in
6373 *,${language},*:ada:no)
6374 # Specifically requested language; tell them.
6375 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6376 ;;
6377 *:ada:no)
6378 # Silently disable.
6379 add_this_lang=unsupported
6380 ;;
6381 esac
6382
6383 # Disable a language that is unsupported by the target.
6384 case " $unsupported_languages " in
6385 *" $language "*)
6386 add_this_lang=unsupported
6387 ;;
6388 esac
6389
6390 case $add_this_lang in
6391 unsupported)
6392 # Remove language-dependent dirs.
6393 disabled_target_libs="$disabled_target_libs $target_libs"
6394 noconfigdirs="$noconfigdirs $lang_dirs"
6395 ;;
6396 no)
6397 # Remove language-dependent dirs; still show language as supported.
6398 disabled_target_libs="$disabled_target_libs $target_libs"
6399 noconfigdirs="$noconfigdirs $lang_dirs"
6400 potential_languages="${potential_languages}${language},"
6401 ;;
6402 yes)
6403 new_enable_languages="${new_enable_languages}${language},"
6404 potential_languages="${potential_languages}${language},"
6405 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6406 enabled_target_libs="$enabled_target_libs $target_libs"
6407 case "${boot_language}:,$enable_stage1_languages," in
6408 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6409 # Add to (comma-separated) list of stage 1 languages.
6410 case ",$stage1_languages," in
6411 *,$language,* | ,yes, | ,all,) ;;
6412 *) stage1_languages="${stage1_languages}${language}," ;;
6413 esac
6414 # We need to bootstrap any supporting libraries.
6415 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6416 ;;
6417 esac
6418 ;;
6419 esac
6420 ;;
6421 esac
6422 done
6423
6424 # Add target libraries which are only needed for disabled languages
6425 # to noconfigdirs.
6426 if test -n "$disabled_target_libs"; then
6427 for dir in $disabled_target_libs; do
6428 case " $enabled_target_libs " in
6429 *" ${dir} "*) ;;
6430 *) noconfigdirs="$noconfigdirs $dir" ;;
6431 esac
6432 done
6433 fi
6434
6435 # Check whether --enable-stage1-languages was given.
6436 if test "${enable_stage1_languages+set}" = set; then :
6437 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6438 ,no,|,,)
6439 # Set it to something that will have no effect in the loop below
6440 enable_stage1_languages=c ;;
6441 ,yes,)
6442 enable_stage1_languages=`echo $new_enable_languages | \
6443 sed -e "s/^,//" -e "s/,$//" ` ;;
6444 *,all,*)
6445 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6446 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6447 esac
6448
6449 # Add "good" languages from enable_stage1_languages to stage1_languages,
6450 # while "bad" languages go in missing_languages. Leave no duplicates.
6451 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6452 case $potential_languages in
6453 *,$i,*)
6454 case $stage1_languages in
6455 *,$i,*) ;;
6456 *) stage1_languages="$stage1_languages$i," ;;
6457 esac ;;
6458 *)
6459 case $missing_languages in
6460 *,$i,*) ;;
6461 *) missing_languages="$missing_languages$i," ;;
6462 esac ;;
6463 esac
6464 done
6465 fi
6466
6467
6468 # Remove leading/trailing commas that were added for simplicity
6469 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6470 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6471 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6472 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6473
6474 if test "x$missing_languages" != x; then
6475 as_fn_error "
6476 The following requested languages could not be built: ${missing_languages}
6477 Supported languages are: ${potential_languages}" "$LINENO" 5
6478 fi
6479 if test "x$new_enable_languages" != "x$enable_languages"; then
6480 echo The following languages will be built: ${new_enable_languages}
6481 enable_languages="$new_enable_languages"
6482 fi
6483
6484
6485 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6486 fi
6487
6488 # Handle --disable-<component> generically.
6489 for dir in $configdirs $build_configdirs $target_configdirs ; do
6490 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6491 varname=`echo $dirname | sed -e s/+/_/g`
6492 if eval test x\${enable_${varname}} "=" xno ; then
6493 noconfigdirs="$noconfigdirs $dir"
6494 fi
6495 done
6496
6497 # Check for Boehm's garbage collector
6498 # Check whether --enable-objc-gc was given.
6499 if test "${enable_objc_gc+set}" = set; then :
6500 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6501 *,objc,*:*:yes:*target-boehm-gc*)
6502 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6503 ;;
6504 esac
6505 fi
6506
6507
6508 # Make sure we only build Boehm's garbage collector if required.
6509 case ,${enable_languages},:${enable_objc_gc} in
6510 *,objc,*:yes)
6511 # Keep target-boehm-gc if requested for Objective-C.
6512 ;;
6513 *)
6514 # Otherwise remove target-boehm-gc depending on target-libjava.
6515 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6516 noconfigdirs="$noconfigdirs target-boehm-gc"
6517 fi
6518 ;;
6519 esac
6520
6521 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6522 case ,${enable_languages}, in
6523 *,c++,*)
6524 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6525 case "${noconfigdirs}" in
6526 *target-libstdc++-v3*)
6527 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6528 ;;
6529 *) ;;
6530 esac
6531 ;;
6532 *)
6533 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6534 ;;
6535 esac
6536
6537 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6538 # $build_configdirs and $target_configdirs.
6539 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6540
6541 notsupp=""
6542 for dir in . $skipdirs $noconfigdirs ; do
6543 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6544 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6545 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6546 if test -r $srcdir/$dirname/configure ; then
6547 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6548 true
6549 else
6550 notsupp="$notsupp $dir"
6551 fi
6552 fi
6553 fi
6554 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6555 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6556 if test -r $srcdir/$dirname/configure ; then
6557 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6558 true
6559 else
6560 notsupp="$notsupp $dir"
6561 fi
6562 fi
6563 fi
6564 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6565 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6566 if test -r $srcdir/$dirname/configure ; then
6567 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6568 true
6569 else
6570 notsupp="$notsupp $dir"
6571 fi
6572 fi
6573 fi
6574 done
6575
6576 # Quietly strip out all directories which aren't configurable in this tree.
6577 # This relies on all configurable subdirectories being autoconfiscated, which
6578 # is now the case.
6579 build_configdirs_all="$build_configdirs"
6580 build_configdirs=
6581 for i in ${build_configdirs_all} ; do
6582 j=`echo $i | sed -e s/build-//g`
6583 if test -f ${srcdir}/$j/configure ; then
6584 build_configdirs="${build_configdirs} $i"
6585 fi
6586 done
6587
6588 configdirs_all="$configdirs"
6589 configdirs=
6590 for i in ${configdirs_all} ; do
6591 if test -f ${srcdir}/$i/configure ; then
6592 configdirs="${configdirs} $i"
6593 fi
6594 done
6595
6596 target_configdirs_all="$target_configdirs"
6597 target_configdirs=
6598 for i in ${target_configdirs_all} ; do
6599 j=`echo $i | sed -e s/target-//g`
6600 if test -f ${srcdir}/$j/configure ; then
6601 target_configdirs="${target_configdirs} $i"
6602 fi
6603 done
6604
6605 # Exclude target-zlib if target-libjava isn't built.
6606 case ${target_configdirs} in
6607 *target-libjava*)
6608 ;;
6609 *)
6610 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6611 ;;
6612 esac
6613
6614 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6615 # so we have to add it after the preceding checks.
6616 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6617 then
6618 case " $configdirs " in
6619 *" libiberty "*)
6620 # If we can build libiberty, we can also build libiberty-linker-plugin.
6621 configdirs="$configdirs libiberty-linker-plugin"
6622 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6623 --with-libiberty=../libiberty-linker-plugin";;
6624 *)
6625 as_fn_error "libiberty missing" "$LINENO" 5;;
6626 esac
6627 fi
6628
6629 # Sometimes we have special requirements for the host libiberty.
6630 extra_host_libiberty_configure_flags=
6631 extra_host_zlib_configure_flags=
6632 case " $configdirs " in
6633 *" lto-plugin "* | *" libcc1 "*)
6634 # When these are to be built as shared libraries, the same applies to
6635 # libiberty.
6636 extra_host_libiberty_configure_flags=--enable-shared
6637 ;;
6638 *" bfd "*)
6639 # When bfd is to be built as a shared library, the same applies to
6640 # zlib.
6641 if test "$enable_shared" = "yes"; then
6642 extra_host_zlib_configure_flags=--enable-host-shared
6643 fi
6644 ;;
6645 esac
6646
6647
6648
6649 # Produce a warning message for the subdirs we can't configure.
6650 # This isn't especially interesting in the Cygnus tree, but in the individual
6651 # FSF releases, it's important to let people know when their machine isn't
6652 # supported by the one or two programs in a package.
6653
6654 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6655 # If $appdirs is non-empty, at least one of those directories must still
6656 # be configured, or we error out. (E.g., if the gas release supports a
6657 # specified target in some subdirs but not the gas subdir, we shouldn't
6658 # pretend that all is well.)
6659 if test -n "$appdirs" ; then
6660 for dir in $appdirs ; do
6661 if test -r $dir/Makefile.in ; then
6662 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6663 appdirs=""
6664 break
6665 fi
6666 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6667 appdirs=""
6668 break
6669 fi
6670 fi
6671 done
6672 if test -n "$appdirs" ; then
6673 echo "*** This configuration is not supported by this package." 1>&2
6674 exit 1
6675 fi
6676 fi
6677 # Okay, some application will build, or we don't care to check. Still
6678 # notify of subdirs not getting built.
6679 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6680 echo " ${notsupp}" 1>&2
6681 echo " (Any other directories should still work fine.)" 1>&2
6682 fi
6683
6684 case "$host" in
6685 *msdosdjgpp*)
6686 enable_gdbtk=no ;;
6687 esac
6688
6689 # To find our prefix, in gcc_cv_tool_prefix.
6690
6691 # The user is always right.
6692 if test "${PATH_SEPARATOR+set}" != set; then
6693 echo "#! /bin/sh" >conf$$.sh
6694 echo "exit 0" >>conf$$.sh
6695 chmod +x conf$$.sh
6696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6697 PATH_SEPARATOR=';'
6698 else
6699 PATH_SEPARATOR=:
6700 fi
6701 rm -f conf$$.sh
6702 fi
6703
6704
6705
6706 if test "x$exec_prefix" = xNONE; then
6707 if test "x$prefix" = xNONE; then
6708 gcc_cv_tool_prefix=$ac_default_prefix
6709 else
6710 gcc_cv_tool_prefix=$prefix
6711 fi
6712 else
6713 gcc_cv_tool_prefix=$exec_prefix
6714 fi
6715
6716 # If there is no compiler in the tree, use the PATH only. In any
6717 # case, if there is no compiler in the tree nobody should use
6718 # AS_FOR_TARGET and LD_FOR_TARGET.
6719 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6720 gcc_version=`cat $srcdir/gcc/BASE-VER`
6721 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6722 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6723 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6724 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6725 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6726 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6727 else
6728 gcc_cv_tool_dirs=
6729 fi
6730
6731 if test x$build = x$target && test -n "$md_exec_prefix"; then
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6733 fi
6734
6735
6736
6737 copy_dirs=
6738
6739
6740 # Check whether --with-build-sysroot was given.
6741 if test "${with_build_sysroot+set}" = set; then :
6742 withval=$with_build_sysroot; if test x"$withval" != x ; then
6743 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6744 fi
6745 else
6746 SYSROOT_CFLAGS_FOR_TARGET=
6747 fi
6748
6749
6750
6751
6752 # Check whether --with-debug-prefix-map was given.
6753 if test "${with_debug_prefix_map+set}" = set; then :
6754 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6755 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6756 for debug_map in $withval; do
6757 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6758 done
6759 fi
6760 else
6761 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6762 fi
6763
6764
6765
6766 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6767 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6768 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6769 # We want to ensure that TARGET libraries (which we know are built with
6770 # gcc) are built with "-O2 -g", so include those options when setting
6771 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6772 if test "x$CFLAGS_FOR_TARGET" = x; then
6773 if test "x${is_cross_compiler}" = xyes; then
6774 CFLAGS_FOR_TARGET="-g -O2"
6775 else
6776 CFLAGS_FOR_TARGET=$CFLAGS
6777 case " $CFLAGS " in
6778 *" -O2 "*) ;;
6779 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6780 esac
6781 case " $CFLAGS " in
6782 *" -g "* | *" -g3 "*) ;;
6783 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6784 esac
6785 fi
6786 fi
6787
6788
6789 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6790 if test "x${is_cross_compiler}" = xyes; then
6791 CXXFLAGS_FOR_TARGET="-g -O2"
6792 else
6793 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6794 case " $CXXFLAGS " in
6795 *" -O2 "*) ;;
6796 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6797 esac
6798 case " $CXXFLAGS " in
6799 *" -g "* | *" -g3 "*) ;;
6800 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6801 esac
6802 fi
6803 fi
6804
6805
6806
6807
6808 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6809 # the named directory are copied to $(tooldir)/sys-include.
6810 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6811 if test x${is_cross_compiler} = xno ; then
6812 echo 1>&2 '***' --with-headers is only supported when cross compiling
6813 exit 1
6814 fi
6815 if test x"${with_headers}" != xyes ; then
6816 x=${gcc_cv_tool_prefix}
6817 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6818 fi
6819 fi
6820
6821 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6822 # the name directories are copied to $(tooldir)/lib. Multiple directories
6823 # are permitted.
6824 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6825 if test x${is_cross_compiler} = xno ; then
6826 echo 1>&2 '***' --with-libs is only supported when cross compiling
6827 exit 1
6828 fi
6829 if test x"${with_libs}" != xyes ; then
6830 # Copy the libraries in reverse order, so that files in the first named
6831 # library override files in subsequent libraries.
6832 x=${gcc_cv_tool_prefix}
6833 for l in ${with_libs}; do
6834 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6835 done
6836 fi
6837 fi
6838
6839 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6840 #
6841 # This is done by determining whether or not the appropriate directory
6842 # is available, and by checking whether or not specific configurations
6843 # have requested that this magic not happen.
6844 #
6845 # The command line options always override the explicit settings in
6846 # configure.ac, and the settings in configure.ac override this magic.
6847 #
6848 # If the default for a toolchain is to use GNU as and ld, and you don't
6849 # want to do that, then you should use the --without-gnu-as and
6850 # --without-gnu-ld options for the configure script. Similarly, if
6851 # the default is to use the included zlib and you don't want to do that,
6852 # you should use the --with-system-zlib option for the configure script.
6853
6854 if test x${use_gnu_as} = x &&
6855 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6856 with_gnu_as=yes
6857 extra_host_args="$extra_host_args --with-gnu-as"
6858 fi
6859
6860 if test x${use_gnu_ld} = x &&
6861 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6862 with_gnu_ld=yes
6863 extra_host_args="$extra_host_args --with-gnu-ld"
6864 fi
6865
6866 if test x${use_included_zlib} = x &&
6867 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6868 :
6869 else
6870 with_system_zlib=yes
6871 extra_host_args="$extra_host_args --with-system-zlib"
6872 fi
6873
6874 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6875 # can detect this case.
6876
6877 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6878 with_newlib=yes
6879 extra_host_args="$extra_host_args --with-newlib"
6880 fi
6881
6882 # Handle ${copy_dirs}
6883 set fnord ${copy_dirs}
6884 shift
6885 while test $# != 0 ; do
6886 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6887 :
6888 else
6889 echo Copying $1 to $2
6890
6891 # Use the install script to create the directory and all required
6892 # parent directories.
6893 if test -d $2 ; then
6894 :
6895 else
6896 echo >config.temp
6897 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6898 fi
6899
6900 # Copy the directory, assuming we have tar.
6901 # FIXME: Should we use B in the second tar? Not all systems support it.
6902 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6903
6904 # It is the responsibility of the user to correctly adjust all
6905 # symlinks. If somebody can figure out how to handle them correctly
6906 # here, feel free to add the code.
6907
6908 echo $1 > $2/COPIED
6909 fi
6910 shift; shift
6911 done
6912
6913 # Determine a target-dependent exec_prefix that the installed
6914 # gcc will search in. Keep this list sorted by triplet, with
6915 # the *-*-osname triplets last.
6916 md_exec_prefix=
6917 case "${target}" in
6918 i[34567]86-pc-msdosdjgpp*)
6919 md_exec_prefix=/dev/env/DJDIR/bin
6920 ;;
6921 *-*-hpux* | \
6922 *-*-nto-qnx* | \
6923 *-*-solaris2*)
6924 md_exec_prefix=/usr/ccs/bin
6925 ;;
6926 esac
6927
6928 extra_arflags_for_target=
6929 extra_nmflags_for_target=
6930 extra_ranlibflags_for_target=
6931 target_makefile_frag=/dev/null
6932 case "${target}" in
6933 spu-*-*)
6934 target_makefile_frag="config/mt-spu"
6935 ;;
6936 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6937 target_makefile_frag="config/mt-sde"
6938 ;;
6939 mipsisa*-*-elfoabi*)
6940 target_makefile_frag="config/mt-mips-elfoabi"
6941 ;;
6942 mips*-*-*linux* | mips*-*-gnu*)
6943 target_makefile_frag="config/mt-mips-gnu"
6944 ;;
6945 nios2-*-elf*)
6946 target_makefile_frag="config/mt-nios2-elf"
6947 ;;
6948 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6949 target_makefile_frag="config/mt-gnu"
6950 ;;
6951 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6952 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6953 # commands to handle both 32-bit and 64-bit objects. These flags are
6954 # harmless if we're using GNU nm or ar.
6955 extra_arflags_for_target=" -X32_64"
6956 extra_nmflags_for_target=" -B -X32_64"
6957 ;;
6958 esac
6959
6960 alphaieee_frag=/dev/null
6961 case $target in
6962 alpha*-*-*)
6963 # This just makes sure to use the -mieee option to build target libs.
6964 # This should probably be set individually by each library.
6965 alphaieee_frag="config/mt-alphaieee"
6966 ;;
6967 esac
6968
6969 # If --enable-target-optspace always use -Os instead of -O2 to build
6970 # the target libraries, similarly if it is not specified, use -Os
6971 # on selected platforms.
6972 ospace_frag=/dev/null
6973 case "${enable_target_optspace}:${target}" in
6974 yes:*)
6975 ospace_frag="config/mt-ospace"
6976 ;;
6977 :d30v-*)
6978 ospace_frag="config/mt-d30v"
6979 ;;
6980 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6981 ospace_frag="config/mt-ospace"
6982 ;;
6983 no:* | :*)
6984 ;;
6985 *)
6986 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6987 ;;
6988 esac
6989
6990 # Some systems (e.g., one of the i386-aix systems the gas testers are
6991 # using) don't handle "\$" correctly, so don't use it here.
6992 tooldir='${exec_prefix}'/${target_noncanonical}
6993 build_tooldir=${tooldir}
6994
6995 # Create a .gdbinit file which runs the one in srcdir
6996 # and tells GDB to look there for source files.
6997
6998 if test -r ${srcdir}/.gdbinit ; then
6999 case ${srcdir} in
7000 .) ;;
7001 *) cat > ./.gdbinit <<EOF
7002 # ${NO_EDIT}
7003 dir ${srcdir}
7004 dir .
7005 source ${srcdir}/.gdbinit
7006 EOF
7007 ;;
7008 esac
7009 fi
7010
7011 # Make sure that the compiler is able to generate an executable. If it
7012 # can't, we are probably in trouble. We don't care whether we can run the
7013 # executable--we might be using a cross compiler--we only care whether it
7014 # can be created. At this point the main configure script has set CC.
7015 we_are_ok=no
7016 echo "int main () { return 0; }" > conftest.c
7017 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7018 if test $? = 0 ; then
7019 if test -s conftest || test -s conftest.exe ; then
7020 we_are_ok=yes
7021 fi
7022 fi
7023 case $we_are_ok in
7024 no)
7025 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7026 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7027 rm -f conftest*
7028 exit 1
7029 ;;
7030 esac
7031 rm -f conftest*
7032
7033 # Decide which environment variable is used to find dynamic libraries.
7034 case "${host}" in
7035 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7036 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7037 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7038 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7039 esac
7040
7041 # On systems where the dynamic library environment variable is PATH,
7042 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7043 # built executables to PATH.
7044 if test "$RPATH_ENVVAR" = PATH; then
7045 GCC_SHLIB_SUBDIR=/shlib
7046 else
7047 GCC_SHLIB_SUBDIR=
7048 fi
7049
7050 # Adjust the toplevel makefile according to whether bootstrap was selected.
7051 case $enable_bootstrap in
7052 yes)
7053 bootstrap_suffix=bootstrap
7054 BUILD_CONFIG=bootstrap-debug
7055 ;;
7056 no)
7057 bootstrap_suffix=no-bootstrap
7058 BUILD_CONFIG=
7059 ;;
7060 esac
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7063 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7064
7065
7066 # Check whether --with-build-config was given.
7067 if test "${with_build_config+set}" = set; then :
7068 withval=$with_build_config; case $with_build_config in
7069 yes) with_build_config= ;;
7070 no) with_build_config= BUILD_CONFIG= ;;
7071 esac
7072 fi
7073
7074
7075 if test "x${with_build_config}" != x; then
7076 BUILD_CONFIG=$with_build_config
7077 else
7078 case $BUILD_CONFIG in
7079 bootstrap-debug)
7080 if echo "int f (void) { return 0; }" > conftest.c &&
7081 ${CC} -c conftest.c &&
7082 mv conftest.o conftest.o.g0 &&
7083 ${CC} -c -g conftest.c &&
7084 mv conftest.o conftest.o.g &&
7085 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7086 :
7087 else
7088 BUILD_CONFIG=
7089 fi
7090 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7091 ;;
7092 esac
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7095 $as_echo "$BUILD_CONFIG" >&6; }
7096
7097
7098 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7100 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7101 # Check whether --enable-vtable-verify was given.
7102 if test "${enable_vtable_verify+set}" = set; then :
7103 enableval=$enable_vtable_verify; case "$enableval" in
7104 yes) enable_vtable_verify=yes ;;
7105 no) enable_vtable_verify=no ;;
7106 *) enable_vtable_verify=no;;
7107 esac
7108 else
7109 enable_vtable_verify=no
7110 fi
7111
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7113 $as_echo "$enable_vtable_verify" >&6; }
7114
7115 # Record target_configdirs and the configure arguments for target and
7116 # build configuration in Makefile.
7117 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7118 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7119 bootstrap_fixincludes=no
7120
7121 # If we are building libgomp, bootstrap it.
7122 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7123 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7124 fi
7125
7126 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7127 # or bootstrap-ubsan, bootstrap it.
7128 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7129 case "$BUILD_CONFIG" in
7130 *bootstrap-asan* | *bootstrap-ubsan* )
7131 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7132 bootstrap_fixincludes=yes
7133 ;;
7134 esac
7135 fi
7136
7137 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7138 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7139 test "$enable_vtable_verify" != no; then
7140 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7141 fi
7142
7143 # If we are building libmpx, bootstrap it.
7144 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7146 fi
7147
7148 # Determine whether gdb needs tk/tcl or not.
7149 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7150 # and in that case we want gdb to be built without tk. Ugh!
7151 # In fact I believe gdb is the *only* package directly dependent on tk,
7152 # so we should be able to put the 'maybe's in unconditionally and
7153 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7154 # 100% sure that that's safe though.
7155
7156 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7157 case "$enable_gdbtk" in
7158 no)
7159 GDB_TK="" ;;
7160 yes)
7161 GDB_TK="${gdb_tk}" ;;
7162 *)
7163 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7164 # distro. Eventually someone will fix this and move Insight, nee
7165 # gdbtk to a separate directory.
7166 if test -d ${srcdir}/gdb/gdbtk ; then
7167 GDB_TK="${gdb_tk}"
7168 else
7169 GDB_TK=""
7170 fi
7171 ;;
7172 esac
7173 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7174 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7175
7176 # Strip out unwanted targets.
7177
7178 # While at that, we remove Makefiles if we were started for recursive
7179 # configuration, so that the top-level Makefile reconfigures them,
7180 # like we used to do when configure itself was recursive.
7181
7182 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7183 # but now we're fixing up the Makefile ourselves with the additional
7184 # commands passed to AC_CONFIG_FILES. Use separate variables
7185 # extrasub-{build,host,target} not because there is any reason to split
7186 # the substitutions up that way, but only to remain below the limit of
7187 # 99 commands in a script, for HP-UX sed.
7188 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7189
7190 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7191 yes:yes:*\ gold\ *:*,c++,*) ;;
7192 yes:yes:*\ gold\ *:*)
7193 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7194 ;;
7195 esac
7196
7197 extrasub_build=
7198 for module in ${build_configdirs} ; do
7199 if test -z "${no_recursion}" \
7200 && test -f ${build_subdir}/${module}/Makefile; then
7201 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7202 rm -f ${build_subdir}/${module}/Makefile
7203 fi
7204 extrasub_build="$extrasub_build
7205 /^@if build-$module\$/d
7206 /^@endif build-$module\$/d
7207 /^@if build-$module-$bootstrap_suffix\$/d
7208 /^@endif build-$module-$bootstrap_suffix\$/d"
7209 done
7210 extrasub_host=
7211 for module in ${configdirs} ; do
7212 if test -z "${no_recursion}"; then
7213 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7214 if test -f ${file}; then
7215 echo 1>&2 "*** removing ${file} to force reconfigure"
7216 rm -f ${file}
7217 fi
7218 done
7219 fi
7220 case ${module},${bootstrap_fixincludes} in
7221 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7222 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7223 esac
7224 extrasub_host="$extrasub_host
7225 /^@if $module\$/d
7226 /^@endif $module\$/d
7227 /^@if $module-$host_bootstrap_suffix\$/d
7228 /^@endif $module-$host_bootstrap_suffix\$/d"
7229 done
7230 extrasub_target=
7231 for module in ${target_configdirs} ; do
7232 if test -z "${no_recursion}" \
7233 && test -f ${target_subdir}/${module}/Makefile; then
7234 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7235 rm -f ${target_subdir}/${module}/Makefile
7236 fi
7237
7238 # We only bootstrap target libraries listed in bootstrap_target_libs.
7239 case $bootstrap_target_libs in
7240 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7241 *) target_bootstrap_suffix=no-bootstrap ;;
7242 esac
7243
7244 extrasub_target="$extrasub_target
7245 /^@if target-$module\$/d
7246 /^@endif target-$module\$/d
7247 /^@if target-$module-$target_bootstrap_suffix\$/d
7248 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7249 done
7250
7251 # Do the final fixup along with target modules.
7252 extrasub_target="$extrasub_target
7253 /^@if /,/^@endif /d"
7254
7255 # Create the serialization dependencies. This uses a temporary file.
7256
7257 # Check whether --enable-serial-configure was given.
7258 if test "${enable_serial_configure+set}" = set; then :
7259 enableval=$enable_serial_configure;
7260 fi
7261
7262
7263 case ${enable_serial_configure} in
7264 yes)
7265 enable_serial_build_configure=yes
7266 enable_serial_host_configure=yes
7267 enable_serial_target_configure=yes
7268 ;;
7269 esac
7270
7271 # These force 'configure's to be done one at a time, to avoid problems
7272 # with contention over a shared config.cache.
7273 rm -f serdep.tmp
7274 echo '# serdep.tmp' > serdep.tmp
7275 olditem=
7276 test "x${enable_serial_build_configure}" = xyes &&
7277 for item in ${build_configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
7280 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7281 esac
7282 olditem=${item}
7283 done
7284 olditem=
7285 test "x${enable_serial_host_configure}" = xyes &&
7286 for item in ${configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
7289 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7290 esac
7291 olditem=${item}
7292 done
7293 olditem=
7294 test "x${enable_serial_target_configure}" = xyes &&
7295 for item in ${target_configdirs} ; do
7296 case ${olditem} in
7297 "") ;;
7298 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7299 esac
7300 olditem=${item}
7301 done
7302 serialization_dependencies=serdep.tmp
7303
7304
7305 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7306 # target, nonopt, and variable assignments. These are the ones we
7307 # might not want to pass down to subconfigures. The exception being
7308 # --cache-file=/dev/null, which is used to turn off the use of cache
7309 # files altogether, and which should be passed on to subconfigures.
7310 # Also strip program-prefix, program-suffix, and program-transform-name,
7311 # so that we can pass down a consistent program-transform-name.
7312 baseargs=
7313 tbaseargs=
7314 keep_next=no
7315 skip_next=no
7316 eval "set -- $ac_configure_args"
7317 for ac_arg
7318 do
7319 if test X"$skip_next" = X"yes"; then
7320 skip_next=no
7321 continue
7322 fi
7323 if test X"$keep_next" = X"yes"; then
7324 case $ac_arg in
7325 *\'*)
7326 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7327 esac
7328 baseargs="$baseargs '$ac_arg'"
7329 tbaseargs="$tbaseargs '$ac_arg'"
7330 keep_next=no
7331 continue
7332 fi
7333
7334 # Handle separated arguments. Based on the logic generated by
7335 # autoconf 2.59.
7336 case $ac_arg in
7337 *=* | --config-cache | -C | -disable-* | --disable-* \
7338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7340 | -with-* | --with-* | -without-* | --without-* | --x)
7341 separate_arg=no
7342 ;;
7343 -*)
7344 separate_arg=yes
7345 ;;
7346 *)
7347 separate_arg=no
7348 ;;
7349 esac
7350
7351 skip_targ=no
7352 case $ac_arg in
7353
7354 --with-* | --without-*)
7355 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7356
7357 case $libopt in
7358 *[-_]include)
7359 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7360 ;;
7361 *[-_]lib)
7362 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7363 ;;
7364 *)
7365 lib=$libopt
7366 ;;
7367 esac
7368
7369
7370 case $lib in
7371 mpc | mpfr | gmp | isl)
7372 # If we're processing --with-$lib, --with-$lib-include or
7373 # --with-$lib-lib, for one of the libs above, and target is
7374 # different from host, don't pass the current argument to any
7375 # target library's configure.
7376 if test x$is_cross_compiler = xyes; then
7377 skip_targ=yes
7378 fi
7379 ;;
7380 esac
7381 ;;
7382 esac
7383
7384 case "$ac_arg" in
7385 --cache-file=/dev/null | \
7386 -cache-file=/dev/null )
7387 # Handled here to avoid the test to skip args below.
7388 baseargs="$baseargs '$ac_arg'"
7389 tbaseargs="$tbaseargs '$ac_arg'"
7390 # Assert: $separate_arg should always be no.
7391 keep_next=$separate_arg
7392 ;;
7393 --no*)
7394 continue
7395 ;;
7396 --c* | \
7397 --sr* | \
7398 --ho* | \
7399 --bu* | \
7400 --t* | \
7401 --program-* | \
7402 -cache_file* | \
7403 -srcdir* | \
7404 -host* | \
7405 -build* | \
7406 -target* | \
7407 -program-prefix* | \
7408 -program-suffix* | \
7409 -program-transform-name* )
7410 skip_next=$separate_arg
7411 continue
7412 ;;
7413 -*)
7414 # An option. Add it.
7415 case $ac_arg in
7416 *\'*)
7417 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7418 esac
7419 baseargs="$baseargs '$ac_arg'"
7420 if test X"$skip_targ" = Xno; then
7421 tbaseargs="$tbaseargs '$ac_arg'"
7422 fi
7423 keep_next=$separate_arg
7424 ;;
7425 *)
7426 # Either a variable assignment, or a nonopt (triplet). Don't
7427 # pass it down; let the Makefile handle this.
7428 continue
7429 ;;
7430 esac
7431 done
7432 # Remove the initial space we just introduced and, as these will be
7433 # expanded by make, quote '$'.
7434 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7435
7436 # Add in --program-transform-name, after --program-prefix and
7437 # --program-suffix have been applied to it. Autoconf has already
7438 # doubled dollar signs and backslashes in program_transform_name; we want
7439 # the backslashes un-doubled, and then the entire thing wrapped in single
7440 # quotes, because this will be expanded first by make and then by the shell.
7441 # Also, because we want to override the logic in subdir configure scripts to
7442 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7443 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7444 ${program_transform_name}
7445 EOF_SED
7446 gcc_transform_name=`cat conftestsed.out`
7447 rm -f conftestsed.out
7448 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7449 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7450 if test "$silent" = yes; then
7451 baseargs="$baseargs --silent"
7452 tbaseargs="$tbaseargs --silent"
7453 fi
7454 baseargs="$baseargs --disable-option-checking"
7455 tbaseargs="$tbaseargs --disable-option-checking"
7456
7457 # Record and document user additions to sub configure arguments.
7458
7459
7460
7461
7462 # For the build-side libraries, we just need to pretend we're native,
7463 # and not use the same cache file. Multilibs are neither needed nor
7464 # desired. We can't even use the same cache file for all build-side
7465 # libraries, as they're compiled differently; some with C, some with
7466 # C++ or with different feature-enabling options.
7467 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7468
7469 # For host modules, accept cache file option, or specification as blank.
7470 case "${cache_file}" in
7471 "") # empty
7472 cache_file_option="" ;;
7473 /* | [A-Za-z]:[\\/]* ) # absolute path
7474 cache_file_option="--cache-file=${cache_file}" ;;
7475 *) # relative path
7476 cache_file_option="--cache-file=../${cache_file}" ;;
7477 esac
7478
7479 # Host dirs don't like to share a cache file either, horribly enough.
7480 # This seems to be due to autoconf 2.5x stupidity.
7481 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7482
7483 target_configargs="$target_configargs ${tbaseargs}"
7484
7485 # Passing a --with-cross-host argument lets the target libraries know
7486 # whether they are being built with a cross-compiler or being built
7487 # native. However, it would be better to use other mechanisms to make the
7488 # sorts of decisions they want to make on this basis. Please consider
7489 # this option to be deprecated. FIXME.
7490 if test x${is_cross_compiler} = xyes ; then
7491 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7492 fi
7493
7494 # Special user-friendly check for native x86_64-linux build, if
7495 # multilib is not explicitly enabled.
7496 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7497 x86_64-*linux*:yes:$build:$build:)
7498 # Make sure we have a development environment that handles 32-bit
7499 dev64=no
7500 echo "int main () { return 0; }" > conftest.c
7501 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7502 if test $? = 0 ; then
7503 if test -s conftest || test -s conftest.exe ; then
7504 dev64=yes
7505 fi
7506 fi
7507 rm -f conftest*
7508 if test x${dev64} != xyes ; then
7509 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7510 fi
7511 ;;
7512 esac
7513
7514 # Default to --enable-multilib.
7515 if test x${enable_multilib} = x ; then
7516 target_configargs="--enable-multilib ${target_configargs}"
7517 fi
7518
7519 # Pass --with-newlib if appropriate. Note that target_configdirs has
7520 # changed from the earlier setting of with_newlib.
7521 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7522 target_configargs="--with-newlib ${target_configargs}"
7523 fi
7524
7525 # Different target subdirs use different values of certain variables
7526 # (notably CXX). Worse, multilibs use *lots* of different values.
7527 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7528 # it doesn't automatically accept command-line overrides of them.
7529 # This means it's not safe for target subdirs to share a cache file,
7530 # which is disgusting, but there you have it. Hopefully this can be
7531 # fixed in future. It's still worthwhile to use a cache file for each
7532 # directory. I think.
7533
7534 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7535 # We need to pass --target, as newer autoconf's requires consistency
7536 # for target_alias and gcc doesn't manage it consistently.
7537 target_configargs="--cache-file=./config.cache ${target_configargs}"
7538
7539 FLAGS_FOR_TARGET=
7540 case " $target_configdirs " in
7541 *" newlib "*)
7542 case " $target_configargs " in
7543 *" --with-newlib "*)
7544 case "$target" in
7545 *-cygwin*)
7546 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7547 ;;
7548 esac
7549
7550 # If we're not building GCC, don't discard standard headers.
7551 if test -d ${srcdir}/gcc; then
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7553
7554 if test "${build}" != "${host}"; then
7555 # On Canadian crosses, CC_FOR_TARGET will have already been set
7556 # by `configure', so we won't have an opportunity to add -Bgcc/
7557 # to it. This is right: we don't want to search that directory
7558 # for binaries, but we want the header files in there, so add
7559 # them explicitly.
7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7561
7562 # Someone might think of using the pre-installed headers on
7563 # Canadian crosses, in case the installed compiler is not fully
7564 # compatible with the compiler being built. In this case, it
7565 # would be better to flag an error than risking having
7566 # incompatible object files being constructed. We can't
7567 # guarantee that an error will be flagged, but let's hope the
7568 # compiler will do it, when presented with incompatible header
7569 # files.
7570 fi
7571 fi
7572
7573 case "${target}-${is_cross_compiler}" in
7574 i[3456789]86-*-linux*-no)
7575 # Here host == target, so we don't need to build gcc,
7576 # so we don't want to discard standard headers.
7577 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7578 ;;
7579 *)
7580 # If we're building newlib, use its generic headers last, but search
7581 # for any libc-related directories first (so make it the last -B
7582 # switch).
7583 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7584
7585 # If we're building libgloss, find the startup file, simulator library
7586 # and linker script.
7587 case " $target_configdirs " in
7588 *" libgloss "*)
7589 # Look for startup file, simulator library and maybe linker script.
7590 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7591 # Look for libnosys.a in case the target needs it.
7592 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7593 # Most targets have the linker script in the source directory.
7594 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7595 ;;
7596 esac
7597 ;;
7598 esac
7599 ;;
7600 esac
7601 ;;
7602 esac
7603
7604 case "$target" in
7605 x86_64-*mingw* | *-w64-mingw*)
7606 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7607 # however, use a symlink named 'mingw' in ${prefix} .
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7609 ;;
7610 *-mingw*)
7611 # MinGW can't be handled as Cygwin above since it does not use newlib.
7612 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'
7613 ;;
7614 esac
7615
7616 # Allow the user to override the flags for
7617 # our build compiler if desired.
7618 if test x"${build}" = x"${host}" ; then
7619 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7620 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7621 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7622 fi
7623
7624 # On Canadian crosses, we'll be searching the right directories for
7625 # the previously-installed cross compiler, so don't bother to add
7626 # flags for directories within the install tree of the compiler
7627 # being built; programs in there won't even run.
7628 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7629 # Search for pre-installed headers if nothing else fits.
7630 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7631 fi
7632
7633 if test "x${use_gnu_ld}" = x &&
7634 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7635 # Arrange for us to find uninstalled linker scripts.
7636 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7637 fi
7638
7639 # Search for other target-specific linker scripts and such.
7640 case "${target}" in
7641 mep*)
7642 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7643 ;;
7644 esac
7645
7646 # Makefile fragments.
7647 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7648 do
7649 eval fragval=\$$frag
7650 if test $fragval != /dev/null; then
7651 eval $frag=${srcdir}/$fragval
7652 fi
7653 done
7654
7655
7656
7657
7658
7659 # Miscellanea: directories, flags, etc.
7660
7661
7662
7663
7664
7665
7666
7667
7668 # Build module lists & subconfigure args.
7669
7670
7671
7672 # Host module lists & subconfigure args.
7673
7674
7675
7676
7677 # Target module lists & subconfigure args.
7678
7679
7680
7681 # Build tools.
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 # Generate default definitions for YACC, M4, LEX and other programs that run
7700 # on the build machine. These are used if the Makefile can't locate these
7701 # programs in objdir.
7702 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7703
7704 for ac_prog in 'bison -y' byacc yacc
7705 do
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if test "${ac_cv_prog_YACC+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$YACC"; then
7714 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_prog_YACC="$ac_prog"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 YACC=$ac_cv_prog_YACC
7734 if test -n "$YACC"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7736 $as_echo "$YACC" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742
7743 test -n "$YACC" && break
7744 done
7745 test -n "$YACC" || YACC="$MISSING bison -y"
7746
7747 case " $build_configdirs " in
7748 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7749 esac
7750
7751 for ac_prog in bison
7752 do
7753 # Extract the first word of "$ac_prog", so it can be a program name with args.
7754 set dummy $ac_prog; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if test "${ac_cv_prog_BISON+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$BISON"; then
7761 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_BISON="$ac_prog"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 BISON=$ac_cv_prog_BISON
7781 if test -n "$BISON"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7783 $as_echo "$BISON" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789
7790 test -n "$BISON" && break
7791 done
7792 test -n "$BISON" || BISON="$MISSING bison"
7793
7794 case " $build_configdirs " in
7795 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7796 esac
7797
7798 for ac_prog in gm4 gnum4 m4
7799 do
7800 # Extract the first word of "$ac_prog", so it can be a program name with args.
7801 set dummy $ac_prog; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_M4+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 if test -n "$M4"; then
7808 ac_cv_prog_M4="$M4" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_M4="$ac_prog"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 M4=$ac_cv_prog_M4
7828 if test -n "$M4"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7830 $as_echo "$M4" >&6; }
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836
7837 test -n "$M4" && break
7838 done
7839 test -n "$M4" || M4="$MISSING m4"
7840
7841 case " $build_configdirs " in
7842 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7843 esac
7844
7845 for ac_prog in flex lex
7846 do
7847 # Extract the first word of "$ac_prog", so it can be a program name with args.
7848 set dummy $ac_prog; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_LEX+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$LEX"; then
7855 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_LEX="$ac_prog"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 LEX=$ac_cv_prog_LEX
7875 if test -n "$LEX"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7877 $as_echo "$LEX" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883
7884 test -n "$LEX" && break
7885 done
7886 test -n "$LEX" || LEX="$MISSING flex"
7887
7888 case " $build_configdirs " in
7889 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7890 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7891 esac
7892
7893 for ac_prog in flex
7894 do
7895 # Extract the first word of "$ac_prog", so it can be a program name with args.
7896 set dummy $ac_prog; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if test "${ac_cv_prog_FLEX+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$FLEX"; then
7903 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_prog_FLEX="$ac_prog"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 FLEX=$ac_cv_prog_FLEX
7923 if test -n "$FLEX"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7925 $as_echo "$FLEX" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931
7932 test -n "$FLEX" && break
7933 done
7934 test -n "$FLEX" || FLEX="$MISSING flex"
7935
7936 case " $build_configdirs " in
7937 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7938 esac
7939
7940 for ac_prog in makeinfo
7941 do
7942 # Extract the first word of "$ac_prog", so it can be a program name with args.
7943 set dummy $ac_prog; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$MAKEINFO"; then
7950 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_MAKEINFO="$ac_prog"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 MAKEINFO=$ac_cv_prog_MAKEINFO
7970 if test -n "$MAKEINFO"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7972 $as_echo "$MAKEINFO" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 test -n "$MAKEINFO" && break
7980 done
7981 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7982
7983 case " $build_configdirs " in
7984 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7985 *)
7986
7987 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7988 # higher, else we use the "missing" dummy.
7989 if ${MAKEINFO} --version \
7990 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7991 :
7992 else
7993 MAKEINFO="$MISSING makeinfo"
7994 fi
7995 ;;
7996
7997 esac
7998
7999 # FIXME: expect and dejagnu may become build tools?
8000
8001 for ac_prog in expect
8002 do
8003 # Extract the first word of "$ac_prog", so it can be a program name with args.
8004 set dummy $ac_prog; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 if test -n "$EXPECT"; then
8011 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_EXPECT="$ac_prog"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8023 fi
8024 done
8025 done
8026 IFS=$as_save_IFS
8027
8028 fi
8029 fi
8030 EXPECT=$ac_cv_prog_EXPECT
8031 if test -n "$EXPECT"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8033 $as_echo "$EXPECT" >&6; }
8034 else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036 $as_echo "no" >&6; }
8037 fi
8038
8039
8040 test -n "$EXPECT" && break
8041 done
8042 test -n "$EXPECT" || EXPECT="expect"
8043
8044 case " $configdirs " in
8045 *" expect "*)
8046 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8047 ;;
8048 esac
8049
8050 for ac_prog in runtest
8051 do
8052 # Extract the first word of "$ac_prog", so it can be a program name with args.
8053 set dummy $ac_prog; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if test -n "$RUNTEST"; then
8060 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_RUNTEST="$ac_prog"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073 done
8074 done
8075 IFS=$as_save_IFS
8076
8077 fi
8078 fi
8079 RUNTEST=$ac_cv_prog_RUNTEST
8080 if test -n "$RUNTEST"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8082 $as_echo "$RUNTEST" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 test -n "$RUNTEST" && break
8090 done
8091 test -n "$RUNTEST" || RUNTEST="runtest"
8092
8093 case " $configdirs " in
8094 *" dejagnu "*)
8095 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8096 ;;
8097 esac
8098
8099
8100 # Host tools.
8101 ncn_tool_prefix=
8102 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8103 ncn_target_tool_prefix=
8104 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8105
8106
8107
8108 if test -n "$AR"; then
8109 ac_cv_prog_AR=$AR
8110 elif test -n "$ac_cv_prog_AR"; then
8111 AR=$ac_cv_prog_AR
8112 fi
8113
8114 if test -n "$ac_cv_prog_AR"; then
8115 for ncn_progname in ar; do
8116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8117 set dummy ${ncn_progname}; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if test "${ac_cv_prog_AR+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test -n "$AR"; then
8124 ac_cv_prog_AR="$AR" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8133 ac_cv_prog_AR="${ncn_progname}"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 AR=$ac_cv_prog_AR
8144 if test -n "$AR"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8146 $as_echo "$AR" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153 done
8154 fi
8155
8156 for ncn_progname in ar; do
8157 if test -n "$ncn_tool_prefix"; then
8158 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8159 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if test "${ac_cv_prog_AR+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if test -n "$AR"; then
8166 ac_cv_prog_AR="$AR" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171 IFS=$as_save_IFS
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 AR=$ac_cv_prog_AR
8186 if test -n "$AR"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8188 $as_echo "$AR" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8192 fi
8193
8194
8195 fi
8196 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8198 set dummy ${ncn_progname}; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_AR+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$AR"; then
8205 ac_cv_prog_AR="$AR" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_AR="${ncn_progname}"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218 done
8219 done
8220 IFS=$as_save_IFS
8221
8222 fi
8223 fi
8224 AR=$ac_cv_prog_AR
8225 if test -n "$AR"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8227 $as_echo "$AR" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8231 fi
8232
8233
8234 fi
8235 test -n "$ac_cv_prog_AR" && break
8236 done
8237
8238 if test -z "$ac_cv_prog_AR" ; then
8239 set dummy ar
8240 if test $build = $host ; then
8241 AR="$2"
8242 else
8243 AR="${ncn_tool_prefix}$2"
8244 fi
8245 fi
8246
8247
8248
8249 if test -n "$AS"; then
8250 ac_cv_prog_AS=$AS
8251 elif test -n "$ac_cv_prog_AS"; then
8252 AS=$ac_cv_prog_AS
8253 fi
8254
8255 if test -n "$ac_cv_prog_AS"; then
8256 for ncn_progname in as; do
8257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8258 set dummy ${ncn_progname}; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_AS+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 if test -n "$AS"; then
8265 ac_cv_prog_AS="$AS" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8269 do
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8274 ac_cv_prog_AS="${ncn_progname}"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi
8283 fi
8284 AS=$ac_cv_prog_AS
8285 if test -n "$AS"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8287 $as_echo "$AS" >&6; }
8288 else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294 done
8295 fi
8296
8297 for ncn_progname in as; do
8298 if test -n "$ncn_tool_prefix"; then
8299 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8300 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_prog_AS+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test -n "$AS"; then
8307 ac_cv_prog_AS="$AS" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8316 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 break 2
8319 fi
8320 done
8321 done
8322 IFS=$as_save_IFS
8323
8324 fi
8325 fi
8326 AS=$ac_cv_prog_AS
8327 if test -n "$AS"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8329 $as_echo "$AS" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336 fi
8337 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8339 set dummy ${ncn_progname}; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_AS+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 if test -n "$AS"; then
8346 ac_cv_prog_AS="$AS" # Let the user override the test.
8347 else
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8350 do
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_AS="${ncn_progname}"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8358 fi
8359 done
8360 done
8361 IFS=$as_save_IFS
8362
8363 fi
8364 fi
8365 AS=$ac_cv_prog_AS
8366 if test -n "$AS"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8368 $as_echo "$AS" >&6; }
8369 else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8372 fi
8373
8374
8375 fi
8376 test -n "$ac_cv_prog_AS" && break
8377 done
8378
8379 if test -z "$ac_cv_prog_AS" ; then
8380 set dummy as
8381 if test $build = $host ; then
8382 AS="$2"
8383 else
8384 AS="${ncn_tool_prefix}$2"
8385 fi
8386 fi
8387
8388
8389
8390 if test -n "$DLLTOOL"; then
8391 ac_cv_prog_DLLTOOL=$DLLTOOL
8392 elif test -n "$ac_cv_prog_DLLTOOL"; then
8393 DLLTOOL=$ac_cv_prog_DLLTOOL
8394 fi
8395
8396 if test -n "$ac_cv_prog_DLLTOOL"; then
8397 for ncn_progname in dlltool; do
8398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8399 set dummy ${ncn_progname}; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8401 $as_echo_n "checking for $ac_word... " >&6; }
8402 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 if test -n "$DLLTOOL"; then
8406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8407 else
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH
8410 do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8415 ac_cv_prog_DLLTOOL="${ncn_progname}"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 break 2
8418 fi
8419 done
8420 done
8421 IFS=$as_save_IFS
8422
8423 fi
8424 fi
8425 DLLTOOL=$ac_cv_prog_DLLTOOL
8426 if test -n "$DLLTOOL"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8428 $as_echo "$DLLTOOL" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8432 fi
8433
8434
8435 done
8436 fi
8437
8438 for ncn_progname in dlltool; do
8439 if test -n "$ncn_tool_prefix"; then
8440 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8441 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 if test -n "$DLLTOOL"; then
8448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8449 else
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
8455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8457 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 break 2
8460 fi
8461 done
8462 done
8463 IFS=$as_save_IFS
8464
8465 fi
8466 fi
8467 DLLTOOL=$ac_cv_prog_DLLTOOL
8468 if test -n "$DLLTOOL"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8470 $as_echo "$DLLTOOL" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8474 fi
8475
8476
8477 fi
8478 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8480 set dummy ${ncn_progname}; ac_word=$2
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8482 $as_echo_n "checking for $ac_word... " >&6; }
8483 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 if test -n "$DLLTOOL"; then
8487 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8488 else
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_DLLTOOL="${ncn_progname}"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 fi
8505 fi
8506 DLLTOOL=$ac_cv_prog_DLLTOOL
8507 if test -n "$DLLTOOL"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8509 $as_echo "$DLLTOOL" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514
8515
8516 fi
8517 test -n "$ac_cv_prog_DLLTOOL" && break
8518 done
8519
8520 if test -z "$ac_cv_prog_DLLTOOL" ; then
8521 set dummy dlltool
8522 if test $build = $host ; then
8523 DLLTOOL="$2"
8524 else
8525 DLLTOOL="${ncn_tool_prefix}$2"
8526 fi
8527 fi
8528
8529
8530
8531 if test -n "$LD"; then
8532 ac_cv_prog_LD=$LD
8533 elif test -n "$ac_cv_prog_LD"; then
8534 LD=$ac_cv_prog_LD
8535 fi
8536
8537 if test -n "$ac_cv_prog_LD"; then
8538 for ncn_progname in ld; do
8539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8540 set dummy ${ncn_progname}; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_LD+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 if test -n "$LD"; then
8547 ac_cv_prog_LD="$LD" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_prog_LD="${ncn_progname}"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564 fi
8565 fi
8566 LD=$ac_cv_prog_LD
8567 if test -n "$LD"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8569 $as_echo "$LD" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575
8576 done
8577 fi
8578
8579 for ncn_progname in ld; do
8580 if test -n "$ncn_tool_prefix"; then
8581 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8582 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if test "${ac_cv_prog_LD+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 if test -n "$LD"; then
8589 ac_cv_prog_LD="$LD" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8593 do
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602 done
8603 done
8604 IFS=$as_save_IFS
8605
8606 fi
8607 fi
8608 LD=$ac_cv_prog_LD
8609 if test -n "$LD"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8611 $as_echo "$LD" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618 fi
8619 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8621 set dummy ${ncn_progname}; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_LD+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 if test -n "$LD"; then
8628 ac_cv_prog_LD="$LD" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_LD="${ncn_progname}"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641 done
8642 done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 LD=$ac_cv_prog_LD
8648 if test -n "$LD"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8650 $as_echo "$LD" >&6; }
8651 else
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656
8657 fi
8658 test -n "$ac_cv_prog_LD" && break
8659 done
8660
8661 if test -z "$ac_cv_prog_LD" ; then
8662 set dummy ld
8663 if test $build = $host ; then
8664 LD="$2"
8665 else
8666 LD="${ncn_tool_prefix}$2"
8667 fi
8668 fi
8669
8670
8671
8672 if test -n "$LIPO"; then
8673 ac_cv_prog_LIPO=$LIPO
8674 elif test -n "$ac_cv_prog_LIPO"; then
8675 LIPO=$ac_cv_prog_LIPO
8676 fi
8677
8678 if test -n "$ac_cv_prog_LIPO"; then
8679 for ncn_progname in lipo; do
8680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8681 set dummy ${ncn_progname}; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if test "${ac_cv_prog_LIPO+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 if test -n "$LIPO"; then
8688 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8689 else
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in $PATH
8692 do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_prog_LIPO="${ncn_progname}"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701 done
8702 done
8703 IFS=$as_save_IFS
8704
8705 fi
8706 fi
8707 LIPO=$ac_cv_prog_LIPO
8708 if test -n "$LIPO"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8710 $as_echo "$LIPO" >&6; }
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8714 fi
8715
8716
8717 done
8718 fi
8719
8720 for ncn_progname in lipo; do
8721 if test -n "$ncn_tool_prefix"; then
8722 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8723 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if test "${ac_cv_prog_LIPO+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 if test -n "$LIPO"; then
8730 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743 done
8744 done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 LIPO=$ac_cv_prog_LIPO
8750 if test -n "$LIPO"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8752 $as_echo "$LIPO" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758
8759 fi
8760 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8762 set dummy ${ncn_progname}; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_LIPO+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 if test -n "$LIPO"; then
8769 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_prog_LIPO="${ncn_progname}"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782 done
8783 done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 LIPO=$ac_cv_prog_LIPO
8789 if test -n "$LIPO"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8791 $as_echo "$LIPO" >&6; }
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797
8798 fi
8799 test -n "$ac_cv_prog_LIPO" && break
8800 done
8801
8802 if test -z "$ac_cv_prog_LIPO" ; then
8803 set dummy lipo
8804 if test $build = $host ; then
8805 LIPO="$2"
8806 else
8807 LIPO="${ncn_tool_prefix}$2"
8808 fi
8809 fi
8810
8811
8812
8813 if test -n "$NM"; then
8814 ac_cv_prog_NM=$NM
8815 elif test -n "$ac_cv_prog_NM"; then
8816 NM=$ac_cv_prog_NM
8817 fi
8818
8819 if test -n "$ac_cv_prog_NM"; then
8820 for ncn_progname in nm; do
8821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8822 set dummy ${ncn_progname}; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if test "${ac_cv_prog_NM+set}" = set; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 if test -n "$NM"; then
8829 ac_cv_prog_NM="$NM" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838 ac_cv_prog_NM="${ncn_progname}"
8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842 done
8843 done
8844 IFS=$as_save_IFS
8845
8846 fi
8847 fi
8848 NM=$ac_cv_prog_NM
8849 if test -n "$NM"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8851 $as_echo "$NM" >&6; }
8852 else
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 fi
8856
8857
8858 done
8859 fi
8860
8861 for ncn_progname in nm; do
8862 if test -n "$ncn_tool_prefix"; then
8863 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8864 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if test "${ac_cv_prog_NM+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 if test -n "$NM"; then
8871 ac_cv_prog_NM="$NM" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8875 do
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8883 fi
8884 done
8885 done
8886 IFS=$as_save_IFS
8887
8888 fi
8889 fi
8890 NM=$ac_cv_prog_NM
8891 if test -n "$NM"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8893 $as_echo "$NM" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8897 fi
8898
8899
8900 fi
8901 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8903 set dummy ${ncn_progname}; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_NM+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 if test -n "$NM"; then
8910 ac_cv_prog_NM="$NM" # Let the user override the test.
8911 else
8912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913 for as_dir in $PATH
8914 do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_NM="${ncn_progname}"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923 done
8924 done
8925 IFS=$as_save_IFS
8926
8927 fi
8928 fi
8929 NM=$ac_cv_prog_NM
8930 if test -n "$NM"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8932 $as_echo "$NM" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939 fi
8940 test -n "$ac_cv_prog_NM" && break
8941 done
8942
8943 if test -z "$ac_cv_prog_NM" ; then
8944 set dummy nm
8945 if test $build = $host ; then
8946 NM="$2"
8947 else
8948 NM="${ncn_tool_prefix}$2"
8949 fi
8950 fi
8951
8952
8953
8954 if test -n "$RANLIB"; then
8955 ac_cv_prog_RANLIB=$RANLIB
8956 elif test -n "$ac_cv_prog_RANLIB"; then
8957 RANLIB=$ac_cv_prog_RANLIB
8958 fi
8959
8960 if test -n "$ac_cv_prog_RANLIB"; then
8961 for ncn_progname in ranlib; do
8962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8963 set dummy ${ncn_progname}; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 if test -n "$RANLIB"; then
8970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979 ac_cv_prog_RANLIB="${ncn_progname}"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983 done
8984 done
8985 IFS=$as_save_IFS
8986
8987 fi
8988 fi
8989 RANLIB=$ac_cv_prog_RANLIB
8990 if test -n "$RANLIB"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8992 $as_echo "$RANLIB" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997
8998
8999 done
9000 fi
9001
9002 for ncn_progname in ranlib; do
9003 if test -n "$ncn_tool_prefix"; then
9004 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9005 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 if test -n "$RANLIB"; then
9012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9016 do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9024 fi
9025 done
9026 done
9027 IFS=$as_save_IFS
9028
9029 fi
9030 fi
9031 RANLIB=$ac_cv_prog_RANLIB
9032 if test -n "$RANLIB"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9034 $as_echo "$RANLIB" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 fi
9039
9040
9041 fi
9042 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9044 set dummy ${ncn_progname}; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 if test -n "$RANLIB"; then
9051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_RANLIB="${ncn_progname}"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064 done
9065 done
9066 IFS=$as_save_IFS
9067
9068 fi
9069 fi
9070 RANLIB=$ac_cv_prog_RANLIB
9071 if test -n "$RANLIB"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9073 $as_echo "$RANLIB" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9077 fi
9078
9079
9080 fi
9081 test -n "$ac_cv_prog_RANLIB" && break
9082 done
9083
9084 if test -z "$ac_cv_prog_RANLIB" ; then
9085 RANLIB="true"
9086 fi
9087
9088
9089
9090 if test -n "$STRIP"; then
9091 ac_cv_prog_STRIP=$STRIP
9092 elif test -n "$ac_cv_prog_STRIP"; then
9093 STRIP=$ac_cv_prog_STRIP
9094 fi
9095
9096 if test -n "$ac_cv_prog_STRIP"; then
9097 for ncn_progname in strip; do
9098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9099 set dummy ${ncn_progname}; ac_word=$2
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101 $as_echo_n "checking for $ac_word... " >&6; }
9102 if test "${ac_cv_prog_STRIP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 if test -n "$STRIP"; then
9106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9107 else
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9110 do
9111 IFS=$as_save_IFS
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9115 ac_cv_prog_STRIP="${ncn_progname}"
9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 break 2
9118 fi
9119 done
9120 done
9121 IFS=$as_save_IFS
9122
9123 fi
9124 fi
9125 STRIP=$ac_cv_prog_STRIP
9126 if test -n "$STRIP"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9128 $as_echo "$STRIP" >&6; }
9129 else
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9131 $as_echo "no" >&6; }
9132 fi
9133
9134
9135 done
9136 fi
9137
9138 for ncn_progname in strip; do
9139 if test -n "$ncn_tool_prefix"; then
9140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9141 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if test "${ac_cv_prog_STRIP+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9146 else
9147 if test -n "$STRIP"; then
9148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9149 else
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 for as_dir in $PATH
9152 do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9157 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161 done
9162 done
9163 IFS=$as_save_IFS
9164
9165 fi
9166 fi
9167 STRIP=$ac_cv_prog_STRIP
9168 if test -n "$STRIP"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9170 $as_echo "$STRIP" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173 $as_echo "no" >&6; }
9174 fi
9175
9176
9177 fi
9178 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9180 set dummy ${ncn_progname}; ac_word=$2
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182 $as_echo_n "checking for $ac_word... " >&6; }
9183 if test "${ac_cv_prog_STRIP+set}" = set; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 if test -n "$STRIP"; then
9187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9188 else
9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9190 for as_dir in $PATH
9191 do
9192 IFS=$as_save_IFS
9193 test -z "$as_dir" && as_dir=.
9194 for ac_exec_ext in '' $ac_executable_extensions; do
9195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9196 ac_cv_prog_STRIP="${ncn_progname}"
9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 break 2
9199 fi
9200 done
9201 done
9202 IFS=$as_save_IFS
9203
9204 fi
9205 fi
9206 STRIP=$ac_cv_prog_STRIP
9207 if test -n "$STRIP"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9209 $as_echo "$STRIP" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 fi
9214
9215
9216 fi
9217 test -n "$ac_cv_prog_STRIP" && break
9218 done
9219
9220 if test -z "$ac_cv_prog_STRIP" ; then
9221 STRIP="true"
9222 fi
9223
9224
9225
9226 if test -n "$WINDRES"; then
9227 ac_cv_prog_WINDRES=$WINDRES
9228 elif test -n "$ac_cv_prog_WINDRES"; then
9229 WINDRES=$ac_cv_prog_WINDRES
9230 fi
9231
9232 if test -n "$ac_cv_prog_WINDRES"; then
9233 for ncn_progname in windres; do
9234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9235 set dummy ${ncn_progname}; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 if test -n "$WINDRES"; then
9242 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251 ac_cv_prog_WINDRES="${ncn_progname}"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255 done
9256 done
9257 IFS=$as_save_IFS
9258
9259 fi
9260 fi
9261 WINDRES=$ac_cv_prog_WINDRES
9262 if test -n "$WINDRES"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9264 $as_echo "$WINDRES" >&6; }
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9268 fi
9269
9270
9271 done
9272 fi
9273
9274 for ncn_progname in windres; do
9275 if test -n "$ncn_tool_prefix"; then
9276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9277 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 if test -n "$WINDRES"; then
9284 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9285 else
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289 IFS=$as_save_IFS
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295 break 2
9296 fi
9297 done
9298 done
9299 IFS=$as_save_IFS
9300
9301 fi
9302 fi
9303 WINDRES=$ac_cv_prog_WINDRES
9304 if test -n "$WINDRES"; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9306 $as_echo "$WINDRES" >&6; }
9307 else
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309 $as_echo "no" >&6; }
9310 fi
9311
9312
9313 fi
9314 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9316 set dummy ${ncn_progname}; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322 if test -n "$WINDRES"; then
9323 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9324 else
9325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 for as_dir in $PATH
9327 do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
9331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9332 ac_cv_prog_WINDRES="${ncn_progname}"
9333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336 done
9337 done
9338 IFS=$as_save_IFS
9339
9340 fi
9341 fi
9342 WINDRES=$ac_cv_prog_WINDRES
9343 if test -n "$WINDRES"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9345 $as_echo "$WINDRES" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9349 fi
9350
9351
9352 fi
9353 test -n "$ac_cv_prog_WINDRES" && break
9354 done
9355
9356 if test -z "$ac_cv_prog_WINDRES" ; then
9357 set dummy windres
9358 if test $build = $host ; then
9359 WINDRES="$2"
9360 else
9361 WINDRES="${ncn_tool_prefix}$2"
9362 fi
9363 fi
9364
9365
9366
9367 if test -n "$WINDMC"; then
9368 ac_cv_prog_WINDMC=$WINDMC
9369 elif test -n "$ac_cv_prog_WINDMC"; then
9370 WINDMC=$ac_cv_prog_WINDMC
9371 fi
9372
9373 if test -n "$ac_cv_prog_WINDMC"; then
9374 for ncn_progname in windmc; do
9375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9376 set dummy ${ncn_progname}; ac_word=$2
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 $as_echo_n "checking for $ac_word... " >&6; }
9379 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 if test -n "$WINDMC"; then
9383 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9387 do
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_prog_WINDMC="${ncn_progname}"
9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9395 fi
9396 done
9397 done
9398 IFS=$as_save_IFS
9399
9400 fi
9401 fi
9402 WINDMC=$ac_cv_prog_WINDMC
9403 if test -n "$WINDMC"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9405 $as_echo "$WINDMC" >&6; }
9406 else
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409 fi
9410
9411
9412 done
9413 fi
9414
9415 for ncn_progname in windmc; do
9416 if test -n "$ncn_tool_prefix"; then
9417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420 $as_echo_n "checking for $ac_word... " >&6; }
9421 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 if test -n "$WINDMC"; then
9425 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9426 else
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9437 fi
9438 done
9439 done
9440 IFS=$as_save_IFS
9441
9442 fi
9443 fi
9444 WINDMC=$ac_cv_prog_WINDMC
9445 if test -n "$WINDMC"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9447 $as_echo "$WINDMC" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452
9453
9454 fi
9455 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9457 set dummy ${ncn_progname}; ac_word=$2
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9459 $as_echo_n "checking for $ac_word... " >&6; }
9460 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 if test -n "$WINDMC"; then
9464 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9465 else
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9468 do
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_prog_WINDMC="${ncn_progname}"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9476 fi
9477 done
9478 done
9479 IFS=$as_save_IFS
9480
9481 fi
9482 fi
9483 WINDMC=$ac_cv_prog_WINDMC
9484 if test -n "$WINDMC"; then
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9486 $as_echo "$WINDMC" >&6; }
9487 else
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9489 $as_echo "no" >&6; }
9490 fi
9491
9492
9493 fi
9494 test -n "$ac_cv_prog_WINDMC" && break
9495 done
9496
9497 if test -z "$ac_cv_prog_WINDMC" ; then
9498 set dummy windmc
9499 if test $build = $host ; then
9500 WINDMC="$2"
9501 else
9502 WINDMC="${ncn_tool_prefix}$2"
9503 fi
9504 fi
9505
9506
9507
9508 if test -n "$OBJCOPY"; then
9509 ac_cv_prog_OBJCOPY=$OBJCOPY
9510 elif test -n "$ac_cv_prog_OBJCOPY"; then
9511 OBJCOPY=$ac_cv_prog_OBJCOPY
9512 fi
9513
9514 if test -n "$ac_cv_prog_OBJCOPY"; then
9515 for ncn_progname in objcopy; do
9516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9517 set dummy ${ncn_progname}; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 if test -n "$OBJCOPY"; then
9524 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9525 else
9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527 for as_dir in $PATH
9528 do
9529 IFS=$as_save_IFS
9530 test -z "$as_dir" && as_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9533 ac_cv_prog_OBJCOPY="${ncn_progname}"
9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 break 2
9536 fi
9537 done
9538 done
9539 IFS=$as_save_IFS
9540
9541 fi
9542 fi
9543 OBJCOPY=$ac_cv_prog_OBJCOPY
9544 if test -n "$OBJCOPY"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9546 $as_echo "$OBJCOPY" >&6; }
9547 else
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 fi
9551
9552
9553 done
9554 fi
9555
9556 for ncn_progname in objcopy; do
9557 if test -n "$ncn_tool_prefix"; then
9558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 if test -n "$OBJCOPY"; then
9566 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579 done
9580 done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 OBJCOPY=$ac_cv_prog_OBJCOPY
9586 if test -n "$OBJCOPY"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9588 $as_echo "$OBJCOPY" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595 fi
9596 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9598 set dummy ${ncn_progname}; ac_word=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 if test -n "$OBJCOPY"; then
9605 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9606 else
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9609 do
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_prog_OBJCOPY="${ncn_progname}"
9615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9617 fi
9618 done
9619 done
9620 IFS=$as_save_IFS
9621
9622 fi
9623 fi
9624 OBJCOPY=$ac_cv_prog_OBJCOPY
9625 if test -n "$OBJCOPY"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9627 $as_echo "$OBJCOPY" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9630 $as_echo "no" >&6; }
9631 fi
9632
9633
9634 fi
9635 test -n "$ac_cv_prog_OBJCOPY" && break
9636 done
9637
9638 if test -z "$ac_cv_prog_OBJCOPY" ; then
9639 set dummy objcopy
9640 if test $build = $host ; then
9641 OBJCOPY="$2"
9642 else
9643 OBJCOPY="${ncn_tool_prefix}$2"
9644 fi
9645 fi
9646
9647
9648
9649 if test -n "$OBJDUMP"; then
9650 ac_cv_prog_OBJDUMP=$OBJDUMP
9651 elif test -n "$ac_cv_prog_OBJDUMP"; then
9652 OBJDUMP=$ac_cv_prog_OBJDUMP
9653 fi
9654
9655 if test -n "$ac_cv_prog_OBJDUMP"; then
9656 for ncn_progname in objdump; do
9657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9658 set dummy ${ncn_progname}; ac_word=$2
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9660 $as_echo_n "checking for $ac_word... " >&6; }
9661 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9662 $as_echo_n "(cached) " >&6
9663 else
9664 if test -n "$OBJDUMP"; then
9665 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9666 else
9667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 for as_dir in $PATH
9669 do
9670 IFS=$as_save_IFS
9671 test -z "$as_dir" && as_dir=.
9672 for ac_exec_ext in '' $ac_executable_extensions; do
9673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9674 ac_cv_prog_OBJDUMP="${ncn_progname}"
9675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 break 2
9677 fi
9678 done
9679 done
9680 IFS=$as_save_IFS
9681
9682 fi
9683 fi
9684 OBJDUMP=$ac_cv_prog_OBJDUMP
9685 if test -n "$OBJDUMP"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9687 $as_echo "$OBJDUMP" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 fi
9692
9693
9694 done
9695 fi
9696
9697 for ncn_progname in objdump; do
9698 if test -n "$ncn_tool_prefix"; then
9699 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9700 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702 $as_echo_n "checking for $ac_word... " >&6; }
9703 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 if test -n "$OBJDUMP"; then
9707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9708 else
9709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712 IFS=$as_save_IFS
9713 test -z "$as_dir" && as_dir=.
9714 for ac_exec_ext in '' $ac_executable_extensions; do
9715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9716 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 break 2
9719 fi
9720 done
9721 done
9722 IFS=$as_save_IFS
9723
9724 fi
9725 fi
9726 OBJDUMP=$ac_cv_prog_OBJDUMP
9727 if test -n "$OBJDUMP"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9729 $as_echo "$OBJDUMP" >&6; }
9730 else
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734
9735
9736 fi
9737 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9739 set dummy ${ncn_progname}; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 if test -n "$OBJDUMP"; then
9746 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9747 else
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_prog_OBJDUMP="${ncn_progname}"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759 done
9760 done
9761 IFS=$as_save_IFS
9762
9763 fi
9764 fi
9765 OBJDUMP=$ac_cv_prog_OBJDUMP
9766 if test -n "$OBJDUMP"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9768 $as_echo "$OBJDUMP" >&6; }
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9772 fi
9773
9774
9775 fi
9776 test -n "$ac_cv_prog_OBJDUMP" && break
9777 done
9778
9779 if test -z "$ac_cv_prog_OBJDUMP" ; then
9780 set dummy objdump
9781 if test $build = $host ; then
9782 OBJDUMP="$2"
9783 else
9784 OBJDUMP="${ncn_tool_prefix}$2"
9785 fi
9786 fi
9787
9788
9789
9790 if test -n "$READELF"; then
9791 ac_cv_prog_READELF=$READELF
9792 elif test -n "$ac_cv_prog_READELF"; then
9793 READELF=$ac_cv_prog_READELF
9794 fi
9795
9796 if test -n "$ac_cv_prog_READELF"; then
9797 for ncn_progname in readelf; do
9798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9799 set dummy ${ncn_progname}; ac_word=$2
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801 $as_echo_n "checking for $ac_word... " >&6; }
9802 if test "${ac_cv_prog_READELF+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 if test -n "$READELF"; then
9806 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9807 else
9808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809 for as_dir in $PATH
9810 do
9811 IFS=$as_save_IFS
9812 test -z "$as_dir" && as_dir=.
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9815 ac_cv_prog_READELF="${ncn_progname}"
9816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 fi
9824 fi
9825 READELF=$ac_cv_prog_READELF
9826 if test -n "$READELF"; then
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9828 $as_echo "$READELF" >&6; }
9829 else
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 $as_echo "no" >&6; }
9832 fi
9833
9834
9835 done
9836 fi
9837
9838 for ncn_progname in readelf; do
9839 if test -n "$ncn_tool_prefix"; then
9840 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9841 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if test "${ac_cv_prog_READELF+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 if test -n "$READELF"; then
9848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9849 else
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9852 do
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9860 fi
9861 done
9862 done
9863 IFS=$as_save_IFS
9864
9865 fi
9866 fi
9867 READELF=$ac_cv_prog_READELF
9868 if test -n "$READELF"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9870 $as_echo "$READELF" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875
9876
9877 fi
9878 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9880 set dummy ${ncn_progname}; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if test "${ac_cv_prog_READELF+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 if test -n "$READELF"; then
9887 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9888 else
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9891 do
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_prog_READELF="${ncn_progname}"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9899 fi
9900 done
9901 done
9902 IFS=$as_save_IFS
9903
9904 fi
9905 fi
9906 READELF=$ac_cv_prog_READELF
9907 if test -n "$READELF"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9909 $as_echo "$READELF" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9913 fi
9914
9915
9916 fi
9917 test -n "$ac_cv_prog_READELF" && break
9918 done
9919
9920 if test -z "$ac_cv_prog_READELF" ; then
9921 set dummy readelf
9922 if test $build = $host ; then
9923 READELF="$2"
9924 else
9925 READELF="${ncn_tool_prefix}$2"
9926 fi
9927 fi
9928
9929
9930
9931
9932
9933
9934 # Target tools.
9935
9936 # Check whether --with-build-time-tools was given.
9937 if test "${with_build_time_tools+set}" = set; then :
9938 withval=$with_build_time_tools; case x"$withval" in
9939 x/*) ;;
9940 *)
9941 with_build_time_tools=
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9943 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9944 ;;
9945 esac
9946 else
9947 with_build_time_tools=
9948 fi
9949
9950
9951
9952
9953 if test -n "$CC_FOR_TARGET"; then
9954 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9955 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9956 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9957 fi
9958
9959 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9960 for ncn_progname in cc gcc; do
9961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9962 set dummy ${ncn_progname}; ac_word=$2
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9964 $as_echo_n "checking for $ac_word... " >&6; }
9965 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if test -n "$CC_FOR_TARGET"; then
9969 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9970 else
9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
9977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9978 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9981 fi
9982 done
9983 done
9984 IFS=$as_save_IFS
9985
9986 fi
9987 fi
9988 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9989 if test -n "$CC_FOR_TARGET"; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9991 $as_echo "$CC_FOR_TARGET" >&6; }
9992 else
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9994 $as_echo "no" >&6; }
9995 fi
9996
9997
9998 done
9999 fi
10000
10001 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10002 for ncn_progname in cc gcc; do
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10004 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10005 if test -x $with_build_time_tools/${ncn_progname}; then
10006 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10008 $as_echo "yes" >&6; }
10009 break
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10013 fi
10014 done
10015 fi
10016
10017 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10018 for ncn_progname in cc gcc; do
10019 if test -n "$ncn_target_tool_prefix"; then
10020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023 $as_echo_n "checking for $ac_word... " >&6; }
10024 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 if test -n "$CC_FOR_TARGET"; then
10028 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10029 else
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10032 do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041 done
10042 done
10043 IFS=$as_save_IFS
10044
10045 fi
10046 fi
10047 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10048 if test -n "$CC_FOR_TARGET"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10050 $as_echo "$CC_FOR_TARGET" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055
10056
10057 fi
10058 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10060 set dummy ${ncn_progname}; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 if test -n "$CC_FOR_TARGET"; then
10067 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10068 else
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10079 fi
10080 done
10081 done
10082 IFS=$as_save_IFS
10083
10084 fi
10085 fi
10086 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10087 if test -n "$CC_FOR_TARGET"; then
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10089 $as_echo "$CC_FOR_TARGET" >&6; }
10090 else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10093 fi
10094
10095
10096 fi
10097 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10098 done
10099 fi
10100
10101 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10102 set dummy cc gcc
10103 if test $build = $target ; then
10104 CC_FOR_TARGET="$2"
10105 else
10106 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10107 fi
10108 else
10109 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10110 fi
10111
10112
10113
10114 if test -n "$CXX_FOR_TARGET"; then
10115 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10116 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10117 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10118 fi
10119
10120 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10121 for ncn_progname in c++ g++ cxx gxx; do
10122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10123 set dummy ${ncn_progname}; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125 $as_echo_n "checking for $ac_word... " >&6; }
10126 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 if test -n "$CXX_FOR_TARGET"; then
10130 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10131 else
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10134 do
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10142 fi
10143 done
10144 done
10145 IFS=$as_save_IFS
10146
10147 fi
10148 fi
10149 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10150 if test -n "$CXX_FOR_TARGET"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10152 $as_echo "$CXX_FOR_TARGET" >&6; }
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10156 fi
10157
10158
10159 done
10160 fi
10161
10162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10163 for ncn_progname in c++ g++ cxx gxx; do
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10165 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10166 if test -x $with_build_time_tools/${ncn_progname}; then
10167 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10169 $as_echo "yes" >&6; }
10170 break
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10174 fi
10175 done
10176 fi
10177
10178 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10179 for ncn_progname in c++ g++ cxx gxx; do
10180 if test -n "$ncn_target_tool_prefix"; then
10181 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10182 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10184 $as_echo_n "checking for $ac_word... " >&6; }
10185 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 if test -n "$CXX_FOR_TARGET"; then
10189 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10190 else
10191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192 for as_dir in $PATH
10193 do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
10197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10198 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202 done
10203 done
10204 IFS=$as_save_IFS
10205
10206 fi
10207 fi
10208 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10209 if test -n "$CXX_FOR_TARGET"; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10211 $as_echo "$CXX_FOR_TARGET" >&6; }
10212 else
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10214 $as_echo "no" >&6; }
10215 fi
10216
10217
10218 fi
10219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10221 set dummy ${ncn_progname}; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 if test -n "$CXX_FOR_TARGET"; then
10228 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241 done
10242 done
10243 IFS=$as_save_IFS
10244
10245 fi
10246 fi
10247 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10248 if test -n "$CXX_FOR_TARGET"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10250 $as_echo "$CXX_FOR_TARGET" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10254 fi
10255
10256
10257 fi
10258 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10259 done
10260 fi
10261
10262 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10263 set dummy c++ g++ cxx gxx
10264 if test $build = $target ; then
10265 CXX_FOR_TARGET="$2"
10266 else
10267 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10268 fi
10269 else
10270 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10271 fi
10272
10273
10274
10275 if test -n "$GCC_FOR_TARGET"; then
10276 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10277 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10278 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10279 fi
10280
10281 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10282 for ncn_progname in gcc; do
10283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10284 set dummy ${ncn_progname}; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 if test -n "$GCC_FOR_TARGET"; then
10291 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10292 else
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10300 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 break 2
10303 fi
10304 done
10305 done
10306 IFS=$as_save_IFS
10307
10308 fi
10309 fi
10310 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10311 if test -n "$GCC_FOR_TARGET"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10313 $as_echo "$GCC_FOR_TARGET" >&6; }
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10317 fi
10318
10319
10320 done
10321 fi
10322
10323 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10324 for ncn_progname in gcc; do
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10326 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10327 if test -x $with_build_time_tools/${ncn_progname}; then
10328 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10330 $as_echo "yes" >&6; }
10331 break
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336 done
10337 fi
10338
10339 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10340 for ncn_progname in gcc; do
10341 if test -n "$ncn_target_tool_prefix"; then
10342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10343 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 if test -n "$GCC_FOR_TARGET"; then
10350 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10351 else
10352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353 for as_dir in $PATH
10354 do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363 done
10364 done
10365 IFS=$as_save_IFS
10366
10367 fi
10368 fi
10369 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10370 if test -n "$GCC_FOR_TARGET"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10372 $as_echo "$GCC_FOR_TARGET" >&6; }
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 fi
10377
10378
10379 fi
10380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10382 set dummy ${ncn_progname}; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 if test -n "$GCC_FOR_TARGET"; then
10389 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402 done
10403 done
10404 IFS=$as_save_IFS
10405
10406 fi
10407 fi
10408 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10409 if test -n "$GCC_FOR_TARGET"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10411 $as_echo "$GCC_FOR_TARGET" >&6; }
10412 else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417
10418 fi
10419 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10420 done
10421 fi
10422
10423 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10424 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10425 else
10426 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10427 fi
10428
10429
10430
10431 if test -n "$GCJ_FOR_TARGET"; then
10432 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10433 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10434 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10435 fi
10436
10437 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10438 for ncn_progname in gcj; do
10439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10440 set dummy ${ncn_progname}; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 if test -n "$GCJ_FOR_TARGET"; then
10447 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460 done
10461 done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10467 if test -n "$GCJ_FOR_TARGET"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10469 $as_echo "$GCJ_FOR_TARGET" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475
10476 done
10477 fi
10478
10479 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10480 for ncn_progname in gcj; do
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10482 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10483 if test -x $with_build_time_tools/${ncn_progname}; then
10484 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; }
10487 break
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 fi
10492 done
10493 fi
10494
10495 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10496 for ncn_progname in gcj; do
10497 if test -n "$ncn_target_tool_prefix"; then
10498 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10499 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 if test -n "$GCJ_FOR_TARGET"; then
10506 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10507 else
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519 done
10520 done
10521 IFS=$as_save_IFS
10522
10523 fi
10524 fi
10525 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10526 if test -n "$GCJ_FOR_TARGET"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10528 $as_echo "$GCJ_FOR_TARGET" >&6; }
10529 else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 fi
10533
10534
10535 fi
10536 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10538 set dummy ${ncn_progname}; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 if test -n "$GCJ_FOR_TARGET"; then
10545 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558 done
10559 done
10560 IFS=$as_save_IFS
10561
10562 fi
10563 fi
10564 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10565 if test -n "$GCJ_FOR_TARGET"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10567 $as_echo "$GCJ_FOR_TARGET" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10573
10574 fi
10575 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10576 done
10577 fi
10578
10579 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10580 set dummy gcj
10581 if test $build = $target ; then
10582 GCJ_FOR_TARGET="$2"
10583 else
10584 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10585 fi
10586 else
10587 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10588 fi
10589
10590
10591
10592 if test -n "$GFORTRAN_FOR_TARGET"; then
10593 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10594 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10595 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10596 fi
10597
10598 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10599 for ncn_progname in gfortran; do
10600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10601 set dummy ${ncn_progname}; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 if test -n "$GFORTRAN_FOR_TARGET"; then
10608 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619 break 2
10620 fi
10621 done
10622 done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10628 if test -n "$GFORTRAN_FOR_TARGET"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10630 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637 done
10638 fi
10639
10640 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10641 for ncn_progname in gfortran; do
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10644 if test -x $with_build_time_tools/${ncn_progname}; then
10645 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 $as_echo "yes" >&6; }
10648 break
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10652 fi
10653 done
10654 fi
10655
10656 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10657 for ncn_progname in gfortran; do
10658 if test -n "$ncn_target_tool_prefix"; then
10659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 $as_echo_n "checking for $ac_word... " >&6; }
10663 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 if test -n "$GFORTRAN_FOR_TARGET"; then
10667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10668 else
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10671 do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680 done
10681 done
10682 IFS=$as_save_IFS
10683
10684 fi
10685 fi
10686 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10687 if test -n "$GFORTRAN_FOR_TARGET"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10689 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693 fi
10694
10695
10696 fi
10697 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10699 set dummy ${ncn_progname}; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701 $as_echo_n "checking for $ac_word... " >&6; }
10702 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 if test -n "$GFORTRAN_FOR_TARGET"; then
10706 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10707 else
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10710 do
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10715 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 break 2
10718 fi
10719 done
10720 done
10721 IFS=$as_save_IFS
10722
10723 fi
10724 fi
10725 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10726 if test -n "$GFORTRAN_FOR_TARGET"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10728 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10729 else
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731 $as_echo "no" >&6; }
10732 fi
10733
10734
10735 fi
10736 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10737 done
10738 fi
10739
10740 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10741 set dummy gfortran
10742 if test $build = $target ; then
10743 GFORTRAN_FOR_TARGET="$2"
10744 else
10745 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10746 fi
10747 else
10748 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10749 fi
10750
10751
10752
10753 if test -n "$GOC_FOR_TARGET"; then
10754 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10755 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10756 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10757 fi
10758
10759 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10760 for ncn_progname in gccgo; do
10761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$GOC_FOR_TARGET"; then
10769 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10773 do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10781 fi
10782 done
10783 done
10784 IFS=$as_save_IFS
10785
10786 fi
10787 fi
10788 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10789 if test -n "$GOC_FOR_TARGET"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10791 $as_echo "$GOC_FOR_TARGET" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10795 fi
10796
10797
10798 done
10799 fi
10800
10801 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10802 for ncn_progname in gccgo; do
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10804 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10805 if test -x $with_build_time_tools/${ncn_progname}; then
10806 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; }
10809 break
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10813 fi
10814 done
10815 fi
10816
10817 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10818 for ncn_progname in gccgo; do
10819 if test -n "$ncn_target_tool_prefix"; then
10820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 if test -n "$GOC_FOR_TARGET"; then
10828 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10829 else
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10840 fi
10841 done
10842 done
10843 IFS=$as_save_IFS
10844
10845 fi
10846 fi
10847 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10848 if test -n "$GOC_FOR_TARGET"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10850 $as_echo "$GOC_FOR_TARGET" >&6; }
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10854 fi
10855
10856
10857 fi
10858 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10860 set dummy ${ncn_progname}; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test -n "$GOC_FOR_TARGET"; then
10867 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10868 else
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10871 do
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10876 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 break 2
10879 fi
10880 done
10881 done
10882 IFS=$as_save_IFS
10883
10884 fi
10885 fi
10886 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10887 if test -n "$GOC_FOR_TARGET"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10889 $as_echo "$GOC_FOR_TARGET" >&6; }
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893 fi
10894
10895
10896 fi
10897 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10898 done
10899 fi
10900
10901 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10902 set dummy gccgo
10903 if test $build = $target ; then
10904 GOC_FOR_TARGET="$2"
10905 else
10906 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10907 fi
10908 else
10909 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10910 fi
10911
10912
10913
10914 cat > conftest.c << \EOF
10915 #ifdef __GNUC__
10916 gcc_yay;
10917 #endif
10918 EOF
10919 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10920 have_gcc_for_target=yes
10921 else
10922 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10923 have_gcc_for_target=no
10924 fi
10925 rm conftest.c
10926
10927
10928
10929
10930 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10931 if test -n "$with_build_time_tools"; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10933 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10934 if test -x $with_build_time_tools/ar; then
10935 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10936 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10938 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10942 fi
10943 elif test $build != $host && test $have_gcc_for_target = yes; then
10944 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10945 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10946 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10947 fi
10948 fi
10949 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10950 # Extract the first word of "ar", so it can be a program name with args.
10951 set dummy ar; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 case $AR_FOR_TARGET in
10958 [\\/]* | ?:[\\/]*)
10959 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10960 ;;
10961 *)
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $gcc_cv_tool_dirs
10964 do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10971 break 2
10972 fi
10973 done
10974 done
10975 IFS=$as_save_IFS
10976
10977 ;;
10978 esac
10979 fi
10980 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10981 if test -n "$AR_FOR_TARGET"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10983 $as_echo "$AR_FOR_TARGET" >&6; }
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 fi
10988
10989
10990 fi
10991 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10992
10993
10994 if test -n "$AR_FOR_TARGET"; then
10995 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10996 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10997 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10998 fi
10999
11000 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11001 for ncn_progname in ar; do
11002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11003 set dummy ${ncn_progname}; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 if test -n "$AR_FOR_TARGET"; then
11010 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11022 fi
11023 done
11024 done
11025 IFS=$as_save_IFS
11026
11027 fi
11028 fi
11029 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11030 if test -n "$AR_FOR_TARGET"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11032 $as_echo "$AR_FOR_TARGET" >&6; }
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 fi
11037
11038
11039 done
11040 fi
11041
11042 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11043 for ncn_progname in ar; do
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11045 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11046 if test -x $with_build_time_tools/${ncn_progname}; then
11047 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11049 $as_echo "yes" >&6; }
11050 break
11051 else
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055 done
11056 fi
11057
11058 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11059 for ncn_progname in ar; do
11060 if test -n "$ncn_target_tool_prefix"; then
11061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11062 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 if test -n "$AR_FOR_TARGET"; then
11069 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11070 else
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11073 do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080 break 2
11081 fi
11082 done
11083 done
11084 IFS=$as_save_IFS
11085
11086 fi
11087 fi
11088 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11089 if test -n "$AR_FOR_TARGET"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11091 $as_echo "$AR_FOR_TARGET" >&6; }
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096
11097
11098 fi
11099 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11101 set dummy ${ncn_progname}; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 if test -n "$AR_FOR_TARGET"; then
11108 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11109 else
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11112 do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121 done
11122 done
11123 IFS=$as_save_IFS
11124
11125 fi
11126 fi
11127 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11128 if test -n "$AR_FOR_TARGET"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11130 $as_echo "$AR_FOR_TARGET" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135
11136
11137 fi
11138 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11139 done
11140 fi
11141
11142 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11143 set dummy ar
11144 if test $build = $target ; then
11145 AR_FOR_TARGET="$2"
11146 else
11147 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11148 fi
11149 else
11150 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11151 fi
11152
11153 else
11154 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11155 fi
11156
11157
11158
11159
11160 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11161 if test -n "$with_build_time_tools"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11163 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11164 if test -x $with_build_time_tools/as; then
11165 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11166 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11168 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173 elif test $build != $host && test $have_gcc_for_target = yes; then
11174 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11175 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11176 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11177 fi
11178 fi
11179 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11180 # Extract the first word of "as", so it can be a program name with args.
11181 set dummy as; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 case $AS_FOR_TARGET in
11188 [\\/]* | ?:[\\/]*)
11189 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11190 ;;
11191 *)
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $gcc_cv_tool_dirs
11194 do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203 done
11204 done
11205 IFS=$as_save_IFS
11206
11207 ;;
11208 esac
11209 fi
11210 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11211 if test -n "$AS_FOR_TARGET"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11213 $as_echo "$AS_FOR_TARGET" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11217 fi
11218
11219
11220 fi
11221 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11222
11223
11224 if test -n "$AS_FOR_TARGET"; then
11225 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11226 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11227 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11228 fi
11229
11230 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11231 for ncn_progname in as; do
11232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11233 set dummy ${ncn_progname}; ac_word=$2
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11235 $as_echo_n "checking for $ac_word... " >&6; }
11236 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 if test -n "$AS_FOR_TARGET"; then
11240 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11241 else
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11244 do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257 fi
11258 fi
11259 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11260 if test -n "$AS_FOR_TARGET"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11262 $as_echo "$AS_FOR_TARGET" >&6; }
11263 else
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11265 $as_echo "no" >&6; }
11266 fi
11267
11268
11269 done
11270 fi
11271
11272 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11273 for ncn_progname in as; do
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11275 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11276 if test -x $with_build_time_tools/${ncn_progname}; then
11277 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11279 $as_echo "yes" >&6; }
11280 break
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11284 fi
11285 done
11286 fi
11287
11288 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11289 for ncn_progname in as; do
11290 if test -n "$ncn_target_tool_prefix"; then
11291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11292 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294 $as_echo_n "checking for $ac_word... " >&6; }
11295 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 if test -n "$AS_FOR_TARGET"; then
11299 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11300 else
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11303 do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 break 2
11311 fi
11312 done
11313 done
11314 IFS=$as_save_IFS
11315
11316 fi
11317 fi
11318 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11319 if test -n "$AS_FOR_TARGET"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11321 $as_echo "$AS_FOR_TARGET" >&6; }
11322 else
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 $as_echo "no" >&6; }
11325 fi
11326
11327
11328 fi
11329 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11331 set dummy ${ncn_progname}; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 if test -n "$AS_FOR_TARGET"; then
11338 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11339 else
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11342 do
11343 IFS=$as_save_IFS
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 break 2
11350 fi
11351 done
11352 done
11353 IFS=$as_save_IFS
11354
11355 fi
11356 fi
11357 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11358 if test -n "$AS_FOR_TARGET"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11360 $as_echo "$AS_FOR_TARGET" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365
11366
11367 fi
11368 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11369 done
11370 fi
11371
11372 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11373 set dummy as
11374 if test $build = $target ; then
11375 AS_FOR_TARGET="$2"
11376 else
11377 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11378 fi
11379 else
11380 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11381 fi
11382
11383 else
11384 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11385 fi
11386
11387
11388
11389
11390 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11391 if test -n "$with_build_time_tools"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11393 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11394 if test -x $with_build_time_tools/dlltool; then
11395 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11396 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11398 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403 elif test $build != $host && test $have_gcc_for_target = yes; then
11404 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11405 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11406 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11407 fi
11408 fi
11409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11410 # Extract the first word of "dlltool", so it can be a program name with args.
11411 set dummy dlltool; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 case $DLLTOOL_FOR_TARGET in
11418 [\\/]* | ?:[\\/]*)
11419 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11420 ;;
11421 *)
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $gcc_cv_tool_dirs
11424 do
11425 IFS=$as_save_IFS
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11431 break 2
11432 fi
11433 done
11434 done
11435 IFS=$as_save_IFS
11436
11437 ;;
11438 esac
11439 fi
11440 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11441 if test -n "$DLLTOOL_FOR_TARGET"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11443 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11447 fi
11448
11449
11450 fi
11451 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11452
11453
11454 if test -n "$DLLTOOL_FOR_TARGET"; then
11455 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11456 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11457 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11458 fi
11459
11460 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11461 for ncn_progname in dlltool; do
11462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11463 set dummy ${ncn_progname}; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test -n "$DLLTOOL_FOR_TARGET"; then
11470 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483 done
11484 done
11485 IFS=$as_save_IFS
11486
11487 fi
11488 fi
11489 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11490 if test -n "$DLLTOOL_FOR_TARGET"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11492 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11496 fi
11497
11498
11499 done
11500 fi
11501
11502 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11503 for ncn_progname in dlltool; do
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11506 if test -x $with_build_time_tools/${ncn_progname}; then
11507 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509 $as_echo "yes" >&6; }
11510 break
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11514 fi
11515 done
11516 fi
11517
11518 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11519 for ncn_progname in dlltool; do
11520 if test -n "$ncn_target_tool_prefix"; then
11521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 $as_echo_n "checking for $ac_word... " >&6; }
11525 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test -n "$DLLTOOL_FOR_TARGET"; then
11529 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11530 else
11531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532 for as_dir in $PATH
11533 do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542 done
11543 done
11544 IFS=$as_save_IFS
11545
11546 fi
11547 fi
11548 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11549 if test -n "$DLLTOOL_FOR_TARGET"; then
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11551 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11552 else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 fi
11556
11557
11558 fi
11559 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11561 set dummy ${ncn_progname}; ac_word=$2
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563 $as_echo_n "checking for $ac_word... " >&6; }
11564 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 if test -n "$DLLTOOL_FOR_TARGET"; then
11568 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11569 else
11570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571 for as_dir in $PATH
11572 do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11577 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 break 2
11580 fi
11581 done
11582 done
11583 IFS=$as_save_IFS
11584
11585 fi
11586 fi
11587 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11588 if test -n "$DLLTOOL_FOR_TARGET"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11590 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11591 else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11594 fi
11595
11596
11597 fi
11598 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11599 done
11600 fi
11601
11602 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11603 set dummy dlltool
11604 if test $build = $target ; then
11605 DLLTOOL_FOR_TARGET="$2"
11606 else
11607 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11608 fi
11609 else
11610 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11611 fi
11612
11613 else
11614 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11615 fi
11616
11617
11618
11619
11620 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11621 if test -n "$with_build_time_tools"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11623 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11624 if test -x $with_build_time_tools/ld; then
11625 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11626 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11628 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633 elif test $build != $host && test $have_gcc_for_target = yes; then
11634 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11635 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11636 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11637 fi
11638 fi
11639 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11640 # Extract the first word of "ld", so it can be a program name with args.
11641 set dummy ld; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 case $LD_FOR_TARGET in
11648 [\\/]* | ?:[\\/]*)
11649 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11650 ;;
11651 *)
11652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $gcc_cv_tool_dirs
11654 do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 for ac_exec_ext in '' $ac_executable_extensions; do
11658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11659 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 break 2
11662 fi
11663 done
11664 done
11665 IFS=$as_save_IFS
11666
11667 ;;
11668 esac
11669 fi
11670 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11671 if test -n "$LD_FOR_TARGET"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11673 $as_echo "$LD_FOR_TARGET" >&6; }
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678
11679
11680 fi
11681 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11682
11683
11684 if test -n "$LD_FOR_TARGET"; then
11685 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11686 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11687 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11688 fi
11689
11690 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11691 for ncn_progname in ld; do
11692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11693 set dummy ${ncn_progname}; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -n "$LD_FOR_TARGET"; then
11700 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11704 do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11712 fi
11713 done
11714 done
11715 IFS=$as_save_IFS
11716
11717 fi
11718 fi
11719 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11720 if test -n "$LD_FOR_TARGET"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11722 $as_echo "$LD_FOR_TARGET" >&6; }
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11726 fi
11727
11728
11729 done
11730 fi
11731
11732 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11733 for ncn_progname in ld; do
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11735 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11736 if test -x $with_build_time_tools/${ncn_progname}; then
11737 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 break
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745 done
11746 fi
11747
11748 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11749 for ncn_progname in ld; do
11750 if test -n "$ncn_target_tool_prefix"; then
11751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11752 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test -n "$LD_FOR_TARGET"; then
11759 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11763 do
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11771 fi
11772 done
11773 done
11774 IFS=$as_save_IFS
11775
11776 fi
11777 fi
11778 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11779 if test -n "$LD_FOR_TARGET"; then
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11781 $as_echo "$LD_FOR_TARGET" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786
11787
11788 fi
11789 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11791 set dummy ${ncn_progname}; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 if test -n "$LD_FOR_TARGET"; then
11798 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811 done
11812 done
11813 IFS=$as_save_IFS
11814
11815 fi
11816 fi
11817 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11818 if test -n "$LD_FOR_TARGET"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11820 $as_echo "$LD_FOR_TARGET" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 fi
11828 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11829 done
11830 fi
11831
11832 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11833 set dummy ld
11834 if test $build = $target ; then
11835 LD_FOR_TARGET="$2"
11836 else
11837 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11838 fi
11839 else
11840 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11841 fi
11842
11843 else
11844 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11845 fi
11846
11847
11848
11849
11850 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11851 if test -n "$with_build_time_tools"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11853 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11854 if test -x $with_build_time_tools/lipo; then
11855 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11856 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11858 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863 elif test $build != $host && test $have_gcc_for_target = yes; then
11864 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11865 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11866 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11867 fi
11868 fi
11869 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11870 # Extract the first word of "lipo", so it can be a program name with args.
11871 set dummy lipo; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 case $LIPO_FOR_TARGET in
11878 [\\/]* | ?:[\\/]*)
11879 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11880 ;;
11881 *)
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $gcc_cv_tool_dirs
11884 do
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11889 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11892 fi
11893 done
11894 done
11895 IFS=$as_save_IFS
11896
11897 ;;
11898 esac
11899 fi
11900 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11901 if test -n "$LIPO_FOR_TARGET"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11903 $as_echo "$LIPO_FOR_TARGET" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908
11909
11910 fi
11911 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11912
11913
11914 if test -n "$LIPO_FOR_TARGET"; then
11915 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11916 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11917 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11918 fi
11919
11920 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11921 for ncn_progname in lipo; do
11922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test -n "$LIPO_FOR_TARGET"; then
11930 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943 done
11944 done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11950 if test -n "$LIPO_FOR_TARGET"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11952 $as_echo "$LIPO_FOR_TARGET" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958
11959 done
11960 fi
11961
11962 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11963 for ncn_progname in lipo; do
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11965 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11966 if test -x $with_build_time_tools/${ncn_progname}; then
11967 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11970 break
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975 done
11976 fi
11977
11978 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11979 for ncn_progname in lipo; do
11980 if test -n "$ncn_target_tool_prefix"; then
11981 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11982 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11984 $as_echo_n "checking for $ac_word... " >&6; }
11985 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 if test -n "$LIPO_FOR_TARGET"; then
11989 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11990 else
11991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11992 for as_dir in $PATH
11993 do
11994 IFS=$as_save_IFS
11995 test -z "$as_dir" && as_dir=.
11996 for ac_exec_ext in '' $ac_executable_extensions; do
11997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11998 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12000 break 2
12001 fi
12002 done
12003 done
12004 IFS=$as_save_IFS
12005
12006 fi
12007 fi
12008 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12009 if test -n "$LIPO_FOR_TARGET"; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12011 $as_echo "$LIPO_FOR_TARGET" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016
12017
12018 fi
12019 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12021 set dummy ${ncn_progname}; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 if test -n "$LIPO_FOR_TARGET"; then
12028 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12032 do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12037 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12040 fi
12041 done
12042 done
12043 IFS=$as_save_IFS
12044
12045 fi
12046 fi
12047 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12048 if test -n "$LIPO_FOR_TARGET"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12050 $as_echo "$LIPO_FOR_TARGET" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054 fi
12055
12056
12057 fi
12058 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12059 done
12060 fi
12061
12062 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12063 set dummy lipo
12064 if test $build = $target ; then
12065 LIPO_FOR_TARGET="$2"
12066 else
12067 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12068 fi
12069 else
12070 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12071 fi
12072
12073 else
12074 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12075 fi
12076
12077
12078
12079
12080 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12081 if test -n "$with_build_time_tools"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12083 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12084 if test -x $with_build_time_tools/nm; then
12085 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12086 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12088 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093 elif test $build != $host && test $have_gcc_for_target = yes; then
12094 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12095 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12096 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12097 fi
12098 fi
12099 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12100 # Extract the first word of "nm", so it can be a program name with args.
12101 set dummy nm; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 case $NM_FOR_TARGET in
12108 [\\/]* | ?:[\\/]*)
12109 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12110 ;;
12111 *)
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $gcc_cv_tool_dirs
12114 do
12115 IFS=$as_save_IFS
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12119 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 break 2
12122 fi
12123 done
12124 done
12125 IFS=$as_save_IFS
12126
12127 ;;
12128 esac
12129 fi
12130 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12131 if test -n "$NM_FOR_TARGET"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12133 $as_echo "$NM_FOR_TARGET" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138
12139
12140 fi
12141 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12142
12143
12144 if test -n "$NM_FOR_TARGET"; then
12145 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12146 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12147 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12148 fi
12149
12150 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12151 for ncn_progname in nm; do
12152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$NM_FOR_TARGET"; then
12160 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12169 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12180 if test -n "$NM_FOR_TARGET"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12182 $as_echo "$NM_FOR_TARGET" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189 done
12190 fi
12191
12192 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12193 for ncn_progname in nm; do
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12195 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12196 if test -x $with_build_time_tools/${ncn_progname}; then
12197 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12199 $as_echo "yes" >&6; }
12200 break
12201 else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12204 fi
12205 done
12206 fi
12207
12208 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12209 for ncn_progname in nm; do
12210 if test -n "$ncn_target_tool_prefix"; then
12211 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12212 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 if test -n "$NM_FOR_TARGET"; then
12219 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12220 else
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12223 do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12228 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232 done
12233 done
12234 IFS=$as_save_IFS
12235
12236 fi
12237 fi
12238 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12239 if test -n "$NM_FOR_TARGET"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12241 $as_echo "$NM_FOR_TARGET" >&6; }
12242 else
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246
12247
12248 fi
12249 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12251 set dummy ${ncn_progname}; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 if test -n "$NM_FOR_TARGET"; then
12258 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12259 else
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12262 do
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12267 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12270 fi
12271 done
12272 done
12273 IFS=$as_save_IFS
12274
12275 fi
12276 fi
12277 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12278 if test -n "$NM_FOR_TARGET"; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12280 $as_echo "$NM_FOR_TARGET" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12284 fi
12285
12286
12287 fi
12288 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12289 done
12290 fi
12291
12292 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12293 set dummy nm
12294 if test $build = $target ; then
12295 NM_FOR_TARGET="$2"
12296 else
12297 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12298 fi
12299 else
12300 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12301 fi
12302
12303 else
12304 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12305 fi
12306
12307
12308
12309
12310 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12311 if test -n "$with_build_time_tools"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12313 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12314 if test -x $with_build_time_tools/objcopy; then
12315 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12316 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12318 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322 fi
12323 elif test $build != $host && test $have_gcc_for_target = yes; then
12324 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12325 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12326 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12327 fi
12328 fi
12329 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12330 # Extract the first word of "objcopy", so it can be a program name with args.
12331 set dummy objcopy; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 case $OBJCOPY_FOR_TARGET in
12338 [\\/]* | ?:[\\/]*)
12339 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12340 ;;
12341 *)
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $gcc_cv_tool_dirs
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12349 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 ;;
12358 esac
12359 fi
12360 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12361 if test -n "$OBJCOPY_FOR_TARGET"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12363 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368
12369
12370 fi
12371 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12372
12373
12374 if test -n "$OBJCOPY_FOR_TARGET"; then
12375 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12376 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12377 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12378 fi
12379
12380 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12381 for ncn_progname in objcopy; do
12382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12383 set dummy ${ncn_progname}; ac_word=$2
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385 $as_echo_n "checking for $ac_word... " >&6; }
12386 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 if test -n "$OBJCOPY_FOR_TARGET"; then
12390 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12391 else
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12394 do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12399 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12402 fi
12403 done
12404 done
12405 IFS=$as_save_IFS
12406
12407 fi
12408 fi
12409 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12410 if test -n "$OBJCOPY_FOR_TARGET"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12412 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415 $as_echo "no" >&6; }
12416 fi
12417
12418
12419 done
12420 fi
12421
12422 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12423 for ncn_progname in objcopy; do
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12425 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12426 if test -x $with_build_time_tools/${ncn_progname}; then
12427 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429 $as_echo "yes" >&6; }
12430 break
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 fi
12435 done
12436 fi
12437
12438 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12439 for ncn_progname in objcopy; do
12440 if test -n "$ncn_target_tool_prefix"; then
12441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12442 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 if test -n "$OBJCOPY_FOR_TARGET"; then
12449 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12450 else
12451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452 for as_dir in $PATH
12453 do
12454 IFS=$as_save_IFS
12455 test -z "$as_dir" && as_dir=.
12456 for ac_exec_ext in '' $ac_executable_extensions; do
12457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12458 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460 break 2
12461 fi
12462 done
12463 done
12464 IFS=$as_save_IFS
12465
12466 fi
12467 fi
12468 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12469 if test -n "$OBJCOPY_FOR_TARGET"; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12471 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12472 else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474 $as_echo "no" >&6; }
12475 fi
12476
12477
12478 fi
12479 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12481 set dummy ${ncn_progname}; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 if test -n "$OBJCOPY_FOR_TARGET"; then
12488 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12489 else
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12492 do
12493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12499 break 2
12500 fi
12501 done
12502 done
12503 IFS=$as_save_IFS
12504
12505 fi
12506 fi
12507 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12508 if test -n "$OBJCOPY_FOR_TARGET"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12510 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515
12516
12517 fi
12518 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12519 done
12520 fi
12521
12522 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12523 set dummy objcopy
12524 if test $build = $target ; then
12525 OBJCOPY_FOR_TARGET="$2"
12526 else
12527 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12528 fi
12529 else
12530 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12531 fi
12532
12533 else
12534 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12535 fi
12536
12537
12538
12539
12540 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12541 if test -n "$with_build_time_tools"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12543 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12544 if test -x $with_build_time_tools/objdump; then
12545 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12546 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12548 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12549 else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 fi
12553 elif test $build != $host && test $have_gcc_for_target = yes; then
12554 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12555 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12556 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12557 fi
12558 fi
12559 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12560 # Extract the first word of "objdump", so it can be a program name with args.
12561 set dummy objdump; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 case $OBJDUMP_FOR_TARGET in
12568 [\\/]* | ?:[\\/]*)
12569 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12570 ;;
12571 *)
12572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573 for as_dir in $gcc_cv_tool_dirs
12574 do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12579 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583 done
12584 done
12585 IFS=$as_save_IFS
12586
12587 ;;
12588 esac
12589 fi
12590 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12591 if test -n "$OBJDUMP_FOR_TARGET"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12593 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598
12599
12600 fi
12601 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12602
12603
12604 if test -n "$OBJDUMP_FOR_TARGET"; then
12605 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12606 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12607 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12608 fi
12609
12610 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12611 for ncn_progname in objdump; do
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test -n "$OBJDUMP_FOR_TARGET"; then
12620 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12621 else
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12629 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12632 fi
12633 done
12634 done
12635 IFS=$as_save_IFS
12636
12637 fi
12638 fi
12639 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12640 if test -n "$OBJDUMP_FOR_TARGET"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12642 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647
12648
12649 done
12650 fi
12651
12652 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12653 for ncn_progname in objdump; do
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12656 if test -x $with_build_time_tools/${ncn_progname}; then
12657 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12659 $as_echo "yes" >&6; }
12660 break
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 fi
12665 done
12666 fi
12667
12668 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12669 for ncn_progname in objdump; do
12670 if test -n "$ncn_target_tool_prefix"; then
12671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 if test -n "$OBJDUMP_FOR_TARGET"; then
12679 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12680 else
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12688 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692 done
12693 done
12694 IFS=$as_save_IFS
12695
12696 fi
12697 fi
12698 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12699 if test -n "$OBJDUMP_FOR_TARGET"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12701 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12705 fi
12706
12707
12708 fi
12709 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12711 set dummy ${ncn_progname}; ac_word=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 if test -n "$OBJDUMP_FOR_TARGET"; then
12718 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12719 else
12720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12722 do
12723 IFS=$as_save_IFS
12724 test -z "$as_dir" && as_dir=.
12725 for ac_exec_ext in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 break 2
12730 fi
12731 done
12732 done
12733 IFS=$as_save_IFS
12734
12735 fi
12736 fi
12737 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12738 if test -n "$OBJDUMP_FOR_TARGET"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12740 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12741 else
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12744 fi
12745
12746
12747 fi
12748 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12749 done
12750 fi
12751
12752 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12753 set dummy objdump
12754 if test $build = $target ; then
12755 OBJDUMP_FOR_TARGET="$2"
12756 else
12757 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12758 fi
12759 else
12760 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12761 fi
12762
12763 else
12764 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12765 fi
12766
12767
12768
12769
12770 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12771 if test -n "$with_build_time_tools"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12773 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12774 if test -x $with_build_time_tools/ranlib; then
12775 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12776 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12778 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783 elif test $build != $host && test $have_gcc_for_target = yes; then
12784 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12785 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12786 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12787 fi
12788 fi
12789 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12790 # Extract the first word of "ranlib", so it can be a program name with args.
12791 set dummy ranlib; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 case $RANLIB_FOR_TARGET in
12798 [\\/]* | ?:[\\/]*)
12799 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12800 ;;
12801 *)
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $gcc_cv_tool_dirs
12804 do
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12812 fi
12813 done
12814 done
12815 IFS=$as_save_IFS
12816
12817 ;;
12818 esac
12819 fi
12820 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12821 if test -n "$RANLIB_FOR_TARGET"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12823 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828
12829
12830 fi
12831 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12832
12833
12834 if test -n "$RANLIB_FOR_TARGET"; then
12835 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12836 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12837 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12838 fi
12839
12840 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12841 for ncn_progname in ranlib; do
12842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12843 set dummy ${ncn_progname}; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 if test -n "$RANLIB_FOR_TARGET"; then
12850 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12851 else
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12854 do
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12859 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12862 fi
12863 done
12864 done
12865 IFS=$as_save_IFS
12866
12867 fi
12868 fi
12869 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12870 if test -n "$RANLIB_FOR_TARGET"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12872 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877
12878
12879 done
12880 fi
12881
12882 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12883 for ncn_progname in ranlib; do
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12885 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12886 if test -x $with_build_time_tools/${ncn_progname}; then
12887 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889 $as_echo "yes" >&6; }
12890 break
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895 done
12896 fi
12897
12898 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12899 for ncn_progname in ranlib; do
12900 if test -n "$ncn_target_tool_prefix"; then
12901 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12902 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 if test -n "$RANLIB_FOR_TARGET"; then
12909 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12910 else
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $PATH
12913 do
12914 IFS=$as_save_IFS
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12918 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 break 2
12921 fi
12922 done
12923 done
12924 IFS=$as_save_IFS
12925
12926 fi
12927 fi
12928 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12929 if test -n "$RANLIB_FOR_TARGET"; then
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12931 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12932 else
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934 $as_echo "no" >&6; }
12935 fi
12936
12937
12938 fi
12939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12941 set dummy ${ncn_progname}; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 if test -n "$RANLIB_FOR_TARGET"; then
12948 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12949 else
12950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951 for as_dir in $PATH
12952 do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
12956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12957 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12960 fi
12961 done
12962 done
12963 IFS=$as_save_IFS
12964
12965 fi
12966 fi
12967 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12968 if test -n "$RANLIB_FOR_TARGET"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12970 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975
12976
12977 fi
12978 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12979 done
12980 fi
12981
12982 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12983 set dummy ranlib
12984 if test $build = $target ; then
12985 RANLIB_FOR_TARGET="$2"
12986 else
12987 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12988 fi
12989 else
12990 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12991 fi
12992
12993 else
12994 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12995 fi
12996
12997
12998
12999
13000 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13001 if test -n "$with_build_time_tools"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13003 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13004 if test -x $with_build_time_tools/readelf; then
13005 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13006 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13008 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013 elif test $build != $host && test $have_gcc_for_target = yes; then
13014 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13015 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13016 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13017 fi
13018 fi
13019 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13020 # Extract the first word of "readelf", so it can be a program name with args.
13021 set dummy readelf; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 case $READELF_FOR_TARGET in
13028 [\\/]* | ?:[\\/]*)
13029 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13030 ;;
13031 *)
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $gcc_cv_tool_dirs
13034 do
13035 IFS=$as_save_IFS
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13041 break 2
13042 fi
13043 done
13044 done
13045 IFS=$as_save_IFS
13046
13047 ;;
13048 esac
13049 fi
13050 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13051 if test -n "$READELF_FOR_TARGET"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13053 $as_echo "$READELF_FOR_TARGET" >&6; }
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057 fi
13058
13059
13060 fi
13061 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13062
13063
13064 if test -n "$READELF_FOR_TARGET"; then
13065 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13066 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13067 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13068 fi
13069
13070 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13071 for ncn_progname in readelf; do
13072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13073 set dummy ${ncn_progname}; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 if test -n "$READELF_FOR_TARGET"; then
13080 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097 fi
13098 fi
13099 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13100 if test -n "$READELF_FOR_TARGET"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13102 $as_echo "$READELF_FOR_TARGET" >&6; }
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107
13108
13109 done
13110 fi
13111
13112 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13113 for ncn_progname in readelf; do
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13115 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13116 if test -x $with_build_time_tools/${ncn_progname}; then
13117 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13119 $as_echo "yes" >&6; }
13120 break
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13124 fi
13125 done
13126 fi
13127
13128 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13129 for ncn_progname in readelf; do
13130 if test -n "$ncn_target_tool_prefix"; then
13131 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13132 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 if test -n "$READELF_FOR_TARGET"; then
13139 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13140 else
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13143 do
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13148 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13150 break 2
13151 fi
13152 done
13153 done
13154 IFS=$as_save_IFS
13155
13156 fi
13157 fi
13158 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13159 if test -n "$READELF_FOR_TARGET"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13161 $as_echo "$READELF_FOR_TARGET" >&6; }
13162 else
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13165 fi
13166
13167
13168 fi
13169 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13171 set dummy ${ncn_progname}; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 if test -n "$READELF_FOR_TARGET"; then
13178 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13190 fi
13191 done
13192 done
13193 IFS=$as_save_IFS
13194
13195 fi
13196 fi
13197 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13198 if test -n "$READELF_FOR_TARGET"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13200 $as_echo "$READELF_FOR_TARGET" >&6; }
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13204 fi
13205
13206
13207 fi
13208 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13209 done
13210 fi
13211
13212 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13213 set dummy readelf
13214 if test $build = $target ; then
13215 READELF_FOR_TARGET="$2"
13216 else
13217 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13218 fi
13219 else
13220 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13221 fi
13222
13223 else
13224 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13225 fi
13226
13227
13228
13229
13230 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13231 if test -n "$with_build_time_tools"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13233 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13234 if test -x $with_build_time_tools/strip; then
13235 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13236 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13238 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 fi
13243 elif test $build != $host && test $have_gcc_for_target = yes; then
13244 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13245 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13246 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13247 fi
13248 fi
13249 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13250 # Extract the first word of "strip", so it can be a program name with args.
13251 set dummy strip; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 case $STRIP_FOR_TARGET in
13258 [\\/]* | ?:[\\/]*)
13259 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13260 ;;
13261 *)
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $gcc_cv_tool_dirs
13264 do
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13272 fi
13273 done
13274 done
13275 IFS=$as_save_IFS
13276
13277 ;;
13278 esac
13279 fi
13280 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13281 if test -n "$STRIP_FOR_TARGET"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13283 $as_echo "$STRIP_FOR_TARGET" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288
13289
13290 fi
13291 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13292
13293
13294 if test -n "$STRIP_FOR_TARGET"; then
13295 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13296 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13297 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13298 fi
13299
13300 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13301 for ncn_progname in strip; do
13302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$STRIP_FOR_TARGET"; then
13310 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 fi
13328 fi
13329 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13330 if test -n "$STRIP_FOR_TARGET"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13332 $as_echo "$STRIP_FOR_TARGET" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337
13338
13339 done
13340 fi
13341
13342 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13343 for ncn_progname in strip; do
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13345 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13346 if test -x $with_build_time_tools/${ncn_progname}; then
13347 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13349 $as_echo "yes" >&6; }
13350 break
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355 done
13356 fi
13357
13358 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13359 for ncn_progname in strip; do
13360 if test -n "$ncn_target_tool_prefix"; then
13361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$STRIP_FOR_TARGET"; then
13369 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13389 if test -n "$STRIP_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13391 $as_echo "$STRIP_FOR_TARGET" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398 fi
13399 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13401 set dummy ${ncn_progname}; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13403 $as_echo_n "checking for $ac_word... " >&6; }
13404 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 if test -n "$STRIP_FOR_TARGET"; then
13408 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13409 else
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13412 do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13417 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 break 2
13420 fi
13421 done
13422 done
13423 IFS=$as_save_IFS
13424
13425 fi
13426 fi
13427 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13428 if test -n "$STRIP_FOR_TARGET"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13430 $as_echo "$STRIP_FOR_TARGET" >&6; }
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434 fi
13435
13436
13437 fi
13438 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13439 done
13440 fi
13441
13442 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13443 set dummy strip
13444 if test $build = $target ; then
13445 STRIP_FOR_TARGET="$2"
13446 else
13447 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13448 fi
13449 else
13450 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13451 fi
13452
13453 else
13454 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13455 fi
13456
13457
13458
13459
13460 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13461 if test -n "$with_build_time_tools"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13463 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13464 if test -x $with_build_time_tools/windres; then
13465 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13466 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13468 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473 elif test $build != $host && test $have_gcc_for_target = yes; then
13474 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13475 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13476 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13477 fi
13478 fi
13479 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13480 # Extract the first word of "windres", so it can be a program name with args.
13481 set dummy windres; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 case $WINDRES_FOR_TARGET in
13488 [\\/]* | ?:[\\/]*)
13489 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13490 ;;
13491 *)
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $gcc_cv_tool_dirs
13494 do
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13499 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 break 2
13502 fi
13503 done
13504 done
13505 IFS=$as_save_IFS
13506
13507 ;;
13508 esac
13509 fi
13510 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13511 if test -n "$WINDRES_FOR_TARGET"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13513 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518
13519
13520 fi
13521 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13522
13523
13524 if test -n "$WINDRES_FOR_TARGET"; then
13525 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13526 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13527 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13528 fi
13529
13530 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13531 for ncn_progname in windres; do
13532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13533 set dummy ${ncn_progname}; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test -n "$WINDRES_FOR_TARGET"; then
13540 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13541 else
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553 done
13554 done
13555 IFS=$as_save_IFS
13556
13557 fi
13558 fi
13559 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13560 if test -n "$WINDRES_FOR_TARGET"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13562 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566 fi
13567
13568
13569 done
13570 fi
13571
13572 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13573 for ncn_progname in windres; do
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13576 if test -x $with_build_time_tools/${ncn_progname}; then
13577 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13579 $as_echo "yes" >&6; }
13580 break
13581 else
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584 fi
13585 done
13586 fi
13587
13588 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13589 for ncn_progname in windres; do
13590 if test -n "$ncn_target_tool_prefix"; then
13591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 if test -n "$WINDRES_FOR_TARGET"; then
13599 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13600 else
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13608 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13611 fi
13612 done
13613 done
13614 IFS=$as_save_IFS
13615
13616 fi
13617 fi
13618 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13619 if test -n "$WINDRES_FOR_TARGET"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13621 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13622 else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625 fi
13626
13627
13628 fi
13629 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13631 set dummy ${ncn_progname}; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633 $as_echo_n "checking for $ac_word... " >&6; }
13634 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 if test -n "$WINDRES_FOR_TARGET"; then
13638 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13639 else
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13642 do
13643 IFS=$as_save_IFS
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13647 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 break 2
13650 fi
13651 done
13652 done
13653 IFS=$as_save_IFS
13654
13655 fi
13656 fi
13657 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13658 if test -n "$WINDRES_FOR_TARGET"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13660 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13661 else
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663 $as_echo "no" >&6; }
13664 fi
13665
13666
13667 fi
13668 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13669 done
13670 fi
13671
13672 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13673 set dummy windres
13674 if test $build = $target ; then
13675 WINDRES_FOR_TARGET="$2"
13676 else
13677 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13678 fi
13679 else
13680 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13681 fi
13682
13683 else
13684 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13685 fi
13686
13687
13688
13689
13690 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13691 if test -n "$with_build_time_tools"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13693 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13694 if test -x $with_build_time_tools/windmc; then
13695 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13696 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13698 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13699 else
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703 elif test $build != $host && test $have_gcc_for_target = yes; then
13704 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13705 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13706 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13707 fi
13708 fi
13709 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13710 # Extract the first word of "windmc", so it can be a program name with args.
13711 set dummy windmc; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 case $WINDMC_FOR_TARGET in
13718 [\\/]* | ?:[\\/]*)
13719 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13720 ;;
13721 *)
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $gcc_cv_tool_dirs
13724 do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13729 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13732 fi
13733 done
13734 done
13735 IFS=$as_save_IFS
13736
13737 ;;
13738 esac
13739 fi
13740 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13741 if test -n "$WINDMC_FOR_TARGET"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13743 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748
13749
13750 fi
13751 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13752
13753
13754 if test -n "$WINDMC_FOR_TARGET"; then
13755 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13756 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13757 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13758 fi
13759
13760 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13761 for ncn_progname in windmc; do
13762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13763 set dummy ${ncn_progname}; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$WINDMC_FOR_TARGET"; then
13770 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 fi
13788 fi
13789 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13790 if test -n "$WINDMC_FOR_TARGET"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13792 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798
13799 done
13800 fi
13801
13802 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13803 for ncn_progname in windmc; do
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13806 if test -x $with_build_time_tools/${ncn_progname}; then
13807 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13809 $as_echo "yes" >&6; }
13810 break
13811 else
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 $as_echo "no" >&6; }
13814 fi
13815 done
13816 fi
13817
13818 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13819 for ncn_progname in windmc; do
13820 if test -n "$ncn_target_tool_prefix"; then
13821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824 $as_echo_n "checking for $ac_word... " >&6; }
13825 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 if test -n "$WINDMC_FOR_TARGET"; then
13829 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13830 else
13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832 for as_dir in $PATH
13833 do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
13837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13838 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 break 2
13841 fi
13842 done
13843 done
13844 IFS=$as_save_IFS
13845
13846 fi
13847 fi
13848 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13849 if test -n "$WINDMC_FOR_TARGET"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13851 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13855 fi
13856
13857
13858 fi
13859 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13861 set dummy ${ncn_progname}; ac_word=$2
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863 $as_echo_n "checking for $ac_word... " >&6; }
13864 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 if test -n "$WINDMC_FOR_TARGET"; then
13868 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13869 else
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13877 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 break 2
13880 fi
13881 done
13882 done
13883 IFS=$as_save_IFS
13884
13885 fi
13886 fi
13887 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13888 if test -n "$WINDMC_FOR_TARGET"; then
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13890 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13891 else
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13894 fi
13895
13896
13897 fi
13898 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13899 done
13900 fi
13901
13902 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13903 set dummy windmc
13904 if test $build = $target ; then
13905 WINDMC_FOR_TARGET="$2"
13906 else
13907 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13908 fi
13909 else
13910 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13911 fi
13912
13913 else
13914 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13915 fi
13916
13917
13918 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13919
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13921 $as_echo_n "checking where to find the target ar... " >&6; }
13922 if test "x${build}" != "x${host}" ; then
13923 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
13925 ac_dir=`dirname $AR_FOR_TARGET`
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927 $as_echo "pre-installed in $ac_dir" >&6; }
13928 else
13929 # Canadian cross, just use what we found
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13932 fi
13933 else
13934 ok=yes
13935 case " ${configdirs} " in
13936 *" binutils "*) ;;
13937 *) ok=no ;;
13938 esac
13939
13940 if test $ok = yes; then
13941 # An in-tree tool is available and we can use it
13942 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13944 $as_echo "just compiled" >&6; }
13945 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13946 # We already found the complete path
13947 ac_dir=`dirname $AR_FOR_TARGET`
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13949 $as_echo "pre-installed in $ac_dir" >&6; }
13950 elif test "x$target" = "x$host"; then
13951 # We can use an host tool
13952 AR_FOR_TARGET='$(AR)'
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13954 $as_echo "host tool" >&6; }
13955 else
13956 # We need a cross tool
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958 $as_echo "pre-installed" >&6; }
13959 fi
13960 fi
13961
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13963 $as_echo_n "checking where to find the target as... " >&6; }
13964 if test "x${build}" != "x${host}" ; then
13965 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13966 # We already found the complete path
13967 ac_dir=`dirname $AS_FOR_TARGET`
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13969 $as_echo "pre-installed in $ac_dir" >&6; }
13970 else
13971 # Canadian cross, just use what we found
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13973 $as_echo "pre-installed" >&6; }
13974 fi
13975 else
13976 ok=yes
13977 case " ${configdirs} " in
13978 *" gas "*) ;;
13979 *) ok=no ;;
13980 esac
13981
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986 $as_echo "just compiled" >&6; }
13987 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
13989 ac_dir=`dirname $AS_FOR_TARGET`
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 AS_FOR_TARGET='$(AS)'
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996 $as_echo "host tool" >&6; }
13997 else
13998 # We need a cross tool
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14001 fi
14002 fi
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14005 $as_echo_n "checking where to find the target cc... " >&6; }
14006 if test "x${build}" != "x${host}" ; then
14007 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $CC_FOR_TARGET`
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14012 else
14013 # Canadian cross, just use what we found
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015 $as_echo "pre-installed" >&6; }
14016 fi
14017 else
14018 ok=yes
14019 case " ${configdirs} " in
14020 *" gcc "*) ;;
14021 *) ok=no ;;
14022 esac
14023
14024 if test $ok = yes; then
14025 # An in-tree tool is available and we can use it
14026 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14028 $as_echo "just compiled" >&6; }
14029 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14030 # We already found the complete path
14031 ac_dir=`dirname $CC_FOR_TARGET`
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14033 $as_echo "pre-installed in $ac_dir" >&6; }
14034 elif test "x$target" = "x$host"; then
14035 # We can use an host tool
14036 CC_FOR_TARGET='$(CC)'
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14038 $as_echo "host tool" >&6; }
14039 else
14040 # We need a cross tool
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14042 $as_echo "pre-installed" >&6; }
14043 fi
14044 fi
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14047 $as_echo_n "checking where to find the target c++... " >&6; }
14048 if test "x${build}" != "x${host}" ; then
14049 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14050 # We already found the complete path
14051 ac_dir=`dirname $CXX_FOR_TARGET`
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14053 $as_echo "pre-installed in $ac_dir" >&6; }
14054 else
14055 # Canadian cross, just use what we found
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14057 $as_echo "pre-installed" >&6; }
14058 fi
14059 else
14060 ok=yes
14061 case " ${configdirs} " in
14062 *" gcc "*) ;;
14063 *) ok=no ;;
14064 esac
14065 case ,${enable_languages}, in
14066 *,c++,*) ;;
14067 *) ok=no ;;
14068 esac
14069 if test $ok = yes; then
14070 # An in-tree tool is available and we can use it
14071 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14073 $as_echo "just compiled" >&6; }
14074 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14075 # We already found the complete path
14076 ac_dir=`dirname $CXX_FOR_TARGET`
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14078 $as_echo "pre-installed in $ac_dir" >&6; }
14079 elif test "x$target" = "x$host"; then
14080 # We can use an host tool
14081 CXX_FOR_TARGET='$(CXX)'
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14083 $as_echo "host tool" >&6; }
14084 else
14085 # We need a cross tool
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14087 $as_echo "pre-installed" >&6; }
14088 fi
14089 fi
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14092 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14093 if test "x${build}" != "x${host}" ; then
14094 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14095 # We already found the complete path
14096 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14098 $as_echo "pre-installed in $ac_dir" >&6; }
14099 else
14100 # Canadian cross, just use what we found
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14102 $as_echo "pre-installed" >&6; }
14103 fi
14104 else
14105 ok=yes
14106 case " ${configdirs} " in
14107 *" gcc "*) ;;
14108 *) ok=no ;;
14109 esac
14110 case ,${enable_languages}, in
14111 *,c++,*) ;;
14112 *) ok=no ;;
14113 esac
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118 $as_echo "just compiled" >&6; }
14119 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 RAW_CXX_FOR_TARGET='$(CXX)'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128 $as_echo "host tool" >&6; }
14129 else
14130 # We need a cross tool
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132 $as_echo "pre-installed" >&6; }
14133 fi
14134 fi
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14137 $as_echo_n "checking where to find the target dlltool... " >&6; }
14138 if test "x${build}" != "x${host}" ; then
14139 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
14141 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143 $as_echo "pre-installed in $ac_dir" >&6; }
14144 else
14145 # Canadian cross, just use what we found
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147 $as_echo "pre-installed" >&6; }
14148 fi
14149 else
14150 ok=yes
14151 case " ${configdirs} " in
14152 *" binutils "*) ;;
14153 *) ok=no ;;
14154 esac
14155
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14171 else
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14175 fi
14176 fi
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14179 $as_echo_n "checking where to find the target gcc... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $GCC_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186 else
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14190 fi
14191 else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" gcc "*) ;;
14195 *) ok=no ;;
14196 esac
14197
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $GCC_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 GCC_FOR_TARGET='$()'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14213 else
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14217 fi
14218 fi
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14221 $as_echo_n "checking where to find the target gcj... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $GCJ_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14228 else
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14232 fi
14233 else
14234 ok=yes
14235 case " ${configdirs} " in
14236 *" gcc "*) ;;
14237 *) ok=no ;;
14238 esac
14239 case ,${enable_languages}, in
14240 *,java,*) ;;
14241 *) ok=no ;;
14242 esac
14243 if test $ok = yes; then
14244 # An in-tree tool is available and we can use it
14245 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14247 $as_echo "just compiled" >&6; }
14248 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14249 # We already found the complete path
14250 ac_dir=`dirname $GCJ_FOR_TARGET`
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14252 $as_echo "pre-installed in $ac_dir" >&6; }
14253 elif test "x$target" = "x$host"; then
14254 # We can use an host tool
14255 GCJ_FOR_TARGET='$(GCJ)'
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14257 $as_echo "host tool" >&6; }
14258 else
14259 # We need a cross tool
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14261 $as_echo "pre-installed" >&6; }
14262 fi
14263 fi
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14266 $as_echo_n "checking where to find the target gfortran... " >&6; }
14267 if test "x${build}" != "x${host}" ; then
14268 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14269 # We already found the complete path
14270 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14272 $as_echo "pre-installed in $ac_dir" >&6; }
14273 else
14274 # Canadian cross, just use what we found
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14276 $as_echo "pre-installed" >&6; }
14277 fi
14278 else
14279 ok=yes
14280 case " ${configdirs} " in
14281 *" gcc "*) ;;
14282 *) ok=no ;;
14283 esac
14284 case ,${enable_languages}, in
14285 *,fortran,*) ;;
14286 *) ok=no ;;
14287 esac
14288 if test $ok = yes; then
14289 # An in-tree tool is available and we can use it
14290 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14292 $as_echo "just compiled" >&6; }
14293 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14294 # We already found the complete path
14295 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14297 $as_echo "pre-installed in $ac_dir" >&6; }
14298 elif test "x$target" = "x$host"; then
14299 # We can use an host tool
14300 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14302 $as_echo "host tool" >&6; }
14303 else
14304 # We need a cross tool
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14306 $as_echo "pre-installed" >&6; }
14307 fi
14308 fi
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14311 $as_echo_n "checking where to find the target gccgo... " >&6; }
14312 if test "x${build}" != "x${host}" ; then
14313 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $GOC_FOR_TARGET`
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14317 $as_echo "pre-installed in $ac_dir" >&6; }
14318 else
14319 # Canadian cross, just use what we found
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14321 $as_echo "pre-installed" >&6; }
14322 fi
14323 else
14324 ok=yes
14325 case " ${configdirs} " in
14326 *" gcc "*) ;;
14327 *) ok=no ;;
14328 esac
14329 case ,${enable_languages}, in
14330 *,go,*) ;;
14331 *) ok=no ;;
14332 esac
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $GOC_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 GOC_FOR_TARGET='$(GOC)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14352 fi
14353 fi
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14356 $as_echo_n "checking where to find the target ld... " >&6; }
14357 if test "x${build}" != "x${host}" ; then
14358 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $LD_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14363 else
14364 # Canadian cross, just use what we found
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366 $as_echo "pre-installed" >&6; }
14367 fi
14368 else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" ld "*) ;;
14372 *) ok=no ;;
14373 esac
14374
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379 $as_echo "just compiled" >&6; }
14380 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $LD_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 LD_FOR_TARGET='$(LD)'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389 $as_echo "host tool" >&6; }
14390 else
14391 # We need a cross tool
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393 $as_echo "pre-installed" >&6; }
14394 fi
14395 fi
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14398 $as_echo_n "checking where to find the target lipo... " >&6; }
14399 if test "x${build}" != "x${host}" ; then
14400 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
14402 ac_dir=`dirname $LIPO_FOR_TARGET`
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404 $as_echo "pre-installed in $ac_dir" >&6; }
14405 else
14406 # Canadian cross, just use what we found
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408 $as_echo "pre-installed" >&6; }
14409 fi
14410 else
14411 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14412 # We already found the complete path
14413 ac_dir=`dirname $LIPO_FOR_TARGET`
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415 $as_echo "pre-installed in $ac_dir" >&6; }
14416 elif test "x$target" = "x$host"; then
14417 # We can use an host tool
14418 LIPO_FOR_TARGET='$(LIPO)'
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14420 $as_echo "host tool" >&6; }
14421 else
14422 # We need a cross tool
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14425 fi
14426 fi
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14429 $as_echo_n "checking where to find the target nm... " >&6; }
14430 if test "x${build}" != "x${host}" ; then
14431 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14432 # We already found the complete path
14433 ac_dir=`dirname $NM_FOR_TARGET`
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435 $as_echo "pre-installed in $ac_dir" >&6; }
14436 else
14437 # Canadian cross, just use what we found
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439 $as_echo "pre-installed" >&6; }
14440 fi
14441 else
14442 ok=yes
14443 case " ${configdirs} " in
14444 *" binutils "*) ;;
14445 *) ok=no ;;
14446 esac
14447
14448 if test $ok = yes; then
14449 # An in-tree tool is available and we can use it
14450 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452 $as_echo "just compiled" >&6; }
14453 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14454 # We already found the complete path
14455 ac_dir=`dirname $NM_FOR_TARGET`
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457 $as_echo "pre-installed in $ac_dir" >&6; }
14458 elif test "x$target" = "x$host"; then
14459 # We can use an host tool
14460 NM_FOR_TARGET='$(NM)'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462 $as_echo "host tool" >&6; }
14463 else
14464 # We need a cross tool
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14467 fi
14468 fi
14469
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14471 $as_echo_n "checking where to find the target objcopy... " >&6; }
14472 if test "x${build}" != "x${host}" ; then
14473 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
14475 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477 $as_echo "pre-installed in $ac_dir" >&6; }
14478 else
14479 # Canadian cross, just use what we found
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14482 fi
14483 else
14484 ok=yes
14485 case " ${configdirs} " in
14486 *" binutils "*) ;;
14487 *) ok=no ;;
14488 esac
14489
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494 $as_echo "just compiled" >&6; }
14495 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
14497 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499 $as_echo "pre-installed in $ac_dir" >&6; }
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504 $as_echo "host tool" >&6; }
14505 else
14506 # We need a cross tool
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508 $as_echo "pre-installed" >&6; }
14509 fi
14510 fi
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14513 $as_echo_n "checking where to find the target objdump... " >&6; }
14514 if test "x${build}" != "x${host}" ; then
14515 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14516 # We already found the complete path
14517 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14519 $as_echo "pre-installed in $ac_dir" >&6; }
14520 else
14521 # Canadian cross, just use what we found
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14523 $as_echo "pre-installed" >&6; }
14524 fi
14525 else
14526 ok=yes
14527 case " ${configdirs} " in
14528 *" binutils "*) ;;
14529 *) ok=no ;;
14530 esac
14531
14532 if test $ok = yes; then
14533 # An in-tree tool is available and we can use it
14534 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14536 $as_echo "just compiled" >&6; }
14537 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
14539 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541 $as_echo "pre-installed in $ac_dir" >&6; }
14542 elif test "x$target" = "x$host"; then
14543 # We can use an host tool
14544 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14546 $as_echo "host tool" >&6; }
14547 else
14548 # We need a cross tool
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14551 fi
14552 fi
14553
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14555 $as_echo_n "checking where to find the target ranlib... " >&6; }
14556 if test "x${build}" != "x${host}" ; then
14557 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14558 # We already found the complete path
14559 ac_dir=`dirname $RANLIB_FOR_TARGET`
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14561 $as_echo "pre-installed in $ac_dir" >&6; }
14562 else
14563 # Canadian cross, just use what we found
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14565 $as_echo "pre-installed" >&6; }
14566 fi
14567 else
14568 ok=yes
14569 case " ${configdirs} " in
14570 *" binutils "*) ;;
14571 *) ok=no ;;
14572 esac
14573
14574 if test $ok = yes; then
14575 # An in-tree tool is available and we can use it
14576 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14578 $as_echo "just compiled" >&6; }
14579 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
14581 ac_dir=`dirname $RANLIB_FOR_TARGET`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583 $as_echo "pre-installed in $ac_dir" >&6; }
14584 elif test "x$target" = "x$host"; then
14585 # We can use an host tool
14586 RANLIB_FOR_TARGET='$(RANLIB)'
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14588 $as_echo "host tool" >&6; }
14589 else
14590 # We need a cross tool
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14593 fi
14594 fi
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14597 $as_echo_n "checking where to find the target readelf... " >&6; }
14598 if test "x${build}" != "x${host}" ; then
14599 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14600 # We already found the complete path
14601 ac_dir=`dirname $READELF_FOR_TARGET`
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14603 $as_echo "pre-installed in $ac_dir" >&6; }
14604 else
14605 # Canadian cross, just use what we found
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14607 $as_echo "pre-installed" >&6; }
14608 fi
14609 else
14610 ok=yes
14611 case " ${configdirs} " in
14612 *" binutils "*) ;;
14613 *) ok=no ;;
14614 esac
14615
14616 if test $ok = yes; then
14617 # An in-tree tool is available and we can use it
14618 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14620 $as_echo "just compiled" >&6; }
14621 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14622 # We already found the complete path
14623 ac_dir=`dirname $READELF_FOR_TARGET`
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625 $as_echo "pre-installed in $ac_dir" >&6; }
14626 elif test "x$target" = "x$host"; then
14627 # We can use an host tool
14628 READELF_FOR_TARGET='$(READELF)'
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14630 $as_echo "host tool" >&6; }
14631 else
14632 # We need a cross tool
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14635 fi
14636 fi
14637
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14639 $as_echo_n "checking where to find the target strip... " >&6; }
14640 if test "x${build}" != "x${host}" ; then
14641 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14642 # We already found the complete path
14643 ac_dir=`dirname $STRIP_FOR_TARGET`
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14645 $as_echo "pre-installed in $ac_dir" >&6; }
14646 else
14647 # Canadian cross, just use what we found
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14649 $as_echo "pre-installed" >&6; }
14650 fi
14651 else
14652 ok=yes
14653 case " ${configdirs} " in
14654 *" binutils "*) ;;
14655 *) ok=no ;;
14656 esac
14657
14658 if test $ok = yes; then
14659 # An in-tree tool is available and we can use it
14660 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14662 $as_echo "just compiled" >&6; }
14663 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14664 # We already found the complete path
14665 ac_dir=`dirname $STRIP_FOR_TARGET`
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14667 $as_echo "pre-installed in $ac_dir" >&6; }
14668 elif test "x$target" = "x$host"; then
14669 # We can use an host tool
14670 STRIP_FOR_TARGET='$(STRIP)'
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14672 $as_echo "host tool" >&6; }
14673 else
14674 # We need a cross tool
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14676 $as_echo "pre-installed" >&6; }
14677 fi
14678 fi
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14681 $as_echo_n "checking where to find the target windres... " >&6; }
14682 if test "x${build}" != "x${host}" ; then
14683 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14684 # We already found the complete path
14685 ac_dir=`dirname $WINDRES_FOR_TARGET`
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14687 $as_echo "pre-installed in $ac_dir" >&6; }
14688 else
14689 # Canadian cross, just use what we found
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14691 $as_echo "pre-installed" >&6; }
14692 fi
14693 else
14694 ok=yes
14695 case " ${configdirs} " in
14696 *" binutils "*) ;;
14697 *) ok=no ;;
14698 esac
14699
14700 if test $ok = yes; then
14701 # An in-tree tool is available and we can use it
14702 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14704 $as_echo "just compiled" >&6; }
14705 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14706 # We already found the complete path
14707 ac_dir=`dirname $WINDRES_FOR_TARGET`
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14709 $as_echo "pre-installed in $ac_dir" >&6; }
14710 elif test "x$target" = "x$host"; then
14711 # We can use an host tool
14712 WINDRES_FOR_TARGET='$(WINDRES)'
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14714 $as_echo "host tool" >&6; }
14715 else
14716 # We need a cross tool
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14718 $as_echo "pre-installed" >&6; }
14719 fi
14720 fi
14721
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14723 $as_echo_n "checking where to find the target windmc... " >&6; }
14724 if test "x${build}" != "x${host}" ; then
14725 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14726 # We already found the complete path
14727 ac_dir=`dirname $WINDMC_FOR_TARGET`
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14729 $as_echo "pre-installed in $ac_dir" >&6; }
14730 else
14731 # Canadian cross, just use what we found
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14733 $as_echo "pre-installed" >&6; }
14734 fi
14735 else
14736 ok=yes
14737 case " ${configdirs} " in
14738 *" binutils "*) ;;
14739 *) ok=no ;;
14740 esac
14741
14742 if test $ok = yes; then
14743 # An in-tree tool is available and we can use it
14744 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14746 $as_echo "just compiled" >&6; }
14747 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14748 # We already found the complete path
14749 ac_dir=`dirname $WINDMC_FOR_TARGET`
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14751 $as_echo "pre-installed in $ac_dir" >&6; }
14752 elif test "x$target" = "x$host"; then
14753 # We can use an host tool
14754 WINDMC_FOR_TARGET='$(WINDMC)'
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14756 $as_echo "host tool" >&6; }
14757 else
14758 # We need a cross tool
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14760 $as_echo "pre-installed" >&6; }
14761 fi
14762 fi
14763
14764
14765
14766
14767
14768 # Certain tools may need extra flags.
14769 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14770 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14771 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14772
14773 # When building target libraries, except in a Canadian cross, we use
14774 # the same toolchain as the compiler we just built.
14775 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14776 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14777 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14778 if test $host = $build; then
14779 case " $configdirs " in
14780 *" gcc "*)
14781 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14782 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14783 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14784 ;;
14785 esac
14786 fi
14787
14788
14789
14790
14791
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14793 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14794 # Check whether --enable-maintainer-mode was given.
14795 if test "${enable_maintainer_mode+set}" = set; then :
14796 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14797 else
14798 USE_MAINTAINER_MODE=no
14799 fi
14800
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14802 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14803
14804
14805 if test "$USE_MAINTAINER_MODE" = yes; then
14806 MAINTAINER_MODE_TRUE=
14807 MAINTAINER_MODE_FALSE='#'
14808 else
14809 MAINTAINER_MODE_TRUE='#'
14810 MAINTAINER_MODE_FALSE=
14811 fi
14812 MAINT=$MAINTAINER_MODE_TRUE
14813
14814 # ---------------------
14815 # GCC bootstrap support
14816 # ---------------------
14817
14818 # Stage specific cflags for build.
14819 stage1_cflags="-g"
14820 case $build in
14821 vax-*-*)
14822 case ${GCC} in
14823 yes) stage1_cflags="-g -Wa,-J" ;;
14824 *) stage1_cflags="-g -J" ;;
14825 esac ;;
14826 esac
14827
14828
14829
14830 # Enable --enable-checking in stage1 of the compiler.
14831 # Check whether --enable-stage1-checking was given.
14832 if test "${enable_stage1_checking+set}" = set; then :
14833 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14834 else
14835 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14836 # For --disable-checking or implicit --enable-checking=release, avoid
14837 # setting --enable-checking=gc in the default stage1 checking for LTO
14838 # bootstraps. See PR62077.
14839 case $BUILD_CONFIG in
14840 *lto*)
14841 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14842 *)
14843 stage1_checking=--enable-checking=yes,types;;
14844 esac
14845 if test "x$enable_checking" = x && \
14846 test -d ${srcdir}/gcc && \
14847 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14848 stage1_checking=--enable-checking=yes,types,extra
14849 fi
14850 else
14851 stage1_checking=--enable-checking=$enable_checking,types
14852 fi
14853 fi
14854
14855
14856
14857 # Enable -Werror in bootstrap stage2 and later.
14858 # Check whether --enable-werror was given.
14859 if test "${enable_werror+set}" = set; then :
14860 enableval=$enable_werror;
14861 else
14862 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14863 enable_werror=yes
14864 else
14865 enable_werror=no
14866 fi
14867 fi
14868
14869 case ${enable_werror} in
14870 yes) stage2_werror_flag="--enable-werror-always" ;;
14871 *) stage2_werror_flag="" ;;
14872 esac
14873
14874
14875 # Enable --enable-host-shared.
14876 # Check whether --enable-host-shared was given.
14877 if test "${enable_host_shared+set}" = set; then :
14878 enableval=$enable_host_shared; host_shared=$enableval
14879 else
14880 host_shared=no
14881 fi
14882
14883
14884
14885 # PR jit/64780: Require the user to explicitly specify
14886 # --enable-host-shared if the jit is enabled, hinting
14887 # that they might want to do a separate configure/build of
14888 # the jit, to avoid users from slowing down the rest of the
14889 # compiler by enabling the jit.
14890 if test ${host_shared} = "no" ; then
14891 case "${enable_languages}" in
14892 *jit*)
14893 as_fn_error "
14894 Enabling language \"jit\" requires --enable-host-shared.
14895
14896 --enable-host-shared typically slows the rest of the compiler down by
14897 a few %, so you must explicitly enable it.
14898
14899 If you want to build both the jit and the regular compiler, it is often
14900 best to do this via two separate configure/builds, in separate
14901 directories, to avoid imposing the performance cost of
14902 --enable-host-shared on the regular compiler." "$LINENO" 5
14903 ;;
14904 *)
14905 ;;
14906 esac
14907 fi
14908
14909 # Specify what files to not compare during bootstrap.
14910
14911 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14912 case "$target" in
14913 hppa*64*-*-hpux*) ;;
14914 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14915 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14916 esac
14917
14918
14919 ac_config_files="$ac_config_files Makefile"
14920
14921 cat >confcache <<\_ACEOF
14922 # This file is a shell script that caches the results of configure
14923 # tests run on this system so they can be shared between configure
14924 # scripts and configure runs, see configure's option --config-cache.
14925 # It is not useful on other systems. If it contains results you don't
14926 # want to keep, you may remove or edit it.
14927 #
14928 # config.status only pays attention to the cache file if you give it
14929 # the --recheck option to rerun configure.
14930 #
14931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14933 # following values.
14934
14935 _ACEOF
14936
14937 # The following way of writing the cache mishandles newlines in values,
14938 # but we know of no workaround that is simple, portable, and efficient.
14939 # So, we kill variables containing newlines.
14940 # Ultrix sh set writes to stderr and can't be redirected directly,
14941 # and sets the high bit in the cache file unless we assign to the vars.
14942 (
14943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14944 eval ac_val=\$$ac_var
14945 case $ac_val in #(
14946 *${as_nl}*)
14947 case $ac_var in #(
14948 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14949 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14950 esac
14951 case $ac_var in #(
14952 _ | IFS | as_nl) ;; #(
14953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14954 *) { eval $ac_var=; unset $ac_var;} ;;
14955 esac ;;
14956 esac
14957 done
14958
14959 (set) 2>&1 |
14960 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14961 *${as_nl}ac_space=\ *)
14962 # `set' does not quote correctly, so add quotes: double-quote
14963 # substitution turns \\\\ into \\, and sed turns \\ into \.
14964 sed -n \
14965 "s/'/'\\\\''/g;
14966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14967 ;; #(
14968 *)
14969 # `set' quotes correctly as required by POSIX, so do not add quotes.
14970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14971 ;;
14972 esac |
14973 sort
14974 ) |
14975 sed '
14976 /^ac_cv_env_/b end
14977 t clear
14978 :clear
14979 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14980 t end
14981 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14982 :end' >>confcache
14983 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14984 if test -w "$cache_file"; then
14985 test "x$cache_file" != "x/dev/null" &&
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14987 $as_echo "$as_me: updating cache $cache_file" >&6;}
14988 cat confcache >$cache_file
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14992 fi
14993 fi
14994 rm -f confcache
14995
14996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14997 # Let make expand exec_prefix.
14998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14999
15000 # Transform confdefs.h into DEFS.
15001 # Protect against shell expansion while executing Makefile rules.
15002 # Protect against Makefile macro expansion.
15003 #
15004 # If the first sed substitution is executed (which looks for macros that
15005 # take arguments), then branch to the quote section. Otherwise,
15006 # look for a macro that doesn't take arguments.
15007 ac_script='
15008 :mline
15009 /\\$/{
15010 N
15011 s,\\\n,,
15012 b mline
15013 }
15014 t clear
15015 :clear
15016 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15017 t quote
15018 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15019 t quote
15020 b any
15021 :quote
15022 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15023 s/\[/\\&/g
15024 s/\]/\\&/g
15025 s/\$/$$/g
15026 H
15027 :any
15028 ${
15029 g
15030 s/^\n//
15031 s/\n/ /g
15032 p
15033 }
15034 '
15035 DEFS=`sed -n "$ac_script" confdefs.h`
15036
15037
15038 ac_libobjs=
15039 ac_ltlibobjs=
15040 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15041 # 1. Remove the extension, and $U if already installed.
15042 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15043 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15044 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15045 # will be set to the directory where LIBOBJS objects are built.
15046 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15047 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15048 done
15049 LIBOBJS=$ac_libobjs
15050
15051 LTLIBOBJS=$ac_ltlibobjs
15052
15053
15054
15055 : ${CONFIG_STATUS=./config.status}
15056 ac_write_fail=0
15057 ac_clean_files_save=$ac_clean_files
15058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15061 as_write_fail=0
15062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15063 #! $SHELL
15064 # Generated by $as_me.
15065 # Run this file to recreate the current configuration.
15066 # Compiler output produced by configure, useful for debugging
15067 # configure, is in config.log if it exists.
15068
15069 debug=false
15070 ac_cs_recheck=false
15071 ac_cs_silent=false
15072
15073 SHELL=\${CONFIG_SHELL-$SHELL}
15074 export SHELL
15075 _ASEOF
15076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15077 ## -------------------- ##
15078 ## M4sh Initialization. ##
15079 ## -------------------- ##
15080
15081 # Be more Bourne compatible
15082 DUALCASE=1; export DUALCASE # for MKS sh
15083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15084 emulate sh
15085 NULLCMD=:
15086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15087 # is contrary to our usage. Disable this feature.
15088 alias -g '${1+"$@"}'='"$@"'
15089 setopt NO_GLOB_SUBST
15090 else
15091 case `(set -o) 2>/dev/null` in #(
15092 *posix*) :
15093 set -o posix ;; #(
15094 *) :
15095 ;;
15096 esac
15097 fi
15098
15099
15100 as_nl='
15101 '
15102 export as_nl
15103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15107 # Prefer a ksh shell builtin over an external printf program on Solaris,
15108 # but without wasting forks for bash or zsh.
15109 if test -z "$BASH_VERSION$ZSH_VERSION" \
15110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15111 as_echo='print -r --'
15112 as_echo_n='print -rn --'
15113 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15114 as_echo='printf %s\n'
15115 as_echo_n='printf %s'
15116 else
15117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15119 as_echo_n='/usr/ucb/echo -n'
15120 else
15121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15122 as_echo_n_body='eval
15123 arg=$1;
15124 case $arg in #(
15125 *"$as_nl"*)
15126 expr "X$arg" : "X\\(.*\\)$as_nl";
15127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15128 esac;
15129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15130 '
15131 export as_echo_n_body
15132 as_echo_n='sh -c $as_echo_n_body as_echo'
15133 fi
15134 export as_echo_body
15135 as_echo='sh -c $as_echo_body as_echo'
15136 fi
15137
15138 # The user is always right.
15139 if test "${PATH_SEPARATOR+set}" != set; then
15140 PATH_SEPARATOR=:
15141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15143 PATH_SEPARATOR=';'
15144 }
15145 fi
15146
15147
15148 # IFS
15149 # We need space, tab and new line, in precisely that order. Quoting is
15150 # there to prevent editors from complaining about space-tab.
15151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15152 # splitting by setting IFS to empty value.)
15153 IFS=" "" $as_nl"
15154
15155 # Find who we are. Look in the path if we contain no directory separator.
15156 case $0 in #((
15157 *[\\/]* ) as_myself=$0 ;;
15158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15159 for as_dir in $PATH
15160 do
15161 IFS=$as_save_IFS
15162 test -z "$as_dir" && as_dir=.
15163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15164 done
15165 IFS=$as_save_IFS
15166
15167 ;;
15168 esac
15169 # We did not find ourselves, most probably we were run as `sh COMMAND'
15170 # in which case we are not to be found in the path.
15171 if test "x$as_myself" = x; then
15172 as_myself=$0
15173 fi
15174 if test ! -f "$as_myself"; then
15175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15176 exit 1
15177 fi
15178
15179 # Unset variables that we do not need and which cause bugs (e.g. in
15180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15181 # suppresses any "Segmentation fault" message there. '((' could
15182 # trigger a bug in pdksh 5.2.14.
15183 for as_var in BASH_ENV ENV MAIL MAILPATH
15184 do eval test x\${$as_var+set} = xset \
15185 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15186 done
15187 PS1='$ '
15188 PS2='> '
15189 PS4='+ '
15190
15191 # NLS nuisances.
15192 LC_ALL=C
15193 export LC_ALL
15194 LANGUAGE=C
15195 export LANGUAGE
15196
15197 # CDPATH.
15198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15199
15200
15201 # as_fn_error ERROR [LINENO LOG_FD]
15202 # ---------------------------------
15203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15205 # script with status $?, using 1 if that was 0.
15206 as_fn_error ()
15207 {
15208 as_status=$?; test $as_status -eq 0 && as_status=1
15209 if test "$3"; then
15210 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15212 fi
15213 $as_echo "$as_me: error: $1" >&2
15214 as_fn_exit $as_status
15215 } # as_fn_error
15216
15217
15218 # as_fn_set_status STATUS
15219 # -----------------------
15220 # Set $? to STATUS, without forking.
15221 as_fn_set_status ()
15222 {
15223 return $1
15224 } # as_fn_set_status
15225
15226 # as_fn_exit STATUS
15227 # -----------------
15228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15229 as_fn_exit ()
15230 {
15231 set +e
15232 as_fn_set_status $1
15233 exit $1
15234 } # as_fn_exit
15235
15236 # as_fn_unset VAR
15237 # ---------------
15238 # Portably unset VAR.
15239 as_fn_unset ()
15240 {
15241 { eval $1=; unset $1;}
15242 }
15243 as_unset=as_fn_unset
15244 # as_fn_append VAR VALUE
15245 # ----------------------
15246 # Append the text in VALUE to the end of the definition contained in VAR. Take
15247 # advantage of any shell optimizations that allow amortized linear growth over
15248 # repeated appends, instead of the typical quadratic growth present in naive
15249 # implementations.
15250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15251 eval 'as_fn_append ()
15252 {
15253 eval $1+=\$2
15254 }'
15255 else
15256 as_fn_append ()
15257 {
15258 eval $1=\$$1\$2
15259 }
15260 fi # as_fn_append
15261
15262 # as_fn_arith ARG...
15263 # ------------------
15264 # Perform arithmetic evaluation on the ARGs, and store the result in the
15265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15266 # must be portable across $(()) and expr.
15267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15268 eval 'as_fn_arith ()
15269 {
15270 as_val=$(( $* ))
15271 }'
15272 else
15273 as_fn_arith ()
15274 {
15275 as_val=`expr "$@" || test $? -eq 1`
15276 }
15277 fi # as_fn_arith
15278
15279
15280 if expr a : '\(a\)' >/dev/null 2>&1 &&
15281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15282 as_expr=expr
15283 else
15284 as_expr=false
15285 fi
15286
15287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15288 as_basename=basename
15289 else
15290 as_basename=false
15291 fi
15292
15293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15294 as_dirname=dirname
15295 else
15296 as_dirname=false
15297 fi
15298
15299 as_me=`$as_basename -- "$0" ||
15300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15301 X"$0" : 'X\(//\)$' \| \
15302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15303 $as_echo X/"$0" |
15304 sed '/^.*\/\([^/][^/]*\)\/*$/{
15305 s//\1/
15306 q
15307 }
15308 /^X\/\(\/\/\)$/{
15309 s//\1/
15310 q
15311 }
15312 /^X\/\(\/\).*/{
15313 s//\1/
15314 q
15315 }
15316 s/.*/./; q'`
15317
15318 # Avoid depending upon Character Ranges.
15319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15322 as_cr_digits='0123456789'
15323 as_cr_alnum=$as_cr_Letters$as_cr_digits
15324
15325 ECHO_C= ECHO_N= ECHO_T=
15326 case `echo -n x` in #(((((
15327 -n*)
15328 case `echo 'xy\c'` in
15329 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15330 xy) ECHO_C='\c';;
15331 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15332 ECHO_T=' ';;
15333 esac;;
15334 *)
15335 ECHO_N='-n';;
15336 esac
15337
15338 rm -f conf$$ conf$$.exe conf$$.file
15339 if test -d conf$$.dir; then
15340 rm -f conf$$.dir/conf$$.file
15341 else
15342 rm -f conf$$.dir
15343 mkdir conf$$.dir 2>/dev/null
15344 fi
15345 if (echo >conf$$.file) 2>/dev/null; then
15346 if ln -s conf$$.file conf$$ 2>/dev/null; then
15347 as_ln_s='ln -s'
15348 # ... but there are two gotchas:
15349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15351 # In both cases, we have to default to `cp -p'.
15352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15353 as_ln_s='cp -p'
15354 elif ln conf$$.file conf$$ 2>/dev/null; then
15355 as_ln_s=ln
15356 else
15357 as_ln_s='cp -p'
15358 fi
15359 else
15360 as_ln_s='cp -p'
15361 fi
15362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15363 rmdir conf$$.dir 2>/dev/null
15364
15365
15366 # as_fn_mkdir_p
15367 # -------------
15368 # Create "$as_dir" as a directory, including parents if necessary.
15369 as_fn_mkdir_p ()
15370 {
15371
15372 case $as_dir in #(
15373 -*) as_dir=./$as_dir;;
15374 esac
15375 test -d "$as_dir" || eval $as_mkdir_p || {
15376 as_dirs=
15377 while :; do
15378 case $as_dir in #(
15379 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15380 *) as_qdir=$as_dir;;
15381 esac
15382 as_dirs="'$as_qdir' $as_dirs"
15383 as_dir=`$as_dirname -- "$as_dir" ||
15384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15385 X"$as_dir" : 'X\(//\)[^/]' \| \
15386 X"$as_dir" : 'X\(//\)$' \| \
15387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15388 $as_echo X"$as_dir" |
15389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15390 s//\1/
15391 q
15392 }
15393 /^X\(\/\/\)[^/].*/{
15394 s//\1/
15395 q
15396 }
15397 /^X\(\/\/\)$/{
15398 s//\1/
15399 q
15400 }
15401 /^X\(\/\).*/{
15402 s//\1/
15403 q
15404 }
15405 s/.*/./; q'`
15406 test -d "$as_dir" && break
15407 done
15408 test -z "$as_dirs" || eval "mkdir $as_dirs"
15409 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15410
15411
15412 } # as_fn_mkdir_p
15413 if mkdir -p . 2>/dev/null; then
15414 as_mkdir_p='mkdir -p "$as_dir"'
15415 else
15416 test -d ./-p && rmdir ./-p
15417 as_mkdir_p=false
15418 fi
15419
15420 if test -x / >/dev/null 2>&1; then
15421 as_test_x='test -x'
15422 else
15423 if ls -dL / >/dev/null 2>&1; then
15424 as_ls_L_option=L
15425 else
15426 as_ls_L_option=
15427 fi
15428 as_test_x='
15429 eval sh -c '\''
15430 if test -d "$1"; then
15431 test -d "$1/.";
15432 else
15433 case $1 in #(
15434 -*)set "./$1";;
15435 esac;
15436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15437 ???[sx]*):;;*)false;;esac;fi
15438 '\'' sh
15439 '
15440 fi
15441 as_executable_p=$as_test_x
15442
15443 # Sed expression to map a string onto a valid CPP name.
15444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15445
15446 # Sed expression to map a string onto a valid variable name.
15447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15448
15449
15450 exec 6>&1
15451 ## ----------------------------------- ##
15452 ## Main body of $CONFIG_STATUS script. ##
15453 ## ----------------------------------- ##
15454 _ASEOF
15455 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15456
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15458 # Save the log message, to keep $0 and so on meaningful, and to
15459 # report actual input values of CONFIG_FILES etc. instead of their
15460 # values after options handling.
15461 ac_log="
15462 This file was extended by $as_me, which was
15463 generated by GNU Autoconf 2.64. Invocation command line was
15464
15465 CONFIG_FILES = $CONFIG_FILES
15466 CONFIG_HEADERS = $CONFIG_HEADERS
15467 CONFIG_LINKS = $CONFIG_LINKS
15468 CONFIG_COMMANDS = $CONFIG_COMMANDS
15469 $ $0 $@
15470
15471 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15472 "
15473
15474 _ACEOF
15475
15476 case $ac_config_files in *"
15477 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15478 esac
15479
15480
15481
15482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15483 # Files that config.status was made for.
15484 config_files="$ac_config_files"
15485
15486 _ACEOF
15487
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489 ac_cs_usage="\
15490 \`$as_me' instantiates files and other configuration actions
15491 from templates according to the current configuration. Unless the files
15492 and actions are specified as TAGs, all are instantiated by default.
15493
15494 Usage: $0 [OPTION]... [TAG]...
15495
15496 -h, --help print this help, then exit
15497 -V, --version print version number and configuration settings, then exit
15498 -q, --quiet, --silent
15499 do not print progress messages
15500 -d, --debug don't remove temporary files
15501 --recheck update $as_me by reconfiguring in the same conditions
15502 --file=FILE[:TEMPLATE]
15503 instantiate the configuration file FILE
15504
15505 Configuration files:
15506 $config_files
15507
15508 Report bugs to the package provider."
15509
15510 _ACEOF
15511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512 ac_cs_version="\\
15513 config.status
15514 configured by $0, generated by GNU Autoconf 2.64,
15515 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15516
15517 Copyright (C) 2009 Free Software Foundation, Inc.
15518 This config.status script is free software; the Free Software Foundation
15519 gives unlimited permission to copy, distribute and modify it."
15520
15521 ac_pwd='$ac_pwd'
15522 srcdir='$srcdir'
15523 INSTALL='$INSTALL'
15524 AWK='$AWK'
15525 test -n "\$AWK" || AWK=awk
15526 _ACEOF
15527
15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 # The default lists apply if the user does not specify any file.
15530 ac_need_defaults=:
15531 while test $# != 0
15532 do
15533 case $1 in
15534 --*=*)
15535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15537 ac_shift=:
15538 ;;
15539 *)
15540 ac_option=$1
15541 ac_optarg=$2
15542 ac_shift=shift
15543 ;;
15544 esac
15545
15546 case $ac_option in
15547 # Handling of the options.
15548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15549 ac_cs_recheck=: ;;
15550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15551 $as_echo "$ac_cs_version"; exit ;;
15552 --debug | --debu | --deb | --de | --d | -d )
15553 debug=: ;;
15554 --file | --fil | --fi | --f )
15555 $ac_shift
15556 case $ac_optarg in
15557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15558 esac
15559 as_fn_append CONFIG_FILES " '$ac_optarg'"
15560 ac_need_defaults=false;;
15561 --he | --h | --help | --hel | -h )
15562 $as_echo "$ac_cs_usage"; exit ;;
15563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15565 ac_cs_silent=: ;;
15566
15567 # This is an error.
15568 -*) as_fn_error "unrecognized option: \`$1'
15569 Try \`$0 --help' for more information." ;;
15570
15571 *) as_fn_append ac_config_targets " $1"
15572 ac_need_defaults=false ;;
15573
15574 esac
15575 shift
15576 done
15577
15578 ac_configure_extra_args=
15579
15580 if $ac_cs_silent; then
15581 exec 6>/dev/null
15582 ac_configure_extra_args="$ac_configure_extra_args --silent"
15583 fi
15584
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 if \$ac_cs_recheck; then
15588 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15589 shift
15590 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15591 CONFIG_SHELL='$SHELL'
15592 export CONFIG_SHELL
15593 exec "\$@"
15594 fi
15595
15596 _ACEOF
15597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15598 exec 5>>config.log
15599 {
15600 echo
15601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15602 ## Running $as_me. ##
15603 _ASBOX
15604 $as_echo "$ac_log"
15605 } >&5
15606
15607 _ACEOF
15608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 #
15610 # INIT-COMMANDS
15611 #
15612 extrasub_build="$extrasub_build"
15613 extrasub_host="$extrasub_host"
15614 extrasub_target="$extrasub_target"
15615
15616 _ACEOF
15617
15618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15619
15620 # Handling of arguments.
15621 for ac_config_target in $ac_config_targets
15622 do
15623 case $ac_config_target in
15624 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15625
15626 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15627 esac
15628 done
15629
15630
15631 # If the user did not use the arguments to specify the items to instantiate,
15632 # then the envvar interface is used. Set only those that are not.
15633 # We use the long form for the default assignment because of an extremely
15634 # bizarre bug on SunOS 4.1.3.
15635 if $ac_need_defaults; then
15636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15637 fi
15638
15639 # Have a temporary directory for convenience. Make it in the build tree
15640 # simply because there is no reason against having it here, and in addition,
15641 # creating and moving files from /tmp can sometimes cause problems.
15642 # Hook for its removal unless debugging.
15643 # Note that there is a small window in which the directory will not be cleaned:
15644 # after its creation but before its name has been assigned to `$tmp'.
15645 $debug ||
15646 {
15647 tmp=
15648 trap 'exit_status=$?
15649 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15650 ' 0
15651 trap 'as_fn_exit 1' 1 2 13 15
15652 }
15653 # Create a (secure) tmp directory for tmp files.
15654
15655 {
15656 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15657 test -n "$tmp" && test -d "$tmp"
15658 } ||
15659 {
15660 tmp=./conf$$-$RANDOM
15661 (umask 077 && mkdir "$tmp")
15662 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15663
15664 # Set up the scripts for CONFIG_FILES section.
15665 # No need to generate them if there are no CONFIG_FILES.
15666 # This happens for instance with `./config.status config.h'.
15667 if test -n "$CONFIG_FILES"; then
15668
15669 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15670 ac_cs_awk_getline=:
15671 ac_cs_awk_pipe_init=
15672 ac_cs_awk_read_file='
15673 while ((getline aline < (F[key])) > 0)
15674 print(aline)
15675 close(F[key])'
15676 ac_cs_awk_pipe_fini=
15677 else
15678 ac_cs_awk_getline=false
15679 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15680 ac_cs_awk_read_file='
15681 print "|#_!!_#|"
15682 print "cat " F[key] " &&"
15683 '$ac_cs_awk_pipe_init
15684 # The final `:' finishes the AND list.
15685 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15686 fi
15687 ac_cr=`echo X | tr X '\015'`
15688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15689 # But we know of no other shell where ac_cr would be empty at this
15690 # point, so we can use a bashism as a fallback.
15691 if test "x$ac_cr" = x; then
15692 eval ac_cr=\$\'\\r\'
15693 fi
15694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15696 ac_cs_awk_cr='\r'
15697 else
15698 ac_cs_awk_cr=$ac_cr
15699 fi
15700
15701 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15702 _ACEOF
15703
15704 # Create commands to substitute file output variables.
15705 {
15706 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15707 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15708 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15709 echo "_ACAWK" &&
15710 echo "_ACEOF"
15711 } >conf$$files.sh &&
15712 . ./conf$$files.sh ||
15713 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15714 rm -f conf$$files.sh
15715
15716 {
15717 echo "cat >conf$$subs.awk <<_ACEOF" &&
15718 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15719 echo "_ACEOF"
15720 } >conf$$subs.sh ||
15721 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15722 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15723 ac_delim='%!_!# '
15724 for ac_last_try in false false false false false :; do
15725 . ./conf$$subs.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727
15728 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15729 if test $ac_delim_n = $ac_delim_num; then
15730 break
15731 elif $ac_last_try; then
15732 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15733 else
15734 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15735 fi
15736 done
15737 rm -f conf$$subs.sh
15738
15739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15740 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15741 _ACEOF
15742 sed -n '
15743 h
15744 s/^/S["/; s/!.*/"]=/
15745 p
15746 g
15747 s/^[^!]*!//
15748 :repl
15749 t repl
15750 s/'"$ac_delim"'$//
15751 t delim
15752 :nl
15753 h
15754 s/\(.\{148\}\).*/\1/
15755 t more1
15756 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15757 p
15758 n
15759 b repl
15760 :more1
15761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15762 p
15763 g
15764 s/.\{148\}//
15765 t nl
15766 :delim
15767 h
15768 s/\(.\{148\}\).*/\1/
15769 t more2
15770 s/["\\]/\\&/g; s/^/"/; s/$/"/
15771 p
15772 b
15773 :more2
15774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775 p
15776 g
15777 s/.\{148\}//
15778 t delim
15779 ' <conf$$subs.awk | sed '
15780 /^[^""]/{
15781 N
15782 s/\n//
15783 }
15784 ' >>$CONFIG_STATUS || ac_write_fail=1
15785 rm -f conf$$subs.awk
15786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15787 _ACAWK
15788 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15789 for (key in S) S_is_set[key] = 1
15790 FS = "\a"
15791 \$ac_cs_awk_pipe_init
15792 }
15793 {
15794 line = $ 0
15795 nfields = split(line, field, "@")
15796 substed = 0
15797 len = length(field[1])
15798 for (i = 2; i < nfields; i++) {
15799 key = field[i]
15800 keylen = length(key)
15801 if (S_is_set[key]) {
15802 value = S[key]
15803 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15804 len += length(value) + length(field[++i])
15805 substed = 1
15806 } else
15807 len += 1 + keylen
15808 }
15809 if (nfields == 3 && !substed) {
15810 key = field[2]
15811 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15812 \$ac_cs_awk_read_file
15813 next
15814 }
15815 }
15816 print line
15817 }
15818 \$ac_cs_awk_pipe_fini
15819 _ACAWK
15820 _ACEOF
15821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15824 else
15825 cat
15826 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15827 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15828 _ACEOF
15829
15830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15832 # trailing colons and then remove the whole line if VPATH becomes empty
15833 # (actually we leave an empty line to preserve line numbers).
15834 if test "x$srcdir" = x.; then
15835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15836 s/:*\$(srcdir):*/:/
15837 s/:*\${srcdir}:*/:/
15838 s/:*@srcdir@:*/:/
15839 s/^\([^=]*=[ ]*\):*/\1/
15840 s/:*$//
15841 s/^[^=]*=[ ]*$//
15842 }'
15843 fi
15844
15845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846 fi # test -n "$CONFIG_FILES"
15847
15848
15849 eval set X " :F $CONFIG_FILES "
15850 shift
15851 for ac_tag
15852 do
15853 case $ac_tag in
15854 :[FHLC]) ac_mode=$ac_tag; continue;;
15855 esac
15856 case $ac_mode$ac_tag in
15857 :[FHL]*:*);;
15858 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15859 :[FH]-) ac_tag=-:-;;
15860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15861 esac
15862 ac_save_IFS=$IFS
15863 IFS=:
15864 set x $ac_tag
15865 IFS=$ac_save_IFS
15866 shift
15867 ac_file=$1
15868 shift
15869
15870 case $ac_mode in
15871 :L) ac_source=$1;;
15872 :[FH])
15873 ac_file_inputs=
15874 for ac_f
15875 do
15876 case $ac_f in
15877 -) ac_f="$tmp/stdin";;
15878 *) # Look for the file first in the build tree, then in the source tree
15879 # (if the path is not absolute). The absolute path cannot be DOS-style,
15880 # because $ac_f cannot contain `:'.
15881 test -f "$ac_f" ||
15882 case $ac_f in
15883 [\\/$]*) false;;
15884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15885 esac ||
15886 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15887 esac
15888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15889 as_fn_append ac_file_inputs " '$ac_f'"
15890 done
15891
15892 # Let's still pretend it is `configure' which instantiates (i.e., don't
15893 # use $as_me), people would be surprised to read:
15894 # /* config.h. Generated by config.status. */
15895 configure_input='Generated from '`
15896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15897 `' by configure.'
15898 if test x"$ac_file" != x-; then
15899 configure_input="$ac_file. $configure_input"
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15901 $as_echo "$as_me: creating $ac_file" >&6;}
15902 fi
15903 # Neutralize special characters interpreted by sed in replacement strings.
15904 case $configure_input in #(
15905 *\&* | *\|* | *\\* )
15906 ac_sed_conf_input=`$as_echo "$configure_input" |
15907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15908 *) ac_sed_conf_input=$configure_input;;
15909 esac
15910
15911 case $ac_tag in
15912 *:-:* | *:-) cat >"$tmp/stdin" \
15913 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15914 esac
15915 ;;
15916 esac
15917
15918 ac_dir=`$as_dirname -- "$ac_file" ||
15919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15920 X"$ac_file" : 'X\(//\)[^/]' \| \
15921 X"$ac_file" : 'X\(//\)$' \| \
15922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15923 $as_echo X"$ac_file" |
15924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15925 s//\1/
15926 q
15927 }
15928 /^X\(\/\/\)[^/].*/{
15929 s//\1/
15930 q
15931 }
15932 /^X\(\/\/\)$/{
15933 s//\1/
15934 q
15935 }
15936 /^X\(\/\).*/{
15937 s//\1/
15938 q
15939 }
15940 s/.*/./; q'`
15941 as_dir="$ac_dir"; as_fn_mkdir_p
15942 ac_builddir=.
15943
15944 case "$ac_dir" in
15945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15946 *)
15947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15948 # A ".." for each directory in $ac_dir_suffix.
15949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15950 case $ac_top_builddir_sub in
15951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15953 esac ;;
15954 esac
15955 ac_abs_top_builddir=$ac_pwd
15956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15957 # for backward compatibility:
15958 ac_top_builddir=$ac_top_build_prefix
15959
15960 case $srcdir in
15961 .) # We are building in place.
15962 ac_srcdir=.
15963 ac_top_srcdir=$ac_top_builddir_sub
15964 ac_abs_top_srcdir=$ac_pwd ;;
15965 [\\/]* | ?:[\\/]* ) # Absolute name.
15966 ac_srcdir=$srcdir$ac_dir_suffix;
15967 ac_top_srcdir=$srcdir
15968 ac_abs_top_srcdir=$srcdir ;;
15969 *) # Relative name.
15970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15971 ac_top_srcdir=$ac_top_build_prefix$srcdir
15972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15973 esac
15974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15975
15976
15977 case $ac_mode in
15978 :F)
15979 #
15980 # CONFIG_FILE
15981 #
15982
15983 case $INSTALL in
15984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15986 esac
15987 _ACEOF
15988
15989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15990 # If the template does not know about datarootdir, expand it.
15991 # FIXME: This hack should be removed a few years after 2.60.
15992 ac_datarootdir_hack=; ac_datarootdir_seen=
15993 ac_sed_dataroot='
15994 /datarootdir/ {
15995 p
15996 q
15997 }
15998 /@datadir@/p
15999 /@docdir@/p
16000 /@infodir@/p
16001 /@localedir@/p
16002 /@mandir@/p'
16003 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16004 *datarootdir*) ac_datarootdir_seen=yes;;
16005 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16007 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16008 _ACEOF
16009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16010 ac_datarootdir_hack='
16011 s&@datadir@&$datadir&g
16012 s&@docdir@&$docdir&g
16013 s&@infodir@&$infodir&g
16014 s&@localedir@&$localedir&g
16015 s&@mandir@&$mandir&g
16016 s&\\\${datarootdir}&$datarootdir&g' ;;
16017 esac
16018 _ACEOF
16019
16020 # Neutralize VPATH when `$srcdir' = `.'.
16021 # Shell code in configure.ac might set extrasub.
16022 # FIXME: do we really want to maintain this feature?
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 ac_sed_extra="$ac_vpsub
16025 $extrasub
16026 _ACEOF
16027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16028 :t
16029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16030 s|@configure_input@|$ac_sed_conf_input|;t t
16031 s&@top_builddir@&$ac_top_builddir_sub&;t t
16032 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16033 s&@srcdir@&$ac_srcdir&;t t
16034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16035 s&@top_srcdir@&$ac_top_srcdir&;t t
16036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16037 s&@builddir@&$ac_builddir&;t t
16038 s&@abs_builddir@&$ac_abs_builddir&;t t
16039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16040 s&@INSTALL@&$ac_INSTALL&;t t
16041 $ac_datarootdir_hack
16042 "
16043 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16044 if $ac_cs_awk_getline; then
16045 $AWK -f "$tmp/subs.awk"
16046 else
16047 $AWK -f "$tmp/subs.awk" | $SHELL
16048 fi >$tmp/out \
16049 || as_fn_error "could not create $ac_file" "$LINENO" 5
16050
16051 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16052 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16053 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16055 which seems to be undefined. Please make sure it is defined." >&5
16056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16057 which seems to be undefined. Please make sure it is defined." >&2;}
16058
16059 rm -f "$tmp/stdin"
16060 case $ac_file in
16061 -) cat "$tmp/out" && rm -f "$tmp/out";;
16062 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16063 esac \
16064 || as_fn_error "could not create $ac_file" "$LINENO" 5
16065 ;;
16066
16067
16068
16069 esac
16070
16071
16072 case $ac_file$ac_mode in
16073 "Makefile":F) sed "$extrasub_build" Makefile |
16074 sed "$extrasub_host" |
16075 sed "$extrasub_target" > mf$$
16076 mv -f mf$$ Makefile ;;
16077
16078 esac
16079 done # for ac_tag
16080
16081
16082 as_fn_exit 0
16083 _ACEOF
16084 ac_clean_files=$ac_clean_files_save
16085
16086 test $ac_write_fail = 0 ||
16087 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16088
16089
16090 # configure is writing to config.log, and then calls config.status.
16091 # config.status does its own redirection, appending to config.log.
16092 # Unfortunately, on DOS this fails, as config.log is still kept open
16093 # by configure, so config.status won't be able to write to it; its
16094 # output is simply discarded. So we exec the FD to /dev/null,
16095 # effectively closing config.log, so it can be properly (re)opened and
16096 # appended to by config.status. When coming back to configure, we
16097 # need to make the FD available again.
16098 if test "$no_create" != yes; then
16099 ac_cs_success=:
16100 ac_config_status_args=
16101 test "$silent" = yes &&
16102 ac_config_status_args="$ac_config_status_args --quiet"
16103 exec 5>/dev/null
16104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16105 exec 5>>config.log
16106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16107 # would make configure fail if this is the last instruction.
16108 $ac_cs_success || as_fn_exit $?
16109 fi
16110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16113 fi
16114