configure revision 1.10 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 (at] 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_libiberty_configure_flags
647 stage1_languages
648 extra_linker_plugin_flags
649 extra_linker_plugin_configure_flags
650 islinc
651 isllibs
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 EXTRA_CONFIGARGS_LIBJAVA
676 extra_liboffloadmic_configure_flags
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
681 AWK
682 SED
683 LN_S
684 LN
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 enable_as_accelerator_for
751 enable_offload_targets
752 enable_gold
753 enable_ld
754 enable_libquadmath
755 enable_libquadmath_support
756 enable_libada
757 enable_libssp
758 enable_libstdcxx
759 enable_liboffloadmic
760 enable_static_libjava
761 enable_bootstrap
762 with_mpc
763 with_mpc_include
764 with_mpc_lib
765 with_mpfr_dir
766 with_mpfr
767 with_mpfr_include
768 with_mpfr_lib
769 with_gmp_dir
770 with_gmp
771 with_gmp_include
772 with_gmp_lib
773 with_host_libstdcxx
774 with_stage1_libs
775 with_stage1_ldflags
776 with_boot_libs
777 with_boot_ldflags
778 with_isl
779 with_isl_include
780 with_isl_lib
781 enable_isl_version_check
782 enable_lto
783 enable_linker_plugin_configure_flags
784 enable_linker_plugin_flags
785 enable_stage1_languages
786 enable_objc_gc
787 with_build_sysroot
788 with_debug_prefix_map
789 with_build_config
790 enable_vtable_verify
791 enable_serial_configure
792 with_build_time_tools
793 enable_maintainer_mode
794 enable_stage1_checking
795 enable_werror
796 enable_host_shared
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 build_configargs
810 host_configargs
811 target_configargs
812 AR
813 AS
814 DLLTOOL
815 LD
816 LIPO
817 NM
818 RANLIB
819 STRIP
820 WINDRES
821 WINDMC
822 OBJCOPY
823 OBJDUMP
824 READELF
825 CC_FOR_TARGET
826 CXX_FOR_TARGET
827 GCC_FOR_TARGET
828 GCJ_FOR_TARGET
829 GFORTRAN_FOR_TARGET
830 GOC_FOR_TARGET
831 AR_FOR_TARGET
832 AS_FOR_TARGET
833 DLLTOOL_FOR_TARGET
834 LD_FOR_TARGET
835 LIPO_FOR_TARGET
836 NM_FOR_TARGET
837 OBJCOPY_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
903 fi
904
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1374 ;;
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-as-accelerator-for=ARG
1470 build as offload target compiler. Specify offload
1471 host triple by ARG
1472 --enable-offload-targets=LIST
1473 enable offloading to devices from comma-separated
1474 LIST of TARGET[=DIR]. Use optional path to find
1475 offload target compiler during the build
1476 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1477 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1478 --disable-libquadmath do not build libquadmath directory
1479 --disable-libquadmath-support
1480 disable libquadmath support for Fortran
1481 --enable-libada build libada directory
1482 --enable-libssp build libssp directory
1483 --disable-libstdcxx do not build libstdc++-v3 directory
1484 --enable-liboffloadmic=ARG
1485 build liboffloadmic [ARG={no,host,target}]
1486 --enable-static-libjava[=ARG]
1487 build static libjava [default=no]
1488 --enable-bootstrap enable bootstrapping [yes if native build]
1489 --disable-isl-version-check
1490 disable check for ISL version
1491 --enable-lto enable link time optimization support
1492 --enable-linker-plugin-configure-flags=FLAGS
1493 additional flags for configuring linker plugins
1494 [none]
1495 --enable-linker-plugin-flags=FLAGS
1496 additional flags for configuring and building linker
1497 plugins [none]
1498 --enable-stage1-languages[=all]
1499 choose additional languages to build during stage1.
1500 Mostly useful for compiler development
1501 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1502 Objective-C runtime
1503 --enable-vtable-verify Enable vtable verification feature
1504 --enable-serial-[{host,target,build}-]configure
1505 force sequential configuration of sub-packages for
1506 the host, target or build machine, or all
1507 sub-packages
1508 --enable-maintainer-mode
1509 enable make rules and dependencies not useful (and
1510 sometimes confusing) to the casual installer
1511 --enable-stage1-checking[=all]
1512 choose additional checking for stage1 of the
1513 compiler
1514 --enable-werror enable -Werror in bootstrap stage2 and later
1515 --enable-host-shared build host code as shared libraries
1516
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-build-libsubdir=DIR Directory where to find libraries for build system
1521 --with-mpc=PATH specify prefix directory for installed MPC package.
1522 Equivalent to --with-mpc-include=PATH/include plus
1523 --with-mpc-lib=PATH/lib
1524 --with-mpc-include=PATH specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1528 Equivalent to --with-mpfr-include=PATH/include plus
1529 --with-mpfr-lib=PATH/lib
1530 --with-mpfr-include=PATH
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
1534 --with-gmp=PATH specify prefix directory for the installed GMP
1535 package. Equivalent to
1536 --with-gmp-include=PATH/include plus
1537 --with-gmp-lib=PATH/lib
1538 --with-gmp-include=PATH specify directory for installed GMP include files
1539 --with-gmp-lib=PATH specify directory for the installed GMP library
1540 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1541 linking with PPL
1542 --with-stage1-libs=LIBS libraries for stage1
1543 --with-stage1-ldflags=FLAGS
1544 linker flags for stage1
1545 --with-boot-libs=LIBS libraries for stage2 and later
1546 --with-boot-ldflags=FLAGS
1547 linker flags for stage2 and later
1548 --with-isl=PATH Specify prefix directory for the installed ISL
1549 package. Equivalent to
1550 --with-isl-include=PATH/include plus
1551 --with-isl-lib=PATH/lib
1552 --with-isl-include=PATH Specify directory for installed ISL include files
1553 --with-isl-lib=PATH Specify the directory for the installed ISL library
1554 --with-build-sysroot=SYSROOT
1555 use sysroot as the system root during the build
1556 --with-debug-prefix-map='A=B C=D ...'
1557 map A to B, C to D ... in debug information
1558 --with-build-config='NAME NAME2...'
1559 use config/NAME.mk build configuration
1560 --with-build-time-tools=PATH
1561 use given path to find target tools during the build
1562
1563 Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
1571 CXX C++ compiler command
1572 CXXFLAGS C++ compiler flags
1573 build_configargs
1574 additional configure arguments for build directories
1575 host_configargs
1576 additional configure arguments for host directories
1577 target_configargs
1578 additional configure arguments for target directories
1579 AR AR for the host
1580 AS AS for the host
1581 DLLTOOL DLLTOOL for the host
1582 LD LD for the host
1583 LIPO LIPO for the host
1584 NM NM for the host
1585 RANLIB RANLIB for the host
1586 STRIP STRIP for the host
1587 WINDRES WINDRES for the host
1588 WINDMC WINDMC for the host
1589 OBJCOPY OBJCOPY for the host
1590 OBJDUMP OBJDUMP for the host
1591 READELF READELF for the host
1592 CC_FOR_TARGET
1593 CC for the target
1594 CXX_FOR_TARGET
1595 CXX for the target
1596 GCC_FOR_TARGET
1597 GCC for the target
1598 GCJ_FOR_TARGET
1599 GCJ for the target
1600 GFORTRAN_FOR_TARGET
1601 GFORTRAN for the target
1602 GOC_FOR_TARGET
1603 GOC for the target
1604 AR_FOR_TARGET
1605 AR for the target
1606 AS_FOR_TARGET
1607 AS for the target
1608 DLLTOOL_FOR_TARGET
1609 DLLTOOL for the target
1610 LD_FOR_TARGET
1611 LD for the target
1612 LIPO_FOR_TARGET
1613 LIPO for the target
1614 NM_FOR_TARGET
1615 NM for the target
1616 OBJCOPY_FOR_TARGET
1617 OBJCOPY for the target
1618 OBJDUMP_FOR_TARGET
1619 OBJDUMP for the target
1620 RANLIB_FOR_TARGET
1621 RANLIB for the target
1622 READELF_FOR_TARGET
1623 READELF for the target
1624 STRIP_FOR_TARGET
1625 STRIP for the target
1626 WINDRES_FOR_TARGET
1627 WINDRES for the target
1628 WINDMC_FOR_TARGET
1629 WINDMC for the target
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to the package provider.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 configure
1698 generated by GNU Autoconf 2.64
1699
1700 Copyright (C) 2009 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747 } # ac_fn_c_try_compile
1748
1749 # ac_fn_cxx_try_compile LINENO
1750 # ----------------------------
1751 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_cxx_try_compile ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757 case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781 fi
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 return $ac_retval
1784
1785 } # ac_fn_cxx_try_compile
1786
1787 # ac_fn_cxx_try_link LINENO
1788 # -------------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_link ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1830
1831 } # ac_fn_cxx_try_link
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 $as_test_x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 return $ac_retval
1876
1877 } # ac_fn_c_try_link
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1881
1882 It was created by $as_me, which was
1883 generated by GNU Autoconf 2.64. Invocation command line was
1884
1885 $ $0 $@
1886
1887 _ACEOF
1888 exec 5>>config.log
1889 {
1890 cat <<_ASUNAME
1891 ## --------- ##
1892 ## Platform. ##
1893 ## --------- ##
1894
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903
1904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911
1912 _ASUNAME
1913
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917 IFS=$as_save_IFS
1918 test -z "$as_dir" && as_dir=.
1919 $as_echo "PATH: $as_dir"
1920 done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946 for ac_arg
1947 do
1948 case $ac_arg in
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1952 continue ;;
1953 *\'*)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 esac
1956 case $ac_pass in
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 2)
1959 as_fn_append ac_configure_args1 " '$ac_arg'"
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1962 else
1963 case $ac_arg in
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 esac
1971 ;;
1972 -* ) ac_must_keep_next=true ;;
1973 esac
1974 fi
1975 as_fn_append ac_configure_args " '$ac_arg'"
1976 ;;
1977 esac
1978 done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log. We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1990 {
1991 echo
1992
1993 cat <<\_ASBOX
1994 ## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##
1997 _ASBOX
1998 echo
1999 # The following way of writing the cache mishandles newlines in values,
2000 (
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in #(
2004 *${as_nl}*)
2005 case $ac_var in #(
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 esac
2009 case $ac_var in #(
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2013 esac ;;
2014 esac
2015 done
2016 (set) 2>&1 |
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2019 sed -n \
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 ;; #(
2023 *)
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 ;;
2026 esac |
2027 sort
2028 )
2029 echo
2030
2031 cat <<\_ASBOX
2032 ## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##
2035 _ASBOX
2036 echo
2037 for ac_var in $ac_subst_vars
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046
2047 if test -n "$ac_subst_files"; then
2048 cat <<\_ASBOX
2049 ## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##
2052 _ASBOX
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
2066 cat <<\_ASBOX
2067 ## ----------- ##
2068 ## confdefs.h. ##
2069 ## ----------- ##
2070 _ASBOX
2071 echo
2072 cat confdefs.h
2073 echo
2074 fi
2075 test "$ac_signal" != 0 &&
2076 $as_echo "$as_me: caught signal $ac_signal"
2077 $as_echo "$as_me: exit $exit_status"
2078 } >&5
2079 rm -f core *.core core.conftest.* &&
2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081 exit $exit_status
2082 ' 0
2083 for ac_signal in 1 2 13 15; do
2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085 done
2086 ac_signal=0
2087
2088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2089 rm -f -r conftest* confdefs.h
2090
2091 $as_echo "/* confdefs.h */" > confdefs.h
2092
2093 # Predefined preprocessor variables.
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_NAME "$PACKAGE_NAME"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_STRING "$PACKAGE_STRING"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_URL "$PACKAGE_URL"
2117 _ACEOF
2118
2119
2120 # Let the site file select an alternate cache file if it wants to.
2121 # Prefer an explicitly selected file to automatically selected ones.
2122 ac_site_file1=NONE
2123 ac_site_file2=NONE
2124 if test -n "$CONFIG_SITE"; then
2125 ac_site_file1=$CONFIG_SITE
2126 elif test "x$prefix" != xNONE; then
2127 ac_site_file1=$prefix/share/config.site
2128 ac_site_file2=$prefix/etc/config.site
2129 else
2130 ac_site_file1=$ac_default_prefix/share/config.site
2131 ac_site_file2=$ac_default_prefix/etc/config.site
2132 fi
2133 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 do
2135 test "x$ac_site_file" = xNONE && continue
2136 if test -r "$ac_site_file"; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139 sed 's/^/| /' "$ac_site_file" >&5
2140 . "$ac_site_file"
2141 fi
2142 done
2143
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special
2146 # files actually), so we avoid doing that.
2147 if test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155 else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 $as_echo "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159 fi
2160
2161 # Check that the precious variables saved in the cache have kept the same
2162 # value.
2163 ac_cache_corrupted=false
2164 for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,set)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
2181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208 esac
2209 fi
2210 done
2211 if $ac_cache_corrupted; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217 fi
2218 ## -------------------- ##
2219 ## Main body of script. ##
2220 ## -------------------- ##
2221
2222 ac_ext=c
2223 ac_cpp='$CPP $CPPFLAGS'
2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236 progname=$0
2237 # if PWD already has a value, it is probably wrong.
2238 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2239
2240 # Export original configure arguments for use by sub-configures.
2241 # Quote arguments with shell meta charatcers.
2242 TOPLEVEL_CONFIGURE_ARGUMENTS=
2243 set -- "$progname" "$@"
2244 for ac_arg
2245 do
2246 case "$ac_arg" in
2247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2249 # if the argument is of the form -foo=baz, quote the baz part only
2250 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2251 *) ;;
2252 esac
2253 # Add the quoted argument to the list.
2254 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2255 done
2256 if test "$silent" = yes; then
2257 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2258 fi
2259 # Remove the initial space we just introduced and, as these will be
2260 # expanded by make, quote '$'.
2261 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2262
2263
2264 # Find the build, host, and target systems.
2265 ac_aux_dir=
2266 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2267 for ac_t in install-sh install.sh shtool; do
2268 if test -f "$ac_dir/$ac_t"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
2271 break 2
2272 fi
2273 done
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2277 fi
2278
2279 # These three variables are undocumented and unsupported,
2280 # and are intended to be withdrawn in a future Autoconf release.
2281 # They can cause serious problems if a builder's source tree is in a directory
2282 # whose full name contains unusual characters.
2283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286
2287
2288 # Make sure we can run config.sub.
2289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2290 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2291
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2293 $as_echo_n "checking build system type... " >&6; }
2294 if test "${ac_cv_build+set}" = set; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 ac_build_alias=$build_alias
2298 test "x$ac_build_alias" = x &&
2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300 test "x$ac_build_alias" = x &&
2301 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2302 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2304
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2307 $as_echo "$ac_cv_build" >&6; }
2308 case $ac_cv_build in
2309 *-*-*) ;;
2310 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2311 esac
2312 build=$ac_cv_build
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_build
2315 shift
2316 build_cpu=$1
2317 build_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 build_os=$*
2322 IFS=$ac_save_IFS
2323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 case ${build_alias} in
2327 "") build_noncanonical=${build} ;;
2328 *) build_noncanonical=${build_alias} ;;
2329 esac
2330
2331
2332
2333 case ${host_alias} in
2334 "") host_noncanonical=${build_noncanonical} ;;
2335 *) host_noncanonical=${host_alias} ;;
2336 esac
2337
2338
2339
2340 case ${target_alias} in
2341 "") target_noncanonical=${host_noncanonical} ;;
2342 *) target_noncanonical=${target_alias} ;;
2343 esac
2344
2345
2346
2347
2348 test "$host_noncanonical" = "$target_noncanonical" &&
2349 test "$program_prefix$program_suffix$program_transform_name" = \
2350 NONENONEs,x,x, &&
2351 program_transform_name=s,y,y,
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2354 $as_echo_n "checking host system type... " >&6; }
2355 if test "${ac_cv_host+set}" = set; then :
2356 $as_echo_n "(cached) " >&6
2357 else
2358 if test "x$host_alias" = x; then
2359 ac_cv_host=$ac_cv_build
2360 else
2361 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2362 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2363 fi
2364
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2367 $as_echo "$ac_cv_host" >&6; }
2368 case $ac_cv_host in
2369 *-*-*) ;;
2370 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2371 esac
2372 host=$ac_cv_host
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_host
2375 shift
2376 host_cpu=$1
2377 host_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 host_os=$*
2382 IFS=$ac_save_IFS
2383 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2387 $as_echo_n "checking target system type... " >&6; }
2388 if test "${ac_cv_target+set}" = set; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 if test "x$target_alias" = x; then
2392 ac_cv_target=$ac_cv_host
2393 else
2394 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2395 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2396 fi
2397
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2400 $as_echo "$ac_cv_target" >&6; }
2401 case $ac_cv_target in
2402 *-*-*) ;;
2403 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2404 esac
2405 target=$ac_cv_target
2406 ac_save_IFS=$IFS; IFS='-'
2407 set x $ac_cv_target
2408 shift
2409 target_cpu=$1
2410 target_vendor=$2
2411 shift; shift
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2414 target_os=$*
2415 IFS=$ac_save_IFS
2416 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2417
2418
2419 # The aliases save the names the user supplied, while $host etc.
2420 # will get canonicalized.
2421 test -n "$target_alias" &&
2422 test "$program_prefix$program_suffix$program_transform_name" = \
2423 NONENONEs,x,x, &&
2424 program_prefix=${target_alias}-
2425
2426 test "$program_prefix" != NONE &&
2427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428 # Use a double $ so make ignores it.
2429 test "$program_suffix" != NONE &&
2430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431 # Double any \ or $.
2432 # By default was `s,x,x', remove it if useless.
2433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2435
2436
2437
2438 # Get 'install' or 'install-sh' and its variants.
2439 # Find a good install program. We prefer a C program (faster),
2440 # so one script is as good as another. But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2445 # AIX /bin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if test "${ac_cv_path_install+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466 ./ | .// | /[cC]/* | \
2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469 /usr/ucb/* ) ;;
2470 *)
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2473 # by default.
2474 for ac_prog in ginstall scoinst install; do
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2477 if test $ac_prog = install &&
2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # AIX install. It has an incompatible calling convention.
2480 :
2481 elif test $ac_prog = install &&
2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483 # program-specific install script used by HP pwplus--don't use.
2484 :
2485 else
2486 rm -rf conftest.one conftest.two conftest.dir
2487 echo one > conftest.one
2488 echo two > conftest.two
2489 mkdir conftest.dir
2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491 test -s conftest.one && test -s conftest.two &&
2492 test -s conftest.dir/conftest.one &&
2493 test -s conftest.dir/conftest.two
2494 then
2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496 break 3
2497 fi
2498 fi
2499 fi
2500 done
2501 done
2502 ;;
2503 esac
2504
2505 done
2506 IFS=$as_save_IFS
2507
2508 rm -rf conftest.one conftest.two conftest.dir
2509
2510 fi
2511 if test "${ac_cv_path_install+set}" = set; then
2512 INSTALL=$ac_cv_path_install
2513 else
2514 # As a last resort, use the slow shell script. Don't cache a
2515 # value for INSTALL within a source directory, because that will
2516 # break other packages using the cache if that directory is
2517 # removed, or if the value is a relative name.
2518 INSTALL=$ac_install_sh
2519 fi
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2523
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2533 $as_echo_n "checking whether ln works... " >&6; }
2534 if test "${acx_cv_prog_LN+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 rm -f conftestdata_t
2538 echo >conftestdata_f
2539 if ln conftestdata_f conftestdata_t 2>/dev/null
2540 then
2541 acx_cv_prog_LN=ln
2542 else
2543 acx_cv_prog_LN=no
2544 fi
2545 rm -f conftestdata_f conftestdata_t
2546
2547 fi
2548 if test $acx_cv_prog_LN = no; then
2549 LN="cp"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2551 $as_echo "no, using $LN" >&6; }
2552 else
2553 LN="$acx_cv_prog_LN"
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556 fi
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2559 $as_echo_n "checking whether ln -s works... " >&6; }
2560 LN_S=$as_ln_s
2561 if test "$LN_S" = "ln -s"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2563 $as_echo "yes" >&6; }
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2566 $as_echo "no, using $LN_S" >&6; }
2567 fi
2568
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2570 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2571 if test "${ac_cv_path_SED+set}" = set; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2575 for ac_i in 1 2 3 4 5 6 7; do
2576 ac_script="$ac_script$as_nl$ac_script"
2577 done
2578 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2579 { ac_script=; unset ac_script;}
2580 if test -z "$SED"; then
2581 ac_path_SED_found=false
2582 # Loop through the user's path and test for each of PROGNAME-LIST
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_prog in sed gsed; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2591 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2592 # Check for GNU ac_path_SED and select it if it is found.
2593 # Check for GNU $ac_path_SED
2594 case `"$ac_path_SED" --version 2>&1` in
2595 *GNU*)
2596 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2597 *)
2598 ac_count=0
2599 $as_echo_n 0123456789 >"conftest.in"
2600 while :
2601 do
2602 cat "conftest.in" "conftest.in" >"conftest.tmp"
2603 mv "conftest.tmp" "conftest.in"
2604 cp "conftest.in" "conftest.nl"
2605 $as_echo '' >> "conftest.nl"
2606 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2608 as_fn_arith $ac_count + 1 && ac_count=$as_val
2609 if test $ac_count -gt ${ac_path_SED_max-0}; then
2610 # Best one so far, save it but keep looking for a better one
2611 ac_cv_path_SED="$ac_path_SED"
2612 ac_path_SED_max=$ac_count
2613 fi
2614 # 10*(2^10) chars as input seems more than enough
2615 test $ac_count -gt 10 && break
2616 done
2617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2618 esac
2619
2620 $ac_path_SED_found && break 3
2621 done
2622 done
2623 done
2624 IFS=$as_save_IFS
2625 if test -z "$ac_cv_path_SED"; then
2626 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2627 fi
2628 else
2629 ac_cv_path_SED=$SED
2630 fi
2631
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2634 $as_echo "$ac_cv_path_SED" >&6; }
2635 SED="$ac_cv_path_SED"
2636 rm -f conftest.sed
2637
2638 for ac_prog in gawk mawk nawk awk
2639 do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_AWK+set}" = set; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_AWK="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 AWK=$ac_cv_prog_AWK
2668 if test -n "$AWK"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670 $as_echo "$AWK" >&6; }
2671 else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 test -n "$AWK" && break
2678 done
2679
2680
2681 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2682
2683 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2684 # a relative path.
2685 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2686 INSTALL="${srcpwd}/install-sh -c"
2687 fi
2688
2689 # Set srcdir to "." if that's what it is.
2690 # This is important for multilib support.
2691 pwd=`${PWDCMD-pwd}`
2692 if test "${pwd}" = "${srcpwd}" ; then
2693 srcdir=.
2694 fi
2695
2696 topsrcdir=$srcpwd
2697
2698 extra_host_args=
2699
2700 ### To add a new directory to the tree, first choose whether it is a target
2701 ### or a host dependent tool. Then put it into the appropriate list
2702 ### (library or tools, host or target), doing a dependency sort.
2703
2704 # Subdirs will be configured in the order listed in build_configdirs,
2705 # configdirs, or target_configdirs; see the serialization section below.
2706
2707 # Dependency sorting is only needed when *configuration* must be done in
2708 # a particular order. In all cases a dependency should be specified in
2709 # the Makefile, whether or not it's implicitly specified here.
2710
2711 # Double entries in build_configdirs, configdirs, or target_configdirs may
2712 # cause circular dependencies and break everything horribly.
2713
2714 # these library is used by various programs built for the build
2715 # environment
2716 #
2717 build_libs="build-libiberty build-libcpp"
2718
2719 # these tools are built for the build environment
2720 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2721
2722 # these libraries are used by various programs built for the host environment
2723 #f
2724 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2725
2726 # these tools are built for the host environment
2727 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2728 # know that we are building the simulator.
2729 # binutils, gas and ld appear in that order because it makes sense to run
2730 # "make check" in that particular order.
2731 # If --enable-gold is used, "gold" may replace "ld".
2732 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"
2733
2734 # libgcj represents the runtime libraries only used by gcj.
2735 libgcj="target-libffi \
2736 target-zlib \
2737 target-libjava"
2738
2739 # these libraries are built for the target environment, and are built after
2740 # the host libraries and the host tools (which may be a cross compiler)
2741 # Note that libiberty is not a target library.
2742 target_libraries="target-libgcc \
2743 target-libbacktrace \
2744 target-libgloss \
2745 target-newlib \
2746 target-libgomp \
2747 target-libcilkrts \
2748 target-liboffloadmic \
2749 target-libatomic \
2750 target-libitm \
2751 target-libstdc++-v3 \
2752 target-libsanitizer \
2753 target-libvtv \
2754 target-libmpx \
2755 target-libssp \
2756 target-libquadmath \
2757 target-libgfortran \
2758 target-boehm-gc \
2759 ${libgcj} \
2760 target-libobjc \
2761 target-libada \
2762 target-libgo"
2763
2764 # these tools are built using the target libraries, and are intended to
2765 # run only in the target environment
2766 #
2767 # note: any program that *uses* libraries that are in the "target_libraries"
2768 # list belongs in this list.
2769 #
2770 target_tools="target-rda"
2771
2772 ################################################################################
2773
2774 ## All tools belong in one of the four categories, and are assigned above
2775 ## We assign ${configdirs} this way to remove all embedded newlines. This
2776 ## is important because configure will choke if they ever get through.
2777 ## ${configdirs} is directories we build using the host tools.
2778 ## ${target_configdirs} is directories we build using the target tools.
2779 configdirs=`echo ${host_libs} ${host_tools}`
2780 target_configdirs=`echo ${target_libraries} ${target_tools}`
2781 build_configdirs=`echo ${build_libs} ${build_tools}`
2782
2783
2784
2785 ################################################################################
2786
2787 srcname="gnu development package"
2788
2789 # This gets set non-empty for some net releases of packages.
2790 appdirs=""
2791
2792 # Define is_cross_compiler to save on calls to 'test'.
2793 is_cross_compiler=
2794 if test x"${host}" = x"${target}" ; then
2795 is_cross_compiler=no
2796 else
2797 is_cross_compiler=yes
2798 fi
2799
2800 # Find the build and target subdir names.
2801
2802 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2803 # have matching libraries, they should use host libraries: Makefile.tpl
2804 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2805 # However, they still use the build modules, because the corresponding
2806 # host modules (e.g. bison) are only built for the host when bootstrap
2807 # finishes. So:
2808 # - build_subdir is where we find build modules, and never changes.
2809 # - build_libsubdir is where we find build libraries, and can be overridden.
2810
2811 # Prefix 'build-' so this never conflicts with target_subdir.
2812 build_subdir="build-${build_noncanonical}"
2813
2814 # Check whether --with-build-libsubdir was given.
2815 if test "${with_build_libsubdir+set}" = set; then :
2816 withval=$with_build_libsubdir; build_libsubdir="$withval"
2817 else
2818 build_libsubdir="$build_subdir"
2819 fi
2820
2821 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2822 if ( test $srcdir = . && test -d gcc ) \
2823 || test -d $srcdir/../host-${host_noncanonical}; then
2824 host_subdir="host-${host_noncanonical}"
2825 else
2826 host_subdir=.
2827 fi
2828 # No prefix.
2829 target_subdir=${target_noncanonical}
2830
2831 # Be sure to cover against remnants of an in-tree build.
2832 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2833 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2834 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2835 fi
2836
2837 # Skipdirs are removed silently.
2838 skipdirs=
2839 # Noconfigdirs are removed loudly.
2840 noconfigdirs=""
2841
2842 use_gnu_ld=
2843 # Make sure we don't let GNU ld be added if we didn't want it.
2844 if test x$with_gnu_ld = xno ; then
2845 use_gnu_ld=no
2846 noconfigdirs="$noconfigdirs ld gold"
2847 fi
2848
2849 use_gnu_as=
2850 # Make sure we don't let GNU as be added if we didn't want it.
2851 if test x$with_gnu_as = xno ; then
2852 use_gnu_as=no
2853 noconfigdirs="$noconfigdirs gas"
2854 fi
2855
2856 use_included_zlib=
2857 # Make sure we don't let ZLIB be added if we didn't want it.
2858 if test x$with_system_zlib = xyes ; then
2859 use_included_zlib=no
2860 noconfigdirs="$noconfigdirs zlib"
2861 fi
2862
2863 # some tools are so dependent upon X11 that if we're not building with X,
2864 # it's not even worth trying to configure, much less build, that tool.
2865
2866 case ${with_x} in
2867 yes | "") ;; # the default value for this tree is that X11 is available
2868 no)
2869 skipdirs="${skipdirs} tk itcl libgui"
2870 # We won't be able to build gdbtk without X.
2871 enable_gdbtk=no
2872 ;;
2873 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2874 esac
2875
2876 # Some are only suitable for cross toolchains.
2877 # Remove these if host=target.
2878 cross_only="target-libgloss target-newlib target-opcodes"
2879
2880 case $is_cross_compiler in
2881 no) skipdirs="${skipdirs} ${cross_only}" ;;
2882 esac
2883
2884 # If both --with-headers and --with-libs are specified, default to
2885 # --without-newlib.
2886 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2887 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2888 if test x"${with_newlib}" = x ; then
2889 with_newlib=no
2890 fi
2891 fi
2892
2893 # Recognize --with-newlib/--without-newlib.
2894 case ${with_newlib} in
2895 no) skipdirs="${skipdirs} target-newlib" ;;
2896 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2897 esac
2898
2899 # Check whether --enable-as-accelerator-for was given.
2900 if test "${enable_as_accelerator_for+set}" = set; then :
2901 enableval=$enable_as_accelerator_for;
2902 fi
2903
2904
2905 # Check whether --enable-offload-targets was given.
2906 if test "${enable_offload_targets+set}" = set; then :
2907 enableval=$enable_offload_targets;
2908 if test x"$enable_offload_targets" = x; then
2909 as_fn_error "no offload targets specified" "$LINENO" 5
2910 fi
2911
2912 else
2913 enable_offload_targets=
2914 fi
2915
2916
2917 # Handle --enable-gold, --enable-ld.
2918 # --disable-gold [--enable-ld]
2919 # Build only ld. Default option.
2920 # --enable-gold [--enable-ld]
2921 # Build both gold and ld. Install gold as "ld.gold", install ld
2922 # as "ld.bfd" and "ld".
2923 # --enable-gold=default [--enable-ld]
2924 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2925 # install ld as "ld.bfd".
2926 # --enable-gold[=default] --disable-ld
2927 # Build only gold, which is then installed as both "ld.gold" and "ld".
2928 # --enable-gold --enable-ld=default
2929 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2930 # and ld.bfd).
2931 # In other words, ld is default
2932 # --enable-gold=default --enable-ld=default
2933 # Error.
2934
2935 default_ld=
2936 # Check whether --enable-gold was given.
2937 if test "${enable_gold+set}" = set; then :
2938 enableval=$enable_gold; ENABLE_GOLD=$enableval
2939 else
2940 ENABLE_GOLD=no
2941 fi
2942
2943 case "${ENABLE_GOLD}" in
2944 yes|default)
2945 # Check for ELF target.
2946 is_elf=no
2947 case "${target}" in
2948 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2949 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2950 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2951 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2952 case "${target}" in
2953 *-*-linux*aout* | *-*-linux*oldld*)
2954 ;;
2955 *)
2956 is_elf=yes
2957 ;;
2958 esac
2959 esac
2960
2961 if test "$is_elf" = "yes"; then
2962 # Check for target supported by gold.
2963 case "${target}" in
2964 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2965 | aarch64*-*-* | tilegx*-*-*)
2966 configdirs="$configdirs gold"
2967 if test x${ENABLE_GOLD} = xdefault; then
2968 default_ld=gold
2969 fi
2970 ENABLE_GOLD=yes
2971 ;;
2972 esac
2973 fi
2974 ;;
2975 no)
2976 ;;
2977 *)
2978 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2979 ;;
2980 esac
2981
2982 # Check whether --enable-ld was given.
2983 if test "${enable_ld+set}" = set; then :
2984 enableval=$enable_ld; ENABLE_LD=$enableval
2985 else
2986 ENABLE_LD=yes
2987 fi
2988
2989
2990 case "${ENABLE_LD}" in
2991 default)
2992 if test x${default_ld} != x; then
2993 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2994 fi
2995 ;;
2996 yes)
2997 ;;
2998 no)
2999 if test x${ENABLE_GOLD} != xyes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3001 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3002 fi
3003 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3004 ;;
3005 *)
3006 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3007 ;;
3008 esac
3009
3010 # Configure extra directories which are host specific
3011
3012 case "${host}" in
3013 *-cygwin*)
3014 configdirs="$configdirs libtermcap" ;;
3015 esac
3016
3017 # A target can indicate whether a language isn't supported for some reason.
3018 # Only spaces may be used in this macro; not newlines or tabs.
3019 unsupported_languages=
3020
3021 # Remove more programs from consideration, based on the host or
3022 # target this usually means that a port of the program doesn't
3023 # exist yet.
3024
3025 case "${host}" in
3026 i[3456789]86-*-msdosdjgpp*)
3027 noconfigdirs="$noconfigdirs tcl tk itcl"
3028 ;;
3029 esac
3030
3031
3032 # Check whether --enable-libquadmath was given.
3033 if test "${enable_libquadmath+set}" = set; then :
3034 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3035 else
3036 ENABLE_LIBQUADMATH=yes
3037 fi
3038
3039 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3040 noconfigdirs="$noconfigdirs target-libquadmath"
3041 fi
3042
3043
3044 # Check whether --enable-libquadmath-support was given.
3045 if test "${enable_libquadmath_support+set}" = set; then :
3046 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3047 else
3048 ENABLE_LIBQUADMATH_SUPPORT=yes
3049 fi
3050
3051 enable_libquadmath_support=
3052 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3053 enable_libquadmath_support=no
3054 fi
3055
3056
3057 # Check whether --enable-libada was given.
3058 if test "${enable_libada+set}" = set; then :
3059 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3060 else
3061 ENABLE_LIBADA=yes
3062 fi
3063
3064 if test "${ENABLE_LIBADA}" != "yes" ; then
3065 noconfigdirs="$noconfigdirs gnattools"
3066 fi
3067
3068 # Check whether --enable-libssp was given.
3069 if test "${enable_libssp+set}" = set; then :
3070 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3071 else
3072 ENABLE_LIBSSP=yes
3073 fi
3074
3075
3076 # Check whether --enable-libstdcxx was given.
3077 if test "${enable_libstdcxx+set}" = set; then :
3078 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3079 else
3080 ENABLE_LIBSTDCXX=default
3081 fi
3082
3083 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3084 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3085 fi
3086
3087 # If this is accelerator compiler and its target is intelmic we enable
3088 # target liboffloadmic by default. If this is compiler with offloading
3089 # for intelmic we enable host liboffloadmic by default. Otherwise
3090 # liboffloadmic is disabled by default.
3091 # Check whether --enable-liboffloadmic was given.
3092 if test "${enable_liboffloadmic+set}" = set; then :
3093 enableval=$enable_liboffloadmic; case "$enableval" in
3094 no | host | target)
3095 enable_liboffloadmic=$enableval ;;
3096 *)
3097 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3098 esac
3099 else
3100 if test x"$enable_as_accelerator_for" != x; then
3101 case "${target}" in
3102 *-intelmic-* | *-intelmicemul-*)
3103 enable_liboffloadmic=target
3104 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3105 ;;
3106 *)
3107 enable_liboffloadmic=no
3108 ;;
3109 esac
3110 else
3111 case "${enable_offload_targets}" in
3112 *-intelmic-* | *-intelmicemul-*)
3113 enable_liboffloadmic=host
3114 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3115 ;;
3116 *)
3117 enable_liboffloadmic=no
3118 ;;
3119 esac
3120 fi
3121 fi
3122
3123
3124
3125 # Save it here so that, even in case of --enable-libgcj, if the Java
3126 # front-end isn't enabled, we still get libgcj disabled.
3127 libgcj_saved=$libgcj
3128 case $enable_libgcj in
3129 yes)
3130 # If we reset it here, it won't get added to noconfigdirs in the
3131 # target-specific build rules, so it will be forcibly enabled
3132 # (unless the Java language itself isn't enabled).
3133 libgcj=
3134 ;;
3135 no)
3136 # Make sure we get it printed in the list of not supported target libs.
3137 # Don't disable libffi, though, other languages use it.
3138 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3139 # Clear libgcj_saved so that even if java is enabled libffi won't be
3140 # built.
3141 libgcj_saved=
3142 ;;
3143 esac
3144
3145 # Check whether --enable-static-libjava was given.
3146 if test "${enable_static_libjava+set}" = set; then :
3147 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3148 else
3149 ENABLE_STATIC_LIBJAVA=no
3150 fi
3151
3152 enable_static_libjava=
3153 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3154 enable_static_libjava=yes
3155 fi
3156
3157 if test x$enable_static_libjava != xyes ; then
3158 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3159 fi
3160
3161
3162 # Disable libgomp on non POSIX hosted systems.
3163 if test x$enable_libgomp = x ; then
3164 # Enable libgomp by default on hosted POSIX systems.
3165 case "${target}" in
3166 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3167 ;;
3168 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3169 ;;
3170 *-*-solaris2* | *-*-hpux11*)
3171 ;;
3172 *-*-darwin* | *-*-aix*)
3173 ;;
3174 *)
3175 noconfigdirs="$noconfigdirs target-libgomp"
3176 ;;
3177 esac
3178 fi
3179
3180 # Disable libatomic on unsupported systems.
3181 if test -d ${srcdir}/libatomic; then
3182 if test x$enable_libatomic = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3184 $as_echo_n "checking for libatomic support... " >&6; }
3185 if (srcdir=${srcdir}/libatomic; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 noconfigdirs="$noconfigdirs target-libatomic"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195 fi
3196 fi
3197 fi
3198
3199 # Disable libcilkrts on unsupported systems.
3200 if test -d ${srcdir}/libcilkrts; then
3201 if test x$enable_libcilkrts = x; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3203 $as_echo_n "checking for libcilkrts support... " >&6; }
3204 if (srcdir=${srcdir}/libcilkrts; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-libcilkrts"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214 fi
3215 fi
3216 fi
3217
3218 # Disable liboffloadmic on unsupported systems.
3219 if test -d ${srcdir}/liboffloadmic; then
3220 if test x$enable_liboffloadmic != xno; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3222 $as_echo_n "checking for liboffloadmic support... " >&6; }
3223 if (srcdir=${srcdir}/liboffloadmic; \
3224 . ${srcdir}/configure.tgt; \
3225 test -n "$UNSUPPORTED")
3226 then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 noconfigdirs="$noconfigdirs target-liboffloadmic"
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3233 fi
3234 fi
3235 fi
3236
3237 # Disable libitm on unsupported systems.
3238 if test -d ${srcdir}/libitm; then
3239 if test x$enable_libitm = x; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3241 $as_echo_n "checking for libitm support... " >&6; }
3242 if (srcdir=${srcdir}/libitm; \
3243 . ${srcdir}/configure.tgt; \
3244 test -n "$UNSUPPORTED")
3245 then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 noconfigdirs="$noconfigdirs target-libitm"
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3252 fi
3253 fi
3254 fi
3255
3256 # Disable libsanitizer on unsupported systems.
3257 if test -d ${srcdir}/libsanitizer; then
3258 if test x$enable_libsanitizer = x; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3260 $as_echo_n "checking for libsanitizer support... " >&6; }
3261 if (srcdir=${srcdir}/libsanitizer; \
3262 . ${srcdir}/configure.tgt; \
3263 test -n "$UNSUPPORTED")
3264 then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 noconfigdirs="$noconfigdirs target-libsanitizer"
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271 fi
3272 fi
3273 fi
3274
3275 # Disable libvtv on unsupported systems.
3276 if test -d ${srcdir}/libvtv; then
3277 if test x$enable_libvtv = x; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3279 $as_echo_n "checking for libvtv support... " >&6; }
3280 if (srcdir=${srcdir}/libvtv; \
3281 . ${srcdir}/configure.tgt; \
3282 test "$VTV_SUPPORTED" != "yes")
3283 then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 noconfigdirs="$noconfigdirs target-libvtv"
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 fi
3291 fi
3292 fi
3293
3294
3295 # Enable libmpx on supported systems by request.
3296 if test -d ${srcdir}/libmpx; then
3297 if test x$enable_libmpx = xyes; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3299 $as_echo_n "checking for libmpx support... " >&6; }
3300 if (srcdir=${srcdir}/libmpx; \
3301 . ${srcdir}/configure.tgt; \
3302 test "$LIBMPX_SUPPORTED" != "yes")
3303 then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libmpx"
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3310 fi
3311 else
3312 noconfigdirs="$noconfigdirs target-libmpx"
3313 fi
3314 fi
3315
3316
3317
3318 # Disable libquadmath for some systems.
3319 case "${target}" in
3320 avr-*-*)
3321 noconfigdirs="$noconfigdirs target-libquadmath"
3322 ;;
3323 # libquadmath is unused on AIX and libquadmath build process use of
3324 # LD_LIBRARY_PATH can break AIX bootstrap.
3325 powerpc-*-aix* | rs6000-*-aix*)
3326 noconfigdirs="$noconfigdirs target-libquadmath"
3327 ;;
3328 esac
3329
3330 # Disable libssp for some systems.
3331 case "${target}" in
3332 avr-*-*)
3333 # No hosted I/O support.
3334 noconfigdirs="$noconfigdirs target-libssp"
3335 ;;
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libssp"
3338 ;;
3339 rl78-*-*)
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
3343 noconfigdirs="$noconfigdirs target-libssp"
3344 ;;
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3348 ;;
3349 esac
3350
3351 # Disable libstdc++-v3 for some systems.
3352 # Allow user to override this if they pass --enable-libstdc++-v3
3353 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 ;;
3359 arm*-wince-pe*)
3360 # the C++ libraries don't build on top of CE's C libraries
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362 ;;
3363 avr-*-*)
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365 ;;
3366 esac
3367 fi
3368
3369 # Disable Fortran for some systems.
3370 case "${target}" in
3371 mmix-*-*)
3372 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373 unsupported_languages="$unsupported_languages fortran"
3374 ;;
3375 esac
3376
3377 # Disable Java if libffi is not supported.
3378 case "${target}" in
3379 aarch64-*-*)
3380 ;;
3381 alpha*-*-*)
3382 ;;
3383 arm*-*-*)
3384 ;;
3385 cris-*-*)
3386 ;;
3387 frv-*-*)
3388 ;;
3389 hppa*-*-linux*)
3390 ;;
3391 hppa*-*-hpux*)
3392 ;;
3393 i?86-*-*)
3394 ;;
3395 ia64*-*-*)
3396 ;;
3397 m32r*-*-*)
3398 ;;
3399 m68k-*-*)
3400 ;;
3401 mips*-*-rtems*)
3402 ;;
3403 mips*-*-linux*)
3404 ;;
3405 powerpc*-*-linux*)
3406 ;;
3407 powerpc-*-darwin*)
3408 ;;
3409 powerpc-*-aix* | rs6000-*-aix*)
3410 ;;
3411 powerpc-*-freebsd*)
3412 ;;
3413 powerpc64-*-freebsd*)
3414 ;;
3415 powerpc*-*-rtems*)
3416 ;;
3417 s390-*-* | s390x-*-*)
3418 ;;
3419 sh-*-* | sh[34]*-*-*)
3420 ;;
3421 sh64-*-* | sh5*-*-*)
3422 ;;
3423 sparc*-*-*)
3424 ;;
3425 x86_64-*-*)
3426 ;;
3427 *-*-*)
3428 unsupported_languages="$unsupported_languages java"
3429 ;;
3430 esac
3431
3432 # Disable Java, libgcj or related libraries for some systems.
3433 case "${target}" in
3434 powerpc-*-darwin*)
3435 ;;
3436 i[3456789]86-*-darwin*)
3437 ;;
3438 x86_64-*-darwin[912]*)
3439 ;;
3440 *-*-darwin*)
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3442 ;;
3443 *-*-netware*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3445 ;;
3446 *-*-rtems*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3448 ;;
3449 *-*-tpf*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3451 ;;
3452 *-*-uclinux*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 *-*-vxworks*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3457 ;;
3458 alpha*-*-*vms*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3460 ;;
3461 arm*-*-freebsd*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3463 ;;
3464 arm-wince-pe)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
3467 arm*-*-symbianelf*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3469 ;;
3470 bfin-*-*)
3471 noconfigdirs="$noconfigdirs target-boehm-gc"
3472 ;;
3473 cris-*-* | crisv32-*-*)
3474 unsupported_languages="$unsupported_languages java"
3475 case "${target}" in
3476 *-*-linux*)
3477 ;;
3478 *) # See PR46792 regarding target-libffi.
3479 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3480 esac
3481 ;;
3482 hppa*64*-*-linux*)
3483 # In this case, it's because the hppa64-linux target is for
3484 # the kernel only at this point and has no libc, and thus no
3485 # headers, crt*.o, etc., all of which are needed by these.
3486 unsupported_languages="$unsupported_languages java"
3487 ;;
3488 hppa*64*-*-hpux*)
3489 noconfigdirs="$noconfigdirs ${libgcj}"
3490 ;;
3491 hppa*-hp-hpux11*)
3492 ;;
3493 hppa*-*-hpux*)
3494 # According to Alexandre Oliva <aoliva (at] redhat.com>, libjava won't
3495 # build on HP-UX 10.20.
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 ;;
3498 ia64*-*-*vms*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3500 ;;
3501 i[3456789]86-w64-mingw*)
3502 noconfigdirs="$noconfigdirs ${libgcj}"
3503 ;;
3504 i[3456789]86-*-mingw*)
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3506 ;;
3507 x86_64-*-mingw*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3509 ;;
3510 mmix-*-*)
3511 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3512 ;;
3513 powerpc-*-aix*)
3514 # copied from rs6000-*-* entry
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3516 ;;
3517 rs6000-*-aix*)
3518 noconfigdirs="$noconfigdirs ${libgcj}"
3519 ;;
3520 *-*-lynxos*)
3521 noconfigdirs="$noconfigdirs ${libgcj}"
3522 ;;
3523 esac
3524
3525 # Disable the go frontend on systems where it is known to not work. Please keep
3526 # this in sync with contrib/config-list.mk.
3527 case "${target}" in
3528 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3529 unsupported_languages="$unsupported_languages go"
3530 ;;
3531 esac
3532
3533 # Disable libgo for some systems where it is known to not work.
3534 # For testing, you can easily override this with --enable-libgo.
3535 if test x$enable_libgo = x; then
3536 case "${target}" in
3537 *-*-darwin*)
3538 # PR 46986
3539 noconfigdirs="$noconfigdirs target-libgo"
3540 ;;
3541 *-*-cygwin* | *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-libgo"
3543 ;;
3544 *-*-aix*)
3545 noconfigdirs="$noconfigdirs target-libgo"
3546 ;;
3547 esac
3548 fi
3549
3550 # Default libgloss CPU subdirectory.
3551 libgloss_dir="$target_cpu"
3552
3553 case "${target}" in
3554 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3555 libgloss_dir=wince
3556 ;;
3557 aarch64*-*-* )
3558 libgloss_dir=aarch64
3559 ;;
3560 arm*-*-*)
3561 libgloss_dir=arm
3562 ;;
3563 cris-*-* | crisv32-*-*)
3564 libgloss_dir=cris
3565 ;;
3566 hppa*-*-*)
3567 libgloss_dir=pa
3568 ;;
3569 i[3456789]86-*-*)
3570 libgloss_dir=i386
3571 ;;
3572 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3573 libgloss_dir=m68hc11
3574 ;;
3575 m68*-*-* | fido-*-*)
3576 libgloss_dir=m68k
3577 ;;
3578 mips*-*-*)
3579 libgloss_dir=mips
3580 ;;
3581 powerpc*-*-*)
3582 libgloss_dir=rs6000
3583 ;;
3584 sparc*-*-*)
3585 libgloss_dir=sparc
3586 ;;
3587 esac
3588
3589 # Disable newlib and libgloss for various target OSes.
3590 case "${target}" in
3591 alpha*-dec-osf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 i[3456789]86-*-linux*)
3595 # This section makes it possible to build newlib natively on linux.
3596 # If we are using a cross compiler then don't configure newlib.
3597 if test x${is_cross_compiler} != xno ; then
3598 noconfigdirs="$noconfigdirs target-newlib"
3599 fi
3600 noconfigdirs="$noconfigdirs target-libgloss"
3601 # If we are not using a cross compiler, do configure newlib.
3602 # Note however, that newlib will only be configured in this situation
3603 # if the --with-newlib option has been given, because otherwise
3604 # 'target-newlib' will appear in skipdirs.
3605 ;;
3606 i[3456789]86-*-rdos*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 sparc-*-sunos4*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-aix*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-beos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-chorusos)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-dragonfly*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-freebsd*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 *-*-mingw*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 ;;
3639 *-*-netbsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 ;;
3642 *-*-netware*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 ;;
3645 *-*-tpf*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 ;;
3648 *-*-uclinux*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 *-*-vxworks*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 esac
3655
3656 case "${target}" in
3657 *-*-chorusos)
3658 ;;
3659 powerpc-*-darwin*)
3660 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3661 noconfigdirs="$noconfigdirs sim target-rda"
3662 ;;
3663 i[3456789]86-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3666 ;;
3667 x86_64-*-darwin[912]*)
3668 noconfigdirs="$noconfigdirs ld gas gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3670 ;;
3671 *-*-darwin*)
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3674 ;;
3675 *-*-dragonfly*)
3676 ;;
3677 *-*-freebsd*)
3678 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3679 && test -f /usr/local/include/gmp.h; then
3680 with_gmp=/usr/local
3681 fi
3682 ;;
3683 *-*-kaos*)
3684 # Remove unsupported stuff on all kaOS configurations.
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
3687 *-*-netbsd*)
3688 ;;
3689 *-*-netware*)
3690 ;;
3691 *-*-rtems*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3693 # this is not caught below because this stanza matches earlier
3694 case $target in
3695 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3696 esac
3697 ;;
3698 # The tpf target doesn't support gdb yet.
3699 *-*-tpf*)
3700 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3701 ;;
3702 *-*-uclinux*)
3703 noconfigdirs="$noconfigdirs target-rda"
3704 ;;
3705 *-*-vxworks*)
3706 ;;
3707 alpha*-dec-osf*)
3708 # ld works, but does not support shared libraries.
3709 # gas doesn't generate exception information.
3710 noconfigdirs="$noconfigdirs gas ld"
3711 ;;
3712 alpha*-*-*vms*)
3713 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3714 ;;
3715 alpha*-*-*)
3716 # newlib is not 64 bit ready
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3720 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3721 ;;
3722 arc-*-*|arceb-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 ;;
3725 arm-*-pe*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3727 ;;
3728 arm-*-riscix*)
3729 noconfigdirs="$noconfigdirs ld target-libgloss"
3730 ;;
3731 avr-*-rtems*)
3732 ;;
3733 avr-*-*)
3734 if test x${with_avrlibc} != xno; then
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 fi
3737 ;;
3738 c4x-*-* | tic4x-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 ;;
3741 tic54x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss gdb"
3743 ;;
3744 d10v-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss"
3746 ;;
3747 d30v-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3749 ;;
3750 fr30-*-elf*)
3751 noconfigdirs="$noconfigdirs gdb"
3752 ;;
3753 moxie-*-*)
3754 noconfigdirs="$noconfigdirs gprof"
3755 ;;
3756 h8300*-*-*)
3757 noconfigdirs="$noconfigdirs target-libgloss"
3758 ;;
3759 h8500-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 ;;
3762 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3763 ;;
3764 hppa*64*-*-linux*)
3765 ;;
3766 hppa*-*-linux*)
3767 ;;
3768 hppa*-*-*elf* | \
3769 hppa*-*-lites* | \
3770 hppa*-*-openbsd* | \
3771 hppa*64*-*-*)
3772 ;;
3773 hppa*-hp-hpux11*)
3774 noconfigdirs="$noconfigdirs ld"
3775 ;;
3776 hppa*-*-pro*)
3777 ;;
3778 hppa*-*-*)
3779 noconfigdirs="$noconfigdirs ld"
3780 ;;
3781 i960-*-*)
3782 noconfigdirs="$noconfigdirs gdb"
3783 ;;
3784 ia64*-*-elf*)
3785 # No gdb support yet.
3786 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3787 ;;
3788 ia64*-**-hpux*)
3789 # No ld support yet.
3790 noconfigdirs="$noconfigdirs libgui itcl ld"
3791 ;;
3792 ia64*-*-*vms*)
3793 # No ld support yet.
3794 noconfigdirs="$noconfigdirs libgui itcl ld"
3795 ;;
3796 i[3456789]86-w64-mingw*)
3797 ;;
3798 i[3456789]86-*-mingw*)
3799 target_configdirs="$target_configdirs target-winsup"
3800 ;;
3801 *-*-cygwin*)
3802 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3803 noconfigdirs="$noconfigdirs target-libgloss"
3804 # always build newlib if winsup directory is present.
3805 if test -d "$srcdir/winsup/cygwin"; then
3806 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3807 elif test -d "$srcdir/newlib"; then
3808 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3809 fi
3810 ;;
3811 i[3456789]86-*-pe)
3812 noconfigdirs="$noconfigdirs target-libgloss"
3813 ;;
3814 i[3456789]86-*-sco3.2v5*)
3815 # The linker does not yet know about weak symbols in COFF,
3816 # and is not configured to handle mixed ELF and COFF.
3817 noconfigdirs="$noconfigdirs ld target-libgloss"
3818 ;;
3819 i[3456789]86-*-sco*)
3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
3821 ;;
3822 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3824 ;;
3825 i[3456789]86-*-sysv4*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3827 ;;
3828 i[3456789]86-*-beos*)
3829 noconfigdirs="$noconfigdirs gdb"
3830 ;;
3831 i[3456789]86-*-rdos*)
3832 noconfigdirs="$noconfigdirs gdb"
3833 ;;
3834 mmix-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3836 ;;
3837 mt-*-*)
3838 noconfigdirs="$noconfigdirs sim"
3839 ;;
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
3842 noconfigdirs="$noconfigdirs gprof"
3843 ;;
3844 powerpc*-*-winnt* | powerpc*-*-pe*)
3845 target_configdirs="$target_configdirs target-winsup"
3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849 ;;
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3853 ;;
3854 powerpc-*-beos*)
3855 noconfigdirs="$noconfigdirs gdb"
3856 ;;
3857 rs6000-*-lynxos*)
3858 noconfigdirs="$noconfigdirs gprof"
3859 ;;
3860 rs6000-*-aix*)
3861 noconfigdirs="$noconfigdirs gprof"
3862 ;;
3863 rs6000-*-*)
3864 noconfigdirs="$noconfigdirs gprof"
3865 ;;
3866 m68k-apollo-*)
3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3868 ;;
3869 microblaze*)
3870 noconfigdirs="$noconfigdirs gprof"
3871 ;;
3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3875 fi
3876 ;;
3877 mips*-*-irix5*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3879 ;;
3880 mips*-*-irix6*)
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3882 ;;
3883 mips*-*-bsd*)
3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3885 ;;
3886 mips*-*-linux*)
3887 ;;
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3891 ;;
3892 mips*-*-*)
3893 noconfigdirs="$noconfigdirs gprof"
3894 ;;
3895 nds32*-*-*)
3896 noconfigdirs="$noconfigdirs gdb"
3897 ;;
3898 nvptx*-*-*)
3899 # nvptx is just a compiler
3900 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3901 ;;
3902 or1k*-*-*)
3903 noconfigdirs="$noconfigdirs gdb"
3904 ;;
3905 sh-*-* | sh64-*-*)
3906 case "${target}" in
3907 sh*-*-elf)
3908 ;;
3909 *)
3910 noconfigdirs="$noconfigdirs target-libgloss" ;;
3911 esac
3912 ;;
3913 sparc-*-sunos4*)
3914 if test x${is_cross_compiler} = xno ; then
3915 use_gnu_ld=no
3916 fi
3917 ;;
3918 tic6x-*-*)
3919 noconfigdirs="$noconfigdirs sim"
3920 ;;
3921 tilepro*-*-* | tilegx*-*-*)
3922 noconfigdirs="$noconfigdirs sim"
3923 ;;
3924 v810-*-*)
3925 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3926 ;;
3927 vax-*-*)
3928 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3929 ;;
3930 esac
3931
3932 # If we aren't building newlib, then don't build libgloss, since libgloss
3933 # depends upon some newlib header files.
3934 case "${noconfigdirs}" in
3935 *target-libgloss*) ;;
3936 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3937 esac
3938
3939 # Work in distributions that contain no compiler tools, like Autoconf.
3940 host_makefile_frag=/dev/null
3941 if test -d ${srcdir}/config ; then
3942 case "${host}" in
3943 i[3456789]86-*-msdosdjgpp*)
3944 host_makefile_frag="config/mh-djgpp"
3945 ;;
3946 *-cygwin*)
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3949 $as_echo_n "checking to see if cat works as expected... " >&6; }
3950 echo a >cygwin-cat-check
3951 if test `cat cygwin-cat-check` = a ; then
3952 rm cygwin-cat-check
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 else
3956 rm cygwin-cat-check
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 as_fn_error "The cat command does not ignore carriage return characters.
3960 Please either mount the build directory in binary mode or run the following
3961 commands before running any configure script:
3962 set -o igncr
3963 export SHELLOPTS
3964 " "$LINENO" 5
3965 fi
3966
3967 host_makefile_frag="config/mh-cygwin"
3968 ;;
3969 *-mingw*)
3970 host_makefile_frag="config/mh-mingw"
3971 ;;
3972 alpha*-linux*)
3973 host_makefile_frag="config/mh-alpha-linux"
3974 ;;
3975 hppa*-hp-hpux10*)
3976 host_makefile_frag="config/mh-pa-hpux10"
3977 ;;
3978 hppa*-hp-hpux*)
3979 host_makefile_frag="config/mh-pa"
3980 ;;
3981 hppa*-*)
3982 host_makefile_frag="config/mh-pa"
3983 ;;
3984 *-*-darwin*)
3985 host_makefile_frag="config/mh-darwin"
3986 ;;
3987 powerpc-*-aix*)
3988 host_makefile_frag="config/mh-ppc-aix"
3989 ;;
3990 rs6000-*-aix*)
3991 host_makefile_frag="config/mh-ppc-aix"
3992 ;;
3993 esac
3994 fi
3995
3996 if test "${build}" != "${host}" ; then
3997 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3998 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3999 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4000 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4001 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4002 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4003 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4004 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4005 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4006 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4007 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4008 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4009 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4010 else
4011 AR_FOR_BUILD="\$(AR)"
4012 AS_FOR_BUILD="\$(AS)"
4013 CC_FOR_BUILD="\$(CC)"
4014 CXX_FOR_BUILD="\$(CXX)"
4015 GCJ_FOR_BUILD="\$(GCJ)"
4016 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4017 GOC_FOR_BUILD="\$(GOC)"
4018 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4019 LD_FOR_BUILD="\$(LD)"
4020 NM_FOR_BUILD="\$(NM)"
4021 RANLIB_FOR_BUILD="\$(RANLIB)"
4022 WINDRES_FOR_BUILD="\$(WINDRES)"
4023 WINDMC_FOR_BUILD="\$(WINDMC)"
4024 fi
4025
4026 ac_ext=c
4027 ac_cpp='$CPP $CPPFLAGS'
4028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031 if test -n "$ac_tool_prefix"; then
4032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_CC+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 CC=$ac_cv_prog_CC
4060 if test -n "$CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062 $as_echo "$CC" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069 fi
4070 if test -z "$ac_cv_prog_CC"; then
4071 ac_ct_CC=$CC
4072 # Extract the first word of "gcc", so it can be a program name with args.
4073 set dummy gcc; ac_word=$2
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if test -n "$ac_ct_CC"; then
4080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_ac_ct_CC="gcc"
4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4092 fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 fi
4098 fi
4099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4100 if test -n "$ac_ct_CC"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4102 $as_echo "$ac_ct_CC" >&6; }
4103 else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105 $as_echo "no" >&6; }
4106 fi
4107
4108 if test "x$ac_ct_CC" = x; then
4109 CC=""
4110 else
4111 case $cross_compiling:$ac_tool_warned in
4112 yes:)
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4115 ac_tool_warned=yes ;;
4116 esac
4117 CC=$ac_ct_CC
4118 fi
4119 else
4120 CC="$ac_cv_prog_CC"
4121 fi
4122
4123 if test -z "$CC"; then
4124 if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}cc; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if test "${ac_cv_prog_CC+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_prog_CC="${ac_tool_prefix}cc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 CC=$ac_cv_prog_CC
4153 if test -n "$CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 $as_echo "$CC" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162 fi
4163 fi
4164 if test -z "$CC"; then
4165 # Extract the first word of "cc", so it can be a program name with args.
4166 set dummy cc; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if test "${ac_cv_prog_CC+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 else
4175 ac_prog_rejected=no
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4184 ac_prog_rejected=yes
4185 continue
4186 fi
4187 ac_cv_prog_CC="cc"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 if test $ac_prog_rejected = yes; then
4196 # We found a bogon in the path, so make sure we never use it.
4197 set dummy $ac_cv_prog_CC
4198 shift
4199 if test $# != 0; then
4200 # We chose a different compiler from the bogus one.
4201 # However, it has the same basename, so the bogon will be chosen
4202 # first if we set CC to just the basename; use the full file name.
4203 shift
4204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4205 fi
4206 fi
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 fi
4220 if test -z "$CC"; then
4221 if test -n "$ac_tool_prefix"; then
4222 for ac_prog in cl.exe
4223 do
4224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260
4261 test -n "$CC" && break
4262 done
4263 fi
4264 if test -z "$CC"; then
4265 ac_ct_CC=$CC
4266 for ac_prog in cl.exe
4267 do
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_prog_ac_ct_CC="$ac_prog"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4288 fi
4289 done
4290 done
4291 IFS=$as_save_IFS
4292
4293 fi
4294 fi
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298 $as_echo "$ac_ct_CC" >&6; }
4299 else
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302 fi
4303
4304
4305 test -n "$ac_ct_CC" && break
4306 done
4307
4308 if test "x$ac_ct_CC" = x; then
4309 CC=""
4310 else
4311 case $cross_compiling:$ac_tool_warned in
4312 yes:)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315 ac_tool_warned=yes ;;
4316 esac
4317 CC=$ac_ct_CC
4318 fi
4319 fi
4320
4321 fi
4322
4323
4324 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "no acceptable C compiler found in \$PATH
4327 See \`config.log' for more details." "$LINENO" 5; }
4328
4329 # Provide some information about the compiler.
4330 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4331 set X $ac_compile
4332 ac_compiler=$2
4333 for ac_option in --version -v -V -qversion; do
4334 { { ac_try="$ac_compiler $ac_option >&5"
4335 case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4342 ac_status=$?
4343 if test -s conftest.err; then
4344 sed '10a\
4345 ... rest of stderr output deleted ...
4346 10q' conftest.err >conftest.er1
4347 cat conftest.er1 >&5
4348 rm -f conftest.er1 conftest.err
4349 fi
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 done
4353
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356
4357 int
4358 main ()
4359 {
4360
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 ac_clean_files_save=$ac_clean_files
4366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4367 # Try to create an executable without -o first, disregard a.out.
4368 # It will help us diagnose broken compilers, and finding out an intuition
4369 # of exeext.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4373
4374 # The possible output files:
4375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4376
4377 ac_rmfiles=
4378 for ac_file in $ac_files
4379 do
4380 case $ac_file in
4381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4383 esac
4384 done
4385 rm -f $ac_rmfiles
4386
4387 if { { ac_try="$ac_link_default"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_link_default") 2>&5
4395 ac_status=$?
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }; then :
4398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4401 # so that the user can short-circuit this test for compilers unknown to
4402 # Autoconf.
4403 for ac_file in $ac_files ''
4404 do
4405 test -f "$ac_file" || continue
4406 case $ac_file in
4407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4408 ;;
4409 [ab].out )
4410 # We found the default executable, but exeext='' is most
4411 # certainly right.
4412 break;;
4413 *.* )
4414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4415 then :; else
4416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417 fi
4418 # We set ac_cv_exeext here because the later test for it is not
4419 # safe: cross compilers may not add the suffix if given an `-o'
4420 # argument, so we may need to know it at that point already.
4421 # Even if this section looks crufty: it has the advantage of
4422 # actually working.
4423 break;;
4424 * )
4425 break;;
4426 esac
4427 done
4428 test "$ac_cv_exeext" = no && ac_cv_exeext=
4429
4430 else
4431 ac_file=''
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4434 $as_echo "$ac_file" >&6; }
4435 if test -z "$ac_file"; then :
4436 $as_echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 { as_fn_set_status 77
4442 as_fn_error "C compiler cannot create executables
4443 See \`config.log' for more details." "$LINENO" 5; }; }
4444 fi
4445 ac_exeext=$ac_cv_exeext
4446
4447 # Check that the compiler produces executables we can run. If not, either
4448 # the compiler is broken, or we cross compile.
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4450 $as_echo_n "checking whether the C compiler works... " >&6; }
4451 # If not cross compiling, check that we can run a simple program.
4452 if test "$cross_compiling" != yes; then
4453 if { ac_try='./$ac_file'
4454 { { case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_try") 2>&5
4461 ac_status=$?
4462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }; }; then
4464 cross_compiling=no
4465 else
4466 if test "$cross_compiling" = maybe; then
4467 cross_compiling=yes
4468 else
4469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4471 as_fn_error "cannot run C compiled programs.
4472 If you meant to cross compile, use \`--host'.
4473 See \`config.log' for more details." "$LINENO" 5; }
4474 fi
4475 fi
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478 $as_echo "yes" >&6; }
4479
4480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4481 ac_clean_files=$ac_clean_files_save
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4487 $as_echo "$cross_compiling" >&6; }
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4490 $as_echo_n "checking for suffix of executables... " >&6; }
4491 if { { ac_try="$ac_link"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_link") 2>&5
4499 ac_status=$?
4500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4501 test $ac_status = 0; }; then :
4502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4504 # work properly (i.e., refer to `conftest.exe'), while it won't with
4505 # `rm'.
4506 for ac_file in conftest.exe conftest conftest.*; do
4507 test -f "$ac_file" || continue
4508 case $ac_file in
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4511 break;;
4512 * ) break;;
4513 esac
4514 done
4515 else
4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error "cannot compute suffix of executables: cannot compile and link
4519 See \`config.log' for more details." "$LINENO" 5; }
4520 fi
4521 rm -f conftest$ac_cv_exeext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4523 $as_echo "$ac_cv_exeext" >&6; }
4524
4525 rm -f conftest.$ac_ext
4526 EXEEXT=$ac_cv_exeext
4527 ac_exeext=$EXEEXT
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4529 $as_echo_n "checking for suffix of object files... " >&6; }
4530 if test "${ac_cv_objext+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535
4536 int
4537 main ()
4538 {
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 rm -f conftest.o conftest.obj
4545 if { { ac_try="$ac_compile"
4546 case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4551 $as_echo "$ac_try_echo"; } >&5
4552 (eval "$ac_compile") 2>&5
4553 ac_status=$?
4554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4555 test $ac_status = 0; }; then :
4556 for ac_file in conftest.o conftest.obj conftest.*; do
4557 test -f "$ac_file" || continue;
4558 case $ac_file in
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4561 break;;
4562 esac
4563 done
4564 else
4565 $as_echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error "cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details." "$LINENO" 5; }
4572 fi
4573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4576 $as_echo "$ac_cv_objext" >&6; }
4577 OBJEXT=$ac_cv_objext
4578 ac_objext=$OBJEXT
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4581 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586
4587 int
4588 main ()
4589 {
4590 #ifndef __GNUC__
4591 choke me
4592 #endif
4593
4594 ;
4595 return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_compiler_gnu=yes
4600 else
4601 ac_compiler_gnu=no
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4605
4606 fi
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4609 if test $ac_compiler_gnu = yes; then
4610 GCC=yes
4611 else
4612 GCC=
4613 fi
4614 ac_test_CFLAGS=${CFLAGS+set}
4615 ac_save_CFLAGS=$CFLAGS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4618 if test "${ac_cv_prog_cc_g+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 ac_save_c_werror_flag=$ac_c_werror_flag
4622 ac_c_werror_flag=yes
4623 ac_cv_prog_cc_g=no
4624 CFLAGS="-g"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627
4628 int
4629 main ()
4630 {
4631
4632 ;
4633 return 0;
4634 }
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 ac_cv_prog_cc_g=yes
4638 else
4639 CFLAGS=""
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 int
4644 main ()
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"; then :
4652
4653 else
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_prog_cc_g=yes
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_c_werror_flag=$ac_save_c_werror_flag
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4678 $as_echo "$ac_cv_prog_cc_g" >&6; }
4679 if test "$ac_test_CFLAGS" = set; then
4680 CFLAGS=$ac_save_CFLAGS
4681 elif test $ac_cv_prog_cc_g = yes; then
4682 if test "$GCC" = yes; then
4683 CFLAGS="-g -O2"
4684 else
4685 CFLAGS="-g"
4686 fi
4687 else
4688 if test "$GCC" = yes; then
4689 CFLAGS="-O2"
4690 else
4691 CFLAGS=
4692 fi
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4696 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_cv_prog_cc_c89=no
4700 ac_save_CC=$CC
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <stdarg.h>
4704 #include <stdio.h>
4705 #include <sys/types.h>
4706 #include <sys/stat.h>
4707 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4708 struct buf { int x; };
4709 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4710 static char *e (p, i)
4711 char **p;
4712 int i;
4713 {
4714 return p[i];
4715 }
4716 static char *f (char * (*g) (char **, int), char **p, ...)
4717 {
4718 char *s;
4719 va_list v;
4720 va_start (v,p);
4721 s = g (p, va_arg (v,int));
4722 va_end (v);
4723 return s;
4724 }
4725
4726 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4727 function prototypes and stuff, but not '\xHH' hex character constants.
4728 These don't provoke an error unfortunately, instead are silently treated
4729 as 'x'. The following induces an error, until -std is added to get
4730 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4731 array size at least. It's necessary to write '\x00'==0 to get something
4732 that's true only with -std. */
4733 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734
4735 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4736 inside strings and character constants. */
4737 #define FOO(x) 'x'
4738 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739
4740 int test (int i, double x);
4741 struct s1 {int (*f) (int a);};
4742 struct s2 {int (*f) (double a);};
4743 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4744 int argc;
4745 char **argv;
4746 int
4747 main ()
4748 {
4749 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4755 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 do
4757 CC="$ac_save_CC $ac_arg"
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_prog_cc_c89=$ac_arg
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext
4762 test "x$ac_cv_prog_cc_c89" != "xno" && break
4763 done
4764 rm -f conftest.$ac_ext
4765 CC=$ac_save_CC
4766
4767 fi
4768 # AC_CACHE_VAL
4769 case "x$ac_cv_prog_cc_c89" in
4770 x)
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4772 $as_echo "none needed" >&6; } ;;
4773 xno)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4775 $as_echo "unsupported" >&6; } ;;
4776 *)
4777 CC="$CC $ac_cv_prog_cc_c89"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4779 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4780 esac
4781 if test "x$ac_cv_prog_cc_c89" != xno; then :
4782
4783 fi
4784
4785 ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791 ac_ext=cpp
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 if test -z "$CXX"; then
4797 if test -n "$CCC"; then
4798 CXX=$CCC
4799 else
4800 if test -n "$ac_tool_prefix"; then
4801 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 do
4803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_CXX+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$CXX"; then
4811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 CXX=$ac_cv_prog_CXX
4831 if test -n "$CXX"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4833 $as_echo "$CXX" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839
4840 test -n "$CXX" && break
4841 done
4842 fi
4843 if test -z "$CXX"; then
4844 ac_ct_CXX=$CXX
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 do
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848 set dummy $ac_prog; ac_word=$2
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 $as_echo_n "checking for $ac_word... " >&6; }
4851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -n "$ac_ct_CXX"; then
4855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4856 else
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864 ac_cv_prog_ac_ct_CXX="$ac_prog"
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872 fi
4873 fi
4874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4875 if test -n "$ac_ct_CXX"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4877 $as_echo "$ac_ct_CXX" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 fi
4882
4883
4884 test -n "$ac_ct_CXX" && break
4885 done
4886
4887 if test "x$ac_ct_CXX" = x; then
4888 CXX="g++"
4889 else
4890 case $cross_compiling:$ac_tool_warned in
4891 yes:)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4894 ac_tool_warned=yes ;;
4895 esac
4896 CXX=$ac_ct_CXX
4897 fi
4898 fi
4899
4900 fi
4901 fi
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4904 set X $ac_compile
4905 ac_compiler=$2
4906 for ac_option in --version -v -V -qversion; do
4907 { { ac_try="$ac_compiler $ac_option >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 ac_status=$?
4916 if test -s conftest.err; then
4917 sed '10a\
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4921 rm -f conftest.er1 conftest.err
4922 fi
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 done
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4928 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934
4935 int
4936 main ()
4937 {
4938 #ifndef __GNUC__
4939 choke me
4940 #endif
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_cxx_try_compile "$LINENO"; then :
4947 ac_compiler_gnu=yes
4948 else
4949 ac_compiler_gnu=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4953
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4957 if test $ac_compiler_gnu = yes; then
4958 GXX=yes
4959 else
4960 GXX=
4961 fi
4962 ac_test_CXXFLAGS=${CXXFLAGS+set}
4963 ac_save_CXXFLAGS=$CXXFLAGS
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4966 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4970 ac_cxx_werror_flag=yes
4971 ac_cv_prog_cxx_g=no
4972 CXXFLAGS="-g"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975
4976 int
4977 main ()
4978 {
4979
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_cxx_try_compile "$LINENO"; then :
4985 ac_cv_prog_cxx_g=yes
4986 else
4987 CXXFLAGS=""
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 int
4992 main ()
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_cxx_try_compile "$LINENO"; then :
5000
5001 else
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003 CXXFLAGS="-g"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006
5007 int
5008 main ()
5009 {
5010
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_cxx_try_compile "$LINENO"; then :
5016 ac_cv_prog_cxx_g=yes
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5026 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5027 if test "$ac_test_CXXFLAGS" = set; then
5028 CXXFLAGS=$ac_save_CXXFLAGS
5029 elif test $ac_cv_prog_cxx_g = yes; then
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-g -O2"
5032 else
5033 CXXFLAGS="-g"
5034 fi
5035 else
5036 if test "$GXX" = yes; then
5037 CXXFLAGS="-O2"
5038 else
5039 CXXFLAGS=
5040 fi
5041 fi
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048
5049 # We must set the default linker to the linker used by gcc for the correct
5050 # operation of libtool. If LD is not defined and we are using gcc, try to
5051 # set the LD default to the ld used by gcc.
5052 if test -z "$LD"; then
5053 if test "$GCC" = yes; then
5054 case $build in
5055 *-*-mingw*)
5056 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5057 *)
5058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5059 esac
5060 case $gcc_prog_ld in
5061 # Accept absolute paths.
5062 [\\/]* | [A-Za-z]:[\\/]*)
5063 LD="$gcc_prog_ld" ;;
5064 esac
5065 fi
5066 fi
5067
5068 # Check whether -static-libstdc++ -static-libgcc is supported.
5069 have_static_libs=no
5070 if test "$GCC" = yes; then
5071 saved_LDFLAGS="$LDFLAGS"
5072
5073 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5075 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5076 ac_ext=cpp
5077 ac_cpp='$CXXCPP $CPPFLAGS'
5078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5081
5082
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085
5086 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5087 #error -static-libstdc++ not implemented
5088 #endif
5089 int main() {}
5090 _ACEOF
5091 if ac_fn_cxx_try_link "$LINENO"; then :
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }; have_static_libs=yes
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105
5106
5107 LDFLAGS="$saved_LDFLAGS"
5108 fi
5109
5110
5111
5112
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$GNATBIND"; then
5122 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 GNATBIND=$ac_cv_prog_GNATBIND
5142 if test -n "$GNATBIND"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5144 $as_echo "$GNATBIND" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 fi
5152 if test -z "$ac_cv_prog_GNATBIND"; then
5153 ac_ct_GNATBIND=$GNATBIND
5154 # Extract the first word of "gnatbind", so it can be a program name with args.
5155 set dummy gnatbind; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_GNATBIND"; then
5162 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5182 if test -n "$ac_ct_GNATBIND"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5184 $as_echo "$ac_ct_GNATBIND" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190 if test "x$ac_ct_GNATBIND" = x; then
5191 GNATBIND="no"
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 GNATBIND=$ac_ct_GNATBIND
5200 fi
5201 else
5202 GNATBIND="$ac_cv_prog_GNATBIND"
5203 fi
5204
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$GNATMAKE"; then
5214 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 GNATMAKE=$ac_cv_prog_GNATMAKE
5234 if test -n "$GNATMAKE"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5236 $as_echo "$GNATMAKE" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5240 fi
5241
5242
5243 fi
5244 if test -z "$ac_cv_prog_GNATMAKE"; then
5245 ac_ct_GNATMAKE=$GNATMAKE
5246 # Extract the first word of "gnatmake", so it can be a program name with args.
5247 set dummy gnatmake; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_GNATMAKE"; then
5254 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 fi
5272 fi
5273 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5274 if test -n "$ac_ct_GNATMAKE"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5276 $as_echo "$ac_ct_GNATMAKE" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5280 fi
5281
5282 if test "x$ac_ct_GNATMAKE" = x; then
5283 GNATMAKE="no"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 GNATMAKE=$ac_ct_GNATMAKE
5292 fi
5293 else
5294 GNATMAKE="$ac_cv_prog_GNATMAKE"
5295 fi
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5298 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5299 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat >conftest.adb <<EOF
5303 procedure conftest is begin null; end conftest;
5304 EOF
5305 acx_cv_cc_gcc_supports_ada=no
5306 # There is a bug in old released versions of GCC which causes the
5307 # driver to exit successfully when the appropriate language module
5308 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5309 # Therefore we must check for the error message as well as an
5310 # unsuccessful exit.
5311 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5312 # given a .adb file, but produce no object file. So we must check
5313 # if an object file was really produced to guard against this.
5314 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5315 if test x"$errors" = x && test -f conftest.$ac_objext; then
5316 acx_cv_cc_gcc_supports_ada=yes
5317 fi
5318 rm -f conftest.*
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5321 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5322
5323 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5324 have_gnat=yes
5325 else
5326 have_gnat=no
5327 fi
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5330 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5331 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 echo abfoo >t1
5335 echo cdfoo >t2
5336 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5337 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5338 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5339 :
5340 else
5341 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5342 fi
5343 fi
5344 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5345 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5346 :
5347 else
5348 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5349 fi
5350 fi
5351 rm t1 t2
5352
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5355 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5356 do_compare="$gcc_cv_prog_cmp_skip"
5357
5358
5359
5360 # Check whether --enable-bootstrap was given.
5361 if test "${enable_bootstrap+set}" = set; then :
5362 enableval=$enable_bootstrap;
5363 else
5364 enable_bootstrap=default
5365 fi
5366
5367
5368 # Issue errors and warnings for invalid/strange bootstrap combinations.
5369 if test -r $srcdir/gcc/configure; then
5370 have_compiler=yes
5371 else
5372 have_compiler=no
5373 fi
5374
5375 case "$have_compiler:$host:$target:$enable_bootstrap" in
5376 *:*:*:no) ;;
5377
5378 # Default behavior. Enable bootstrap if we have a compiler
5379 # and we are in a native configuration.
5380 yes:$build:$build:default)
5381 enable_bootstrap=yes ;;
5382
5383 *:*:*:default)
5384 enable_bootstrap=no ;;
5385
5386 # We have a compiler and we are in a native configuration, bootstrap is ok
5387 yes:$build:$build:yes)
5388 ;;
5389
5390 # Other configurations, but we have a compiler. Assume the user knows
5391 # what he's doing.
5392 yes:*:*:yes)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5394 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5395 ;;
5396
5397 # No compiler: if they passed --enable-bootstrap explicitly, fail
5398 no:*:*:yes)
5399 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5400
5401 # Fail if wrong command line
5402 *)
5403 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5404 ;;
5405 esac
5406
5407 # Used for setting $lt_cv_objdir
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5409 $as_echo_n "checking for objdir... " >&6; }
5410 if test "${lt_cv_objdir+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 rm -f .libs 2>/dev/null
5414 mkdir .libs 2>/dev/null
5415 if test -d .libs; then
5416 lt_cv_objdir=.libs
5417 else
5418 # MS-DOS does not allow filenames that begin with a dot.
5419 lt_cv_objdir=_libs
5420 fi
5421 rmdir .libs 2>/dev/null
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5424 $as_echo "$lt_cv_objdir" >&6; }
5425 objdir=$lt_cv_objdir
5426
5427
5428
5429
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define LT_OBJDIR "$lt_cv_objdir/"
5433 _ACEOF
5434
5435
5436
5437 # Check for GMP, MPFR and MPC
5438 gmplibs="-lmpc -lmpfr -lgmp"
5439 gmpinc=
5440 have_gmp=no
5441
5442 # Specify a location for mpc
5443 # check for this first so it ends up on the link line before mpfr.
5444
5445 # Check whether --with-mpc was given.
5446 if test "${with_mpc+set}" = set; then :
5447 withval=$with_mpc;
5448 fi
5449
5450
5451 # Check whether --with-mpc-include was given.
5452 if test "${with_mpc_include+set}" = set; then :
5453 withval=$with_mpc_include;
5454 fi
5455
5456
5457 # Check whether --with-mpc-lib was given.
5458 if test "${with_mpc_lib+set}" = set; then :
5459 withval=$with_mpc_lib;
5460 fi
5461
5462
5463 if test "x$with_mpc" != x; then
5464 gmplibs="-L$with_mpc/lib $gmplibs"
5465 gmpinc="-I$with_mpc/include $gmpinc"
5466 fi
5467 if test "x$with_mpc_include" != x; then
5468 gmpinc="-I$with_mpc_include $gmpinc"
5469 fi
5470 if test "x$with_mpc_lib" != x; then
5471 gmplibs="-L$with_mpc_lib $gmplibs"
5472 fi
5473 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5474 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5475 gmpinc='-I$$s/mpc/src '"$gmpinc"
5476 # Do not test the mpc version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481 fi
5482
5483 # Specify a location for mpfr
5484 # check for this first so it ends up on the link line before gmp.
5485
5486 # Check whether --with-mpfr-dir was given.
5487 if test "${with_mpfr_dir+set}" = set; then :
5488 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5489 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5490 fi
5491
5492
5493
5494 # Check whether --with-mpfr was given.
5495 if test "${with_mpfr+set}" = set; then :
5496 withval=$with_mpfr;
5497 fi
5498
5499
5500 # Check whether --with-mpfr-include was given.
5501 if test "${with_mpfr_include+set}" = set; then :
5502 withval=$with_mpfr_include;
5503 fi
5504
5505
5506 # Check whether --with-mpfr-lib was given.
5507 if test "${with_mpfr_lib+set}" = set; then :
5508 withval=$with_mpfr_lib;
5509 fi
5510
5511
5512 if test "x$with_mpfr" != x; then
5513 gmplibs="-L$with_mpfr/lib $gmplibs"
5514 gmpinc="-I$with_mpfr/include $gmpinc"
5515 fi
5516 if test "x$with_mpfr_include" != x; then
5517 gmpinc="-I$with_mpfr_include $gmpinc"
5518 fi
5519 if test "x$with_mpfr_lib" != x; then
5520 gmplibs="-L$with_mpfr_lib $gmplibs"
5521 fi
5522 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5523 # MPFR v3.1.0 moved the sources into a src sub-directory.
5524 if test -d ${srcdir}/mpfr/src; then
5525 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5526 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5527 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5528 else
5529 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5530 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5531 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5532 fi
5533 # Do not test the mpfr version. Assume that it is sufficient, since
5534 # it is in the source tree, and the library has not been built yet
5535 # but it would be included on the link line in the version check below
5536 # hence making the test fail.
5537 have_gmp=yes
5538 fi
5539
5540 # Specify a location for gmp
5541
5542 # Check whether --with-gmp-dir was given.
5543 if test "${with_gmp_dir+set}" = set; then :
5544 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5545 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5546 fi
5547
5548
5549
5550 # Check whether --with-gmp was given.
5551 if test "${with_gmp+set}" = set; then :
5552 withval=$with_gmp;
5553 fi
5554
5555
5556 # Check whether --with-gmp-include was given.
5557 if test "${with_gmp_include+set}" = set; then :
5558 withval=$with_gmp_include;
5559 fi
5560
5561
5562 # Check whether --with-gmp-lib was given.
5563 if test "${with_gmp_lib+set}" = set; then :
5564 withval=$with_gmp_lib;
5565 fi
5566
5567
5568
5569 if test "x$with_gmp" != x; then
5570 gmplibs="-L$with_gmp/lib $gmplibs"
5571 gmpinc="-I$with_gmp/include $gmpinc"
5572 fi
5573 if test "x$with_gmp_include" != x; then
5574 gmpinc="-I$with_gmp_include $gmpinc"
5575 fi
5576 if test "x$with_gmp_lib" != x; then
5577 gmplibs="-L$with_gmp_lib $gmplibs"
5578 fi
5579 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5580 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5581 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5582 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5583 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5584 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5585 # Do not test the gmp version. Assume that it is sufficient, since
5586 # it is in the source tree, and the library has not been built yet
5587 # but it would be included on the link line in the version check below
5588 # hence making the test fail.
5589 have_gmp=yes
5590 fi
5591
5592 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5593 have_gmp=yes
5594 saved_CFLAGS="$CFLAGS"
5595 CFLAGS="$CFLAGS $gmpinc"
5596 # Check for the recommended and required versions of GMP.
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5598 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5599
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include "gmp.h"
5603 int
5604 main ()
5605 {
5606
5607 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5608 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5609 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5610 choke me
5611 #endif
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <gmp.h>
5621 int
5622 main ()
5623 {
5624
5625 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5626 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5627 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5628 choke me
5629 #endif
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 $as_echo "yes" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5640 $as_echo "buggy but acceptable" >&6; }
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }; have_gmp=no
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648
5649 # If we have GMP, check the MPFR version.
5650 if test x"$have_gmp" = xyes; then
5651 # Check for the recommended and required versions of MPFR.
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5653 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <gmp.h>
5657 #include <mpfr.h>
5658 int
5659 main ()
5660 {
5661
5662 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5663 choke me
5664 #endif
5665
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <gmp.h>
5674 #include <mpfr.h>
5675 int
5676 main ()
5677 {
5678
5679 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5680 choke me
5681 #endif
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5692 $as_echo "buggy but acceptable" >&6; }
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }; have_gmp=no
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701
5702 # Check for the MPC header version.
5703 if test x"$have_gmp" = xyes ; then
5704 # Check for the recommended and required versions of MPC.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5706 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <mpc.h>
5710 int
5711 main ()
5712 {
5713
5714 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5715 choke me
5716 #endif
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <mpc.h>
5726 int
5727 main ()
5728 {
5729
5730 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5731 choke me
5732 #endif
5733
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5740 $as_echo "yes" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5743 $as_echo "buggy but acceptable" >&6; }
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }; have_gmp=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 fi
5752
5753 # Now check the MPFR library.
5754 if test x"$have_gmp" = xyes; then
5755 saved_LIBS="$LIBS"
5756 LIBS="$LIBS $gmplibs"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5758 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <mpc.h>
5762 int
5763 main ()
5764 {
5765
5766 mpfr_t n;
5767 mpfr_t x;
5768 mpc_t c;
5769 int t;
5770 mpfr_init (n);
5771 mpfr_init (x);
5772 mpfr_atan2 (n, n, x, GMP_RNDN);
5773 mpfr_erfc (n, x, GMP_RNDN);
5774 mpfr_subnormalize (x, t, GMP_RNDN);
5775 mpfr_clear(n);
5776 mpfr_clear(x);
5777 mpc_init2 (c, 53);
5778 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5779 mpc_cosh (c, c, MPC_RNDNN);
5780 mpc_pow (c, c, c, MPC_RNDNN);
5781 mpc_acosh (c, c, MPC_RNDNN);
5782 mpc_clear (c);
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5790 $as_echo "yes" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }; have_gmp=no
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS="$saved_LIBS"
5798 fi
5799
5800 CFLAGS="$saved_CFLAGS"
5801
5802 # The library versions listed in the error message below should match
5803 # the HARD-minimums enforced above.
5804 if test x$have_gmp != xyes; then
5805 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5806 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5807 their locations. Source code for these libraries can be found at
5808 their respective hosting sites as well as at
5809 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5810 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5811 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5812 make sure that you have installed both the libraries and the header
5813 files. They may be located in separate packages." "$LINENO" 5
5814 fi
5815 fi
5816
5817 # Flags needed for both GMP, MPFR and/or MPC.
5818
5819
5820
5821
5822
5823
5824
5825 # Allow host libstdc++ to be specified for static linking with PPL.
5826
5827 # Check whether --with-host-libstdcxx was given.
5828 if test "${with_host_libstdcxx+set}" = set; then :
5829 withval=$with_host_libstdcxx;
5830 fi
5831
5832
5833 case $with_host_libstdcxx in
5834 no|yes)
5835 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5836 ;;
5837 esac
5838
5839 # Libraries to use for stage1 or when not bootstrapping.
5840
5841 # Check whether --with-stage1-libs was given.
5842 if test "${with_stage1_libs+set}" = set; then :
5843 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5844 stage1_libs=
5845 else
5846 stage1_libs=$withval
5847 fi
5848 else
5849 stage1_libs=$with_host_libstdcxx
5850 fi
5851
5852
5853
5854 # Linker flags to use for stage1 or when not bootstrapping.
5855
5856 # Check whether --with-stage1-ldflags was given.
5857 if test "${with_stage1_ldflags+set}" = set; then :
5858 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5859 stage1_ldflags=
5860 else
5861 stage1_ldflags=$withval
5862 fi
5863 else
5864 stage1_ldflags=
5865 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5866 # if supported. But if the user explicitly specified the libraries to use,
5867 # trust that they are doing what they want.
5868 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5869 stage1_ldflags="-static-libstdc++ -static-libgcc"
5870 fi
5871 fi
5872
5873
5874
5875 # Libraries to use for stage2 and later builds. This defaults to the
5876 # argument passed to --with-host-libstdcxx.
5877
5878 # Check whether --with-boot-libs was given.
5879 if test "${with_boot_libs+set}" = set; then :
5880 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5881 poststage1_libs=
5882 else
5883 poststage1_libs=$withval
5884 fi
5885 else
5886 poststage1_libs=$with_host_libstdcxx
5887 fi
5888
5889
5890
5891 # Linker flags to use for stage2 and later builds.
5892
5893 # Check whether --with-boot-ldflags was given.
5894 if test "${with_boot_ldflags+set}" = set; then :
5895 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5896 poststage1_ldflags=
5897 else
5898 poststage1_ldflags=$withval
5899 fi
5900 else
5901 poststage1_ldflags=
5902 # In stages 2 and 3, default to linking libstdc++ and libgcc
5903 # statically. But if the user explicitly specified the libraries to
5904 # use, trust that they are doing what they want.
5905 if test "$poststage1_libs" = ""; then
5906 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5907 fi
5908 fi
5909
5910
5911
5912 # GCC GRAPHITE dependency ISL.
5913 # Basic setup is inlined here, actual checks are in config/isl.m4
5914
5915
5916 # Check whether --with-isl was given.
5917 if test "${with_isl+set}" = set; then :
5918 withval=$with_isl;
5919 fi
5920
5921
5922 # Treat --without-isl as a request to disable
5923 # GRAPHITE support and skip all following checks.
5924 if test "x$with_isl" != "xno"; then
5925 # Check for ISL
5926
5927
5928 # Check whether --with-isl-include was given.
5929 if test "${with_isl_include+set}" = set; then :
5930 withval=$with_isl_include;
5931 fi
5932
5933
5934 # Check whether --with-isl-lib was given.
5935 if test "${with_isl_lib+set}" = set; then :
5936 withval=$with_isl_lib;
5937 fi
5938
5939
5940 # Check whether --enable-isl-version-check was given.
5941 if test "${enable_isl_version_check+set}" = set; then :
5942 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5943 else
5944 ENABLE_ISL_CHECK=yes
5945 fi
5946
5947
5948 # Initialize isllibs and islinc.
5949 case $with_isl in
5950 no)
5951 isllibs=
5952 islinc=
5953 ;;
5954 "" | yes)
5955 ;;
5956 *)
5957 isllibs="-L$with_isl/lib"
5958 islinc="-I$with_isl/include"
5959 ;;
5960 esac
5961 if test "x${with_isl_include}" != x ; then
5962 islinc="-I$with_isl_include"
5963 fi
5964 if test "x${with_isl_lib}" != x; then
5965 isllibs="-L$with_isl_lib"
5966 fi
5967 if test "x${islinc}" = x && test "x${isllibs}" = x \
5968 && test -d ${srcdir}/isl; then
5969 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5970 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5971 ENABLE_ISL_CHECK=no
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5973 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5974 fi
5975
5976 isllibs="${isllibs} -lisl"
5977
5978
5979
5980 if test "${ENABLE_ISL_CHECK}" = yes ; then
5981 _isl_saved_CFLAGS=$CFLAGS
5982 _isl_saved_LDFLAGS=$LDFLAGS
5983 _isl_saved_LIBS=$LIBS
5984
5985 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5986 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5987 LIBS="${_isl_saved_LIBS} -lisl"
5988
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5990 $as_echo_n "checking for compatible ISL... " >&6; }
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <isl/val.h>
5994 int
5995 main ()
5996 {
5997 ;
5998 ;
5999 return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 gcc_cv_isl=yes
6004 else
6005 gcc_cv_isl=no
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6010 $as_echo "$gcc_cv_isl" >&6; }
6011
6012 CFLAGS=$_isl_saved_CFLAGS
6013 LDFLAGS=$_isl_saved_LDFLAGS
6014 LIBS=$_isl_saved_LIBS
6015 fi
6016
6017
6018
6019
6020
6021
6022 if test "x${with_isl}" = xno; then
6023 graphite_requested=no
6024 elif test "x${with_isl}" != x \
6025 || test "x${with_isl_include}" != x \
6026 || test "x${with_isl_lib}" != x ; then
6027 graphite_requested=yes
6028 else
6029 graphite_requested=no
6030 fi
6031
6032
6033
6034 if test "${gcc_cv_isl}" = no ; then
6035 isllibs=
6036 islinc=
6037 fi
6038
6039 if test "${graphite_requested}" = yes \
6040 && test "x${isllibs}" = x \
6041 && test "x${islinc}" = x ; then
6042
6043 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6044 fi
6045
6046
6047 fi
6048
6049 # If the ISL check failed, disable builds of in-tree variant of ISL
6050 if test "x$with_isl" = xno ||
6051 test "x$gcc_cv_isl" = xno; then
6052 noconfigdirs="$noconfigdirs isl"
6053 islinc=
6054 fi
6055
6056
6057
6058
6059 # Check for LTO support.
6060 # Check whether --enable-lto was given.
6061 if test "${enable_lto+set}" = set; then :
6062 enableval=$enable_lto; enable_lto=$enableval
6063 else
6064 enable_lto=yes; default_enable_lto=yes
6065 fi
6066
6067
6068
6069
6070
6071 target_elf=no
6072 case $target in
6073 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6074 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6075 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6076 nvptx-*-none)
6077 target_elf=no
6078 ;;
6079 *)
6080 target_elf=yes
6081 ;;
6082 esac
6083
6084 if test $target_elf = yes; then :
6085 # ELF platforms build the lto-plugin always.
6086 case $target in
6087 m68010-*)
6088 build_lto_plugin=no;;
6089 *)
6090 build_lto_plugin=yes;;
6091 esac
6092
6093 else
6094 if test x"$default_enable_lto" = x"yes" ; then
6095 case $target in
6096 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6097 # On other non-ELF platforms, LTO has yet to be validated.
6098 *) enable_lto=no ;;
6099 esac
6100 else
6101 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6102 # It would also be nice to check the binutils support, but we don't
6103 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6104 # warn during gcc/ subconfigure; unless you're bootstrapping with
6105 # -flto it won't be needed until after installation anyway.
6106 case $target in
6107 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6108 *) if test x"$enable_lto" = x"yes"; then
6109 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6110 fi
6111 ;;
6112 esac
6113 fi
6114 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6115 # Build it unless LTO was explicitly disabled.
6116 case $target in
6117 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6118 *) ;;
6119 esac
6120
6121 fi
6122
6123
6124 # Check whether --enable-linker-plugin-configure-flags was given.
6125 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6126 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6127 else
6128 extra_linker_plugin_configure_flags=
6129 fi
6130
6131
6132 # Check whether --enable-linker-plugin-flags was given.
6133 if test "${enable_linker_plugin_flags+set}" = set; then :
6134 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6135 else
6136 extra_linker_plugin_flags=
6137 fi
6138
6139
6140
6141
6142 # By default, C and C++ are the only stage 1 languages.
6143 stage1_languages=,c,
6144
6145 # Target libraries that we bootstrap.
6146 bootstrap_target_libs=,target-libgcc,
6147
6148 # Figure out what language subdirectories are present.
6149 # Look if the user specified --enable-languages="..."; if not, use
6150 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6151 # go away some day.
6152 # NB: embedded tabs in this IF block -- do not untabify
6153 if test -d ${srcdir}/gcc; then
6154 if test x"${enable_languages+set}" != xset; then
6155 if test x"${LANGUAGES+set}" = xset; then
6156 enable_languages="${LANGUAGES}"
6157 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6158 else
6159 enable_languages=all
6160 fi
6161 else
6162 if test x"${enable_languages}" = x ||
6163 test x"${enable_languages}" = xyes;
6164 then
6165 echo configure.in: --enable-languages needs at least one language argument 1>&2
6166 exit 1
6167 fi
6168 fi
6169 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6170
6171 # 'f95' is the old name for the 'fortran' language. We issue a warning
6172 # and make the substitution.
6173 case ,${enable_languages}, in
6174 *,f95,*)
6175 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6176 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6177 ;;
6178 esac
6179
6180 # If bootstrapping, C++ must be enabled.
6181 case ",$enable_languages,:$enable_bootstrap" in
6182 *,c++,*:*) ;;
6183 *:yes)
6184 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6185 enable_languages="${enable_languages},c++"
6186 else
6187 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6188 fi
6189 ;;
6190 esac
6191
6192 # First scan to see if an enabled language requires some other language.
6193 # We assume that a given config-lang.in will list all the language
6194 # front ends it requires, even if some are required indirectly.
6195 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6196 case ${lang_frag} in
6197 ..) ;;
6198 # The odd quoting in the next line works around
6199 # an apparent bug in bash 1.12 on linux.
6200 ${srcdir}/gcc/[*]/config-lang.in) ;;
6201 *)
6202 # From the config-lang.in, get $language, $lang_requires, and
6203 # $lang_requires_boot_languages.
6204 language=
6205 lang_requires=
6206 lang_requires_boot_languages=
6207 . ${lang_frag}
6208 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6209 case ,${enable_languages}, in
6210 *,$other,*) ;;
6211 *,all,*) ;;
6212 *,$language,*)
6213 echo " \`$other' language required by \`$language'; enabling" 1>&2
6214 enable_languages="${enable_languages},${other}"
6215 ;;
6216 esac
6217 done
6218 for other in ${lang_requires_boot_languages} ; do
6219 if test "$other" != "c"; then
6220 case ,${enable_stage1_languages}, in
6221 *,$other,*) ;;
6222 *,all,*) ;;
6223 *)
6224 case ,${enable_languages}, in
6225 *,$language,*)
6226 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6227 enable_stage1_languages="$enable_stage1_languages,${other}"
6228 ;;
6229 esac
6230 ;;
6231 esac
6232 fi
6233 done
6234 ;;
6235 esac
6236 done
6237
6238 new_enable_languages=,c,
6239
6240 # If LTO is enabled, add the LTO front end.
6241 if test "$enable_lto" = "yes" ; then
6242 case ,${enable_languages}, in
6243 *,lto,*) ;;
6244 *) enable_languages="${enable_languages},lto" ;;
6245 esac
6246 if test "${build_lto_plugin}" = "yes" ; then
6247 configdirs="$configdirs lto-plugin"
6248 fi
6249 fi
6250
6251 # If we're building an offloading compiler, add the LTO front end.
6252 if test x"$enable_as_accelerator_for" != x ; then
6253 case ,${enable_languages}, in
6254 *,lto,*) ;;
6255 *) enable_languages="${enable_languages},lto" ;;
6256 esac
6257 fi
6258
6259 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6260 potential_languages=,c,
6261
6262 enabled_target_libs=
6263 disabled_target_libs=
6264
6265 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6266 case ${lang_frag} in
6267 ..) ;;
6268 # The odd quoting in the next line works around
6269 # an apparent bug in bash 1.12 on linux.
6270 ${srcdir}/gcc/[*]/config-lang.in) ;;
6271 *)
6272 # From the config-lang.in, get $language, $target_libs,
6273 # $lang_dirs, $boot_language, and $build_by_default
6274 language=
6275 target_libs=
6276 lang_dirs=
6277 subdir_requires=
6278 boot_language=no
6279 build_by_default=yes
6280 . ${lang_frag}
6281 if test x${language} = x; then
6282 echo "${lang_frag} doesn't set \$language." 1>&2
6283 exit 1
6284 fi
6285
6286 if test "$language" = "c++"; then
6287 boot_language=yes
6288 fi
6289
6290 add_this_lang=no
6291 case ,${enable_languages}, in
6292 *,${language},*)
6293 # Language was explicitly selected; include it
6294 # unless it is C, which is enabled by default.
6295 if test "$language" != "c"; then
6296 add_this_lang=yes
6297 fi
6298 ;;
6299 *,all,*)
6300 # 'all' was selected, select it if it is a default language
6301 if test "$language" != "c"; then
6302 add_this_lang=${build_by_default}
6303 fi
6304 ;;
6305 esac
6306
6307 # Disable languages that need other directories if these aren't available.
6308 for i in $subdir_requires; do
6309 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6310 case ,${enable_languages}, in
6311 *,${language},*)
6312 # Specifically requested language; tell them.
6313 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6314 ;;
6315 *)
6316 # Silently disable.
6317 add_this_lang=unsupported
6318 ;;
6319 esac
6320 done
6321
6322 # Disable Ada if no preexisting GNAT is available.
6323 case ,${enable_languages},:${language}:${have_gnat} in
6324 *,${language},*:ada:no)
6325 # Specifically requested language; tell them.
6326 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6327 ;;
6328 *:ada:no)
6329 # Silently disable.
6330 add_this_lang=unsupported
6331 ;;
6332 esac
6333
6334 # Disable a language that is unsupported by the target.
6335 case " $unsupported_languages " in
6336 *" $language "*)
6337 add_this_lang=unsupported
6338 ;;
6339 esac
6340
6341 case $add_this_lang in
6342 unsupported)
6343 # Remove language-dependent dirs.
6344 disabled_target_libs="$disabled_target_libs $target_libs"
6345 noconfigdirs="$noconfigdirs $lang_dirs"
6346 ;;
6347 no)
6348 # Remove language-dependent dirs; still show language as supported.
6349 disabled_target_libs="$disabled_target_libs $target_libs"
6350 noconfigdirs="$noconfigdirs $lang_dirs"
6351 potential_languages="${potential_languages}${language},"
6352 ;;
6353 yes)
6354 new_enable_languages="${new_enable_languages}${language},"
6355 potential_languages="${potential_languages}${language},"
6356 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6357 enabled_target_libs="$enabled_target_libs $target_libs"
6358 case "${boot_language}:,$enable_stage1_languages," in
6359 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6360 # Add to (comma-separated) list of stage 1 languages.
6361 case ",$stage1_languages," in
6362 *,$language,* | ,yes, | ,all,) ;;
6363 *) stage1_languages="${stage1_languages}${language}," ;;
6364 esac
6365 # We need to bootstrap any supporting libraries.
6366 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6367 ;;
6368 esac
6369 ;;
6370 esac
6371 ;;
6372 esac
6373 done
6374
6375 # Add target libraries which are only needed for disabled languages
6376 # to noconfigdirs.
6377 if test -n "$disabled_target_libs"; then
6378 for dir in $disabled_target_libs; do
6379 case " $enabled_target_libs " in
6380 *" ${dir} "*) ;;
6381 *) noconfigdirs="$noconfigdirs $dir" ;;
6382 esac
6383 done
6384 fi
6385
6386 # Check whether --enable-stage1-languages was given.
6387 if test "${enable_stage1_languages+set}" = set; then :
6388 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6389 ,no,|,,)
6390 # Set it to something that will have no effect in the loop below
6391 enable_stage1_languages=c ;;
6392 ,yes,)
6393 enable_stage1_languages=`echo $new_enable_languages | \
6394 sed -e "s/^,//" -e "s/,$//" ` ;;
6395 *,all,*)
6396 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6397 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6398 esac
6399
6400 # Add "good" languages from enable_stage1_languages to stage1_languages,
6401 # while "bad" languages go in missing_languages. Leave no duplicates.
6402 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6403 case $potential_languages in
6404 *,$i,*)
6405 case $stage1_languages in
6406 *,$i,*) ;;
6407 *) stage1_languages="$stage1_languages$i," ;;
6408 esac ;;
6409 *)
6410 case $missing_languages in
6411 *,$i,*) ;;
6412 *) missing_languages="$missing_languages$i," ;;
6413 esac ;;
6414 esac
6415 done
6416 fi
6417
6418
6419 # Remove leading/trailing commas that were added for simplicity
6420 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6421 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6422 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6423 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6424
6425 if test "x$missing_languages" != x; then
6426 as_fn_error "
6427 The following requested languages could not be built: ${missing_languages}
6428 Supported languages are: ${potential_languages}" "$LINENO" 5
6429 fi
6430 if test "x$new_enable_languages" != "x$enable_languages"; then
6431 echo The following languages will be built: ${new_enable_languages}
6432 enable_languages="$new_enable_languages"
6433 fi
6434
6435
6436 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6437 fi
6438
6439 # Handle --disable-<component> generically.
6440 for dir in $configdirs $build_configdirs $target_configdirs ; do
6441 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6442 varname=`echo $dirname | sed -e s/+/_/g`
6443 if eval test x\${enable_${varname}} "=" xno ; then
6444 noconfigdirs="$noconfigdirs $dir"
6445 fi
6446 done
6447
6448 # Check for Boehm's garbage collector
6449 # Check whether --enable-objc-gc was given.
6450 if test "${enable_objc_gc+set}" = set; then :
6451 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6452 *,objc,*:*:yes:*target-boehm-gc*)
6453 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6454 ;;
6455 esac
6456 fi
6457
6458
6459 # Make sure we only build Boehm's garbage collector if required.
6460 case ,${enable_languages},:${enable_objc_gc} in
6461 *,objc,*:yes)
6462 # Keep target-boehm-gc if requested for Objective-C.
6463 ;;
6464 *)
6465 # Otherwise remove target-boehm-gc depending on target-libjava.
6466 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6467 noconfigdirs="$noconfigdirs target-boehm-gc"
6468 fi
6469 ;;
6470 esac
6471
6472 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6473 case ,${enable_languages}, in
6474 *,c++,*)
6475 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6476 case "${noconfigdirs}" in
6477 *target-libstdc++-v3*)
6478 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6479 ;;
6480 *) ;;
6481 esac
6482 ;;
6483 *)
6484 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6485 ;;
6486 esac
6487
6488 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6489 # $build_configdirs and $target_configdirs.
6490 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6491
6492 notsupp=""
6493 for dir in . $skipdirs $noconfigdirs ; do
6494 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6495 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6496 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6497 if test -r $srcdir/$dirname/configure ; then
6498 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 true
6500 else
6501 notsupp="$notsupp $dir"
6502 fi
6503 fi
6504 fi
6505 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6507 if test -r $srcdir/$dirname/configure ; then
6508 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6509 true
6510 else
6511 notsupp="$notsupp $dir"
6512 fi
6513 fi
6514 fi
6515 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6516 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6517 if test -r $srcdir/$dirname/configure ; then
6518 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6519 true
6520 else
6521 notsupp="$notsupp $dir"
6522 fi
6523 fi
6524 fi
6525 done
6526
6527 # Quietly strip out all directories which aren't configurable in this tree.
6528 # This relies on all configurable subdirectories being autoconfiscated, which
6529 # is now the case.
6530 build_configdirs_all="$build_configdirs"
6531 build_configdirs=
6532 for i in ${build_configdirs_all} ; do
6533 j=`echo $i | sed -e s/build-//g`
6534 if test -f ${srcdir}/$j/configure ; then
6535 build_configdirs="${build_configdirs} $i"
6536 fi
6537 done
6538
6539 configdirs_all="$configdirs"
6540 configdirs=
6541 for i in ${configdirs_all} ; do
6542 if test -f ${srcdir}/$i/configure ; then
6543 configdirs="${configdirs} $i"
6544 fi
6545 done
6546
6547 target_configdirs_all="$target_configdirs"
6548 target_configdirs=
6549 for i in ${target_configdirs_all} ; do
6550 j=`echo $i | sed -e s/target-//g`
6551 if test -f ${srcdir}/$j/configure ; then
6552 target_configdirs="${target_configdirs} $i"
6553 fi
6554 done
6555
6556 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6557 # so we have to add it after the preceding checks.
6558 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6559 then
6560 case " $configdirs " in
6561 *" libiberty "*)
6562 # If we can build libiberty, we can also build libiberty-linker-plugin.
6563 configdirs="$configdirs libiberty-linker-plugin"
6564 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6565 --with-libiberty=../libiberty-linker-plugin";;
6566 *)
6567 as_fn_error "libiberty missing" "$LINENO" 5;;
6568 esac
6569 fi
6570
6571 # Sometimes we have special requirements for the host libiberty.
6572 extra_host_libiberty_configure_flags=
6573 case " $configdirs " in
6574 *" lto-plugin "* | *" libcc1 "*)
6575 # When these are to be built as shared libraries, the same applies to
6576 # libiberty.
6577 extra_host_libiberty_configure_flags=--enable-shared
6578 ;;
6579 esac
6580
6581
6582 # Produce a warning message for the subdirs we can't configure.
6583 # This isn't especially interesting in the Cygnus tree, but in the individual
6584 # FSF releases, it's important to let people know when their machine isn't
6585 # supported by the one or two programs in a package.
6586
6587 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6588 # If $appdirs is non-empty, at least one of those directories must still
6589 # be configured, or we error out. (E.g., if the gas release supports a
6590 # specified target in some subdirs but not the gas subdir, we shouldn't
6591 # pretend that all is well.)
6592 if test -n "$appdirs" ; then
6593 for dir in $appdirs ; do
6594 if test -r $dir/Makefile.in ; then
6595 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6596 appdirs=""
6597 break
6598 fi
6599 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6600 appdirs=""
6601 break
6602 fi
6603 fi
6604 done
6605 if test -n "$appdirs" ; then
6606 echo "*** This configuration is not supported by this package." 1>&2
6607 exit 1
6608 fi
6609 fi
6610 # Okay, some application will build, or we don't care to check. Still
6611 # notify of subdirs not getting built.
6612 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6613 echo " ${notsupp}" 1>&2
6614 echo " (Any other directories should still work fine.)" 1>&2
6615 fi
6616
6617 case "$host" in
6618 *msdosdjgpp*)
6619 enable_gdbtk=no ;;
6620 esac
6621
6622 # To find our prefix, in gcc_cv_tool_prefix.
6623
6624 # The user is always right.
6625 if test "${PATH_SEPARATOR+set}" != set; then
6626 echo "#! /bin/sh" >conf$$.sh
6627 echo "exit 0" >>conf$$.sh
6628 chmod +x conf$$.sh
6629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6630 PATH_SEPARATOR=';'
6631 else
6632 PATH_SEPARATOR=:
6633 fi
6634 rm -f conf$$.sh
6635 fi
6636
6637
6638
6639 if test "x$exec_prefix" = xNONE; then
6640 if test "x$prefix" = xNONE; then
6641 gcc_cv_tool_prefix=$ac_default_prefix
6642 else
6643 gcc_cv_tool_prefix=$prefix
6644 fi
6645 else
6646 gcc_cv_tool_prefix=$exec_prefix
6647 fi
6648
6649 # If there is no compiler in the tree, use the PATH only. In any
6650 # case, if there is no compiler in the tree nobody should use
6651 # AS_FOR_TARGET and LD_FOR_TARGET.
6652 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6653 gcc_version=`cat $srcdir/gcc/BASE-VER`
6654 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6655 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6656 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6657 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6658 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6659 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6660 else
6661 gcc_cv_tool_dirs=
6662 fi
6663
6664 if test x$build = x$target && test -n "$md_exec_prefix"; then
6665 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6666 fi
6667
6668
6669
6670 copy_dirs=
6671
6672
6673 # Check whether --with-build-sysroot was given.
6674 if test "${with_build_sysroot+set}" = set; then :
6675 withval=$with_build_sysroot; if test x"$withval" != x ; then
6676 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6677 fi
6678 else
6679 SYSROOT_CFLAGS_FOR_TARGET=
6680 fi
6681
6682
6683
6684
6685 # Check whether --with-debug-prefix-map was given.
6686 if test "${with_debug_prefix_map+set}" = set; then :
6687 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6688 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6689 for debug_map in $withval; do
6690 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6691 done
6692 fi
6693 else
6694 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6695 fi
6696
6697
6698
6699 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6700 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6701 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6702 # We want to ensure that TARGET libraries (which we know are built with
6703 # gcc) are built with "-O2 -g", so include those options when setting
6704 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6705 if test "x$CFLAGS_FOR_TARGET" = x; then
6706 if test "x${is_cross_compiler}" = xyes; then
6707 CFLAGS_FOR_TARGET="-g -O2"
6708 else
6709 CFLAGS_FOR_TARGET=$CFLAGS
6710 case " $CFLAGS " in
6711 *" -O2 "*) ;;
6712 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6713 esac
6714 case " $CFLAGS " in
6715 *" -g "* | *" -g3 "*) ;;
6716 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6717 esac
6718 fi
6719 fi
6720
6721
6722 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6723 if test "x${is_cross_compiler}" = xyes; then
6724 CXXFLAGS_FOR_TARGET="-g -O2"
6725 else
6726 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6727 case " $CXXFLAGS " in
6728 *" -O2 "*) ;;
6729 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6730 esac
6731 case " $CXXFLAGS " in
6732 *" -g "* | *" -g3 "*) ;;
6733 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6734 esac
6735 fi
6736 fi
6737
6738
6739
6740
6741 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6742 # the named directory are copied to $(tooldir)/sys-include.
6743 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6744 if test x${is_cross_compiler} = xno ; then
6745 echo 1>&2 '***' --with-headers is only supported when cross compiling
6746 exit 1
6747 fi
6748 if test x"${with_headers}" != xyes ; then
6749 x=${gcc_cv_tool_prefix}
6750 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6751 fi
6752 fi
6753
6754 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6755 # the name directories are copied to $(tooldir)/lib. Multiple directories
6756 # are permitted.
6757 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6758 if test x${is_cross_compiler} = xno ; then
6759 echo 1>&2 '***' --with-libs is only supported when cross compiling
6760 exit 1
6761 fi
6762 if test x"${with_libs}" != xyes ; then
6763 # Copy the libraries in reverse order, so that files in the first named
6764 # library override files in subsequent libraries.
6765 x=${gcc_cv_tool_prefix}
6766 for l in ${with_libs}; do
6767 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6768 done
6769 fi
6770 fi
6771
6772 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6773 #
6774 # This is done by determining whether or not the appropriate directory
6775 # is available, and by checking whether or not specific configurations
6776 # have requested that this magic not happen.
6777 #
6778 # The command line options always override the explicit settings in
6779 # configure.in, and the settings in configure.in override this magic.
6780 #
6781 # If the default for a toolchain is to use GNU as and ld, and you don't
6782 # want to do that, then you should use the --without-gnu-as and
6783 # --without-gnu-ld options for the configure script. Similarly, if
6784 # the default is to use the included zlib and you don't want to do that,
6785 # you should use the --with-system-zlib option for the configure script.
6786
6787 if test x${use_gnu_as} = x &&
6788 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6789 with_gnu_as=yes
6790 extra_host_args="$extra_host_args --with-gnu-as"
6791 fi
6792
6793 if test x${use_gnu_ld} = x &&
6794 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6795 with_gnu_ld=yes
6796 extra_host_args="$extra_host_args --with-gnu-ld"
6797 fi
6798
6799 if test x${use_included_zlib} = x &&
6800 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6801 :
6802 else
6803 with_system_zlib=yes
6804 extra_host_args="$extra_host_args --with-system-zlib"
6805 fi
6806
6807 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6808 # can detect this case.
6809
6810 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6811 with_newlib=yes
6812 extra_host_args="$extra_host_args --with-newlib"
6813 fi
6814
6815 # Handle ${copy_dirs}
6816 set fnord ${copy_dirs}
6817 shift
6818 while test $# != 0 ; do
6819 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6820 :
6821 else
6822 echo Copying $1 to $2
6823
6824 # Use the install script to create the directory and all required
6825 # parent directories.
6826 if test -d $2 ; then
6827 :
6828 else
6829 echo >config.temp
6830 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6831 fi
6832
6833 # Copy the directory, assuming we have tar.
6834 # FIXME: Should we use B in the second tar? Not all systems support it.
6835 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6836
6837 # It is the responsibility of the user to correctly adjust all
6838 # symlinks. If somebody can figure out how to handle them correctly
6839 # here, feel free to add the code.
6840
6841 echo $1 > $2/COPIED
6842 fi
6843 shift; shift
6844 done
6845
6846 # Determine a target-dependent exec_prefix that the installed
6847 # gcc will search in. Keep this list sorted by triplet, with
6848 # the *-*-osname triplets last.
6849 md_exec_prefix=
6850 case "${target}" in
6851 i[34567]86-pc-msdosdjgpp*)
6852 md_exec_prefix=/dev/env/DJDIR/bin
6853 ;;
6854 *-*-hpux* | \
6855 *-*-nto-qnx* | \
6856 *-*-solaris2*)
6857 md_exec_prefix=/usr/ccs/bin
6858 ;;
6859 esac
6860
6861 extra_arflags_for_target=
6862 extra_nmflags_for_target=
6863 extra_ranlibflags_for_target=
6864 target_makefile_frag=/dev/null
6865 case "${target}" in
6866 spu-*-*)
6867 target_makefile_frag="config/mt-spu"
6868 ;;
6869 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6870 target_makefile_frag="config/mt-sde"
6871 ;;
6872 mipsisa*-*-elfoabi*)
6873 target_makefile_frag="config/mt-mips-elfoabi"
6874 ;;
6875 mips*-*-*linux* | mips*-*-gnu*)
6876 target_makefile_frag="config/mt-mips-gnu"
6877 ;;
6878 nios2-*-elf*)
6879 target_makefile_frag="config/mt-nios2-elf"
6880 ;;
6881 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6882 target_makefile_frag="config/mt-gnu"
6883 ;;
6884 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6885 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6886 # commands to handle both 32-bit and 64-bit objects. These flags are
6887 # harmless if we're using GNU nm or ar.
6888 extra_arflags_for_target=" -X32_64"
6889 extra_nmflags_for_target=" -B -X32_64"
6890 ;;
6891 esac
6892
6893 alphaieee_frag=/dev/null
6894 case $target in
6895 alpha*-*-*)
6896 # This just makes sure to use the -mieee option to build target libs.
6897 # This should probably be set individually by each library.
6898 alphaieee_frag="config/mt-alphaieee"
6899 ;;
6900 esac
6901
6902 # If --enable-target-optspace always use -Os instead of -O2 to build
6903 # the target libraries, similarly if it is not specified, use -Os
6904 # on selected platforms.
6905 ospace_frag=/dev/null
6906 case "${enable_target_optspace}:${target}" in
6907 yes:*)
6908 ospace_frag="config/mt-ospace"
6909 ;;
6910 :d30v-*)
6911 ospace_frag="config/mt-d30v"
6912 ;;
6913 :m32r-* | :d10v-* | :fr30-*)
6914 ospace_frag="config/mt-ospace"
6915 ;;
6916 no:* | :*)
6917 ;;
6918 *)
6919 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6920 ;;
6921 esac
6922
6923 # Some systems (e.g., one of the i386-aix systems the gas testers are
6924 # using) don't handle "\$" correctly, so don't use it here.
6925 tooldir='${exec_prefix}'/${target_noncanonical}
6926 build_tooldir=${tooldir}
6927
6928 # Create a .gdbinit file which runs the one in srcdir
6929 # and tells GDB to look there for source files.
6930
6931 if test -r ${srcdir}/.gdbinit ; then
6932 case ${srcdir} in
6933 .) ;;
6934 *) cat > ./.gdbinit <<EOF
6935 # ${NO_EDIT}
6936 dir ${srcdir}
6937 dir .
6938 source ${srcdir}/.gdbinit
6939 EOF
6940 ;;
6941 esac
6942 fi
6943
6944 # Make sure that the compiler is able to generate an executable. If it
6945 # can't, we are probably in trouble. We don't care whether we can run the
6946 # executable--we might be using a cross compiler--we only care whether it
6947 # can be created. At this point the main configure script has set CC.
6948 we_are_ok=no
6949 echo "int main () { return 0; }" > conftest.c
6950 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6951 if test $? = 0 ; then
6952 if test -s conftest || test -s conftest.exe ; then
6953 we_are_ok=yes
6954 fi
6955 fi
6956 case $we_are_ok in
6957 no)
6958 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6959 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6960 rm -f conftest*
6961 exit 1
6962 ;;
6963 esac
6964 rm -f conftest*
6965
6966 # Decide which environment variable is used to find dynamic libraries.
6967 case "${host}" in
6968 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6969 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6970 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6971 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6972 esac
6973
6974 # On systems where the dynamic library environment variable is PATH,
6975 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6976 # built executables to PATH.
6977 if test "$RPATH_ENVVAR" = PATH; then
6978 GCC_SHLIB_SUBDIR=/shlib
6979 else
6980 GCC_SHLIB_SUBDIR=
6981 fi
6982
6983 # Adjust the toplevel makefile according to whether bootstrap was selected.
6984 case $enable_bootstrap in
6985 yes)
6986 bootstrap_suffix=bootstrap
6987 BUILD_CONFIG=bootstrap-debug
6988 ;;
6989 no)
6990 bootstrap_suffix=no-bootstrap
6991 BUILD_CONFIG=
6992 ;;
6993 esac
6994
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6996 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6997
6998
6999 # Check whether --with-build-config was given.
7000 if test "${with_build_config+set}" = set; then :
7001 withval=$with_build_config; case $with_build_config in
7002 yes) with_build_config= ;;
7003 no) with_build_config= BUILD_CONFIG= ;;
7004 esac
7005 fi
7006
7007
7008 if test "x${with_build_config}" != x; then
7009 BUILD_CONFIG=$with_build_config
7010 else
7011 case $BUILD_CONFIG in
7012 bootstrap-debug)
7013 if echo "int f (void) { return 0; }" > conftest.c &&
7014 ${CC} -c conftest.c &&
7015 mv conftest.o conftest.o.g0 &&
7016 ${CC} -c -g conftest.c &&
7017 mv conftest.o conftest.o.g &&
7018 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7019 :
7020 else
7021 BUILD_CONFIG=
7022 fi
7023 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7024 ;;
7025 esac
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7028 $as_echo "$BUILD_CONFIG" >&6; }
7029
7030
7031 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7033 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7034 # Check whether --enable-vtable-verify was given.
7035 if test "${enable_vtable_verify+set}" = set; then :
7036 enableval=$enable_vtable_verify; case "$enableval" in
7037 yes) enable_vtable_verify=yes ;;
7038 no) enable_vtable_verify=no ;;
7039 *) enable_vtable_verify=no;;
7040 esac
7041 else
7042 enable_vtable_verify=no
7043 fi
7044
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7046 $as_echo "$enable_vtable_verify" >&6; }
7047
7048 # Record target_configdirs and the configure arguments for target and
7049 # build configuration in Makefile.
7050 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7051 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7052 bootstrap_fixincludes=no
7053
7054 # If we are building libgomp, bootstrap it.
7055 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7056 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7057 fi
7058
7059 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7060 # or bootstrap-ubsan, bootstrap it.
7061 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7062 case "$BUILD_CONFIG" in
7063 *bootstrap-asan* | *bootstrap-ubsan* )
7064 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7065 bootstrap_fixincludes=yes
7066 ;;
7067 esac
7068 fi
7069
7070 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7071 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7072 test "$enable_vtable_verify" != no; then
7073 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7074 fi
7075
7076 # If we are building libmpx, bootstrap it.
7077 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7078 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7079 fi
7080
7081 # Determine whether gdb needs tk/tcl or not.
7082 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7083 # and in that case we want gdb to be built without tk. Ugh!
7084 # In fact I believe gdb is the *only* package directly dependent on tk,
7085 # so we should be able to put the 'maybe's in unconditionally and
7086 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7087 # 100% sure that that's safe though.
7088
7089 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7090 case "$enable_gdbtk" in
7091 no)
7092 GDB_TK="" ;;
7093 yes)
7094 GDB_TK="${gdb_tk}" ;;
7095 *)
7096 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7097 # distro. Eventually someone will fix this and move Insight, nee
7098 # gdbtk to a separate directory.
7099 if test -d ${srcdir}/gdb/gdbtk ; then
7100 GDB_TK="${gdb_tk}"
7101 else
7102 GDB_TK=""
7103 fi
7104 ;;
7105 esac
7106 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7107 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7108
7109 # Strip out unwanted targets.
7110
7111 # While at that, we remove Makefiles if we were started for recursive
7112 # configuration, so that the top-level Makefile reconfigures them,
7113 # like we used to do when configure itself was recursive.
7114
7115 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7116 # but now we're fixing up the Makefile ourselves with the additional
7117 # commands passed to AC_CONFIG_FILES. Use separate variables
7118 # extrasub-{build,host,target} not because there is any reason to split
7119 # the substitutions up that way, but only to remain below the limit of
7120 # 99 commands in a script, for HP-UX sed.
7121 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7122
7123 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7124 yes:yes:*\ gold\ *:*,c++,*) ;;
7125 yes:yes:*\ gold\ *:*)
7126 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7127 ;;
7128 esac
7129
7130 extrasub_build=
7131 for module in ${build_configdirs} ; do
7132 if test -z "${no_recursion}" \
7133 && test -f ${build_subdir}/${module}/Makefile; then
7134 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7135 rm -f ${build_subdir}/${module}/Makefile
7136 fi
7137 extrasub_build="$extrasub_build
7138 /^@if build-$module\$/d
7139 /^@endif build-$module\$/d
7140 /^@if build-$module-$bootstrap_suffix\$/d
7141 /^@endif build-$module-$bootstrap_suffix\$/d"
7142 done
7143 extrasub_host=
7144 for module in ${configdirs} ; do
7145 if test -z "${no_recursion}"; then
7146 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7147 if test -f ${file}; then
7148 echo 1>&2 "*** removing ${file} to force reconfigure"
7149 rm -f ${file}
7150 fi
7151 done
7152 fi
7153 case ${module},${bootstrap_fixincludes} in
7154 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7155 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7156 esac
7157 extrasub_host="$extrasub_host
7158 /^@if $module\$/d
7159 /^@endif $module\$/d
7160 /^@if $module-$host_bootstrap_suffix\$/d
7161 /^@endif $module-$host_bootstrap_suffix\$/d"
7162 done
7163 extrasub_target=
7164 for module in ${target_configdirs} ; do
7165 if test -z "${no_recursion}" \
7166 && test -f ${target_subdir}/${module}/Makefile; then
7167 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7168 rm -f ${target_subdir}/${module}/Makefile
7169 fi
7170
7171 # We only bootstrap target libraries listed in bootstrap_target_libs.
7172 case $bootstrap_target_libs in
7173 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7174 *) target_bootstrap_suffix=no-bootstrap ;;
7175 esac
7176
7177 extrasub_target="$extrasub_target
7178 /^@if target-$module\$/d
7179 /^@endif target-$module\$/d
7180 /^@if target-$module-$target_bootstrap_suffix\$/d
7181 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7182 done
7183
7184 # Do the final fixup along with target modules.
7185 extrasub_target="$extrasub_target
7186 /^@if /,/^@endif /d"
7187
7188 # Create the serialization dependencies. This uses a temporary file.
7189
7190 # Check whether --enable-serial-configure was given.
7191 if test "${enable_serial_configure+set}" = set; then :
7192 enableval=$enable_serial_configure;
7193 fi
7194
7195
7196 case ${enable_serial_configure} in
7197 yes)
7198 enable_serial_build_configure=yes
7199 enable_serial_host_configure=yes
7200 enable_serial_target_configure=yes
7201 ;;
7202 esac
7203
7204 # These force 'configure's to be done one at a time, to avoid problems
7205 # with contention over a shared config.cache.
7206 rm -f serdep.tmp
7207 echo '# serdep.tmp' > serdep.tmp
7208 olditem=
7209 test "x${enable_serial_build_configure}" = xyes &&
7210 for item in ${build_configdirs} ; do
7211 case ${olditem} in
7212 "") ;;
7213 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7214 esac
7215 olditem=${item}
7216 done
7217 olditem=
7218 test "x${enable_serial_host_configure}" = xyes &&
7219 for item in ${configdirs} ; do
7220 case ${olditem} in
7221 "") ;;
7222 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7223 esac
7224 olditem=${item}
7225 done
7226 olditem=
7227 test "x${enable_serial_target_configure}" = xyes &&
7228 for item in ${target_configdirs} ; do
7229 case ${olditem} in
7230 "") ;;
7231 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7232 esac
7233 olditem=${item}
7234 done
7235 serialization_dependencies=serdep.tmp
7236
7237
7238 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7239 # target, nonopt, and variable assignments. These are the ones we
7240 # might not want to pass down to subconfigures. The exception being
7241 # --cache-file=/dev/null, which is used to turn off the use of cache
7242 # files altogether, and which should be passed on to subconfigures.
7243 # Also strip program-prefix, program-suffix, and program-transform-name,
7244 # so that we can pass down a consistent program-transform-name.
7245 baseargs=
7246 tbaseargs=
7247 keep_next=no
7248 skip_next=no
7249 eval "set -- $ac_configure_args"
7250 for ac_arg
7251 do
7252 if test X"$skip_next" = X"yes"; then
7253 skip_next=no
7254 continue
7255 fi
7256 if test X"$keep_next" = X"yes"; then
7257 case $ac_arg in
7258 *\'*)
7259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7260 esac
7261 baseargs="$baseargs '$ac_arg'"
7262 tbaseargs="$tbaseargs '$ac_arg'"
7263 keep_next=no
7264 continue
7265 fi
7266
7267 # Handle separated arguments. Based on the logic generated by
7268 # autoconf 2.59.
7269 case $ac_arg in
7270 *=* | --config-cache | -C | -disable-* | --disable-* \
7271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7273 | -with-* | --with-* | -without-* | --without-* | --x)
7274 separate_arg=no
7275 ;;
7276 -*)
7277 separate_arg=yes
7278 ;;
7279 *)
7280 separate_arg=no
7281 ;;
7282 esac
7283
7284 skip_targ=no
7285 case $ac_arg in
7286
7287 --with-* | --without-*)
7288 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7289
7290 case $libopt in
7291 *[-_]include)
7292 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7293 ;;
7294 *[-_]lib)
7295 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7296 ;;
7297 *)
7298 lib=$libopt
7299 ;;
7300 esac
7301
7302
7303 case $lib in
7304 mpc | mpfr | gmp | isl)
7305 # If we're processing --with-$lib, --with-$lib-include or
7306 # --with-$lib-lib, for one of the libs above, and target is
7307 # different from host, don't pass the current argument to any
7308 # target library's configure.
7309 if test x$is_cross_compiler = xyes; then
7310 skip_targ=yes
7311 fi
7312 ;;
7313 esac
7314 ;;
7315 esac
7316
7317 case "$ac_arg" in
7318 --cache-file=/dev/null | \
7319 -cache-file=/dev/null )
7320 # Handled here to avoid the test to skip args below.
7321 baseargs="$baseargs '$ac_arg'"
7322 tbaseargs="$tbaseargs '$ac_arg'"
7323 # Assert: $separate_arg should always be no.
7324 keep_next=$separate_arg
7325 ;;
7326 --no*)
7327 continue
7328 ;;
7329 --c* | \
7330 --sr* | \
7331 --ho* | \
7332 --bu* | \
7333 --t* | \
7334 --program-* | \
7335 -cache_file* | \
7336 -srcdir* | \
7337 -host* | \
7338 -build* | \
7339 -target* | \
7340 -program-prefix* | \
7341 -program-suffix* | \
7342 -program-transform-name* )
7343 skip_next=$separate_arg
7344 continue
7345 ;;
7346 -*)
7347 # An option. Add it.
7348 case $ac_arg in
7349 *\'*)
7350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7351 esac
7352 baseargs="$baseargs '$ac_arg'"
7353 if test X"$skip_targ" = Xno; then
7354 tbaseargs="$tbaseargs '$ac_arg'"
7355 fi
7356 keep_next=$separate_arg
7357 ;;
7358 *)
7359 # Either a variable assignment, or a nonopt (triplet). Don't
7360 # pass it down; let the Makefile handle this.
7361 continue
7362 ;;
7363 esac
7364 done
7365 # Remove the initial space we just introduced and, as these will be
7366 # expanded by make, quote '$'.
7367 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7368
7369 # Add in --program-transform-name, after --program-prefix and
7370 # --program-suffix have been applied to it. Autoconf has already
7371 # doubled dollar signs and backslashes in program_transform_name; we want
7372 # the backslashes un-doubled, and then the entire thing wrapped in single
7373 # quotes, because this will be expanded first by make and then by the shell.
7374 # Also, because we want to override the logic in subdir configure scripts to
7375 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7376 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7377 ${program_transform_name}
7378 EOF_SED
7379 gcc_transform_name=`cat conftestsed.out`
7380 rm -f conftestsed.out
7381 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7382 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7383 if test "$silent" = yes; then
7384 baseargs="$baseargs --silent"
7385 tbaseargs="$tbaseargs --silent"
7386 fi
7387 baseargs="$baseargs --disable-option-checking"
7388 tbaseargs="$tbaseargs --disable-option-checking"
7389
7390 # Record and document user additions to sub configure arguments.
7391
7392
7393
7394
7395 # For the build-side libraries, we just need to pretend we're native,
7396 # and not use the same cache file. Multilibs are neither needed nor
7397 # desired. We can't even use the same cache file for all build-side
7398 # libraries, as they're compiled differently; some with C, some with
7399 # C++ or with different feature-enabling options.
7400 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7401
7402 # For host modules, accept cache file option, or specification as blank.
7403 case "${cache_file}" in
7404 "") # empty
7405 cache_file_option="" ;;
7406 /* | [A-Za-z]:[\\/]* ) # absolute path
7407 cache_file_option="--cache-file=${cache_file}" ;;
7408 *) # relative path
7409 cache_file_option="--cache-file=../${cache_file}" ;;
7410 esac
7411
7412 # Host dirs don't like to share a cache file either, horribly enough.
7413 # This seems to be due to autoconf 2.5x stupidity.
7414 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7415
7416 target_configargs="$target_configargs ${tbaseargs}"
7417
7418 # Passing a --with-cross-host argument lets the target libraries know
7419 # whether they are being built with a cross-compiler or being built
7420 # native. However, it would be better to use other mechanisms to make the
7421 # sorts of decisions they want to make on this basis. Please consider
7422 # this option to be deprecated. FIXME.
7423 if test x${is_cross_compiler} = xyes ; then
7424 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7425 fi
7426
7427 # Special user-friendly check for native x86_64-linux build, if
7428 # multilib is not explicitly enabled.
7429 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7430 x86_64-*linux*:yes:$build:$build:)
7431 # Make sure we have a developement environment that handles 32-bit
7432 dev64=no
7433 echo "int main () { return 0; }" > conftest.c
7434 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7435 if test $? = 0 ; then
7436 if test -s conftest || test -s conftest.exe ; then
7437 dev64=yes
7438 fi
7439 fi
7440 rm -f conftest*
7441 if test x${dev64} != xyes ; then
7442 as_fn_error "I suspect your system does not have 32-bit developement 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
7443 fi
7444 ;;
7445 esac
7446
7447 # Default to --enable-multilib.
7448 if test x${enable_multilib} = x ; then
7449 target_configargs="--enable-multilib ${target_configargs}"
7450 fi
7451
7452 # Pass --with-newlib if appropriate. Note that target_configdirs has
7453 # changed from the earlier setting of with_newlib.
7454 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7455 target_configargs="--with-newlib ${target_configargs}"
7456 fi
7457
7458 # Different target subdirs use different values of certain variables
7459 # (notably CXX). Worse, multilibs use *lots* of different values.
7460 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7461 # it doesn't automatically accept command-line overrides of them.
7462 # This means it's not safe for target subdirs to share a cache file,
7463 # which is disgusting, but there you have it. Hopefully this can be
7464 # fixed in future. It's still worthwhile to use a cache file for each
7465 # directory. I think.
7466
7467 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7468 # We need to pass --target, as newer autoconf's requires consistency
7469 # for target_alias and gcc doesn't manage it consistently.
7470 target_configargs="--cache-file=./config.cache ${target_configargs}"
7471
7472 FLAGS_FOR_TARGET=
7473 case " $target_configdirs " in
7474 *" newlib "*)
7475 case " $target_configargs " in
7476 *" --with-newlib "*)
7477 case "$target" in
7478 *-cygwin*)
7479 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7480 ;;
7481 esac
7482
7483 # If we're not building GCC, don't discard standard headers.
7484 if test -d ${srcdir}/gcc; then
7485 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7486
7487 if test "${build}" != "${host}"; then
7488 # On Canadian crosses, CC_FOR_TARGET will have already been set
7489 # by `configure', so we won't have an opportunity to add -Bgcc/
7490 # to it. This is right: we don't want to search that directory
7491 # for binaries, but we want the header files in there, so add
7492 # them explicitly.
7493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7494
7495 # Someone might think of using the pre-installed headers on
7496 # Canadian crosses, in case the installed compiler is not fully
7497 # compatible with the compiler being built. In this case, it
7498 # would be better to flag an error than risking having
7499 # incompatible object files being constructed. We can't
7500 # guarantee that an error will be flagged, but let's hope the
7501 # compiler will do it, when presented with incompatible header
7502 # files.
7503 fi
7504 fi
7505
7506 case "${target}-${is_cross_compiler}" in
7507 i[3456789]86-*-linux*-no)
7508 # Here host == target, so we don't need to build gcc,
7509 # so we don't want to discard standard headers.
7510 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7511 ;;
7512 *)
7513 # If we're building newlib, use its generic headers last, but search
7514 # for any libc-related directories first (so make it the last -B
7515 # switch).
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7517
7518 # If we're building libgloss, find the startup file, simulator library
7519 # and linker script.
7520 case " $target_configdirs " in
7521 *" libgloss "*)
7522 # Look for startup file, simulator library and maybe linker script.
7523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7524 # Look for libnosys.a in case the target needs it.
7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7526 # Most targets have the linker script in the source directory.
7527 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7528 ;;
7529 esac
7530 ;;
7531 esac
7532 ;;
7533 esac
7534 ;;
7535 esac
7536
7537 case "$target" in
7538 x86_64-*mingw* | *-w64-mingw*)
7539 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7540 # however, use a symlink named 'mingw' in ${prefix} .
7541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7542 ;;
7543 *-mingw*)
7544 # MinGW can't be handled as Cygwin above since it does not use newlib.
7545 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'
7546 ;;
7547 esac
7548
7549 # Allow the user to override the flags for
7550 # our build compiler if desired.
7551 if test x"${build}" = x"${host}" ; then
7552 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7553 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7554 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7555 fi
7556
7557 # On Canadian crosses, we'll be searching the right directories for
7558 # the previously-installed cross compiler, so don't bother to add
7559 # flags for directories within the install tree of the compiler
7560 # being built; programs in there won't even run.
7561 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7562 # Search for pre-installed headers if nothing else fits.
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7564 fi
7565
7566 if test "x${use_gnu_ld}" = x &&
7567 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7568 # Arrange for us to find uninstalled linker scripts.
7569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7570 fi
7571
7572 # Search for other target-specific linker scripts and such.
7573 case "${target}" in
7574 mep*)
7575 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7576 ;;
7577 esac
7578
7579 # Makefile fragments.
7580 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7581 do
7582 eval fragval=\$$frag
7583 if test $fragval != /dev/null; then
7584 eval $frag=${srcdir}/$fragval
7585 fi
7586 done
7587
7588
7589
7590
7591
7592 # Miscellanea: directories, flags, etc.
7593
7594
7595
7596
7597
7598
7599
7600
7601 # Build module lists & subconfigure args.
7602
7603
7604
7605 # Host module lists & subconfigure args.
7606
7607
7608
7609
7610 # Target module lists & subconfigure args.
7611
7612
7613
7614 # Build tools.
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632 # Generate default definitions for YACC, M4, LEX and other programs that run
7633 # on the build machine. These are used if the Makefile can't locate these
7634 # programs in objdir.
7635 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7636
7637 for ac_prog in 'bison -y' byacc yacc
7638 do
7639 # Extract the first word of "$ac_prog", so it can be a program name with args.
7640 set dummy $ac_prog; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if test "${ac_cv_prog_YACC+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 if test -n "$YACC"; then
7647 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_prog_YACC="$ac_prog"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 YACC=$ac_cv_prog_YACC
7667 if test -n "$YACC"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7669 $as_echo "$YACC" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676 test -n "$YACC" && break
7677 done
7678 test -n "$YACC" || YACC="$MISSING bison -y"
7679
7680 case " $build_configdirs " in
7681 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7682 esac
7683
7684 for ac_prog in bison
7685 do
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if test "${ac_cv_prog_BISON+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
7692 else
7693 if test -n "$BISON"; then
7694 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_BISON="$ac_prog"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711 fi
7712 fi
7713 BISON=$ac_cv_prog_BISON
7714 if test -n "$BISON"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7716 $as_echo "$BISON" >&6; }
7717 else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723 test -n "$BISON" && break
7724 done
7725 test -n "$BISON" || BISON="$MISSING bison"
7726
7727 case " $build_configdirs " in
7728 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7729 esac
7730
7731 for ac_prog in gm4 gnum4 m4
7732 do
7733 # Extract the first word of "$ac_prog", so it can be a program name with args.
7734 set dummy $ac_prog; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_M4+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 if test -n "$M4"; then
7741 ac_cv_prog_M4="$M4" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746 IFS=$as_save_IFS
7747 test -z "$as_dir" && as_dir=.
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750 ac_cv_prog_M4="$ac_prog"
7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 break 2
7753 fi
7754 done
7755 done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 M4=$ac_cv_prog_M4
7761 if test -n "$M4"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7763 $as_echo "$M4" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 test -n "$M4" && break
7771 done
7772 test -n "$M4" || M4="$MISSING m4"
7773
7774 case " $build_configdirs " in
7775 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7776 esac
7777
7778 for ac_prog in flex lex
7779 do
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_prog_LEX+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$LEX"; then
7788 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_LEX="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 LEX=$ac_cv_prog_LEX
7808 if test -n "$LEX"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7810 $as_echo "$LEX" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 test -n "$LEX" && break
7818 done
7819 test -n "$LEX" || LEX="$MISSING flex"
7820
7821 case " $build_configdirs " in
7822 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7823 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7824 esac
7825
7826 for ac_prog in flex
7827 do
7828 # Extract the first word of "$ac_prog", so it can be a program name with args.
7829 set dummy $ac_prog; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if test "${ac_cv_prog_FLEX+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$FLEX"; then
7836 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_prog_FLEX="$ac_prog"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 FLEX=$ac_cv_prog_FLEX
7856 if test -n "$FLEX"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7858 $as_echo "$FLEX" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864
7865 test -n "$FLEX" && break
7866 done
7867 test -n "$FLEX" || FLEX="$MISSING flex"
7868
7869 case " $build_configdirs " in
7870 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7871 esac
7872
7873 for ac_prog in makeinfo
7874 do
7875 # Extract the first word of "$ac_prog", so it can be a program name with args.
7876 set dummy $ac_prog; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$MAKEINFO"; then
7883 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_MAKEINFO="$ac_prog"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 MAKEINFO=$ac_cv_prog_MAKEINFO
7903 if test -n "$MAKEINFO"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7905 $as_echo "$MAKEINFO" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 test -n "$MAKEINFO" && break
7913 done
7914 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7915
7916 case " $build_configdirs " in
7917 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7918 *)
7919
7920 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7921 # higher, else we use the "missing" dummy.
7922 if ${MAKEINFO} --version \
7923 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7924 :
7925 else
7926 MAKEINFO="$MISSING makeinfo"
7927 fi
7928 ;;
7929
7930 esac
7931
7932 # FIXME: expect and dejagnu may become build tools?
7933
7934 for ac_prog in expect
7935 do
7936 # Extract the first word of "$ac_prog", so it can be a program name with args.
7937 set dummy $ac_prog; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 if test -n "$EXPECT"; then
7944 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7945 else
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7948 do
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7953 ac_cv_prog_EXPECT="$ac_prog"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7956 fi
7957 done
7958 done
7959 IFS=$as_save_IFS
7960
7961 fi
7962 fi
7963 EXPECT=$ac_cv_prog_EXPECT
7964 if test -n "$EXPECT"; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7966 $as_echo "$EXPECT" >&6; }
7967 else
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7969 $as_echo "no" >&6; }
7970 fi
7971
7972
7973 test -n "$EXPECT" && break
7974 done
7975 test -n "$EXPECT" || EXPECT="expect"
7976
7977 case " $configdirs " in
7978 *" expect "*)
7979 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7980 ;;
7981 esac
7982
7983 for ac_prog in runtest
7984 do
7985 # Extract the first word of "$ac_prog", so it can be a program name with args.
7986 set dummy $ac_prog; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$RUNTEST"; then
7993 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_RUNTEST="$ac_prog"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 RUNTEST=$ac_cv_prog_RUNTEST
8013 if test -n "$RUNTEST"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8015 $as_echo "$RUNTEST" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021
8022 test -n "$RUNTEST" && break
8023 done
8024 test -n "$RUNTEST" || RUNTEST="runtest"
8025
8026 case " $configdirs " in
8027 *" dejagnu "*)
8028 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8029 ;;
8030 esac
8031
8032
8033 # Host tools.
8034 ncn_tool_prefix=
8035 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8036 ncn_target_tool_prefix=
8037 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8038
8039
8040
8041 if test -n "$AR"; then
8042 ac_cv_prog_AR=$AR
8043 elif test -n "$ac_cv_prog_AR"; then
8044 AR=$ac_cv_prog_AR
8045 fi
8046
8047 if test -n "$ac_cv_prog_AR"; then
8048 for ncn_progname in ar; do
8049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8050 set dummy ${ncn_progname}; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR="$AR" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_AR="${ncn_progname}"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8069 fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 AR=$ac_cv_prog_AR
8077 if test -n "$AR"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085
8086 done
8087 fi
8088
8089 for ncn_progname in ar; do
8090 if test -n "$ncn_tool_prefix"; then
8091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8092 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if test "${ac_cv_prog_AR+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 if test -n "$AR"; then
8099 ac_cv_prog_AR="$AR" # Let the user override the test.
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8103 do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112 done
8113 done
8114 IFS=$as_save_IFS
8115
8116 fi
8117 fi
8118 AR=$ac_cv_prog_AR
8119 if test -n "$AR"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8121 $as_echo "$AR" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8125 fi
8126
8127
8128 fi
8129 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131 set dummy ${ncn_progname}; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_AR="${ncn_progname}"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 AR=$ac_cv_prog_AR
8158 if test -n "$AR"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160 $as_echo "$AR" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167 fi
8168 test -n "$ac_cv_prog_AR" && break
8169 done
8170
8171 if test -z "$ac_cv_prog_AR" ; then
8172 set dummy ar
8173 if test $build = $host ; then
8174 AR="$2"
8175 else
8176 AR="${ncn_tool_prefix}$2"
8177 fi
8178 fi
8179
8180
8181
8182 if test -n "$AS"; then
8183 ac_cv_prog_AS=$AS
8184 elif test -n "$ac_cv_prog_AS"; then
8185 AS=$ac_cv_prog_AS
8186 fi
8187
8188 if test -n "$ac_cv_prog_AS"; then
8189 for ncn_progname in as; do
8190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8191 set dummy ${ncn_progname}; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_prog_AS+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 if test -n "$AS"; then
8198 ac_cv_prog_AS="$AS" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_AS="${ncn_progname}"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211 done
8212 done
8213 IFS=$as_save_IFS
8214
8215 fi
8216 fi
8217 AS=$ac_cv_prog_AS
8218 if test -n "$AS"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8220 $as_echo "$AS" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227 done
8228 fi
8229
8230 for ncn_progname in as; do
8231 if test -n "$ncn_tool_prefix"; then
8232 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8233 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_prog_AS+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$AS"; then
8240 ac_cv_prog_AS="$AS" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8244 do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8252 fi
8253 done
8254 done
8255 IFS=$as_save_IFS
8256
8257 fi
8258 fi
8259 AS=$ac_cv_prog_AS
8260 if test -n "$AS"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8262 $as_echo "$AS" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269 fi
8270 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272 set dummy ${ncn_progname}; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_AS="${ncn_progname}"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 AS=$ac_cv_prog_AS
8299 if test -n "$AS"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301 $as_echo "$AS" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 test -n "$ac_cv_prog_AS" && break
8310 done
8311
8312 if test -z "$ac_cv_prog_AS" ; then
8313 set dummy as
8314 if test $build = $host ; then
8315 AS="$2"
8316 else
8317 AS="${ncn_tool_prefix}$2"
8318 fi
8319 fi
8320
8321
8322
8323 if test -n "$DLLTOOL"; then
8324 ac_cv_prog_DLLTOOL=$DLLTOOL
8325 elif test -n "$ac_cv_prog_DLLTOOL"; then
8326 DLLTOOL=$ac_cv_prog_DLLTOOL
8327 fi
8328
8329 if test -n "$ac_cv_prog_DLLTOOL"; then
8330 for ncn_progname in dlltool; do
8331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8332 set dummy ${ncn_progname}; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$DLLTOOL"; then
8339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_DLLTOOL="${ncn_progname}"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8351 fi
8352 done
8353 done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 DLLTOOL=$ac_cv_prog_DLLTOOL
8359 if test -n "$DLLTOOL"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8361 $as_echo "$DLLTOOL" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367
8368 done
8369 fi
8370
8371 for ncn_progname in dlltool; do
8372 if test -n "$ncn_tool_prefix"; then
8373 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8374 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 if test -n "$DLLTOOL"; then
8381 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394 done
8395 done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 DLLTOOL=$ac_cv_prog_DLLTOOL
8401 if test -n "$DLLTOOL"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8403 $as_echo "$DLLTOOL" >&6; }
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409
8410 fi
8411 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413 set dummy ${ncn_progname}; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8424 do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_DLLTOOL="${ncn_progname}"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8432 fi
8433 done
8434 done
8435 IFS=$as_save_IFS
8436
8437 fi
8438 fi
8439 DLLTOOL=$ac_cv_prog_DLLTOOL
8440 if test -n "$DLLTOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442 $as_echo "$DLLTOOL" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448
8449 fi
8450 test -n "$ac_cv_prog_DLLTOOL" && break
8451 done
8452
8453 if test -z "$ac_cv_prog_DLLTOOL" ; then
8454 set dummy dlltool
8455 if test $build = $host ; then
8456 DLLTOOL="$2"
8457 else
8458 DLLTOOL="${ncn_tool_prefix}$2"
8459 fi
8460 fi
8461
8462
8463
8464 if test -n "$LD"; then
8465 ac_cv_prog_LD=$LD
8466 elif test -n "$ac_cv_prog_LD"; then
8467 LD=$ac_cv_prog_LD
8468 fi
8469
8470 if test -n "$ac_cv_prog_LD"; then
8471 for ncn_progname in ld; do
8472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8473 set dummy ${ncn_progname}; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if test "${ac_cv_prog_LD+set}" = set; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 if test -n "$LD"; then
8480 ac_cv_prog_LD="$LD" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8484 do
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8489 ac_cv_prog_LD="${ncn_progname}"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8492 fi
8493 done
8494 done
8495 IFS=$as_save_IFS
8496
8497 fi
8498 fi
8499 LD=$ac_cv_prog_LD
8500 if test -n "$LD"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8502 $as_echo "$LD" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507
8508
8509 done
8510 fi
8511
8512 for ncn_progname in ld; do
8513 if test -n "$ncn_tool_prefix"; then
8514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8515 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if test "${ac_cv_prog_LD+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$LD"; then
8522 ac_cv_prog_LD="$LD" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535 done
8536 done
8537 IFS=$as_save_IFS
8538
8539 fi
8540 fi
8541 LD=$ac_cv_prog_LD
8542 if test -n "$LD"; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8544 $as_echo "$LD" >&6; }
8545 else
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8548 fi
8549
8550
8551 fi
8552 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554 set dummy ${ncn_progname}; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_LD="${ncn_progname}"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8573 fi
8574 done
8575 done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 LD=$ac_cv_prog_LD
8581 if test -n "$LD"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583 $as_echo "$LD" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589
8590 fi
8591 test -n "$ac_cv_prog_LD" && break
8592 done
8593
8594 if test -z "$ac_cv_prog_LD" ; then
8595 set dummy ld
8596 if test $build = $host ; then
8597 LD="$2"
8598 else
8599 LD="${ncn_tool_prefix}$2"
8600 fi
8601 fi
8602
8603
8604
8605 if test -n "$LIPO"; then
8606 ac_cv_prog_LIPO=$LIPO
8607 elif test -n "$ac_cv_prog_LIPO"; then
8608 LIPO=$ac_cv_prog_LIPO
8609 fi
8610
8611 if test -n "$ac_cv_prog_LIPO"; then
8612 for ncn_progname in lipo; do
8613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8614 set dummy ${ncn_progname}; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if test "${ac_cv_prog_LIPO+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test -n "$LIPO"; then
8621 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8625 do
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_prog_LIPO="${ncn_progname}"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8633 fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637
8638 fi
8639 fi
8640 LIPO=$ac_cv_prog_LIPO
8641 if test -n "$LIPO"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8643 $as_echo "$LIPO" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648
8649
8650 done
8651 fi
8652
8653 for ncn_progname in lipo; do
8654 if test -n "$ncn_tool_prefix"; then
8655 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8656 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if test "${ac_cv_prog_LIPO+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 if test -n "$LIPO"; then
8663 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8664 else
8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 for as_dir in $PATH
8667 do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8672 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676 done
8677 done
8678 IFS=$as_save_IFS
8679
8680 fi
8681 fi
8682 LIPO=$ac_cv_prog_LIPO
8683 if test -n "$LIPO"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8685 $as_echo "$LIPO" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8689 fi
8690
8691
8692 fi
8693 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695 set dummy ${ncn_progname}; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711 ac_cv_prog_LIPO="${ncn_progname}"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715 done
8716 done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 LIPO=$ac_cv_prog_LIPO
8722 if test -n "$LIPO"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724 $as_echo "$LIPO" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730
8731 fi
8732 test -n "$ac_cv_prog_LIPO" && break
8733 done
8734
8735 if test -z "$ac_cv_prog_LIPO" ; then
8736 set dummy lipo
8737 if test $build = $host ; then
8738 LIPO="$2"
8739 else
8740 LIPO="${ncn_tool_prefix}$2"
8741 fi
8742 fi
8743
8744
8745
8746 if test -n "$NM"; then
8747 ac_cv_prog_NM=$NM
8748 elif test -n "$ac_cv_prog_NM"; then
8749 NM=$ac_cv_prog_NM
8750 fi
8751
8752 if test -n "$ac_cv_prog_NM"; then
8753 for ncn_progname in nm; do
8754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8755 set dummy ${ncn_progname}; ac_word=$2
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 $as_echo_n "checking for $ac_word... " >&6; }
8758 if test "${ac_cv_prog_NM+set}" = set; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 if test -n "$NM"; then
8762 ac_cv_prog_NM="$NM" # Let the user override the test.
8763 else
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_prog_NM="${ncn_progname}"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8774 fi
8775 done
8776 done
8777 IFS=$as_save_IFS
8778
8779 fi
8780 fi
8781 NM=$ac_cv_prog_NM
8782 if test -n "$NM"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8784 $as_echo "$NM" >&6; }
8785 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 fi
8789
8790
8791 done
8792 fi
8793
8794 for ncn_progname in nm; do
8795 if test -n "$ncn_tool_prefix"; then
8796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8797 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if test "${ac_cv_prog_NM+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test -n "$NM"; then
8804 ac_cv_prog_NM="$NM" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8808 do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8816 fi
8817 done
8818 done
8819 IFS=$as_save_IFS
8820
8821 fi
8822 fi
8823 NM=$ac_cv_prog_NM
8824 if test -n "$NM"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8826 $as_echo "$NM" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8830 fi
8831
8832
8833 fi
8834 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836 set dummy ${ncn_progname}; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8847 do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_prog_NM="${ncn_progname}"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856 done
8857 done
8858 IFS=$as_save_IFS
8859
8860 fi
8861 fi
8862 NM=$ac_cv_prog_NM
8863 if test -n "$NM"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865 $as_echo "$NM" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8869 fi
8870
8871
8872 fi
8873 test -n "$ac_cv_prog_NM" && break
8874 done
8875
8876 if test -z "$ac_cv_prog_NM" ; then
8877 set dummy nm
8878 if test $build = $host ; then
8879 NM="$2"
8880 else
8881 NM="${ncn_tool_prefix}$2"
8882 fi
8883 fi
8884
8885
8886
8887 if test -n "$RANLIB"; then
8888 ac_cv_prog_RANLIB=$RANLIB
8889 elif test -n "$ac_cv_prog_RANLIB"; then
8890 RANLIB=$ac_cv_prog_RANLIB
8891 fi
8892
8893 if test -n "$ac_cv_prog_RANLIB"; then
8894 for ncn_progname in ranlib; do
8895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8896 set dummy ${ncn_progname}; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 if test -n "$RANLIB"; then
8903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912 ac_cv_prog_RANLIB="${ncn_progname}"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8915 fi
8916 done
8917 done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 RANLIB=$ac_cv_prog_RANLIB
8923 if test -n "$RANLIB"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8925 $as_echo "$RANLIB" >&6; }
8926 else
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931
8932 done
8933 fi
8934
8935 for ncn_progname in ranlib; do
8936 if test -n "$ncn_tool_prefix"; then
8937 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8938 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 if test -n "$RANLIB"; then
8945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8957 fi
8958 done
8959 done
8960 IFS=$as_save_IFS
8961
8962 fi
8963 fi
8964 RANLIB=$ac_cv_prog_RANLIB
8965 if test -n "$RANLIB"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8967 $as_echo "$RANLIB" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972
8973
8974 fi
8975 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977 set dummy ${ncn_progname}; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8988 do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_RANLIB="${ncn_progname}"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997 done
8998 done
8999 IFS=$as_save_IFS
9000
9001 fi
9002 fi
9003 RANLIB=$ac_cv_prog_RANLIB
9004 if test -n "$RANLIB"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006 $as_echo "$RANLIB" >&6; }
9007 else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9010 fi
9011
9012
9013 fi
9014 test -n "$ac_cv_prog_RANLIB" && break
9015 done
9016
9017 if test -z "$ac_cv_prog_RANLIB" ; then
9018 RANLIB="true"
9019 fi
9020
9021
9022
9023 if test -n "$STRIP"; then
9024 ac_cv_prog_STRIP=$STRIP
9025 elif test -n "$ac_cv_prog_STRIP"; then
9026 STRIP=$ac_cv_prog_STRIP
9027 fi
9028
9029 if test -n "$ac_cv_prog_STRIP"; then
9030 for ncn_progname in strip; do
9031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9032 set dummy ${ncn_progname}; ac_word=$2
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034 $as_echo_n "checking for $ac_word... " >&6; }
9035 if test "${ac_cv_prog_STRIP+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 if test -n "$STRIP"; then
9039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9040 else
9041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044 IFS=$as_save_IFS
9045 test -z "$as_dir" && as_dir=.
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9048 ac_cv_prog_STRIP="${ncn_progname}"
9049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050 break 2
9051 fi
9052 done
9053 done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 STRIP=$ac_cv_prog_STRIP
9059 if test -n "$STRIP"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9061 $as_echo "$STRIP" >&6; }
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066
9067
9068 done
9069 fi
9070
9071 for ncn_progname in strip; do
9072 if test -n "$ncn_tool_prefix"; then
9073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076 $as_echo_n "checking for $ac_word... " >&6; }
9077 if test "${ac_cv_prog_STRIP+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 if test -n "$STRIP"; then
9081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9082 else
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084 for as_dir in $PATH
9085 do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9090 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9092 break 2
9093 fi
9094 done
9095 done
9096 IFS=$as_save_IFS
9097
9098 fi
9099 fi
9100 STRIP=$ac_cv_prog_STRIP
9101 if test -n "$STRIP"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9103 $as_echo "$STRIP" >&6; }
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9107 fi
9108
9109
9110 fi
9111 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113 set dummy ${ncn_progname}; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121 else
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9124 do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_prog_STRIP="${ncn_progname}"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9132 fi
9133 done
9134 done
9135 IFS=$as_save_IFS
9136
9137 fi
9138 fi
9139 STRIP=$ac_cv_prog_STRIP
9140 if test -n "$STRIP"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142 $as_echo "$STRIP" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9146 fi
9147
9148
9149 fi
9150 test -n "$ac_cv_prog_STRIP" && break
9151 done
9152
9153 if test -z "$ac_cv_prog_STRIP" ; then
9154 STRIP="true"
9155 fi
9156
9157
9158
9159 if test -n "$WINDRES"; then
9160 ac_cv_prog_WINDRES=$WINDRES
9161 elif test -n "$ac_cv_prog_WINDRES"; then
9162 WINDRES=$ac_cv_prog_WINDRES
9163 fi
9164
9165 if test -n "$ac_cv_prog_WINDRES"; then
9166 for ncn_progname in windres; do
9167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9168 set dummy ${ncn_progname}; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 if test -n "$WINDRES"; then
9175 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9176 else
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9179 do
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_prog_WINDRES="${ncn_progname}"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9187 fi
9188 done
9189 done
9190 IFS=$as_save_IFS
9191
9192 fi
9193 fi
9194 WINDRES=$ac_cv_prog_WINDRES
9195 if test -n "$WINDRES"; then
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9197 $as_echo "$WINDRES" >&6; }
9198 else
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202
9203
9204 done
9205 fi
9206
9207 for ncn_progname in windres; do
9208 if test -n "$ncn_tool_prefix"; then
9209 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9210 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 if test -n "$WINDRES"; then
9217 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9218 else
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9226 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230 done
9231 done
9232 IFS=$as_save_IFS
9233
9234 fi
9235 fi
9236 WINDRES=$ac_cv_prog_WINDRES
9237 if test -n "$WINDRES"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9239 $as_echo "$WINDRES" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9243 fi
9244
9245
9246 fi
9247 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249 set dummy ${ncn_progname}; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257 else
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 for as_dir in $PATH
9260 do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9265 ac_cv_prog_WINDRES="${ncn_progname}"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269 done
9270 done
9271 IFS=$as_save_IFS
9272
9273 fi
9274 fi
9275 WINDRES=$ac_cv_prog_WINDRES
9276 if test -n "$WINDRES"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278 $as_echo "$WINDRES" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283
9284
9285 fi
9286 test -n "$ac_cv_prog_WINDRES" && break
9287 done
9288
9289 if test -z "$ac_cv_prog_WINDRES" ; then
9290 set dummy windres
9291 if test $build = $host ; then
9292 WINDRES="$2"
9293 else
9294 WINDRES="${ncn_tool_prefix}$2"
9295 fi
9296 fi
9297
9298
9299
9300 if test -n "$WINDMC"; then
9301 ac_cv_prog_WINDMC=$WINDMC
9302 elif test -n "$ac_cv_prog_WINDMC"; then
9303 WINDMC=$ac_cv_prog_WINDMC
9304 fi
9305
9306 if test -n "$ac_cv_prog_WINDMC"; then
9307 for ncn_progname in windmc; do
9308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9309 set dummy ${ncn_progname}; ac_word=$2
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 $as_echo_n "checking for $ac_word... " >&6; }
9312 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test -n "$WINDMC"; then
9316 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9320 do
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325 ac_cv_prog_WINDMC="${ncn_progname}"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9328 fi
9329 done
9330 done
9331 IFS=$as_save_IFS
9332
9333 fi
9334 fi
9335 WINDMC=$ac_cv_prog_WINDMC
9336 if test -n "$WINDMC"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9338 $as_echo "$WINDMC" >&6; }
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9342 fi
9343
9344
9345 done
9346 fi
9347
9348 for ncn_progname in windmc; do
9349 if test -n "$ncn_tool_prefix"; then
9350 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9351 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353 $as_echo_n "checking for $ac_word... " >&6; }
9354 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 if test -n "$WINDMC"; then
9358 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9359 else
9360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361 for as_dir in $PATH
9362 do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9367 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371 done
9372 done
9373 IFS=$as_save_IFS
9374
9375 fi
9376 fi
9377 WINDMC=$ac_cv_prog_WINDMC
9378 if test -n "$WINDMC"; then
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9380 $as_echo "$WINDMC" >&6; }
9381 else
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 $as_echo "no" >&6; }
9384 fi
9385
9386
9387 fi
9388 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390 set dummy ${ncn_progname}; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398 else
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9401 do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_prog_WINDMC="${ncn_progname}"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9409 fi
9410 done
9411 done
9412 IFS=$as_save_IFS
9413
9414 fi
9415 fi
9416 WINDMC=$ac_cv_prog_WINDMC
9417 if test -n "$WINDMC"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419 $as_echo "$WINDMC" >&6; }
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422 $as_echo "no" >&6; }
9423 fi
9424
9425
9426 fi
9427 test -n "$ac_cv_prog_WINDMC" && break
9428 done
9429
9430 if test -z "$ac_cv_prog_WINDMC" ; then
9431 set dummy windmc
9432 if test $build = $host ; then
9433 WINDMC="$2"
9434 else
9435 WINDMC="${ncn_tool_prefix}$2"
9436 fi
9437 fi
9438
9439
9440
9441 if test -n "$OBJCOPY"; then
9442 ac_cv_prog_OBJCOPY=$OBJCOPY
9443 elif test -n "$ac_cv_prog_OBJCOPY"; then
9444 OBJCOPY=$ac_cv_prog_OBJCOPY
9445 fi
9446
9447 if test -n "$ac_cv_prog_OBJCOPY"; then
9448 for ncn_progname in objcopy; do
9449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9450 set dummy ${ncn_progname}; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 if test -n "$OBJCOPY"; then
9457 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462 IFS=$as_save_IFS
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_prog_OBJCOPY="${ncn_progname}"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468 break 2
9469 fi
9470 done
9471 done
9472 IFS=$as_save_IFS
9473
9474 fi
9475 fi
9476 OBJCOPY=$ac_cv_prog_OBJCOPY
9477 if test -n "$OBJCOPY"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9479 $as_echo "$OBJCOPY" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486 done
9487 fi
9488
9489 for ncn_progname in objcopy; do
9490 if test -n "$ncn_tool_prefix"; then
9491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9492 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 $as_echo_n "checking for $ac_word... " >&6; }
9495 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test -n "$OBJCOPY"; then
9499 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9500 else
9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9508 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 break 2
9511 fi
9512 done
9513 done
9514 IFS=$as_save_IFS
9515
9516 fi
9517 fi
9518 OBJCOPY=$ac_cv_prog_OBJCOPY
9519 if test -n "$OBJCOPY"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9521 $as_echo "$OBJCOPY" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528 fi
9529 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531 set dummy ${ncn_progname}; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539 else
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9542 do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_prog_OBJCOPY="${ncn_progname}"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi
9556 fi
9557 OBJCOPY=$ac_cv_prog_OBJCOPY
9558 if test -n "$OBJCOPY"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560 $as_echo "$OBJCOPY" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9564 fi
9565
9566
9567 fi
9568 test -n "$ac_cv_prog_OBJCOPY" && break
9569 done
9570
9571 if test -z "$ac_cv_prog_OBJCOPY" ; then
9572 set dummy objcopy
9573 if test $build = $host ; then
9574 OBJCOPY="$2"
9575 else
9576 OBJCOPY="${ncn_tool_prefix}$2"
9577 fi
9578 fi
9579
9580
9581
9582 if test -n "$OBJDUMP"; then
9583 ac_cv_prog_OBJDUMP=$OBJDUMP
9584 elif test -n "$ac_cv_prog_OBJDUMP"; then
9585 OBJDUMP=$ac_cv_prog_OBJDUMP
9586 fi
9587
9588 if test -n "$ac_cv_prog_OBJDUMP"; then
9589 for ncn_progname in objdump; do
9590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9591 set dummy ${ncn_progname}; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 if test -n "$OBJDUMP"; then
9598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9599 else
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in $PATH
9602 do
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9607 ac_cv_prog_OBJDUMP="${ncn_progname}"
9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 break 2
9610 fi
9611 done
9612 done
9613 IFS=$as_save_IFS
9614
9615 fi
9616 fi
9617 OBJDUMP=$ac_cv_prog_OBJDUMP
9618 if test -n "$OBJDUMP"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9620 $as_echo "$OBJDUMP" >&6; }
9621 else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9624 fi
9625
9626
9627 done
9628 fi
9629
9630 for ncn_progname in objdump; do
9631 if test -n "$ncn_tool_prefix"; then
9632 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9633 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 if test -n "$OBJDUMP"; then
9640 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9641 else
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9644 do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 break 2
9652 fi
9653 done
9654 done
9655 IFS=$as_save_IFS
9656
9657 fi
9658 fi
9659 OBJDUMP=$ac_cv_prog_OBJDUMP
9660 if test -n "$OBJDUMP"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9662 $as_echo "$OBJDUMP" >&6; }
9663 else
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9666 fi
9667
9668
9669 fi
9670 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672 set dummy ${ncn_progname}; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_OBJDUMP="${ncn_progname}"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692 done
9693 done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 OBJDUMP=$ac_cv_prog_OBJDUMP
9699 if test -n "$OBJDUMP"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701 $as_echo "$OBJDUMP" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708 fi
9709 test -n "$ac_cv_prog_OBJDUMP" && break
9710 done
9711
9712 if test -z "$ac_cv_prog_OBJDUMP" ; then
9713 set dummy objdump
9714 if test $build = $host ; then
9715 OBJDUMP="$2"
9716 else
9717 OBJDUMP="${ncn_tool_prefix}$2"
9718 fi
9719 fi
9720
9721
9722
9723 if test -n "$READELF"; then
9724 ac_cv_prog_READELF=$READELF
9725 elif test -n "$ac_cv_prog_READELF"; then
9726 READELF=$ac_cv_prog_READELF
9727 fi
9728
9729 if test -n "$ac_cv_prog_READELF"; then
9730 for ncn_progname in readelf; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732 set dummy ${ncn_progname}; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_READELF+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9737 else
9738 if test -n "$READELF"; then
9739 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_READELF="${ncn_progname}"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752 done
9753 done
9754 IFS=$as_save_IFS
9755
9756 fi
9757 fi
9758 READELF=$ac_cv_prog_READELF
9759 if test -n "$READELF"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9761 $as_echo "$READELF" >&6; }
9762 else
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9765 fi
9766
9767
9768 done
9769 fi
9770
9771 for ncn_progname in readelf; do
9772 if test -n "$ncn_tool_prefix"; then
9773 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9774 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if test "${ac_cv_prog_READELF+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 if test -n "$READELF"; then
9781 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9782 else
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in $PATH
9785 do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794 done
9795 done
9796 IFS=$as_save_IFS
9797
9798 fi
9799 fi
9800 READELF=$ac_cv_prog_READELF
9801 if test -n "$READELF"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9803 $as_echo "$READELF" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9807 fi
9808
9809
9810 fi
9811 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813 set dummy ${ncn_progname}; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833 done
9834 done
9835 IFS=$as_save_IFS
9836
9837 fi
9838 fi
9839 READELF=$ac_cv_prog_READELF
9840 if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842 $as_echo "$READELF" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9846 fi
9847
9848
9849 fi
9850 test -n "$ac_cv_prog_READELF" && break
9851 done
9852
9853 if test -z "$ac_cv_prog_READELF" ; then
9854 set dummy readelf
9855 if test $build = $host ; then
9856 READELF="$2"
9857 else
9858 READELF="${ncn_tool_prefix}$2"
9859 fi
9860 fi
9861
9862
9863
9864
9865
9866
9867 # Target tools.
9868
9869 # Check whether --with-build-time-tools was given.
9870 if test "${with_build_time_tools+set}" = set; then :
9871 withval=$with_build_time_tools; case x"$withval" in
9872 x/*) ;;
9873 *)
9874 with_build_time_tools=
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9876 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9877 ;;
9878 esac
9879 else
9880 with_build_time_tools=
9881 fi
9882
9883
9884
9885
9886 if test -n "$CC_FOR_TARGET"; then
9887 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9888 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9889 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9890 fi
9891
9892 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9893 for ncn_progname in cc gcc; do
9894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9895 set dummy ${ncn_progname}; ac_word=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 if test -n "$CC_FOR_TARGET"; then
9902 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9906 do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9914 fi
9915 done
9916 done
9917 IFS=$as_save_IFS
9918
9919 fi
9920 fi
9921 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9922 if test -n "$CC_FOR_TARGET"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9924 $as_echo "$CC_FOR_TARGET" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 fi
9929
9930
9931 done
9932 fi
9933
9934 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9935 for ncn_progname in cc gcc; do
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9937 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9938 if test -x $with_build_time_tools/${ncn_progname}; then
9939 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; }
9942 break
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947 done
9948 fi
9949
9950 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9951 for ncn_progname in cc gcc; do
9952 if test -n "$ncn_target_tool_prefix"; then
9953 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9954 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 if test -n "$CC_FOR_TARGET"; then
9961 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9962 else
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9965 do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974 done
9975 done
9976 IFS=$as_save_IFS
9977
9978 fi
9979 fi
9980 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9981 if test -n "$CC_FOR_TARGET"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9983 $as_echo "$CC_FOR_TARGET" >&6; }
9984 else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9987 fi
9988
9989
9990 fi
9991 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993 set dummy ${ncn_progname}; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 if test -n "$CC_FOR_TARGET"; then
10000 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 fi
10018 fi
10019 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10020 if test -n "$CC_FOR_TARGET"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10022 $as_echo "$CC_FOR_TARGET" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10026 fi
10027
10028
10029 fi
10030 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10031 done
10032 fi
10033
10034 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10035 set dummy cc gcc
10036 if test $build = $target ; then
10037 CC_FOR_TARGET="$2"
10038 else
10039 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10040 fi
10041 else
10042 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10043 fi
10044
10045
10046
10047 if test -n "$CXX_FOR_TARGET"; then
10048 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10049 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10050 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10051 fi
10052
10053 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10054 for ncn_progname in c++ g++ cxx gxx; do
10055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10056 set dummy ${ncn_progname}; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 if test -n "$CXX_FOR_TARGET"; then
10063 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10067 do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076 done
10077 done
10078 IFS=$as_save_IFS
10079
10080 fi
10081 fi
10082 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10083 if test -n "$CXX_FOR_TARGET"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10085 $as_echo "$CXX_FOR_TARGET" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091
10092 done
10093 fi
10094
10095 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10096 for ncn_progname in c++ g++ cxx gxx; do
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10098 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10099 if test -x $with_build_time_tools/${ncn_progname}; then
10100 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10102 $as_echo "yes" >&6; }
10103 break
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10107 fi
10108 done
10109 fi
10110
10111 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10112 for ncn_progname in c++ g++ cxx gxx; do
10113 if test -n "$ncn_target_tool_prefix"; then
10114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10115 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 if test -n "$CXX_FOR_TARGET"; then
10122 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10123 else
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10126 do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10134 fi
10135 done
10136 done
10137 IFS=$as_save_IFS
10138
10139 fi
10140 fi
10141 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10142 if test -n "$CXX_FOR_TARGET"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10144 $as_echo "$CXX_FOR_TARGET" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10148 fi
10149
10150
10151 fi
10152 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10154 set dummy ${ncn_progname}; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$CXX_FOR_TARGET"; then
10161 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10165 do
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10173 fi
10174 done
10175 done
10176 IFS=$as_save_IFS
10177
10178 fi
10179 fi
10180 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10181 if test -n "$CXX_FOR_TARGET"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10183 $as_echo "$CXX_FOR_TARGET" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188
10189
10190 fi
10191 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10192 done
10193 fi
10194
10195 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10196 set dummy c++ g++ cxx gxx
10197 if test $build = $target ; then
10198 CXX_FOR_TARGET="$2"
10199 else
10200 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10201 fi
10202 else
10203 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10204 fi
10205
10206
10207
10208 if test -n "$GCC_FOR_TARGET"; then
10209 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10210 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10211 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10212 fi
10213
10214 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10215 for ncn_progname in gcc; do
10216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10217 set dummy ${ncn_progname}; ac_word=$2
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219 $as_echo_n "checking for $ac_word... " >&6; }
10220 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 if test -n "$GCC_FOR_TARGET"; then
10224 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10225 else
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10236 fi
10237 done
10238 done
10239 IFS=$as_save_IFS
10240
10241 fi
10242 fi
10243 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10244 if test -n "$GCC_FOR_TARGET"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10246 $as_echo "$GCC_FOR_TARGET" >&6; }
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10250 fi
10251
10252
10253 done
10254 fi
10255
10256 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10257 for ncn_progname in gcc; do
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10259 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10260 if test -x $with_build_time_tools/${ncn_progname}; then
10261 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10263 $as_echo "yes" >&6; }
10264 break
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10268 fi
10269 done
10270 fi
10271
10272 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10273 for ncn_progname in gcc; do
10274 if test -n "$ncn_target_tool_prefix"; then
10275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10276 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10281 else
10282 if test -n "$GCC_FOR_TARGET"; then
10283 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10284 else
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10287 do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296 done
10297 done
10298 IFS=$as_save_IFS
10299
10300 fi
10301 fi
10302 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10303 if test -n "$GCC_FOR_TARGET"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10305 $as_echo "$GCC_FOR_TARGET" >&6; }
10306 else
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10309 fi
10310
10311
10312 fi
10313 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10315 set dummy ${ncn_progname}; ac_word=$2
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317 $as_echo_n "checking for $ac_word... " >&6; }
10318 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 if test -n "$GCC_FOR_TARGET"; then
10322 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10323 else
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335 done
10336 done
10337 IFS=$as_save_IFS
10338
10339 fi
10340 fi
10341 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10342 if test -n "$GCC_FOR_TARGET"; then
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10344 $as_echo "$GCC_FOR_TARGET" >&6; }
10345 else
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347 $as_echo "no" >&6; }
10348 fi
10349
10350
10351 fi
10352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10353 done
10354 fi
10355
10356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10358 else
10359 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10360 fi
10361
10362
10363
10364 if test -n "$GCJ_FOR_TARGET"; then
10365 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10366 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10367 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10368 fi
10369
10370 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10371 for ncn_progname in gcj; do
10372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10373 set dummy ${ncn_progname}; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 if test -n "$GCJ_FOR_TARGET"; then
10380 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10381 else
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10384 do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10392 fi
10393 done
10394 done
10395 IFS=$as_save_IFS
10396
10397 fi
10398 fi
10399 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10400 if test -n "$GCJ_FOR_TARGET"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10402 $as_echo "$GCJ_FOR_TARGET" >&6; }
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10406 fi
10407
10408
10409 done
10410 fi
10411
10412 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10413 for ncn_progname in gcj; do
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10416 if test -x $with_build_time_tools/${ncn_progname}; then
10417 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10419 $as_echo "yes" >&6; }
10420 break
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423 $as_echo "no" >&6; }
10424 fi
10425 done
10426 fi
10427
10428 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10429 for ncn_progname in gcj; do
10430 if test -n "$ncn_target_tool_prefix"; then
10431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 if test -n "$GCJ_FOR_TARGET"; then
10439 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10440 else
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10443 do
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10448 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 break 2
10451 fi
10452 done
10453 done
10454 IFS=$as_save_IFS
10455
10456 fi
10457 fi
10458 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10459 if test -n "$GCJ_FOR_TARGET"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10461 $as_echo "$GCJ_FOR_TARGET" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10465 fi
10466
10467
10468 fi
10469 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10471 set dummy ${ncn_progname}; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 if test -n "$GCJ_FOR_TARGET"; then
10478 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491 done
10492 done
10493 IFS=$as_save_IFS
10494
10495 fi
10496 fi
10497 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10498 if test -n "$GCJ_FOR_TARGET"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10500 $as_echo "$GCJ_FOR_TARGET" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 fi
10505
10506
10507 fi
10508 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10509 done
10510 fi
10511
10512 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10513 set dummy gcj
10514 if test $build = $target ; then
10515 GCJ_FOR_TARGET="$2"
10516 else
10517 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10518 fi
10519 else
10520 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10521 fi
10522
10523
10524
10525 if test -n "$GFORTRAN_FOR_TARGET"; then
10526 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10527 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10528 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10529 fi
10530
10531 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10532 for ncn_progname in gfortran; do
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534 set dummy ${ncn_progname}; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$GFORTRAN_FOR_TARGET"; then
10541 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554 done
10555 done
10556 IFS=$as_save_IFS
10557
10558 fi
10559 fi
10560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10561 if test -n "$GFORTRAN_FOR_TARGET"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10563 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568
10569
10570 done
10571 fi
10572
10573 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10574 for ncn_progname in gfortran; do
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10576 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10577 if test -x $with_build_time_tools/${ncn_progname}; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580 $as_echo "yes" >&6; }
10581 break
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 done
10587 fi
10588
10589 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10590 for ncn_progname in gfortran; do
10591 if test -n "$ncn_target_tool_prefix"; then
10592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10593 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 if test -n "$GFORTRAN_FOR_TARGET"; then
10600 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10601 else
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10604 do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10609 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613 done
10614 done
10615 IFS=$as_save_IFS
10616
10617 fi
10618 fi
10619 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10620 if test -n "$GFORTRAN_FOR_TARGET"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10622 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 fi
10627
10628
10629 fi
10630 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10632 set dummy ${ncn_progname}; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if test -n "$GFORTRAN_FOR_TARGET"; then
10639 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10643 do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10651 fi
10652 done
10653 done
10654 IFS=$as_save_IFS
10655
10656 fi
10657 fi
10658 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10659 if test -n "$GFORTRAN_FOR_TARGET"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10661 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 fi
10666
10667
10668 fi
10669 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10670 done
10671 fi
10672
10673 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10674 set dummy gfortran
10675 if test $build = $target ; then
10676 GFORTRAN_FOR_TARGET="$2"
10677 else
10678 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10679 fi
10680 else
10681 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10682 fi
10683
10684
10685
10686 if test -n "$GOC_FOR_TARGET"; then
10687 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10688 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10689 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10690 fi
10691
10692 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10693 for ncn_progname in gccgo; do
10694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10695 set dummy ${ncn_progname}; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 if test -n "$GOC_FOR_TARGET"; then
10702 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10703 else
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10706 do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715 done
10716 done
10717 IFS=$as_save_IFS
10718
10719 fi
10720 fi
10721 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10722 if test -n "$GOC_FOR_TARGET"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10724 $as_echo "$GOC_FOR_TARGET" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 fi
10729
10730
10731 done
10732 fi
10733
10734 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10735 for ncn_progname in gccgo; do
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10737 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10738 if test -x $with_build_time_tools/${ncn_progname}; then
10739 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10741 $as_echo "yes" >&6; }
10742 break
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10746 fi
10747 done
10748 fi
10749
10750 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10751 for ncn_progname in gccgo; do
10752 if test -n "$ncn_target_tool_prefix"; then
10753 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10754 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 if test -n "$GOC_FOR_TARGET"; then
10761 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10762 else
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772 break 2
10773 fi
10774 done
10775 done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10781 if test -n "$GOC_FOR_TARGET"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10783 $as_echo "$GOC_FOR_TARGET" >&6; }
10784 else
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790 fi
10791 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10793 set dummy ${ncn_progname}; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test -n "$GOC_FOR_TARGET"; then
10800 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10804 do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813 done
10814 done
10815 IFS=$as_save_IFS
10816
10817 fi
10818 fi
10819 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10820 if test -n "$GOC_FOR_TARGET"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10822 $as_echo "$GOC_FOR_TARGET" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827
10828
10829 fi
10830 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10831 done
10832 fi
10833
10834 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10835 set dummy gccgo
10836 if test $build = $target ; then
10837 GOC_FOR_TARGET="$2"
10838 else
10839 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10840 fi
10841 else
10842 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10843 fi
10844
10845
10846
10847 cat > conftest.c << \EOF
10848 #ifdef __GNUC__
10849 gcc_yay;
10850 #endif
10851 EOF
10852 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10853 have_gcc_for_target=yes
10854 else
10855 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10856 have_gcc_for_target=no
10857 fi
10858 rm conftest.c
10859
10860
10861
10862
10863 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10864 if test -n "$with_build_time_tools"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10866 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10867 if test -x $with_build_time_tools/ar; then
10868 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10869 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10871 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876 elif test $build != $host && test $have_gcc_for_target = yes; then
10877 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10878 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10879 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10880 fi
10881 fi
10882 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10883 # Extract the first word of "ar", so it can be a program name with args.
10884 set dummy ar; ac_word=$2
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 $as_echo_n "checking for $ac_word... " >&6; }
10887 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 case $AR_FOR_TARGET in
10891 [\\/]* | ?:[\\/]*)
10892 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10893 ;;
10894 *)
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $gcc_cv_tool_dirs
10897 do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904 break 2
10905 fi
10906 done
10907 done
10908 IFS=$as_save_IFS
10909
10910 ;;
10911 esac
10912 fi
10913 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10914 if test -n "$AR_FOR_TARGET"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10916 $as_echo "$AR_FOR_TARGET" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10920 fi
10921
10922
10923 fi
10924 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10925
10926
10927 if test -n "$AR_FOR_TARGET"; then
10928 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10929 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10930 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10931 fi
10932
10933 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10934 for ncn_progname in ar; do
10935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10936 set dummy ${ncn_progname}; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 if test -n "$AR_FOR_TARGET"; then
10943 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10944 else
10945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946 for as_dir in $PATH
10947 do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10952 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956 done
10957 done
10958 IFS=$as_save_IFS
10959
10960 fi
10961 fi
10962 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10963 if test -n "$AR_FOR_TARGET"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10965 $as_echo "$AR_FOR_TARGET" >&6; }
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 fi
10970
10971
10972 done
10973 fi
10974
10975 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10976 for ncn_progname in ar; do
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10979 if test -x $with_build_time_tools/${ncn_progname}; then
10980 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982 $as_echo "yes" >&6; }
10983 break
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 fi
10988 done
10989 fi
10990
10991 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10992 for ncn_progname in ar; do
10993 if test -n "$ncn_target_tool_prefix"; then
10994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10997 $as_echo_n "checking for $ac_word... " >&6; }
10998 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 if test -n "$AR_FOR_TARGET"; then
11002 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11003 else
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11011 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11014 fi
11015 done
11016 done
11017 IFS=$as_save_IFS
11018
11019 fi
11020 fi
11021 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11022 if test -n "$AR_FOR_TARGET"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11024 $as_echo "$AR_FOR_TARGET" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11028 fi
11029
11030
11031 fi
11032 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$AR_FOR_TARGET"; then
11041 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11061 if test -n "$AR_FOR_TARGET"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11063 $as_echo "$AR_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 fi
11071 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11072 done
11073 fi
11074
11075 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11076 set dummy ar
11077 if test $build = $target ; then
11078 AR_FOR_TARGET="$2"
11079 else
11080 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11081 fi
11082 else
11083 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11084 fi
11085
11086 else
11087 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11088 fi
11089
11090
11091
11092
11093 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11094 if test -n "$with_build_time_tools"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11096 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11097 if test -x $with_build_time_tools/as; then
11098 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11099 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11101 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11105 fi
11106 elif test $build != $host && test $have_gcc_for_target = yes; then
11107 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11108 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11109 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11110 fi
11111 fi
11112 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11113 # Extract the first word of "as", so it can be a program name with args.
11114 set dummy as; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119 else
11120 case $AS_FOR_TARGET in
11121 [\\/]* | ?:[\\/]*)
11122 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11123 ;;
11124 *)
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $gcc_cv_tool_dirs
11127 do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136 done
11137 done
11138 IFS=$as_save_IFS
11139
11140 ;;
11141 esac
11142 fi
11143 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11144 if test -n "$AS_FOR_TARGET"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11146 $as_echo "$AS_FOR_TARGET" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151
11152
11153 fi
11154 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11155
11156
11157 if test -n "$AS_FOR_TARGET"; then
11158 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11159 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11160 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11161 fi
11162
11163 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11164 for ncn_progname in as; do
11165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11166 set dummy ${ncn_progname}; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 if test -n "$AS_FOR_TARGET"; then
11173 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11174 else
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 fi
11191 fi
11192 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11193 if test -n "$AS_FOR_TARGET"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11195 $as_echo "$AS_FOR_TARGET" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202 done
11203 fi
11204
11205 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11206 for ncn_progname in as; do
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11208 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11209 if test -x $with_build_time_tools/${ncn_progname}; then
11210 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11213 break
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11216 $as_echo "no" >&6; }
11217 fi
11218 done
11219 fi
11220
11221 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11222 for ncn_progname in as; do
11223 if test -n "$ncn_target_tool_prefix"; then
11224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11227 $as_echo_n "checking for $ac_word... " >&6; }
11228 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 if test -n "$AS_FOR_TARGET"; then
11232 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11233 else
11234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235 for as_dir in $PATH
11236 do
11237 IFS=$as_save_IFS
11238 test -z "$as_dir" && as_dir=.
11239 for ac_exec_ext in '' $ac_executable_extensions; do
11240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11241 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11243 break 2
11244 fi
11245 done
11246 done
11247 IFS=$as_save_IFS
11248
11249 fi
11250 fi
11251 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11252 if test -n "$AS_FOR_TARGET"; then
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11254 $as_echo "$AS_FOR_TARGET" >&6; }
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259
11260
11261 fi
11262 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11264 set dummy ${ncn_progname}; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test -n "$AS_FOR_TARGET"; then
11271 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11272 else
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276 IFS=$as_save_IFS
11277 test -z "$as_dir" && as_dir=.
11278 for ac_exec_ext in '' $ac_executable_extensions; do
11279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 break 2
11283 fi
11284 done
11285 done
11286 IFS=$as_save_IFS
11287
11288 fi
11289 fi
11290 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11291 if test -n "$AS_FOR_TARGET"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11293 $as_echo "$AS_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11297 fi
11298
11299
11300 fi
11301 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11302 done
11303 fi
11304
11305 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11306 set dummy as
11307 if test $build = $target ; then
11308 AS_FOR_TARGET="$2"
11309 else
11310 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11311 fi
11312 else
11313 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11314 fi
11315
11316 else
11317 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11318 fi
11319
11320
11321
11322
11323 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11324 if test -n "$with_build_time_tools"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11326 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11327 if test -x $with_build_time_tools/dlltool; then
11328 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11329 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11331 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 fi
11336 elif test $build != $host && test $have_gcc_for_target = yes; then
11337 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11338 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11339 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11340 fi
11341 fi
11342 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11343 # Extract the first word of "dlltool", so it can be a program name with args.
11344 set dummy dlltool; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346 $as_echo_n "checking for $ac_word... " >&6; }
11347 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 case $DLLTOOL_FOR_TARGET in
11351 [\\/]* | ?:[\\/]*)
11352 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11353 ;;
11354 *)
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $gcc_cv_tool_dirs
11357 do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11362 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 break 2
11365 fi
11366 done
11367 done
11368 IFS=$as_save_IFS
11369
11370 ;;
11371 esac
11372 fi
11373 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11374 if test -n "$DLLTOOL_FOR_TARGET"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11376 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382
11383 fi
11384 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11385
11386
11387 if test -n "$DLLTOOL_FOR_TARGET"; then
11388 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11389 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11390 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11391 fi
11392
11393 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11394 for ncn_progname in dlltool; do
11395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 if test -n "$DLLTOOL_FOR_TARGET"; then
11403 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11404 else
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11407 do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 fi
11421 fi
11422 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11423 if test -n "$DLLTOOL_FOR_TARGET"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11425 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430
11431
11432 done
11433 fi
11434
11435 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11436 for ncn_progname in dlltool; do
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11438 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11439 if test -x $with_build_time_tools/${ncn_progname}; then
11440 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442 $as_echo "yes" >&6; }
11443 break
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11447 fi
11448 done
11449 fi
11450
11451 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11452 for ncn_progname in dlltool; do
11453 if test -n "$ncn_target_tool_prefix"; then
11454 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11455 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$DLLTOOL_FOR_TARGET"; then
11462 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11466 do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11474 fi
11475 done
11476 done
11477 IFS=$as_save_IFS
11478
11479 fi
11480 fi
11481 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11482 if test -n "$DLLTOOL_FOR_TARGET"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11484 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489
11490
11491 fi
11492 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11494 set dummy ${ncn_progname}; ac_word=$2
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11496 $as_echo_n "checking for $ac_word... " >&6; }
11497 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 if test -n "$DLLTOOL_FOR_TARGET"; then
11501 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11502 else
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519 fi
11520 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11521 if test -n "$DLLTOOL_FOR_TARGET"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11523 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11527 fi
11528
11529
11530 fi
11531 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11532 done
11533 fi
11534
11535 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11536 set dummy dlltool
11537 if test $build = $target ; then
11538 DLLTOOL_FOR_TARGET="$2"
11539 else
11540 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11541 fi
11542 else
11543 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11544 fi
11545
11546 else
11547 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11548 fi
11549
11550
11551
11552
11553 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11554 if test -n "$with_build_time_tools"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11556 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11557 if test -x $with_build_time_tools/ld; then
11558 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11559 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11561 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11565 fi
11566 elif test $build != $host && test $have_gcc_for_target = yes; then
11567 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11568 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11569 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11570 fi
11571 fi
11572 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11573 # Extract the first word of "ld", so it can be a program name with args.
11574 set dummy ld; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 $as_echo_n "checking for $ac_word... " >&6; }
11577 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 case $LD_FOR_TARGET in
11581 [\\/]* | ?:[\\/]*)
11582 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11583 ;;
11584 *)
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $gcc_cv_tool_dirs
11587 do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 break 2
11595 fi
11596 done
11597 done
11598 IFS=$as_save_IFS
11599
11600 ;;
11601 esac
11602 fi
11603 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11604 if test -n "$LD_FOR_TARGET"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11606 $as_echo "$LD_FOR_TARGET" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611
11612
11613 fi
11614 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11615
11616
11617 if test -n "$LD_FOR_TARGET"; then
11618 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11619 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11620 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11621 fi
11622
11623 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11624 for ncn_progname in ld; do
11625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626 set dummy ${ncn_progname}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 if test -n "$LD_FOR_TARGET"; then
11633 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11634 else
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11637 do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11642 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646 done
11647 done
11648 IFS=$as_save_IFS
11649
11650 fi
11651 fi
11652 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11653 if test -n "$LD_FOR_TARGET"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11655 $as_echo "$LD_FOR_TARGET" >&6; }
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11659 fi
11660
11661
11662 done
11663 fi
11664
11665 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11666 for ncn_progname in ld; do
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11668 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11669 if test -x $with_build_time_tools/${ncn_progname}; then
11670 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672 $as_echo "yes" >&6; }
11673 break
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 fi
11678 done
11679 fi
11680
11681 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11682 for ncn_progname in ld; do
11683 if test -n "$ncn_target_tool_prefix"; then
11684 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11685 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11689 $as_echo_n "(cached) " >&6
11690 else
11691 if test -n "$LD_FOR_TARGET"; then
11692 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11693 else
11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11696 do
11697 IFS=$as_save_IFS
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11701 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 break 2
11704 fi
11705 done
11706 done
11707 IFS=$as_save_IFS
11708
11709 fi
11710 fi
11711 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11712 if test -n "$LD_FOR_TARGET"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11714 $as_echo "$LD_FOR_TARGET" >&6; }
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719
11720
11721 fi
11722 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11724 set dummy ${ncn_progname}; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 if test -n "$LD_FOR_TARGET"; then
11731 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11732 else
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744 done
11745 done
11746 IFS=$as_save_IFS
11747
11748 fi
11749 fi
11750 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11751 if test -n "$LD_FOR_TARGET"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11753 $as_echo "$LD_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11757 fi
11758
11759
11760 fi
11761 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11762 done
11763 fi
11764
11765 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11766 set dummy ld
11767 if test $build = $target ; then
11768 LD_FOR_TARGET="$2"
11769 else
11770 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11771 fi
11772 else
11773 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11774 fi
11775
11776 else
11777 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11778 fi
11779
11780
11781
11782
11783 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11784 if test -n "$with_build_time_tools"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11786 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11787 if test -x $with_build_time_tools/lipo; then
11788 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11789 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11791 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796 elif test $build != $host && test $have_gcc_for_target = yes; then
11797 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11798 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11799 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11800 fi
11801 fi
11802 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11803 # Extract the first word of "lipo", so it can be a program name with args.
11804 set dummy lipo; ac_word=$2
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 $as_echo_n "checking for $ac_word... " >&6; }
11807 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 case $LIPO_FOR_TARGET in
11811 [\\/]* | ?:[\\/]*)
11812 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11813 ;;
11814 *)
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $gcc_cv_tool_dirs
11817 do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826 done
11827 done
11828 IFS=$as_save_IFS
11829
11830 ;;
11831 esac
11832 fi
11833 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11834 if test -n "$LIPO_FOR_TARGET"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11836 $as_echo "$LIPO_FOR_TARGET" >&6; }
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 $as_echo "no" >&6; }
11840 fi
11841
11842
11843 fi
11844 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11845
11846
11847 if test -n "$LIPO_FOR_TARGET"; then
11848 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11849 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11850 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11851 fi
11852
11853 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11854 for ncn_progname in lipo; do
11855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11856 set dummy ${ncn_progname}; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 if test -n "$LIPO_FOR_TARGET"; then
11863 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11864 else
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 fi
11881 fi
11882 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11883 if test -n "$LIPO_FOR_TARGET"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11885 $as_echo "$LIPO_FOR_TARGET" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 fi
11890
11891
11892 done
11893 fi
11894
11895 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11896 for ncn_progname in lipo; do
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11898 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11899 if test -x $with_build_time_tools/${ncn_progname}; then
11900 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11903 break
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908 done
11909 fi
11910
11911 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11912 for ncn_progname in lipo; do
11913 if test -n "$ncn_target_tool_prefix"; then
11914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11915 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if test -n "$LIPO_FOR_TARGET"; then
11922 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11923 else
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11926 do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11931 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
11935 done
11936 done
11937 IFS=$as_save_IFS
11938
11939 fi
11940 fi
11941 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11942 if test -n "$LIPO_FOR_TARGET"; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11944 $as_echo "$LIPO_FOR_TARGET" >&6; }
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949
11950
11951 fi
11952 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11954 set dummy ${ncn_progname}; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test -n "$LIPO_FOR_TARGET"; then
11961 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11962 else
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11965 do
11966 IFS=$as_save_IFS
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11970 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 break 2
11973 fi
11974 done
11975 done
11976 IFS=$as_save_IFS
11977
11978 fi
11979 fi
11980 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11981 if test -n "$LIPO_FOR_TARGET"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11983 $as_echo "$LIPO_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987 fi
11988
11989
11990 fi
11991 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11992 done
11993 fi
11994
11995 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11996 set dummy lipo
11997 if test $build = $target ; then
11998 LIPO_FOR_TARGET="$2"
11999 else
12000 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12001 fi
12002 else
12003 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12004 fi
12005
12006 else
12007 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12008 fi
12009
12010
12011
12012
12013 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12014 if test -n "$with_build_time_tools"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12016 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12017 if test -x $with_build_time_tools/nm; then
12018 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12019 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12021 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12025 fi
12026 elif test $build != $host && test $have_gcc_for_target = yes; then
12027 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12028 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12029 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12030 fi
12031 fi
12032 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12033 # Extract the first word of "nm", so it can be a program name with args.
12034 set dummy nm; ac_word=$2
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12036 $as_echo_n "checking for $ac_word... " >&6; }
12037 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 case $NM_FOR_TARGET in
12041 [\\/]* | ?:[\\/]*)
12042 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12043 ;;
12044 *)
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $gcc_cv_tool_dirs
12047 do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12052 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056 done
12057 done
12058 IFS=$as_save_IFS
12059
12060 ;;
12061 esac
12062 fi
12063 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12064 if test -n "$NM_FOR_TARGET"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12066 $as_echo "$NM_FOR_TARGET" >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12070 fi
12071
12072
12073 fi
12074 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12075
12076
12077 if test -n "$NM_FOR_TARGET"; then
12078 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12079 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12080 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12081 fi
12082
12083 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12084 for ncn_progname in nm; do
12085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086 set dummy ${ncn_progname}; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 if test -n "$NM_FOR_TARGET"; then
12093 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12094 else
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12102 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 fi
12111 fi
12112 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12113 if test -n "$NM_FOR_TARGET"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12115 $as_echo "$NM_FOR_TARGET" >&6; }
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12119 fi
12120
12121
12122 done
12123 fi
12124
12125 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12126 for ncn_progname in nm; do
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12129 if test -x $with_build_time_tools/${ncn_progname}; then
12130 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132 $as_echo "yes" >&6; }
12133 break
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 fi
12138 done
12139 fi
12140
12141 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12142 for ncn_progname in nm; do
12143 if test -n "$ncn_target_tool_prefix"; then
12144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test -n "$NM_FOR_TARGET"; then
12152 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12153 else
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12156 do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12161 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12164 fi
12165 done
12166 done
12167 IFS=$as_save_IFS
12168
12169 fi
12170 fi
12171 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12172 if test -n "$NM_FOR_TARGET"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12174 $as_echo "$NM_FOR_TARGET" >&6; }
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179
12180
12181 fi
12182 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12184 set dummy ${ncn_progname}; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 if test -n "$NM_FOR_TARGET"; then
12191 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12192 else
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12195 do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202 break 2
12203 fi
12204 done
12205 done
12206 IFS=$as_save_IFS
12207
12208 fi
12209 fi
12210 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12211 if test -n "$NM_FOR_TARGET"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12213 $as_echo "$NM_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 fi
12218
12219
12220 fi
12221 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12222 done
12223 fi
12224
12225 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12226 set dummy nm
12227 if test $build = $target ; then
12228 NM_FOR_TARGET="$2"
12229 else
12230 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12231 fi
12232 else
12233 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12234 fi
12235
12236 else
12237 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12238 fi
12239
12240
12241
12242
12243 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12244 if test -n "$with_build_time_tools"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12246 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12247 if test -x $with_build_time_tools/objcopy; then
12248 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12249 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12251 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256 elif test $build != $host && test $have_gcc_for_target = yes; then
12257 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12258 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12259 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12260 fi
12261 fi
12262 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12263 # Extract the first word of "objcopy", so it can be a program name with args.
12264 set dummy objcopy; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 case $OBJCOPY_FOR_TARGET in
12271 [\\/]* | ?:[\\/]*)
12272 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12273 ;;
12274 *)
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $gcc_cv_tool_dirs
12277 do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286 done
12287 done
12288 IFS=$as_save_IFS
12289
12290 ;;
12291 esac
12292 fi
12293 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12294 if test -n "$OBJCOPY_FOR_TARGET"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12296 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301
12302
12303 fi
12304 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12305
12306
12307 if test -n "$OBJCOPY_FOR_TARGET"; then
12308 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12309 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12310 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12311 fi
12312
12313 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12314 for ncn_progname in objcopy; do
12315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316 set dummy ${ncn_progname}; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -n "$OBJCOPY_FOR_TARGET"; then
12323 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12324 else
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 fi
12341 fi
12342 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12343 if test -n "$OBJCOPY_FOR_TARGET"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12345 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350
12351
12352 done
12353 fi
12354
12355 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12356 for ncn_progname in objcopy; do
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12358 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12359 if test -x $with_build_time_tools/${ncn_progname}; then
12360 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12362 $as_echo "yes" >&6; }
12363 break
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368 done
12369 fi
12370
12371 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12372 for ncn_progname in objcopy; do
12373 if test -n "$ncn_target_tool_prefix"; then
12374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test -n "$OBJCOPY_FOR_TARGET"; then
12382 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12391 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12402 if test -n "$OBJCOPY_FOR_TARGET"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12404 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411 fi
12412 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12414 set dummy ${ncn_progname}; ac_word=$2
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12416 $as_echo_n "checking for $ac_word... " >&6; }
12417 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -n "$OBJCOPY_FOR_TARGET"; then
12421 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12422 else
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 fi
12439 fi
12440 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12441 if test -n "$OBJCOPY_FOR_TARGET"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12443 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12447 fi
12448
12449
12450 fi
12451 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12452 done
12453 fi
12454
12455 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12456 set dummy objcopy
12457 if test $build = $target ; then
12458 OBJCOPY_FOR_TARGET="$2"
12459 else
12460 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12461 fi
12462 else
12463 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12464 fi
12465
12466 else
12467 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12468 fi
12469
12470
12471
12472
12473 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12474 if test -n "$with_build_time_tools"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12476 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12477 if test -x $with_build_time_tools/objdump; then
12478 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12479 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12481 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12485 fi
12486 elif test $build != $host && test $have_gcc_for_target = yes; then
12487 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12488 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12489 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12490 fi
12491 fi
12492 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12493 # Extract the first word of "objdump", so it can be a program name with args.
12494 set dummy objdump; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496 $as_echo_n "checking for $ac_word... " >&6; }
12497 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 case $OBJDUMP_FOR_TARGET in
12501 [\\/]* | ?:[\\/]*)
12502 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12503 ;;
12504 *)
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $gcc_cv_tool_dirs
12507 do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516 done
12517 done
12518 IFS=$as_save_IFS
12519
12520 ;;
12521 esac
12522 fi
12523 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12524 if test -n "$OBJDUMP_FOR_TARGET"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12526 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12530 fi
12531
12532
12533 fi
12534 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12535
12536
12537 if test -n "$OBJDUMP_FOR_TARGET"; then
12538 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12539 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12540 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12541 fi
12542
12543 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12544 for ncn_progname in objdump; do
12545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12546 set dummy ${ncn_progname}; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 if test -n "$OBJDUMP_FOR_TARGET"; then
12553 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12554 else
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $PATH
12557 do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 fi
12571 fi
12572 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12573 if test -n "$OBJDUMP_FOR_TARGET"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12575 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12579 fi
12580
12581
12582 done
12583 fi
12584
12585 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12586 for ncn_progname in objdump; do
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12588 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12589 if test -x $with_build_time_tools/${ncn_progname}; then
12590 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12592 $as_echo "yes" >&6; }
12593 break
12594 else
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596 $as_echo "no" >&6; }
12597 fi
12598 done
12599 fi
12600
12601 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12602 for ncn_progname in objdump; do
12603 if test -n "$ncn_target_tool_prefix"; then
12604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12605 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 if test -n "$OBJDUMP_FOR_TARGET"; then
12612 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12613 else
12614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615 for as_dir in $PATH
12616 do
12617 IFS=$as_save_IFS
12618 test -z "$as_dir" && as_dir=.
12619 for ac_exec_ext in '' $ac_executable_extensions; do
12620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 break 2
12624 fi
12625 done
12626 done
12627 IFS=$as_save_IFS
12628
12629 fi
12630 fi
12631 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12632 if test -n "$OBJDUMP_FOR_TARGET"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12634 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639
12640
12641 fi
12642 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12644 set dummy ${ncn_progname}; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$OBJDUMP_FOR_TARGET"; then
12651 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12671 if test -n "$OBJDUMP_FOR_TARGET"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12673 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680 fi
12681 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12682 done
12683 fi
12684
12685 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12686 set dummy objdump
12687 if test $build = $target ; then
12688 OBJDUMP_FOR_TARGET="$2"
12689 else
12690 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12691 fi
12692 else
12693 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12694 fi
12695
12696 else
12697 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12698 fi
12699
12700
12701
12702
12703 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12704 if test -n "$with_build_time_tools"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12706 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12707 if test -x $with_build_time_tools/ranlib; then
12708 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12709 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12711 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715 fi
12716 elif test $build != $host && test $have_gcc_for_target = yes; then
12717 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12718 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12719 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12720 fi
12721 fi
12722 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12723 # Extract the first word of "ranlib", so it can be a program name with args.
12724 set dummy ranlib; ac_word=$2
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12726 $as_echo_n "checking for $ac_word... " >&6; }
12727 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 case $RANLIB_FOR_TARGET in
12731 [\\/]* | ?:[\\/]*)
12732 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12733 ;;
12734 *)
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $gcc_cv_tool_dirs
12737 do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746 done
12747 done
12748 IFS=$as_save_IFS
12749
12750 ;;
12751 esac
12752 fi
12753 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12754 if test -n "$RANLIB_FOR_TARGET"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12756 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760 fi
12761
12762
12763 fi
12764 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12765
12766
12767 if test -n "$RANLIB_FOR_TARGET"; then
12768 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12769 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12770 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12771 fi
12772
12773 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12774 for ncn_progname in ranlib; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12776 set dummy ${ncn_progname}; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$RANLIB_FOR_TARGET"; then
12783 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 fi
12801 fi
12802 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12803 if test -n "$RANLIB_FOR_TARGET"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12805 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810
12811
12812 done
12813 fi
12814
12815 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12816 for ncn_progname in ranlib; do
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 break
12824 else
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828 done
12829 fi
12830
12831 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12832 for ncn_progname in ranlib; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837 $as_echo_n "checking for $ac_word... " >&6; }
12838 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test -n "$RANLIB_FOR_TARGET"; then
12842 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12843 else
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845 for as_dir in $PATH
12846 do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
12849 for ac_exec_ext in '' $ac_executable_extensions; do
12850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12851 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 break 2
12854 fi
12855 done
12856 done
12857 IFS=$as_save_IFS
12858
12859 fi
12860 fi
12861 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12862 if test -n "$RANLIB_FOR_TARGET"; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12864 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871 fi
12872 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 if test -n "$RANLIB_FOR_TARGET"; then
12881 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12882 else
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12890 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 break 2
12893 fi
12894 done
12895 done
12896 IFS=$as_save_IFS
12897
12898 fi
12899 fi
12900 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12901 if test -n "$RANLIB_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12903 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910 fi
12911 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12912 done
12913 fi
12914
12915 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12916 set dummy ranlib
12917 if test $build = $target ; then
12918 RANLIB_FOR_TARGET="$2"
12919 else
12920 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921 fi
12922 else
12923 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12924 fi
12925
12926 else
12927 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12928 fi
12929
12930
12931
12932
12933 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12934 if test -n "$with_build_time_tools"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12936 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12937 if test -x $with_build_time_tools/readelf; then
12938 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12939 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12941 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12945 fi
12946 elif test $build != $host && test $have_gcc_for_target = yes; then
12947 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12948 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12949 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12950 fi
12951 fi
12952 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12953 # Extract the first word of "readelf", so it can be a program name with args.
12954 set dummy readelf; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 case $READELF_FOR_TARGET in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12963 ;;
12964 *)
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $gcc_cv_tool_dirs
12967 do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12975 fi
12976 done
12977 done
12978 IFS=$as_save_IFS
12979
12980 ;;
12981 esac
12982 fi
12983 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12984 if test -n "$READELF_FOR_TARGET"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12986 $as_echo "$READELF_FOR_TARGET" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992
12993 fi
12994 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12995
12996
12997 if test -n "$READELF_FOR_TARGET"; then
12998 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12999 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13000 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13001 fi
13002
13003 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13004 for ncn_progname in readelf; do
13005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13006 set dummy ${ncn_progname}; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 if test -n "$READELF_FOR_TARGET"; then
13013 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13014 else
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026 done
13027 done
13028 IFS=$as_save_IFS
13029
13030 fi
13031 fi
13032 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13033 if test -n "$READELF_FOR_TARGET"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13035 $as_echo "$READELF_FOR_TARGET" >&6; }
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13039 fi
13040
13041
13042 done
13043 fi
13044
13045 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13046 for ncn_progname in readelf; do
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13048 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13049 if test -x $with_build_time_tools/${ncn_progname}; then
13050 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13052 $as_echo "yes" >&6; }
13053 break
13054 else
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057 fi
13058 done
13059 fi
13060
13061 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13062 for ncn_progname in readelf; do
13063 if test -n "$ncn_target_tool_prefix"; then
13064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13065 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$READELF_FOR_TARGET"; then
13072 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13081 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13084 fi
13085 done
13086 done
13087 IFS=$as_save_IFS
13088
13089 fi
13090 fi
13091 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13092 if test -n "$READELF_FOR_TARGET"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13094 $as_echo "$READELF_FOR_TARGET" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099
13100
13101 fi
13102 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13104 set dummy ${ncn_progname}; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$READELF_FOR_TARGET"; then
13111 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13115 do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124 done
13125 done
13126 IFS=$as_save_IFS
13127
13128 fi
13129 fi
13130 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13131 if test -n "$READELF_FOR_TARGET"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13133 $as_echo "$READELF_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138
13139
13140 fi
13141 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13142 done
13143 fi
13144
13145 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13146 set dummy readelf
13147 if test $build = $target ; then
13148 READELF_FOR_TARGET="$2"
13149 else
13150 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13151 fi
13152 else
13153 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13154 fi
13155
13156 else
13157 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13158 fi
13159
13160
13161
13162
13163 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13164 if test -n "$with_build_time_tools"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13166 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13167 if test -x $with_build_time_tools/strip; then
13168 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13169 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13171 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13175 fi
13176 elif test $build != $host && test $have_gcc_for_target = yes; then
13177 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13178 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13179 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13180 fi
13181 fi
13182 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13183 # Extract the first word of "strip", so it can be a program name with args.
13184 set dummy strip; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186 $as_echo_n "checking for $ac_word... " >&6; }
13187 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 case $STRIP_FOR_TARGET in
13191 [\\/]* | ?:[\\/]*)
13192 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13193 ;;
13194 *)
13195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196 for as_dir in $gcc_cv_tool_dirs
13197 do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 break 2
13205 fi
13206 done
13207 done
13208 IFS=$as_save_IFS
13209
13210 ;;
13211 esac
13212 fi
13213 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13214 if test -n "$STRIP_FOR_TARGET"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13216 $as_echo "$STRIP_FOR_TARGET" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222
13223 fi
13224 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13225
13226
13227 if test -n "$STRIP_FOR_TARGET"; then
13228 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13229 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13230 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13231 fi
13232
13233 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13234 for ncn_progname in strip; do
13235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13236 set dummy ${ncn_progname}; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 if test -n "$STRIP_FOR_TARGET"; then
13243 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13255 fi
13256 done
13257 done
13258 IFS=$as_save_IFS
13259
13260 fi
13261 fi
13262 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13263 if test -n "$STRIP_FOR_TARGET"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13265 $as_echo "$STRIP_FOR_TARGET" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13269 fi
13270
13271
13272 done
13273 fi
13274
13275 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13276 for ncn_progname in strip; do
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13278 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13279 if test -x $with_build_time_tools/${ncn_progname}; then
13280 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13283 break
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13287 fi
13288 done
13289 fi
13290
13291 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13292 for ncn_progname in strip; do
13293 if test -n "$ncn_target_tool_prefix"; then
13294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13295 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297 $as_echo_n "checking for $ac_word... " >&6; }
13298 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 if test -n "$STRIP_FOR_TARGET"; then
13302 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13303 else
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13311 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13314 fi
13315 done
13316 done
13317 IFS=$as_save_IFS
13318
13319 fi
13320 fi
13321 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13322 if test -n "$STRIP_FOR_TARGET"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13324 $as_echo "$STRIP_FOR_TARGET" >&6; }
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330
13331 fi
13332 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13334 set dummy ${ncn_progname}; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13338 $as_echo_n "(cached) " >&6
13339 else
13340 if test -n "$STRIP_FOR_TARGET"; then
13341 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13342 else
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13345 do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13350 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354 done
13355 done
13356 IFS=$as_save_IFS
13357
13358 fi
13359 fi
13360 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13361 if test -n "$STRIP_FOR_TARGET"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13363 $as_echo "$STRIP_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368
13369
13370 fi
13371 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13372 done
13373 fi
13374
13375 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13376 set dummy strip
13377 if test $build = $target ; then
13378 STRIP_FOR_TARGET="$2"
13379 else
13380 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13381 fi
13382 else
13383 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13384 fi
13385
13386 else
13387 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13388 fi
13389
13390
13391
13392
13393 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13394 if test -n "$with_build_time_tools"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13396 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13397 if test -x $with_build_time_tools/windres; then
13398 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13399 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13401 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13405 fi
13406 elif test $build != $host && test $have_gcc_for_target = yes; then
13407 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13408 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13409 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13410 fi
13411 fi
13412 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13413 # Extract the first word of "windres", so it can be a program name with args.
13414 set dummy windres; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 case $WINDRES_FOR_TARGET in
13421 [\\/]* | ?:[\\/]*)
13422 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13423 ;;
13424 *)
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $gcc_cv_tool_dirs
13427 do
13428 IFS=$as_save_IFS
13429 test -z "$as_dir" && as_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13432 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434 break 2
13435 fi
13436 done
13437 done
13438 IFS=$as_save_IFS
13439
13440 ;;
13441 esac
13442 fi
13443 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13444 if test -n "$WINDRES_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13446 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451
13452
13453 fi
13454 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13455
13456
13457 if test -n "$WINDRES_FOR_TARGET"; then
13458 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13459 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13460 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13461 fi
13462
13463 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13464 for ncn_progname in windres; do
13465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13466 set dummy ${ncn_progname}; ac_word=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 if test -n "$WINDRES_FOR_TARGET"; then
13473 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13474 else
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $PATH
13477 do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13482 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486 done
13487 done
13488 IFS=$as_save_IFS
13489
13490 fi
13491 fi
13492 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13493 if test -n "$WINDRES_FOR_TARGET"; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13495 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13499 fi
13500
13501
13502 done
13503 fi
13504
13505 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13506 for ncn_progname in windres; do
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13508 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13509 if test -x $with_build_time_tools/${ncn_progname}; then
13510 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512 $as_echo "yes" >&6; }
13513 break
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518 done
13519 fi
13520
13521 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13522 for ncn_progname in windres; do
13523 if test -n "$ncn_target_tool_prefix"; then
13524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 if test -n "$WINDRES_FOR_TARGET"; then
13532 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13541 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545 done
13546 done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13552 if test -n "$WINDRES_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13554 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13555 else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560
13561 fi
13562 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13564 set dummy ${ncn_progname}; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test -n "$WINDRES_FOR_TARGET"; then
13571 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13580 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13583 fi
13584 done
13585 done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13591 if test -n "$WINDRES_FOR_TARGET"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13593 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13597 fi
13598
13599
13600 fi
13601 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13602 done
13603 fi
13604
13605 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13606 set dummy windres
13607 if test $build = $target ; then
13608 WINDRES_FOR_TARGET="$2"
13609 else
13610 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13611 fi
13612 else
13613 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13614 fi
13615
13616 else
13617 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13618 fi
13619
13620
13621
13622
13623 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13624 if test -n "$with_build_time_tools"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13626 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13627 if test -x $with_build_time_tools/windmc; then
13628 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13629 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13631 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13635 fi
13636 elif test $build != $host && test $have_gcc_for_target = yes; then
13637 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13638 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13639 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13640 fi
13641 fi
13642 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13643 # Extract the first word of "windmc", so it can be a program name with args.
13644 set dummy windmc; ac_word=$2
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13646 $as_echo_n "checking for $ac_word... " >&6; }
13647 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13648 $as_echo_n "(cached) " >&6
13649 else
13650 case $WINDMC_FOR_TARGET in
13651 [\\/]* | ?:[\\/]*)
13652 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13653 ;;
13654 *)
13655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656 for as_dir in $gcc_cv_tool_dirs
13657 do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13662 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666 done
13667 done
13668 IFS=$as_save_IFS
13669
13670 ;;
13671 esac
13672 fi
13673 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13674 if test -n "$WINDMC_FOR_TARGET"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13676 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13677 else
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680 fi
13681
13682
13683 fi
13684 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13685
13686
13687 if test -n "$WINDMC_FOR_TARGET"; then
13688 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13689 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13690 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13691 fi
13692
13693 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13694 for ncn_progname in windmc; do
13695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13696 set dummy ${ncn_progname}; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13698 $as_echo_n "checking for $ac_word... " >&6; }
13699 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 if test -n "$WINDMC_FOR_TARGET"; then
13703 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13704 else
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13712 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 fi
13721 fi
13722 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13723 if test -n "$WINDMC_FOR_TARGET"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13725 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13726 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 fi
13730
13731
13732 done
13733 fi
13734
13735 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13736 for ncn_progname in windmc; do
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13738 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13739 if test -x $with_build_time_tools/${ncn_progname}; then
13740 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13742 $as_echo "yes" >&6; }
13743 break
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13747 fi
13748 done
13749 fi
13750
13751 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13752 for ncn_progname in windmc; do
13753 if test -n "$ncn_target_tool_prefix"; then
13754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13755 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757 $as_echo_n "checking for $ac_word... " >&6; }
13758 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 if test -n "$WINDMC_FOR_TARGET"; then
13762 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13763 else
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13771 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13774 fi
13775 done
13776 done
13777 IFS=$as_save_IFS
13778
13779 fi
13780 fi
13781 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13782 if test -n "$WINDMC_FOR_TARGET"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13784 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13785 else
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787 $as_echo "no" >&6; }
13788 fi
13789
13790
13791 fi
13792 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13794 set dummy ${ncn_progname}; ac_word=$2
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796 $as_echo_n "checking for $ac_word... " >&6; }
13797 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 if test -n "$WINDMC_FOR_TARGET"; then
13801 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13802 else
13803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804 for as_dir in $PATH
13805 do
13806 IFS=$as_save_IFS
13807 test -z "$as_dir" && as_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13810 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812 break 2
13813 fi
13814 done
13815 done
13816 IFS=$as_save_IFS
13817
13818 fi
13819 fi
13820 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13821 if test -n "$WINDMC_FOR_TARGET"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13823 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13827 fi
13828
13829
13830 fi
13831 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13832 done
13833 fi
13834
13835 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13836 set dummy windmc
13837 if test $build = $target ; then
13838 WINDMC_FOR_TARGET="$2"
13839 else
13840 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13841 fi
13842 else
13843 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13844 fi
13845
13846 else
13847 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13848 fi
13849
13850
13851 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13854 $as_echo_n "checking where to find the target ar... " >&6; }
13855 if test "x${build}" != "x${host}" ; then
13856 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
13858 ac_dir=`dirname $AR_FOR_TARGET`
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860 $as_echo "pre-installed in $ac_dir" >&6; }
13861 else
13862 # Canadian cross, just use what we found
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865 fi
13866 else
13867 ok=yes
13868 case " ${configdirs} " in
13869 *" binutils "*) ;;
13870 *) ok=no ;;
13871 esac
13872
13873 if test $ok = yes; then
13874 # An in-tree tool is available and we can use it
13875 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13877 $as_echo "just compiled" >&6; }
13878 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
13880 ac_dir=`dirname $AR_FOR_TARGET`
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882 $as_echo "pre-installed in $ac_dir" >&6; }
13883 elif test "x$target" = "x$host"; then
13884 # We can use an host tool
13885 AR_FOR_TARGET='$(AR)'
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13887 $as_echo "host tool" >&6; }
13888 else
13889 # We need a cross tool
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13892 fi
13893 fi
13894
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13896 $as_echo_n "checking where to find the target as... " >&6; }
13897 if test "x${build}" != "x${host}" ; then
13898 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13899 # We already found the complete path
13900 ac_dir=`dirname $AS_FOR_TARGET`
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13902 $as_echo "pre-installed in $ac_dir" >&6; }
13903 else
13904 # Canadian cross, just use what we found
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13907 fi
13908 else
13909 ok=yes
13910 case " ${configdirs} " in
13911 *" gas "*) ;;
13912 *) ok=no ;;
13913 esac
13914
13915 if test $ok = yes; then
13916 # An in-tree tool is available and we can use it
13917 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13919 $as_echo "just compiled" >&6; }
13920 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
13922 ac_dir=`dirname $AS_FOR_TARGET`
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924 $as_echo "pre-installed in $ac_dir" >&6; }
13925 elif test "x$target" = "x$host"; then
13926 # We can use an host tool
13927 AS_FOR_TARGET='$(AS)'
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13929 $as_echo "host tool" >&6; }
13930 else
13931 # We need a cross tool
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13934 fi
13935 fi
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13938 $as_echo_n "checking where to find the target cc... " >&6; }
13939 if test "x${build}" != "x${host}" ; then
13940 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13941 # We already found the complete path
13942 ac_dir=`dirname $CC_FOR_TARGET`
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944 $as_echo "pre-installed in $ac_dir" >&6; }
13945 else
13946 # Canadian cross, just use what we found
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13949 fi
13950 else
13951 ok=yes
13952 case " ${configdirs} " in
13953 *" gcc "*) ;;
13954 *) ok=no ;;
13955 esac
13956
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961 $as_echo "just compiled" >&6; }
13962 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $CC_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 CC_FOR_TARGET='$(CC)'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971 $as_echo "host tool" >&6; }
13972 else
13973 # We need a cross tool
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13976 fi
13977 fi
13978
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13980 $as_echo_n "checking where to find the target c++... " >&6; }
13981 if test "x${build}" != "x${host}" ; then
13982 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $CXX_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 else
13988 # Canadian cross, just use what we found
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13991 fi
13992 else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" gcc "*) ;;
13996 *) ok=no ;;
13997 esac
13998 case ,${enable_languages}, in
13999 *,c++,*) ;;
14000 *) ok=no ;;
14001 esac
14002 if test $ok = yes; then
14003 # An in-tree tool is available and we can use it
14004 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'
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14006 $as_echo "just compiled" >&6; }
14007 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $CXX_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 elif test "x$target" = "x$host"; then
14013 # We can use an host tool
14014 CXX_FOR_TARGET='$(CXX)'
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14016 $as_echo "host tool" >&6; }
14017 else
14018 # We need a cross tool
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14021 fi
14022 fi
14023
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14025 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14026 if test "x${build}" != "x${host}" ; then
14027 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14028 # We already found the complete path
14029 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031 $as_echo "pre-installed in $ac_dir" >&6; }
14032 else
14033 # Canadian cross, just use what we found
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035 $as_echo "pre-installed" >&6; }
14036 fi
14037 else
14038 ok=yes
14039 case " ${configdirs} " in
14040 *" gcc "*) ;;
14041 *) ok=no ;;
14042 esac
14043 case ,${enable_languages}, in
14044 *,c++,*) ;;
14045 *) ok=no ;;
14046 esac
14047 if test $ok = yes; then
14048 # An in-tree tool is available and we can use it
14049 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'
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14051 $as_echo "just compiled" >&6; }
14052 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056 $as_echo "pre-installed in $ac_dir" >&6; }
14057 elif test "x$target" = "x$host"; then
14058 # We can use an host tool
14059 RAW_CXX_FOR_TARGET='$(CXX)'
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14061 $as_echo "host tool" >&6; }
14062 else
14063 # We need a cross tool
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14066 fi
14067 fi
14068
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14070 $as_echo_n "checking where to find the target dlltool... " >&6; }
14071 if test "x${build}" != "x${host}" ; then
14072 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14073 # We already found the complete path
14074 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14076 $as_echo "pre-installed in $ac_dir" >&6; }
14077 else
14078 # Canadian cross, just use what we found
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080 $as_echo "pre-installed" >&6; }
14081 fi
14082 else
14083 ok=yes
14084 case " ${configdirs} " in
14085 *" binutils "*) ;;
14086 *) ok=no ;;
14087 esac
14088
14089 if test $ok = yes; then
14090 # An in-tree tool is available and we can use it
14091 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14093 $as_echo "just compiled" >&6; }
14094 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14095 # We already found the complete path
14096 ac_dir=`dirname $DLLTOOL_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 elif test "x$target" = "x$host"; then
14100 # We can use an host tool
14101 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14103 $as_echo "host tool" >&6; }
14104 else
14105 # We need a cross tool
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107 $as_echo "pre-installed" >&6; }
14108 fi
14109 fi
14110
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14112 $as_echo_n "checking where to find the target gcc... " >&6; }
14113 if test "x${build}" != "x${host}" ; then
14114 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14115 # We already found the complete path
14116 ac_dir=`dirname $GCC_FOR_TARGET`
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14118 $as_echo "pre-installed in $ac_dir" >&6; }
14119 else
14120 # Canadian cross, just use what we found
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122 $as_echo "pre-installed" >&6; }
14123 fi
14124 else
14125 ok=yes
14126 case " ${configdirs} " in
14127 *" gcc "*) ;;
14128 *) ok=no ;;
14129 esac
14130
14131 if test $ok = yes; then
14132 # An in-tree tool is available and we can use it
14133 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135 $as_echo "just compiled" >&6; }
14136 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GCC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140 $as_echo "pre-installed in $ac_dir" >&6; }
14141 elif test "x$target" = "x$host"; then
14142 # We can use an host tool
14143 GCC_FOR_TARGET='$()'
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145 $as_echo "host tool" >&6; }
14146 else
14147 # We need a cross tool
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14150 fi
14151 fi
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14154 $as_echo_n "checking where to find the target gcj... " >&6; }
14155 if test "x${build}" != "x${host}" ; then
14156 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $GCJ_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160 $as_echo "pre-installed in $ac_dir" >&6; }
14161 else
14162 # Canadian cross, just use what we found
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164 $as_echo "pre-installed" >&6; }
14165 fi
14166 else
14167 ok=yes
14168 case " ${configdirs} " in
14169 *" gcc "*) ;;
14170 *) ok=no ;;
14171 esac
14172 case ,${enable_languages}, in
14173 *,java,*) ;;
14174 *) ok=no ;;
14175 esac
14176 if test $ok = yes; then
14177 # An in-tree tool is available and we can use it
14178 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14180 $as_echo "just compiled" >&6; }
14181 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $GCJ_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 elif test "x$target" = "x$host"; then
14187 # We can use an host tool
14188 GCJ_FOR_TARGET='$(GCJ)'
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14190 $as_echo "host tool" >&6; }
14191 else
14192 # We need a cross tool
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194 $as_echo "pre-installed" >&6; }
14195 fi
14196 fi
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14199 $as_echo_n "checking where to find the target gfortran... " >&6; }
14200 if test "x${build}" != "x${host}" ; then
14201 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
14203 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205 $as_echo "pre-installed in $ac_dir" >&6; }
14206 else
14207 # Canadian cross, just use what we found
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14209 $as_echo "pre-installed" >&6; }
14210 fi
14211 else
14212 ok=yes
14213 case " ${configdirs} " in
14214 *" gcc "*) ;;
14215 *) ok=no ;;
14216 esac
14217 case ,${enable_languages}, in
14218 *,fortran,*) ;;
14219 *) ok=no ;;
14220 esac
14221 if test $ok = yes; then
14222 # An in-tree tool is available and we can use it
14223 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14225 $as_echo "just compiled" >&6; }
14226 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14227 # We already found the complete path
14228 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14230 $as_echo "pre-installed in $ac_dir" >&6; }
14231 elif test "x$target" = "x$host"; then
14232 # We can use an host tool
14233 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14235 $as_echo "host tool" >&6; }
14236 else
14237 # We need a cross tool
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14240 fi
14241 fi
14242
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14244 $as_echo_n "checking where to find the target gccgo... " >&6; }
14245 if test "x${build}" != "x${host}" ; then
14246 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14247 # We already found the complete path
14248 ac_dir=`dirname $GOC_FOR_TARGET`
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14250 $as_echo "pre-installed in $ac_dir" >&6; }
14251 else
14252 # Canadian cross, just use what we found
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14255 fi
14256 else
14257 ok=yes
14258 case " ${configdirs} " in
14259 *" gcc "*) ;;
14260 *) ok=no ;;
14261 esac
14262 case ,${enable_languages}, in
14263 *,go,*) ;;
14264 *) ok=no ;;
14265 esac
14266 if test $ok = yes; then
14267 # An in-tree tool is available and we can use it
14268 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14270 $as_echo "just compiled" >&6; }
14271 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14272 # We already found the complete path
14273 ac_dir=`dirname $GOC_FOR_TARGET`
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14275 $as_echo "pre-installed in $ac_dir" >&6; }
14276 elif test "x$target" = "x$host"; then
14277 # We can use an host tool
14278 GOC_FOR_TARGET='$(GOC)'
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14280 $as_echo "host tool" >&6; }
14281 else
14282 # We need a cross tool
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14284 $as_echo "pre-installed" >&6; }
14285 fi
14286 fi
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14289 $as_echo_n "checking where to find the target ld... " >&6; }
14290 if test "x${build}" != "x${host}" ; then
14291 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $LD_FOR_TARGET`
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295 $as_echo "pre-installed in $ac_dir" >&6; }
14296 else
14297 # Canadian cross, just use what we found
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299 $as_echo "pre-installed" >&6; }
14300 fi
14301 else
14302 ok=yes
14303 case " ${configdirs} " in
14304 *" ld "*) ;;
14305 *) ok=no ;;
14306 esac
14307
14308 if test $ok = yes; then
14309 # An in-tree tool is available and we can use it
14310 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14312 $as_echo "just compiled" >&6; }
14313 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14314 # We already found the complete path
14315 ac_dir=`dirname $LD_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 elif test "x$target" = "x$host"; then
14319 # We can use an host tool
14320 LD_FOR_TARGET='$(LD)'
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14322 $as_echo "host tool" >&6; }
14323 else
14324 # We need a cross tool
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326 $as_echo "pre-installed" >&6; }
14327 fi
14328 fi
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14331 $as_echo_n "checking where to find the target lipo... " >&6; }
14332 if test "x${build}" != "x${host}" ; then
14333 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
14335 ac_dir=`dirname $LIPO_FOR_TARGET`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337 $as_echo "pre-installed in $ac_dir" >&6; }
14338 else
14339 # Canadian cross, just use what we found
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14341 $as_echo "pre-installed" >&6; }
14342 fi
14343 else
14344 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14345 # We already found the complete path
14346 ac_dir=`dirname $LIPO_FOR_TARGET`
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14348 $as_echo "pre-installed in $ac_dir" >&6; }
14349 elif test "x$target" = "x$host"; then
14350 # We can use an host tool
14351 LIPO_FOR_TARGET='$(LIPO)'
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14353 $as_echo "host tool" >&6; }
14354 else
14355 # We need a cross tool
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14357 $as_echo "pre-installed" >&6; }
14358 fi
14359 fi
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14362 $as_echo_n "checking where to find the target nm... " >&6; }
14363 if test "x${build}" != "x${host}" ; then
14364 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14365 # We already found the complete path
14366 ac_dir=`dirname $NM_FOR_TARGET`
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14368 $as_echo "pre-installed in $ac_dir" >&6; }
14369 else
14370 # Canadian cross, just use what we found
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14372 $as_echo "pre-installed" >&6; }
14373 fi
14374 else
14375 ok=yes
14376 case " ${configdirs} " in
14377 *" binutils "*) ;;
14378 *) ok=no ;;
14379 esac
14380
14381 if test $ok = yes; then
14382 # An in-tree tool is available and we can use it
14383 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14385 $as_echo "just compiled" >&6; }
14386 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14387 # We already found the complete path
14388 ac_dir=`dirname $NM_FOR_TARGET`
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14390 $as_echo "pre-installed in $ac_dir" >&6; }
14391 elif test "x$target" = "x$host"; then
14392 # We can use an host tool
14393 NM_FOR_TARGET='$(NM)'
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14395 $as_echo "host tool" >&6; }
14396 else
14397 # We need a cross tool
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14399 $as_echo "pre-installed" >&6; }
14400 fi
14401 fi
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14404 $as_echo_n "checking where to find the target objcopy... " >&6; }
14405 if test "x${build}" != "x${host}" ; then
14406 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14407 # We already found the complete path
14408 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14410 $as_echo "pre-installed in $ac_dir" >&6; }
14411 else
14412 # Canadian cross, just use what we found
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14414 $as_echo "pre-installed" >&6; }
14415 fi
14416 else
14417 ok=yes
14418 case " ${configdirs} " in
14419 *" binutils "*) ;;
14420 *) ok=no ;;
14421 esac
14422
14423 if test $ok = yes; then
14424 # An in-tree tool is available and we can use it
14425 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14427 $as_echo "just compiled" >&6; }
14428 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14429 # We already found the complete path
14430 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14432 $as_echo "pre-installed in $ac_dir" >&6; }
14433 elif test "x$target" = "x$host"; then
14434 # We can use an host tool
14435 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14437 $as_echo "host tool" >&6; }
14438 else
14439 # We need a cross tool
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14441 $as_echo "pre-installed" >&6; }
14442 fi
14443 fi
14444
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14446 $as_echo_n "checking where to find the target objdump... " >&6; }
14447 if test "x${build}" != "x${host}" ; then
14448 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14449 # We already found the complete path
14450 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14452 $as_echo "pre-installed in $ac_dir" >&6; }
14453 else
14454 # Canadian cross, just use what we found
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14456 $as_echo "pre-installed" >&6; }
14457 fi
14458 else
14459 ok=yes
14460 case " ${configdirs} " in
14461 *" binutils "*) ;;
14462 *) ok=no ;;
14463 esac
14464
14465 if test $ok = yes; then
14466 # An in-tree tool is available and we can use it
14467 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14469 $as_echo "just compiled" >&6; }
14470 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14471 # We already found the complete path
14472 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14474 $as_echo "pre-installed in $ac_dir" >&6; }
14475 elif test "x$target" = "x$host"; then
14476 # We can use an host tool
14477 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14479 $as_echo "host tool" >&6; }
14480 else
14481 # We need a cross tool
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14483 $as_echo "pre-installed" >&6; }
14484 fi
14485 fi
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14488 $as_echo_n "checking where to find the target ranlib... " >&6; }
14489 if test "x${build}" != "x${host}" ; then
14490 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14491 # We already found the complete path
14492 ac_dir=`dirname $RANLIB_FOR_TARGET`
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14494 $as_echo "pre-installed in $ac_dir" >&6; }
14495 else
14496 # Canadian cross, just use what we found
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14498 $as_echo "pre-installed" >&6; }
14499 fi
14500 else
14501 ok=yes
14502 case " ${configdirs} " in
14503 *" binutils "*) ;;
14504 *) ok=no ;;
14505 esac
14506
14507 if test $ok = yes; then
14508 # An in-tree tool is available and we can use it
14509 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14511 $as_echo "just compiled" >&6; }
14512 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14513 # We already found the complete path
14514 ac_dir=`dirname $RANLIB_FOR_TARGET`
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14516 $as_echo "pre-installed in $ac_dir" >&6; }
14517 elif test "x$target" = "x$host"; then
14518 # We can use an host tool
14519 RANLIB_FOR_TARGET='$(RANLIB)'
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14521 $as_echo "host tool" >&6; }
14522 else
14523 # We need a cross tool
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14525 $as_echo "pre-installed" >&6; }
14526 fi
14527 fi
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14530 $as_echo_n "checking where to find the target readelf... " >&6; }
14531 if test "x${build}" != "x${host}" ; then
14532 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14533 # We already found the complete path
14534 ac_dir=`dirname $READELF_FOR_TARGET`
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14536 $as_echo "pre-installed in $ac_dir" >&6; }
14537 else
14538 # Canadian cross, just use what we found
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14540 $as_echo "pre-installed" >&6; }
14541 fi
14542 else
14543 ok=yes
14544 case " ${configdirs} " in
14545 *" binutils "*) ;;
14546 *) ok=no ;;
14547 esac
14548
14549 if test $ok = yes; then
14550 # An in-tree tool is available and we can use it
14551 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14553 $as_echo "just compiled" >&6; }
14554 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14555 # We already found the complete path
14556 ac_dir=`dirname $READELF_FOR_TARGET`
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14558 $as_echo "pre-installed in $ac_dir" >&6; }
14559 elif test "x$target" = "x$host"; then
14560 # We can use an host tool
14561 READELF_FOR_TARGET='$(READELF)'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14563 $as_echo "host tool" >&6; }
14564 else
14565 # We need a cross tool
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14567 $as_echo "pre-installed" >&6; }
14568 fi
14569 fi
14570
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14572 $as_echo_n "checking where to find the target strip... " >&6; }
14573 if test "x${build}" != "x${host}" ; then
14574 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14575 # We already found the complete path
14576 ac_dir=`dirname $STRIP_FOR_TARGET`
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14578 $as_echo "pre-installed in $ac_dir" >&6; }
14579 else
14580 # Canadian cross, just use what we found
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14582 $as_echo "pre-installed" >&6; }
14583 fi
14584 else
14585 ok=yes
14586 case " ${configdirs} " in
14587 *" binutils "*) ;;
14588 *) ok=no ;;
14589 esac
14590
14591 if test $ok = yes; then
14592 # An in-tree tool is available and we can use it
14593 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14595 $as_echo "just compiled" >&6; }
14596 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14597 # We already found the complete path
14598 ac_dir=`dirname $STRIP_FOR_TARGET`
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14600 $as_echo "pre-installed in $ac_dir" >&6; }
14601 elif test "x$target" = "x$host"; then
14602 # We can use an host tool
14603 STRIP_FOR_TARGET='$(STRIP)'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14605 $as_echo "host tool" >&6; }
14606 else
14607 # We need a cross tool
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609 $as_echo "pre-installed" >&6; }
14610 fi
14611 fi
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14614 $as_echo_n "checking where to find the target windres... " >&6; }
14615 if test "x${build}" != "x${host}" ; then
14616 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14617 # We already found the complete path
14618 ac_dir=`dirname $WINDRES_FOR_TARGET`
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14620 $as_echo "pre-installed in $ac_dir" >&6; }
14621 else
14622 # Canadian cross, just use what we found
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14624 $as_echo "pre-installed" >&6; }
14625 fi
14626 else
14627 ok=yes
14628 case " ${configdirs} " in
14629 *" binutils "*) ;;
14630 *) ok=no ;;
14631 esac
14632
14633 if test $ok = yes; then
14634 # An in-tree tool is available and we can use it
14635 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14637 $as_echo "just compiled" >&6; }
14638 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14639 # We already found the complete path
14640 ac_dir=`dirname $WINDRES_FOR_TARGET`
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14642 $as_echo "pre-installed in $ac_dir" >&6; }
14643 elif test "x$target" = "x$host"; then
14644 # We can use an host tool
14645 WINDRES_FOR_TARGET='$(WINDRES)'
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14647 $as_echo "host tool" >&6; }
14648 else
14649 # We need a cross tool
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651 $as_echo "pre-installed" >&6; }
14652 fi
14653 fi
14654
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14656 $as_echo_n "checking where to find the target windmc... " >&6; }
14657 if test "x${build}" != "x${host}" ; then
14658 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14659 # We already found the complete path
14660 ac_dir=`dirname $WINDMC_FOR_TARGET`
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14662 $as_echo "pre-installed in $ac_dir" >&6; }
14663 else
14664 # Canadian cross, just use what we found
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14666 $as_echo "pre-installed" >&6; }
14667 fi
14668 else
14669 ok=yes
14670 case " ${configdirs} " in
14671 *" binutils "*) ;;
14672 *) ok=no ;;
14673 esac
14674
14675 if test $ok = yes; then
14676 # An in-tree tool is available and we can use it
14677 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14679 $as_echo "just compiled" >&6; }
14680 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14681 # We already found the complete path
14682 ac_dir=`dirname $WINDMC_FOR_TARGET`
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14684 $as_echo "pre-installed in $ac_dir" >&6; }
14685 elif test "x$target" = "x$host"; then
14686 # We can use an host tool
14687 WINDMC_FOR_TARGET='$(WINDMC)'
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14689 $as_echo "host tool" >&6; }
14690 else
14691 # We need a cross tool
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14693 $as_echo "pre-installed" >&6; }
14694 fi
14695 fi
14696
14697
14698
14699
14700
14701 # Certain tools may need extra flags.
14702 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14703 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14704 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14705
14706 # When building target libraries, except in a Canadian cross, we use
14707 # the same toolchain as the compiler we just built.
14708 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14709 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14710 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14711 if test $host = $build; then
14712 case " $configdirs " in
14713 *" gcc "*)
14714 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14715 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14716 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14717 ;;
14718 esac
14719 fi
14720
14721
14722
14723
14724
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14726 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14727 # Check whether --enable-maintainer-mode was given.
14728 if test "${enable_maintainer_mode+set}" = set; then :
14729 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14730 else
14731 USE_MAINTAINER_MODE=no
14732 fi
14733
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14735 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14736
14737
14738 if test "$USE_MAINTAINER_MODE" = yes; then
14739 MAINTAINER_MODE_TRUE=
14740 MAINTAINER_MODE_FALSE='#'
14741 else
14742 MAINTAINER_MODE_TRUE='#'
14743 MAINTAINER_MODE_FALSE=
14744 fi
14745 MAINT=$MAINTAINER_MODE_TRUE
14746
14747 # ---------------------
14748 # GCC bootstrap support
14749 # ---------------------
14750
14751 # Stage specific cflags for build.
14752 stage1_cflags="-g"
14753 case $build in
14754 vax-*-*)
14755 case ${GCC} in
14756 yes) stage1_cflags="-g -Wa,-J" ;;
14757 *) stage1_cflags="-g -J" ;;
14758 esac ;;
14759 esac
14760
14761
14762
14763 # Enable --enable-checking in stage1 of the compiler.
14764 # Check whether --enable-stage1-checking was given.
14765 if test "${enable_stage1_checking+set}" = set; then :
14766 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14767 else
14768 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14769 # For --disable-checking or implicit --enable-checking=release, avoid
14770 # setting --enable-checking=gc in the default stage1 checking for LTO
14771 # bootstraps. See PR62077.
14772 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14773 case $BUILD_CONFIG in
14774 *lto*)
14775 if test "x$enable_checking" = x && \
14776 test -d ${srcdir}/gcc && \
14777 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14778 stage1_checking=--enable-checking=yes,types
14779 fi;;
14780 *) stage1_checking=--enable-checking=yes,types;;
14781 esac
14782 else
14783 stage1_checking=--enable-checking=$enable_checking,types
14784 fi
14785 fi
14786
14787
14788
14789 # Enable -Werror in bootstrap stage2 and later.
14790 # Check whether --enable-werror was given.
14791 if test "${enable_werror+set}" = set; then :
14792 enableval=$enable_werror;
14793 else
14794 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14795 enable_werror=yes
14796 else
14797 enable_werror=no
14798 fi
14799 fi
14800
14801 case ${enable_werror} in
14802 yes) stage2_werror_flag="--enable-werror-always" ;;
14803 *) stage2_werror_flag="" ;;
14804 esac
14805
14806
14807 # Enable --enable-host-shared.
14808 # Check whether --enable-host-shared was given.
14809 if test "${enable_host_shared+set}" = set; then :
14810 enableval=$enable_host_shared; host_shared=$enableval
14811 else
14812 host_shared=no
14813 fi
14814
14815
14816
14817 # PR jit/64780: Require the user to explicitly specify
14818 # --enable-host-shared if the jit is enabled, hinting
14819 # that they might want to do a separate configure/build of
14820 # the jit, to avoid users from slowing down the rest of the
14821 # compiler by enabling the jit.
14822 if test ${host_shared} = "no" ; then
14823 case "${enable_languages}" in
14824 *jit*)
14825 as_fn_error "
14826 Enabling language \"jit\" requires --enable-host-shared.
14827
14828 --enable-host-shared typically slows the rest of the compiler down by
14829 a few %, so you must explicitly enable it.
14830
14831 If you want to build both the jit and the regular compiler, it is often
14832 best to do this via two separate configure/builds, in separate
14833 directories, to avoid imposing the performance cost of
14834 --enable-host-shared on the regular compiler." "$LINENO" 5
14835 ;;
14836 *)
14837 ;;
14838 esac
14839 fi
14840
14841 # Specify what files to not compare during bootstrap.
14842
14843 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14844 case "$target" in
14845 hppa*64*-*-hpux*) ;;
14846 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14847 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14848 esac
14849
14850
14851 ac_config_files="$ac_config_files Makefile"
14852
14853 cat >confcache <<\_ACEOF
14854 # This file is a shell script that caches the results of configure
14855 # tests run on this system so they can be shared between configure
14856 # scripts and configure runs, see configure's option --config-cache.
14857 # It is not useful on other systems. If it contains results you don't
14858 # want to keep, you may remove or edit it.
14859 #
14860 # config.status only pays attention to the cache file if you give it
14861 # the --recheck option to rerun configure.
14862 #
14863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14865 # following values.
14866
14867 _ACEOF
14868
14869 # The following way of writing the cache mishandles newlines in values,
14870 # but we know of no workaround that is simple, portable, and efficient.
14871 # So, we kill variables containing newlines.
14872 # Ultrix sh set writes to stderr and can't be redirected directly,
14873 # and sets the high bit in the cache file unless we assign to the vars.
14874 (
14875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14876 eval ac_val=\$$ac_var
14877 case $ac_val in #(
14878 *${as_nl}*)
14879 case $ac_var in #(
14880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14882 esac
14883 case $ac_var in #(
14884 _ | IFS | as_nl) ;; #(
14885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14886 *) { eval $ac_var=; unset $ac_var;} ;;
14887 esac ;;
14888 esac
14889 done
14890
14891 (set) 2>&1 |
14892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14893 *${as_nl}ac_space=\ *)
14894 # `set' does not quote correctly, so add quotes: double-quote
14895 # substitution turns \\\\ into \\, and sed turns \\ into \.
14896 sed -n \
14897 "s/'/'\\\\''/g;
14898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14899 ;; #(
14900 *)
14901 # `set' quotes correctly as required by POSIX, so do not add quotes.
14902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14903 ;;
14904 esac |
14905 sort
14906 ) |
14907 sed '
14908 /^ac_cv_env_/b end
14909 t clear
14910 :clear
14911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14912 t end
14913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14914 :end' >>confcache
14915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14916 if test -w "$cache_file"; then
14917 test "x$cache_file" != "x/dev/null" &&
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14919 $as_echo "$as_me: updating cache $cache_file" >&6;}
14920 cat confcache >$cache_file
14921 else
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14924 fi
14925 fi
14926 rm -f confcache
14927
14928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14929 # Let make expand exec_prefix.
14930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14931
14932 # Transform confdefs.h into DEFS.
14933 # Protect against shell expansion while executing Makefile rules.
14934 # Protect against Makefile macro expansion.
14935 #
14936 # If the first sed substitution is executed (which looks for macros that
14937 # take arguments), then branch to the quote section. Otherwise,
14938 # look for a macro that doesn't take arguments.
14939 ac_script='
14940 :mline
14941 /\\$/{
14942 N
14943 s,\\\n,,
14944 b mline
14945 }
14946 t clear
14947 :clear
14948 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14949 t quote
14950 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14951 t quote
14952 b any
14953 :quote
14954 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14955 s/\[/\\&/g
14956 s/\]/\\&/g
14957 s/\$/$$/g
14958 H
14959 :any
14960 ${
14961 g
14962 s/^\n//
14963 s/\n/ /g
14964 p
14965 }
14966 '
14967 DEFS=`sed -n "$ac_script" confdefs.h`
14968
14969
14970 ac_libobjs=
14971 ac_ltlibobjs=
14972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14973 # 1. Remove the extension, and $U if already installed.
14974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14975 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14977 # will be set to the directory where LIBOBJS objects are built.
14978 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14979 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14980 done
14981 LIBOBJS=$ac_libobjs
14982
14983 LTLIBOBJS=$ac_ltlibobjs
14984
14985
14986
14987 : ${CONFIG_STATUS=./config.status}
14988 ac_write_fail=0
14989 ac_clean_files_save=$ac_clean_files
14990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14992 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14993 as_write_fail=0
14994 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14995 #! $SHELL
14996 # Generated by $as_me.
14997 # Run this file to recreate the current configuration.
14998 # Compiler output produced by configure, useful for debugging
14999 # configure, is in config.log if it exists.
15000
15001 debug=false
15002 ac_cs_recheck=false
15003 ac_cs_silent=false
15004
15005 SHELL=\${CONFIG_SHELL-$SHELL}
15006 export SHELL
15007 _ASEOF
15008 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15009 ## -------------------- ##
15010 ## M4sh Initialization. ##
15011 ## -------------------- ##
15012
15013 # Be more Bourne compatible
15014 DUALCASE=1; export DUALCASE # for MKS sh
15015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15016 emulate sh
15017 NULLCMD=:
15018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15019 # is contrary to our usage. Disable this feature.
15020 alias -g '${1+"$@"}'='"$@"'
15021 setopt NO_GLOB_SUBST
15022 else
15023 case `(set -o) 2>/dev/null` in #(
15024 *posix*) :
15025 set -o posix ;; #(
15026 *) :
15027 ;;
15028 esac
15029 fi
15030
15031
15032 as_nl='
15033 '
15034 export as_nl
15035 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15036 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15039 # Prefer a ksh shell builtin over an external printf program on Solaris,
15040 # but without wasting forks for bash or zsh.
15041 if test -z "$BASH_VERSION$ZSH_VERSION" \
15042 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15043 as_echo='print -r --'
15044 as_echo_n='print -rn --'
15045 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15046 as_echo='printf %s\n'
15047 as_echo_n='printf %s'
15048 else
15049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15050 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15051 as_echo_n='/usr/ucb/echo -n'
15052 else
15053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15054 as_echo_n_body='eval
15055 arg=$1;
15056 case $arg in #(
15057 *"$as_nl"*)
15058 expr "X$arg" : "X\\(.*\\)$as_nl";
15059 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15060 esac;
15061 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15062 '
15063 export as_echo_n_body
15064 as_echo_n='sh -c $as_echo_n_body as_echo'
15065 fi
15066 export as_echo_body
15067 as_echo='sh -c $as_echo_body as_echo'
15068 fi
15069
15070 # The user is always right.
15071 if test "${PATH_SEPARATOR+set}" != set; then
15072 PATH_SEPARATOR=:
15073 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15074 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15075 PATH_SEPARATOR=';'
15076 }
15077 fi
15078
15079
15080 # IFS
15081 # We need space, tab and new line, in precisely that order. Quoting is
15082 # there to prevent editors from complaining about space-tab.
15083 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15084 # splitting by setting IFS to empty value.)
15085 IFS=" "" $as_nl"
15086
15087 # Find who we are. Look in the path if we contain no directory separator.
15088 case $0 in #((
15089 *[\\/]* ) as_myself=$0 ;;
15090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15092 do
15093 IFS=$as_save_IFS
15094 test -z "$as_dir" && as_dir=.
15095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15096 done
15097 IFS=$as_save_IFS
15098
15099 ;;
15100 esac
15101 # We did not find ourselves, most probably we were run as `sh COMMAND'
15102 # in which case we are not to be found in the path.
15103 if test "x$as_myself" = x; then
15104 as_myself=$0
15105 fi
15106 if test ! -f "$as_myself"; then
15107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15108 exit 1
15109 fi
15110
15111 # Unset variables that we do not need and which cause bugs (e.g. in
15112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15113 # suppresses any "Segmentation fault" message there. '((' could
15114 # trigger a bug in pdksh 5.2.14.
15115 for as_var in BASH_ENV ENV MAIL MAILPATH
15116 do eval test x\${$as_var+set} = xset \
15117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15118 done
15119 PS1='$ '
15120 PS2='> '
15121 PS4='+ '
15122
15123 # NLS nuisances.
15124 LC_ALL=C
15125 export LC_ALL
15126 LANGUAGE=C
15127 export LANGUAGE
15128
15129 # CDPATH.
15130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15131
15132
15133 # as_fn_error ERROR [LINENO LOG_FD]
15134 # ---------------------------------
15135 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15136 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15137 # script with status $?, using 1 if that was 0.
15138 as_fn_error ()
15139 {
15140 as_status=$?; test $as_status -eq 0 && as_status=1
15141 if test "$3"; then
15142 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15143 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15144 fi
15145 $as_echo "$as_me: error: $1" >&2
15146 as_fn_exit $as_status
15147 } # as_fn_error
15148
15149
15150 # as_fn_set_status STATUS
15151 # -----------------------
15152 # Set $? to STATUS, without forking.
15153 as_fn_set_status ()
15154 {
15155 return $1
15156 } # as_fn_set_status
15157
15158 # as_fn_exit STATUS
15159 # -----------------
15160 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15161 as_fn_exit ()
15162 {
15163 set +e
15164 as_fn_set_status $1
15165 exit $1
15166 } # as_fn_exit
15167
15168 # as_fn_unset VAR
15169 # ---------------
15170 # Portably unset VAR.
15171 as_fn_unset ()
15172 {
15173 { eval $1=; unset $1;}
15174 }
15175 as_unset=as_fn_unset
15176 # as_fn_append VAR VALUE
15177 # ----------------------
15178 # Append the text in VALUE to the end of the definition contained in VAR. Take
15179 # advantage of any shell optimizations that allow amortized linear growth over
15180 # repeated appends, instead of the typical quadratic growth present in naive
15181 # implementations.
15182 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15183 eval 'as_fn_append ()
15184 {
15185 eval $1+=\$2
15186 }'
15187 else
15188 as_fn_append ()
15189 {
15190 eval $1=\$$1\$2
15191 }
15192 fi # as_fn_append
15193
15194 # as_fn_arith ARG...
15195 # ------------------
15196 # Perform arithmetic evaluation on the ARGs, and store the result in the
15197 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15198 # must be portable across $(()) and expr.
15199 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15200 eval 'as_fn_arith ()
15201 {
15202 as_val=$(( $* ))
15203 }'
15204 else
15205 as_fn_arith ()
15206 {
15207 as_val=`expr "$@" || test $? -eq 1`
15208 }
15209 fi # as_fn_arith
15210
15211
15212 if expr a : '\(a\)' >/dev/null 2>&1 &&
15213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214 as_expr=expr
15215 else
15216 as_expr=false
15217 fi
15218
15219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15220 as_basename=basename
15221 else
15222 as_basename=false
15223 fi
15224
15225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226 as_dirname=dirname
15227 else
15228 as_dirname=false
15229 fi
15230
15231 as_me=`$as_basename -- "$0" ||
15232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15233 X"$0" : 'X\(//\)$' \| \
15234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15235 $as_echo X/"$0" |
15236 sed '/^.*\/\([^/][^/]*\)\/*$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\/\(\/\/\)$/{
15241 s//\1/
15242 q
15243 }
15244 /^X\/\(\/\).*/{
15245 s//\1/
15246 q
15247 }
15248 s/.*/./; q'`
15249
15250 # Avoid depending upon Character Ranges.
15251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15254 as_cr_digits='0123456789'
15255 as_cr_alnum=$as_cr_Letters$as_cr_digits
15256
15257 ECHO_C= ECHO_N= ECHO_T=
15258 case `echo -n x` in #(((((
15259 -n*)
15260 case `echo 'xy\c'` in
15261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15262 xy) ECHO_C='\c';;
15263 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15264 ECHO_T=' ';;
15265 esac;;
15266 *)
15267 ECHO_N='-n';;
15268 esac
15269
15270 rm -f conf$$ conf$$.exe conf$$.file
15271 if test -d conf$$.dir; then
15272 rm -f conf$$.dir/conf$$.file
15273 else
15274 rm -f conf$$.dir
15275 mkdir conf$$.dir 2>/dev/null
15276 fi
15277 if (echo >conf$$.file) 2>/dev/null; then
15278 if ln -s conf$$.file conf$$ 2>/dev/null; then
15279 as_ln_s='ln -s'
15280 # ... but there are two gotchas:
15281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15283 # In both cases, we have to default to `cp -p'.
15284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15285 as_ln_s='cp -p'
15286 elif ln conf$$.file conf$$ 2>/dev/null; then
15287 as_ln_s=ln
15288 else
15289 as_ln_s='cp -p'
15290 fi
15291 else
15292 as_ln_s='cp -p'
15293 fi
15294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15295 rmdir conf$$.dir 2>/dev/null
15296
15297
15298 # as_fn_mkdir_p
15299 # -------------
15300 # Create "$as_dir" as a directory, including parents if necessary.
15301 as_fn_mkdir_p ()
15302 {
15303
15304 case $as_dir in #(
15305 -*) as_dir=./$as_dir;;
15306 esac
15307 test -d "$as_dir" || eval $as_mkdir_p || {
15308 as_dirs=
15309 while :; do
15310 case $as_dir in #(
15311 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15312 *) as_qdir=$as_dir;;
15313 esac
15314 as_dirs="'$as_qdir' $as_dirs"
15315 as_dir=`$as_dirname -- "$as_dir" ||
15316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317 X"$as_dir" : 'X\(//\)[^/]' \| \
15318 X"$as_dir" : 'X\(//\)$' \| \
15319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15320 $as_echo X"$as_dir" |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15322 s//\1/
15323 q
15324 }
15325 /^X\(\/\/\)[^/].*/{
15326 s//\1/
15327 q
15328 }
15329 /^X\(\/\/\)$/{
15330 s//\1/
15331 q
15332 }
15333 /^X\(\/\).*/{
15334 s//\1/
15335 q
15336 }
15337 s/.*/./; q'`
15338 test -d "$as_dir" && break
15339 done
15340 test -z "$as_dirs" || eval "mkdir $as_dirs"
15341 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15342
15343
15344 } # as_fn_mkdir_p
15345 if mkdir -p . 2>/dev/null; then
15346 as_mkdir_p='mkdir -p "$as_dir"'
15347 else
15348 test -d ./-p && rmdir ./-p
15349 as_mkdir_p=false
15350 fi
15351
15352 if test -x / >/dev/null 2>&1; then
15353 as_test_x='test -x'
15354 else
15355 if ls -dL / >/dev/null 2>&1; then
15356 as_ls_L_option=L
15357 else
15358 as_ls_L_option=
15359 fi
15360 as_test_x='
15361 eval sh -c '\''
15362 if test -d "$1"; then
15363 test -d "$1/.";
15364 else
15365 case $1 in #(
15366 -*)set "./$1";;
15367 esac;
15368 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15369 ???[sx]*):;;*)false;;esac;fi
15370 '\'' sh
15371 '
15372 fi
15373 as_executable_p=$as_test_x
15374
15375 # Sed expression to map a string onto a valid CPP name.
15376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15377
15378 # Sed expression to map a string onto a valid variable name.
15379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15380
15381
15382 exec 6>&1
15383 ## ----------------------------------- ##
15384 ## Main body of $CONFIG_STATUS script. ##
15385 ## ----------------------------------- ##
15386 _ASEOF
15387 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15388
15389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15390 # Save the log message, to keep $0 and so on meaningful, and to
15391 # report actual input values of CONFIG_FILES etc. instead of their
15392 # values after options handling.
15393 ac_log="
15394 This file was extended by $as_me, which was
15395 generated by GNU Autoconf 2.64. Invocation command line was
15396
15397 CONFIG_FILES = $CONFIG_FILES
15398 CONFIG_HEADERS = $CONFIG_HEADERS
15399 CONFIG_LINKS = $CONFIG_LINKS
15400 CONFIG_COMMANDS = $CONFIG_COMMANDS
15401 $ $0 $@
15402
15403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15404 "
15405
15406 _ACEOF
15407
15408 case $ac_config_files in *"
15409 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15410 esac
15411
15412
15413
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 # Files that config.status was made for.
15416 config_files="$ac_config_files"
15417
15418 _ACEOF
15419
15420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421 ac_cs_usage="\
15422 \`$as_me' instantiates files and other configuration actions
15423 from templates according to the current configuration. Unless the files
15424 and actions are specified as TAGs, all are instantiated by default.
15425
15426 Usage: $0 [OPTION]... [TAG]...
15427
15428 -h, --help print this help, then exit
15429 -V, --version print version number and configuration settings, then exit
15430 -q, --quiet, --silent
15431 do not print progress messages
15432 -d, --debug don't remove temporary files
15433 --recheck update $as_me by reconfiguring in the same conditions
15434 --file=FILE[:TEMPLATE]
15435 instantiate the configuration file FILE
15436
15437 Configuration files:
15438 $config_files
15439
15440 Report bugs to the package provider."
15441
15442 _ACEOF
15443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15444 ac_cs_version="\\
15445 config.status
15446 configured by $0, generated by GNU Autoconf 2.64,
15447 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15448
15449 Copyright (C) 2009 Free Software Foundation, Inc.
15450 This config.status script is free software; the Free Software Foundation
15451 gives unlimited permission to copy, distribute and modify it."
15452
15453 ac_pwd='$ac_pwd'
15454 srcdir='$srcdir'
15455 INSTALL='$INSTALL'
15456 AWK='$AWK'
15457 test -n "\$AWK" || AWK=awk
15458 _ACEOF
15459
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 # The default lists apply if the user does not specify any file.
15462 ac_need_defaults=:
15463 while test $# != 0
15464 do
15465 case $1 in
15466 --*=*)
15467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15469 ac_shift=:
15470 ;;
15471 *)
15472 ac_option=$1
15473 ac_optarg=$2
15474 ac_shift=shift
15475 ;;
15476 esac
15477
15478 case $ac_option in
15479 # Handling of the options.
15480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15481 ac_cs_recheck=: ;;
15482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15483 $as_echo "$ac_cs_version"; exit ;;
15484 --debug | --debu | --deb | --de | --d | -d )
15485 debug=: ;;
15486 --file | --fil | --fi | --f )
15487 $ac_shift
15488 case $ac_optarg in
15489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15490 esac
15491 as_fn_append CONFIG_FILES " '$ac_optarg'"
15492 ac_need_defaults=false;;
15493 --he | --h | --help | --hel | -h )
15494 $as_echo "$ac_cs_usage"; exit ;;
15495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15497 ac_cs_silent=: ;;
15498
15499 # This is an error.
15500 -*) as_fn_error "unrecognized option: \`$1'
15501 Try \`$0 --help' for more information." ;;
15502
15503 *) as_fn_append ac_config_targets " $1"
15504 ac_need_defaults=false ;;
15505
15506 esac
15507 shift
15508 done
15509
15510 ac_configure_extra_args=
15511
15512 if $ac_cs_silent; then
15513 exec 6>/dev/null
15514 ac_configure_extra_args="$ac_configure_extra_args --silent"
15515 fi
15516
15517 _ACEOF
15518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15519 if \$ac_cs_recheck; then
15520 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15521 shift
15522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15523 CONFIG_SHELL='$SHELL'
15524 export CONFIG_SHELL
15525 exec "\$@"
15526 fi
15527
15528 _ACEOF
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 exec 5>>config.log
15531 {
15532 echo
15533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15534 ## Running $as_me. ##
15535 _ASBOX
15536 $as_echo "$ac_log"
15537 } >&5
15538
15539 _ACEOF
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 #
15542 # INIT-COMMANDS
15543 #
15544 extrasub_build="$extrasub_build"
15545 extrasub_host="$extrasub_host"
15546 extrasub_target="$extrasub_target"
15547
15548 _ACEOF
15549
15550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551
15552 # Handling of arguments.
15553 for ac_config_target in $ac_config_targets
15554 do
15555 case $ac_config_target in
15556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15557
15558 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15559 esac
15560 done
15561
15562
15563 # If the user did not use the arguments to specify the items to instantiate,
15564 # then the envvar interface is used. Set only those that are not.
15565 # We use the long form for the default assignment because of an extremely
15566 # bizarre bug on SunOS 4.1.3.
15567 if $ac_need_defaults; then
15568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15569 fi
15570
15571 # Have a temporary directory for convenience. Make it in the build tree
15572 # simply because there is no reason against having it here, and in addition,
15573 # creating and moving files from /tmp can sometimes cause problems.
15574 # Hook for its removal unless debugging.
15575 # Note that there is a small window in which the directory will not be cleaned:
15576 # after its creation but before its name has been assigned to `$tmp'.
15577 $debug ||
15578 {
15579 tmp=
15580 trap 'exit_status=$?
15581 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15582 ' 0
15583 trap 'as_fn_exit 1' 1 2 13 15
15584 }
15585 # Create a (secure) tmp directory for tmp files.
15586
15587 {
15588 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15589 test -n "$tmp" && test -d "$tmp"
15590 } ||
15591 {
15592 tmp=./conf$$-$RANDOM
15593 (umask 077 && mkdir "$tmp")
15594 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15595
15596 # Set up the scripts for CONFIG_FILES section.
15597 # No need to generate them if there are no CONFIG_FILES.
15598 # This happens for instance with `./config.status config.h'.
15599 if test -n "$CONFIG_FILES"; then
15600
15601 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15602 ac_cs_awk_getline=:
15603 ac_cs_awk_pipe_init=
15604 ac_cs_awk_read_file='
15605 while ((getline aline < (F[key])) > 0)
15606 print(aline)
15607 close(F[key])'
15608 ac_cs_awk_pipe_fini=
15609 else
15610 ac_cs_awk_getline=false
15611 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15612 ac_cs_awk_read_file='
15613 print "|#_!!_#|"
15614 print "cat " F[key] " &&"
15615 '$ac_cs_awk_pipe_init
15616 # The final `:' finishes the AND list.
15617 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15618 fi
15619 ac_cr=`echo X | tr X '\015'`
15620 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15621 # But we know of no other shell where ac_cr would be empty at this
15622 # point, so we can use a bashism as a fallback.
15623 if test "x$ac_cr" = x; then
15624 eval ac_cr=\$\'\\r\'
15625 fi
15626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15628 ac_cs_awk_cr='\r'
15629 else
15630 ac_cs_awk_cr=$ac_cr
15631 fi
15632
15633 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15634 _ACEOF
15635
15636 # Create commands to substitute file output variables.
15637 {
15638 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15639 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15640 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15641 echo "_ACAWK" &&
15642 echo "_ACEOF"
15643 } >conf$$files.sh &&
15644 . ./conf$$files.sh ||
15645 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15646 rm -f conf$$files.sh
15647
15648 {
15649 echo "cat >conf$$subs.awk <<_ACEOF" &&
15650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15651 echo "_ACEOF"
15652 } >conf$$subs.sh ||
15653 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15655 ac_delim='%!_!# '
15656 for ac_last_try in false false false false false :; do
15657 . ./conf$$subs.sh ||
15658 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15659
15660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15661 if test $ac_delim_n = $ac_delim_num; then
15662 break
15663 elif $ac_last_try; then
15664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15665 else
15666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15667 fi
15668 done
15669 rm -f conf$$subs.sh
15670
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15673 _ACEOF
15674 sed -n '
15675 h
15676 s/^/S["/; s/!.*/"]=/
15677 p
15678 g
15679 s/^[^!]*!//
15680 :repl
15681 t repl
15682 s/'"$ac_delim"'$//
15683 t delim
15684 :nl
15685 h
15686 s/\(.\{148\}\).*/\1/
15687 t more1
15688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15689 p
15690 n
15691 b repl
15692 :more1
15693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15694 p
15695 g
15696 s/.\{148\}//
15697 t nl
15698 :delim
15699 h
15700 s/\(.\{148\}\).*/\1/
15701 t more2
15702 s/["\\]/\\&/g; s/^/"/; s/$/"/
15703 p
15704 b
15705 :more2
15706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707 p
15708 g
15709 s/.\{148\}//
15710 t delim
15711 ' <conf$$subs.awk | sed '
15712 /^[^""]/{
15713 N
15714 s/\n//
15715 }
15716 ' >>$CONFIG_STATUS || ac_write_fail=1
15717 rm -f conf$$subs.awk
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 _ACAWK
15720 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15721 for (key in S) S_is_set[key] = 1
15722 FS = ""
15723 \$ac_cs_awk_pipe_init
15724 }
15725 {
15726 line = $ 0
15727 nfields = split(line, field, "@")
15728 substed = 0
15729 len = length(field[1])
15730 for (i = 2; i < nfields; i++) {
15731 key = field[i]
15732 keylen = length(key)
15733 if (S_is_set[key]) {
15734 value = S[key]
15735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15736 len += length(value) + length(field[++i])
15737 substed = 1
15738 } else
15739 len += 1 + keylen
15740 }
15741 if (nfields == 3 && !substed) {
15742 key = field[2]
15743 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15744 \$ac_cs_awk_read_file
15745 next
15746 }
15747 }
15748 print line
15749 }
15750 \$ac_cs_awk_pipe_fini
15751 _ACAWK
15752 _ACEOF
15753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15754 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15755 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15756 else
15757 cat
15758 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15759 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15760 _ACEOF
15761
15762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15764 # trailing colons and then remove the whole line if VPATH becomes empty
15765 # (actually we leave an empty line to preserve line numbers).
15766 if test "x$srcdir" = x.; then
15767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15768 s/:*\$(srcdir):*/:/
15769 s/:*\${srcdir}:*/:/
15770 s/:*@srcdir@:*/:/
15771 s/^\([^=]*=[ ]*\):*/\1/
15772 s/:*$//
15773 s/^[^=]*=[ ]*$//
15774 }'
15775 fi
15776
15777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15778 fi # test -n "$CONFIG_FILES"
15779
15780
15781 eval set X " :F $CONFIG_FILES "
15782 shift
15783 for ac_tag
15784 do
15785 case $ac_tag in
15786 :[FHLC]) ac_mode=$ac_tag; continue;;
15787 esac
15788 case $ac_mode$ac_tag in
15789 :[FHL]*:*);;
15790 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15791 :[FH]-) ac_tag=-:-;;
15792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15793 esac
15794 ac_save_IFS=$IFS
15795 IFS=:
15796 set x $ac_tag
15797 IFS=$ac_save_IFS
15798 shift
15799 ac_file=$1
15800 shift
15801
15802 case $ac_mode in
15803 :L) ac_source=$1;;
15804 :[FH])
15805 ac_file_inputs=
15806 for ac_f
15807 do
15808 case $ac_f in
15809 -) ac_f="$tmp/stdin";;
15810 *) # Look for the file first in the build tree, then in the source tree
15811 # (if the path is not absolute). The absolute path cannot be DOS-style,
15812 # because $ac_f cannot contain `:'.
15813 test -f "$ac_f" ||
15814 case $ac_f in
15815 [\\/$]*) false;;
15816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15817 esac ||
15818 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15819 esac
15820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15821 as_fn_append ac_file_inputs " '$ac_f'"
15822 done
15823
15824 # Let's still pretend it is `configure' which instantiates (i.e., don't
15825 # use $as_me), people would be surprised to read:
15826 # /* config.h. Generated by config.status. */
15827 configure_input='Generated from '`
15828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15829 `' by configure.'
15830 if test x"$ac_file" != x-; then
15831 configure_input="$ac_file. $configure_input"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15833 $as_echo "$as_me: creating $ac_file" >&6;}
15834 fi
15835 # Neutralize special characters interpreted by sed in replacement strings.
15836 case $configure_input in #(
15837 *\&* | *\|* | *\\* )
15838 ac_sed_conf_input=`$as_echo "$configure_input" |
15839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15840 *) ac_sed_conf_input=$configure_input;;
15841 esac
15842
15843 case $ac_tag in
15844 *:-:* | *:-) cat >"$tmp/stdin" \
15845 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15846 esac
15847 ;;
15848 esac
15849
15850 ac_dir=`$as_dirname -- "$ac_file" ||
15851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15852 X"$ac_file" : 'X\(//\)[^/]' \| \
15853 X"$ac_file" : 'X\(//\)$' \| \
15854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15855 $as_echo X"$ac_file" |
15856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15857 s//\1/
15858 q
15859 }
15860 /^X\(\/\/\)[^/].*/{
15861 s//\1/
15862 q
15863 }
15864 /^X\(\/\/\)$/{
15865 s//\1/
15866 q
15867 }
15868 /^X\(\/\).*/{
15869 s//\1/
15870 q
15871 }
15872 s/.*/./; q'`
15873 as_dir="$ac_dir"; as_fn_mkdir_p
15874 ac_builddir=.
15875
15876 case "$ac_dir" in
15877 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15878 *)
15879 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15880 # A ".." for each directory in $ac_dir_suffix.
15881 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15882 case $ac_top_builddir_sub in
15883 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15884 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15885 esac ;;
15886 esac
15887 ac_abs_top_builddir=$ac_pwd
15888 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15889 # for backward compatibility:
15890 ac_top_builddir=$ac_top_build_prefix
15891
15892 case $srcdir in
15893 .) # We are building in place.
15894 ac_srcdir=.
15895 ac_top_srcdir=$ac_top_builddir_sub
15896 ac_abs_top_srcdir=$ac_pwd ;;
15897 [\\/]* | ?:[\\/]* ) # Absolute name.
15898 ac_srcdir=$srcdir$ac_dir_suffix;
15899 ac_top_srcdir=$srcdir
15900 ac_abs_top_srcdir=$srcdir ;;
15901 *) # Relative name.
15902 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15903 ac_top_srcdir=$ac_top_build_prefix$srcdir
15904 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15905 esac
15906 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15907
15908
15909 case $ac_mode in
15910 :F)
15911 #
15912 # CONFIG_FILE
15913 #
15914
15915 case $INSTALL in
15916 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15917 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15918 esac
15919 _ACEOF
15920
15921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15922 # If the template does not know about datarootdir, expand it.
15923 # FIXME: This hack should be removed a few years after 2.60.
15924 ac_datarootdir_hack=; ac_datarootdir_seen=
15925 ac_sed_dataroot='
15926 /datarootdir/ {
15927 p
15928 q
15929 }
15930 /@datadir@/p
15931 /@docdir@/p
15932 /@infodir@/p
15933 /@localedir@/p
15934 /@mandir@/p'
15935 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15936 *datarootdir*) ac_datarootdir_seen=yes;;
15937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15939 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15940 _ACEOF
15941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15942 ac_datarootdir_hack='
15943 s&@datadir@&$datadir&g
15944 s&@docdir@&$docdir&g
15945 s&@infodir@&$infodir&g
15946 s&@localedir@&$localedir&g
15947 s&@mandir@&$mandir&g
15948 s&\\\${datarootdir}&$datarootdir&g' ;;
15949 esac
15950 _ACEOF
15951
15952 # Neutralize VPATH when `$srcdir' = `.'.
15953 # Shell code in configure.ac might set extrasub.
15954 # FIXME: do we really want to maintain this feature?
15955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 ac_sed_extra="$ac_vpsub
15957 $extrasub
15958 _ACEOF
15959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15960 :t
15961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15962 s|@configure_input@|$ac_sed_conf_input|;t t
15963 s&@top_builddir@&$ac_top_builddir_sub&;t t
15964 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15965 s&@srcdir@&$ac_srcdir&;t t
15966 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15967 s&@top_srcdir@&$ac_top_srcdir&;t t
15968 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15969 s&@builddir@&$ac_builddir&;t t
15970 s&@abs_builddir@&$ac_abs_builddir&;t t
15971 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15972 s&@INSTALL@&$ac_INSTALL&;t t
15973 $ac_datarootdir_hack
15974 "
15975 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15976 if $ac_cs_awk_getline; then
15977 $AWK -f "$tmp/subs.awk"
15978 else
15979 $AWK -f "$tmp/subs.awk" | $SHELL
15980 fi >$tmp/out \
15981 || as_fn_error "could not create $ac_file" "$LINENO" 5
15982
15983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15984 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15987 which seems to be undefined. Please make sure it is defined." >&5
15988 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15989 which seems to be undefined. Please make sure it is defined." >&2;}
15990
15991 rm -f "$tmp/stdin"
15992 case $ac_file in
15993 -) cat "$tmp/out" && rm -f "$tmp/out";;
15994 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15995 esac \
15996 || as_fn_error "could not create $ac_file" "$LINENO" 5
15997 ;;
15998
15999
16000
16001 esac
16002
16003
16004 case $ac_file$ac_mode in
16005 "Makefile":F) sed "$extrasub_build" Makefile |
16006 sed "$extrasub_host" |
16007 sed "$extrasub_target" > mf$$
16008 mv -f mf$$ Makefile ;;
16009
16010 esac
16011 done # for ac_tag
16012
16013
16014 as_fn_exit 0
16015 _ACEOF
16016 ac_clean_files=$ac_clean_files_save
16017
16018 test $ac_write_fail = 0 ||
16019 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16020
16021
16022 # configure is writing to config.log, and then calls config.status.
16023 # config.status does its own redirection, appending to config.log.
16024 # Unfortunately, on DOS this fails, as config.log is still kept open
16025 # by configure, so config.status won't be able to write to it; its
16026 # output is simply discarded. So we exec the FD to /dev/null,
16027 # effectively closing config.log, so it can be properly (re)opened and
16028 # appended to by config.status. When coming back to configure, we
16029 # need to make the FD available again.
16030 if test "$no_create" != yes; then
16031 ac_cs_success=:
16032 ac_config_status_args=
16033 test "$silent" = yes &&
16034 ac_config_status_args="$ac_config_status_args --quiet"
16035 exec 5>/dev/null
16036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16037 exec 5>>config.log
16038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16039 # would make configure fail if this is the last instruction.
16040 $ac_cs_success || as_fn_exit $?
16041 fi
16042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16045 fi
16046
16047