]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac (mpfr): Remove pre-3.1.0 mpfr compatibility code.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
683 AWK
684 SED
685 LN_S
686 LN
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 with_system_zlib
753 enable_as_accelerator_for
754 enable_offload_targets
755 enable_gold
756 enable_ld
757 enable_compressed_debug_sections
758 enable_libquadmath
759 enable_libquadmath_support
760 enable_libada
761 enable_libssp
762 enable_libstdcxx
763 enable_liboffloadmic
764 enable_static_libjava
765 enable_bootstrap
766 with_mpc
767 with_mpc_include
768 with_mpc_lib
769 with_mpfr_dir
770 with_mpfr
771 with_mpfr_include
772 with_mpfr_lib
773 with_gmp_dir
774 with_gmp
775 with_gmp_include
776 with_gmp_lib
777 with_stage1_libs
778 with_stage1_ldflags
779 with_boot_libs
780 with_boot_ldflags
781 with_isl
782 with_isl_include
783 with_isl_lib
784 enable_isl_version_check
785 enable_lto
786 enable_linker_plugin_configure_flags
787 enable_linker_plugin_flags
788 enable_stage1_languages
789 enable_objc_gc
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
798 enable_werror
799 enable_host_shared
800 '
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CXX
810 CXXFLAGS
811 CCC
812 build_configargs
813 host_configargs
814 target_configargs
815 AR
816 AS
817 DLLTOOL
818 LD
819 LIPO
820 NM
821 RANLIB
822 STRIP
823 WINDRES
824 WINDMC
825 OBJCOPY
826 OBJDUMP
827 READELF
828 CC_FOR_TARGET
829 CXX_FOR_TARGET
830 GCC_FOR_TARGET
831 GCJ_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
847
848
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
870
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
896
897 ac_prev=
898 ac_dashdash=
899 for ac_option
900 do
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
906 fi
907
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
923
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
938
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
943
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
976
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1012
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1017
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1047
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1121
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1387
1388 #
1389 # Report the --help message.
1390 #
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1396
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402 Defaults for the options are specified in brackets.
1403
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1420
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1425
1426 For better control, use the options below.
1427
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
1495 --disable-isl-version-check
1496 disable check for isl version
1497 --enable-lto enable link time optimization support
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
1509 --enable-vtable-verify Enable vtable verification feature
1510 --enable-serial-[{host,target,build}-]configure
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
1520 --enable-werror enable -Werror in bootstrap stage2 and later
1521 --enable-host-shared build host code as shared libraries
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
1527 --with-system-zlib use installed libz
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
1537 --with-mpfr-include=PATH
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
1547 --with-stage1-libs=LIBS libraries for stage1
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
1553 --with-isl=PATH Specify prefix directory for the installed isl
1554 package. Equivalent to
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
1559 --with-build-sysroot=SYSROOT
1560 use sysroot as the system root during the build
1561 --with-debug-prefix-map='A=B C=D ...'
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
1565 --with-build-time-tools=PATH
1566 use given path to find target tools during the build
1567
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
1593 WINDMC WINDMC for the host
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
1596 READELF READELF for the host
1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
1607 GOC_FOR_TARGET
1608 GOC for the target
1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
1627 READELF_FOR_TARGET
1628 READELF for the target
1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.64
1704
1705 Copyright (C) 2009 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1710 fi
1711
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1715
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748 fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752 } # ac_fn_c_try_compile
1753
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1758 {
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790 } # ac_fn_cxx_try_compile
1791
1792 # ac_fn_cxx_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836 } # ac_fn_cxx_try_link
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873 fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882 } # ac_fn_c_try_link
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1886
1887 It was created by $as_me, which was
1888 generated by GNU Autoconf 2.64. Invocation command line was
1889
1890 $ $0 $@
1891
1892 _ACEOF
1893 exec 5>>config.log
1894 {
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1899
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917 _ASUNAME
1918
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1925 done
1926 IFS=$as_save_IFS
1927
1928 } >&5
1929
1930 cat >&5 <<_ACEOF
1931
1932
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1936
1937 _ACEOF
1938
1939
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1950 do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 esac
1961 case $ac_pass in
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 2)
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
1980 as_fn_append ac_configure_args " '$ac_arg'"
1981 ;;
1982 esac
1983 done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1987
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 cat <<\_ASBOX
1999 ## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##
2002 _ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
2005 (
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
2021 (set) 2>&1 |
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
2024 sed -n \
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
2028 *)
2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030 ;;
2031 esac |
2032 sort
2033 )
2034 echo
2035
2036 cat <<\_ASBOX
2037 ## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##
2040 _ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
2054 ## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##
2057 _ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072 ## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##
2075 _ASBOX
2076 echo
2077 cat confdefs.h
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2083 } >&5
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 exit $exit_status
2087 ' 0
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2092
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2095
2096 $as_echo "/* confdefs.h */" > confdefs.h
2097
2098 # Predefined preprocessor variables.
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134 else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2137 fi
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 do
2140 test "x$ac_site_file" = xNONE && continue
2141 if test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file"
2146 fi
2147 done
2148
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2159 fi
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2164 fi
2165
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2175 set,)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,set)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,);;
2184 *)
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213 esac
2214 fi
2215 done
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 fi
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2226
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241 progname=$0
2242 # if PWD already has a value, it is probably wrong.
2243 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245 # Export original configure arguments for use by sub-configures.
2246 # Quote arguments with shell meta charatcers.
2247 TOPLEVEL_CONFIGURE_ARGUMENTS=
2248 set -- "$progname" "$@"
2249 for ac_arg
2250 do
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260 done
2261 if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263 fi
2264 # Remove the initial space we just introduced and, as these will be
2265 # expanded by make, quote '$'.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
2268
2269 # Find the build, host, and target systems.
2270 ac_aux_dir=
2271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2277 fi
2278 done
2279 done
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
2292
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310 fi
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2329
2330
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
2334 esac
2335
2336
2337
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
2341 esac
2342
2343
2344
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
2348 esac
2349
2350
2351
2352
2353 test "$host_noncanonical" = "$target_noncanonical" &&
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
2356 program_transform_name=s,y,y,
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359 $as_echo_n "checking host system type... " >&6; }
2360 if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365 else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368 fi
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372 $as_echo "$ac_cv_host" >&6; }
2373 case $ac_cv_host in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376 esac
2377 host=$ac_cv_host
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_host
2380 shift
2381 host_cpu=$1
2382 host_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 host_os=$*
2387 IFS=$ac_save_IFS
2388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392 $as_echo_n "checking target system type... " >&6; }
2393 if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398 else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405 $as_echo "$ac_cv_target" >&6; }
2406 case $ac_cv_target in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409 esac
2410 target=$ac_cv_target
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_target
2413 shift
2414 target_cpu=$1
2415 target_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 target_os=$*
2420 IFS=$ac_save_IFS
2421 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 # The aliases save the names the user supplied, while $host etc.
2425 # will get canonicalized.
2426 test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
2430
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440
2441
2442
2443 # Get 'install' or 'install-sh' and its variants.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2485 :
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
2504 fi
2505 done
2506 done
2507 ;;
2508 esac
2509
2510 done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2524 fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538 $as_echo_n "checking whether ln works... " >&6; }
2539 if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 rm -f conftestdata_t
2543 echo >conftestdata_f
2544 if ln conftestdata_f conftestdata_t 2>/dev/null
2545 then
2546 acx_cv_prog_LN=ln
2547 else
2548 acx_cv_prog_LN=no
2549 fi
2550 rm -f conftestdata_f conftestdata_t
2551
2552 fi
2553 if test $acx_cv_prog_LN = no; then
2554 LN="cp"
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556 $as_echo "no, using $LN" >&6; }
2557 else
2558 LN="$acx_cv_prog_LN"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2561 fi
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564 $as_echo_n "checking whether ln -s works... " >&6; }
2565 LN_S=$as_ln_s
2566 if test "$LN_S" = "ln -s"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571 $as_echo "no, using $LN_S" >&6; }
2572 fi
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576 if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597 # Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599 case `"$ac_path_SED" --version 2>&1` in
2600 *GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602 *)
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2606 do
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2618 fi
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623 esac
2624
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629 IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 fi
2633 else
2634 ac_cv_path_SED=$SED
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639 $as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2642
2643 for ac_prog in gawk mawk nawk awk
2644 do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2657 do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666 done
2667 done
2668 IFS=$as_save_IFS
2669
2670 fi
2671 fi
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2679 fi
2680
2681
2682 test -n "$AWK" && break
2683 done
2684
2685
2686 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689 # a relative path.
2690 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2692 fi
2693
2694 # Set srcdir to "." if that's what it is.
2695 # This is important for multilib support.
2696 pwd=`${PWDCMD-pwd}`
2697 if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
2699 fi
2700
2701 topsrcdir=$srcpwd
2702
2703 extra_host_args=
2704
2705 ### To add a new directory to the tree, first choose whether it is a target
2706 ### or a host dependent tool. Then put it into the appropriate list
2707 ### (library or tools, host or target), doing a dependency sort.
2708
2709 # Subdirs will be configured in the order listed in build_configdirs,
2710 # configdirs, or target_configdirs; see the serialization section below.
2711
2712 # Dependency sorting is only needed when *configuration* must be done in
2713 # a particular order. In all cases a dependency should be specified in
2714 # the Makefile, whether or not it's implicitly specified here.
2715
2716 # Double entries in build_configdirs, configdirs, or target_configdirs may
2717 # cause circular dependencies and break everything horribly.
2718
2719 # these library is used by various programs built for the build
2720 # environment
2721 #
2722 build_libs="build-libiberty build-libcpp"
2723
2724 # these tools are built for the build environment
2725 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2726
2727 # these libraries are used by various programs built for the host environment
2728 #f
2729 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2730
2731 # these tools are built for the host environment
2732 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733 # know that we are building the simulator.
2734 # binutils, gas and ld appear in that order because it makes sense to run
2735 # "make check" in that particular order.
2736 # If --enable-gold is used, "gold" may replace "ld".
2737 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2738
2739 # libgcj represents the runtime libraries only used by gcj.
2740 libgcj="target-libffi \
2741 target-zlib \
2742 target-libjava"
2743
2744 # these libraries are built for the target environment, and are built after
2745 # the host libraries and the host tools (which may be a cross compiler)
2746 # Note that libiberty is not a target library.
2747 target_libraries="target-libgcc \
2748 target-libbacktrace \
2749 target-libgloss \
2750 target-newlib \
2751 target-libgomp \
2752 target-libcilkrts \
2753 target-liboffloadmic \
2754 target-libatomic \
2755 target-libitm \
2756 target-libstdc++-v3 \
2757 target-libsanitizer \
2758 target-libvtv \
2759 target-libmpx \
2760 target-libssp \
2761 target-libquadmath \
2762 target-libgfortran \
2763 target-boehm-gc \
2764 ${libgcj} \
2765 target-libobjc \
2766 target-libada \
2767 target-libgo"
2768
2769 # these tools are built using the target libraries, and are intended to
2770 # run only in the target environment
2771 #
2772 # note: any program that *uses* libraries that are in the "target_libraries"
2773 # list belongs in this list.
2774 #
2775 target_tools="target-rda"
2776
2777 ################################################################################
2778
2779 ## All tools belong in one of the four categories, and are assigned above
2780 ## We assign ${configdirs} this way to remove all embedded newlines. This
2781 ## is important because configure will choke if they ever get through.
2782 ## ${configdirs} is directories we build using the host tools.
2783 ## ${target_configdirs} is directories we build using the target tools.
2784 configdirs=`echo ${host_libs} ${host_tools}`
2785 target_configdirs=`echo ${target_libraries} ${target_tools}`
2786 build_configdirs=`echo ${build_libs} ${build_tools}`
2787
2788
2789
2790 ################################################################################
2791
2792 srcname="gnu development package"
2793
2794 # This gets set non-empty for some net releases of packages.
2795 appdirs=""
2796
2797 # Define is_cross_compiler to save on calls to 'test'.
2798 is_cross_compiler=
2799 if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
2801 else
2802 is_cross_compiler=yes
2803 fi
2804
2805 # Find the build and target subdir names.
2806
2807 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808 # have matching libraries, they should use host libraries: Makefile.tpl
2809 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810 # However, they still use the build modules, because the corresponding
2811 # host modules (e.g. bison) are only built for the host when bootstrap
2812 # finishes. So:
2813 # - build_subdir is where we find build modules, and never changes.
2814 # - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816 # Prefix 'build-' so this never conflicts with target_subdir.
2817 build_subdir="build-${build_noncanonical}"
2818
2819 # Check whether --with-build-libsubdir was given.
2820 if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
2822 else
2823 build_libsubdir="$build_subdir"
2824 fi
2825
2826 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827 if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830 else
2831 host_subdir=.
2832 fi
2833 # No prefix.
2834 target_subdir=${target_noncanonical}
2835
2836 # Be sure to cover against remnants of an in-tree build.
2837 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 fi
2841
2842 # Skipdirs are removed silently.
2843 skipdirs=
2844 # Noconfigdirs are removed loudly.
2845 noconfigdirs=""
2846
2847 use_gnu_ld=
2848 # Make sure we don't let GNU ld be added if we didn't want it.
2849 if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
2851 noconfigdirs="$noconfigdirs ld gold"
2852 fi
2853
2854 use_gnu_as=
2855 # Make sure we don't let GNU as be added if we didn't want it.
2856 if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
2859 fi
2860
2861 use_included_zlib=
2862
2863 # Check whether --with-system-zlib was given.
2864 if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2866 fi
2867
2868 # Make sure we don't let ZLIB be added if we didn't want it.
2869 if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2872 fi
2873
2874 # some tools are so dependent upon X11 that if we're not building with X,
2875 # it's not even worth trying to configure, much less build, that tool.
2876
2877 case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2879 no)
2880 skipdirs="${skipdirs} tk itcl libgui"
2881 # We won't be able to build gdbtk without X.
2882 enable_gdbtk=no
2883 ;;
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 esac
2886
2887 # Some are only suitable for cross toolchains.
2888 # Remove these if host=target.
2889 cross_only="target-libgloss target-newlib target-opcodes"
2890
2891 case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 esac
2894
2895 # If both --with-headers and --with-libs are specified, default to
2896 # --without-newlib.
2897 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2901 fi
2902 fi
2903
2904 # Recognize --with-newlib/--without-newlib.
2905 case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 esac
2909
2910 # Check whether --enable-as-accelerator-for was given.
2911 if test "${enable_as_accelerator_for+set}" = set; then :
2912 enableval=$enable_as_accelerator_for;
2913 fi
2914
2915
2916 # Check whether --enable-offload-targets was given.
2917 if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2921 fi
2922
2923 else
2924 enable_offload_targets=
2925 fi
2926
2927
2928 # Handle --enable-gold, --enable-ld.
2929 # --disable-gold [--enable-ld]
2930 # Build only ld. Default option.
2931 # --enable-gold [--enable-ld]
2932 # Build both gold and ld. Install gold as "ld.gold", install ld
2933 # as "ld.bfd" and "ld".
2934 # --enable-gold=default [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2936 # install ld as "ld.bfd".
2937 # --enable-gold[=default] --disable-ld
2938 # Build only gold, which is then installed as both "ld.gold" and "ld".
2939 # --enable-gold --enable-ld=default
2940 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941 # and ld.bfd).
2942 # In other words, ld is default
2943 # --enable-gold=default --enable-ld=default
2944 # Error.
2945
2946 default_ld=
2947 # Check whether --enable-gold was given.
2948 if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
2950 else
2951 ENABLE_GOLD=no
2952 fi
2953
2954 case "${ENABLE_GOLD}" in
2955 yes|default)
2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2965 ;;
2966 *)
2967 is_elf=yes
2968 ;;
2969 esac
2970 esac
2971
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
2974 case "${target}" in
2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2980 fi
2981 ENABLE_GOLD=yes
2982 ;;
2983 esac
2984 fi
2985 ;;
2986 no)
2987 ;;
2988 *)
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 ;;
2991 esac
2992
2993 # Check whether --enable-ld was given.
2994 if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996 else
2997 ENABLE_LD=yes
2998 fi
2999
3000
3001 case "${ENABLE_LD}" in
3002 default)
3003 if test x${default_ld} != x; then
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 fi
3006 ;;
3007 yes)
3008 ;;
3009 no)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 fi
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 ;;
3016 *)
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 ;;
3019 esac
3020
3021 # PR gas/19109
3022 # Decide the default method for compressing debug sections.
3023 # Provide a configure time option to override our default.
3024 # Check whether --enable-compressed_debug_sections was given.
3025 if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 fi
3030
3031 else
3032 enable_compressed_debug_sections=
3033 fi
3034
3035
3036 # Configure extra directories which are host specific
3037
3038 case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041 esac
3042
3043 # A target can indicate whether a language isn't supported for some reason.
3044 # Only spaces may be used in this macro; not newlines or tabs.
3045 unsupported_languages=
3046
3047 # Remove more programs from consideration, based on the host or
3048 # target this usually means that a port of the program doesn't
3049 # exist yet.
3050
3051 case "${host}" in
3052 i[3456789]86-*-msdosdjgpp*)
3053 noconfigdirs="$noconfigdirs tcl tk itcl"
3054 ;;
3055 esac
3056
3057
3058 # Check whether --enable-libquadmath was given.
3059 if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061 else
3062 ENABLE_LIBQUADMATH=yes
3063 fi
3064
3065 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3067 fi
3068
3069
3070 # Check whether --enable-libquadmath-support was given.
3071 if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073 else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3075 fi
3076
3077 enable_libquadmath_support=
3078 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3080 fi
3081
3082
3083 # Check whether --enable-libada was given.
3084 if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3086 else
3087 ENABLE_LIBADA=yes
3088 fi
3089
3090 if test "${ENABLE_LIBADA}" != "yes" ; then
3091 noconfigdirs="$noconfigdirs gnattools"
3092 fi
3093
3094 # Check whether --enable-libssp was given.
3095 if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3097 else
3098 ENABLE_LIBSSP=yes
3099 fi
3100
3101
3102 # Check whether --enable-libstdcxx was given.
3103 if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105 else
3106 ENABLE_LIBSTDCXX=default
3107 fi
3108
3109 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111 fi
3112
3113 # If this is accelerator compiler and its target is intelmic we enable
3114 # target liboffloadmic by default. If this is compiler with offloading
3115 # for intelmic we enable host liboffloadmic by default. Otherwise
3116 # liboffloadmic is disabled by default.
3117 # Check whether --enable-liboffloadmic was given.
3118 if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3122 *)
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124 esac
3125 else
3126 if test x"$enable_as_accelerator_for" != x; then
3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 ;;
3132 *)
3133 enable_liboffloadmic=no
3134 ;;
3135 esac
3136 else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 ;;
3142 *)
3143 enable_liboffloadmic=no
3144 ;;
3145 esac
3146 fi
3147 fi
3148
3149
3150
3151 # Save it here so that, even in case of --enable-libgcj, if the Java
3152 # front-end isn't enabled, we still get libgcj disabled.
3153 libgcj_saved=$libgcj
3154 case $enable_libgcj in
3155 yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3160 ;;
3161 no)
3162 # Make sure we get it printed in the list of not supported target libs.
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
3168 ;;
3169 esac
3170
3171 # Check whether --enable-static-libjava was given.
3172 if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174 else
3175 ENABLE_STATIC_LIBJAVA=no
3176 fi
3177
3178 enable_static_libjava=
3179 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3181 fi
3182
3183 if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185 fi
3186
3187
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3190 case "${target}" in
3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3192 ;;
3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3194 ;;
3195 *-*-solaris2* | *-*-hpux11*)
3196 ;;
3197 *-*-darwin* | *-*-aix*)
3198 ;;
3199 nvptx*-*-*)
3200 ;;
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
3205 fi
3206
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222 fi
3223 fi
3224 fi
3225
3226 # Disable libcilkrts on unsupported systems.
3227 if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230 $as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 fi
3243 fi
3244
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 fi
3262 fi
3263
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279 fi
3280 fi
3281 fi
3282
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 fi
3319 fi
3320
3321
3322 # Enable libmpx on supported systems by request.
3323 if test -d ${srcdir}/libmpx; then
3324 if test x$enable_libmpx = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326 $as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3337 fi
3338 fi
3339 fi
3340
3341
3342
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353 esac
3354
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357 avr-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3363 ;;
3364 rl78-*-*)
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
3374 esac
3375
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
3394 esac
3395 fi
3396
3397 # Disable Fortran for some systems.
3398 case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3402 ;;
3403 esac
3404
3405 # Disable Java if libffi is not supported.
3406 case "${target}" in
3407 aarch64-*-*)
3408 ;;
3409 alpha*-*-*)
3410 ;;
3411 arm*-*-*)
3412 ;;
3413 cris-*-*)
3414 ;;
3415 frv-*-*)
3416 ;;
3417 hppa*-*-linux*)
3418 ;;
3419 hppa*-*-hpux*)
3420 ;;
3421 i?86-*-*)
3422 ;;
3423 ia64*-*-*)
3424 ;;
3425 m32r*-*-*)
3426 ;;
3427 m68k-*-*)
3428 ;;
3429 mips*-*-rtems*)
3430 ;;
3431 mips*-*-linux*)
3432 ;;
3433 powerpc*-*-linux*)
3434 ;;
3435 powerpc-*-darwin*)
3436 ;;
3437 powerpc-*-aix* | rs6000-*-aix*)
3438 ;;
3439 powerpc-*-freebsd*)
3440 ;;
3441 powerpc64-*-freebsd*)
3442 ;;
3443 powerpc*-*-rtems*)
3444 ;;
3445 s390-*-* | s390x-*-*)
3446 ;;
3447 sh-*-* | sh[34]*-*-*)
3448 ;;
3449 sparc*-*-*)
3450 ;;
3451 x86_64-*-*)
3452 ;;
3453 *-*-*)
3454 unsupported_languages="$unsupported_languages java"
3455 ;;
3456 esac
3457
3458 # Disable Java, libgcj or related libraries for some systems.
3459 case "${target}" in
3460 powerpc-*-darwin*)
3461 ;;
3462 i[3456789]86-*-darwin*)
3463 ;;
3464 x86_64-*-darwin[912]*)
3465 ;;
3466 *-*-darwin*)
3467 noconfigdirs="$noconfigdirs ${libgcj}"
3468 ;;
3469 *-*-netware*)
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3471 ;;
3472 *-*-rtems*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 ;;
3475 *-*-tpf*)
3476 noconfigdirs="$noconfigdirs ${libgcj}"
3477 ;;
3478 *-*-uclinux*)
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3480 ;;
3481 *-*-vxworks*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3483 ;;
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 ;;
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 ;;
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs ${libgcj}"
3495 ;;
3496 bfin-*-*)
3497 noconfigdirs="$noconfigdirs target-boehm-gc"
3498 ;;
3499 cris-*-* | crisv32-*-*)
3500 unsupported_languages="$unsupported_languages java"
3501 case "${target}" in
3502 *-*-linux*)
3503 ;;
3504 *) # See PR46792 regarding target-libffi.
3505 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3506 esac
3507 ;;
3508 hppa*64*-*-linux*)
3509 # In this case, it's because the hppa64-linux target is for
3510 # the kernel only at this point and has no libc, and thus no
3511 # headers, crt*.o, etc., all of which are needed by these.
3512 unsupported_languages="$unsupported_languages java"
3513 ;;
3514 hppa*64*-*-hpux*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3516 ;;
3517 hppa*-hp-hpux11*)
3518 ;;
3519 hppa*-*-hpux*)
3520 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3521 # build on HP-UX 10.20.
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3523 ;;
3524 ia64*-*-*vms*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
3527 i[3456789]86-w64-mingw*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3529 ;;
3530 i[3456789]86-*-mingw*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 ;;
3533 x86_64-*-mingw*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3535 ;;
3536 mmix-*-*)
3537 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3538 ;;
3539 powerpc-*-aix*)
3540 # copied from rs6000-*-* entry
3541 noconfigdirs="$noconfigdirs ${libgcj}"
3542 ;;
3543 rs6000-*-aix*)
3544 noconfigdirs="$noconfigdirs ${libgcj}"
3545 ;;
3546 ft32-*-*)
3547 noconfigdirs="$noconfigdirs ${libgcj}"
3548 ;;
3549 *-*-lynxos*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
3551 ;;
3552 esac
3553
3554 # Disable the go frontend on systems where it is known to not work. Please keep
3555 # this in sync with contrib/config-list.mk.
3556 case "${target}" in
3557 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3558 unsupported_languages="$unsupported_languages go"
3559 ;;
3560 esac
3561
3562 # Disable libgo for some systems where it is known to not work.
3563 # For testing, you can easily override this with --enable-libgo.
3564 if test x$enable_libgo = x; then
3565 case "${target}" in
3566 *-*-darwin*)
3567 # PR 46986
3568 noconfigdirs="$noconfigdirs target-libgo"
3569 ;;
3570 *-*-cygwin* | *-*-mingw*)
3571 noconfigdirs="$noconfigdirs target-libgo"
3572 ;;
3573 *-*-aix*)
3574 noconfigdirs="$noconfigdirs target-libgo"
3575 ;;
3576 esac
3577 fi
3578
3579 # Default libgloss CPU subdirectory.
3580 libgloss_dir="$target_cpu"
3581
3582 case "${target}" in
3583 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3584 libgloss_dir=wince
3585 ;;
3586 aarch64*-*-* )
3587 libgloss_dir=aarch64
3588 ;;
3589 arm*-*-*)
3590 libgloss_dir=arm
3591 ;;
3592 cris-*-* | crisv32-*-*)
3593 libgloss_dir=cris
3594 ;;
3595 hppa*-*-*)
3596 libgloss_dir=pa
3597 ;;
3598 i[3456789]86-*-*)
3599 libgloss_dir=i386
3600 ;;
3601 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3602 libgloss_dir=m68hc11
3603 ;;
3604 m68*-*-* | fido-*-*)
3605 libgloss_dir=m68k
3606 ;;
3607 mips*-*-*)
3608 libgloss_dir=mips
3609 ;;
3610 powerpc*-*-*)
3611 libgloss_dir=rs6000
3612 ;;
3613 sparc*-*-*)
3614 libgloss_dir=sparc
3615 ;;
3616 esac
3617
3618 # Disable newlib and libgloss for various target OSes.
3619 case "${target}" in
3620 alpha*-dec-osf*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 i[3456789]86-*-linux*)
3624 # This section makes it possible to build newlib natively on linux.
3625 # If we are using a cross compiler then don't configure newlib.
3626 if test x${is_cross_compiler} != xno ; then
3627 noconfigdirs="$noconfigdirs target-newlib"
3628 fi
3629 noconfigdirs="$noconfigdirs target-libgloss"
3630 # If we are not using a cross compiler, do configure newlib.
3631 # Note however, that newlib will only be configured in this situation
3632 # if the --with-newlib option has been given, because otherwise
3633 # 'target-newlib' will appear in skipdirs.
3634 ;;
3635 i[3456789]86-*-rdos*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 sparc-*-sunos4*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-aix*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 *-*-beos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 *-*-chorusos)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
3653 *-*-dragonfly*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 *-*-freebsd*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-lynxos*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
3665 *-*-mingw*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 *-*-netbsd*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-netware*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 *-*-tpf*)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 ;;
3677 *-*-uclinux*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-vxworks*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 esac
3684
3685 case "${target}" in
3686 *-*-chorusos)
3687 ;;
3688 aarch64-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3691 ;;
3692 arm-*-darwin*)
3693 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3695 ;;
3696 powerpc-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3699 ;;
3700 i[3456789]86-*-darwin*)
3701 noconfigdirs="$noconfigdirs ld gprof"
3702 noconfigdirs="$noconfigdirs sim target-rda"
3703 ;;
3704 x86_64-*-darwin[912]*)
3705 noconfigdirs="$noconfigdirs ld gas gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3707 ;;
3708 *-*-darwin*)
3709 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3710 noconfigdirs="$noconfigdirs sim target-rda"
3711 ;;
3712 *-*-dragonfly*)
3713 ;;
3714 *-*-freebsd*)
3715 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3716 && test -f /usr/local/include/gmp.h; then
3717 with_gmp=/usr/local
3718 fi
3719 ;;
3720 *-*-kaos*)
3721 # Remove unsupported stuff on all kaOS configurations.
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 ;;
3724 *-*-netbsd*)
3725 ;;
3726 *-*-netware*)
3727 ;;
3728 *-*-rtems*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3730 # this is not caught below because this stanza matches earlier
3731 case $target in
3732 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3733 esac
3734 ;;
3735 # The tpf target doesn't support gdb yet.
3736 *-*-tpf*)
3737 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3738 ;;
3739 *-*-uclinux*)
3740 noconfigdirs="$noconfigdirs target-rda"
3741 ;;
3742 *-*-vxworks*)
3743 ;;
3744 alpha*-dec-osf*)
3745 # ld works, but does not support shared libraries.
3746 # gas doesn't generate exception information.
3747 noconfigdirs="$noconfigdirs gas ld"
3748 ;;
3749 alpha*-*-*vms*)
3750 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3751 ;;
3752 alpha*-*-*)
3753 # newlib is not 64 bit ready
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 ;;
3756 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3757 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3758 ;;
3759 arc-*-*|arceb-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 ;;
3762 arm-*-pe*)
3763 noconfigdirs="$noconfigdirs target-libgloss"
3764 ;;
3765 arm-*-riscix*)
3766 noconfigdirs="$noconfigdirs ld target-libgloss"
3767 ;;
3768 avr-*-rtems*)
3769 ;;
3770 avr-*-*)
3771 if test x${with_avrlibc} != xno; then
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 fi
3774 ;;
3775 c4x-*-* | tic4x-*-*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3777 ;;
3778 tic54x-*-*)
3779 noconfigdirs="$noconfigdirs target-libgloss gdb"
3780 ;;
3781 d10v-*-*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3783 ;;
3784 d30v-*-*)
3785 noconfigdirs="$noconfigdirs gdb"
3786 ;;
3787 fr30-*-elf*)
3788 noconfigdirs="$noconfigdirs gdb"
3789 ;;
3790 ft32-*-*)
3791 noconfigdirs="$noconfigdirs target-rda gprof"
3792 ;;
3793 moxie-*-*)
3794 noconfigdirs="$noconfigdirs"
3795 ;;
3796 h8300*-*-*)
3797 noconfigdirs="$noconfigdirs target-libgloss"
3798 ;;
3799 h8500-*-*)
3800 noconfigdirs="$noconfigdirs target-libgloss"
3801 ;;
3802 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3803 ;;
3804 hppa*64*-*-hpux*)
3805 noconfigdirs="$noconfigdirs gdb"
3806 ;;
3807 hppa*-*-hpux11*)
3808 noconfigdirs="$noconfigdirs gdb ld"
3809 ;;
3810 hppa*64*-*-linux*)
3811 ;;
3812 hppa*-*-linux*)
3813 ;;
3814 hppa*-*-*elf* | \
3815 hppa*-*-lites* | \
3816 hppa*-*-openbsd* | \
3817 hppa*64*-*-*)
3818 ;;
3819 hppa*-*-pro*)
3820 ;;
3821 hppa*-*-*)
3822 noconfigdirs="$noconfigdirs ld"
3823 ;;
3824 i960-*-*)
3825 noconfigdirs="$noconfigdirs gdb"
3826 ;;
3827 ia64*-*-elf*)
3828 # No gdb support yet.
3829 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3830 ;;
3831 ia64*-**-hpux*)
3832 # No ld support yet.
3833 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3834 ;;
3835 ia64*-*-*vms*)
3836 # No ld support yet.
3837 noconfigdirs="$noconfigdirs libgui itcl ld"
3838 ;;
3839 i[3456789]86-w64-mingw*)
3840 ;;
3841 i[3456789]86-*-mingw*)
3842 target_configdirs="$target_configdirs target-winsup"
3843 ;;
3844 *-*-cygwin*)
3845 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3846 noconfigdirs="$noconfigdirs target-libgloss"
3847 # always build newlib if winsup directory is present.
3848 if test -d "$srcdir/winsup/cygwin"; then
3849 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3850 elif test -d "$srcdir/newlib"; then
3851 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3852 fi
3853 ;;
3854 i[3456789]86-*-pe)
3855 noconfigdirs="$noconfigdirs target-libgloss"
3856 ;;
3857 i[3456789]86-*-sco3.2v5*)
3858 # The linker does not yet know about weak symbols in COFF,
3859 # and is not configured to handle mixed ELF and COFF.
3860 noconfigdirs="$noconfigdirs ld target-libgloss"
3861 ;;
3862 i[3456789]86-*-sco*)
3863 noconfigdirs="$noconfigdirs gprof target-libgloss"
3864 ;;
3865 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3866 noconfigdirs="$noconfigdirs target-libgloss"
3867 ;;
3868 i[3456789]86-*-sysv4*)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3870 ;;
3871 i[3456789]86-*-beos*)
3872 noconfigdirs="$noconfigdirs gdb"
3873 ;;
3874 i[3456789]86-*-rdos*)
3875 noconfigdirs="$noconfigdirs gdb"
3876 ;;
3877 mmix-*-*)
3878 noconfigdirs="$noconfigdirs gdb"
3879 ;;
3880 mt-*-*)
3881 noconfigdirs="$noconfigdirs sim"
3882 ;;
3883 powerpc-*-aix*)
3884 # copied from rs6000-*-* entry
3885 noconfigdirs="$noconfigdirs gprof"
3886 ;;
3887 powerpc*-*-winnt* | powerpc*-*-pe*)
3888 target_configdirs="$target_configdirs target-winsup"
3889 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3890 # always build newlib.
3891 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3892 ;;
3893 # This is temporary until we can link against shared libraries
3894 powerpcle-*-solaris*)
3895 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3896 ;;
3897 powerpc-*-beos*)
3898 noconfigdirs="$noconfigdirs gdb"
3899 ;;
3900 rs6000-*-lynxos*)
3901 noconfigdirs="$noconfigdirs gprof"
3902 ;;
3903 rs6000-*-aix*)
3904 noconfigdirs="$noconfigdirs gprof"
3905 ;;
3906 rs6000-*-*)
3907 noconfigdirs="$noconfigdirs gprof"
3908 ;;
3909 m68k-apollo-*)
3910 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3911 ;;
3912 microblaze*)
3913 noconfigdirs="$noconfigdirs gprof"
3914 ;;
3915 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3916 if test x$with_newlib = xyes; then
3917 noconfigdirs="$noconfigdirs gprof"
3918 fi
3919 ;;
3920 mips*-*-irix5*)
3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 ;;
3923 mips*-*-irix6*)
3924 noconfigdirs="$noconfigdirs gprof target-libgloss"
3925 ;;
3926 mips*-*-bsd*)
3927 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3928 ;;
3929 mips*-*-linux*)
3930 ;;
3931 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3932 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3933 noconfigdirs="$noconfigdirs ld gas gprof"
3934 ;;
3935 mips*-*-*)
3936 noconfigdirs="$noconfigdirs gprof"
3937 ;;
3938 nds32*-*-*)
3939 noconfigdirs="$noconfigdirs gdb"
3940 ;;
3941 nvptx*-*-*)
3942 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3943 ;;
3944 or1k*-*-*)
3945 noconfigdirs="$noconfigdirs gdb"
3946 ;;
3947 sh-*-*)
3948 case "${target}" in
3949 sh*-*-elf)
3950 ;;
3951 *)
3952 noconfigdirs="$noconfigdirs target-libgloss" ;;
3953 esac
3954 ;;
3955 sparc-*-sunos4*)
3956 if test x${is_cross_compiler} = xno ; then
3957 use_gnu_ld=no
3958 fi
3959 ;;
3960 tic6x-*-*)
3961 noconfigdirs="$noconfigdirs sim"
3962 ;;
3963 tilepro*-*-* | tilegx*-*-*)
3964 noconfigdirs="$noconfigdirs sim"
3965 ;;
3966 v810-*-*)
3967 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3968 ;;
3969 vax-*-*)
3970 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3971 ;;
3972 esac
3973
3974 # If we aren't building newlib, then don't build libgloss, since libgloss
3975 # depends upon some newlib header files.
3976 case "${noconfigdirs}" in
3977 *target-libgloss*) ;;
3978 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3979 esac
3980
3981 # Work in distributions that contain no compiler tools, like Autoconf.
3982 host_makefile_frag=/dev/null
3983 if test -d ${srcdir}/config ; then
3984 case "${host}" in
3985 i[3456789]86-*-msdosdjgpp*)
3986 host_makefile_frag="config/mh-djgpp"
3987 ;;
3988 *-cygwin*)
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3991 $as_echo_n "checking to see if cat works as expected... " >&6; }
3992 echo a >cygwin-cat-check
3993 if test `cat cygwin-cat-check` = a ; then
3994 rm cygwin-cat-check
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998 rm cygwin-cat-check
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 as_fn_error "The cat command does not ignore carriage return characters.
4002 Please either mount the build directory in binary mode or run the following
4003 commands before running any configure script:
4004 set -o igncr
4005 export SHELLOPTS
4006 " "$LINENO" 5
4007 fi
4008
4009 host_makefile_frag="config/mh-cygwin"
4010 ;;
4011 *-mingw*)
4012 host_makefile_frag="config/mh-mingw"
4013 ;;
4014 alpha*-linux*)
4015 host_makefile_frag="config/mh-alpha-linux"
4016 ;;
4017 hppa*-hp-hpux10*)
4018 host_makefile_frag="config/mh-pa-hpux10"
4019 ;;
4020 hppa*-hp-hpux*)
4021 host_makefile_frag="config/mh-pa"
4022 ;;
4023 hppa*-*)
4024 host_makefile_frag="config/mh-pa"
4025 ;;
4026 *-*-darwin*)
4027 host_makefile_frag="config/mh-darwin"
4028 ;;
4029 powerpc-*-aix*)
4030 host_makefile_frag="config/mh-ppc-aix"
4031 ;;
4032 rs6000-*-aix*)
4033 host_makefile_frag="config/mh-ppc-aix"
4034 ;;
4035 esac
4036 fi
4037
4038 if test "${build}" != "${host}" ; then
4039 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4040 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4041 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4042 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4043 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4044 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4045 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4046 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4047 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4048 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4049 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4050 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4051 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4052 else
4053 AR_FOR_BUILD="\$(AR)"
4054 AS_FOR_BUILD="\$(AS)"
4055 CC_FOR_BUILD="\$(CC)"
4056 CXX_FOR_BUILD="\$(CXX)"
4057 GCJ_FOR_BUILD="\$(GCJ)"
4058 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4059 GOC_FOR_BUILD="\$(GOC)"
4060 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4061 LD_FOR_BUILD="\$(LD)"
4062 NM_FOR_BUILD="\$(NM)"
4063 RANLIB_FOR_BUILD="\$(RANLIB)"
4064 WINDRES_FOR_BUILD="\$(WINDRES)"
4065 WINDMC_FOR_BUILD="\$(WINDMC)"
4066 fi
4067
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_prog_CC+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -n "$CC"; then
4082 ac_cv_prog_CC="$CC" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4094 fi
4095 done
4096 done
4097 IFS=$as_save_IFS
4098
4099 fi
4100 fi
4101 CC=$ac_cv_prog_CC
4102 if test -n "$CC"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104 $as_echo "$CC" >&6; }
4105 else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4108 fi
4109
4110
4111 fi
4112 if test -z "$ac_cv_prog_CC"; then
4113 ac_ct_CC=$CC
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_ac_ct_CC="gcc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4144 $as_echo "$ac_ct_CC" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4160 fi
4161 else
4162 CC="$ac_cv_prog_CC"
4163 fi
4164
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}cc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_CC+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="${ac_tool_prefix}cc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi
4193 fi
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 fi
4202
4203
4204 fi
4205 fi
4206 if test -z "$CC"; then
4207 # Extract the first word of "cc", so it can be a program name with args.
4208 set dummy cc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_CC+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 ac_prog_rejected=no
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4226 ac_prog_rejected=yes
4227 continue
4228 fi
4229 ac_cv_prog_CC="cc"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 if test $ac_prog_rejected = yes; then
4238 # We found a bogon in the path, so make sure we never use it.
4239 set dummy $ac_cv_prog_CC
4240 shift
4241 if test $# != 0; then
4242 # We chose a different compiler from the bogus one.
4243 # However, it has the same basename, so the bogon will be chosen
4244 # first if we set CC to just the basename; use the full file name.
4245 shift
4246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4247 fi
4248 fi
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 fi
4262 if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in cl.exe
4265 do
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_CC+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287 done
4288 done
4289 IFS=$as_save_IFS
4290
4291 fi
4292 fi
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 $as_echo "$CC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302
4303 test -n "$CC" && break
4304 done
4305 fi
4306 if test -z "$CC"; then
4307 ac_ct_CC=$CC
4308 for ac_prog in cl.exe
4309 do
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_ac_ct_CC="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331 done
4332 done
4333 IFS=$as_save_IFS
4334
4335 fi
4336 fi
4337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4338 if test -n "$ac_ct_CC"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4340 $as_echo "$ac_ct_CC" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 fi
4345
4346
4347 test -n "$ac_ct_CC" && break
4348 done
4349
4350 if test "x$ac_ct_CC" = x; then
4351 CC=""
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354 yes:)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned=yes ;;
4358 esac
4359 CC=$ac_ct_CC
4360 fi
4361 fi
4362
4363 fi
4364
4365
4366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error "no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details." "$LINENO" 5; }
4370
4371 # Provide some information about the compiler.
4372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4373 set X $ac_compile
4374 ac_compiler=$2
4375 for ac_option in --version -v -V -qversion; do
4376 { { ac_try="$ac_compiler $ac_option >&5"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4384 ac_status=$?
4385 if test -s conftest.err; then
4386 sed '10a\
4387 ... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
4390 rm -f conftest.er1 conftest.err
4391 fi
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 done
4395
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398
4399 int
4400 main ()
4401 {
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 ac_clean_files_save=$ac_clean_files
4408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4409 # Try to create an executable without -o first, disregard a.out.
4410 # It will help us diagnose broken compilers, and finding out an intuition
4411 # of exeext.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4413 $as_echo_n "checking for C compiler default output file name... " >&6; }
4414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4415
4416 # The possible output files:
4417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4418
4419 ac_rmfiles=
4420 for ac_file in $ac_files
4421 do
4422 case $ac_file in
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4425 esac
4426 done
4427 rm -f $ac_rmfiles
4428
4429 if { { ac_try="$ac_link_default"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link_default") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4443 # so that the user can short-circuit this test for compilers unknown to
4444 # Autoconf.
4445 for ac_file in $ac_files ''
4446 do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4450 ;;
4451 [ab].out )
4452 # We found the default executable, but exeext='' is most
4453 # certainly right.
4454 break;;
4455 *.* )
4456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4457 then :; else
4458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4459 fi
4460 # We set ac_cv_exeext here because the later test for it is not
4461 # safe: cross compilers may not add the suffix if given an `-o'
4462 # argument, so we may need to know it at that point already.
4463 # Even if this section looks crufty: it has the advantage of
4464 # actually working.
4465 break;;
4466 * )
4467 break;;
4468 esac
4469 done
4470 test "$ac_cv_exeext" = no && ac_cv_exeext=
4471
4472 else
4473 ac_file=''
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476 $as_echo "$ac_file" >&6; }
4477 if test -z "$ac_file"; then :
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 { as_fn_set_status 77
4484 as_fn_error "C compiler cannot create executables
4485 See \`config.log' for more details." "$LINENO" 5; }; }
4486 fi
4487 ac_exeext=$ac_cv_exeext
4488
4489 # Check that the compiler produces executables we can run. If not, either
4490 # the compiler is broken, or we cross compile.
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4492 $as_echo_n "checking whether the C compiler works... " >&6; }
4493 # If not cross compiling, check that we can run a simple program.
4494 if test "$cross_compiling" != yes; then
4495 if { ac_try='./$ac_file'
4496 { { case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; }; then
4506 cross_compiling=no
4507 else
4508 if test "$cross_compiling" = maybe; then
4509 cross_compiling=yes
4510 else
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error "cannot run C compiled programs.
4514 If you meant to cross compile, use \`--host'.
4515 See \`config.log' for more details." "$LINENO" 5; }
4516 fi
4517 fi
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520 $as_echo "yes" >&6; }
4521
4522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4523 ac_clean_files=$ac_clean_files_save
4524 # Check that the compiler produces executables we can run. If not, either
4525 # the compiler is broken, or we cross compile.
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4527 $as_echo_n "checking whether we are cross compiling... " >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4529 $as_echo "$cross_compiling" >&6; }
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4532 $as_echo_n "checking for suffix of executables... " >&6; }
4533 if { { ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_link") 2>&5
4541 ac_status=$?
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; then :
4544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4546 # work properly (i.e., refer to `conftest.exe'), while it won't with
4547 # `rm'.
4548 for ac_file in conftest.exe conftest conftest.*; do
4549 test -f "$ac_file" || continue
4550 case $ac_file in
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 break;;
4554 * ) break;;
4555 esac
4556 done
4557 else
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error "cannot compute suffix of executables: cannot compile and link
4561 See \`config.log' for more details." "$LINENO" 5; }
4562 fi
4563 rm -f conftest$ac_cv_exeext
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4565 $as_echo "$ac_cv_exeext" >&6; }
4566
4567 rm -f conftest.$ac_ext
4568 EXEEXT=$ac_cv_exeext
4569 ac_exeext=$EXEEXT
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4571 $as_echo_n "checking for suffix of object files... " >&6; }
4572 if test "${ac_cv_objext+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577
4578 int
4579 main ()
4580 {
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.o conftest.obj
4587 if { { ac_try="$ac_compile"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 $as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_compile") 2>&5
4595 ac_status=$?
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }; then :
4598 for ac_file in conftest.o conftest.obj conftest.*; do
4599 test -f "$ac_file" || continue;
4600 case $ac_file in
4601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4603 break;;
4604 esac
4605 done
4606 else
4607 $as_echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4612 as_fn_error "cannot compute suffix of object files: cannot compile
4613 See \`config.log' for more details." "$LINENO" 5; }
4614 fi
4615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4618 $as_echo "$ac_cv_objext" >&6; }
4619 OBJEXT=$ac_cv_objext
4620 ac_objext=$OBJEXT
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4623 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628
4629 int
4630 main ()
4631 {
4632 #ifndef __GNUC__
4633 choke me
4634 #endif
4635
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 ac_compiler_gnu=yes
4642 else
4643 ac_compiler_gnu=no
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4650 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4651 if test $ac_compiler_gnu = yes; then
4652 GCC=yes
4653 else
4654 GCC=
4655 fi
4656 ac_test_CFLAGS=${CFLAGS+set}
4657 ac_save_CFLAGS=$CFLAGS
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4659 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4660 if test "${ac_cv_prog_cc_g+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_save_c_werror_flag=$ac_c_werror_flag
4664 ac_c_werror_flag=yes
4665 ac_cv_prog_cc_g=no
4666 CFLAGS="-g"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669
4670 int
4671 main ()
4672 {
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_cv_prog_cc_g=yes
4680 else
4681 CFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684
4685 int
4686 main ()
4687 {
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"; then :
4694
4695 else
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4697 CFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700
4701 int
4702 main ()
4703 {
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_g=yes
4711 fi
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_c_werror_flag=$ac_save_c_werror_flag
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4720 $as_echo "$ac_cv_prog_cc_g" >&6; }
4721 if test "$ac_test_CFLAGS" = set; then
4722 CFLAGS=$ac_save_CFLAGS
4723 elif test $ac_cv_prog_cc_g = yes; then
4724 if test "$GCC" = yes; then
4725 CFLAGS="-g -O2"
4726 else
4727 CFLAGS="-g"
4728 fi
4729 else
4730 if test "$GCC" = yes; then
4731 CFLAGS="-O2"
4732 else
4733 CFLAGS=
4734 fi
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4737 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4738 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 ac_cv_prog_cc_c89=no
4742 ac_save_CC=$CC
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdarg.h>
4746 #include <stdio.h>
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4750 struct buf { int x; };
4751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4752 static char *e (p, i)
4753 char **p;
4754 int i;
4755 {
4756 return p[i];
4757 }
4758 static char *f (char * (*g) (char **, int), char **p, ...)
4759 {
4760 char *s;
4761 va_list v;
4762 va_start (v,p);
4763 s = g (p, va_arg (v,int));
4764 va_end (v);
4765 return s;
4766 }
4767
4768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4769 function prototypes and stuff, but not '\xHH' hex character constants.
4770 These don't provoke an error unfortunately, instead are silently treated
4771 as 'x'. The following induces an error, until -std is added to get
4772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4773 array size at least. It's necessary to write '\x00'==0 to get something
4774 that's true only with -std. */
4775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4776
4777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4778 inside strings and character constants. */
4779 #define FOO(x) 'x'
4780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4781
4782 int test (int i, double x);
4783 struct s1 {int (*f) (int a);};
4784 struct s2 {int (*f) (double a);};
4785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4786 int argc;
4787 char **argv;
4788 int
4789 main ()
4790 {
4791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4792 ;
4793 return 0;
4794 }
4795 _ACEOF
4796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4798 do
4799 CC="$ac_save_CC $ac_arg"
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_prog_cc_c89=$ac_arg
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext
4804 test "x$ac_cv_prog_cc_c89" != "xno" && break
4805 done
4806 rm -f conftest.$ac_ext
4807 CC=$ac_save_CC
4808
4809 fi
4810 # AC_CACHE_VAL
4811 case "x$ac_cv_prog_cc_c89" in
4812 x)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4814 $as_echo "none needed" >&6; } ;;
4815 xno)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4817 $as_echo "unsupported" >&6; } ;;
4818 *)
4819 CC="$CC $ac_cv_prog_cc_c89"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4822 esac
4823 if test "x$ac_cv_prog_cc_c89" != xno; then :
4824
4825 fi
4826
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832
4833 ac_ext=cpp
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4838 if test -z "$CXX"; then
4839 if test -n "$CCC"; then
4840 CXX=$CCC
4841 else
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4844 do
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_CXX+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$CXX"; then
4853 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 CXX=$ac_cv_prog_CXX
4873 if test -n "$CXX"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4875 $as_echo "$CXX" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881
4882 test -n "$CXX" && break
4883 done
4884 fi
4885 if test -z "$CXX"; then
4886 ac_ct_CXX=$CXX
4887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4888 do
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_CXX"; then
4897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CXX="$ac_prog"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4917 if test -n "$ac_ct_CXX"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4919 $as_echo "$ac_ct_CXX" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926 test -n "$ac_ct_CXX" && break
4927 done
4928
4929 if test "x$ac_ct_CXX" = x; then
4930 CXX="g++"
4931 else
4932 case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936 ac_tool_warned=yes ;;
4937 esac
4938 CXX=$ac_ct_CXX
4939 fi
4940 fi
4941
4942 fi
4943 fi
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4946 set X $ac_compile
4947 ac_compiler=$2
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4957 ac_status=$?
4958 if test -s conftest.err; then
4959 sed '10a\
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err >conftest.er1
4962 cat conftest.er1 >&5
4963 rm -f conftest.er1 conftest.err
4964 fi
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4967 done
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4971 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976
4977 int
4978 main ()
4979 {
4980 #ifndef __GNUC__
4981 choke me
4982 #endif
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 if ac_fn_cxx_try_compile "$LINENO"; then :
4989 ac_compiler_gnu=yes
4990 else
4991 ac_compiler_gnu=no
4992 fi
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4995
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4998 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5000 GXX=yes
5001 else
5002 GXX=
5003 fi
5004 ac_test_CXXFLAGS=${CXXFLAGS+set}
5005 ac_save_CXXFLAGS=$CXXFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5007 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5008 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5012 ac_cxx_werror_flag=yes
5013 ac_cv_prog_cxx_g=no
5014 CXXFLAGS="-g"
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017
5018 int
5019 main ()
5020 {
5021
5022 ;
5023 return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_cxx_try_compile "$LINENO"; then :
5027 ac_cv_prog_cxx_g=yes
5028 else
5029 CXXFLAGS=""
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032
5033 int
5034 main ()
5035 {
5036
5037 ;
5038 return 0;
5039 }
5040 _ACEOF
5041 if ac_fn_cxx_try_compile "$LINENO"; then :
5042
5043 else
5044 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5045 CXXFLAGS="-g"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_cxx_try_compile "$LINENO"; then :
5058 ac_cv_prog_cxx_g=yes
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5066 fi
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5068 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5069 if test "$ac_test_CXXFLAGS" = set; then
5070 CXXFLAGS=$ac_save_CXXFLAGS
5071 elif test $ac_cv_prog_cxx_g = yes; then
5072 if test "$GXX" = yes; then
5073 CXXFLAGS="-g -O2"
5074 else
5075 CXXFLAGS="-g"
5076 fi
5077 else
5078 if test "$GXX" = yes; then
5079 CXXFLAGS="-O2"
5080 else
5081 CXXFLAGS=
5082 fi
5083 fi
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089
5090
5091 # We must set the default linker to the linker used by gcc for the correct
5092 # operation of libtool. If LD is not defined and we are using gcc, try to
5093 # set the LD default to the ld used by gcc.
5094 if test -z "$LD"; then
5095 if test "$GCC" = yes; then
5096 case $build in
5097 *-*-mingw*)
5098 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5099 *)
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5101 esac
5102 case $gcc_prog_ld in
5103 # Accept absolute paths.
5104 [\\/]* | [A-Za-z]:[\\/]*)
5105 LD="$gcc_prog_ld" ;;
5106 esac
5107 fi
5108 fi
5109
5110 # Check whether -static-libstdc++ -static-libgcc is supported.
5111 have_static_libs=no
5112 if test "$GCC" = yes; then
5113 saved_LDFLAGS="$LDFLAGS"
5114
5115 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5117 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5118 ac_ext=cpp
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127
5128 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5129 #error -static-libstdc++ not implemented
5130 #endif
5131 int main() {}
5132 _ACEOF
5133 if ac_fn_cxx_try_link "$LINENO"; then :
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135 $as_echo "yes" >&6; }; have_static_libs=yes
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148
5149 LDFLAGS="$saved_LDFLAGS"
5150 fi
5151
5152
5153
5154
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$GNATBIND"; then
5164 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 GNATBIND=$ac_cv_prog_GNATBIND
5184 if test -n "$GNATBIND"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5186 $as_echo "$GNATBIND" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 fi
5194 if test -z "$ac_cv_prog_GNATBIND"; then
5195 ac_ct_GNATBIND=$GNATBIND
5196 # Extract the first word of "gnatbind", so it can be a program name with args.
5197 set dummy gnatbind; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$ac_ct_GNATBIND"; then
5204 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5224 if test -n "$ac_ct_GNATBIND"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5226 $as_echo "$ac_ct_GNATBIND" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232 if test "x$ac_ct_GNATBIND" = x; then
5233 GNATBIND="no"
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241 GNATBIND=$ac_ct_GNATBIND
5242 fi
5243 else
5244 GNATBIND="$ac_cv_prog_GNATBIND"
5245 fi
5246
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$GNATMAKE"; then
5256 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269 done
5270 done
5271 IFS=$as_save_IFS
5272
5273 fi
5274 fi
5275 GNATMAKE=$ac_cv_prog_GNATMAKE
5276 if test -n "$GNATMAKE"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5278 $as_echo "$GNATMAKE" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5282 fi
5283
5284
5285 fi
5286 if test -z "$ac_cv_prog_GNATMAKE"; then
5287 ac_ct_GNATMAKE=$GNATMAKE
5288 # Extract the first word of "gnatmake", so it can be a program name with args.
5289 set dummy gnatmake; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$ac_ct_GNATMAKE"; then
5296 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5308 fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313 fi
5314 fi
5315 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5316 if test -n "$ac_ct_GNATMAKE"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5318 $as_echo "$ac_ct_GNATMAKE" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323
5324 if test "x$ac_ct_GNATMAKE" = x; then
5325 GNATMAKE="no"
5326 else
5327 case $cross_compiling:$ac_tool_warned in
5328 yes:)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331 ac_tool_warned=yes ;;
5332 esac
5333 GNATMAKE=$ac_ct_GNATMAKE
5334 fi
5335 else
5336 GNATMAKE="$ac_cv_prog_GNATMAKE"
5337 fi
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5340 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5341 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 cat >conftest.adb <<EOF
5345 procedure conftest is begin null; end conftest;
5346 EOF
5347 acx_cv_cc_gcc_supports_ada=no
5348 # There is a bug in old released versions of GCC which causes the
5349 # driver to exit successfully when the appropriate language module
5350 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5351 # Therefore we must check for the error message as well as an
5352 # unsuccessful exit.
5353 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5354 # given a .adb file, but produce no object file. So we must check
5355 # if an object file was really produced to guard against this.
5356 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5357 if test x"$errors" = x && test -f conftest.$ac_objext; then
5358 acx_cv_cc_gcc_supports_ada=yes
5359 fi
5360 rm -f conftest.*
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5363 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5364
5365 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5366 have_gnat=yes
5367 else
5368 have_gnat=no
5369 fi
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5372 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5373 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 echo abfoo >t1
5377 echo cdfoo >t2
5378 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5379 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5380 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5381 :
5382 else
5383 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5384 fi
5385 fi
5386 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5387 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5388 :
5389 else
5390 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5391 fi
5392 fi
5393 rm t1 t2
5394
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5397 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5398 do_compare="$gcc_cv_prog_cmp_skip"
5399
5400
5401
5402 # Check whether --enable-bootstrap was given.
5403 if test "${enable_bootstrap+set}" = set; then :
5404 enableval=$enable_bootstrap;
5405 else
5406 enable_bootstrap=default
5407 fi
5408
5409
5410 # Issue errors and warnings for invalid/strange bootstrap combinations.
5411 if test -r $srcdir/gcc/configure; then
5412 have_compiler=yes
5413 else
5414 have_compiler=no
5415 fi
5416
5417 case "$have_compiler:$host:$target:$enable_bootstrap" in
5418 *:*:*:no) ;;
5419
5420 # Default behavior. Enable bootstrap if we have a compiler
5421 # and we are in a native configuration.
5422 yes:$build:$build:default)
5423 enable_bootstrap=yes ;;
5424
5425 *:*:*:default)
5426 enable_bootstrap=no ;;
5427
5428 # We have a compiler and we are in a native configuration, bootstrap is ok
5429 yes:$build:$build:yes)
5430 ;;
5431
5432 # Other configurations, but we have a compiler. Assume the user knows
5433 # what he's doing.
5434 yes:*:*:yes)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5436 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5437 ;;
5438
5439 # No compiler: if they passed --enable-bootstrap explicitly, fail
5440 no:*:*:yes)
5441 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5442
5443 # Fail if wrong command line
5444 *)
5445 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5446 ;;
5447 esac
5448
5449 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5450 # C++98 compiler can still start the bootstrap.
5451 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5452 CXX="$CXX -std=gnu++98"
5453 fi
5454
5455 # Used for setting $lt_cv_objdir
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5457 $as_echo_n "checking for objdir... " >&6; }
5458 if test "${lt_cv_objdir+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 rm -f .libs 2>/dev/null
5462 mkdir .libs 2>/dev/null
5463 if test -d .libs; then
5464 lt_cv_objdir=.libs
5465 else
5466 # MS-DOS does not allow filenames that begin with a dot.
5467 lt_cv_objdir=_libs
5468 fi
5469 rmdir .libs 2>/dev/null
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5472 $as_echo "$lt_cv_objdir" >&6; }
5473 objdir=$lt_cv_objdir
5474
5475
5476
5477
5478
5479 cat >>confdefs.h <<_ACEOF
5480 #define LT_OBJDIR "$lt_cv_objdir/"
5481 _ACEOF
5482
5483
5484
5485 # Check for GMP, MPFR and MPC
5486 gmplibs="-lmpc -lmpfr -lgmp"
5487 gmpinc=
5488 have_gmp=no
5489
5490 # Specify a location for mpc
5491 # check for this first so it ends up on the link line before mpfr.
5492
5493 # Check whether --with-mpc was given.
5494 if test "${with_mpc+set}" = set; then :
5495 withval=$with_mpc;
5496 fi
5497
5498
5499 # Check whether --with-mpc-include was given.
5500 if test "${with_mpc_include+set}" = set; then :
5501 withval=$with_mpc_include;
5502 fi
5503
5504
5505 # Check whether --with-mpc-lib was given.
5506 if test "${with_mpc_lib+set}" = set; then :
5507 withval=$with_mpc_lib;
5508 fi
5509
5510
5511 if test "x$with_mpc" != x; then
5512 gmplibs="-L$with_mpc/lib $gmplibs"
5513 gmpinc="-I$with_mpc/include $gmpinc"
5514 fi
5515 if test "x$with_mpc_include" != x; then
5516 gmpinc="-I$with_mpc_include $gmpinc"
5517 fi
5518 if test "x$with_mpc_lib" != x; then
5519 gmplibs="-L$with_mpc_lib $gmplibs"
5520 fi
5521 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5522 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5523 gmpinc='-I$$s/mpc/src '"$gmpinc"
5524 # Do not test the mpc version. Assume that it is sufficient, since
5525 # it is in the source tree, and the library has not been built yet
5526 # but it would be included on the link line in the version check below
5527 # hence making the test fail.
5528 have_gmp=yes
5529 fi
5530
5531 # Specify a location for mpfr
5532 # check for this first so it ends up on the link line before gmp.
5533
5534 # Check whether --with-mpfr-dir was given.
5535 if test "${with_mpfr_dir+set}" = set; then :
5536 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5537 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5538 fi
5539
5540
5541
5542 # Check whether --with-mpfr was given.
5543 if test "${with_mpfr+set}" = set; then :
5544 withval=$with_mpfr;
5545 fi
5546
5547
5548 # Check whether --with-mpfr-include was given.
5549 if test "${with_mpfr_include+set}" = set; then :
5550 withval=$with_mpfr_include;
5551 fi
5552
5553
5554 # Check whether --with-mpfr-lib was given.
5555 if test "${with_mpfr_lib+set}" = set; then :
5556 withval=$with_mpfr_lib;
5557 fi
5558
5559
5560 if test "x$with_mpfr" != x; then
5561 gmplibs="-L$with_mpfr/lib $gmplibs"
5562 gmpinc="-I$with_mpfr/include $gmpinc"
5563 fi
5564 if test "x$with_mpfr_include" != x; then
5565 gmpinc="-I$with_mpfr_include $gmpinc"
5566 fi
5567 if test "x$with_mpfr_lib" != x; then
5568 gmplibs="-L$with_mpfr_lib $gmplibs"
5569 fi
5570 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5571 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5572 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5573 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5574 # Do not test the mpfr version. Assume that it is sufficient, since
5575 # it is in the source tree, and the library has not been built yet
5576 # but it would be included on the link line in the version check below
5577 # hence making the test fail.
5578 have_gmp=yes
5579 fi
5580
5581 # Specify a location for gmp
5582
5583 # Check whether --with-gmp-dir was given.
5584 if test "${with_gmp_dir+set}" = set; then :
5585 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5586 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5587 fi
5588
5589
5590
5591 # Check whether --with-gmp was given.
5592 if test "${with_gmp+set}" = set; then :
5593 withval=$with_gmp;
5594 fi
5595
5596
5597 # Check whether --with-gmp-include was given.
5598 if test "${with_gmp_include+set}" = set; then :
5599 withval=$with_gmp_include;
5600 fi
5601
5602
5603 # Check whether --with-gmp-lib was given.
5604 if test "${with_gmp_lib+set}" = set; then :
5605 withval=$with_gmp_lib;
5606 fi
5607
5608
5609
5610 if test "x$with_gmp" != x; then
5611 gmplibs="-L$with_gmp/lib $gmplibs"
5612 gmpinc="-I$with_gmp/include $gmpinc"
5613 fi
5614 if test "x$with_gmp_include" != x; then
5615 gmpinc="-I$with_gmp_include $gmpinc"
5616 fi
5617 if test "x$with_gmp_lib" != x; then
5618 gmplibs="-L$with_gmp_lib $gmplibs"
5619 fi
5620 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5621 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5622 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5623 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5624 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5625 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5626 # Do not test the gmp version. Assume that it is sufficient, since
5627 # it is in the source tree, and the library has not been built yet
5628 # but it would be included on the link line in the version check below
5629 # hence making the test fail.
5630 have_gmp=yes
5631 fi
5632
5633 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5634 have_gmp=yes
5635 saved_CFLAGS="$CFLAGS"
5636 CFLAGS="$CFLAGS $gmpinc"
5637 # Check for the recommended and required versions of GMP.
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5639 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5640
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include "gmp.h"
5644 int
5645 main ()
5646 {
5647
5648 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5649 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5650 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5651 choke me
5652 #endif
5653
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <gmp.h>
5662 int
5663 main ()
5664 {
5665
5666 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5667 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5668 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5669 choke me
5670 #endif
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5681 $as_echo "buggy but acceptable" >&6; }
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }; have_gmp=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689
5690 # If we have GMP, check the MPFR version.
5691 if test x"$have_gmp" = xyes; then
5692 # Check for the recommended and required versions of MPFR.
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5694 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <gmp.h>
5698 #include <mpfr.h>
5699 int
5700 main ()
5701 {
5702
5703 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5704 choke me
5705 #endif
5706
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <gmp.h>
5715 #include <mpfr.h>
5716 int
5717 main ()
5718 {
5719
5720 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5721 choke me
5722 #endif
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5733 $as_echo "buggy but acceptable" >&6; }
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }; have_gmp=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742
5743 # Check for the MPC header version.
5744 if test x"$have_gmp" = xyes ; then
5745 # Check for the recommended and required versions of MPC.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5747 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <mpc.h>
5751 int
5752 main ()
5753 {
5754
5755 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5756 choke me
5757 #endif
5758
5759 ;
5760 return 0;
5761 }
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"; then :
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #include <mpc.h>
5767 int
5768 main ()
5769 {
5770
5771 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5772 choke me
5773 #endif
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5784 $as_echo "buggy but acceptable" >&6; }
5785 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }; have_gmp=no
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 fi
5793
5794 # Now check the MPFR library.
5795 if test x"$have_gmp" = xyes; then
5796 saved_LIBS="$LIBS"
5797 LIBS="$LIBS $gmplibs"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5799 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5802 #include <mpc.h>
5803 int
5804 main ()
5805 {
5806
5807 mpfr_t n;
5808 mpfr_t x;
5809 mpc_t c;
5810 int t;
5811 mpfr_init (n);
5812 mpfr_init (x);
5813 mpfr_atan2 (n, n, x, GMP_RNDN);
5814 mpfr_erfc (n, x, GMP_RNDN);
5815 mpfr_subnormalize (x, t, GMP_RNDN);
5816 mpfr_clear(n);
5817 mpfr_clear(x);
5818 mpc_init2 (c, 53);
5819 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5820 mpc_cosh (c, c, MPC_RNDNN);
5821 mpc_pow (c, c, c, MPC_RNDNN);
5822 mpc_acosh (c, c, MPC_RNDNN);
5823 mpc_clear (c);
5824
5825 ;
5826 return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_c_try_link "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831 $as_echo "yes" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }; have_gmp=no
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS="$saved_LIBS"
5839 fi
5840
5841 CFLAGS="$saved_CFLAGS"
5842
5843 # The library versions listed in the error message below should match
5844 # the HARD-minimums enforced above.
5845 if test x$have_gmp != xyes; then
5846 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5847 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5848 their locations. Source code for these libraries can be found at
5849 their respective hosting sites as well as at
5850 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5851 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5852 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5853 make sure that you have installed both the libraries and the header
5854 files. They may be located in separate packages." "$LINENO" 5
5855 fi
5856 fi
5857
5858 # Flags needed for both GMP, MPFR and/or MPC.
5859
5860
5861
5862
5863
5864
5865
5866 # Libraries to use for stage1 or when not bootstrapping.
5867
5868 # Check whether --with-stage1-libs was given.
5869 if test "${with_stage1_libs+set}" = set; then :
5870 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5871 stage1_libs=
5872 else
5873 stage1_libs=$withval
5874 fi
5875 else
5876 stage1_libs=
5877 fi
5878
5879
5880
5881 # Linker flags to use for stage1 or when not bootstrapping.
5882
5883 # Check whether --with-stage1-ldflags was given.
5884 if test "${with_stage1_ldflags+set}" = set; then :
5885 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5886 stage1_ldflags=
5887 else
5888 stage1_ldflags=$withval
5889 fi
5890 else
5891 stage1_ldflags=
5892 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5893 # if supported. But if the user explicitly specified the libraries to use,
5894 # trust that they are doing what they want.
5895 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5896 stage1_ldflags="-static-libstdc++ -static-libgcc"
5897 fi
5898 fi
5899
5900
5901
5902 # Libraries to use for stage2 and later builds.
5903
5904 # Check whether --with-boot-libs was given.
5905 if test "${with_boot_libs+set}" = set; then :
5906 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5907 poststage1_libs=
5908 else
5909 poststage1_libs=$withval
5910 fi
5911 else
5912 poststage1_libs=
5913 fi
5914
5915
5916
5917 # Linker flags to use for stage2 and later builds.
5918
5919 # Check whether --with-boot-ldflags was given.
5920 if test "${with_boot_ldflags+set}" = set; then :
5921 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5922 poststage1_ldflags=
5923 else
5924 poststage1_ldflags=$withval
5925 fi
5926 else
5927 poststage1_ldflags=
5928 # In stages 2 and 3, default to linking libstdc++ and libgcc
5929 # statically. But if the user explicitly specified the libraries to
5930 # use, trust that they are doing what they want.
5931 if test "$poststage1_libs" = ""; then
5932 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5933 fi
5934 fi
5935
5936
5937
5938 # GCC GRAPHITE dependency isl.
5939 # Basic setup is inlined here, actual checks are in config/isl.m4
5940
5941
5942 # Check whether --with-isl was given.
5943 if test "${with_isl+set}" = set; then :
5944 withval=$with_isl;
5945 fi
5946
5947
5948 # Treat --without-isl as a request to disable
5949 # GRAPHITE support and skip all following checks.
5950 if test "x$with_isl" != "xno"; then
5951 # Check for isl
5952
5953
5954 # Check whether --with-isl-include was given.
5955 if test "${with_isl_include+set}" = set; then :
5956 withval=$with_isl_include;
5957 fi
5958
5959
5960 # Check whether --with-isl-lib was given.
5961 if test "${with_isl_lib+set}" = set; then :
5962 withval=$with_isl_lib;
5963 fi
5964
5965
5966 # Check whether --enable-isl-version-check was given.
5967 if test "${enable_isl_version_check+set}" = set; then :
5968 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5969 else
5970 ENABLE_ISL_CHECK=yes
5971 fi
5972
5973
5974 # Initialize isllibs and islinc.
5975 case $with_isl in
5976 no)
5977 isllibs=
5978 islinc=
5979 ;;
5980 "" | yes)
5981 ;;
5982 *)
5983 isllibs="-L$with_isl/lib"
5984 islinc="-I$with_isl/include"
5985 ;;
5986 esac
5987 if test "x${with_isl_include}" != x ; then
5988 islinc="-I$with_isl_include"
5989 fi
5990 if test "x${with_isl_lib}" != x; then
5991 isllibs="-L$with_isl_lib"
5992 fi
5993 if test "x${islinc}" = x && test "x${isllibs}" = x \
5994 && test -d ${srcdir}/isl; then
5995 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5996 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5997 ENABLE_ISL_CHECK=no
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5999 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6000 fi
6001
6002 isllibs="${isllibs} -lisl"
6003
6004
6005
6006 if test "${ENABLE_ISL_CHECK}" = yes ; then
6007 _isl_saved_CFLAGS=$CFLAGS
6008 _isl_saved_LDFLAGS=$LDFLAGS
6009 _isl_saved_LIBS=$LIBS
6010
6011 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6012 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6013 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6014
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6016 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <isl/ctx.h>
6020 int
6021 main ()
6022 {
6023 isl_ctx_get_max_operations (isl_ctx_alloc ());
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 gcc_cv_isl=yes
6030 else
6031 gcc_cv_isl=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6036 $as_echo "$gcc_cv_isl" >&6; }
6037
6038 if test "${gcc_cv_isl}" = no ; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6040 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6041 fi
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6044 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <isl/schedule.h>
6048 int
6049 main ()
6050 {
6051 isl_options_set_schedule_serialize_sccs (NULL, 0);
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_link "$LINENO"; then :
6057 ac_has_isl_options_set_schedule_serialize_sccs=yes
6058 else
6059 ac_has_isl_options_set_schedule_serialize_sccs=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext \
6062 conftest$ac_exeext conftest.$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6064 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6065
6066 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6067 islver="0.15"
6068
6069 fi
6070
6071 CFLAGS=$_isl_saved_CFLAGS
6072 LDFLAGS=$_isl_saved_LDFLAGS
6073 LIBS=$_isl_saved_LIBS
6074 fi
6075
6076
6077
6078
6079
6080
6081 if test "x${with_isl}" = xno; then
6082 graphite_requested=no
6083 elif test "x${with_isl}" != x \
6084 || test "x${with_isl_include}" != x \
6085 || test "x${with_isl_lib}" != x ; then
6086 graphite_requested=yes
6087 else
6088 graphite_requested=no
6089 fi
6090
6091
6092
6093 if test "${gcc_cv_isl}" = no ; then
6094 isllibs=
6095 islinc=
6096 fi
6097
6098 if test "${graphite_requested}" = yes \
6099 && test "x${isllibs}" = x \
6100 && test "x${islinc}" = x ; then
6101
6102 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6103 fi
6104
6105
6106 fi
6107
6108 # If the isl check failed, disable builds of in-tree variant of isl
6109 if test "x$with_isl" = xno ||
6110 test "x$gcc_cv_isl" = xno; then
6111 noconfigdirs="$noconfigdirs isl"
6112 islinc=
6113 fi
6114
6115
6116
6117
6118 # Check for LTO support.
6119 # Check whether --enable-lto was given.
6120 if test "${enable_lto+set}" = set; then :
6121 enableval=$enable_lto; enable_lto=$enableval
6122 else
6123 enable_lto=yes; default_enable_lto=yes
6124 fi
6125
6126
6127
6128
6129
6130 target_elf=no
6131 case $target in
6132 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6133 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6134 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6135 nvptx-*-none)
6136 target_elf=no
6137 ;;
6138 *)
6139 target_elf=yes
6140 ;;
6141 esac
6142
6143 if test $target_elf = yes; then :
6144 # ELF platforms build the lto-plugin always.
6145 build_lto_plugin=yes
6146
6147 else
6148 if test x"$default_enable_lto" = x"yes" ; then
6149 case $target in
6150 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6151 # On other non-ELF platforms, LTO has yet to be validated.
6152 *) enable_lto=no ;;
6153 esac
6154 else
6155 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6156 # It would also be nice to check the binutils support, but we don't
6157 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6158 # warn during gcc/ subconfigure; unless you're bootstrapping with
6159 # -flto it won't be needed until after installation anyway.
6160 case $target in
6161 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6162 *) if test x"$enable_lto" = x"yes"; then
6163 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6164 fi
6165 ;;
6166 esac
6167 fi
6168 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6169 # Build it unless LTO was explicitly disabled.
6170 case $target in
6171 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6172 *) ;;
6173 esac
6174
6175 fi
6176
6177
6178 # Check whether --enable-linker-plugin-configure-flags was given.
6179 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6180 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6181 else
6182 extra_linker_plugin_configure_flags=
6183 fi
6184
6185
6186 # Check whether --enable-linker-plugin-flags was given.
6187 if test "${enable_linker_plugin_flags+set}" = set; then :
6188 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6189 else
6190 extra_linker_plugin_flags=
6191 fi
6192
6193
6194
6195
6196 # By default, C and C++ are the only stage 1 languages.
6197 stage1_languages=,c,
6198
6199 # Target libraries that we bootstrap.
6200 bootstrap_target_libs=,target-libgcc,
6201
6202 # Figure out what language subdirectories are present.
6203 # Look if the user specified --enable-languages="..."; if not, use
6204 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6205 # go away some day.
6206 # NB: embedded tabs in this IF block -- do not untabify
6207 if test -d ${srcdir}/gcc; then
6208 if test x"${enable_languages+set}" != xset; then
6209 if test x"${LANGUAGES+set}" = xset; then
6210 enable_languages="${LANGUAGES}"
6211 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6212 else
6213 enable_languages=all
6214 fi
6215 else
6216 if test x"${enable_languages}" = x ||
6217 test x"${enable_languages}" = xyes;
6218 then
6219 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6220 exit 1
6221 fi
6222 fi
6223 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6224
6225 # 'f95' is the old name for the 'fortran' language. We issue a warning
6226 # and make the substitution.
6227 case ,${enable_languages}, in
6228 *,f95,*)
6229 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6230 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6231 ;;
6232 esac
6233
6234 # If bootstrapping, C++ must be enabled.
6235 case ",$enable_languages,:$enable_bootstrap" in
6236 *,c++,*:*) ;;
6237 *:yes)
6238 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6239 enable_languages="${enable_languages},c++"
6240 else
6241 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6242 fi
6243 ;;
6244 esac
6245
6246 # First scan to see if an enabled language requires some other language.
6247 # We assume that a given config-lang.in will list all the language
6248 # front ends it requires, even if some are required indirectly.
6249 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6250 case ${lang_frag} in
6251 ..) ;;
6252 # The odd quoting in the next line works around
6253 # an apparent bug in bash 1.12 on linux.
6254 ${srcdir}/gcc/[*]/config-lang.in) ;;
6255 *)
6256 # From the config-lang.in, get $language, $lang_requires, and
6257 # $lang_requires_boot_languages.
6258 language=
6259 lang_requires=
6260 lang_requires_boot_languages=
6261 . ${lang_frag}
6262 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6263 case ,${enable_languages}, in
6264 *,$other,*) ;;
6265 *,all,*) ;;
6266 *,$language,*)
6267 echo " \`$other' language required by \`$language'; enabling" 1>&2
6268 enable_languages="${enable_languages},${other}"
6269 ;;
6270 esac
6271 done
6272 for other in ${lang_requires_boot_languages} ; do
6273 if test "$other" != "c"; then
6274 case ,${enable_stage1_languages}, in
6275 *,$other,*) ;;
6276 *,all,*) ;;
6277 *)
6278 case ,${enable_languages}, in
6279 *,$language,*)
6280 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6281 enable_stage1_languages="$enable_stage1_languages,${other}"
6282 ;;
6283 esac
6284 ;;
6285 esac
6286 fi
6287 done
6288 ;;
6289 esac
6290 done
6291
6292 new_enable_languages=,c,
6293
6294 # If LTO is enabled, add the LTO front end.
6295 if test "$enable_lto" = "yes" ; then
6296 case ,${enable_languages}, in
6297 *,lto,*) ;;
6298 *) enable_languages="${enable_languages},lto" ;;
6299 esac
6300 if test "${build_lto_plugin}" = "yes" ; then
6301 configdirs="$configdirs lto-plugin"
6302 fi
6303 fi
6304
6305 # If we're building an offloading compiler, add the LTO front end.
6306 if test x"$enable_as_accelerator_for" != x ; then
6307 case ,${enable_languages}, in
6308 *,lto,*) ;;
6309 *) enable_languages="${enable_languages},lto" ;;
6310 esac
6311 fi
6312
6313 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6314 potential_languages=,c,
6315
6316 enabled_target_libs=
6317 disabled_target_libs=
6318
6319 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6320 case ${lang_frag} in
6321 ..) ;;
6322 # The odd quoting in the next line works around
6323 # an apparent bug in bash 1.12 on linux.
6324 ${srcdir}/gcc/[*]/config-lang.in) ;;
6325 *)
6326 # From the config-lang.in, get $language, $target_libs,
6327 # $lang_dirs, $boot_language, and $build_by_default
6328 language=
6329 target_libs=
6330 lang_dirs=
6331 subdir_requires=
6332 boot_language=no
6333 build_by_default=yes
6334 . ${lang_frag}
6335 if test x${language} = x; then
6336 echo "${lang_frag} doesn't set \$language." 1>&2
6337 exit 1
6338 fi
6339
6340 if test "$language" = "c++"; then
6341 boot_language=yes
6342 fi
6343
6344 add_this_lang=no
6345 case ,${enable_languages}, in
6346 *,${language},*)
6347 # Language was explicitly selected; include it
6348 # unless it is C, which is enabled by default.
6349 if test "$language" != "c"; then
6350 add_this_lang=yes
6351 fi
6352 ;;
6353 *,all,*)
6354 # 'all' was selected, select it if it is a default language
6355 if test "$language" != "c"; then
6356 add_this_lang=${build_by_default}
6357 fi
6358 ;;
6359 esac
6360
6361 # Disable languages that need other directories if these aren't available.
6362 for i in $subdir_requires; do
6363 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6364 case ,${enable_languages}, in
6365 *,${language},*)
6366 # Specifically requested language; tell them.
6367 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6368 ;;
6369 *)
6370 # Silently disable.
6371 add_this_lang=unsupported
6372 ;;
6373 esac
6374 done
6375
6376 # Disable Ada if no preexisting GNAT is available.
6377 case ,${enable_languages},:${language}:${have_gnat} in
6378 *,${language},*:ada:no)
6379 # Specifically requested language; tell them.
6380 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6381 ;;
6382 *:ada:no)
6383 # Silently disable.
6384 add_this_lang=unsupported
6385 ;;
6386 esac
6387
6388 # Disable a language that is unsupported by the target.
6389 case " $unsupported_languages " in
6390 *" $language "*)
6391 add_this_lang=unsupported
6392 ;;
6393 esac
6394
6395 case $add_this_lang in
6396 unsupported)
6397 # Remove language-dependent dirs.
6398 disabled_target_libs="$disabled_target_libs $target_libs"
6399 noconfigdirs="$noconfigdirs $lang_dirs"
6400 ;;
6401 no)
6402 # Remove language-dependent dirs; still show language as supported.
6403 disabled_target_libs="$disabled_target_libs $target_libs"
6404 noconfigdirs="$noconfigdirs $lang_dirs"
6405 potential_languages="${potential_languages}${language},"
6406 ;;
6407 yes)
6408 new_enable_languages="${new_enable_languages}${language},"
6409 potential_languages="${potential_languages}${language},"
6410 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6411 enabled_target_libs="$enabled_target_libs $target_libs"
6412 case "${boot_language}:,$enable_stage1_languages," in
6413 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6414 # Add to (comma-separated) list of stage 1 languages.
6415 case ",$stage1_languages," in
6416 *,$language,* | ,yes, | ,all,) ;;
6417 *) stage1_languages="${stage1_languages}${language}," ;;
6418 esac
6419 # We need to bootstrap any supporting libraries.
6420 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6421 ;;
6422 esac
6423 ;;
6424 esac
6425 ;;
6426 esac
6427 done
6428
6429 # Add target libraries which are only needed for disabled languages
6430 # to noconfigdirs.
6431 if test -n "$disabled_target_libs"; then
6432 for dir in $disabled_target_libs; do
6433 case " $enabled_target_libs " in
6434 *" ${dir} "*) ;;
6435 *) noconfigdirs="$noconfigdirs $dir" ;;
6436 esac
6437 done
6438 fi
6439
6440 # Check whether --enable-stage1-languages was given.
6441 if test "${enable_stage1_languages+set}" = set; then :
6442 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6443 ,no,|,,)
6444 # Set it to something that will have no effect in the loop below
6445 enable_stage1_languages=c ;;
6446 ,yes,)
6447 enable_stage1_languages=`echo $new_enable_languages | \
6448 sed -e "s/^,//" -e "s/,$//" ` ;;
6449 *,all,*)
6450 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6451 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6452 esac
6453
6454 # Add "good" languages from enable_stage1_languages to stage1_languages,
6455 # while "bad" languages go in missing_languages. Leave no duplicates.
6456 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6457 case $potential_languages in
6458 *,$i,*)
6459 case $stage1_languages in
6460 *,$i,*) ;;
6461 *) stage1_languages="$stage1_languages$i," ;;
6462 esac ;;
6463 *)
6464 case $missing_languages in
6465 *,$i,*) ;;
6466 *) missing_languages="$missing_languages$i," ;;
6467 esac ;;
6468 esac
6469 done
6470 fi
6471
6472
6473 # Remove leading/trailing commas that were added for simplicity
6474 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6475 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6476 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6477 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6478
6479 if test "x$missing_languages" != x; then
6480 as_fn_error "
6481 The following requested languages could not be built: ${missing_languages}
6482 Supported languages are: ${potential_languages}" "$LINENO" 5
6483 fi
6484 if test "x$new_enable_languages" != "x$enable_languages"; then
6485 echo The following languages will be built: ${new_enable_languages}
6486 enable_languages="$new_enable_languages"
6487 fi
6488
6489
6490 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6491 fi
6492
6493 # Handle --disable-<component> generically.
6494 for dir in $configdirs $build_configdirs $target_configdirs ; do
6495 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6496 varname=`echo $dirname | sed -e s/+/_/g`
6497 if eval test x\${enable_${varname}} "=" xno ; then
6498 noconfigdirs="$noconfigdirs $dir"
6499 fi
6500 done
6501
6502 # Check for Boehm's garbage collector
6503 # Check whether --enable-objc-gc was given.
6504 if test "${enable_objc_gc+set}" = set; then :
6505 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6506 *,objc,*:*:yes:*target-boehm-gc*)
6507 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6508 ;;
6509 esac
6510 fi
6511
6512
6513 # Make sure we only build Boehm's garbage collector if required.
6514 case ,${enable_languages},:${enable_objc_gc} in
6515 *,objc,*:yes)
6516 # Keep target-boehm-gc if requested for Objective-C.
6517 ;;
6518 *)
6519 # Otherwise remove target-boehm-gc depending on target-libjava.
6520 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6521 noconfigdirs="$noconfigdirs target-boehm-gc"
6522 fi
6523 ;;
6524 esac
6525
6526 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6527 case ,${enable_languages}, in
6528 *,c++,*)
6529 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6530 case "${noconfigdirs}" in
6531 *target-libstdc++-v3*)
6532 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6533 ;;
6534 *) ;;
6535 esac
6536 ;;
6537 *)
6538 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6539 ;;
6540 esac
6541
6542 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6543 # $build_configdirs and $target_configdirs.
6544 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6545
6546 notsupp=""
6547 for dir in . $skipdirs $noconfigdirs ; do
6548 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6549 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6550 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6551 if test -r $srcdir/$dirname/configure ; then
6552 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6553 true
6554 else
6555 notsupp="$notsupp $dir"
6556 fi
6557 fi
6558 fi
6559 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6560 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6561 if test -r $srcdir/$dirname/configure ; then
6562 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6563 true
6564 else
6565 notsupp="$notsupp $dir"
6566 fi
6567 fi
6568 fi
6569 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6570 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6571 if test -r $srcdir/$dirname/configure ; then
6572 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6573 true
6574 else
6575 notsupp="$notsupp $dir"
6576 fi
6577 fi
6578 fi
6579 done
6580
6581 # Quietly strip out all directories which aren't configurable in this tree.
6582 # This relies on all configurable subdirectories being autoconfiscated, which
6583 # is now the case.
6584 build_configdirs_all="$build_configdirs"
6585 build_configdirs=
6586 for i in ${build_configdirs_all} ; do
6587 j=`echo $i | sed -e s/build-//g`
6588 if test -f ${srcdir}/$j/configure ; then
6589 build_configdirs="${build_configdirs} $i"
6590 fi
6591 done
6592
6593 configdirs_all="$configdirs"
6594 configdirs=
6595 for i in ${configdirs_all} ; do
6596 if test -f ${srcdir}/$i/configure ; then
6597 configdirs="${configdirs} $i"
6598 fi
6599 done
6600
6601 target_configdirs_all="$target_configdirs"
6602 target_configdirs=
6603 for i in ${target_configdirs_all} ; do
6604 j=`echo $i | sed -e s/target-//g`
6605 if test -f ${srcdir}/$j/configure ; then
6606 target_configdirs="${target_configdirs} $i"
6607 fi
6608 done
6609
6610 # Exclude target-zlib if target-libjava isn't built.
6611 case ${target_configdirs} in
6612 *target-libjava*)
6613 ;;
6614 *)
6615 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6616 ;;
6617 esac
6618
6619 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6620 # so we have to add it after the preceding checks.
6621 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6622 then
6623 case " $configdirs " in
6624 *" libiberty "*)
6625 # If we can build libiberty, we can also build libiberty-linker-plugin.
6626 configdirs="$configdirs libiberty-linker-plugin"
6627 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6628 --with-libiberty=../libiberty-linker-plugin";;
6629 *)
6630 as_fn_error "libiberty missing" "$LINENO" 5;;
6631 esac
6632 fi
6633
6634 # Sometimes we have special requirements for the host libiberty.
6635 extra_host_libiberty_configure_flags=
6636 extra_host_zlib_configure_flags=
6637 case " $configdirs " in
6638 *" lto-plugin "* | *" libcc1 "*)
6639 # When these are to be built as shared libraries, the same applies to
6640 # libiberty.
6641 extra_host_libiberty_configure_flags=--enable-shared
6642 ;;
6643 *" bfd "*)
6644 # When bfd is to be built as a shared library, the same applies to
6645 # zlib.
6646 if test "$enable_shared" = "yes"; then
6647 extra_host_zlib_configure_flags=--enable-host-shared
6648 fi
6649 ;;
6650 esac
6651
6652
6653
6654 # Produce a warning message for the subdirs we can't configure.
6655 # This isn't especially interesting in the Cygnus tree, but in the individual
6656 # FSF releases, it's important to let people know when their machine isn't
6657 # supported by the one or two programs in a package.
6658
6659 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6660 # If $appdirs is non-empty, at least one of those directories must still
6661 # be configured, or we error out. (E.g., if the gas release supports a
6662 # specified target in some subdirs but not the gas subdir, we shouldn't
6663 # pretend that all is well.)
6664 if test -n "$appdirs" ; then
6665 for dir in $appdirs ; do
6666 if test -r $dir/Makefile.in ; then
6667 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6668 appdirs=""
6669 break
6670 fi
6671 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6672 appdirs=""
6673 break
6674 fi
6675 fi
6676 done
6677 if test -n "$appdirs" ; then
6678 echo "*** This configuration is not supported by this package." 1>&2
6679 exit 1
6680 fi
6681 fi
6682 # Okay, some application will build, or we don't care to check. Still
6683 # notify of subdirs not getting built.
6684 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6685 echo " ${notsupp}" 1>&2
6686 echo " (Any other directories should still work fine.)" 1>&2
6687 fi
6688
6689 case "$host" in
6690 *msdosdjgpp*)
6691 enable_gdbtk=no ;;
6692 esac
6693
6694 # To find our prefix, in gcc_cv_tool_prefix.
6695
6696 # The user is always right.
6697 if test "${PATH_SEPARATOR+set}" != set; then
6698 echo "#! /bin/sh" >conf$$.sh
6699 echo "exit 0" >>conf$$.sh
6700 chmod +x conf$$.sh
6701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6702 PATH_SEPARATOR=';'
6703 else
6704 PATH_SEPARATOR=:
6705 fi
6706 rm -f conf$$.sh
6707 fi
6708
6709
6710
6711 if test "x$exec_prefix" = xNONE; then
6712 if test "x$prefix" = xNONE; then
6713 gcc_cv_tool_prefix=$ac_default_prefix
6714 else
6715 gcc_cv_tool_prefix=$prefix
6716 fi
6717 else
6718 gcc_cv_tool_prefix=$exec_prefix
6719 fi
6720
6721 # If there is no compiler in the tree, use the PATH only. In any
6722 # case, if there is no compiler in the tree nobody should use
6723 # AS_FOR_TARGET and LD_FOR_TARGET.
6724 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6725 gcc_version=`cat $srcdir/gcc/BASE-VER`
6726 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6727 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6728 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6729 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6730 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6731 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6732 else
6733 gcc_cv_tool_dirs=
6734 fi
6735
6736 if test x$build = x$target && test -n "$md_exec_prefix"; then
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6738 fi
6739
6740
6741
6742 copy_dirs=
6743
6744
6745 # Check whether --with-build-sysroot was given.
6746 if test "${with_build_sysroot+set}" = set; then :
6747 withval=$with_build_sysroot; if test x"$withval" != x ; then
6748 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6749 fi
6750 else
6751 SYSROOT_CFLAGS_FOR_TARGET=
6752 fi
6753
6754
6755
6756
6757 # Check whether --with-debug-prefix-map was given.
6758 if test "${with_debug_prefix_map+set}" = set; then :
6759 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6760 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6761 for debug_map in $withval; do
6762 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6763 done
6764 fi
6765 else
6766 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6767 fi
6768
6769
6770
6771 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6772 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6773 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6774 # We want to ensure that TARGET libraries (which we know are built with
6775 # gcc) are built with "-O2 -g", so include those options when setting
6776 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6777 if test "x$CFLAGS_FOR_TARGET" = x; then
6778 if test "x${is_cross_compiler}" = xyes; then
6779 CFLAGS_FOR_TARGET="-g -O2"
6780 else
6781 CFLAGS_FOR_TARGET=$CFLAGS
6782 case " $CFLAGS " in
6783 *" -O2 "*) ;;
6784 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6785 esac
6786 case " $CFLAGS " in
6787 *" -g "* | *" -g3 "*) ;;
6788 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6789 esac
6790 fi
6791 fi
6792
6793
6794 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6795 if test "x${is_cross_compiler}" = xyes; then
6796 CXXFLAGS_FOR_TARGET="-g -O2"
6797 else
6798 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6799 case " $CXXFLAGS " in
6800 *" -O2 "*) ;;
6801 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6802 esac
6803 case " $CXXFLAGS " in
6804 *" -g "* | *" -g3 "*) ;;
6805 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6806 esac
6807 fi
6808 fi
6809
6810
6811
6812
6813 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6814 # the named directory are copied to $(tooldir)/sys-include.
6815 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6816 if test x${is_cross_compiler} = xno ; then
6817 echo 1>&2 '***' --with-headers is only supported when cross compiling
6818 exit 1
6819 fi
6820 if test x"${with_headers}" != xyes ; then
6821 x=${gcc_cv_tool_prefix}
6822 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6823 fi
6824 fi
6825
6826 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6827 # the name directories are copied to $(tooldir)/lib. Multiple directories
6828 # are permitted.
6829 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6830 if test x${is_cross_compiler} = xno ; then
6831 echo 1>&2 '***' --with-libs is only supported when cross compiling
6832 exit 1
6833 fi
6834 if test x"${with_libs}" != xyes ; then
6835 # Copy the libraries in reverse order, so that files in the first named
6836 # library override files in subsequent libraries.
6837 x=${gcc_cv_tool_prefix}
6838 for l in ${with_libs}; do
6839 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6840 done
6841 fi
6842 fi
6843
6844 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6845 #
6846 # This is done by determining whether or not the appropriate directory
6847 # is available, and by checking whether or not specific configurations
6848 # have requested that this magic not happen.
6849 #
6850 # The command line options always override the explicit settings in
6851 # configure.ac, and the settings in configure.ac override this magic.
6852 #
6853 # If the default for a toolchain is to use GNU as and ld, and you don't
6854 # want to do that, then you should use the --without-gnu-as and
6855 # --without-gnu-ld options for the configure script. Similarly, if
6856 # the default is to use the included zlib and you don't want to do that,
6857 # you should use the --with-system-zlib option for the configure script.
6858
6859 if test x${use_gnu_as} = x &&
6860 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6861 with_gnu_as=yes
6862 extra_host_args="$extra_host_args --with-gnu-as"
6863 fi
6864
6865 if test x${use_gnu_ld} = x &&
6866 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6867 with_gnu_ld=yes
6868 extra_host_args="$extra_host_args --with-gnu-ld"
6869 fi
6870
6871 if test x${use_included_zlib} = x &&
6872 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6873 :
6874 else
6875 with_system_zlib=yes
6876 extra_host_args="$extra_host_args --with-system-zlib"
6877 fi
6878
6879 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6880 # can detect this case.
6881
6882 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6883 with_newlib=yes
6884 extra_host_args="$extra_host_args --with-newlib"
6885 fi
6886
6887 # Handle ${copy_dirs}
6888 set fnord ${copy_dirs}
6889 shift
6890 while test $# != 0 ; do
6891 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6892 :
6893 else
6894 echo Copying $1 to $2
6895
6896 # Use the install script to create the directory and all required
6897 # parent directories.
6898 if test -d $2 ; then
6899 :
6900 else
6901 echo >config.temp
6902 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6903 fi
6904
6905 # Copy the directory, assuming we have tar.
6906 # FIXME: Should we use B in the second tar? Not all systems support it.
6907 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6908
6909 # It is the responsibility of the user to correctly adjust all
6910 # symlinks. If somebody can figure out how to handle them correctly
6911 # here, feel free to add the code.
6912
6913 echo $1 > $2/COPIED
6914 fi
6915 shift; shift
6916 done
6917
6918 # Determine a target-dependent exec_prefix that the installed
6919 # gcc will search in. Keep this list sorted by triplet, with
6920 # the *-*-osname triplets last.
6921 md_exec_prefix=
6922 case "${target}" in
6923 i[34567]86-pc-msdosdjgpp*)
6924 md_exec_prefix=/dev/env/DJDIR/bin
6925 ;;
6926 *-*-hpux* | \
6927 *-*-nto-qnx* | \
6928 *-*-solaris2*)
6929 md_exec_prefix=/usr/ccs/bin
6930 ;;
6931 esac
6932
6933 extra_arflags_for_target=
6934 extra_nmflags_for_target=
6935 extra_ranlibflags_for_target=
6936 target_makefile_frag=/dev/null
6937 case "${target}" in
6938 spu-*-*)
6939 target_makefile_frag="config/mt-spu"
6940 ;;
6941 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6942 target_makefile_frag="config/mt-sde"
6943 ;;
6944 mipsisa*-*-elfoabi*)
6945 target_makefile_frag="config/mt-mips-elfoabi"
6946 ;;
6947 mips*-*-*linux* | mips*-*-gnu*)
6948 target_makefile_frag="config/mt-mips-gnu"
6949 ;;
6950 nios2-*-elf*)
6951 target_makefile_frag="config/mt-nios2-elf"
6952 ;;
6953 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6954 target_makefile_frag="config/mt-gnu"
6955 ;;
6956 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6957 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6958 # commands to handle both 32-bit and 64-bit objects. These flags are
6959 # harmless if we're using GNU nm or ar.
6960 extra_arflags_for_target=" -X32_64"
6961 extra_nmflags_for_target=" -B -X32_64"
6962 ;;
6963 esac
6964
6965 alphaieee_frag=/dev/null
6966 case $target in
6967 alpha*-*-*)
6968 # This just makes sure to use the -mieee option to build target libs.
6969 # This should probably be set individually by each library.
6970 alphaieee_frag="config/mt-alphaieee"
6971 ;;
6972 esac
6973
6974 # If --enable-target-optspace always use -Os instead of -O2 to build
6975 # the target libraries, similarly if it is not specified, use -Os
6976 # on selected platforms.
6977 ospace_frag=/dev/null
6978 case "${enable_target_optspace}:${target}" in
6979 yes:*)
6980 ospace_frag="config/mt-ospace"
6981 ;;
6982 :d30v-*)
6983 ospace_frag="config/mt-d30v"
6984 ;;
6985 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6986 ospace_frag="config/mt-ospace"
6987 ;;
6988 no:* | :*)
6989 ;;
6990 *)
6991 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6992 ;;
6993 esac
6994
6995 # Some systems (e.g., one of the i386-aix systems the gas testers are
6996 # using) don't handle "\$" correctly, so don't use it here.
6997 tooldir='${exec_prefix}'/${target_noncanonical}
6998 build_tooldir=${tooldir}
6999
7000 # Create a .gdbinit file which runs the one in srcdir
7001 # and tells GDB to look there for source files.
7002
7003 if test -r ${srcdir}/.gdbinit ; then
7004 case ${srcdir} in
7005 .) ;;
7006 *) cat > ./.gdbinit <<EOF
7007 # ${NO_EDIT}
7008 dir ${srcdir}
7009 dir .
7010 source ${srcdir}/.gdbinit
7011 EOF
7012 ;;
7013 esac
7014 fi
7015
7016 # Make sure that the compiler is able to generate an executable. If it
7017 # can't, we are probably in trouble. We don't care whether we can run the
7018 # executable--we might be using a cross compiler--we only care whether it
7019 # can be created. At this point the main configure script has set CC.
7020 we_are_ok=no
7021 echo "int main () { return 0; }" > conftest.c
7022 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7023 if test $? = 0 ; then
7024 if test -s conftest || test -s conftest.exe ; then
7025 we_are_ok=yes
7026 fi
7027 fi
7028 case $we_are_ok in
7029 no)
7030 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7031 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7032 rm -f conftest*
7033 exit 1
7034 ;;
7035 esac
7036 rm -f conftest*
7037
7038 # Decide which environment variable is used to find dynamic libraries.
7039 case "${host}" in
7040 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7041 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7042 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7043 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7044 esac
7045
7046 # On systems where the dynamic library environment variable is PATH,
7047 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7048 # built executables to PATH.
7049 if test "$RPATH_ENVVAR" = PATH; then
7050 GCC_SHLIB_SUBDIR=/shlib
7051 else
7052 GCC_SHLIB_SUBDIR=
7053 fi
7054
7055 # Adjust the toplevel makefile according to whether bootstrap was selected.
7056 case $enable_bootstrap in
7057 yes)
7058 bootstrap_suffix=bootstrap
7059 BUILD_CONFIG=bootstrap-debug
7060 ;;
7061 no)
7062 bootstrap_suffix=no-bootstrap
7063 BUILD_CONFIG=
7064 ;;
7065 esac
7066
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7068 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7069
7070
7071 # Check whether --with-build-config was given.
7072 if test "${with_build_config+set}" = set; then :
7073 withval=$with_build_config; case $with_build_config in
7074 yes) with_build_config= ;;
7075 no) with_build_config= BUILD_CONFIG= ;;
7076 esac
7077 fi
7078
7079
7080 if test "x${with_build_config}" != x; then
7081 BUILD_CONFIG=$with_build_config
7082 else
7083 case $BUILD_CONFIG in
7084 bootstrap-debug)
7085 if echo "int f (void) { return 0; }" > conftest.c &&
7086 ${CC} -c conftest.c &&
7087 mv conftest.o conftest.o.g0 &&
7088 ${CC} -c -g conftest.c &&
7089 mv conftest.o conftest.o.g &&
7090 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7091 :
7092 else
7093 BUILD_CONFIG=
7094 fi
7095 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7096 ;;
7097 esac
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7100 $as_echo "$BUILD_CONFIG" >&6; }
7101
7102
7103 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7105 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7106 # Check whether --enable-vtable-verify was given.
7107 if test "${enable_vtable_verify+set}" = set; then :
7108 enableval=$enable_vtable_verify; case "$enableval" in
7109 yes) enable_vtable_verify=yes ;;
7110 no) enable_vtable_verify=no ;;
7111 *) enable_vtable_verify=no;;
7112 esac
7113 else
7114 enable_vtable_verify=no
7115 fi
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7118 $as_echo "$enable_vtable_verify" >&6; }
7119
7120 # Record target_configdirs and the configure arguments for target and
7121 # build configuration in Makefile.
7122 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7123 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7124 bootstrap_fixincludes=no
7125
7126 # If we are building libgomp, bootstrap it.
7127 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7128 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7129 fi
7130
7131 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7132 # or bootstrap-ubsan, bootstrap it.
7133 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7134 case "$BUILD_CONFIG" in
7135 *bootstrap-asan* | *bootstrap-ubsan* )
7136 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7137 bootstrap_fixincludes=yes
7138 ;;
7139 esac
7140 fi
7141
7142 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7143 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7144 test "$enable_vtable_verify" != no; then
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7146 fi
7147
7148 # If we are building libmpx, bootstrap it.
7149 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7150 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7151 fi
7152
7153 # Determine whether gdb needs tk/tcl or not.
7154 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7155 # and in that case we want gdb to be built without tk. Ugh!
7156 # In fact I believe gdb is the *only* package directly dependent on tk,
7157 # so we should be able to put the 'maybe's in unconditionally and
7158 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7159 # 100% sure that that's safe though.
7160
7161 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7162 case "$enable_gdbtk" in
7163 no)
7164 GDB_TK="" ;;
7165 yes)
7166 GDB_TK="${gdb_tk}" ;;
7167 *)
7168 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7169 # distro. Eventually someone will fix this and move Insight, nee
7170 # gdbtk to a separate directory.
7171 if test -d ${srcdir}/gdb/gdbtk ; then
7172 GDB_TK="${gdb_tk}"
7173 else
7174 GDB_TK=""
7175 fi
7176 ;;
7177 esac
7178 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7179 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7180
7181 # Strip out unwanted targets.
7182
7183 # While at that, we remove Makefiles if we were started for recursive
7184 # configuration, so that the top-level Makefile reconfigures them,
7185 # like we used to do when configure itself was recursive.
7186
7187 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7188 # but now we're fixing up the Makefile ourselves with the additional
7189 # commands passed to AC_CONFIG_FILES. Use separate variables
7190 # extrasub-{build,host,target} not because there is any reason to split
7191 # the substitutions up that way, but only to remain below the limit of
7192 # 99 commands in a script, for HP-UX sed.
7193 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7194
7195 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7196 yes:yes:*\ gold\ *:*,c++,*) ;;
7197 yes:yes:*\ gold\ *:*)
7198 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7199 ;;
7200 esac
7201
7202 extrasub_build=
7203 for module in ${build_configdirs} ; do
7204 if test -z "${no_recursion}" \
7205 && test -f ${build_subdir}/${module}/Makefile; then
7206 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7207 rm -f ${build_subdir}/${module}/Makefile
7208 fi
7209 extrasub_build="$extrasub_build
7210 /^@if build-$module\$/d
7211 /^@endif build-$module\$/d
7212 /^@if build-$module-$bootstrap_suffix\$/d
7213 /^@endif build-$module-$bootstrap_suffix\$/d"
7214 done
7215 extrasub_host=
7216 for module in ${configdirs} ; do
7217 if test -z "${no_recursion}"; then
7218 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7219 if test -f ${file}; then
7220 echo 1>&2 "*** removing ${file} to force reconfigure"
7221 rm -f ${file}
7222 fi
7223 done
7224 fi
7225 case ${module},${bootstrap_fixincludes} in
7226 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7227 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7228 esac
7229 extrasub_host="$extrasub_host
7230 /^@if $module\$/d
7231 /^@endif $module\$/d
7232 /^@if $module-$host_bootstrap_suffix\$/d
7233 /^@endif $module-$host_bootstrap_suffix\$/d"
7234 done
7235 extrasub_target=
7236 for module in ${target_configdirs} ; do
7237 if test -z "${no_recursion}" \
7238 && test -f ${target_subdir}/${module}/Makefile; then
7239 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7240 rm -f ${target_subdir}/${module}/Makefile
7241 fi
7242
7243 # We only bootstrap target libraries listed in bootstrap_target_libs.
7244 case $bootstrap_target_libs in
7245 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7246 *) target_bootstrap_suffix=no-bootstrap ;;
7247 esac
7248
7249 extrasub_target="$extrasub_target
7250 /^@if target-$module\$/d
7251 /^@endif target-$module\$/d
7252 /^@if target-$module-$target_bootstrap_suffix\$/d
7253 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7254 done
7255
7256 # Do the final fixup along with target modules.
7257 extrasub_target="$extrasub_target
7258 /^@if /,/^@endif /d"
7259
7260 # Create the serialization dependencies. This uses a temporary file.
7261
7262 # Check whether --enable-serial-configure was given.
7263 if test "${enable_serial_configure+set}" = set; then :
7264 enableval=$enable_serial_configure;
7265 fi
7266
7267
7268 case ${enable_serial_configure} in
7269 yes)
7270 enable_serial_build_configure=yes
7271 enable_serial_host_configure=yes
7272 enable_serial_target_configure=yes
7273 ;;
7274 esac
7275
7276 # These force 'configure's to be done one at a time, to avoid problems
7277 # with contention over a shared config.cache.
7278 rm -f serdep.tmp
7279 echo '# serdep.tmp' > serdep.tmp
7280 olditem=
7281 test "x${enable_serial_build_configure}" = xyes &&
7282 for item in ${build_configdirs} ; do
7283 case ${olditem} in
7284 "") ;;
7285 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7286 esac
7287 olditem=${item}
7288 done
7289 olditem=
7290 test "x${enable_serial_host_configure}" = xyes &&
7291 for item in ${configdirs} ; do
7292 case ${olditem} in
7293 "") ;;
7294 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7295 esac
7296 olditem=${item}
7297 done
7298 olditem=
7299 test "x${enable_serial_target_configure}" = xyes &&
7300 for item in ${target_configdirs} ; do
7301 case ${olditem} in
7302 "") ;;
7303 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7304 esac
7305 olditem=${item}
7306 done
7307 serialization_dependencies=serdep.tmp
7308
7309
7310 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7311 # target, nonopt, and variable assignments. These are the ones we
7312 # might not want to pass down to subconfigures. The exception being
7313 # --cache-file=/dev/null, which is used to turn off the use of cache
7314 # files altogether, and which should be passed on to subconfigures.
7315 # Also strip program-prefix, program-suffix, and program-transform-name,
7316 # so that we can pass down a consistent program-transform-name.
7317 baseargs=
7318 tbaseargs=
7319 keep_next=no
7320 skip_next=no
7321 eval "set -- $ac_configure_args"
7322 for ac_arg
7323 do
7324 if test X"$skip_next" = X"yes"; then
7325 skip_next=no
7326 continue
7327 fi
7328 if test X"$keep_next" = X"yes"; then
7329 case $ac_arg in
7330 *\'*)
7331 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7332 esac
7333 baseargs="$baseargs '$ac_arg'"
7334 tbaseargs="$tbaseargs '$ac_arg'"
7335 keep_next=no
7336 continue
7337 fi
7338
7339 # Handle separated arguments. Based on the logic generated by
7340 # autoconf 2.59.
7341 case $ac_arg in
7342 *=* | --config-cache | -C | -disable-* | --disable-* \
7343 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7344 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7345 | -with-* | --with-* | -without-* | --without-* | --x)
7346 separate_arg=no
7347 ;;
7348 -*)
7349 separate_arg=yes
7350 ;;
7351 *)
7352 separate_arg=no
7353 ;;
7354 esac
7355
7356 skip_targ=no
7357 case $ac_arg in
7358
7359 --with-* | --without-*)
7360 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7361
7362 case $libopt in
7363 *[-_]include)
7364 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7365 ;;
7366 *[-_]lib)
7367 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7368 ;;
7369 *)
7370 lib=$libopt
7371 ;;
7372 esac
7373
7374
7375 case $lib in
7376 mpc | mpfr | gmp | isl)
7377 # If we're processing --with-$lib, --with-$lib-include or
7378 # --with-$lib-lib, for one of the libs above, and target is
7379 # different from host, don't pass the current argument to any
7380 # target library's configure.
7381 if test x$is_cross_compiler = xyes; then
7382 skip_targ=yes
7383 fi
7384 ;;
7385 esac
7386 ;;
7387 esac
7388
7389 case "$ac_arg" in
7390 --cache-file=/dev/null | \
7391 -cache-file=/dev/null )
7392 # Handled here to avoid the test to skip args below.
7393 baseargs="$baseargs '$ac_arg'"
7394 tbaseargs="$tbaseargs '$ac_arg'"
7395 # Assert: $separate_arg should always be no.
7396 keep_next=$separate_arg
7397 ;;
7398 --no*)
7399 continue
7400 ;;
7401 --c* | \
7402 --sr* | \
7403 --ho* | \
7404 --bu* | \
7405 --t* | \
7406 --program-* | \
7407 -cache_file* | \
7408 -srcdir* | \
7409 -host* | \
7410 -build* | \
7411 -target* | \
7412 -program-prefix* | \
7413 -program-suffix* | \
7414 -program-transform-name* )
7415 skip_next=$separate_arg
7416 continue
7417 ;;
7418 -*)
7419 # An option. Add it.
7420 case $ac_arg in
7421 *\'*)
7422 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7423 esac
7424 baseargs="$baseargs '$ac_arg'"
7425 if test X"$skip_targ" = Xno; then
7426 tbaseargs="$tbaseargs '$ac_arg'"
7427 fi
7428 keep_next=$separate_arg
7429 ;;
7430 *)
7431 # Either a variable assignment, or a nonopt (triplet). Don't
7432 # pass it down; let the Makefile handle this.
7433 continue
7434 ;;
7435 esac
7436 done
7437 # Remove the initial space we just introduced and, as these will be
7438 # expanded by make, quote '$'.
7439 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7440
7441 # Add in --program-transform-name, after --program-prefix and
7442 # --program-suffix have been applied to it. Autoconf has already
7443 # doubled dollar signs and backslashes in program_transform_name; we want
7444 # the backslashes un-doubled, and then the entire thing wrapped in single
7445 # quotes, because this will be expanded first by make and then by the shell.
7446 # Also, because we want to override the logic in subdir configure scripts to
7447 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7448 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7449 ${program_transform_name}
7450 EOF_SED
7451 gcc_transform_name=`cat conftestsed.out`
7452 rm -f conftestsed.out
7453 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7454 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7455 if test "$silent" = yes; then
7456 baseargs="$baseargs --silent"
7457 tbaseargs="$tbaseargs --silent"
7458 fi
7459 baseargs="$baseargs --disable-option-checking"
7460 tbaseargs="$tbaseargs --disable-option-checking"
7461
7462 # Record and document user additions to sub configure arguments.
7463
7464
7465
7466
7467 # For the build-side libraries, we just need to pretend we're native,
7468 # and not use the same cache file. Multilibs are neither needed nor
7469 # desired. We can't even use the same cache file for all build-side
7470 # libraries, as they're compiled differently; some with C, some with
7471 # C++ or with different feature-enabling options.
7472 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7473
7474 # For host modules, accept cache file option, or specification as blank.
7475 case "${cache_file}" in
7476 "") # empty
7477 cache_file_option="" ;;
7478 /* | [A-Za-z]:[\\/]* ) # absolute path
7479 cache_file_option="--cache-file=${cache_file}" ;;
7480 *) # relative path
7481 cache_file_option="--cache-file=../${cache_file}" ;;
7482 esac
7483
7484 # Host dirs don't like to share a cache file either, horribly enough.
7485 # This seems to be due to autoconf 2.5x stupidity.
7486 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7487
7488 target_configargs="$target_configargs ${tbaseargs}"
7489
7490 # Passing a --with-cross-host argument lets the target libraries know
7491 # whether they are being built with a cross-compiler or being built
7492 # native. However, it would be better to use other mechanisms to make the
7493 # sorts of decisions they want to make on this basis. Please consider
7494 # this option to be deprecated. FIXME.
7495 if test x${is_cross_compiler} = xyes ; then
7496 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7497 fi
7498
7499 # Special user-friendly check for native x86_64-linux build, if
7500 # multilib is not explicitly enabled.
7501 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7502 x86_64-*linux*:yes:$build:$build:)
7503 # Make sure we have a development environment that handles 32-bit
7504 dev64=no
7505 echo "int main () { return 0; }" > conftest.c
7506 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7507 if test $? = 0 ; then
7508 if test -s conftest || test -s conftest.exe ; then
7509 dev64=yes
7510 fi
7511 fi
7512 rm -f conftest*
7513 if test x${dev64} != xyes ; then
7514 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7515 fi
7516 ;;
7517 esac
7518
7519 # Default to --enable-multilib.
7520 if test x${enable_multilib} = x ; then
7521 target_configargs="--enable-multilib ${target_configargs}"
7522 fi
7523
7524 # Pass --with-newlib if appropriate. Note that target_configdirs has
7525 # changed from the earlier setting of with_newlib.
7526 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7527 target_configargs="--with-newlib ${target_configargs}"
7528 fi
7529
7530 # Different target subdirs use different values of certain variables
7531 # (notably CXX). Worse, multilibs use *lots* of different values.
7532 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7533 # it doesn't automatically accept command-line overrides of them.
7534 # This means it's not safe for target subdirs to share a cache file,
7535 # which is disgusting, but there you have it. Hopefully this can be
7536 # fixed in future. It's still worthwhile to use a cache file for each
7537 # directory. I think.
7538
7539 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7540 # We need to pass --target, as newer autoconf's requires consistency
7541 # for target_alias and gcc doesn't manage it consistently.
7542 target_configargs="--cache-file=./config.cache ${target_configargs}"
7543
7544 FLAGS_FOR_TARGET=
7545 case " $target_configdirs " in
7546 *" newlib "*)
7547 case " $target_configargs " in
7548 *" --with-newlib "*)
7549 case "$target" in
7550 *-cygwin*)
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7552 ;;
7553 esac
7554
7555 # If we're not building GCC, don't discard standard headers.
7556 if test -d ${srcdir}/gcc; then
7557 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7558
7559 if test "${build}" != "${host}"; then
7560 # On Canadian crosses, CC_FOR_TARGET will have already been set
7561 # by `configure', so we won't have an opportunity to add -Bgcc/
7562 # to it. This is right: we don't want to search that directory
7563 # for binaries, but we want the header files in there, so add
7564 # them explicitly.
7565 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7566
7567 # Someone might think of using the pre-installed headers on
7568 # Canadian crosses, in case the installed compiler is not fully
7569 # compatible with the compiler being built. In this case, it
7570 # would be better to flag an error than risking having
7571 # incompatible object files being constructed. We can't
7572 # guarantee that an error will be flagged, but let's hope the
7573 # compiler will do it, when presented with incompatible header
7574 # files.
7575 fi
7576 fi
7577
7578 case "${target}-${is_cross_compiler}" in
7579 i[3456789]86-*-linux*-no)
7580 # Here host == target, so we don't need to build gcc,
7581 # so we don't want to discard standard headers.
7582 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7583 ;;
7584 *)
7585 # If we're building newlib, use its generic headers last, but search
7586 # for any libc-related directories first (so make it the last -B
7587 # switch).
7588 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7589
7590 # If we're building libgloss, find the startup file, simulator library
7591 # and linker script.
7592 case " $target_configdirs " in
7593 *" libgloss "*)
7594 # Look for startup file, simulator library and maybe linker script.
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7596 # Look for libnosys.a in case the target needs it.
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7598 # Most targets have the linker script in the source directory.
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7600 ;;
7601 esac
7602 ;;
7603 esac
7604 ;;
7605 esac
7606 ;;
7607 esac
7608
7609 case "$target" in
7610 x86_64-*mingw* | *-w64-mingw*)
7611 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7612 # however, use a symlink named 'mingw' in ${prefix} .
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7614 ;;
7615 *-mingw*)
7616 # MinGW can't be handled as Cygwin above since it does not use newlib.
7617 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'
7618 ;;
7619 esac
7620
7621 # Allow the user to override the flags for
7622 # our build compiler if desired.
7623 if test x"${build}" = x"${host}" ; then
7624 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7625 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7626 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7627 fi
7628
7629 # On Canadian crosses, we'll be searching the right directories for
7630 # the previously-installed cross compiler, so don't bother to add
7631 # flags for directories within the install tree of the compiler
7632 # being built; programs in there won't even run.
7633 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7634 # Search for pre-installed headers if nothing else fits.
7635 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7636 fi
7637
7638 if test "x${use_gnu_ld}" = x &&
7639 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7640 # Arrange for us to find uninstalled linker scripts.
7641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7642 fi
7643
7644 # Search for other target-specific linker scripts and such.
7645 case "${target}" in
7646 mep*)
7647 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7648 ;;
7649 esac
7650
7651 # Makefile fragments.
7652 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7653 do
7654 eval fragval=\$$frag
7655 if test $fragval != /dev/null; then
7656 eval $frag=${srcdir}/$fragval
7657 fi
7658 done
7659
7660
7661
7662
7663
7664 # Miscellanea: directories, flags, etc.
7665
7666
7667
7668
7669
7670
7671
7672
7673 # Build module lists & subconfigure args.
7674
7675
7676
7677 # Host module lists & subconfigure args.
7678
7679
7680
7681
7682 # Target module lists & subconfigure args.
7683
7684
7685
7686 # Build tools.
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Generate default definitions for YACC, M4, LEX and other programs that run
7705 # on the build machine. These are used if the Makefile can't locate these
7706 # programs in objdir.
7707 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7708
7709 for ac_prog in 'bison -y' byacc yacc
7710 do
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if test "${ac_cv_prog_YACC+set}" = set; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$YACC"; then
7719 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_prog_YACC="$ac_prog"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 YACC=$ac_cv_prog_YACC
7739 if test -n "$YACC"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7741 $as_echo "$YACC" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 test -n "$YACC" && break
7749 done
7750 test -n "$YACC" || YACC="$MISSING bison -y"
7751
7752 case " $build_configdirs " in
7753 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7754 esac
7755
7756 for ac_prog in bison
7757 do
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_BISON+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$BISON"; then
7766 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_BISON="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 BISON=$ac_cv_prog_BISON
7786 if test -n "$BISON"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7788 $as_echo "$BISON" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 test -n "$BISON" && break
7796 done
7797 test -n "$BISON" || BISON="$MISSING bison"
7798
7799 case " $build_configdirs " in
7800 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7801 esac
7802
7803 for ac_prog in gm4 gnum4 m4
7804 do
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_M4+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$M4"; then
7813 ac_cv_prog_M4="$M4" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_M4="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 M4=$ac_cv_prog_M4
7833 if test -n "$M4"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7835 $as_echo "$M4" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 test -n "$M4" && break
7843 done
7844 test -n "$M4" || M4="$MISSING m4"
7845
7846 case " $build_configdirs " in
7847 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7848 esac
7849
7850 for ac_prog in flex lex
7851 do
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_LEX+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$LEX"; then
7860 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_LEX="$ac_prog"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 LEX=$ac_cv_prog_LEX
7880 if test -n "$LEX"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7882 $as_echo "$LEX" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 test -n "$LEX" && break
7890 done
7891 test -n "$LEX" || LEX="$MISSING flex"
7892
7893 case " $build_configdirs " in
7894 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7895 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7896 esac
7897
7898 for ac_prog in flex
7899 do
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_FLEX+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$FLEX"; then
7908 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_FLEX="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 FLEX=$ac_cv_prog_FLEX
7928 if test -n "$FLEX"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7930 $as_echo "$FLEX" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 test -n "$FLEX" && break
7938 done
7939 test -n "$FLEX" || FLEX="$MISSING flex"
7940
7941 case " $build_configdirs " in
7942 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943 esac
7944
7945 for ac_prog in makeinfo
7946 do
7947 # Extract the first word of "$ac_prog", so it can be a program name with args.
7948 set dummy $ac_prog; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$MAKEINFO"; then
7955 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_MAKEINFO="$ac_prog"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 MAKEINFO=$ac_cv_prog_MAKEINFO
7975 if test -n "$MAKEINFO"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7977 $as_echo "$MAKEINFO" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 test -n "$MAKEINFO" && break
7985 done
7986 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7987
7988 case " $build_configdirs " in
7989 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7990 *)
7991
7992 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7993 # higher, else we use the "missing" dummy.
7994 if ${MAKEINFO} --version \
7995 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7996 :
7997 else
7998 MAKEINFO="$MISSING makeinfo"
7999 fi
8000 ;;
8001
8002 esac
8003
8004 # FIXME: expect and dejagnu may become build tools?
8005
8006 for ac_prog in expect
8007 do
8008 # Extract the first word of "$ac_prog", so it can be a program name with args.
8009 set dummy $ac_prog; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$EXPECT"; then
8016 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_EXPECT="$ac_prog"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 EXPECT=$ac_cv_prog_EXPECT
8036 if test -n "$EXPECT"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8038 $as_echo "$EXPECT" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045 test -n "$EXPECT" && break
8046 done
8047 test -n "$EXPECT" || EXPECT="expect"
8048
8049 case " $configdirs " in
8050 *" expect "*)
8051 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8052 ;;
8053 esac
8054
8055 for ac_prog in runtest
8056 do
8057 # Extract the first word of "$ac_prog", so it can be a program name with args.
8058 set dummy $ac_prog; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$RUNTEST"; then
8065 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_prog_RUNTEST="$ac_prog"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 RUNTEST=$ac_cv_prog_RUNTEST
8085 if test -n "$RUNTEST"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8087 $as_echo "$RUNTEST" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 test -n "$RUNTEST" && break
8095 done
8096 test -n "$RUNTEST" || RUNTEST="runtest"
8097
8098 case " $configdirs " in
8099 *" dejagnu "*)
8100 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8101 ;;
8102 esac
8103
8104
8105 # Host tools.
8106 ncn_tool_prefix=
8107 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8108 ncn_target_tool_prefix=
8109 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8110
8111
8112
8113 if test -n "$AR"; then
8114 ac_cv_prog_AR=$AR
8115 elif test -n "$ac_cv_prog_AR"; then
8116 AR=$ac_cv_prog_AR
8117 fi
8118
8119 if test -n "$ac_cv_prog_AR"; then
8120 for ncn_progname in ar; do
8121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8122 set dummy ${ncn_progname}; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_AR+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$AR"; then
8129 ac_cv_prog_AR="$AR" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_AR="${ncn_progname}"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 AR=$ac_cv_prog_AR
8149 if test -n "$AR"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8151 $as_echo "$AR" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158 done
8159 fi
8160
8161 for ncn_progname in ar; do
8162 if test -n "$ncn_tool_prefix"; then
8163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8164 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_AR+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$AR"; then
8171 ac_cv_prog_AR="$AR" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 AR=$ac_cv_prog_AR
8191 if test -n "$AR"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8193 $as_echo "$AR" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8203 set dummy ${ncn_progname}; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_AR+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$AR"; then
8210 ac_cv_prog_AR="$AR" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_AR="${ncn_progname}"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 AR=$ac_cv_prog_AR
8230 if test -n "$AR"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8232 $as_echo "$AR" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 fi
8240 test -n "$ac_cv_prog_AR" && break
8241 done
8242
8243 if test -z "$ac_cv_prog_AR" ; then
8244 set dummy ar
8245 if test $build = $host ; then
8246 AR="$2"
8247 else
8248 AR="${ncn_tool_prefix}$2"
8249 fi
8250 fi
8251
8252
8253
8254 if test -n "$AS"; then
8255 ac_cv_prog_AS=$AS
8256 elif test -n "$ac_cv_prog_AS"; then
8257 AS=$ac_cv_prog_AS
8258 fi
8259
8260 if test -n "$ac_cv_prog_AS"; then
8261 for ncn_progname in as; do
8262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8263 set dummy ${ncn_progname}; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_AS+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$AS"; then
8270 ac_cv_prog_AS="$AS" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_prog_AS="${ncn_progname}"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287 fi
8288 fi
8289 AS=$ac_cv_prog_AS
8290 if test -n "$AS"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8292 $as_echo "$AS" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 done
8300 fi
8301
8302 for ncn_progname in as; do
8303 if test -n "$ncn_tool_prefix"; then
8304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8305 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if test "${ac_cv_prog_AS+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test -n "$AS"; then
8312 ac_cv_prog_AS="$AS" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 fi
8330 fi
8331 AS=$ac_cv_prog_AS
8332 if test -n "$AS"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8334 $as_echo "$AS" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341 fi
8342 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8344 set dummy ${ncn_progname}; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_AS+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$AS"; then
8351 ac_cv_prog_AS="$AS" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_AS="${ncn_progname}"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 AS=$ac_cv_prog_AS
8371 if test -n "$AS"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8373 $as_echo "$AS" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 test -n "$ac_cv_prog_AS" && break
8382 done
8383
8384 if test -z "$ac_cv_prog_AS" ; then
8385 set dummy as
8386 if test $build = $host ; then
8387 AS="$2"
8388 else
8389 AS="${ncn_tool_prefix}$2"
8390 fi
8391 fi
8392
8393
8394
8395 if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL=$DLLTOOL
8397 elif test -n "$ac_cv_prog_DLLTOOL"; then
8398 DLLTOOL=$ac_cv_prog_DLLTOOL
8399 fi
8400
8401 if test -n "$ac_cv_prog_DLLTOOL"; then
8402 for ncn_progname in dlltool; do
8403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8404 set dummy ${ncn_progname}; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 if test -n "$DLLTOOL"; then
8411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_prog_DLLTOOL="${ncn_progname}"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424 done
8425 done
8426 IFS=$as_save_IFS
8427
8428 fi
8429 fi
8430 DLLTOOL=$ac_cv_prog_DLLTOOL
8431 if test -n "$DLLTOOL"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8433 $as_echo "$DLLTOOL" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 fi
8438
8439
8440 done
8441 fi
8442
8443 for ncn_progname in dlltool; do
8444 if test -n "$ncn_tool_prefix"; then
8445 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8446 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$DLLTOOL"; then
8453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 DLLTOOL=$ac_cv_prog_DLLTOOL
8473 if test -n "$DLLTOOL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8475 $as_echo "$DLLTOOL" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481
8482 fi
8483 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8485 set dummy ${ncn_progname}; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test -n "$DLLTOOL"; then
8492 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8501 ac_cv_prog_DLLTOOL="${ncn_progname}"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8504 fi
8505 done
8506 done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 DLLTOOL=$ac_cv_prog_DLLTOOL
8512 if test -n "$DLLTOOL"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8514 $as_echo "$DLLTOOL" >&6; }
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521 fi
8522 test -n "$ac_cv_prog_DLLTOOL" && break
8523 done
8524
8525 if test -z "$ac_cv_prog_DLLTOOL" ; then
8526 set dummy dlltool
8527 if test $build = $host ; then
8528 DLLTOOL="$2"
8529 else
8530 DLLTOOL="${ncn_tool_prefix}$2"
8531 fi
8532 fi
8533
8534
8535
8536 if test -n "$LD"; then
8537 ac_cv_prog_LD=$LD
8538 elif test -n "$ac_cv_prog_LD"; then
8539 LD=$ac_cv_prog_LD
8540 fi
8541
8542 if test -n "$ac_cv_prog_LD"; then
8543 for ncn_progname in ld; do
8544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8545 set dummy ${ncn_progname}; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if test "${ac_cv_prog_LD+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 if test -n "$LD"; then
8552 ac_cv_prog_LD="$LD" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8556 do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8561 ac_cv_prog_LD="${ncn_progname}"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569 fi
8570 fi
8571 LD=$ac_cv_prog_LD
8572 if test -n "$LD"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8574 $as_echo "$LD" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579
8580
8581 done
8582 fi
8583
8584 for ncn_progname in ld; do
8585 if test -n "$ncn_tool_prefix"; then
8586 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8587 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589 $as_echo_n "checking for $ac_word... " >&6; }
8590 if test "${ac_cv_prog_LD+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 if test -n "$LD"; then
8594 ac_cv_prog_LD="$LD" # Let the user override the test.
8595 else
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8598 do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8603 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607 done
8608 done
8609 IFS=$as_save_IFS
8610
8611 fi
8612 fi
8613 LD=$ac_cv_prog_LD
8614 if test -n "$LD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8616 $as_echo "$LD" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 fi
8621
8622
8623 fi
8624 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8626 set dummy ${ncn_progname}; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_prog_LD+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 if test -n "$LD"; then
8633 ac_cv_prog_LD="$LD" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_prog_LD="${ncn_progname}"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646 done
8647 done
8648 IFS=$as_save_IFS
8649
8650 fi
8651 fi
8652 LD=$ac_cv_prog_LD
8653 if test -n "$LD"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8655 $as_echo "$LD" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 fi
8660
8661
8662 fi
8663 test -n "$ac_cv_prog_LD" && break
8664 done
8665
8666 if test -z "$ac_cv_prog_LD" ; then
8667 set dummy ld
8668 if test $build = $host ; then
8669 LD="$2"
8670 else
8671 LD="${ncn_tool_prefix}$2"
8672 fi
8673 fi
8674
8675
8676
8677 if test -n "$LIPO"; then
8678 ac_cv_prog_LIPO=$LIPO
8679 elif test -n "$ac_cv_prog_LIPO"; then
8680 LIPO=$ac_cv_prog_LIPO
8681 fi
8682
8683 if test -n "$ac_cv_prog_LIPO"; then
8684 for ncn_progname in lipo; do
8685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8686 set dummy ${ncn_progname}; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if test "${ac_cv_prog_LIPO+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 if test -n "$LIPO"; then
8693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8694 else
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8702 ac_cv_prog_LIPO="${ncn_progname}"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706 done
8707 done
8708 IFS=$as_save_IFS
8709
8710 fi
8711 fi
8712 LIPO=$ac_cv_prog_LIPO
8713 if test -n "$LIPO"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8715 $as_echo "$LIPO" >&6; }
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719 fi
8720
8721
8722 done
8723 fi
8724
8725 for ncn_progname in lipo; do
8726 if test -n "$ncn_tool_prefix"; then
8727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8728 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_LIPO+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 if test -n "$LIPO"; then
8735 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748 done
8749 done
8750 IFS=$as_save_IFS
8751
8752 fi
8753 fi
8754 LIPO=$ac_cv_prog_LIPO
8755 if test -n "$LIPO"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8757 $as_echo "$LIPO" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763
8764 fi
8765 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_progname}; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if test "${ac_cv_prog_LIPO+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 if test -n "$LIPO"; then
8774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8783 ac_cv_prog_LIPO="${ncn_progname}"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787 done
8788 done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 LIPO=$ac_cv_prog_LIPO
8794 if test -n "$LIPO"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8796 $as_echo "$LIPO" >&6; }
8797 else
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803 fi
8804 test -n "$ac_cv_prog_LIPO" && break
8805 done
8806
8807 if test -z "$ac_cv_prog_LIPO" ; then
8808 set dummy lipo
8809 if test $build = $host ; then
8810 LIPO="$2"
8811 else
8812 LIPO="${ncn_tool_prefix}$2"
8813 fi
8814 fi
8815
8816
8817
8818 if test -n "$NM"; then
8819 ac_cv_prog_NM=$NM
8820 elif test -n "$ac_cv_prog_NM"; then
8821 NM=$ac_cv_prog_NM
8822 fi
8823
8824 if test -n "$ac_cv_prog_NM"; then
8825 for ncn_progname in nm; do
8826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827 set dummy ${ncn_progname}; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if test "${ac_cv_prog_NM+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 if test -n "$NM"; then
8834 ac_cv_prog_NM="$NM" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_NM="${ncn_progname}"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 NM=$ac_cv_prog_NM
8854 if test -n "$NM"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8856 $as_echo "$NM" >&6; }
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862
8863 done
8864 fi
8865
8866 for ncn_progname in nm; do
8867 if test -n "$ncn_tool_prefix"; then
8868 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8869 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if test "${ac_cv_prog_NM+set}" = set; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 if test -n "$NM"; then
8876 ac_cv_prog_NM="$NM" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8880 do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889 done
8890 done
8891 IFS=$as_save_IFS
8892
8893 fi
8894 fi
8895 NM=$ac_cv_prog_NM
8896 if test -n "$NM"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8898 $as_echo "$NM" >&6; }
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903
8904
8905 fi
8906 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8908 set dummy ${ncn_progname}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if test "${ac_cv_prog_NM+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$NM"; then
8915 ac_cv_prog_NM="$NM" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8919 do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8924 ac_cv_prog_NM="${ncn_progname}"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8927 fi
8928 done
8929 done
8930 IFS=$as_save_IFS
8931
8932 fi
8933 fi
8934 NM=$ac_cv_prog_NM
8935 if test -n "$NM"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8937 $as_echo "$NM" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941 fi
8942
8943
8944 fi
8945 test -n "$ac_cv_prog_NM" && break
8946 done
8947
8948 if test -z "$ac_cv_prog_NM" ; then
8949 set dummy nm
8950 if test $build = $host ; then
8951 NM="$2"
8952 else
8953 NM="${ncn_tool_prefix}$2"
8954 fi
8955 fi
8956
8957
8958
8959 if test -n "$RANLIB"; then
8960 ac_cv_prog_RANLIB=$RANLIB
8961 elif test -n "$ac_cv_prog_RANLIB"; then
8962 RANLIB=$ac_cv_prog_RANLIB
8963 fi
8964
8965 if test -n "$ac_cv_prog_RANLIB"; then
8966 for ncn_progname in ranlib; do
8967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8968 set dummy ${ncn_progname}; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 if test -n "$RANLIB"; then
8975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_RANLIB="${ncn_progname}"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988 done
8989 done
8990 IFS=$as_save_IFS
8991
8992 fi
8993 fi
8994 RANLIB=$ac_cv_prog_RANLIB
8995 if test -n "$RANLIB"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8997 $as_echo "$RANLIB" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9001 fi
9002
9003
9004 done
9005 fi
9006
9007 for ncn_progname in ranlib; do
9008 if test -n "$ncn_tool_prefix"; then
9009 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9010 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 if test -n "$RANLIB"; then
9017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030 done
9031 done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 RANLIB=$ac_cv_prog_RANLIB
9037 if test -n "$RANLIB"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9039 $as_echo "$RANLIB" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046 fi
9047 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9049 set dummy ${ncn_progname}; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 if test -n "$RANLIB"; then
9056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9065 ac_cv_prog_RANLIB="${ncn_progname}"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069 done
9070 done
9071 IFS=$as_save_IFS
9072
9073 fi
9074 fi
9075 RANLIB=$ac_cv_prog_RANLIB
9076 if test -n "$RANLIB"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9078 $as_echo "$RANLIB" >&6; }
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9082 fi
9083
9084
9085 fi
9086 test -n "$ac_cv_prog_RANLIB" && break
9087 done
9088
9089 if test -z "$ac_cv_prog_RANLIB" ; then
9090 RANLIB="true"
9091 fi
9092
9093
9094
9095 if test -n "$STRIP"; then
9096 ac_cv_prog_STRIP=$STRIP
9097 elif test -n "$ac_cv_prog_STRIP"; then
9098 STRIP=$ac_cv_prog_STRIP
9099 fi
9100
9101 if test -n "$ac_cv_prog_STRIP"; then
9102 for ncn_progname in strip; do
9103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9104 set dummy ${ncn_progname}; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if test "${ac_cv_prog_STRIP+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test -n "$STRIP"; then
9111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9115 do
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_STRIP="${ncn_progname}"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9123 fi
9124 done
9125 done
9126 IFS=$as_save_IFS
9127
9128 fi
9129 fi
9130 STRIP=$ac_cv_prog_STRIP
9131 if test -n "$STRIP"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9133 $as_echo "$STRIP" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9137 fi
9138
9139
9140 done
9141 fi
9142
9143 for ncn_progname in strip; do
9144 if test -n "$ncn_tool_prefix"; then
9145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if test "${ac_cv_prog_STRIP+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 if test -n "$STRIP"; then
9153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9157 do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9162 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166 done
9167 done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 STRIP=$ac_cv_prog_STRIP
9173 if test -n "$STRIP"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9175 $as_echo "$STRIP" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182 fi
9183 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9185 set dummy ${ncn_progname}; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if test "${ac_cv_prog_STRIP+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 if test -n "$STRIP"; then
9192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9193 else
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9196 do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9201 ac_cv_prog_STRIP="${ncn_progname}"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 fi
9210 fi
9211 STRIP=$ac_cv_prog_STRIP
9212 if test -n "$STRIP"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9214 $as_echo "$STRIP" >&6; }
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9218 fi
9219
9220
9221 fi
9222 test -n "$ac_cv_prog_STRIP" && break
9223 done
9224
9225 if test -z "$ac_cv_prog_STRIP" ; then
9226 STRIP="true"
9227 fi
9228
9229
9230
9231 if test -n "$WINDRES"; then
9232 ac_cv_prog_WINDRES=$WINDRES
9233 elif test -n "$ac_cv_prog_WINDRES"; then
9234 WINDRES=$ac_cv_prog_WINDRES
9235 fi
9236
9237 if test -n "$ac_cv_prog_WINDRES"; then
9238 for ncn_progname in windres; do
9239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9240 set dummy ${ncn_progname}; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 if test -n "$WINDRES"; then
9247 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256 ac_cv_prog_WINDRES="${ncn_progname}"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260 done
9261 done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 WINDRES=$ac_cv_prog_WINDRES
9267 if test -n "$WINDRES"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9269 $as_echo "$WINDRES" >&6; }
9270 else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9273 fi
9274
9275
9276 done
9277 fi
9278
9279 for ncn_progname in windres; do
9280 if test -n "$ncn_tool_prefix"; then
9281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 if test -n "$WINDRES"; then
9289 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9298 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302 done
9303 done
9304 IFS=$as_save_IFS
9305
9306 fi
9307 fi
9308 WINDRES=$ac_cv_prog_WINDRES
9309 if test -n "$WINDRES"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9311 $as_echo "$WINDRES" >&6; }
9312 else
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9315 fi
9316
9317
9318 fi
9319 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9321 set dummy ${ncn_progname}; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 if test -n "$WINDRES"; then
9328 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337 ac_cv_prog_WINDRES="${ncn_progname}"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9340 fi
9341 done
9342 done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 WINDRES=$ac_cv_prog_WINDRES
9348 if test -n "$WINDRES"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9350 $as_echo "$WINDRES" >&6; }
9351 else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357 fi
9358 test -n "$ac_cv_prog_WINDRES" && break
9359 done
9360
9361 if test -z "$ac_cv_prog_WINDRES" ; then
9362 set dummy windres
9363 if test $build = $host ; then
9364 WINDRES="$2"
9365 else
9366 WINDRES="${ncn_tool_prefix}$2"
9367 fi
9368 fi
9369
9370
9371
9372 if test -n "$WINDMC"; then
9373 ac_cv_prog_WINDMC=$WINDMC
9374 elif test -n "$ac_cv_prog_WINDMC"; then
9375 WINDMC=$ac_cv_prog_WINDMC
9376 fi
9377
9378 if test -n "$ac_cv_prog_WINDMC"; then
9379 for ncn_progname in windmc; do
9380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9381 set dummy ${ncn_progname}; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 if test -n "$WINDMC"; then
9388 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9389 else
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9392 do
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397 ac_cv_prog_WINDMC="${ncn_progname}"
9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 break 2
9400 fi
9401 done
9402 done
9403 IFS=$as_save_IFS
9404
9405 fi
9406 fi
9407 WINDMC=$ac_cv_prog_WINDMC
9408 if test -n "$WINDMC"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9410 $as_echo "$WINDMC" >&6; }
9411 else
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415
9416
9417 done
9418 fi
9419
9420 for ncn_progname in windmc; do
9421 if test -n "$ncn_tool_prefix"; then
9422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9423 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$WINDMC"; then
9430 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 WINDMC=$ac_cv_prog_WINDMC
9450 if test -n "$WINDMC"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9452 $as_echo "$WINDMC" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459 fi
9460 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9462 set dummy ${ncn_progname}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 if test -n "$WINDMC"; then
9469 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_prog_WINDMC="${ncn_progname}"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482 done
9483 done
9484 IFS=$as_save_IFS
9485
9486 fi
9487 fi
9488 WINDMC=$ac_cv_prog_WINDMC
9489 if test -n "$WINDMC"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9491 $as_echo "$WINDMC" >&6; }
9492 else
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497
9498 fi
9499 test -n "$ac_cv_prog_WINDMC" && break
9500 done
9501
9502 if test -z "$ac_cv_prog_WINDMC" ; then
9503 set dummy windmc
9504 if test $build = $host ; then
9505 WINDMC="$2"
9506 else
9507 WINDMC="${ncn_tool_prefix}$2"
9508 fi
9509 fi
9510
9511
9512
9513 if test -n "$OBJCOPY"; then
9514 ac_cv_prog_OBJCOPY=$OBJCOPY
9515 elif test -n "$ac_cv_prog_OBJCOPY"; then
9516 OBJCOPY=$ac_cv_prog_OBJCOPY
9517 fi
9518
9519 if test -n "$ac_cv_prog_OBJCOPY"; then
9520 for ncn_progname in objcopy; do
9521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9522 set dummy ${ncn_progname}; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 if test -n "$OBJCOPY"; then
9529 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9530 else
9531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 for as_dir in $PATH
9533 do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
9536 for ac_exec_ext in '' $ac_executable_extensions; do
9537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9538 ac_cv_prog_OBJCOPY="${ncn_progname}"
9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 break 2
9541 fi
9542 done
9543 done
9544 IFS=$as_save_IFS
9545
9546 fi
9547 fi
9548 OBJCOPY=$ac_cv_prog_OBJCOPY
9549 if test -n "$OBJCOPY"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9551 $as_echo "$OBJCOPY" >&6; }
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9555 fi
9556
9557
9558 done
9559 fi
9560
9561 for ncn_progname in objcopy; do
9562 if test -n "$ncn_tool_prefix"; then
9563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9564 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 if test -n "$OBJCOPY"; then
9571 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9572 else
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9580 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 break 2
9583 fi
9584 done
9585 done
9586 IFS=$as_save_IFS
9587
9588 fi
9589 fi
9590 OBJCOPY=$ac_cv_prog_OBJCOPY
9591 if test -n "$OBJCOPY"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9593 $as_echo "$OBJCOPY" >&6; }
9594 else
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9597 fi
9598
9599
9600 fi
9601 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_progname}; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 if test -n "$OBJCOPY"; then
9610 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9619 ac_cv_prog_OBJCOPY="${ncn_progname}"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623 done
9624 done
9625 IFS=$as_save_IFS
9626
9627 fi
9628 fi
9629 OBJCOPY=$ac_cv_prog_OBJCOPY
9630 if test -n "$OBJCOPY"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9632 $as_echo "$OBJCOPY" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9636 fi
9637
9638
9639 fi
9640 test -n "$ac_cv_prog_OBJCOPY" && break
9641 done
9642
9643 if test -z "$ac_cv_prog_OBJCOPY" ; then
9644 set dummy objcopy
9645 if test $build = $host ; then
9646 OBJCOPY="$2"
9647 else
9648 OBJCOPY="${ncn_tool_prefix}$2"
9649 fi
9650 fi
9651
9652
9653
9654 if test -n "$OBJDUMP"; then
9655 ac_cv_prog_OBJDUMP=$OBJDUMP
9656 elif test -n "$ac_cv_prog_OBJDUMP"; then
9657 OBJDUMP=$ac_cv_prog_OBJDUMP
9658 fi
9659
9660 if test -n "$ac_cv_prog_OBJDUMP"; then
9661 for ncn_progname in objdump; do
9662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9663 set dummy ${ncn_progname}; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 if test -n "$OBJDUMP"; then
9670 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9671 else
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9679 ac_cv_prog_OBJDUMP="${ncn_progname}"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 break 2
9682 fi
9683 done
9684 done
9685 IFS=$as_save_IFS
9686
9687 fi
9688 fi
9689 OBJDUMP=$ac_cv_prog_OBJDUMP
9690 if test -n "$OBJDUMP"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9692 $as_echo "$OBJDUMP" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9696 fi
9697
9698
9699 done
9700 fi
9701
9702 for ncn_progname in objdump; do
9703 if test -n "$ncn_tool_prefix"; then
9704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9705 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 if test -n "$OBJDUMP"; then
9712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9713 else
9714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 for as_dir in $PATH
9716 do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
9719 for ac_exec_ext in '' $ac_executable_extensions; do
9720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9721 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 break 2
9724 fi
9725 done
9726 done
9727 IFS=$as_save_IFS
9728
9729 fi
9730 fi
9731 OBJDUMP=$ac_cv_prog_OBJDUMP
9732 if test -n "$OBJDUMP"; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9734 $as_echo "$OBJDUMP" >&6; }
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9738 fi
9739
9740
9741 fi
9742 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_progname}; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 if test -n "$OBJDUMP"; then
9751 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_prog_OBJDUMP="${ncn_progname}"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9763 fi
9764 done
9765 done
9766 IFS=$as_save_IFS
9767
9768 fi
9769 fi
9770 OBJDUMP=$ac_cv_prog_OBJDUMP
9771 if test -n "$OBJDUMP"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9773 $as_echo "$OBJDUMP" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778
9779
9780 fi
9781 test -n "$ac_cv_prog_OBJDUMP" && break
9782 done
9783
9784 if test -z "$ac_cv_prog_OBJDUMP" ; then
9785 set dummy objdump
9786 if test $build = $host ; then
9787 OBJDUMP="$2"
9788 else
9789 OBJDUMP="${ncn_tool_prefix}$2"
9790 fi
9791 fi
9792
9793
9794
9795 if test -n "$READELF"; then
9796 ac_cv_prog_READELF=$READELF
9797 elif test -n "$ac_cv_prog_READELF"; then
9798 READELF=$ac_cv_prog_READELF
9799 fi
9800
9801 if test -n "$ac_cv_prog_READELF"; then
9802 for ncn_progname in readelf; do
9803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9804 set dummy ${ncn_progname}; ac_word=$2
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806 $as_echo_n "checking for $ac_word... " >&6; }
9807 if test "${ac_cv_prog_READELF+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 if test -n "$READELF"; then
9811 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9812 else
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9820 ac_cv_prog_READELF="${ncn_progname}"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9827
9828 fi
9829 fi
9830 READELF=$ac_cv_prog_READELF
9831 if test -n "$READELF"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9833 $as_echo "$READELF" >&6; }
9834 else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836 $as_echo "no" >&6; }
9837 fi
9838
9839
9840 done
9841 fi
9842
9843 for ncn_progname in readelf; do
9844 if test -n "$ncn_tool_prefix"; then
9845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if test "${ac_cv_prog_READELF+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 if test -n "$READELF"; then
9853 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866 done
9867 done
9868 IFS=$as_save_IFS
9869
9870 fi
9871 fi
9872 READELF=$ac_cv_prog_READELF
9873 if test -n "$READELF"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9875 $as_echo "$READELF" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880
9881
9882 fi
9883 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9885 set dummy ${ncn_progname}; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if test "${ac_cv_prog_READELF+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 if test -n "$READELF"; then
9892 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_prog_READELF="${ncn_progname}"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 fi
9910 fi
9911 READELF=$ac_cv_prog_READELF
9912 if test -n "$READELF"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9914 $as_echo "$READELF" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 fi
9919
9920
9921 fi
9922 test -n "$ac_cv_prog_READELF" && break
9923 done
9924
9925 if test -z "$ac_cv_prog_READELF" ; then
9926 set dummy readelf
9927 if test $build = $host ; then
9928 READELF="$2"
9929 else
9930 READELF="${ncn_tool_prefix}$2"
9931 fi
9932 fi
9933
9934
9935
9936
9937
9938
9939 # Target tools.
9940
9941 # Check whether --with-build-time-tools was given.
9942 if test "${with_build_time_tools+set}" = set; then :
9943 withval=$with_build_time_tools; case x"$withval" in
9944 x/*) ;;
9945 *)
9946 with_build_time_tools=
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9948 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9949 ;;
9950 esac
9951 else
9952 with_build_time_tools=
9953 fi
9954
9955
9956
9957
9958 if test -n "$CC_FOR_TARGET"; then
9959 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9960 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9962 fi
9963
9964 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9965 for ncn_progname in cc gcc; do
9966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9967 set dummy ${ncn_progname}; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 if test -n "$CC_FOR_TARGET"; then
9974 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9975 else
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987 done
9988 done
9989 IFS=$as_save_IFS
9990
9991 fi
9992 fi
9993 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9994 if test -n "$CC_FOR_TARGET"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9996 $as_echo "$CC_FOR_TARGET" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002
10003 done
10004 fi
10005
10006 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10007 for ncn_progname in cc gcc; do
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10010 if test -x $with_build_time_tools/${ncn_progname}; then
10011 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10013 $as_echo "yes" >&6; }
10014 break
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019 done
10020 fi
10021
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10023 for ncn_progname in cc gcc; do
10024 if test -n "$ncn_target_tool_prefix"; then
10025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 if test -n "$CC_FOR_TARGET"; then
10033 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10034 else
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10037 do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10042 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10045 fi
10046 done
10047 done
10048 IFS=$as_save_IFS
10049
10050 fi
10051 fi
10052 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10053 if test -n "$CC_FOR_TARGET"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10055 $as_echo "$CC_FOR_TARGET" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10065 set dummy ${ncn_progname}; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 if test -n "$CC_FOR_TARGET"; then
10072 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10073 else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10081 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085 done
10086 done
10087 IFS=$as_save_IFS
10088
10089 fi
10090 fi
10091 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10092 if test -n "$CC_FOR_TARGET"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10094 $as_echo "$CC_FOR_TARGET" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098 fi
10099
10100
10101 fi
10102 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10103 done
10104 fi
10105
10106 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10107 set dummy cc gcc
10108 if test $build = $target ; then
10109 CC_FOR_TARGET="$2"
10110 else
10111 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10112 fi
10113 else
10114 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10115 fi
10116
10117
10118
10119 if test -n "$CXX_FOR_TARGET"; then
10120 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10121 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10123 fi
10124
10125 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10126 for ncn_progname in c++ g++ cxx gxx; do
10127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10128 set dummy ${ncn_progname}; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 if test -n "$CXX_FOR_TARGET"; then
10135 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10136 else
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10139 do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10144 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10147 fi
10148 done
10149 done
10150 IFS=$as_save_IFS
10151
10152 fi
10153 fi
10154 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10155 if test -n "$CXX_FOR_TARGET"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10157 $as_echo "$CXX_FOR_TARGET" >&6; }
10158 else
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 fi
10162
10163
10164 done
10165 fi
10166
10167 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10168 for ncn_progname in c++ g++ cxx gxx; do
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10174 $as_echo "yes" >&6; }
10175 break
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 done
10181 fi
10182
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 for ncn_progname in c++ g++ cxx gxx; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 if test -n "$CXX_FOR_TARGET"; then
10194 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10195 else
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207 done
10208 done
10209 IFS=$as_save_IFS
10210
10211 fi
10212 fi
10213 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10214 if test -n "$CXX_FOR_TARGET"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10216 $as_echo "$CXX_FOR_TARGET" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10220 fi
10221
10222
10223 fi
10224 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10226 set dummy ${ncn_progname}; ac_word=$2
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228 $as_echo_n "checking for $ac_word... " >&6; }
10229 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 if test -n "$CXX_FOR_TARGET"; then
10233 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10234 else
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236 for as_dir in $PATH
10237 do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10242 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10245 fi
10246 done
10247 done
10248 IFS=$as_save_IFS
10249
10250 fi
10251 fi
10252 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10253 if test -n "$CXX_FOR_TARGET"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10255 $as_echo "$CXX_FOR_TARGET" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259 fi
10260
10261
10262 fi
10263 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10264 done
10265 fi
10266
10267 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10268 set dummy c++ g++ cxx gxx
10269 if test $build = $target ; then
10270 CXX_FOR_TARGET="$2"
10271 else
10272 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10273 fi
10274 else
10275 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10276 fi
10277
10278
10279
10280 if test -n "$GCC_FOR_TARGET"; then
10281 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10282 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10284 fi
10285
10286 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10287 for ncn_progname in gcc; do
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289 set dummy ${ncn_progname}; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 if test -n "$GCC_FOR_TARGET"; then
10296 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10297 else
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10305 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309 done
10310 done
10311 IFS=$as_save_IFS
10312
10313 fi
10314 fi
10315 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10316 if test -n "$GCC_FOR_TARGET"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10318 $as_echo "$GCC_FOR_TARGET" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323
10324
10325 done
10326 fi
10327
10328 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10329 for ncn_progname in gcc; do
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10331 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10332 if test -x $with_build_time_tools/${ncn_progname}; then
10333 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10335 $as_echo "yes" >&6; }
10336 break
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341 done
10342 fi
10343
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 for ncn_progname in gcc; do
10346 if test -n "$ncn_target_tool_prefix"; then
10347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 if test -n "$GCC_FOR_TARGET"; then
10355 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368 done
10369 done
10370 IFS=$as_save_IFS
10371
10372 fi
10373 fi
10374 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10375 if test -n "$GCC_FOR_TARGET"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10377 $as_echo "$GCC_FOR_TARGET" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382
10383
10384 fi
10385 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10387 set dummy ${ncn_progname}; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test -n "$GCC_FOR_TARGET"; then
10394 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407 done
10408 done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10414 if test -n "$GCC_FOR_TARGET"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10416 $as_echo "$GCC_FOR_TARGET" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423 fi
10424 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10425 done
10426 fi
10427
10428 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10429 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10430 else
10431 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10432 fi
10433
10434
10435
10436 if test -n "$GCJ_FOR_TARGET"; then
10437 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10438 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10439 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10440 fi
10441
10442 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10443 for ncn_progname in gcj; do
10444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10445 set dummy ${ncn_progname}; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 if test -n "$GCJ_FOR_TARGET"; then
10452 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10453 else
10454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10456 do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10461 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465 done
10466 done
10467 IFS=$as_save_IFS
10468
10469 fi
10470 fi
10471 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10472 if test -n "$GCJ_FOR_TARGET"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10474 $as_echo "$GCJ_FOR_TARGET" >&6; }
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 fi
10479
10480
10481 done
10482 fi
10483
10484 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10485 for ncn_progname in gcj; do
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10487 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10488 if test -x $with_build_time_tools/${ncn_progname}; then
10489 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491 $as_echo "yes" >&6; }
10492 break
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497 done
10498 fi
10499
10500 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10501 for ncn_progname in gcj; do
10502 if test -n "$ncn_target_tool_prefix"; then
10503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10504 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 if test -n "$GCJ_FOR_TARGET"; then
10511 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524 done
10525 done
10526 IFS=$as_save_IFS
10527
10528 fi
10529 fi
10530 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10531 if test -n "$GCJ_FOR_TARGET"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10533 $as_echo "$GCJ_FOR_TARGET" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539
10540 fi
10541 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10543 set dummy ${ncn_progname}; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 if test -n "$GCJ_FOR_TARGET"; then
10550 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10551 else
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10554 do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10559 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563 done
10564 done
10565 IFS=$as_save_IFS
10566
10567 fi
10568 fi
10569 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10570 if test -n "$GCJ_FOR_TARGET"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10572 $as_echo "$GCJ_FOR_TARGET" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577
10578
10579 fi
10580 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10581 done
10582 fi
10583
10584 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10585 set dummy gcj
10586 if test $build = $target ; then
10587 GCJ_FOR_TARGET="$2"
10588 else
10589 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10590 fi
10591 else
10592 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10593 fi
10594
10595
10596
10597 if test -n "$GFORTRAN_FOR_TARGET"; then
10598 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10599 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10600 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10601 fi
10602
10603 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10604 for ncn_progname in gfortran; do
10605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10606 set dummy ${ncn_progname}; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 if test -n "$GFORTRAN_FOR_TARGET"; then
10613 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10614 else
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10617 do
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10625 fi
10626 done
10627 done
10628 IFS=$as_save_IFS
10629
10630 fi
10631 fi
10632 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10633 if test -n "$GFORTRAN_FOR_TARGET"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10635 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10639 fi
10640
10641
10642 done
10643 fi
10644
10645 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10646 for ncn_progname in gfortran; do
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10649 if test -x $with_build_time_tools/${ncn_progname}; then
10650 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10653 break
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658 done
10659 fi
10660
10661 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10662 for ncn_progname in gfortran; do
10663 if test -n "$ncn_target_tool_prefix"; then
10664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test -n "$GFORTRAN_FOR_TARGET"; then
10672 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10673 else
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10684 fi
10685 done
10686 done
10687 IFS=$as_save_IFS
10688
10689 fi
10690 fi
10691 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10692 if test -n "$GFORTRAN_FOR_TARGET"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10694 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10698 fi
10699
10700
10701 fi
10702 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10704 set dummy ${ncn_progname}; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$GFORTRAN_FOR_TARGET"; then
10711 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10715 do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724 done
10725 done
10726 IFS=$as_save_IFS
10727
10728 fi
10729 fi
10730 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10731 if test -n "$GFORTRAN_FOR_TARGET"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10733 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 fi
10738
10739
10740 fi
10741 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10742 done
10743 fi
10744
10745 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10746 set dummy gfortran
10747 if test $build = $target ; then
10748 GFORTRAN_FOR_TARGET="$2"
10749 else
10750 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10751 fi
10752 else
10753 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10754 fi
10755
10756
10757
10758 if test -n "$GOC_FOR_TARGET"; then
10759 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10760 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10761 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10762 fi
10763
10764 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10765 for ncn_progname in gccgo; do
10766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10767 set dummy ${ncn_progname}; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 if test -n "$GOC_FOR_TARGET"; then
10774 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10775 else
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10778 do
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10786 fi
10787 done
10788 done
10789 IFS=$as_save_IFS
10790
10791 fi
10792 fi
10793 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10794 if test -n "$GOC_FOR_TARGET"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10796 $as_echo "$GOC_FOR_TARGET" >&6; }
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10800 fi
10801
10802
10803 done
10804 fi
10805
10806 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10807 for ncn_progname in gccgo; do
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10809 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10810 if test -x $with_build_time_tools/${ncn_progname}; then
10811 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10813 $as_echo "yes" >&6; }
10814 break
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10818 fi
10819 done
10820 fi
10821
10822 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10823 for ncn_progname in gccgo; do
10824 if test -n "$ncn_target_tool_prefix"; then
10825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if test -n "$GOC_FOR_TARGET"; then
10833 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10834 else
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846 done
10847 done
10848 IFS=$as_save_IFS
10849
10850 fi
10851 fi
10852 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10853 if test -n "$GOC_FOR_TARGET"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10855 $as_echo "$GOC_FOR_TARGET" >&6; }
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10860
10861
10862 fi
10863 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10865 set dummy ${ncn_progname}; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 if test -n "$GOC_FOR_TARGET"; then
10872 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885 done
10886 done
10887 IFS=$as_save_IFS
10888
10889 fi
10890 fi
10891 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10892 if test -n "$GOC_FOR_TARGET"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10894 $as_echo "$GOC_FOR_TARGET" >&6; }
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10898 fi
10899
10900
10901 fi
10902 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10903 done
10904 fi
10905
10906 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10907 set dummy gccgo
10908 if test $build = $target ; then
10909 GOC_FOR_TARGET="$2"
10910 else
10911 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10912 fi
10913 else
10914 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10915 fi
10916
10917
10918
10919 cat > conftest.c << \EOF
10920 #ifdef __GNUC__
10921 gcc_yay;
10922 #endif
10923 EOF
10924 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10925 have_gcc_for_target=yes
10926 else
10927 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10928 have_gcc_for_target=no
10929 fi
10930 rm conftest.c
10931
10932
10933
10934
10935 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10936 if test -n "$with_build_time_tools"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10938 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10939 if test -x $with_build_time_tools/ar; then
10940 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10941 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10943 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10948 elif test $build != $host && test $have_gcc_for_target = yes; then
10949 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10950 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10951 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10952 fi
10953 fi
10954 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10955 # Extract the first word of "ar", so it can be a program name with args.
10956 set dummy ar; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 case $AR_FOR_TARGET in
10963 [\\/]* | ?:[\\/]*)
10964 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10965 ;;
10966 *)
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $gcc_cv_tool_dirs
10969 do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978 done
10979 done
10980 IFS=$as_save_IFS
10981
10982 ;;
10983 esac
10984 fi
10985 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10986 if test -n "$AR_FOR_TARGET"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10988 $as_echo "$AR_FOR_TARGET" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 fi
10993
10994
10995 fi
10996 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10997
10998
10999 if test -n "$AR_FOR_TARGET"; then
11000 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11001 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11002 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11003 fi
11004
11005 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11006 for ncn_progname in ar; do
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008 set dummy ${ncn_progname}; ac_word=$2
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010 $as_echo_n "checking for $ac_word... " >&6; }
11011 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 if test -n "$AR_FOR_TARGET"; then
11015 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11016 else
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 for ac_exec_ext in '' $ac_executable_extensions; do
11023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11024 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026 break 2
11027 fi
11028 done
11029 done
11030 IFS=$as_save_IFS
11031
11032 fi
11033 fi
11034 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11035 if test -n "$AR_FOR_TARGET"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11037 $as_echo "$AR_FOR_TARGET" >&6; }
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 $as_echo "no" >&6; }
11041 fi
11042
11043
11044 done
11045 fi
11046
11047 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11048 for ncn_progname in ar; do
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11050 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11051 if test -x $with_build_time_tools/${ncn_progname}; then
11052 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11054 $as_echo "yes" >&6; }
11055 break
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11059 fi
11060 done
11061 fi
11062
11063 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11064 for ncn_progname in ar; do
11065 if test -n "$ncn_target_tool_prefix"; then
11066 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test -n "$AR_FOR_TARGET"; then
11074 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11078 do
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11086 fi
11087 done
11088 done
11089 IFS=$as_save_IFS
11090
11091 fi
11092 fi
11093 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11094 if test -n "$AR_FOR_TARGET"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11096 $as_echo "$AR_FOR_TARGET" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 fi
11101
11102
11103 fi
11104 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$AR_FOR_TARGET"; then
11113 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 fi
11131 fi
11132 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11133 if test -n "$AR_FOR_TARGET"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11135 $as_echo "$AR_FOR_TARGET" >&6; }
11136 else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11139 fi
11140
11141
11142 fi
11143 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11144 done
11145 fi
11146
11147 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11148 set dummy ar
11149 if test $build = $target ; then
11150 AR_FOR_TARGET="$2"
11151 else
11152 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11153 fi
11154 else
11155 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11156 fi
11157
11158 else
11159 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11160 fi
11161
11162
11163
11164
11165 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11166 if test -n "$with_build_time_tools"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11168 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11169 if test -x $with_build_time_tools/as; then
11170 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11171 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11173 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178 elif test $build != $host && test $have_gcc_for_target = yes; then
11179 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11180 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11181 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11182 fi
11183 fi
11184 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11185 # Extract the first word of "as", so it can be a program name with args.
11186 set dummy as; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 case $AS_FOR_TARGET in
11193 [\\/]* | ?:[\\/]*)
11194 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11195 ;;
11196 *)
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $gcc_cv_tool_dirs
11199 do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208 done
11209 done
11210 IFS=$as_save_IFS
11211
11212 ;;
11213 esac
11214 fi
11215 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11216 if test -n "$AS_FOR_TARGET"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11218 $as_echo "$AS_FOR_TARGET" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223
11224
11225 fi
11226 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11227
11228
11229 if test -n "$AS_FOR_TARGET"; then
11230 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11231 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11232 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11233 fi
11234
11235 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11236 for ncn_progname in as; do
11237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11238 set dummy ${ncn_progname}; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 if test -n "$AS_FOR_TARGET"; then
11245 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11246 else
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11249 do
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11254 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11257 fi
11258 done
11259 done
11260 IFS=$as_save_IFS
11261
11262 fi
11263 fi
11264 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11265 if test -n "$AS_FOR_TARGET"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11267 $as_echo "$AS_FOR_TARGET" >&6; }
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11271 fi
11272
11273
11274 done
11275 fi
11276
11277 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11278 for ncn_progname in as; do
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11280 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11281 if test -x $with_build_time_tools/${ncn_progname}; then
11282 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284 $as_echo "yes" >&6; }
11285 break
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290 done
11291 fi
11292
11293 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11294 for ncn_progname in as; do
11295 if test -n "$ncn_target_tool_prefix"; then
11296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11297 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299 $as_echo_n "checking for $ac_word... " >&6; }
11300 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test -n "$AS_FOR_TARGET"; then
11304 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11305 else
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11308 do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11316 fi
11317 done
11318 done
11319 IFS=$as_save_IFS
11320
11321 fi
11322 fi
11323 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11324 if test -n "$AS_FOR_TARGET"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11326 $as_echo "$AS_FOR_TARGET" >&6; }
11327 else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 $as_echo "no" >&6; }
11330 fi
11331
11332
11333 fi
11334 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336 set dummy ${ncn_progname}; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$AS_FOR_TARGET"; then
11343 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11347 do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11355 fi
11356 done
11357 done
11358 IFS=$as_save_IFS
11359
11360 fi
11361 fi
11362 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11363 if test -n "$AS_FOR_TARGET"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11365 $as_echo "$AS_FOR_TARGET" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370
11371
11372 fi
11373 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11374 done
11375 fi
11376
11377 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11378 set dummy as
11379 if test $build = $target ; then
11380 AS_FOR_TARGET="$2"
11381 else
11382 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11383 fi
11384 else
11385 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11386 fi
11387
11388 else
11389 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11390 fi
11391
11392
11393
11394
11395 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11396 if test -n "$with_build_time_tools"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11398 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11399 if test -x $with_build_time_tools/dlltool; then
11400 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11401 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11403 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408 elif test $build != $host && test $have_gcc_for_target = yes; then
11409 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11410 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11411 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11412 fi
11413 fi
11414 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11415 # Extract the first word of "dlltool", so it can be a program name with args.
11416 set dummy dlltool; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418 $as_echo_n "checking for $ac_word... " >&6; }
11419 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 case $DLLTOOL_FOR_TARGET in
11423 [\\/]* | ?:[\\/]*)
11424 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11425 ;;
11426 *)
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $gcc_cv_tool_dirs
11429 do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438 done
11439 done
11440 IFS=$as_save_IFS
11441
11442 ;;
11443 esac
11444 fi
11445 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11446 if test -n "$DLLTOOL_FOR_TARGET"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11448 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11452 fi
11453
11454
11455 fi
11456 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11457
11458
11459 if test -n "$DLLTOOL_FOR_TARGET"; then
11460 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11461 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11462 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11463 fi
11464
11465 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11466 for ncn_progname in dlltool; do
11467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11468 set dummy ${ncn_progname}; ac_word=$2
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 if test -n "$DLLTOOL_FOR_TARGET"; then
11475 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11476 else
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11479 do
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488 done
11489 done
11490 IFS=$as_save_IFS
11491
11492 fi
11493 fi
11494 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11495 if test -n "$DLLTOOL_FOR_TARGET"; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11497 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11500 $as_echo "no" >&6; }
11501 fi
11502
11503
11504 done
11505 fi
11506
11507 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11508 for ncn_progname in dlltool; do
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11510 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11511 if test -x $with_build_time_tools/${ncn_progname}; then
11512 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514 $as_echo "yes" >&6; }
11515 break
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 fi
11520 done
11521 fi
11522
11523 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11524 for ncn_progname in dlltool; do
11525 if test -n "$ncn_target_tool_prefix"; then
11526 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11527 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 if test -n "$DLLTOOL_FOR_TARGET"; then
11534 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11535 else
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11538 do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547 done
11548 done
11549 IFS=$as_save_IFS
11550
11551 fi
11552 fi
11553 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11554 if test -n "$DLLTOOL_FOR_TARGET"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11556 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11560 fi
11561
11562
11563 fi
11564 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11566 set dummy ${ncn_progname}; ac_word=$2
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568 $as_echo_n "checking for $ac_word... " >&6; }
11569 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 if test -n "$DLLTOOL_FOR_TARGET"; then
11573 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11574 else
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576 for as_dir in $PATH
11577 do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584 break 2
11585 fi
11586 done
11587 done
11588 IFS=$as_save_IFS
11589
11590 fi
11591 fi
11592 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11593 if test -n "$DLLTOOL_FOR_TARGET"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11595 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602 fi
11603 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11604 done
11605 fi
11606
11607 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11608 set dummy dlltool
11609 if test $build = $target ; then
11610 DLLTOOL_FOR_TARGET="$2"
11611 else
11612 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11613 fi
11614 else
11615 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11616 fi
11617
11618 else
11619 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11620 fi
11621
11622
11623
11624
11625 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11626 if test -n "$with_build_time_tools"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11628 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11629 if test -x $with_build_time_tools/ld; then
11630 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11631 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11633 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11637 fi
11638 elif test $build != $host && test $have_gcc_for_target = yes; then
11639 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11640 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11641 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11642 fi
11643 fi
11644 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11645 # Extract the first word of "ld", so it can be a program name with args.
11646 set dummy ld; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 case $LD_FOR_TARGET in
11653 [\\/]* | ?:[\\/]*)
11654 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11655 ;;
11656 *)
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $gcc_cv_tool_dirs
11659 do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11664 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11667 fi
11668 done
11669 done
11670 IFS=$as_save_IFS
11671
11672 ;;
11673 esac
11674 fi
11675 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11676 if test -n "$LD_FOR_TARGET"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11678 $as_echo "$LD_FOR_TARGET" >&6; }
11679 else
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11682 fi
11683
11684
11685 fi
11686 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11687
11688
11689 if test -n "$LD_FOR_TARGET"; then
11690 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11691 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11692 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11693 fi
11694
11695 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11696 for ncn_progname in ld; do
11697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11698 set dummy ${ncn_progname}; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 if test -n "$LD_FOR_TARGET"; then
11705 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11706 else
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11717 fi
11718 done
11719 done
11720 IFS=$as_save_IFS
11721
11722 fi
11723 fi
11724 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11725 if test -n "$LD_FOR_TARGET"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11727 $as_echo "$LD_FOR_TARGET" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732
11733
11734 done
11735 fi
11736
11737 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11738 for ncn_progname in ld; do
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11740 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11741 if test -x $with_build_time_tools/${ncn_progname}; then
11742 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744 $as_echo "yes" >&6; }
11745 break
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11749 fi
11750 done
11751 fi
11752
11753 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11754 for ncn_progname in ld; do
11755 if test -n "$ncn_target_tool_prefix"; then
11756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11757 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 if test -n "$LD_FOR_TARGET"; then
11764 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11765 else
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11768 do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777 done
11778 done
11779 IFS=$as_save_IFS
11780
11781 fi
11782 fi
11783 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11784 if test -n "$LD_FOR_TARGET"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11786 $as_echo "$LD_FOR_TARGET" >&6; }
11787 else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790 fi
11791
11792
11793 fi
11794 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11796 set dummy ${ncn_progname}; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$LD_FOR_TARGET"; then
11803 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11815 fi
11816 done
11817 done
11818 IFS=$as_save_IFS
11819
11820 fi
11821 fi
11822 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11823 if test -n "$LD_FOR_TARGET"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11825 $as_echo "$LD_FOR_TARGET" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830
11831
11832 fi
11833 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11834 done
11835 fi
11836
11837 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11838 set dummy ld
11839 if test $build = $target ; then
11840 LD_FOR_TARGET="$2"
11841 else
11842 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11843 fi
11844 else
11845 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11846 fi
11847
11848 else
11849 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11850 fi
11851
11852
11853
11854
11855 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11856 if test -n "$with_build_time_tools"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11858 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11859 if test -x $with_build_time_tools/lipo; then
11860 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11861 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11863 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11864 else
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867 fi
11868 elif test $build != $host && test $have_gcc_for_target = yes; then
11869 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11870 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11871 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11872 fi
11873 fi
11874 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11875 # Extract the first word of "lipo", so it can be a program name with args.
11876 set dummy lipo; ac_word=$2
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11878 $as_echo_n "checking for $ac_word... " >&6; }
11879 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 case $LIPO_FOR_TARGET in
11883 [\\/]* | ?:[\\/]*)
11884 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11885 ;;
11886 *)
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $gcc_cv_tool_dirs
11889 do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 break 2
11897 fi
11898 done
11899 done
11900 IFS=$as_save_IFS
11901
11902 ;;
11903 esac
11904 fi
11905 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11906 if test -n "$LIPO_FOR_TARGET"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11908 $as_echo "$LIPO_FOR_TARGET" >&6; }
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 fi
11913
11914
11915 fi
11916 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11917
11918
11919 if test -n "$LIPO_FOR_TARGET"; then
11920 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11921 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11922 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11923 fi
11924
11925 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11926 for ncn_progname in lipo; do
11927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11928 set dummy ${ncn_progname}; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 if test -n "$LIPO_FOR_TARGET"; then
11935 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11936 else
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11939 do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946 break 2
11947 fi
11948 done
11949 done
11950 IFS=$as_save_IFS
11951
11952 fi
11953 fi
11954 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11955 if test -n "$LIPO_FOR_TARGET"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11957 $as_echo "$LIPO_FOR_TARGET" >&6; }
11958 else
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11961 fi
11962
11963
11964 done
11965 fi
11966
11967 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11968 for ncn_progname in lipo; do
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11970 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11971 if test -x $with_build_time_tools/${ncn_progname}; then
11972 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11975 break
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980 done
11981 fi
11982
11983 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11984 for ncn_progname in lipo; do
11985 if test -n "$ncn_target_tool_prefix"; then
11986 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11987 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test -n "$LIPO_FOR_TARGET"; then
11994 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11998 do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12006 fi
12007 done
12008 done
12009 IFS=$as_save_IFS
12010
12011 fi
12012 fi
12013 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12014 if test -n "$LIPO_FOR_TARGET"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12016 $as_echo "$LIPO_FOR_TARGET" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 fi
12021
12022
12023 fi
12024 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12026 set dummy ${ncn_progname}; ac_word=$2
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028 $as_echo_n "checking for $ac_word... " >&6; }
12029 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 if test -n "$LIPO_FOR_TARGET"; then
12033 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12034 else
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12042 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044 break 2
12045 fi
12046 done
12047 done
12048 IFS=$as_save_IFS
12049
12050 fi
12051 fi
12052 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12053 if test -n "$LIPO_FOR_TARGET"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12055 $as_echo "$LIPO_FOR_TARGET" >&6; }
12056 else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12059 fi
12060
12061
12062 fi
12063 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12064 done
12065 fi
12066
12067 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12068 set dummy lipo
12069 if test $build = $target ; then
12070 LIPO_FOR_TARGET="$2"
12071 else
12072 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12073 fi
12074 else
12075 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12076 fi
12077
12078 else
12079 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12080 fi
12081
12082
12083
12084
12085 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12086 if test -n "$with_build_time_tools"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12088 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12089 if test -x $with_build_time_tools/nm; then
12090 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12091 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12093 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12097 fi
12098 elif test $build != $host && test $have_gcc_for_target = yes; then
12099 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12100 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12101 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12102 fi
12103 fi
12104 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12105 # Extract the first word of "nm", so it can be a program name with args.
12106 set dummy nm; ac_word=$2
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108 $as_echo_n "checking for $ac_word... " >&6; }
12109 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 case $NM_FOR_TARGET in
12113 [\\/]* | ?:[\\/]*)
12114 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12115 ;;
12116 *)
12117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118 for as_dir in $gcc_cv_tool_dirs
12119 do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12124 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 break 2
12127 fi
12128 done
12129 done
12130 IFS=$as_save_IFS
12131
12132 ;;
12133 esac
12134 fi
12135 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12136 if test -n "$NM_FOR_TARGET"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12138 $as_echo "$NM_FOR_TARGET" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145 fi
12146 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12147
12148
12149 if test -n "$NM_FOR_TARGET"; then
12150 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12151 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12152 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12153 fi
12154
12155 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12156 for ncn_progname in nm; do
12157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12158 set dummy ${ncn_progname}; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 if test -n "$NM_FOR_TARGET"; then
12165 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12174 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 break 2
12177 fi
12178 done
12179 done
12180 IFS=$as_save_IFS
12181
12182 fi
12183 fi
12184 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12185 if test -n "$NM_FOR_TARGET"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12187 $as_echo "$NM_FOR_TARGET" >&6; }
12188 else
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192
12193
12194 done
12195 fi
12196
12197 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12198 for ncn_progname in nm; do
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12200 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12201 if test -x $with_build_time_tools/${ncn_progname}; then
12202 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204 $as_echo "yes" >&6; }
12205 break
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210 done
12211 fi
12212
12213 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12214 for ncn_progname in nm; do
12215 if test -n "$ncn_target_tool_prefix"; then
12216 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12217 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test -n "$NM_FOR_TARGET"; then
12224 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12225 else
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12228 do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12233 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12236 fi
12237 done
12238 done
12239 IFS=$as_save_IFS
12240
12241 fi
12242 fi
12243 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12244 if test -n "$NM_FOR_TARGET"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12246 $as_echo "$NM_FOR_TARGET" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250 fi
12251
12252
12253 fi
12254 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12256 set dummy ${ncn_progname}; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 if test -n "$NM_FOR_TARGET"; then
12263 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12264 else
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12267 do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12272 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274 break 2
12275 fi
12276 done
12277 done
12278 IFS=$as_save_IFS
12279
12280 fi
12281 fi
12282 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12283 if test -n "$NM_FOR_TARGET"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12285 $as_echo "$NM_FOR_TARGET" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12289 fi
12290
12291
12292 fi
12293 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12294 done
12295 fi
12296
12297 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12298 set dummy nm
12299 if test $build = $target ; then
12300 NM_FOR_TARGET="$2"
12301 else
12302 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12303 fi
12304 else
12305 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12306 fi
12307
12308 else
12309 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12310 fi
12311
12312
12313
12314
12315 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12316 if test -n "$with_build_time_tools"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12318 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12319 if test -x $with_build_time_tools/objcopy; then
12320 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12321 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12323 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328 elif test $build != $host && test $have_gcc_for_target = yes; then
12329 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12330 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12331 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12332 fi
12333 fi
12334 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12335 # Extract the first word of "objcopy", so it can be a program name with args.
12336 set dummy objcopy; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 case $OBJCOPY_FOR_TARGET in
12343 [\\/]* | ?:[\\/]*)
12344 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12345 ;;
12346 *)
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $gcc_cv_tool_dirs
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 ;;
12363 esac
12364 fi
12365 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12366 if test -n "$OBJCOPY_FOR_TARGET"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12368 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12372 fi
12373
12374
12375 fi
12376 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12377
12378
12379 if test -n "$OBJCOPY_FOR_TARGET"; then
12380 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12381 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12382 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12383 fi
12384
12385 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12386 for ncn_progname in objcopy; do
12387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12388 set dummy ${ncn_progname}; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 if test -n "$OBJCOPY_FOR_TARGET"; then
12395 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12396 else
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12399 do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408 done
12409 done
12410 IFS=$as_save_IFS
12411
12412 fi
12413 fi
12414 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12415 if test -n "$OBJCOPY_FOR_TARGET"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12417 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12418 else
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423
12424 done
12425 fi
12426
12427 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12428 for ncn_progname in objcopy; do
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12430 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12431 if test -x $with_build_time_tools/${ncn_progname}; then
12432 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12434 $as_echo "yes" >&6; }
12435 break
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440 done
12441 fi
12442
12443 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12444 for ncn_progname in objcopy; do
12445 if test -n "$ncn_target_tool_prefix"; then
12446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12447 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 if test -n "$OBJCOPY_FOR_TARGET"; then
12454 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12466 fi
12467 done
12468 done
12469 IFS=$as_save_IFS
12470
12471 fi
12472 fi
12473 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12474 if test -n "$OBJCOPY_FOR_TARGET"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12476 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 fi
12481
12482
12483 fi
12484 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$OBJCOPY_FOR_TARGET"; then
12493 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12497 do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12505 fi
12506 done
12507 done
12508 IFS=$as_save_IFS
12509
12510 fi
12511 fi
12512 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12513 if test -n "$OBJCOPY_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12515 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 fi
12520
12521
12522 fi
12523 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12524 done
12525 fi
12526
12527 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12528 set dummy objcopy
12529 if test $build = $target ; then
12530 OBJCOPY_FOR_TARGET="$2"
12531 else
12532 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12533 fi
12534 else
12535 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12536 fi
12537
12538 else
12539 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12540 fi
12541
12542
12543
12544
12545 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12546 if test -n "$with_build_time_tools"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12548 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12549 if test -x $with_build_time_tools/objdump; then
12550 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12551 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12553 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557 fi
12558 elif test $build != $host && test $have_gcc_for_target = yes; then
12559 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12560 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12561 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12562 fi
12563 fi
12564 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12565 # Extract the first word of "objdump", so it can be a program name with args.
12566 set dummy objdump; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 case $OBJDUMP_FOR_TARGET in
12573 [\\/]* | ?:[\\/]*)
12574 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12575 ;;
12576 *)
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $gcc_cv_tool_dirs
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588 done
12589 done
12590 IFS=$as_save_IFS
12591
12592 ;;
12593 esac
12594 fi
12595 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12596 if test -n "$OBJDUMP_FOR_TARGET"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12598 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603
12604
12605 fi
12606 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12607
12608
12609 if test -n "$OBJDUMP_FOR_TARGET"; then
12610 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12611 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12612 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12613 fi
12614
12615 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12616 for ncn_progname in objdump; do
12617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12618 set dummy ${ncn_progname}; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 if test -n "$OBJDUMP_FOR_TARGET"; then
12625 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12626 else
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630 IFS=$as_save_IFS
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636 break 2
12637 fi
12638 done
12639 done
12640 IFS=$as_save_IFS
12641
12642 fi
12643 fi
12644 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12645 if test -n "$OBJDUMP_FOR_TARGET"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12647 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654 done
12655 fi
12656
12657 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12658 for ncn_progname in objdump; do
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12660 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12661 if test -x $with_build_time_tools/${ncn_progname}; then
12662 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12664 $as_echo "yes" >&6; }
12665 break
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670 done
12671 fi
12672
12673 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12674 for ncn_progname in objdump; do
12675 if test -n "$ncn_target_tool_prefix"; then
12676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 if test -n "$OBJDUMP_FOR_TARGET"; then
12684 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12685 else
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12696 fi
12697 done
12698 done
12699 IFS=$as_save_IFS
12700
12701 fi
12702 fi
12703 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12704 if test -n "$OBJDUMP_FOR_TARGET"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12706 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710 fi
12711
12712
12713 fi
12714 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12718 $as_echo_n "checking for $ac_word... " >&6; }
12719 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 if test -n "$OBJDUMP_FOR_TARGET"; then
12723 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12724 else
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740 fi
12741 fi
12742 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12743 if test -n "$OBJDUMP_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12745 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748 $as_echo "no" >&6; }
12749 fi
12750
12751
12752 fi
12753 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12754 done
12755 fi
12756
12757 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12758 set dummy objdump
12759 if test $build = $target ; then
12760 OBJDUMP_FOR_TARGET="$2"
12761 else
12762 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12763 fi
12764 else
12765 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12766 fi
12767
12768 else
12769 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12770 fi
12771
12772
12773
12774
12775 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12776 if test -n "$with_build_time_tools"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12778 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12779 if test -x $with_build_time_tools/ranlib; then
12780 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12781 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12783 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788 elif test $build != $host && test $have_gcc_for_target = yes; then
12789 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12790 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12791 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12792 fi
12793 fi
12794 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12795 # Extract the first word of "ranlib", so it can be a program name with args.
12796 set dummy ranlib; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 case $RANLIB_FOR_TARGET in
12803 [\\/]* | ?:[\\/]*)
12804 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12805 ;;
12806 *)
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $gcc_cv_tool_dirs
12809 do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12814 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 ;;
12823 esac
12824 fi
12825 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12826 if test -n "$RANLIB_FOR_TARGET"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12828 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833
12834
12835 fi
12836 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12837
12838
12839 if test -n "$RANLIB_FOR_TARGET"; then
12840 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12841 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12842 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12843 fi
12844
12845 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12846 for ncn_progname in ranlib; do
12847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12848 set dummy ${ncn_progname}; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12850 $as_echo_n "checking for $ac_word... " >&6; }
12851 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 if test -n "$RANLIB_FOR_TARGET"; then
12855 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12856 else
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12859 do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12864 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12866 break 2
12867 fi
12868 done
12869 done
12870 IFS=$as_save_IFS
12871
12872 fi
12873 fi
12874 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12875 if test -n "$RANLIB_FOR_TARGET"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12877 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12881 fi
12882
12883
12884 done
12885 fi
12886
12887 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12888 for ncn_progname in ranlib; do
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12890 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12891 if test -x $with_build_time_tools/${ncn_progname}; then
12892 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12894 $as_echo "yes" >&6; }
12895 break
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900 done
12901 fi
12902
12903 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12904 for ncn_progname in ranlib; do
12905 if test -n "$ncn_target_tool_prefix"; then
12906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12907 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$RANLIB_FOR_TARGET"; then
12914 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927 done
12928 done
12929 IFS=$as_save_IFS
12930
12931 fi
12932 fi
12933 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12934 if test -n "$RANLIB_FOR_TARGET"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12936 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941
12942
12943 fi
12944 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952 if test -n "$RANLIB_FOR_TARGET"; then
12953 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12954 else
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12962 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12964 break 2
12965 fi
12966 done
12967 done
12968 IFS=$as_save_IFS
12969
12970 fi
12971 fi
12972 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12973 if test -n "$RANLIB_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12975 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12976 else
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 fi
12980
12981
12982 fi
12983 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12984 done
12985 fi
12986
12987 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12988 set dummy ranlib
12989 if test $build = $target ; then
12990 RANLIB_FOR_TARGET="$2"
12991 else
12992 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12993 fi
12994 else
12995 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12996 fi
12997
12998 else
12999 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13000 fi
13001
13002
13003
13004
13005 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13006 if test -n "$with_build_time_tools"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13008 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13009 if test -x $with_build_time_tools/readelf; then
13010 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13011 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13013 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 fi
13018 elif test $build != $host && test $have_gcc_for_target = yes; then
13019 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13020 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13021 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13022 fi
13023 fi
13024 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13025 # Extract the first word of "readelf", so it can be a program name with args.
13026 set dummy readelf; ac_word=$2
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13028 $as_echo_n "checking for $ac_word... " >&6; }
13029 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 case $READELF_FOR_TARGET in
13033 [\\/]* | ?:[\\/]*)
13034 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13035 ;;
13036 *)
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $gcc_cv_tool_dirs
13039 do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048 done
13049 done
13050 IFS=$as_save_IFS
13051
13052 ;;
13053 esac
13054 fi
13055 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13056 if test -n "$READELF_FOR_TARGET"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13058 $as_echo "$READELF_FOR_TARGET" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13062 fi
13063
13064
13065 fi
13066 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13067
13068
13069 if test -n "$READELF_FOR_TARGET"; then
13070 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13071 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13072 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13073 fi
13074
13075 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13076 for ncn_progname in readelf; do
13077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13078 set dummy ${ncn_progname}; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test -n "$READELF_FOR_TARGET"; then
13085 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13105 if test -n "$READELF_FOR_TARGET"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13107 $as_echo "$READELF_FOR_TARGET" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 done
13115 fi
13116
13117 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13118 for ncn_progname in readelf; do
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13120 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13121 if test -x $with_build_time_tools/${ncn_progname}; then
13122 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13125 break
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 fi
13130 done
13131 fi
13132
13133 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13134 for ncn_progname in readelf; do
13135 if test -n "$ncn_target_tool_prefix"; then
13136 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13137 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$READELF_FOR_TARGET"; then
13144 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13156 fi
13157 done
13158 done
13159 IFS=$as_save_IFS
13160
13161 fi
13162 fi
13163 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13164 if test -n "$READELF_FOR_TARGET"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13166 $as_echo "$READELF_FOR_TARGET" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170 fi
13171
13172
13173 fi
13174 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13176 set dummy ${ncn_progname}; ac_word=$2
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13178 $as_echo_n "checking for $ac_word... " >&6; }
13179 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test -n "$READELF_FOR_TARGET"; then
13183 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13184 else
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186 for as_dir in $PATH
13187 do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
13190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13192 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13194 break 2
13195 fi
13196 done
13197 done
13198 IFS=$as_save_IFS
13199
13200 fi
13201 fi
13202 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13203 if test -n "$READELF_FOR_TARGET"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13205 $as_echo "$READELF_FOR_TARGET" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210
13211
13212 fi
13213 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13214 done
13215 fi
13216
13217 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13218 set dummy readelf
13219 if test $build = $target ; then
13220 READELF_FOR_TARGET="$2"
13221 else
13222 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13223 fi
13224 else
13225 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13226 fi
13227
13228 else
13229 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13230 fi
13231
13232
13233
13234
13235 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13236 if test -n "$with_build_time_tools"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13238 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13239 if test -x $with_build_time_tools/strip; then
13240 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13241 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13243 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247 fi
13248 elif test $build != $host && test $have_gcc_for_target = yes; then
13249 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13250 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13251 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13252 fi
13253 fi
13254 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13255 # Extract the first word of "strip", so it can be a program name with args.
13256 set dummy strip; ac_word=$2
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 $as_echo_n "checking for $ac_word... " >&6; }
13259 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 case $STRIP_FOR_TARGET in
13263 [\\/]* | ?:[\\/]*)
13264 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13265 ;;
13266 *)
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $gcc_cv_tool_dirs
13269 do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 ;;
13283 esac
13284 fi
13285 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13286 if test -n "$STRIP_FOR_TARGET"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13288 $as_echo "$STRIP_FOR_TARGET" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13292 fi
13293
13294
13295 fi
13296 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13297
13298
13299 if test -n "$STRIP_FOR_TARGET"; then
13300 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13301 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13302 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13303 fi
13304
13305 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13306 for ncn_progname in strip; do
13307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13308 set dummy ${ncn_progname}; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 if test -n "$STRIP_FOR_TARGET"; then
13315 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13316 else
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13319 do
13320 IFS=$as_save_IFS
13321 test -z "$as_dir" && as_dir=.
13322 for ac_exec_ext in '' $ac_executable_extensions; do
13323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13324 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326 break 2
13327 fi
13328 done
13329 done
13330 IFS=$as_save_IFS
13331
13332 fi
13333 fi
13334 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13335 if test -n "$STRIP_FOR_TARGET"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13337 $as_echo "$STRIP_FOR_TARGET" >&6; }
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13341 fi
13342
13343
13344 done
13345 fi
13346
13347 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13348 for ncn_progname in strip; do
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13350 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13351 if test -x $with_build_time_tools/${ncn_progname}; then
13352 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13354 $as_echo "yes" >&6; }
13355 break
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13359 fi
13360 done
13361 fi
13362
13363 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13364 for ncn_progname in strip; do
13365 if test -n "$ncn_target_tool_prefix"; then
13366 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13367 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369 $as_echo_n "checking for $ac_word... " >&6; }
13370 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 if test -n "$STRIP_FOR_TARGET"; then
13374 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13375 else
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13378 do
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13383 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13386 fi
13387 done
13388 done
13389 IFS=$as_save_IFS
13390
13391 fi
13392 fi
13393 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13394 if test -n "$STRIP_FOR_TARGET"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13396 $as_echo "$STRIP_FOR_TARGET" >&6; }
13397 else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400 fi
13401
13402
13403 fi
13404 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13406 set dummy ${ncn_progname}; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 if test -n "$STRIP_FOR_TARGET"; then
13413 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13417 do
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426 done
13427 done
13428 IFS=$as_save_IFS
13429
13430 fi
13431 fi
13432 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13433 if test -n "$STRIP_FOR_TARGET"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13435 $as_echo "$STRIP_FOR_TARGET" >&6; }
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441
13442 fi
13443 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13444 done
13445 fi
13446
13447 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13448 set dummy strip
13449 if test $build = $target ; then
13450 STRIP_FOR_TARGET="$2"
13451 else
13452 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13453 fi
13454 else
13455 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13456 fi
13457
13458 else
13459 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13460 fi
13461
13462
13463
13464
13465 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13466 if test -n "$with_build_time_tools"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13468 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13469 if test -x $with_build_time_tools/windres; then
13470 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13471 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13473 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13474 else
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 $as_echo "no" >&6; }
13477 fi
13478 elif test $build != $host && test $have_gcc_for_target = yes; then
13479 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13480 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13481 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13482 fi
13483 fi
13484 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13485 # Extract the first word of "windres", so it can be a program name with args.
13486 set dummy windres; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 case $WINDRES_FOR_TARGET in
13493 [\\/]* | ?:[\\/]*)
13494 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13495 ;;
13496 *)
13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498 for as_dir in $gcc_cv_tool_dirs
13499 do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
13503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13504 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13507 fi
13508 done
13509 done
13510 IFS=$as_save_IFS
13511
13512 ;;
13513 esac
13514 fi
13515 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13516 if test -n "$WINDRES_FOR_TARGET"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13518 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523
13524
13525 fi
13526 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13527
13528
13529 if test -n "$WINDRES_FOR_TARGET"; then
13530 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13531 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13532 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13533 fi
13534
13535 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13536 for ncn_progname in windres; do
13537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13538 set dummy ${ncn_progname}; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 if test -n "$WINDRES_FOR_TARGET"; then
13545 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13546 else
13547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550 IFS=$as_save_IFS
13551 test -z "$as_dir" && as_dir=.
13552 for ac_exec_ext in '' $ac_executable_extensions; do
13553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13554 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556 break 2
13557 fi
13558 done
13559 done
13560 IFS=$as_save_IFS
13561
13562 fi
13563 fi
13564 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13565 if test -n "$WINDRES_FOR_TARGET"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13567 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13568 else
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13571 fi
13572
13573
13574 done
13575 fi
13576
13577 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13578 for ncn_progname in windres; do
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13580 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13581 if test -x $with_build_time_tools/${ncn_progname}; then
13582 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13584 $as_echo "yes" >&6; }
13585 break
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590 done
13591 fi
13592
13593 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13594 for ncn_progname in windres; do
13595 if test -n "$ncn_target_tool_prefix"; then
13596 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13597 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 if test -n "$WINDRES_FOR_TARGET"; then
13604 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13605 else
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13608 do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13616 fi
13617 done
13618 done
13619 IFS=$as_save_IFS
13620
13621 fi
13622 fi
13623 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13624 if test -n "$WINDRES_FOR_TARGET"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13626 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13627 else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13630 fi
13631
13632
13633 fi
13634 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13636 set dummy ${ncn_progname}; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test -n "$WINDRES_FOR_TARGET"; then
13643 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13644 else
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13647 do
13648 IFS=$as_save_IFS
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13652 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13654 break 2
13655 fi
13656 done
13657 done
13658 IFS=$as_save_IFS
13659
13660 fi
13661 fi
13662 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13663 if test -n "$WINDRES_FOR_TARGET"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13665 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670
13671
13672 fi
13673 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13674 done
13675 fi
13676
13677 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13678 set dummy windres
13679 if test $build = $target ; then
13680 WINDRES_FOR_TARGET="$2"
13681 else
13682 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13683 fi
13684 else
13685 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13686 fi
13687
13688 else
13689 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13690 fi
13691
13692
13693
13694
13695 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13696 if test -n "$with_build_time_tools"; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13698 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13699 if test -x $with_build_time_tools/windmc; then
13700 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13701 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13703 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 fi
13708 elif test $build != $host && test $have_gcc_for_target = yes; then
13709 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13710 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13711 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13712 fi
13713 fi
13714 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13715 # Extract the first word of "windmc", so it can be a program name with args.
13716 set dummy windmc; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 case $WINDMC_FOR_TARGET in
13723 [\\/]* | ?:[\\/]*)
13724 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13725 ;;
13726 *)
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $gcc_cv_tool_dirs
13729 do
13730 IFS=$as_save_IFS
13731 test -z "$as_dir" && as_dir=.
13732 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13734 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13736 break 2
13737 fi
13738 done
13739 done
13740 IFS=$as_save_IFS
13741
13742 ;;
13743 esac
13744 fi
13745 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13746 if test -n "$WINDMC_FOR_TARGET"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13748 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13752 fi
13753
13754
13755 fi
13756 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13757
13758
13759 if test -n "$WINDMC_FOR_TARGET"; then
13760 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13761 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13762 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13763 fi
13764
13765 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13766 for ncn_progname in windmc; do
13767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13768 set dummy ${ncn_progname}; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 if test -n "$WINDMC_FOR_TARGET"; then
13775 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13776 else
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13779 do
13780 IFS=$as_save_IFS
13781 test -z "$as_dir" && as_dir=.
13782 for ac_exec_ext in '' $ac_executable_extensions; do
13783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13784 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786 break 2
13787 fi
13788 done
13789 done
13790 IFS=$as_save_IFS
13791
13792 fi
13793 fi
13794 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13795 if test -n "$WINDMC_FOR_TARGET"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13797 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13798 else
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13801 fi
13802
13803
13804 done
13805 fi
13806
13807 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13808 for ncn_progname in windmc; do
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13810 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13811 if test -x $with_build_time_tools/${ncn_progname}; then
13812 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13814 $as_echo "yes" >&6; }
13815 break
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13819 fi
13820 done
13821 fi
13822
13823 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13824 for ncn_progname in windmc; do
13825 if test -n "$ncn_target_tool_prefix"; then
13826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 if test -n "$WINDMC_FOR_TARGET"; then
13834 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13838 do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13846 fi
13847 done
13848 done
13849 IFS=$as_save_IFS
13850
13851 fi
13852 fi
13853 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13854 if test -n "$WINDMC_FOR_TARGET"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13856 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861
13862
13863 fi
13864 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13866 set dummy ${ncn_progname}; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 if test -n "$WINDMC_FOR_TARGET"; then
13873 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13877 do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13885 fi
13886 done
13887 done
13888 IFS=$as_save_IFS
13889
13890 fi
13891 fi
13892 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13893 if test -n "$WINDMC_FOR_TARGET"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13895 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13899 fi
13900
13901
13902 fi
13903 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13904 done
13905 fi
13906
13907 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13908 set dummy windmc
13909 if test $build = $target ; then
13910 WINDMC_FOR_TARGET="$2"
13911 else
13912 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13913 fi
13914 else
13915 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13916 fi
13917
13918 else
13919 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13920 fi
13921
13922
13923 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13924
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13926 $as_echo_n "checking where to find the target ar... " >&6; }
13927 if test "x${build}" != "x${host}" ; then
13928 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
13930 ac_dir=`dirname $AR_FOR_TARGET`
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932 $as_echo "pre-installed in $ac_dir" >&6; }
13933 else
13934 # Canadian cross, just use what we found
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936 $as_echo "pre-installed" >&6; }
13937 fi
13938 else
13939 ok=yes
13940 case " ${configdirs} " in
13941 *" binutils "*) ;;
13942 *) ok=no ;;
13943 esac
13944
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949 $as_echo "just compiled" >&6; }
13950 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $AR_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 AR_FOR_TARGET='$(AR)'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959 $as_echo "host tool" >&6; }
13960 else
13961 # We need a cross tool
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13964 fi
13965 fi
13966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13968 $as_echo_n "checking where to find the target as... " >&6; }
13969 if test "x${build}" != "x${host}" ; then
13970 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $AS_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974 $as_echo "pre-installed in $ac_dir" >&6; }
13975 else
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13979 fi
13980 else
13981 ok=yes
13982 case " ${configdirs} " in
13983 *" gas "*) ;;
13984 *) ok=no ;;
13985 esac
13986
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991 $as_echo "just compiled" >&6; }
13992 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $AS_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 AS_FOR_TARGET='$(AS)'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001 $as_echo "host tool" >&6; }
14002 else
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14006 fi
14007 fi
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14010 $as_echo_n "checking where to find the target cc... " >&6; }
14011 if test "x${build}" != "x${host}" ; then
14012 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14013 # We already found the complete path
14014 ac_dir=`dirname $CC_FOR_TARGET`
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14016 $as_echo "pre-installed in $ac_dir" >&6; }
14017 else
14018 # Canadian cross, just use what we found
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14021 fi
14022 else
14023 ok=yes
14024 case " ${configdirs} " in
14025 *" gcc "*) ;;
14026 *) ok=no ;;
14027 esac
14028
14029 if test $ok = yes; then
14030 # An in-tree tool is available and we can use it
14031 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14033 $as_echo "just compiled" >&6; }
14034 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14035 # We already found the complete path
14036 ac_dir=`dirname $CC_FOR_TARGET`
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14038 $as_echo "pre-installed in $ac_dir" >&6; }
14039 elif test "x$target" = "x$host"; then
14040 # We can use an host tool
14041 CC_FOR_TARGET='$(CC)'
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14043 $as_echo "host tool" >&6; }
14044 else
14045 # We need a cross tool
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047 $as_echo "pre-installed" >&6; }
14048 fi
14049 fi
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14052 $as_echo_n "checking where to find the target c++... " >&6; }
14053 if test "x${build}" != "x${host}" ; then
14054 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $CXX_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14059 else
14060 # Canadian cross, just use what we found
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062 $as_echo "pre-installed" >&6; }
14063 fi
14064 else
14065 ok=yes
14066 case " ${configdirs} " in
14067 *" gcc "*) ;;
14068 *) ok=no ;;
14069 esac
14070 case ,${enable_languages}, in
14071 *,c++,*) ;;
14072 *) ok=no ;;
14073 esac
14074 if test $ok = yes; then
14075 # An in-tree tool is available and we can use it
14076 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'
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14078 $as_echo "just compiled" >&6; }
14079 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14080 # We already found the complete path
14081 ac_dir=`dirname $CXX_FOR_TARGET`
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14083 $as_echo "pre-installed in $ac_dir" >&6; }
14084 elif test "x$target" = "x$host"; then
14085 # We can use an host tool
14086 CXX_FOR_TARGET='$(CXX)'
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14088 $as_echo "host tool" >&6; }
14089 else
14090 # We need a cross tool
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14092 $as_echo "pre-installed" >&6; }
14093 fi
14094 fi
14095
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14097 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14098 if test "x${build}" != "x${host}" ; then
14099 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14100 # We already found the complete path
14101 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14103 $as_echo "pre-installed in $ac_dir" >&6; }
14104 else
14105 # Canadian cross, just use what we found
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14107 $as_echo "pre-installed" >&6; }
14108 fi
14109 else
14110 ok=yes
14111 case " ${configdirs} " in
14112 *" gcc "*) ;;
14113 *) ok=no ;;
14114 esac
14115 case ,${enable_languages}, in
14116 *,c++,*) ;;
14117 *) ok=no ;;
14118 esac
14119 if test $ok = yes; then
14120 # An in-tree tool is available and we can use it
14121 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'
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14123 $as_echo "just compiled" >&6; }
14124 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14125 # We already found the complete path
14126 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14128 $as_echo "pre-installed in $ac_dir" >&6; }
14129 elif test "x$target" = "x$host"; then
14130 # We can use an host tool
14131 RAW_CXX_FOR_TARGET='$(CXX)'
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14133 $as_echo "host tool" >&6; }
14134 else
14135 # We need a cross tool
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137 $as_echo "pre-installed" >&6; }
14138 fi
14139 fi
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14142 $as_echo_n "checking where to find the target dlltool... " >&6; }
14143 if test "x${build}" != "x${host}" ; then
14144 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14145 # We already found the complete path
14146 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14148 $as_echo "pre-installed in $ac_dir" >&6; }
14149 else
14150 # Canadian cross, just use what we found
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152 $as_echo "pre-installed" >&6; }
14153 fi
14154 else
14155 ok=yes
14156 case " ${configdirs} " in
14157 *" binutils "*) ;;
14158 *) ok=no ;;
14159 esac
14160
14161 if test $ok = yes; then
14162 # An in-tree tool is available and we can use it
14163 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14165 $as_echo "just compiled" >&6; }
14166 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14167 # We already found the complete path
14168 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14170 $as_echo "pre-installed in $ac_dir" >&6; }
14171 elif test "x$target" = "x$host"; then
14172 # We can use an host tool
14173 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14175 $as_echo "host tool" >&6; }
14176 else
14177 # We need a cross tool
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14179 $as_echo "pre-installed" >&6; }
14180 fi
14181 fi
14182
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14184 $as_echo_n "checking where to find the target gcc... " >&6; }
14185 if test "x${build}" != "x${host}" ; then
14186 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14187 # We already found the complete path
14188 ac_dir=`dirname $GCC_FOR_TARGET`
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14190 $as_echo "pre-installed in $ac_dir" >&6; }
14191 else
14192 # Canadian cross, just use what we found
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194 $as_echo "pre-installed" >&6; }
14195 fi
14196 else
14197 ok=yes
14198 case " ${configdirs} " in
14199 *" gcc "*) ;;
14200 *) ok=no ;;
14201 esac
14202
14203 if test $ok = yes; then
14204 # An in-tree tool is available and we can use it
14205 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14207 $as_echo "just compiled" >&6; }
14208 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14209 # We already found the complete path
14210 ac_dir=`dirname $GCC_FOR_TARGET`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14212 $as_echo "pre-installed in $ac_dir" >&6; }
14213 elif test "x$target" = "x$host"; then
14214 # We can use an host tool
14215 GCC_FOR_TARGET='$()'
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14217 $as_echo "host tool" >&6; }
14218 else
14219 # We need a cross tool
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14221 $as_echo "pre-installed" >&6; }
14222 fi
14223 fi
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14226 $as_echo_n "checking where to find the target gcj... " >&6; }
14227 if test "x${build}" != "x${host}" ; then
14228 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
14230 ac_dir=`dirname $GCJ_FOR_TARGET`
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232 $as_echo "pre-installed in $ac_dir" >&6; }
14233 else
14234 # Canadian cross, just use what we found
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14236 $as_echo "pre-installed" >&6; }
14237 fi
14238 else
14239 ok=yes
14240 case " ${configdirs} " in
14241 *" gcc "*) ;;
14242 *) ok=no ;;
14243 esac
14244 case ,${enable_languages}, in
14245 *,java,*) ;;
14246 *) ok=no ;;
14247 esac
14248 if test $ok = yes; then
14249 # An in-tree tool is available and we can use it
14250 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14252 $as_echo "just compiled" >&6; }
14253 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
14255 ac_dir=`dirname $GCJ_FOR_TARGET`
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14257 $as_echo "pre-installed in $ac_dir" >&6; }
14258 elif test "x$target" = "x$host"; then
14259 # We can use an host tool
14260 GCJ_FOR_TARGET='$(GCJ)'
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14262 $as_echo "host tool" >&6; }
14263 else
14264 # We need a cross tool
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14266 $as_echo "pre-installed" >&6; }
14267 fi
14268 fi
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14271 $as_echo_n "checking where to find the target gfortran... " >&6; }
14272 if test "x${build}" != "x${host}" ; then
14273 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14274 # We already found the complete path
14275 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14277 $as_echo "pre-installed in $ac_dir" >&6; }
14278 else
14279 # Canadian cross, just use what we found
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14281 $as_echo "pre-installed" >&6; }
14282 fi
14283 else
14284 ok=yes
14285 case " ${configdirs} " in
14286 *" gcc "*) ;;
14287 *) ok=no ;;
14288 esac
14289 case ,${enable_languages}, in
14290 *,fortran,*) ;;
14291 *) ok=no ;;
14292 esac
14293 if test $ok = yes; then
14294 # An in-tree tool is available and we can use it
14295 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14297 $as_echo "just compiled" >&6; }
14298 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14299 # We already found the complete path
14300 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14302 $as_echo "pre-installed in $ac_dir" >&6; }
14303 elif test "x$target" = "x$host"; then
14304 # We can use an host tool
14305 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14307 $as_echo "host tool" >&6; }
14308 else
14309 # We need a cross tool
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14311 $as_echo "pre-installed" >&6; }
14312 fi
14313 fi
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14316 $as_echo_n "checking where to find the target gccgo... " >&6; }
14317 if test "x${build}" != "x${host}" ; then
14318 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $GOC_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 else
14324 # Canadian cross, just use what we found
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14326 $as_echo "pre-installed" >&6; }
14327 fi
14328 else
14329 ok=yes
14330 case " ${configdirs} " in
14331 *" gcc "*) ;;
14332 *) ok=no ;;
14333 esac
14334 case ,${enable_languages}, in
14335 *,go,*) ;;
14336 *) ok=no ;;
14337 esac
14338 if test $ok = yes; then
14339 # An in-tree tool is available and we can use it
14340 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14342 $as_echo "just compiled" >&6; }
14343 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14344 # We already found the complete path
14345 ac_dir=`dirname $GOC_FOR_TARGET`
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14347 $as_echo "pre-installed in $ac_dir" >&6; }
14348 elif test "x$target" = "x$host"; then
14349 # We can use an host tool
14350 GOC_FOR_TARGET='$(GOC)'
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14352 $as_echo "host tool" >&6; }
14353 else
14354 # We need a cross tool
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14356 $as_echo "pre-installed" >&6; }
14357 fi
14358 fi
14359
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14361 $as_echo_n "checking where to find the target ld... " >&6; }
14362 if test "x${build}" != "x${host}" ; then
14363 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14364 # We already found the complete path
14365 ac_dir=`dirname $LD_FOR_TARGET`
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14367 $as_echo "pre-installed in $ac_dir" >&6; }
14368 else
14369 # Canadian cross, just use what we found
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14371 $as_echo "pre-installed" >&6; }
14372 fi
14373 else
14374 ok=yes
14375 case " ${configdirs} " in
14376 *" ld "*) ;;
14377 *) ok=no ;;
14378 esac
14379
14380 if test $ok = yes; then
14381 # An in-tree tool is available and we can use it
14382 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14384 $as_echo "just compiled" >&6; }
14385 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14386 # We already found the complete path
14387 ac_dir=`dirname $LD_FOR_TARGET`
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14389 $as_echo "pre-installed in $ac_dir" >&6; }
14390 elif test "x$target" = "x$host"; then
14391 # We can use an host tool
14392 LD_FOR_TARGET='$(LD)'
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14394 $as_echo "host tool" >&6; }
14395 else
14396 # We need a cross tool
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14398 $as_echo "pre-installed" >&6; }
14399 fi
14400 fi
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14403 $as_echo_n "checking where to find the target lipo... " >&6; }
14404 if test "x${build}" != "x${host}" ; then
14405 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14406 # We already found the complete path
14407 ac_dir=`dirname $LIPO_FOR_TARGET`
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14409 $as_echo "pre-installed in $ac_dir" >&6; }
14410 else
14411 # Canadian cross, just use what we found
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413 $as_echo "pre-installed" >&6; }
14414 fi
14415 else
14416 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14417 # We already found the complete path
14418 ac_dir=`dirname $LIPO_FOR_TARGET`
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14420 $as_echo "pre-installed in $ac_dir" >&6; }
14421 elif test "x$target" = "x$host"; then
14422 # We can use an host tool
14423 LIPO_FOR_TARGET='$(LIPO)'
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14425 $as_echo "host tool" >&6; }
14426 else
14427 # We need a cross tool
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14429 $as_echo "pre-installed" >&6; }
14430 fi
14431 fi
14432
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14434 $as_echo_n "checking where to find the target nm... " >&6; }
14435 if test "x${build}" != "x${host}" ; then
14436 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14437 # We already found the complete path
14438 ac_dir=`dirname $NM_FOR_TARGET`
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14440 $as_echo "pre-installed in $ac_dir" >&6; }
14441 else
14442 # Canadian cross, just use what we found
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14444 $as_echo "pre-installed" >&6; }
14445 fi
14446 else
14447 ok=yes
14448 case " ${configdirs} " in
14449 *" binutils "*) ;;
14450 *) ok=no ;;
14451 esac
14452
14453 if test $ok = yes; then
14454 # An in-tree tool is available and we can use it
14455 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14457 $as_echo "just compiled" >&6; }
14458 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14459 # We already found the complete path
14460 ac_dir=`dirname $NM_FOR_TARGET`
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14462 $as_echo "pre-installed in $ac_dir" >&6; }
14463 elif test "x$target" = "x$host"; then
14464 # We can use an host tool
14465 NM_FOR_TARGET='$(NM)'
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14467 $as_echo "host tool" >&6; }
14468 else
14469 # We need a cross tool
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14471 $as_echo "pre-installed" >&6; }
14472 fi
14473 fi
14474
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14476 $as_echo_n "checking where to find the target objcopy... " >&6; }
14477 if test "x${build}" != "x${host}" ; then
14478 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14479 # We already found the complete path
14480 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14482 $as_echo "pre-installed in $ac_dir" >&6; }
14483 else
14484 # Canadian cross, just use what we found
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14486 $as_echo "pre-installed" >&6; }
14487 fi
14488 else
14489 ok=yes
14490 case " ${configdirs} " in
14491 *" binutils "*) ;;
14492 *) ok=no ;;
14493 esac
14494
14495 if test $ok = yes; then
14496 # An in-tree tool is available and we can use it
14497 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14499 $as_echo "just compiled" >&6; }
14500 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14501 # We already found the complete path
14502 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14504 $as_echo "pre-installed in $ac_dir" >&6; }
14505 elif test "x$target" = "x$host"; then
14506 # We can use an host tool
14507 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14509 $as_echo "host tool" >&6; }
14510 else
14511 # We need a cross tool
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14513 $as_echo "pre-installed" >&6; }
14514 fi
14515 fi
14516
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14518 $as_echo_n "checking where to find the target objdump... " >&6; }
14519 if test "x${build}" != "x${host}" ; then
14520 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14521 # We already found the complete path
14522 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14524 $as_echo "pre-installed in $ac_dir" >&6; }
14525 else
14526 # Canadian cross, just use what we found
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14528 $as_echo "pre-installed" >&6; }
14529 fi
14530 else
14531 ok=yes
14532 case " ${configdirs} " in
14533 *" binutils "*) ;;
14534 *) ok=no ;;
14535 esac
14536
14537 if test $ok = yes; then
14538 # An in-tree tool is available and we can use it
14539 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14541 $as_echo "just compiled" >&6; }
14542 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14543 # We already found the complete path
14544 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14546 $as_echo "pre-installed in $ac_dir" >&6; }
14547 elif test "x$target" = "x$host"; then
14548 # We can use an host tool
14549 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14551 $as_echo "host tool" >&6; }
14552 else
14553 # We need a cross tool
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14555 $as_echo "pre-installed" >&6; }
14556 fi
14557 fi
14558
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14560 $as_echo_n "checking where to find the target ranlib... " >&6; }
14561 if test "x${build}" != "x${host}" ; then
14562 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14563 # We already found the complete path
14564 ac_dir=`dirname $RANLIB_FOR_TARGET`
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14566 $as_echo "pre-installed in $ac_dir" >&6; }
14567 else
14568 # Canadian cross, just use what we found
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14570 $as_echo "pre-installed" >&6; }
14571 fi
14572 else
14573 ok=yes
14574 case " ${configdirs} " in
14575 *" binutils "*) ;;
14576 *) ok=no ;;
14577 esac
14578
14579 if test $ok = yes; then
14580 # An in-tree tool is available and we can use it
14581 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14583 $as_echo "just compiled" >&6; }
14584 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $RANLIB_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588 $as_echo "pre-installed in $ac_dir" >&6; }
14589 elif test "x$target" = "x$host"; then
14590 # We can use an host tool
14591 RANLIB_FOR_TARGET='$(RANLIB)'
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14593 $as_echo "host tool" >&6; }
14594 else
14595 # We need a cross tool
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14597 $as_echo "pre-installed" >&6; }
14598 fi
14599 fi
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14602 $as_echo_n "checking where to find the target readelf... " >&6; }
14603 if test "x${build}" != "x${host}" ; then
14604 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
14606 ac_dir=`dirname $READELF_FOR_TARGET`
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608 $as_echo "pre-installed in $ac_dir" >&6; }
14609 else
14610 # Canadian cross, just use what we found
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14612 $as_echo "pre-installed" >&6; }
14613 fi
14614 else
14615 ok=yes
14616 case " ${configdirs} " in
14617 *" binutils "*) ;;
14618 *) ok=no ;;
14619 esac
14620
14621 if test $ok = yes; then
14622 # An in-tree tool is available and we can use it
14623 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14625 $as_echo "just compiled" >&6; }
14626 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
14628 ac_dir=`dirname $READELF_FOR_TARGET`
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630 $as_echo "pre-installed in $ac_dir" >&6; }
14631 elif test "x$target" = "x$host"; then
14632 # We can use an host tool
14633 READELF_FOR_TARGET='$(READELF)'
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14635 $as_echo "host tool" >&6; }
14636 else
14637 # We need a cross tool
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14639 $as_echo "pre-installed" >&6; }
14640 fi
14641 fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14644 $as_echo_n "checking where to find the target strip... " >&6; }
14645 if test "x${build}" != "x${host}" ; then
14646 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
14648 ac_dir=`dirname $STRIP_FOR_TARGET`
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650 $as_echo "pre-installed in $ac_dir" >&6; }
14651 else
14652 # Canadian cross, just use what we found
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14654 $as_echo "pre-installed" >&6; }
14655 fi
14656 else
14657 ok=yes
14658 case " ${configdirs} " in
14659 *" binutils "*) ;;
14660 *) ok=no ;;
14661 esac
14662
14663 if test $ok = yes; then
14664 # An in-tree tool is available and we can use it
14665 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14667 $as_echo "just compiled" >&6; }
14668 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14669 # We already found the complete path
14670 ac_dir=`dirname $STRIP_FOR_TARGET`
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14672 $as_echo "pre-installed in $ac_dir" >&6; }
14673 elif test "x$target" = "x$host"; then
14674 # We can use an host tool
14675 STRIP_FOR_TARGET='$(STRIP)'
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14677 $as_echo "host tool" >&6; }
14678 else
14679 # We need a cross tool
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14681 $as_echo "pre-installed" >&6; }
14682 fi
14683 fi
14684
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14686 $as_echo_n "checking where to find the target windres... " >&6; }
14687 if test "x${build}" != "x${host}" ; then
14688 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14689 # We already found the complete path
14690 ac_dir=`dirname $WINDRES_FOR_TARGET`
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14692 $as_echo "pre-installed in $ac_dir" >&6; }
14693 else
14694 # Canadian cross, just use what we found
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14696 $as_echo "pre-installed" >&6; }
14697 fi
14698 else
14699 ok=yes
14700 case " ${configdirs} " in
14701 *" binutils "*) ;;
14702 *) ok=no ;;
14703 esac
14704
14705 if test $ok = yes; then
14706 # An in-tree tool is available and we can use it
14707 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14709 $as_echo "just compiled" >&6; }
14710 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14711 # We already found the complete path
14712 ac_dir=`dirname $WINDRES_FOR_TARGET`
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14714 $as_echo "pre-installed in $ac_dir" >&6; }
14715 elif test "x$target" = "x$host"; then
14716 # We can use an host tool
14717 WINDRES_FOR_TARGET='$(WINDRES)'
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14719 $as_echo "host tool" >&6; }
14720 else
14721 # We need a cross tool
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14723 $as_echo "pre-installed" >&6; }
14724 fi
14725 fi
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14728 $as_echo_n "checking where to find the target windmc... " >&6; }
14729 if test "x${build}" != "x${host}" ; then
14730 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14731 # We already found the complete path
14732 ac_dir=`dirname $WINDMC_FOR_TARGET`
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14734 $as_echo "pre-installed in $ac_dir" >&6; }
14735 else
14736 # Canadian cross, just use what we found
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14738 $as_echo "pre-installed" >&6; }
14739 fi
14740 else
14741 ok=yes
14742 case " ${configdirs} " in
14743 *" binutils "*) ;;
14744 *) ok=no ;;
14745 esac
14746
14747 if test $ok = yes; then
14748 # An in-tree tool is available and we can use it
14749 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14751 $as_echo "just compiled" >&6; }
14752 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14753 # We already found the complete path
14754 ac_dir=`dirname $WINDMC_FOR_TARGET`
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14756 $as_echo "pre-installed in $ac_dir" >&6; }
14757 elif test "x$target" = "x$host"; then
14758 # We can use an host tool
14759 WINDMC_FOR_TARGET='$(WINDMC)'
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14761 $as_echo "host tool" >&6; }
14762 else
14763 # We need a cross tool
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14765 $as_echo "pre-installed" >&6; }
14766 fi
14767 fi
14768
14769
14770
14771
14772
14773 # Certain tools may need extra flags.
14774 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14775 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14776 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14777
14778 # When building target libraries, except in a Canadian cross, we use
14779 # the same toolchain as the compiler we just built.
14780 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14781 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14782 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14783 if test $host = $build; then
14784 case " $configdirs " in
14785 *" gcc "*)
14786 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14787 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14788 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14789 ;;
14790 esac
14791 fi
14792
14793
14794
14795
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14798 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14799 # Check whether --enable-maintainer-mode was given.
14800 if test "${enable_maintainer_mode+set}" = set; then :
14801 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14802 else
14803 USE_MAINTAINER_MODE=no
14804 fi
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14807 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14808
14809
14810 if test "$USE_MAINTAINER_MODE" = yes; then
14811 MAINTAINER_MODE_TRUE=
14812 MAINTAINER_MODE_FALSE='#'
14813 else
14814 MAINTAINER_MODE_TRUE='#'
14815 MAINTAINER_MODE_FALSE=
14816 fi
14817 MAINT=$MAINTAINER_MODE_TRUE
14818
14819 # ---------------------
14820 # GCC bootstrap support
14821 # ---------------------
14822
14823 # Stage specific cflags for build.
14824 stage1_cflags="-g"
14825 case $build in
14826 vax-*-*)
14827 case ${GCC} in
14828 yes) stage1_cflags="-g -Wa,-J" ;;
14829 *) stage1_cflags="-g -J" ;;
14830 esac ;;
14831 esac
14832
14833
14834
14835 # Enable --enable-checking in stage1 of the compiler.
14836 # Check whether --enable-stage1-checking was given.
14837 if test "${enable_stage1_checking+set}" = set; then :
14838 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14839 else
14840 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14841 # For --disable-checking or implicit --enable-checking=release, avoid
14842 # setting --enable-checking=gc in the default stage1 checking for LTO
14843 # bootstraps. See PR62077.
14844 case $BUILD_CONFIG in
14845 *lto*)
14846 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14847 *)
14848 stage1_checking=--enable-checking=yes,types;;
14849 esac
14850 if test "x$enable_checking" = x && \
14851 test -d ${srcdir}/gcc && \
14852 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14853 stage1_checking=--enable-checking=yes,types,extra
14854 fi
14855 else
14856 stage1_checking=--enable-checking=$enable_checking,types
14857 fi
14858 fi
14859
14860
14861
14862 # Enable -Werror in bootstrap stage2 and later.
14863 # Check whether --enable-werror was given.
14864 if test "${enable_werror+set}" = set; then :
14865 enableval=$enable_werror;
14866 else
14867 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14868 enable_werror=yes
14869 else
14870 enable_werror=no
14871 fi
14872 fi
14873
14874 case ${enable_werror} in
14875 yes) stage2_werror_flag="--enable-werror-always" ;;
14876 *) stage2_werror_flag="" ;;
14877 esac
14878
14879
14880 # Enable --enable-host-shared.
14881 # Check whether --enable-host-shared was given.
14882 if test "${enable_host_shared+set}" = set; then :
14883 enableval=$enable_host_shared; host_shared=$enableval
14884 else
14885 host_shared=no
14886 fi
14887
14888
14889
14890 # PR jit/64780: Require the user to explicitly specify
14891 # --enable-host-shared if the jit is enabled, hinting
14892 # that they might want to do a separate configure/build of
14893 # the jit, to avoid users from slowing down the rest of the
14894 # compiler by enabling the jit.
14895 if test ${host_shared} = "no" ; then
14896 case "${enable_languages}" in
14897 *jit*)
14898 as_fn_error "
14899 Enabling language \"jit\" requires --enable-host-shared.
14900
14901 --enable-host-shared typically slows the rest of the compiler down by
14902 a few %, so you must explicitly enable it.
14903
14904 If you want to build both the jit and the regular compiler, it is often
14905 best to do this via two separate configure/builds, in separate
14906 directories, to avoid imposing the performance cost of
14907 --enable-host-shared on the regular compiler." "$LINENO" 5
14908 ;;
14909 *)
14910 ;;
14911 esac
14912 fi
14913
14914 # Specify what files to not compare during bootstrap.
14915
14916 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14917 case "$target" in
14918 hppa*64*-*-hpux*) ;;
14919 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14920 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14921 esac
14922
14923
14924 ac_config_files="$ac_config_files Makefile"
14925
14926 cat >confcache <<\_ACEOF
14927 # This file is a shell script that caches the results of configure
14928 # tests run on this system so they can be shared between configure
14929 # scripts and configure runs, see configure's option --config-cache.
14930 # It is not useful on other systems. If it contains results you don't
14931 # want to keep, you may remove or edit it.
14932 #
14933 # config.status only pays attention to the cache file if you give it
14934 # the --recheck option to rerun configure.
14935 #
14936 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14937 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14938 # following values.
14939
14940 _ACEOF
14941
14942 # The following way of writing the cache mishandles newlines in values,
14943 # but we know of no workaround that is simple, portable, and efficient.
14944 # So, we kill variables containing newlines.
14945 # Ultrix sh set writes to stderr and can't be redirected directly,
14946 # and sets the high bit in the cache file unless we assign to the vars.
14947 (
14948 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14949 eval ac_val=\$$ac_var
14950 case $ac_val in #(
14951 *${as_nl}*)
14952 case $ac_var in #(
14953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14955 esac
14956 case $ac_var in #(
14957 _ | IFS | as_nl) ;; #(
14958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14959 *) { eval $ac_var=; unset $ac_var;} ;;
14960 esac ;;
14961 esac
14962 done
14963
14964 (set) 2>&1 |
14965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14966 *${as_nl}ac_space=\ *)
14967 # `set' does not quote correctly, so add quotes: double-quote
14968 # substitution turns \\\\ into \\, and sed turns \\ into \.
14969 sed -n \
14970 "s/'/'\\\\''/g;
14971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14972 ;; #(
14973 *)
14974 # `set' quotes correctly as required by POSIX, so do not add quotes.
14975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14976 ;;
14977 esac |
14978 sort
14979 ) |
14980 sed '
14981 /^ac_cv_env_/b end
14982 t clear
14983 :clear
14984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14985 t end
14986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14987 :end' >>confcache
14988 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14989 if test -w "$cache_file"; then
14990 test "x$cache_file" != "x/dev/null" &&
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14992 $as_echo "$as_me: updating cache $cache_file" >&6;}
14993 cat confcache >$cache_file
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14997 fi
14998 fi
14999 rm -f confcache
15000
15001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15002 # Let make expand exec_prefix.
15003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15004
15005 # Transform confdefs.h into DEFS.
15006 # Protect against shell expansion while executing Makefile rules.
15007 # Protect against Makefile macro expansion.
15008 #
15009 # If the first sed substitution is executed (which looks for macros that
15010 # take arguments), then branch to the quote section. Otherwise,
15011 # look for a macro that doesn't take arguments.
15012 ac_script='
15013 :mline
15014 /\\$/{
15015 N
15016 s,\\\n,,
15017 b mline
15018 }
15019 t clear
15020 :clear
15021 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15022 t quote
15023 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15024 t quote
15025 b any
15026 :quote
15027 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15028 s/\[/\\&/g
15029 s/\]/\\&/g
15030 s/\$/$$/g
15031 H
15032 :any
15033 ${
15034 g
15035 s/^\n//
15036 s/\n/ /g
15037 p
15038 }
15039 '
15040 DEFS=`sed -n "$ac_script" confdefs.h`
15041
15042
15043 ac_libobjs=
15044 ac_ltlibobjs=
15045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15046 # 1. Remove the extension, and $U if already installed.
15047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15048 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15050 # will be set to the directory where LIBOBJS objects are built.
15051 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15052 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15053 done
15054 LIBOBJS=$ac_libobjs
15055
15056 LTLIBOBJS=$ac_ltlibobjs
15057
15058
15059
15060 : ${CONFIG_STATUS=./config.status}
15061 ac_write_fail=0
15062 ac_clean_files_save=$ac_clean_files
15063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15066 as_write_fail=0
15067 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15068 #! $SHELL
15069 # Generated by $as_me.
15070 # Run this file to recreate the current configuration.
15071 # Compiler output produced by configure, useful for debugging
15072 # configure, is in config.log if it exists.
15073
15074 debug=false
15075 ac_cs_recheck=false
15076 ac_cs_silent=false
15077
15078 SHELL=\${CONFIG_SHELL-$SHELL}
15079 export SHELL
15080 _ASEOF
15081 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15082 ## -------------------- ##
15083 ## M4sh Initialization. ##
15084 ## -------------------- ##
15085
15086 # Be more Bourne compatible
15087 DUALCASE=1; export DUALCASE # for MKS sh
15088 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15089 emulate sh
15090 NULLCMD=:
15091 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15092 # is contrary to our usage. Disable this feature.
15093 alias -g '${1+"$@"}'='"$@"'
15094 setopt NO_GLOB_SUBST
15095 else
15096 case `(set -o) 2>/dev/null` in #(
15097 *posix*) :
15098 set -o posix ;; #(
15099 *) :
15100 ;;
15101 esac
15102 fi
15103
15104
15105 as_nl='
15106 '
15107 export as_nl
15108 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15109 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15112 # Prefer a ksh shell builtin over an external printf program on Solaris,
15113 # but without wasting forks for bash or zsh.
15114 if test -z "$BASH_VERSION$ZSH_VERSION" \
15115 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15116 as_echo='print -r --'
15117 as_echo_n='print -rn --'
15118 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15119 as_echo='printf %s\n'
15120 as_echo_n='printf %s'
15121 else
15122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15124 as_echo_n='/usr/ucb/echo -n'
15125 else
15126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15127 as_echo_n_body='eval
15128 arg=$1;
15129 case $arg in #(
15130 *"$as_nl"*)
15131 expr "X$arg" : "X\\(.*\\)$as_nl";
15132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15133 esac;
15134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15135 '
15136 export as_echo_n_body
15137 as_echo_n='sh -c $as_echo_n_body as_echo'
15138 fi
15139 export as_echo_body
15140 as_echo='sh -c $as_echo_body as_echo'
15141 fi
15142
15143 # The user is always right.
15144 if test "${PATH_SEPARATOR+set}" != set; then
15145 PATH_SEPARATOR=:
15146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15148 PATH_SEPARATOR=';'
15149 }
15150 fi
15151
15152
15153 # IFS
15154 # We need space, tab and new line, in precisely that order. Quoting is
15155 # there to prevent editors from complaining about space-tab.
15156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15157 # splitting by setting IFS to empty value.)
15158 IFS=" "" $as_nl"
15159
15160 # Find who we are. Look in the path if we contain no directory separator.
15161 case $0 in #((
15162 *[\\/]* ) as_myself=$0 ;;
15163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15164 for as_dir in $PATH
15165 do
15166 IFS=$as_save_IFS
15167 test -z "$as_dir" && as_dir=.
15168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15169 done
15170 IFS=$as_save_IFS
15171
15172 ;;
15173 esac
15174 # We did not find ourselves, most probably we were run as `sh COMMAND'
15175 # in which case we are not to be found in the path.
15176 if test "x$as_myself" = x; then
15177 as_myself=$0
15178 fi
15179 if test ! -f "$as_myself"; then
15180 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15181 exit 1
15182 fi
15183
15184 # Unset variables that we do not need and which cause bugs (e.g. in
15185 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15186 # suppresses any "Segmentation fault" message there. '((' could
15187 # trigger a bug in pdksh 5.2.14.
15188 for as_var in BASH_ENV ENV MAIL MAILPATH
15189 do eval test x\${$as_var+set} = xset \
15190 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15191 done
15192 PS1='$ '
15193 PS2='> '
15194 PS4='+ '
15195
15196 # NLS nuisances.
15197 LC_ALL=C
15198 export LC_ALL
15199 LANGUAGE=C
15200 export LANGUAGE
15201
15202 # CDPATH.
15203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15204
15205
15206 # as_fn_error ERROR [LINENO LOG_FD]
15207 # ---------------------------------
15208 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15209 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15210 # script with status $?, using 1 if that was 0.
15211 as_fn_error ()
15212 {
15213 as_status=$?; test $as_status -eq 0 && as_status=1
15214 if test "$3"; then
15215 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15216 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15217 fi
15218 $as_echo "$as_me: error: $1" >&2
15219 as_fn_exit $as_status
15220 } # as_fn_error
15221
15222
15223 # as_fn_set_status STATUS
15224 # -----------------------
15225 # Set $? to STATUS, without forking.
15226 as_fn_set_status ()
15227 {
15228 return $1
15229 } # as_fn_set_status
15230
15231 # as_fn_exit STATUS
15232 # -----------------
15233 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15234 as_fn_exit ()
15235 {
15236 set +e
15237 as_fn_set_status $1
15238 exit $1
15239 } # as_fn_exit
15240
15241 # as_fn_unset VAR
15242 # ---------------
15243 # Portably unset VAR.
15244 as_fn_unset ()
15245 {
15246 { eval $1=; unset $1;}
15247 }
15248 as_unset=as_fn_unset
15249 # as_fn_append VAR VALUE
15250 # ----------------------
15251 # Append the text in VALUE to the end of the definition contained in VAR. Take
15252 # advantage of any shell optimizations that allow amortized linear growth over
15253 # repeated appends, instead of the typical quadratic growth present in naive
15254 # implementations.
15255 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15256 eval 'as_fn_append ()
15257 {
15258 eval $1+=\$2
15259 }'
15260 else
15261 as_fn_append ()
15262 {
15263 eval $1=\$$1\$2
15264 }
15265 fi # as_fn_append
15266
15267 # as_fn_arith ARG...
15268 # ------------------
15269 # Perform arithmetic evaluation on the ARGs, and store the result in the
15270 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15271 # must be portable across $(()) and expr.
15272 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15273 eval 'as_fn_arith ()
15274 {
15275 as_val=$(( $* ))
15276 }'
15277 else
15278 as_fn_arith ()
15279 {
15280 as_val=`expr "$@" || test $? -eq 1`
15281 }
15282 fi # as_fn_arith
15283
15284
15285 if expr a : '\(a\)' >/dev/null 2>&1 &&
15286 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15287 as_expr=expr
15288 else
15289 as_expr=false
15290 fi
15291
15292 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15293 as_basename=basename
15294 else
15295 as_basename=false
15296 fi
15297
15298 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15299 as_dirname=dirname
15300 else
15301 as_dirname=false
15302 fi
15303
15304 as_me=`$as_basename -- "$0" ||
15305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15306 X"$0" : 'X\(//\)$' \| \
15307 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15308 $as_echo X/"$0" |
15309 sed '/^.*\/\([^/][^/]*\)\/*$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\/\(\/\/\)$/{
15314 s//\1/
15315 q
15316 }
15317 /^X\/\(\/\).*/{
15318 s//\1/
15319 q
15320 }
15321 s/.*/./; q'`
15322
15323 # Avoid depending upon Character Ranges.
15324 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15325 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15326 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15327 as_cr_digits='0123456789'
15328 as_cr_alnum=$as_cr_Letters$as_cr_digits
15329
15330 ECHO_C= ECHO_N= ECHO_T=
15331 case `echo -n x` in #(((((
15332 -n*)
15333 case `echo 'xy\c'` in
15334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15335 xy) ECHO_C='\c';;
15336 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15337 ECHO_T=' ';;
15338 esac;;
15339 *)
15340 ECHO_N='-n';;
15341 esac
15342
15343 rm -f conf$$ conf$$.exe conf$$.file
15344 if test -d conf$$.dir; then
15345 rm -f conf$$.dir/conf$$.file
15346 else
15347 rm -f conf$$.dir
15348 mkdir conf$$.dir 2>/dev/null
15349 fi
15350 if (echo >conf$$.file) 2>/dev/null; then
15351 if ln -s conf$$.file conf$$ 2>/dev/null; then
15352 as_ln_s='ln -s'
15353 # ... but there are two gotchas:
15354 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15355 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15356 # In both cases, we have to default to `cp -p'.
15357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15358 as_ln_s='cp -p'
15359 elif ln conf$$.file conf$$ 2>/dev/null; then
15360 as_ln_s=ln
15361 else
15362 as_ln_s='cp -p'
15363 fi
15364 else
15365 as_ln_s='cp -p'
15366 fi
15367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15368 rmdir conf$$.dir 2>/dev/null
15369
15370
15371 # as_fn_mkdir_p
15372 # -------------
15373 # Create "$as_dir" as a directory, including parents if necessary.
15374 as_fn_mkdir_p ()
15375 {
15376
15377 case $as_dir in #(
15378 -*) as_dir=./$as_dir;;
15379 esac
15380 test -d "$as_dir" || eval $as_mkdir_p || {
15381 as_dirs=
15382 while :; do
15383 case $as_dir in #(
15384 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15385 *) as_qdir=$as_dir;;
15386 esac
15387 as_dirs="'$as_qdir' $as_dirs"
15388 as_dir=`$as_dirname -- "$as_dir" ||
15389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15390 X"$as_dir" : 'X\(//\)[^/]' \| \
15391 X"$as_dir" : 'X\(//\)$' \| \
15392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15393 $as_echo X"$as_dir" |
15394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15395 s//\1/
15396 q
15397 }
15398 /^X\(\/\/\)[^/].*/{
15399 s//\1/
15400 q
15401 }
15402 /^X\(\/\/\)$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\(\/\).*/{
15407 s//\1/
15408 q
15409 }
15410 s/.*/./; q'`
15411 test -d "$as_dir" && break
15412 done
15413 test -z "$as_dirs" || eval "mkdir $as_dirs"
15414 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15415
15416
15417 } # as_fn_mkdir_p
15418 if mkdir -p . 2>/dev/null; then
15419 as_mkdir_p='mkdir -p "$as_dir"'
15420 else
15421 test -d ./-p && rmdir ./-p
15422 as_mkdir_p=false
15423 fi
15424
15425 if test -x / >/dev/null 2>&1; then
15426 as_test_x='test -x'
15427 else
15428 if ls -dL / >/dev/null 2>&1; then
15429 as_ls_L_option=L
15430 else
15431 as_ls_L_option=
15432 fi
15433 as_test_x='
15434 eval sh -c '\''
15435 if test -d "$1"; then
15436 test -d "$1/.";
15437 else
15438 case $1 in #(
15439 -*)set "./$1";;
15440 esac;
15441 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15442 ???[sx]*):;;*)false;;esac;fi
15443 '\'' sh
15444 '
15445 fi
15446 as_executable_p=$as_test_x
15447
15448 # Sed expression to map a string onto a valid CPP name.
15449 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15450
15451 # Sed expression to map a string onto a valid variable name.
15452 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15453
15454
15455 exec 6>&1
15456 ## ----------------------------------- ##
15457 ## Main body of $CONFIG_STATUS script. ##
15458 ## ----------------------------------- ##
15459 _ASEOF
15460 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15461
15462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15463 # Save the log message, to keep $0 and so on meaningful, and to
15464 # report actual input values of CONFIG_FILES etc. instead of their
15465 # values after options handling.
15466 ac_log="
15467 This file was extended by $as_me, which was
15468 generated by GNU Autoconf 2.64. Invocation command line was
15469
15470 CONFIG_FILES = $CONFIG_FILES
15471 CONFIG_HEADERS = $CONFIG_HEADERS
15472 CONFIG_LINKS = $CONFIG_LINKS
15473 CONFIG_COMMANDS = $CONFIG_COMMANDS
15474 $ $0 $@
15475
15476 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15477 "
15478
15479 _ACEOF
15480
15481 case $ac_config_files in *"
15482 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15483 esac
15484
15485
15486
15487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15488 # Files that config.status was made for.
15489 config_files="$ac_config_files"
15490
15491 _ACEOF
15492
15493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15494 ac_cs_usage="\
15495 \`$as_me' instantiates files and other configuration actions
15496 from templates according to the current configuration. Unless the files
15497 and actions are specified as TAGs, all are instantiated by default.
15498
15499 Usage: $0 [OPTION]... [TAG]...
15500
15501 -h, --help print this help, then exit
15502 -V, --version print version number and configuration settings, then exit
15503 -q, --quiet, --silent
15504 do not print progress messages
15505 -d, --debug don't remove temporary files
15506 --recheck update $as_me by reconfiguring in the same conditions
15507 --file=FILE[:TEMPLATE]
15508 instantiate the configuration file FILE
15509
15510 Configuration files:
15511 $config_files
15512
15513 Report bugs to the package provider."
15514
15515 _ACEOF
15516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15517 ac_cs_version="\\
15518 config.status
15519 configured by $0, generated by GNU Autoconf 2.64,
15520 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15521
15522 Copyright (C) 2009 Free Software Foundation, Inc.
15523 This config.status script is free software; the Free Software Foundation
15524 gives unlimited permission to copy, distribute and modify it."
15525
15526 ac_pwd='$ac_pwd'
15527 srcdir='$srcdir'
15528 INSTALL='$INSTALL'
15529 AWK='$AWK'
15530 test -n "\$AWK" || AWK=awk
15531 _ACEOF
15532
15533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15534 # The default lists apply if the user does not specify any file.
15535 ac_need_defaults=:
15536 while test $# != 0
15537 do
15538 case $1 in
15539 --*=*)
15540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15542 ac_shift=:
15543 ;;
15544 *)
15545 ac_option=$1
15546 ac_optarg=$2
15547 ac_shift=shift
15548 ;;
15549 esac
15550
15551 case $ac_option in
15552 # Handling of the options.
15553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15554 ac_cs_recheck=: ;;
15555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15556 $as_echo "$ac_cs_version"; exit ;;
15557 --debug | --debu | --deb | --de | --d | -d )
15558 debug=: ;;
15559 --file | --fil | --fi | --f )
15560 $ac_shift
15561 case $ac_optarg in
15562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15563 esac
15564 as_fn_append CONFIG_FILES " '$ac_optarg'"
15565 ac_need_defaults=false;;
15566 --he | --h | --help | --hel | -h )
15567 $as_echo "$ac_cs_usage"; exit ;;
15568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15570 ac_cs_silent=: ;;
15571
15572 # This is an error.
15573 -*) as_fn_error "unrecognized option: \`$1'
15574 Try \`$0 --help' for more information." ;;
15575
15576 *) as_fn_append ac_config_targets " $1"
15577 ac_need_defaults=false ;;
15578
15579 esac
15580 shift
15581 done
15582
15583 ac_configure_extra_args=
15584
15585 if $ac_cs_silent; then
15586 exec 6>/dev/null
15587 ac_configure_extra_args="$ac_configure_extra_args --silent"
15588 fi
15589
15590 _ACEOF
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 if \$ac_cs_recheck; then
15593 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15594 shift
15595 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15596 CONFIG_SHELL='$SHELL'
15597 export CONFIG_SHELL
15598 exec "\$@"
15599 fi
15600
15601 _ACEOF
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603 exec 5>>config.log
15604 {
15605 echo
15606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15607 ## Running $as_me. ##
15608 _ASBOX
15609 $as_echo "$ac_log"
15610 } >&5
15611
15612 _ACEOF
15613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15614 #
15615 # INIT-COMMANDS
15616 #
15617 extrasub_build="$extrasub_build"
15618 extrasub_host="$extrasub_host"
15619 extrasub_target="$extrasub_target"
15620
15621 _ACEOF
15622
15623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15624
15625 # Handling of arguments.
15626 for ac_config_target in $ac_config_targets
15627 do
15628 case $ac_config_target in
15629 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15630
15631 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15632 esac
15633 done
15634
15635
15636 # If the user did not use the arguments to specify the items to instantiate,
15637 # then the envvar interface is used. Set only those that are not.
15638 # We use the long form for the default assignment because of an extremely
15639 # bizarre bug on SunOS 4.1.3.
15640 if $ac_need_defaults; then
15641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15642 fi
15643
15644 # Have a temporary directory for convenience. Make it in the build tree
15645 # simply because there is no reason against having it here, and in addition,
15646 # creating and moving files from /tmp can sometimes cause problems.
15647 # Hook for its removal unless debugging.
15648 # Note that there is a small window in which the directory will not be cleaned:
15649 # after its creation but before its name has been assigned to `$tmp'.
15650 $debug ||
15651 {
15652 tmp=
15653 trap 'exit_status=$?
15654 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15655 ' 0
15656 trap 'as_fn_exit 1' 1 2 13 15
15657 }
15658 # Create a (secure) tmp directory for tmp files.
15659
15660 {
15661 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15662 test -n "$tmp" && test -d "$tmp"
15663 } ||
15664 {
15665 tmp=./conf$$-$RANDOM
15666 (umask 077 && mkdir "$tmp")
15667 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15668
15669 # Set up the scripts for CONFIG_FILES section.
15670 # No need to generate them if there are no CONFIG_FILES.
15671 # This happens for instance with `./config.status config.h'.
15672 if test -n "$CONFIG_FILES"; then
15673
15674 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15675 ac_cs_awk_getline=:
15676 ac_cs_awk_pipe_init=
15677 ac_cs_awk_read_file='
15678 while ((getline aline < (F[key])) > 0)
15679 print(aline)
15680 close(F[key])'
15681 ac_cs_awk_pipe_fini=
15682 else
15683 ac_cs_awk_getline=false
15684 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15685 ac_cs_awk_read_file='
15686 print "|#_!!_#|"
15687 print "cat " F[key] " &&"
15688 '$ac_cs_awk_pipe_init
15689 # The final `:' finishes the AND list.
15690 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15691 fi
15692 ac_cr=`echo X | tr X '\015'`
15693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15694 # But we know of no other shell where ac_cr would be empty at this
15695 # point, so we can use a bashism as a fallback.
15696 if test "x$ac_cr" = x; then
15697 eval ac_cr=\$\'\\r\'
15698 fi
15699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15701 ac_cs_awk_cr='\r'
15702 else
15703 ac_cs_awk_cr=$ac_cr
15704 fi
15705
15706 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15707 _ACEOF
15708
15709 # Create commands to substitute file output variables.
15710 {
15711 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15712 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15713 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15714 echo "_ACAWK" &&
15715 echo "_ACEOF"
15716 } >conf$$files.sh &&
15717 . ./conf$$files.sh ||
15718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15719 rm -f conf$$files.sh
15720
15721 {
15722 echo "cat >conf$$subs.awk <<_ACEOF" &&
15723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15724 echo "_ACEOF"
15725 } >conf$$subs.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15728 ac_delim='%!_!# '
15729 for ac_last_try in false false false false false :; do
15730 . ./conf$$subs.sh ||
15731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15732
15733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15734 if test $ac_delim_n = $ac_delim_num; then
15735 break
15736 elif $ac_last_try; then
15737 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15738 else
15739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15740 fi
15741 done
15742 rm -f conf$$subs.sh
15743
15744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15745 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15746 _ACEOF
15747 sed -n '
15748 h
15749 s/^/S["/; s/!.*/"]=/
15750 p
15751 g
15752 s/^[^!]*!//
15753 :repl
15754 t repl
15755 s/'"$ac_delim"'$//
15756 t delim
15757 :nl
15758 h
15759 s/\(.\{148\}\).*/\1/
15760 t more1
15761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15762 p
15763 n
15764 b repl
15765 :more1
15766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15767 p
15768 g
15769 s/.\{148\}//
15770 t nl
15771 :delim
15772 h
15773 s/\(.\{148\}\).*/\1/
15774 t more2
15775 s/["\\]/\\&/g; s/^/"/; s/$/"/
15776 p
15777 b
15778 :more2
15779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15780 p
15781 g
15782 s/.\{148\}//
15783 t delim
15784 ' <conf$$subs.awk | sed '
15785 /^[^""]/{
15786 N
15787 s/\n//
15788 }
15789 ' >>$CONFIG_STATUS || ac_write_fail=1
15790 rm -f conf$$subs.awk
15791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15792 _ACAWK
15793 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15794 for (key in S) S_is_set[key] = 1
15795 FS = "\a"
15796 \$ac_cs_awk_pipe_init
15797 }
15798 {
15799 line = $ 0
15800 nfields = split(line, field, "@")
15801 substed = 0
15802 len = length(field[1])
15803 for (i = 2; i < nfields; i++) {
15804 key = field[i]
15805 keylen = length(key)
15806 if (S_is_set[key]) {
15807 value = S[key]
15808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15809 len += length(value) + length(field[++i])
15810 substed = 1
15811 } else
15812 len += 1 + keylen
15813 }
15814 if (nfields == 3 && !substed) {
15815 key = field[2]
15816 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15817 \$ac_cs_awk_read_file
15818 next
15819 }
15820 }
15821 print line
15822 }
15823 \$ac_cs_awk_pipe_fini
15824 _ACAWK
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15827 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15828 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15829 else
15830 cat
15831 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15832 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15833 _ACEOF
15834
15835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15837 # trailing colons and then remove the whole line if VPATH becomes empty
15838 # (actually we leave an empty line to preserve line numbers).
15839 if test "x$srcdir" = x.; then
15840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15841 s/:*\$(srcdir):*/:/
15842 s/:*\${srcdir}:*/:/
15843 s/:*@srcdir@:*/:/
15844 s/^\([^=]*=[ ]*\):*/\1/
15845 s/:*$//
15846 s/^[^=]*=[ ]*$//
15847 }'
15848 fi
15849
15850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15851 fi # test -n "$CONFIG_FILES"
15852
15853
15854 eval set X " :F $CONFIG_FILES "
15855 shift
15856 for ac_tag
15857 do
15858 case $ac_tag in
15859 :[FHLC]) ac_mode=$ac_tag; continue;;
15860 esac
15861 case $ac_mode$ac_tag in
15862 :[FHL]*:*);;
15863 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15864 :[FH]-) ac_tag=-:-;;
15865 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15866 esac
15867 ac_save_IFS=$IFS
15868 IFS=:
15869 set x $ac_tag
15870 IFS=$ac_save_IFS
15871 shift
15872 ac_file=$1
15873 shift
15874
15875 case $ac_mode in
15876 :L) ac_source=$1;;
15877 :[FH])
15878 ac_file_inputs=
15879 for ac_f
15880 do
15881 case $ac_f in
15882 -) ac_f="$tmp/stdin";;
15883 *) # Look for the file first in the build tree, then in the source tree
15884 # (if the path is not absolute). The absolute path cannot be DOS-style,
15885 # because $ac_f cannot contain `:'.
15886 test -f "$ac_f" ||
15887 case $ac_f in
15888 [\\/$]*) false;;
15889 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15890 esac ||
15891 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15892 esac
15893 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15894 as_fn_append ac_file_inputs " '$ac_f'"
15895 done
15896
15897 # Let's still pretend it is `configure' which instantiates (i.e., don't
15898 # use $as_me), people would be surprised to read:
15899 # /* config.h. Generated by config.status. */
15900 configure_input='Generated from '`
15901 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15902 `' by configure.'
15903 if test x"$ac_file" != x-; then
15904 configure_input="$ac_file. $configure_input"
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15906 $as_echo "$as_me: creating $ac_file" >&6;}
15907 fi
15908 # Neutralize special characters interpreted by sed in replacement strings.
15909 case $configure_input in #(
15910 *\&* | *\|* | *\\* )
15911 ac_sed_conf_input=`$as_echo "$configure_input" |
15912 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15913 *) ac_sed_conf_input=$configure_input;;
15914 esac
15915
15916 case $ac_tag in
15917 *:-:* | *:-) cat >"$tmp/stdin" \
15918 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15919 esac
15920 ;;
15921 esac
15922
15923 ac_dir=`$as_dirname -- "$ac_file" ||
15924 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15925 X"$ac_file" : 'X\(//\)[^/]' \| \
15926 X"$ac_file" : 'X\(//\)$' \| \
15927 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15928 $as_echo X"$ac_file" |
15929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930 s//\1/
15931 q
15932 }
15933 /^X\(\/\/\)[^/].*/{
15934 s//\1/
15935 q
15936 }
15937 /^X\(\/\/\)$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\).*/{
15942 s//\1/
15943 q
15944 }
15945 s/.*/./; q'`
15946 as_dir="$ac_dir"; as_fn_mkdir_p
15947 ac_builddir=.
15948
15949 case "$ac_dir" in
15950 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15951 *)
15952 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15953 # A ".." for each directory in $ac_dir_suffix.
15954 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15955 case $ac_top_builddir_sub in
15956 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15957 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15958 esac ;;
15959 esac
15960 ac_abs_top_builddir=$ac_pwd
15961 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15962 # for backward compatibility:
15963 ac_top_builddir=$ac_top_build_prefix
15964
15965 case $srcdir in
15966 .) # We are building in place.
15967 ac_srcdir=.
15968 ac_top_srcdir=$ac_top_builddir_sub
15969 ac_abs_top_srcdir=$ac_pwd ;;
15970 [\\/]* | ?:[\\/]* ) # Absolute name.
15971 ac_srcdir=$srcdir$ac_dir_suffix;
15972 ac_top_srcdir=$srcdir
15973 ac_abs_top_srcdir=$srcdir ;;
15974 *) # Relative name.
15975 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15976 ac_top_srcdir=$ac_top_build_prefix$srcdir
15977 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15978 esac
15979 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15980
15981
15982 case $ac_mode in
15983 :F)
15984 #
15985 # CONFIG_FILE
15986 #
15987
15988 case $INSTALL in
15989 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15990 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15991 esac
15992 _ACEOF
15993
15994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15995 # If the template does not know about datarootdir, expand it.
15996 # FIXME: This hack should be removed a few years after 2.60.
15997 ac_datarootdir_hack=; ac_datarootdir_seen=
15998 ac_sed_dataroot='
15999 /datarootdir/ {
16000 p
16001 q
16002 }
16003 /@datadir@/p
16004 /@docdir@/p
16005 /@infodir@/p
16006 /@localedir@/p
16007 /@mandir@/p'
16008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16009 *datarootdir*) ac_datarootdir_seen=yes;;
16010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16013 _ACEOF
16014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16015 ac_datarootdir_hack='
16016 s&@datadir@&$datadir&g
16017 s&@docdir@&$docdir&g
16018 s&@infodir@&$infodir&g
16019 s&@localedir@&$localedir&g
16020 s&@mandir@&$mandir&g
16021 s&\\\${datarootdir}&$datarootdir&g' ;;
16022 esac
16023 _ACEOF
16024
16025 # Neutralize VPATH when `$srcdir' = `.'.
16026 # Shell code in configure.ac might set extrasub.
16027 # FIXME: do we really want to maintain this feature?
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 ac_sed_extra="$ac_vpsub
16030 $extrasub
16031 _ACEOF
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033 :t
16034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16035 s|@configure_input@|$ac_sed_conf_input|;t t
16036 s&@top_builddir@&$ac_top_builddir_sub&;t t
16037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16038 s&@srcdir@&$ac_srcdir&;t t
16039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16040 s&@top_srcdir@&$ac_top_srcdir&;t t
16041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16042 s&@builddir@&$ac_builddir&;t t
16043 s&@abs_builddir@&$ac_abs_builddir&;t t
16044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16045 s&@INSTALL@&$ac_INSTALL&;t t
16046 $ac_datarootdir_hack
16047 "
16048 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16049 if $ac_cs_awk_getline; then
16050 $AWK -f "$tmp/subs.awk"
16051 else
16052 $AWK -f "$tmp/subs.awk" | $SHELL
16053 fi >$tmp/out \
16054 || as_fn_error "could not create $ac_file" "$LINENO" 5
16055
16056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16057 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16058 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16060 which seems to be undefined. Please make sure it is defined." >&5
16061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16062 which seems to be undefined. Please make sure it is defined." >&2;}
16063
16064 rm -f "$tmp/stdin"
16065 case $ac_file in
16066 -) cat "$tmp/out" && rm -f "$tmp/out";;
16067 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16068 esac \
16069 || as_fn_error "could not create $ac_file" "$LINENO" 5
16070 ;;
16071
16072
16073
16074 esac
16075
16076
16077 case $ac_file$ac_mode in
16078 "Makefile":F) sed "$extrasub_build" Makefile |
16079 sed "$extrasub_host" |
16080 sed "$extrasub_target" > mf$$
16081 mv -f mf$$ Makefile ;;
16082
16083 esac
16084 done # for ac_tag
16085
16086
16087 as_fn_exit 0
16088 _ACEOF
16089 ac_clean_files=$ac_clean_files_save
16090
16091 test $ac_write_fail = 0 ||
16092 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16093
16094
16095 # configure is writing to config.log, and then calls config.status.
16096 # config.status does its own redirection, appending to config.log.
16097 # Unfortunately, on DOS this fails, as config.log is still kept open
16098 # by configure, so config.status won't be able to write to it; its
16099 # output is simply discarded. So we exec the FD to /dev/null,
16100 # effectively closing config.log, so it can be properly (re)opened and
16101 # appended to by config.status. When coming back to configure, we
16102 # need to make the FD available again.
16103 if test "$no_create" != yes; then
16104 ac_cs_success=:
16105 ac_config_status_args=
16106 test "$silent" = yes &&
16107 ac_config_status_args="$ac_config_status_args --quiet"
16108 exec 5>/dev/null
16109 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16110 exec 5>>config.log
16111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16112 # would make configure fail if this is the last instruction.
16113 $ac_cs_success || as_fn_exit $?
16114 fi
16115 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16117 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16118 fi
16119