Support the PGO build for binutils+gdb
[binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 READELF
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
628 NM
629 LIPO
630 LD
631 DLLTOOL
632 AS
633 AR
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
638 LEX
639 M4
640 BISON
641 YACC
642 WINDRES_FOR_BUILD
643 WINDMC_FOR_BUILD
644 RANLIB_FOR_BUILD
645 NM_FOR_BUILD
646 LD_FOR_BUILD
647 LDFLAGS_FOR_BUILD
648 GOC_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 DLLTOOL_FOR_BUILD
651 CXX_FOR_BUILD
652 CXXFLAGS_FOR_BUILD
653 CFLAGS_FOR_BUILD
654 CC_FOR_BUILD
655 AS_FOR_BUILD
656 AR_FOR_BUILD
657 target_configdirs
658 configdirs
659 build_configdirs
660 INSTALL_GDB_TK
661 GDB_TK
662 CONFIGURE_GDB_TK
663 build_tooldir
664 tooldir
665 GCC_SHLIB_SUBDIR
666 RPATH_ENVVAR
667 target_configargs
668 host_configargs
669 build_configargs
670 BUILD_CONFIG
671 LDFLAGS_FOR_TARGET
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 get_gcc_base_ver
677 extra_host_zlib_configure_flags
678 extra_host_libiberty_configure_flags
679 stage1_languages
680 host_shared
681 extra_linker_plugin_flags
682 extra_linker_plugin_configure_flags
683 islinc
684 isllibs
685 poststage1_ldflags
686 poststage1_libs
687 stage1_ldflags
688 stage1_libs
689 extra_isl_gmp_configure_flags
690 extra_mpc_mpfr_configure_flags
691 extra_mpc_gmp_configure_flags
692 extra_mpfr_configure_flags
693 gmpinc
694 gmplibs
695 PGO_BUILD_LTO_CFLAGS
696 PGO_BUILD_USE_CFLAGS
697 PGO_BUILD_GEN_CFLAGS
698 do_compare
699 GNATMAKE
700 GNATBIND
701 ac_ct_CXX
702 CXXFLAGS
703 CXX
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 extra_liboffloadmic_configure_flags
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
716 AWK
717 SED
718 LN_S
719 LN
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 target_noncanonical
732 host_noncanonical
733 build_noncanonical
734 build_os
735 build_vendor
736 build_cpu
737 build
738 TOPLEVEL_CONFIGURE_ARGUMENTS
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files='serialization_dependencies
778 host_makefile_frag
779 target_makefile_frag
780 alphaieee_frag
781 ospace_frag'
782 ac_user_opts='
783 enable_option_checking
784 with_build_libsubdir
785 with_system_zlib
786 enable_as_accelerator_for
787 enable_offload_targets
788 enable_gold
789 enable_ld
790 enable_compressed_debug_sections
791 enable_libquadmath
792 enable_libquadmath_support
793 enable_libada
794 enable_libssp
795 enable_libstdcxx
796 enable_liboffloadmic
797 enable_bootstrap
798 enable_pgo_build
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_static_standard_libraries
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_host_shared
823 enable_stage1_languages
824 enable_objc_gc
825 with_target_bdw_gc
826 with_target_bdw_gc_include
827 with_target_bdw_gc_lib
828 with_gcc_major_version_only
829 with_build_sysroot
830 with_debug_prefix_map
831 with_build_config
832 enable_vtable_verify
833 enable_serial_configure
834 with_build_time_tools
835 enable_maintainer_mode
836 enable_stage1_checking
837 enable_werror
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CXX
848 CXXFLAGS
849 CCC
850 build_configargs
851 host_configargs
852 target_configargs
853 AR
854 AS
855 DLLTOOL
856 LD
857 LIPO
858 NM
859 RANLIB
860 STRIP
861 WINDRES
862 WINDMC
863 OBJCOPY
864 OBJDUMP
865 READELF
866 CC_FOR_TARGET
867 CXX_FOR_TARGET
868 GCC_FOR_TARGET
869 GFORTRAN_FOR_TARGET
870 GOC_FOR_TARGET
871 AR_FOR_TARGET
872 AS_FOR_TARGET
873 DLLTOOL_FOR_TARGET
874 LD_FOR_TARGET
875 LIPO_FOR_TARGET
876 NM_FOR_TARGET
877 OBJCOPY_FOR_TARGET
878 OBJDUMP_FOR_TARGET
879 RANLIB_FOR_TARGET
880 READELF_FOR_TARGET
881 STRIP_FOR_TARGET
882 WINDRES_FOR_TARGET
883 WINDMC_FOR_TARGET'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 case $srcdir in
1411 *" "*)
1412 as_fn_error $? "path to source, $srcdir, contains spaces"
1413 ;;
1414 esac
1415 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
1525 --disable-libstdcxx do not build libstdc++-v3 directory
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
1528 --enable-bootstrap enable bootstrapping [yes if native build]
1529 --enable-pgo-build[=lto]
1530 enable the PGO build
1531 --disable-isl-version-check
1532 disable check for isl version
1533 --enable-lto enable link time optimization support
1534 --enable-linker-plugin-configure-flags=FLAGS
1535 additional flags for configuring linker plugins
1536 [none]
1537 --enable-linker-plugin-flags=FLAGS
1538 additional flags for configuring and building linker
1539 plugins [none]
1540 --enable-host-shared build host code as shared libraries
1541 --enable-stage1-languages[=all]
1542 choose additional languages to build during stage1.
1543 Mostly useful for compiler development
1544 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1545 Objective-C runtime
1546 --enable-vtable-verify Enable vtable verification feature
1547 --enable-serial-[{host,target,build}-]configure
1548 force sequential configuration of sub-packages for
1549 the host, target or build machine, or all
1550 sub-packages
1551 --enable-maintainer-mode
1552 enable make rules and dependencies not useful (and
1553 sometimes confusing) to the casual installer
1554 --enable-stage1-checking[=all]
1555 choose additional checking for stage1 of the
1556 compiler
1557 --enable-werror enable -Werror in bootstrap stage2 and later
1558
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-build-libsubdir=DIR Directory where to find libraries for build system
1563 --with-system-zlib use installed libz
1564 --with-mpc=PATH specify prefix directory for installed MPC package.
1565 Equivalent to --with-mpc-include=PATH/include plus
1566 --with-mpc-lib=PATH/lib
1567 --with-mpc-include=PATH specify directory for installed MPC include files
1568 --with-mpc-lib=PATH specify directory for the installed MPC library
1569 --with-mpfr-dir=PATH this option has been REMOVED
1570 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1571 Equivalent to --with-mpfr-include=PATH/include plus
1572 --with-mpfr-lib=PATH/lib
1573 --with-mpfr-include=PATH
1574 specify directory for installed MPFR include files
1575 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1576 --with-gmp-dir=PATH this option has been REMOVED
1577 --with-gmp=PATH specify prefix directory for the installed GMP
1578 package. Equivalent to
1579 --with-gmp-include=PATH/include plus
1580 --with-gmp-lib=PATH/lib
1581 --with-gmp-include=PATH specify directory for installed GMP include files
1582 --with-gmp-lib=PATH specify directory for the installed GMP library
1583 --with-stage1-libs=LIBS libraries for stage1
1584 --with-static-standard-libraries
1585 use -static-libstdc++ and -static-libgcc
1586 (default=auto)
1587 --with-stage1-ldflags=FLAGS
1588 linker flags for stage1
1589 --with-boot-libs=LIBS libraries for stage2 and later
1590 --with-boot-ldflags=FLAGS
1591 linker flags for stage2 and later
1592 --with-isl=PATH Specify prefix directory for the installed isl
1593 package. Equivalent to
1594 --with-isl-include=PATH/include plus
1595 --with-isl-lib=PATH/lib
1596 --with-isl-include=PATH Specify directory for installed isl include files
1597 --with-isl-lib=PATH Specify the directory for the installed isl library
1598 --with-target-bdw-gc=PATHLIST
1599 specify prefix directory for installed bdw-gc
1600 package. Equivalent to
1601 --with-target-bdw-gc-include=PATH/include plus
1602 --with-target-bdw-gc-lib=PATH/lib
1603 --with-target-bdw-gc-include=PATHLIST
1604 specify directories for installed bdw-gc include
1605 files
1606 --with-target-bdw-gc-lib=PATHLIST
1607 specify directories for installed bdw-gc library
1608 --with-gcc-major-version-only
1609 use only GCC major number in filesystem paths
1610 --with-build-sysroot=SYSROOT
1611 use sysroot as the system root during the build
1612 --with-debug-prefix-map='A=B C=D ...'
1613 map A to B, C to D ... in debug information
1614 --with-build-config='NAME NAME2...'
1615 use config/NAME.mk build configuration
1616 --with-build-time-tools=PATH
1617 use given path to find target tools during the build
1618
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 build_configargs
1630 additional configure arguments for build directories
1631 host_configargs
1632 additional configure arguments for host directories
1633 target_configargs
1634 additional configure arguments for target directories
1635 AR AR for the host
1636 AS AS for the host
1637 DLLTOOL DLLTOOL for the host
1638 LD LD for the host
1639 LIPO LIPO for the host
1640 NM NM for the host
1641 RANLIB RANLIB for the host
1642 STRIP STRIP for the host
1643 WINDRES WINDRES for the host
1644 WINDMC WINDMC for the host
1645 OBJCOPY OBJCOPY for the host
1646 OBJDUMP OBJDUMP for the host
1647 READELF READELF for the host
1648 CC_FOR_TARGET
1649 CC for the target
1650 CXX_FOR_TARGET
1651 CXX for the target
1652 GCC_FOR_TARGET
1653 GCC for the target
1654 GFORTRAN_FOR_TARGET
1655 GFORTRAN for the target
1656 GOC_FOR_TARGET
1657 GOC for the target
1658 AR_FOR_TARGET
1659 AR for the target
1660 AS_FOR_TARGET
1661 AS for the target
1662 DLLTOOL_FOR_TARGET
1663 DLLTOOL for the target
1664 LD_FOR_TARGET
1665 LD for the target
1666 LIPO_FOR_TARGET
1667 LIPO for the target
1668 NM_FOR_TARGET
1669 NM for the target
1670 OBJCOPY_FOR_TARGET
1671 OBJCOPY for the target
1672 OBJDUMP_FOR_TARGET
1673 OBJDUMP for the target
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
1676 READELF_FOR_TARGET
1677 READELF for the target
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
1684
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1687
1688 Report bugs to the package provider.
1689 _ACEOF
1690 ac_status=$?
1691 fi
1692
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
1699 ac_builddir=.
1700
1701 case "$ac_dir" in
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711 esac
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1716
1717 case $srcdir in
1718 .) # We are building in place.
1719 ac_srcdir=.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730 esac
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1741 else
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1745 done
1746 fi
1747
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1750 cat <<\_ACEOF
1751 configure
1752 generated by GNU Autoconf 2.69
1753
1754 Copyright (C) 2012 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1757 _ACEOF
1758 exit
1759 fi
1760
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1764
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_compile
1802
1803 # ac_fn_cxx_try_compile LINENO
1804 # ----------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_compile
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_link
1932 cat >config.log <<_ACEOF
1933 This file contains any messages produced by compilers while
1934 running configure, to aid debugging if configure makes a mistake.
1935
1936 It was created by $as_me, which was
1937 generated by GNU Autoconf 2.69. Invocation command line was
1938
1939 $ $0 $@
1940
1941 _ACEOF
1942 exec 5>>config.log
1943 {
1944 cat <<_ASUNAME
1945 ## --------- ##
1946 ## Platform. ##
1947 ## --------- ##
1948
1949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966 _ASUNAME
1967
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 $as_echo "PATH: $as_dir"
1974 done
1975 IFS=$as_save_IFS
1976
1977 } >&5
1978
1979 cat >&5 <<_ACEOF
1980
1981
1982 ## ----------- ##
1983 ## Core tests. ##
1984 ## ----------- ##
1985
1986 _ACEOF
1987
1988
1989 # Keep a trace of the command line.
1990 # Strip out --no-create and --no-recursion so they do not pile up.
1991 # Strip out --silent because we don't want to record it for future runs.
1992 # Also quote any args containing shell meta-characters.
1993 # Make two passes to allow for proper duplicate-argument suppression.
1994 ac_configure_args=
1995 ac_configure_args0=
1996 ac_configure_args1=
1997 ac_must_keep_next=false
1998 for ac_pass in 1 2
1999 do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 esac
2010 case $ac_pass in
2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 2)
2013 as_fn_append ac_configure_args1 " '$ac_arg'"
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
2029 as_fn_append ac_configure_args " '$ac_arg'"
2030 ;;
2031 esac
2032 done
2033 done
2034 { ac_configure_args0=; unset ac_configure_args0;}
2035 { ac_configure_args1=; unset ac_configure_args1;}
2036
2037 # When interrupted or exit'd, cleanup temporary files, and complete
2038 # config.log. We remove comments because anyway the quotes in there
2039 # would cause problems or look ugly.
2040 # WARNING: Use '\'' to represent an apostrophe within the trap.
2041 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042 trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
2047 $as_echo "## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##"
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
2052 (
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
2068 (set) 2>&1 |
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
2071 sed -n \
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
2075 *)
2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077 ;;
2078 esac |
2079 sort
2080 )
2081 echo
2082
2083 $as_echo "## ----------------- ##
2084 ## Output variables. ##
2085 ## ----------------- ##"
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
2098 $as_echo "## ------------------- ##
2099 ## File substitutions. ##
2100 ## ------------------- ##"
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
2114 $as_echo "## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##"
2117 echo
2118 cat confdefs.h
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
2124 } >&5
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127 exit $exit_status
2128 ' 0
2129 for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131 done
2132 ac_signal=0
2133
2134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2135 rm -f -r conftest* confdefs.h
2136
2137 $as_echo "/* confdefs.h */" > confdefs.h
2138
2139 # Predefined preprocessor variables.
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_NAME "$PACKAGE_NAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_STRING "$PACKAGE_STRING"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_URL "$PACKAGE_URL"
2163 _ACEOF
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 ac_site_file1=NONE
2169 ac_site_file2=NONE
2170 if test -n "$CONFIG_SITE"; then
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
2177 elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180 else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
2183 fi
2184 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 do
2186 test "x$ac_site_file" = xNONE && continue
2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 as_fn_error $? "failed to load site script $ac_site_file
2195 See \`config.log' for more details" "$LINENO" 5; }
2196 fi
2197 done
2198
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 $as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214 fi
2215
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2264 fi
2265 done
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285
2286
2287
2288
2289
2290 progname=$0
2291 # if PWD already has a value, it is probably wrong.
2292 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294 # Export original configure arguments for use by sub-configures.
2295 # Quote arguments with shell meta charatcers.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS=
2297 set -- "$progname" "$@"
2298 for ac_arg
2299 do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309 done
2310 if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312 fi
2313 # Remove the initial space we just introduced and, as these will be
2314 # expanded by make, quote '$'.
2315 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
2317
2318 # Find the build, host, and target systems.
2319 ac_aux_dir=
2320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334 done
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337 fi
2338
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
2347
2348 # Make sure we can run config.sub.
2349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353 $as_echo_n "checking build system type... " >&6; }
2354 if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 ac_build_alias=$build_alias
2358 test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360 test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367 $as_echo "$ac_cv_build" >&6; }
2368 case $ac_cv_build in
2369 *-*-*) ;;
2370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371 esac
2372 build=$ac_cv_build
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_build
2375 shift
2376 build_cpu=$1
2377 build_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 build_os=$*
2382 IFS=$ac_save_IFS
2383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
2389 esac
2390
2391
2392
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
2396 esac
2397
2398
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
2403 esac
2404
2405
2406
2407
2408 test "$host_noncanonical" = "$target_noncanonical" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_transform_name=s,y,y,
2412
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414 $as_echo_n "checking host system type... " >&6; }
2415 if ${ac_cv_host+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420 else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423 fi
2424
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427 $as_echo "$ac_cv_host" >&6; }
2428 case $ac_cv_host in
2429 *-*-*) ;;
2430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2431 esac
2432 host=$ac_cv_host
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_host
2435 shift
2436 host_cpu=$1
2437 host_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 host_os=$*
2442 IFS=$ac_save_IFS
2443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2444
2445
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447 $as_echo_n "checking target system type... " >&6; }
2448 if ${ac_cv_target+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453 else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456 fi
2457
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460 $as_echo "$ac_cv_target" >&6; }
2461 case $ac_cv_target in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477
2478
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2485
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496
2497
2498 # Get 'install' or 'install-sh' and its variants.
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if ${ac_cv_path_install+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2540 :
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 fi
2560 done
2561 done
2562 ;;
2563 esac
2564
2565 done
2566 IFS=$as_save_IFS
2567
2568 rm -rf conftest.one conftest.two conftest.dir
2569
2570 fi
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2579 fi
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2583
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593 $as_echo_n "checking whether ln works... " >&6; }
2594 if ${acx_cv_prog_LN+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 rm -f conftestdata_t
2598 echo >conftestdata_f
2599 if ln conftestdata_f conftestdata_t 2>/dev/null
2600 then
2601 acx_cv_prog_LN=ln
2602 else
2603 acx_cv_prog_LN=no
2604 fi
2605 rm -f conftestdata_f conftestdata_t
2606
2607 fi
2608 if test $acx_cv_prog_LN = no; then
2609 LN="cp"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611 $as_echo "no, using $LN" >&6; }
2612 else
2613 LN="$acx_cv_prog_LN"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 fi
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619 $as_echo_n "checking whether ln -s works... " >&6; }
2620 LN_S=$as_ln_s
2621 if test "$LN_S" = "ln -s"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623 $as_echo "yes" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626 $as_echo "no, using $LN_S" >&6; }
2627 fi
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2631 if ${ac_cv_path_SED+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2651 as_fn_executable_p "$ac_path_SED" || continue
2652 # Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654 case `"$ac_path_SED" --version 2>&1` in
2655 *GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657 *)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678 esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2687 fi
2688 else
2689 ac_cv_path_SED=$SED
2690 fi
2691
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694 $as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740
2741 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744 # a relative path.
2745 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747 fi
2748
2749 # Set srcdir to "." if that's what it is.
2750 # This is important for multilib support.
2751 pwd=`${PWDCMD-pwd}`
2752 if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
2754 fi
2755
2756 topsrcdir=$srcpwd
2757
2758 extra_host_args=
2759
2760 ### To add a new directory to the tree, first choose whether it is a target
2761 ### or a host dependent tool. Then put it into the appropriate list
2762 ### (library or tools, host or target), doing a dependency sort.
2763
2764 # Subdirs will be configured in the order listed in build_configdirs,
2765 # configdirs, or target_configdirs; see the serialization section below.
2766
2767 # Dependency sorting is only needed when *configuration* must be done in
2768 # a particular order. In all cases a dependency should be specified in
2769 # the Makefile, whether or not it's implicitly specified here.
2770
2771 # Double entries in build_configdirs, configdirs, or target_configdirs may
2772 # cause circular dependencies and break everything horribly.
2773
2774 # these library is used by various programs built for the build
2775 # environment
2776 #
2777 build_libs="build-libiberty build-libcpp"
2778
2779 # these tools are built for the build environment
2780 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2781
2782 # these libraries are used by various programs built for the host environment
2783 #f
2784 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2785
2786 # these tools are built for the host environment
2787 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788 # know that we are building the simulator.
2789 # binutils, gas and ld appear in that order because it makes sense to run
2790 # "make check" in that particular order.
2791 # If --enable-gold is used, "gold" may replace "ld".
2792 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2793
2794 # these libraries are built for the target environment, and are built after
2795 # the host libraries and the host tools (which may be a cross compiler)
2796 # Note that libiberty is not a target library.
2797 target_libraries="target-libgcc \
2798 target-libbacktrace \
2799 target-libgloss \
2800 target-newlib \
2801 target-libgomp \
2802 target-liboffloadmic \
2803 target-libhsail-rt \
2804 target-libatomic \
2805 target-libitm \
2806 target-libstdc++-v3 \
2807 target-libsanitizer \
2808 target-libvtv \
2809 target-libssp \
2810 target-libquadmath \
2811 target-libgfortran \
2812 target-libffi \
2813 target-libobjc \
2814 target-libada \
2815 target-libgo"
2816
2817 # these tools are built using the target libraries, and are intended to
2818 # run only in the target environment
2819 #
2820 # note: any program that *uses* libraries that are in the "target_libraries"
2821 # list belongs in this list.
2822 #
2823 target_tools="target-rda"
2824
2825 ################################################################################
2826
2827 ## All tools belong in one of the four categories, and are assigned above
2828 ## We assign ${configdirs} this way to remove all embedded newlines. This
2829 ## is important because configure will choke if they ever get through.
2830 ## ${configdirs} is directories we build using the host tools.
2831 ## ${target_configdirs} is directories we build using the target tools.
2832 configdirs=`echo ${host_libs} ${host_tools}`
2833 target_configdirs=`echo ${target_libraries} ${target_tools}`
2834 build_configdirs=`echo ${build_libs} ${build_tools}`
2835
2836
2837
2838 ################################################################################
2839
2840 srcname="gnu development package"
2841
2842 # This gets set non-empty for some net releases of packages.
2843 appdirs=""
2844
2845 # Define is_cross_compiler to save on calls to 'test'.
2846 is_cross_compiler=
2847 if test x"${host}" = x"${target}" ; then
2848 is_cross_compiler=no
2849 else
2850 is_cross_compiler=yes
2851 fi
2852
2853 # Find the build and target subdir names.
2854
2855 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2856 # have matching libraries, they should use host libraries: Makefile.tpl
2857 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2858 # However, they still use the build modules, because the corresponding
2859 # host modules (e.g. bison) are only built for the host when bootstrap
2860 # finishes. So:
2861 # - build_subdir is where we find build modules, and never changes.
2862 # - build_libsubdir is where we find build libraries, and can be overridden.
2863
2864 # Prefix 'build-' so this never conflicts with target_subdir.
2865 build_subdir="build-${build_noncanonical}"
2866
2867 # Check whether --with-build-libsubdir was given.
2868 if test "${with_build_libsubdir+set}" = set; then :
2869 withval=$with_build_libsubdir; build_libsubdir="$withval"
2870 else
2871 build_libsubdir="$build_subdir"
2872 fi
2873
2874 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2875 if ( test $srcdir = . && test -d gcc ) \
2876 || test -d $srcdir/../host-${host_noncanonical}; then
2877 host_subdir="host-${host_noncanonical}"
2878 else
2879 host_subdir=.
2880 fi
2881 # No prefix.
2882 target_subdir=${target_noncanonical}
2883
2884 # Be sure to cover against remnants of an in-tree build.
2885 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2886 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2887 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2888 fi
2889
2890 # Skipdirs are removed silently.
2891 skipdirs=
2892 # Noconfigdirs are removed loudly.
2893 noconfigdirs=""
2894
2895 use_gnu_ld=
2896 # Make sure we don't let GNU ld be added if we didn't want it.
2897 if test x$with_gnu_ld = xno ; then
2898 use_gnu_ld=no
2899 noconfigdirs="$noconfigdirs ld gold"
2900 fi
2901
2902 use_gnu_as=
2903 # Make sure we don't let GNU as be added if we didn't want it.
2904 if test x$with_gnu_as = xno ; then
2905 use_gnu_as=no
2906 noconfigdirs="$noconfigdirs gas"
2907 fi
2908
2909 use_included_zlib=
2910
2911 # Check whether --with-system-zlib was given.
2912 if test "${with_system_zlib+set}" = set; then :
2913 withval=$with_system_zlib;
2914 fi
2915
2916 # Make sure we don't let ZLIB be added if we didn't want it.
2917 if test x$with_system_zlib = xyes ; then
2918 use_included_zlib=no
2919 noconfigdirs="$noconfigdirs zlib"
2920 fi
2921
2922 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2923 # is provided.
2924 if test x$with_system_readline = xyes ; then
2925 noconfigdirs="$noconfigdirs readline"
2926 fi
2927
2928 # some tools are so dependent upon X11 that if we're not building with X,
2929 # it's not even worth trying to configure, much less build, that tool.
2930
2931 case ${with_x} in
2932 yes | "") ;; # the default value for this tree is that X11 is available
2933 no)
2934 skipdirs="${skipdirs} tk itcl libgui"
2935 # We won't be able to build gdbtk without X.
2936 enable_gdbtk=no
2937 ;;
2938 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2939 esac
2940
2941 # Some are only suitable for cross toolchains.
2942 # Remove these if host=target.
2943 cross_only="target-libgloss target-newlib target-opcodes"
2944
2945 case $is_cross_compiler in
2946 no) skipdirs="${skipdirs} ${cross_only}" ;;
2947 esac
2948
2949 # If both --with-headers and --with-libs are specified, default to
2950 # --without-newlib.
2951 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2952 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2953 if test x"${with_newlib}" = x ; then
2954 with_newlib=no
2955 fi
2956 fi
2957
2958 # Recognize --with-newlib/--without-newlib.
2959 case ${with_newlib} in
2960 no) skipdirs="${skipdirs} target-newlib" ;;
2961 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2962 esac
2963
2964 # Check whether --enable-as-accelerator-for was given.
2965 if test "${enable_as_accelerator_for+set}" = set; then :
2966 enableval=$enable_as_accelerator_for;
2967 fi
2968
2969
2970 # Check whether --enable-offload-targets was given.
2971 if test "${enable_offload_targets+set}" = set; then :
2972 enableval=$enable_offload_targets;
2973 if test x"$enable_offload_targets" = x; then
2974 as_fn_error $? "no offload targets specified" "$LINENO" 5
2975 fi
2976
2977 else
2978 enable_offload_targets=
2979 fi
2980
2981
2982 # Handle --enable-gold, --enable-ld.
2983 # --disable-gold [--enable-ld]
2984 # Build only ld. Default option.
2985 # --enable-gold [--enable-ld]
2986 # Build both gold and ld. Install gold as "ld.gold", install ld
2987 # as "ld.bfd" and "ld".
2988 # --enable-gold=default [--enable-ld]
2989 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2990 # install ld as "ld.bfd".
2991 # --enable-gold[=default] --disable-ld
2992 # Build only gold, which is then installed as both "ld.gold" and "ld".
2993 # --enable-gold --enable-ld=default
2994 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2995 # and ld.bfd).
2996 # In other words, ld is default
2997 # --enable-gold=default --enable-ld=default
2998 # Error.
2999
3000 default_ld=
3001 # Check whether --enable-gold was given.
3002 if test "${enable_gold+set}" = set; then :
3003 enableval=$enable_gold; ENABLE_GOLD=$enableval
3004 else
3005 ENABLE_GOLD=no
3006 fi
3007
3008 case "${ENABLE_GOLD}" in
3009 yes|default)
3010 # Check for ELF target.
3011 is_elf=no
3012 case "${target}" in
3013 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3014 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3015 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3016 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3017 case "${target}" in
3018 *-*-linux*aout* | *-*-linux*oldld*)
3019 ;;
3020 *)
3021 is_elf=yes
3022 ;;
3023 esac
3024 esac
3025
3026 if test "$is_elf" = "yes"; then
3027 # Check for target supported by gold.
3028 case "${target}" in
3029 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3030 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3031 configdirs="$configdirs gold"
3032 if test x${ENABLE_GOLD} = xdefault; then
3033 default_ld=gold
3034 fi
3035 ENABLE_GOLD=yes
3036 ;;
3037 esac
3038 fi
3039 ;;
3040 no)
3041 ;;
3042 *)
3043 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3044 ;;
3045 esac
3046
3047 # Check whether --enable-ld was given.
3048 if test "${enable_ld+set}" = set; then :
3049 enableval=$enable_ld; ENABLE_LD=$enableval
3050 else
3051 ENABLE_LD=yes
3052 fi
3053
3054
3055 case "${ENABLE_LD}" in
3056 default)
3057 if test x${default_ld} != x; then
3058 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3059 fi
3060 ;;
3061 yes)
3062 ;;
3063 no)
3064 if test x${ENABLE_GOLD} != xyes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3066 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3067 fi
3068 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3069 ;;
3070 *)
3071 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3072 ;;
3073 esac
3074
3075 # PR gas/19109
3076 # Decide the default method for compressing debug sections.
3077 # Provide a configure time option to override our default.
3078 # Check whether --enable-compressed_debug_sections was given.
3079 if test "${enable_compressed_debug_sections+set}" = set; then :
3080 enableval=$enable_compressed_debug_sections;
3081 if test x"$enable_compressed_debug_sections" = xyes; then
3082 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3083 fi
3084
3085 else
3086 enable_compressed_debug_sections=
3087 fi
3088
3089
3090 # Configure extra directories which are host specific
3091
3092 case "${host}" in
3093 *-cygwin*)
3094 configdirs="$configdirs libtermcap" ;;
3095 esac
3096
3097 # A target can indicate whether a language isn't supported for some reason.
3098 # Only spaces may be used in this macro; not newlines or tabs.
3099 unsupported_languages=
3100
3101 # Remove more programs from consideration, based on the host or
3102 # target this usually means that a port of the program doesn't
3103 # exist yet.
3104
3105 case "${host}" in
3106 i[3456789]86-*-msdosdjgpp*)
3107 noconfigdirs="$noconfigdirs tcl tk itcl"
3108 ;;
3109 esac
3110
3111
3112 # Check whether --enable-libquadmath was given.
3113 if test "${enable_libquadmath+set}" = set; then :
3114 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3115 else
3116 ENABLE_LIBQUADMATH=yes
3117 fi
3118
3119 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3120 noconfigdirs="$noconfigdirs target-libquadmath"
3121 fi
3122
3123
3124 # Check whether --enable-libquadmath-support was given.
3125 if test "${enable_libquadmath_support+set}" = set; then :
3126 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3127 else
3128 ENABLE_LIBQUADMATH_SUPPORT=yes
3129 fi
3130
3131 enable_libquadmath_support=
3132 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3133 enable_libquadmath_support=no
3134 fi
3135
3136
3137 # Check whether --enable-libada was given.
3138 if test "${enable_libada+set}" = set; then :
3139 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3140 else
3141 ENABLE_LIBADA=yes
3142 fi
3143
3144 if test "${ENABLE_LIBADA}" != "yes" ; then
3145 noconfigdirs="$noconfigdirs gnattools"
3146 fi
3147
3148 # Check whether --enable-libssp was given.
3149 if test "${enable_libssp+set}" = set; then :
3150 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3151 else
3152 ENABLE_LIBSSP=yes
3153 fi
3154
3155
3156 # Check whether --enable-libstdcxx was given.
3157 if test "${enable_libstdcxx+set}" = set; then :
3158 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3159 else
3160 ENABLE_LIBSTDCXX=default
3161 fi
3162
3163 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3164 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3165 fi
3166
3167 # If this is accelerator compiler and its target is intelmic we enable
3168 # target liboffloadmic by default. If this is compiler with offloading
3169 # for intelmic we enable host liboffloadmic by default. Otherwise
3170 # liboffloadmic is disabled by default.
3171 # Check whether --enable-liboffloadmic was given.
3172 if test "${enable_liboffloadmic+set}" = set; then :
3173 enableval=$enable_liboffloadmic; case "$enableval" in
3174 no | host | target)
3175 enable_liboffloadmic=$enableval ;;
3176 *)
3177 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3178 esac
3179 else
3180 if test x"$enable_as_accelerator_for" != x; then
3181 case "${target}" in
3182 *-intelmic-* | *-intelmicemul-*)
3183 enable_liboffloadmic=target
3184 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3185 ;;
3186 *)
3187 enable_liboffloadmic=no
3188 ;;
3189 esac
3190 else
3191 case "${enable_offload_targets}" in
3192 *-intelmic-* | *-intelmicemul-*)
3193 enable_liboffloadmic=host
3194 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3195 ;;
3196 *)
3197 enable_liboffloadmic=no
3198 ;;
3199 esac
3200 fi
3201 fi
3202
3203
3204
3205 # Enable libgomp by default on hosted POSIX systems, and a few others.
3206 if test x$enable_libgomp = x ; then
3207 case "${target}" in
3208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3209 ;;
3210 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3211 ;;
3212 *-*-solaris2* | *-*-hpux11*)
3213 ;;
3214 *-*-darwin* | *-*-aix*)
3215 ;;
3216 nvptx*-*-*)
3217 ;;
3218 *)
3219 noconfigdirs="$noconfigdirs target-libgomp"
3220 ;;
3221 esac
3222 fi
3223
3224 # Disable libatomic on unsupported systems.
3225 if test -d ${srcdir}/libatomic; then
3226 if test x$enable_libatomic = x; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3228 $as_echo_n "checking for libatomic support... " >&6; }
3229 if (srcdir=${srcdir}/libatomic; \
3230 . ${srcdir}/configure.tgt; \
3231 test -n "$UNSUPPORTED")
3232 then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 noconfigdirs="$noconfigdirs target-libatomic"
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3239 fi
3240 fi
3241 fi
3242
3243 # Disable liboffloadmic on unsupported systems.
3244 if test -d ${srcdir}/liboffloadmic; then
3245 if test x$enable_liboffloadmic != xno; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3247 $as_echo_n "checking for liboffloadmic support... " >&6; }
3248 if (srcdir=${srcdir}/liboffloadmic; \
3249 . ${srcdir}/configure.tgt; \
3250 test -n "$UNSUPPORTED")
3251 then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 noconfigdirs="$noconfigdirs target-liboffloadmic"
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258 fi
3259 fi
3260 fi
3261
3262 # Disable libitm on unsupported systems.
3263 if test -d ${srcdir}/libitm; then
3264 if test x$enable_libitm = x; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3266 $as_echo_n "checking for libitm support... " >&6; }
3267 if (srcdir=${srcdir}/libitm; \
3268 . ${srcdir}/configure.tgt; \
3269 test -n "$UNSUPPORTED")
3270 then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 noconfigdirs="$noconfigdirs target-libitm"
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 fi
3279 fi
3280
3281 # Disable libsanitizer on unsupported systems.
3282 if test -d ${srcdir}/libsanitizer; then
3283 if test x$enable_libsanitizer = x; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3285 $as_echo_n "checking for libsanitizer support... " >&6; }
3286 if (srcdir=${srcdir}/libsanitizer; \
3287 . ${srcdir}/configure.tgt; \
3288 test -n "$UNSUPPORTED")
3289 then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 noconfigdirs="$noconfigdirs target-libsanitizer"
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 fi
3298 fi
3299
3300 # Disable libvtv on unsupported systems.
3301 if test -d ${srcdir}/libvtv; then
3302 if test x$enable_libvtv = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3304 $as_echo_n "checking for libvtv support... " >&6; }
3305 if (srcdir=${srcdir}/libvtv; \
3306 . ${srcdir}/configure.tgt; \
3307 test "$VTV_SUPPORTED" != "yes")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libvtv"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3315 fi
3316 fi
3317 fi
3318
3319
3320 # Disable libhsail-rt on unsupported systems.
3321 if test -d ${srcdir}/libhsail-rt; then
3322 if test x$enable_libhsail_rt = x; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3324 $as_echo_n "checking for libhsail-rt support... " >&6; }
3325 if (srcdir=${srcdir}/libhsail-rt; \
3326 . ${srcdir}/configure.tgt; \
3327 test -n "$UNSUPPORTED")
3328 then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 unsupported_languages="$unsupported_languages brig"
3332 # This implicitly disables also target-libhsail-rt as it won't
3333 # get added to the build without BRIG FE.
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 # Disable libquadmath for some systems.
3343 case "${target}" in
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352 esac
3353
3354 # Disable libssp for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 # No hosted I/O support.
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
3360 powerpc-*-aix* | rs6000-*-aix*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
3363 rl78-*-*)
3364 # libssp uses a misaligned load to trigger a fault, but the RL78
3365 # doesn't fault for those - instead, it gives a build-time error
3366 # for explicit misaligned loads.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 visium-*-*)
3370 # No hosted I/O support.
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
3373 esac
3374
3375 # Disable libstdc++-v3 for some systems.
3376 # Allow user to override this if they pass --enable-libstdc++-v3
3377 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3378 case "${target}" in
3379 *-*-vxworks*)
3380 # VxWorks uses the Dinkumware C++ library.
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 arm*-wince-pe*)
3384 # the C++ libraries don't build on top of CE's C libraries
3385 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3386 ;;
3387 avr-*-*)
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
3390 ft32-*-*)
3391 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3392 ;;
3393 esac
3394 fi
3395
3396 # Disable Fortran for some systems.
3397 case "${target}" in
3398 mmix-*-*)
3399 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3400 unsupported_languages="$unsupported_languages fortran"
3401 ;;
3402 esac
3403
3404 # Disable libffi for some systems.
3405 case "${target}" in
3406 powerpc-*-darwin*)
3407 ;;
3408 i[3456789]86-*-darwin*)
3409 ;;
3410 x86_64-*-darwin[912]*)
3411 ;;
3412 *-*-darwin*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 *-*-netware*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 *-*-phoenix*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 *-*-rtems*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-tpf*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-uclinux*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 *-*-vxworks*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 aarch64*-*-freebsd*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 alpha*-*-*vms*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 arm*-*-freebsd*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 arm-wince-pe)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 arm*-*-symbianelf*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 cris-*-* | crisv32-*-*)
3449 case "${target}" in
3450 *-*-linux*)
3451 ;;
3452 *) # See PR46792 regarding target-libffi.
3453 noconfigdirs="$noconfigdirs target-libffi";;
3454 esac
3455 ;;
3456 hppa*64*-*-hpux*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 hppa*-hp-hpux11*)
3460 ;;
3461 hppa*-*-hpux*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3463 ;;
3464 ia64*-*-*vms*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3466 ;;
3467 i[3456789]86-w64-mingw*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3469 ;;
3470 i[3456789]86-*-mingw*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 x86_64-*-mingw*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 mmix-*-*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 powerpc-*-aix*)
3480 ;;
3481 rs6000-*-aix*)
3482 ;;
3483 ft32-*-*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486 *-*-lynxos*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
3489 esac
3490
3491 # Disable the go frontend on systems where it is known to not work. Please keep
3492 # this in sync with contrib/config-list.mk.
3493 case "${target}" in
3494 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3495 unsupported_languages="$unsupported_languages go"
3496 ;;
3497 esac
3498
3499 # Only allow gdbserver on some systems.
3500 if test -d ${srcdir}/gdbserver; then
3501 if test x$enable_gdbserver = x; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3503 $as_echo_n "checking for gdbserver support... " >&6; }
3504 if (srcdir=${srcdir}/gdbserver; \
3505 . ${srcdir}/configure.srv; \
3506 test -n "$UNSUPPORTED")
3507 then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 noconfigdirs="$noconfigdirs gdbserver"
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513 $as_echo "yes" >&6; }
3514 fi
3515 fi
3516 fi
3517
3518 # Disable libgo for some systems where it is known to not work.
3519 # For testing, you can easily override this with --enable-libgo.
3520 if test x$enable_libgo = x; then
3521 case "${target}" in
3522 *-*-darwin*)
3523 # PR 46986
3524 noconfigdirs="$noconfigdirs target-libgo"
3525 ;;
3526 *-*-cygwin* | *-*-mingw*)
3527 noconfigdirs="$noconfigdirs target-libgo"
3528 ;;
3529 esac
3530 fi
3531
3532 # Default libgloss CPU subdirectory.
3533 libgloss_dir="$target_cpu"
3534
3535 case "${target}" in
3536 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3537 libgloss_dir=wince
3538 ;;
3539 aarch64*-*-* )
3540 libgloss_dir=aarch64
3541 ;;
3542 arm*-*-*)
3543 libgloss_dir=arm
3544 ;;
3545 cris-*-* | crisv32-*-*)
3546 libgloss_dir=cris
3547 ;;
3548 hppa*-*-*)
3549 libgloss_dir=pa
3550 ;;
3551 i[3456789]86-*-*)
3552 libgloss_dir=i386
3553 ;;
3554 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3555 libgloss_dir=m68hc11
3556 ;;
3557 m68*-*-* | fido-*-*)
3558 libgloss_dir=m68k
3559 ;;
3560 mips*-*-*)
3561 libgloss_dir=mips
3562 ;;
3563 powerpc*-*-*)
3564 libgloss_dir=rs6000
3565 ;;
3566 sparc*-*-*)
3567 libgloss_dir=sparc
3568 ;;
3569 esac
3570
3571 # Disable newlib and libgloss for various target OSes.
3572 case "${target}" in
3573 alpha*-dec-osf*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 i[3456789]86-*-linux*)
3577 # This section makes it possible to build newlib natively on linux.
3578 # If we are using a cross compiler then don't configure newlib.
3579 if test x${is_cross_compiler} != xno ; then
3580 noconfigdirs="$noconfigdirs target-newlib"
3581 fi
3582 noconfigdirs="$noconfigdirs target-libgloss"
3583 # If we are not using a cross compiler, do configure newlib.
3584 # Note however, that newlib will only be configured in this situation
3585 # if the --with-newlib option has been given, because otherwise
3586 # 'target-newlib' will appear in skipdirs.
3587 ;;
3588 i[3456789]86-*-rdos*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 sparc-*-sunos4*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-aix*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 *-*-beos*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3602 ;;
3603 *-*-chorusos)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 ;;
3606 *-*-dragonfly*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3608 ;;
3609 *-*-freebsd*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3611 ;;
3612 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3614 ;;
3615 *-*-lynxos*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3617 ;;
3618 *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 ;;
3621 *-*-netbsd*)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 ;;
3624 *-*-netware*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3626 ;;
3627 *-*-tpf*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3629 ;;
3630 *-*-uclinux*)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 ;;
3633 *-*-vxworks*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 esac
3637
3638 case "${target}" in
3639 *-*-chorusos)
3640 ;;
3641 aarch64-*-darwin*)
3642 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3643 noconfigdirs="$noconfigdirs sim target-rda"
3644 ;;
3645 arm-*-darwin*)
3646 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3647 noconfigdirs="$noconfigdirs sim target-rda"
3648 ;;
3649 powerpc-*-darwin*)
3650 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3651 noconfigdirs="$noconfigdirs sim target-rda"
3652 ;;
3653 i[3456789]86-*-darwin*)
3654 noconfigdirs="$noconfigdirs ld gprof"
3655 noconfigdirs="$noconfigdirs sim target-rda"
3656 ;;
3657 x86_64-*-darwin[912]*)
3658 noconfigdirs="$noconfigdirs ld gas gprof"
3659 noconfigdirs="$noconfigdirs sim target-rda"
3660 ;;
3661 *-*-darwin*)
3662 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3663 noconfigdirs="$noconfigdirs sim target-rda"
3664 ;;
3665 *-*-dragonfly*)
3666 ;;
3667 *-*-freebsd*)
3668 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3669 && test -f /usr/local/include/gmp.h; then
3670 with_gmp=/usr/local
3671 fi
3672 ;;
3673 *-*-kaos*)
3674 # Remove unsupported stuff on all kaOS configurations.
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 ;;
3677 *-*-netbsd*)
3678 ;;
3679 *-*-netware*)
3680 ;;
3681 *-*-phoenix*)
3682 noconfigdirs="$noconfigdirs target-libgloss"
3683 ;;
3684 *-*-rtems*)
3685 noconfigdirs="$noconfigdirs target-libgloss"
3686 ;;
3687 # The tpf target doesn't support gdb yet.
3688 *-*-tpf*)
3689 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3690 ;;
3691 *-*-uclinux*)
3692 noconfigdirs="$noconfigdirs target-rda"
3693 ;;
3694 *-*-vxworks*)
3695 ;;
3696 alpha*-dec-osf*)
3697 # ld works, but does not support shared libraries.
3698 # gas doesn't generate exception information.
3699 noconfigdirs="$noconfigdirs gas ld"
3700 ;;
3701 alpha*-*-*vms*)
3702 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3703 ;;
3704 alpha*-*-*)
3705 # newlib is not 64 bit ready
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3709 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3710 ;;
3711 arc*-*-*)
3712 noconfigdirs="$noconfigdirs sim"
3713 ;;
3714 arm-*-pe*)
3715 noconfigdirs="$noconfigdirs target-libgloss"
3716 ;;
3717 arm-*-riscix*)
3718 noconfigdirs="$noconfigdirs ld target-libgloss"
3719 ;;
3720 avr-*-*)
3721 if test x${with_avrlibc} != xno; then
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 fi
3724 ;;
3725 c4x-*-* | tic4x-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3727 ;;
3728 tic54x-*-*)
3729 noconfigdirs="$noconfigdirs target-libgloss gdb"
3730 ;;
3731 d10v-*-*)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3733 ;;
3734 d30v-*-*)
3735 noconfigdirs="$noconfigdirs gdb"
3736 ;;
3737 fr30-*-elf*)
3738 noconfigdirs="$noconfigdirs gdb"
3739 ;;
3740 ft32-*-*)
3741 noconfigdirs="$noconfigdirs target-rda gprof"
3742 ;;
3743 moxie-*-*)
3744 noconfigdirs="$noconfigdirs"
3745 ;;
3746 h8300*-*-*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3748 ;;
3749 h8500-*-*)
3750 noconfigdirs="$noconfigdirs target-libgloss"
3751 ;;
3752 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3753 ;;
3754 hppa*64*-*-hpux*)
3755 noconfigdirs="$noconfigdirs gdb"
3756 ;;
3757 hppa*-*-hpux11*)
3758 noconfigdirs="$noconfigdirs gdb ld"
3759 ;;
3760 hppa*64*-*-linux*)
3761 ;;
3762 hppa*-*-linux*)
3763 ;;
3764 hppa*-*-*elf* | \
3765 hppa*-*-lites* | \
3766 hppa*-*-openbsd* | \
3767 hppa*64*-*-*)
3768 ;;
3769 hppa*-*-pro*)
3770 ;;
3771 hppa*-*-*)
3772 noconfigdirs="$noconfigdirs ld"
3773 ;;
3774 i960-*-*)
3775 noconfigdirs="$noconfigdirs gdb"
3776 ;;
3777 ia64*-*-elf*)
3778 # No gdb support yet.
3779 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3780 ;;
3781 ia64*-**-hpux*)
3782 # No ld support yet.
3783 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3784 ;;
3785 ia64*-*-*vms*)
3786 # No ld support yet.
3787 noconfigdirs="$noconfigdirs libgui itcl ld"
3788 ;;
3789 i[3456789]86-w64-mingw*)
3790 ;;
3791 i[3456789]86-*-mingw*)
3792 target_configdirs="$target_configdirs target-winsup"
3793 ;;
3794 *-*-cygwin*)
3795 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3796 noconfigdirs="$noconfigdirs target-libgloss"
3797 # always build newlib if winsup directory is present.
3798 if test -d "$srcdir/winsup/cygwin"; then
3799 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3800 elif test -d "$srcdir/newlib"; then
3801 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3802 fi
3803 ;;
3804 i[3456789]86-*-pe)
3805 noconfigdirs="$noconfigdirs target-libgloss"
3806 ;;
3807 i[3456789]86-*-sco3.2v5*)
3808 # The linker does not yet know about weak symbols in COFF,
3809 # and is not configured to handle mixed ELF and COFF.
3810 noconfigdirs="$noconfigdirs ld target-libgloss"
3811 ;;
3812 i[3456789]86-*-sco*)
3813 noconfigdirs="$noconfigdirs gprof target-libgloss"
3814 ;;
3815 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 i[3456789]86-*-sysv4*)
3819 noconfigdirs="$noconfigdirs target-libgloss"
3820 ;;
3821 i[3456789]86-*-beos*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
3824 i[3456789]86-*-rdos*)
3825 noconfigdirs="$noconfigdirs gdb"
3826 ;;
3827 mmix-*-*)
3828 noconfigdirs="$noconfigdirs gdb"
3829 ;;
3830 mt-*-*)
3831 noconfigdirs="$noconfigdirs sim"
3832 ;;
3833 nfp-*-*)
3834 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3835 noconfigdirs="$noconfigdirs $target_libraries"
3836 ;;
3837 pdp11-*-*)
3838 noconfigdirs="$noconfigdirs gdb gprof"
3839 ;;
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
3842 noconfigdirs="$noconfigdirs gprof"
3843 ;;
3844 powerpc*-*-winnt* | powerpc*-*-pe*)
3845 target_configdirs="$target_configdirs target-winsup"
3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3849 ;;
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3853 ;;
3854 powerpc-*-beos*)
3855 noconfigdirs="$noconfigdirs gdb"
3856 ;;
3857 rs6000-*-lynxos*)
3858 noconfigdirs="$noconfigdirs gprof"
3859 ;;
3860 rs6000-*-aix*)
3861 noconfigdirs="$noconfigdirs gprof"
3862 ;;
3863 rs6000-*-*)
3864 noconfigdirs="$noconfigdirs gprof"
3865 ;;
3866 m68k-apollo-*)
3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3868 ;;
3869 microblaze*)
3870 noconfigdirs="$noconfigdirs gprof"
3871 ;;
3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3875 fi
3876 ;;
3877 mips*-*-irix5*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3879 ;;
3880 mips*-*-irix6*)
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3882 ;;
3883 mips*-*-bsd*)
3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3885 ;;
3886 mips*-*-linux*)
3887 ;;
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3891 ;;
3892 mips*-*-*)
3893 noconfigdirs="$noconfigdirs gprof"
3894 ;;
3895 nvptx*-*-*)
3896 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3897 ;;
3898 sh-*-*)
3899 case "${target}" in
3900 sh*-*-elf)
3901 ;;
3902 *)
3903 noconfigdirs="$noconfigdirs target-libgloss" ;;
3904 esac
3905 ;;
3906 sparc-*-sunos4*)
3907 if test x${is_cross_compiler} = xno ; then
3908 use_gnu_ld=no
3909 fi
3910 ;;
3911 tic6x-*-*)
3912 noconfigdirs="$noconfigdirs sim"
3913 ;;
3914 tilepro*-*-* | tilegx*-*-*)
3915 noconfigdirs="$noconfigdirs sim"
3916 ;;
3917 v810-*-*)
3918 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3919 ;;
3920 vax-*-*)
3921 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3922 ;;
3923 wasm32-*-*)
3924 noconfigdirs="$noconfigdirs ld"
3925 ;;
3926 esac
3927
3928 # If we aren't building newlib, then don't build libgloss, since libgloss
3929 # depends upon some newlib header files.
3930 case "${noconfigdirs}" in
3931 *target-libgloss*) ;;
3932 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3933 esac
3934
3935 # Work in distributions that contain no compiler tools, like Autoconf.
3936 host_makefile_frag=/dev/null
3937 if test -d ${srcdir}/config ; then
3938 case "${host}" in
3939 i[3456789]86-*-msdosdjgpp*)
3940 host_makefile_frag="config/mh-djgpp"
3941 ;;
3942 *-cygwin*)
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3945 $as_echo_n "checking to see if cat works as expected... " >&6; }
3946 echo a >cygwin-cat-check
3947 if test `cat cygwin-cat-check` = a ; then
3948 rm cygwin-cat-check
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951 else
3952 rm cygwin-cat-check
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 as_fn_error $? "The cat command does not ignore carriage return characters.
3956 Please either mount the build directory in binary mode or run the following
3957 commands before running any configure script:
3958 set -o igncr
3959 export SHELLOPTS
3960 " "$LINENO" 5
3961 fi
3962
3963 host_makefile_frag="config/mh-cygwin"
3964 ;;
3965 *-mingw*)
3966 host_makefile_frag="config/mh-mingw"
3967 ;;
3968 alpha*-linux*)
3969 host_makefile_frag="config/mh-alpha-linux"
3970 ;;
3971 hppa*-hp-hpux10*)
3972 host_makefile_frag="config/mh-pa-hpux10"
3973 ;;
3974 hppa*-hp-hpux*)
3975 host_makefile_frag="config/mh-pa"
3976 ;;
3977 hppa*-*)
3978 host_makefile_frag="config/mh-pa"
3979 ;;
3980 *-*-darwin*)
3981 host_makefile_frag="config/mh-darwin"
3982 ;;
3983 powerpc-*-aix*)
3984 host_makefile_frag="config/mh-ppc-aix"
3985 ;;
3986 rs6000-*-aix*)
3987 host_makefile_frag="config/mh-ppc-aix"
3988 ;;
3989 esac
3990 fi
3991
3992 if test "${build}" != "${host}" ; then
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3998 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3999 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4000 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4001 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4002 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4003 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4004 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4005 else
4006 AR_FOR_BUILD="\$(AR)"
4007 AS_FOR_BUILD="\$(AS)"
4008 CC_FOR_BUILD="\$(CC)"
4009 CXX_FOR_BUILD="\$(CXX)"
4010 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4011 GOC_FOR_BUILD="\$(GOC)"
4012 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4013 LD_FOR_BUILD="\$(LD)"
4014 NM_FOR_BUILD="\$(NM)"
4015 RANLIB_FOR_BUILD="\$(RANLIB)"
4016 WINDRES_FOR_BUILD="\$(WINDRES)"
4017 WINDMC_FOR_BUILD="\$(WINDMC)"
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_CC+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065 ac_ct_CC=$CC
4066 # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CC="gcc"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4086 fi
4087 done
4088 done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 CC=$ac_ct_CC
4112 fi
4113 else
4114 CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156 fi
4157 fi
4158 if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_CC+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169 ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4179 continue
4180 fi
4181 ac_cv_prog_CC="cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185 done
4186 done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4192 shift
4193 if test $# != 0; then
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4197 shift
4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199 fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
4216 for ac_prog in cl.exe
4217 do
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255 test -n "$CC" && break
4256 done
4257 fi
4258 if test -z "$CC"; then
4259 ac_ct_CC=$CC
4260 for ac_prog in cl.exe
4261 do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_CC="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 test -n "$ac_ct_CC" && break
4300 done
4301
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311 CC=$ac_ct_CC
4312 fi
4313 fi
4314
4315 fi
4316
4317
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error $? "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details" "$LINENO" 5; }
4322
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336 ac_status=$?
4337 if test -s conftest.err; then
4338 sed '10a\
4339 ... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 fi
4343 rm -f conftest.er1 conftest.err
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346 done
4347
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 int
4352 main ()
4353 {
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 ac_clean_files_save=$ac_clean_files
4360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4361 # Try to create an executable without -o first, disregard a.out.
4362 # It will help us diagnose broken compilers, and finding out an intuition
4363 # of exeext.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4365 $as_echo_n "checking whether the C compiler works... " >&6; }
4366 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4367
4368 # The possible output files:
4369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370
4371 ac_rmfiles=
4372 for ac_file in $ac_files
4373 do
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377 esac
4378 done
4379 rm -f $ac_rmfiles
4380
4381 if { { ac_try="$ac_link_default"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4395 # so that the user can short-circuit this test for compilers unknown to
4396 # Autoconf.
4397 for ac_file in $ac_files ''
4398 do
4399 test -f "$ac_file" || continue
4400 case $ac_file in
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4402 ;;
4403 [ab].out )
4404 # We found the default executable, but exeext='' is most
4405 # certainly right.
4406 break;;
4407 *.* )
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409 then :; else
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411 fi
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4416 # actually working.
4417 break;;
4418 * )
4419 break;;
4420 esac
4421 done
4422 test "$ac_cv_exeext" = no && ac_cv_exeext=
4423
4424 else
4425 ac_file=''
4426 fi
4427 if test -z "$ac_file"; then :
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error 77 "C compiler cannot create executables
4436 See \`config.log' for more details" "$LINENO" 5; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4442 $as_echo_n "checking for C compiler default output file name... " >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4444 $as_echo "$ac_file" >&6; }
4445 ac_exeext=$ac_cv_exeext
4446
4447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4448 ac_clean_files=$ac_clean_files_save
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { { ac_try="$ac_link"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_link") 2>&5
4459 ac_status=$?
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4465 # `rm'.
4466 for ac_file in conftest.exe conftest conftest.*; do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471 break;;
4472 * ) break;;
4473 esac
4474 done
4475 else
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 fi
4481 rm -f conftest conftest$ac_cv_exeext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4483 $as_echo "$ac_cv_exeext" >&6; }
4484
4485 rm -f conftest.$ac_ext
4486 EXEEXT=$ac_cv_exeext
4487 ac_exeext=$EXEEXT
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #include <stdio.h>
4491 int
4492 main ()
4493 {
4494 FILE *f = fopen ("conftest.out", "w");
4495 return ferror (f) || fclose (f) != 0;
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 ac_clean_files="$ac_clean_files conftest.out"
4502 # Check that the compiler produces executables we can run. If not, either
4503 # the compiler is broken, or we cross compile.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4505 $as_echo_n "checking whether we are cross compiling... " >&6; }
4506 if test "$cross_compiling" != yes; then
4507 { { ac_try="$ac_link"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_link") 2>&5
4515 ac_status=$?
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4518 if { ac_try='./conftest$ac_cv_exeext'
4519 { { case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_try") 2>&5
4526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; }; then
4529 cross_compiling=no
4530 else
4531 if test "$cross_compiling" = maybe; then
4532 cross_compiling=yes
4533 else
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot run C compiled programs.
4537 If you meant to cross compile, use \`--host'.
4538 See \`config.log' for more details" "$LINENO" 5; }
4539 fi
4540 fi
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4543 $as_echo "$cross_compiling" >&6; }
4544
4545 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4546 ac_clean_files=$ac_clean_files_save
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4548 $as_echo_n "checking for suffix of object files... " >&6; }
4549 if ${ac_cv_objext+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554
4555 int
4556 main ()
4557 {
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.o conftest.obj
4564 if { { ac_try="$ac_compile"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_compile") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
4575 for ac_file in conftest.o conftest.obj conftest.*; do
4576 test -f "$ac_file" || continue;
4577 case $ac_file in
4578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4580 break;;
4581 esac
4582 done
4583 else
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589 as_fn_error $? "cannot compute suffix of object files: cannot compile
4590 See \`config.log' for more details" "$LINENO" 5; }
4591 fi
4592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4595 $as_echo "$ac_cv_objext" >&6; }
4596 OBJEXT=$ac_cv_objext
4597 ac_objext=$OBJEXT
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4600 if ${ac_cv_c_compiler_gnu+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605
4606 int
4607 main ()
4608 {
4609 #ifndef __GNUC__
4610 choke me
4611 #endif
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_compiler_gnu=yes
4619 else
4620 ac_compiler_gnu=no
4621 fi
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4624
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4628 if test $ac_compiler_gnu = yes; then
4629 GCC=yes
4630 else
4631 GCC=
4632 fi
4633 ac_test_CFLAGS=${CFLAGS+set}
4634 ac_save_CFLAGS=$CFLAGS
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4637 if ${ac_cv_prog_cc_g+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 ac_save_c_werror_flag=$ac_c_werror_flag
4641 ac_c_werror_flag=yes
4642 ac_cv_prog_cc_g=no
4643 CFLAGS="-g"
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main ()
4649 {
4650
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_prog_cc_g=yes
4657 else
4658 CFLAGS=""
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661
4662 int
4663 main ()
4664 {
4665
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671
4672 else
4673 ac_c_werror_flag=$ac_save_c_werror_flag
4674 CFLAGS="-g"
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677
4678 int
4679 main ()
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_prog_cc_g=yes
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_c_werror_flag=$ac_save_c_werror_flag
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4697 $as_echo "$ac_cv_prog_cc_g" >&6; }
4698 if test "$ac_test_CFLAGS" = set; then
4699 CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701 if test "$GCC" = yes; then
4702 CFLAGS="-g -O2"
4703 else
4704 CFLAGS="-g"
4705 fi
4706 else
4707 if test "$GCC" = yes; then
4708 CFLAGS="-O2"
4709 else
4710 CFLAGS=
4711 fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4715 if ${ac_cv_prog_cc_c89+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_cv_prog_cc_c89=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <stdarg.h>
4723 #include <stdio.h>
4724 struct stat;
4725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4726 struct buf { int x; };
4727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4728 static char *e (p, i)
4729 char **p;
4730 int i;
4731 {
4732 return p[i];
4733 }
4734 static char *f (char * (*g) (char **, int), char **p, ...)
4735 {
4736 char *s;
4737 va_list v;
4738 va_start (v,p);
4739 s = g (p, va_arg (v,int));
4740 va_end (v);
4741 return s;
4742 }
4743
4744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4745 function prototypes and stuff, but not '\xHH' hex character constants.
4746 These don't provoke an error unfortunately, instead are silently treated
4747 as 'x'. The following induces an error, until -std is added to get
4748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4749 array size at least. It's necessary to write '\x00'==0 to get something
4750 that's true only with -std. */
4751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4752
4753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4754 inside strings and character constants. */
4755 #define FOO(x) 'x'
4756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4757
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4762 int argc;
4763 char **argv;
4764 int
4765 main ()
4766 {
4767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4774 do
4775 CC="$ac_save_CC $ac_arg"
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_c89=$ac_arg
4778 fi
4779 rm -f core conftest.err conftest.$ac_objext
4780 test "x$ac_cv_prog_cc_c89" != "xno" && break
4781 done
4782 rm -f conftest.$ac_ext
4783 CC=$ac_save_CC
4784
4785 fi
4786 # AC_CACHE_VAL
4787 case "x$ac_cv_prog_cc_c89" in
4788 x)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4790 $as_echo "none needed" >&6; } ;;
4791 xno)
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4793 $as_echo "unsupported" >&6; } ;;
4794 *)
4795 CC="$CC $ac_cv_prog_cc_c89"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4798 esac
4799 if test "x$ac_cv_prog_cc_c89" != xno; then :
4800
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809 ac_ext=cpp
4810 ac_cpp='$CXXCPP $CPPFLAGS'
4811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4814 if test -z "$CXX"; then
4815 if test -n "$CCC"; then
4816 CXX=$CCC
4817 else
4818 if test -n "$ac_tool_prefix"; then
4819 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4820 do
4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_prog_CXX+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$CXX"; then
4829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846 fi
4847 fi
4848 CXX=$ac_cv_prog_CXX
4849 if test -n "$CXX"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4851 $as_echo "$CXX" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 fi
4856
4857
4858 test -n "$CXX" && break
4859 done
4860 fi
4861 if test -z "$CXX"; then
4862 ac_ct_CXX=$CXX
4863 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4864 do
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$ac_ct_CXX"; then
4873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_ac_ct_CXX="$ac_prog"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4893 if test -n "$ac_ct_CXX"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4895 $as_echo "$ac_ct_CXX" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902 test -n "$ac_ct_CXX" && break
4903 done
4904
4905 if test "x$ac_ct_CXX" = x; then
4906 CXX="g++"
4907 else
4908 case $cross_compiling:$ac_tool_warned in
4909 yes:)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 CXX=$ac_ct_CXX
4915 fi
4916 fi
4917
4918 fi
4919 fi
4920 # Provide some information about the compiler.
4921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4922 set X $ac_compile
4923 ac_compiler=$2
4924 for ac_option in --version -v -V -qversion; do
4925 { { ac_try="$ac_compiler $ac_option >&5"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4933 ac_status=$?
4934 if test -s conftest.err; then
4935 sed '10a\
4936 ... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
4939 fi
4940 rm -f conftest.er1 conftest.err
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943 done
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4946 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4947 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 int
4954 main ()
4955 {
4956 #ifndef __GNUC__
4957 choke me
4958 #endif
4959
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_cxx_try_compile "$LINENO"; then :
4965 ac_compiler_gnu=yes
4966 else
4967 ac_compiler_gnu=no
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4971
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4974 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4975 if test $ac_compiler_gnu = yes; then
4976 GXX=yes
4977 else
4978 GXX=
4979 fi
4980 ac_test_CXXFLAGS=${CXXFLAGS+set}
4981 ac_save_CXXFLAGS=$CXXFLAGS
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4983 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4984 if ${ac_cv_prog_cxx_g+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4988 ac_cxx_werror_flag=yes
4989 ac_cv_prog_cxx_g=no
4990 CXXFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_cxx_try_compile "$LINENO"; then :
5003 ac_cv_prog_cxx_g=yes
5004 else
5005 CXXFLAGS=""
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_cxx_try_compile "$LINENO"; then :
5018
5019 else
5020 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5021 CXXFLAGS="-g"
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024
5025 int
5026 main ()
5027 {
5028
5029 ;
5030 return 0;
5031 }
5032 _ACEOF
5033 if ac_fn_cxx_try_compile "$LINENO"; then :
5034 ac_cv_prog_cxx_g=yes
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5044 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5045 if test "$ac_test_CXXFLAGS" = set; then
5046 CXXFLAGS=$ac_save_CXXFLAGS
5047 elif test $ac_cv_prog_cxx_g = yes; then
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-g -O2"
5050 else
5051 CXXFLAGS="-g"
5052 fi
5053 else
5054 if test "$GXX" = yes; then
5055 CXXFLAGS="-O2"
5056 else
5057 CXXFLAGS=
5058 fi
5059 fi
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065
5066
5067 # We must set the default linker to the linker used by gcc for the correct
5068 # operation of libtool. If LD is not defined and we are using gcc, try to
5069 # set the LD default to the ld used by gcc.
5070 if test -z "$LD"; then
5071 if test "$GCC" = yes; then
5072 case $build in
5073 *-*-mingw*)
5074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5075 *)
5076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5077 esac
5078 case $gcc_prog_ld in
5079 # Accept absolute paths.
5080 [\\/]* | [A-Za-z]:[\\/]*)
5081 LD="$gcc_prog_ld" ;;
5082 esac
5083 fi
5084 fi
5085
5086 # Check whether -static-libstdc++ -static-libgcc is supported.
5087 have_static_libs=no
5088 if test "$GCC" = yes; then
5089 saved_LDFLAGS="$LDFLAGS"
5090
5091 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5093 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5094 ac_ext=cpp
5095 ac_cpp='$CXXCPP $CPPFLAGS'
5096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099
5100
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103
5104 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5105 #error -static-libstdc++ not implemented
5106 #endif
5107 int main() {}
5108 _ACEOF
5109 if ac_fn_cxx_try_link "$LINENO"; then :
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5111 $as_echo "yes" >&6; }; have_static_libs=yes
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=c
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124
5125 LDFLAGS="$saved_LDFLAGS"
5126 fi
5127
5128
5129
5130
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_GNATBIND+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$GNATBIND"; then
5140 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5152 fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 GNATBIND=$ac_cv_prog_GNATBIND
5160 if test -n "$GNATBIND"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5162 $as_echo "$GNATBIND" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169 fi
5170 if test -z "$ac_cv_prog_GNATBIND"; then
5171 ac_ct_GNATBIND=$GNATBIND
5172 # Extract the first word of "gnatbind", so it can be a program name with args.
5173 set dummy gnatbind; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_GNATBIND"; then
5180 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 fi
5198 fi
5199 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5200 if test -n "$ac_ct_GNATBIND"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5202 $as_echo "$ac_ct_GNATBIND" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207
5208 if test "x$ac_ct_GNATBIND" = x; then
5209 GNATBIND="no"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 GNATBIND=$ac_ct_GNATBIND
5218 fi
5219 else
5220 GNATBIND="$ac_cv_prog_GNATBIND"
5221 fi
5222
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_GNATMAKE+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$GNATMAKE"; then
5232 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 fi
5250 fi
5251 GNATMAKE=$ac_cv_prog_GNATMAKE
5252 if test -n "$GNATMAKE"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5254 $as_echo "$GNATMAKE" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259
5260
5261 fi
5262 if test -z "$ac_cv_prog_GNATMAKE"; then
5263 ac_ct_GNATMAKE=$GNATMAKE
5264 # Extract the first word of "gnatmake", so it can be a program name with args.
5265 set dummy gnatmake; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$ac_ct_GNATMAKE"; then
5272 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5292 if test -n "$ac_ct_GNATMAKE"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5294 $as_echo "$ac_ct_GNATMAKE" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300 if test "x$ac_ct_GNATMAKE" = x; then
5301 GNATMAKE="no"
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307 ac_tool_warned=yes ;;
5308 esac
5309 GNATMAKE=$ac_ct_GNATMAKE
5310 fi
5311 else
5312 GNATMAKE="$ac_cv_prog_GNATMAKE"
5313 fi
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5316 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5317 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 cat >conftest.adb <<EOF
5321 procedure conftest is begin null; end conftest;
5322 EOF
5323 acx_cv_cc_gcc_supports_ada=no
5324 # There is a bug in old released versions of GCC which causes the
5325 # driver to exit successfully when the appropriate language module
5326 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5327 # Therefore we must check for the error message as well as an
5328 # unsuccessful exit.
5329 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5330 # given a .adb file, but produce no object file. So we must check
5331 # if an object file was really produced to guard against this.
5332 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5333 if test x"$errors" = x && test -f conftest.$ac_objext; then
5334 acx_cv_cc_gcc_supports_ada=yes
5335 fi
5336 rm -f conftest.*
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5339 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5340
5341 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5342 have_gnat=yes
5343 else
5344 have_gnat=no
5345 fi
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5348 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5349 if ${gcc_cv_prog_cmp_skip+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 echo abfoo >t1
5353 echo cdfoo >t2
5354 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5355 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5356 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5357 :
5358 else
5359 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5360 fi
5361 fi
5362 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5363 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5364 :
5365 else
5366 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5367 fi
5368 fi
5369 rm t1 t2
5370
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5373 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5374 do_compare="$gcc_cv_prog_cmp_skip"
5375
5376
5377
5378 # Check whether --enable-bootstrap was given.
5379 if test "${enable_bootstrap+set}" = set; then :
5380 enableval=$enable_bootstrap;
5381 else
5382 enable_bootstrap=default
5383 fi
5384
5385
5386 # Issue errors and warnings for invalid/strange bootstrap combinations.
5387 if test -r $srcdir/gcc/configure; then
5388 have_compiler=yes
5389 else
5390 have_compiler=no
5391 fi
5392
5393 case "$have_compiler:$host:$target:$enable_bootstrap" in
5394 *:*:*:no) ;;
5395
5396 # Default behavior. Enable bootstrap if we have a compiler
5397 # and we are in a native configuration.
5398 yes:$build:$build:default)
5399 enable_bootstrap=yes ;;
5400
5401 *:*:*:default)
5402 enable_bootstrap=no ;;
5403
5404 # We have a compiler and we are in a native configuration, bootstrap is ok
5405 yes:$build:$build:yes)
5406 ;;
5407
5408 # Other configurations, but we have a compiler. Assume the user knows
5409 # what he's doing.
5410 yes:*:*:yes)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5412 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5413 ;;
5414
5415 # No compiler: if they passed --enable-bootstrap explicitly, fail
5416 no:*:*:yes)
5417 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5418
5419 # Fail if wrong command line
5420 *)
5421 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5422 ;;
5423 esac
5424
5425 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5426 # C++98 compiler can still start the bootstrap.
5427 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5428 CXX="$CXX -std=gnu++98"
5429 fi
5430
5431 # Check whether --enable-pgo-build was given.
5432 if test "${enable_pgo_build+set}" = set; then :
5433 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5434 else
5435 enable_pgo_build=no
5436 fi
5437
5438
5439 # Issue errors and warnings for invalid/strange PGO build combinations.
5440 case "$have_compiler:$host:$target:$enable_pgo_build" in
5441 *:*:*:no) ;;
5442
5443 # Allow the PGO build only if we aren't building a compiler and
5444 # we are in a native configuration.
5445 no:$build:$build:yes | no:$build:$build:lto) ;;
5446
5447 # Disallow the PGO bootstrap if we are building a compiler.
5448 yes:*:*:yes | yes:*:*:lto)
5449 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5450
5451 *)
5452 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5453 ;;
5454 esac
5455
5456 if test "$enable_pgo_build" != "no"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5458 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5459 old_CFLAGS="$CFLAGS"
5460 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5461 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5462
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 int foo;
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468
5469 else
5470 PGO_BUILD_GEN_CFLAGS=
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 CFLAGS="$old_CFLAGS"
5474 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5476 $as_echo "yes" >&6; }
5477 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5482 fi
5483
5484 if test "$enable_pgo_build" = "lto"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5486 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5487 old_CFLAGS="$CFLAGS"
5488 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5489 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492 int foo;
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495
5496 else
5497 PGO_BUILD_LTO_CFLAGS=
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 CFLAGS="$old_CFLAGS"
5501 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 $as_echo "yes" >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5508 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5509 fi
5510 fi
5511 fi
5512
5513
5514
5515
5516 # Used for setting $lt_cv_objdir
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5518 $as_echo_n "checking for objdir... " >&6; }
5519 if ${lt_cv_objdir+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 rm -f .libs 2>/dev/null
5523 mkdir .libs 2>/dev/null
5524 if test -d .libs; then
5525 lt_cv_objdir=.libs
5526 else
5527 # MS-DOS does not allow filenames that begin with a dot.
5528 lt_cv_objdir=_libs
5529 fi
5530 rmdir .libs 2>/dev/null
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5533 $as_echo "$lt_cv_objdir" >&6; }
5534 objdir=$lt_cv_objdir
5535
5536
5537
5538
5539
5540 cat >>confdefs.h <<_ACEOF
5541 #define LT_OBJDIR "$lt_cv_objdir/"
5542 _ACEOF
5543
5544
5545
5546 # Check for GMP, MPFR and MPC
5547 gmplibs="-lmpc -lmpfr -lgmp"
5548 gmpinc=
5549 have_gmp=no
5550
5551 # Specify a location for mpc
5552 # check for this first so it ends up on the link line before mpfr.
5553
5554 # Check whether --with-mpc was given.
5555 if test "${with_mpc+set}" = set; then :
5556 withval=$with_mpc;
5557 fi
5558
5559
5560 # Check whether --with-mpc-include was given.
5561 if test "${with_mpc_include+set}" = set; then :
5562 withval=$with_mpc_include;
5563 fi
5564
5565
5566 # Check whether --with-mpc-lib was given.
5567 if test "${with_mpc_lib+set}" = set; then :
5568 withval=$with_mpc_lib;
5569 fi
5570
5571
5572 if test "x$with_mpc" != x; then
5573 gmplibs="-L$with_mpc/lib $gmplibs"
5574 gmpinc="-I$with_mpc/include $gmpinc"
5575 fi
5576 if test "x$with_mpc_include" != x; then
5577 gmpinc="-I$with_mpc_include $gmpinc"
5578 fi
5579 if test "x$with_mpc_lib" != x; then
5580 gmplibs="-L$with_mpc_lib $gmplibs"
5581 fi
5582 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5583 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5584 gmpinc='-I$$s/mpc/src '"$gmpinc"
5585 # Do not test the mpc version. Assume that it is sufficient, since
5586 # it is in the source tree, and the library has not been built yet
5587 # but it would be included on the link line in the version check below
5588 # hence making the test fail.
5589 have_gmp=yes
5590 fi
5591
5592 # Specify a location for mpfr
5593 # check for this first so it ends up on the link line before gmp.
5594
5595 # Check whether --with-mpfr-dir was given.
5596 if test "${with_mpfr_dir+set}" = set; then :
5597 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5598 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5599 fi
5600
5601
5602
5603 # Check whether --with-mpfr was given.
5604 if test "${with_mpfr+set}" = set; then :
5605 withval=$with_mpfr;
5606 fi
5607
5608
5609 # Check whether --with-mpfr-include was given.
5610 if test "${with_mpfr_include+set}" = set; then :
5611 withval=$with_mpfr_include;
5612 fi
5613
5614
5615 # Check whether --with-mpfr-lib was given.
5616 if test "${with_mpfr_lib+set}" = set; then :
5617 withval=$with_mpfr_lib;
5618 fi
5619
5620
5621 if test "x$with_mpfr" != x; then
5622 gmplibs="-L$with_mpfr/lib $gmplibs"
5623 gmpinc="-I$with_mpfr/include $gmpinc"
5624 fi
5625 if test "x$with_mpfr_include" != x; then
5626 gmpinc="-I$with_mpfr_include $gmpinc"
5627 fi
5628 if test "x$with_mpfr_lib" != x; then
5629 gmplibs="-L$with_mpfr_lib $gmplibs"
5630 fi
5631 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5632 # MPFR v3.1.0 moved the sources into a src sub-directory.
5633 if ! test -d ${srcdir}/mpfr/src; then
5634 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5635 fi
5636 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5637 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5638 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5639 # Do not test the mpfr version. Assume that it is sufficient, since
5640 # it is in the source tree, and the library has not been built yet
5641 # but it would be included on the link line in the version check below
5642 # hence making the test fail.
5643 have_gmp=yes
5644 fi
5645
5646 # Specify a location for gmp
5647
5648 # Check whether --with-gmp-dir was given.
5649 if test "${with_gmp_dir+set}" = set; then :
5650 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5651 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5652 fi
5653
5654
5655
5656 # Check whether --with-gmp was given.
5657 if test "${with_gmp+set}" = set; then :
5658 withval=$with_gmp;
5659 fi
5660
5661
5662 # Check whether --with-gmp-include was given.
5663 if test "${with_gmp_include+set}" = set; then :
5664 withval=$with_gmp_include;
5665 fi
5666
5667
5668 # Check whether --with-gmp-lib was given.
5669 if test "${with_gmp_lib+set}" = set; then :
5670 withval=$with_gmp_lib;
5671 fi
5672
5673
5674
5675 if test "x$with_gmp" != x; then
5676 gmplibs="-L$with_gmp/lib $gmplibs"
5677 gmpinc="-I$with_gmp/include $gmpinc"
5678 fi
5679 if test "x$with_gmp_include" != x; then
5680 gmpinc="-I$with_gmp_include $gmpinc"
5681 fi
5682 if test "x$with_gmp_lib" != x; then
5683 gmplibs="-L$with_gmp_lib $gmplibs"
5684 fi
5685 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5686 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5687 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5688 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5689 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5690 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5691 # Do not test the gmp version. Assume that it is sufficient, since
5692 # it is in the source tree, and the library has not been built yet
5693 # but it would be included on the link line in the version check below
5694 # hence making the test fail.
5695 have_gmp=yes
5696 fi
5697
5698 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5699 have_gmp=yes
5700 saved_CFLAGS="$CFLAGS"
5701 CFLAGS="$CFLAGS $gmpinc"
5702 # Check for the recommended and required versions of GMP.
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5704 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include "gmp.h"
5708 int
5709 main ()
5710 {
5711
5712 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5713 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5714 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5715 choke me
5716 #endif
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_compile "$LINENO"; then :
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <gmp.h>
5726 int
5727 main ()
5728 {
5729
5730 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5731 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5732 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5733 choke me
5734 #endif
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5745 $as_echo "buggy but acceptable" >&6; }
5746 fi
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }; have_gmp=no
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753
5754 # If we have GMP, check the MPFR version.
5755 if test x"$have_gmp" = xyes; then
5756 # Check for the recommended and required versions of MPFR.
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5758 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #include <gmp.h>
5762 #include <mpfr.h>
5763 int
5764 main ()
5765 {
5766
5767 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5768 choke me
5769 #endif
5770
5771 ;
5772 return 0;
5773 }
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <gmp.h>
5779 #include <mpfr.h>
5780 int
5781 main ()
5782 {
5783
5784 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5785 choke me
5786 #endif
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5794 $as_echo "yes" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5797 $as_echo "buggy but acceptable" >&6; }
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }; have_gmp=no
5803 fi
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 fi
5806
5807 # Check for the MPC header version.
5808 if test x"$have_gmp" = xyes ; then
5809 # Check for the recommended and required versions of MPC.
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5811 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #include <mpc.h>
5815 int
5816 main ()
5817 {
5818
5819 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5820 choke me
5821 #endif
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"; then :
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <mpc.h>
5831 int
5832 main ()
5833 {
5834
5835 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5836 choke me
5837 #endif
5838
5839 ;
5840 return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845 $as_echo "yes" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5848 $as_echo "buggy but acceptable" >&6; }
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }; have_gmp=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857
5858 # Now check the MPFR library.
5859 if test x"$have_gmp" = xyes; then
5860 saved_LIBS="$LIBS"
5861 LIBS="$LIBS $gmplibs"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5863 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <mpc.h>
5867 int
5868 main ()
5869 {
5870
5871 mpfr_t n;
5872 mpfr_t x;
5873 mpc_t c;
5874 int t;
5875 mpfr_init (n);
5876 mpfr_init (x);
5877 mpfr_atan2 (n, n, x, GMP_RNDN);
5878 mpfr_erfc (n, x, GMP_RNDN);
5879 mpfr_subnormalize (x, t, GMP_RNDN);
5880 mpfr_clear(n);
5881 mpfr_clear(x);
5882 mpc_init2 (c, 53);
5883 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5884 mpc_cosh (c, c, MPC_RNDNN);
5885 mpc_pow (c, c, c, MPC_RNDNN);
5886 mpc_acosh (c, c, MPC_RNDNN);
5887 mpc_clear (c);
5888
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 if ac_fn_c_try_link "$LINENO"; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 $as_echo "yes" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }; have_gmp=no
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS="$saved_LIBS"
5903 fi
5904
5905 CFLAGS="$saved_CFLAGS"
5906
5907 # The library versions listed in the error message below should match
5908 # the HARD-minimums enforced above.
5909 if test x$have_gmp != xyes; then
5910 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5911 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5912 their locations. Source code for these libraries can be found at
5913 their respective hosting sites as well as at
5914 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5915 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5916 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5917 make sure that you have installed both the libraries and the header
5918 files. They may be located in separate packages." "$LINENO" 5
5919 fi
5920 fi
5921
5922 # Flags needed for both GMP, MPFR and/or MPC.
5923
5924
5925
5926
5927
5928
5929
5930 # Libraries to use for stage1 or when not bootstrapping.
5931
5932 # Check whether --with-stage1-libs was given.
5933 if test "${with_stage1_libs+set}" = set; then :
5934 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5935 stage1_libs=
5936 else
5937 stage1_libs=$withval
5938 fi
5939 else
5940 stage1_libs=
5941 fi
5942
5943
5944
5945 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5946 # default is yes if gcc is being built; no otherwise. The reason for
5947 # this default is that gdb is sometimes linked against GNU Source
5948 # Highlight, which is a shared library that uses C++ exceptions. In
5949 # this case, -static-libstdc++ will cause crashes.
5950
5951 # Check whether --with-static-standard-libraries was given.
5952 if test "${with_static_standard_libraries+set}" = set; then :
5953 withval=$with_static_standard_libraries;
5954 else
5955 with_static_standard_libraries=auto
5956 fi
5957
5958 if test "$with_static_standard_libraries" = auto; then
5959 with_static_standard_libraries=$have_compiler
5960 fi
5961
5962 # Linker flags to use for stage1 or when not bootstrapping.
5963
5964 # Check whether --with-stage1-ldflags was given.
5965 if test "${with_stage1_ldflags+set}" = set; then :
5966 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5967 stage1_ldflags=
5968 else
5969 stage1_ldflags=$withval
5970 fi
5971 else
5972 stage1_ldflags=
5973 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5974 # if supported. But if the user explicitly specified the libraries to use,
5975 # trust that they are doing what they want.
5976 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5977 -a "$have_static_libs" = yes; then
5978 stage1_ldflags="-static-libstdc++ -static-libgcc"
5979 fi
5980 fi
5981
5982
5983
5984 # Libraries to use for stage2 and later builds.
5985
5986 # Check whether --with-boot-libs was given.
5987 if test "${with_boot_libs+set}" = set; then :
5988 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5989 poststage1_libs=
5990 else
5991 poststage1_libs=$withval
5992 fi
5993 else
5994 poststage1_libs=
5995 fi
5996
5997
5998
5999 # Linker flags to use for stage2 and later builds.
6000
6001 # Check whether --with-boot-ldflags was given.
6002 if test "${with_boot_ldflags+set}" = set; then :
6003 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6004 poststage1_ldflags=
6005 else
6006 poststage1_ldflags=$withval
6007 fi
6008 else
6009 poststage1_ldflags=
6010 # In stages 2 and 3, default to linking libstdc++ and libgcc
6011 # statically. But if the user explicitly specified the libraries to
6012 # use, trust that they are doing what they want.
6013 if test "$poststage1_libs" = ""; then
6014 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6015 fi
6016 fi
6017
6018
6019
6020 # GCC GRAPHITE dependency isl.
6021 # Basic setup is inlined here, actual checks are in config/isl.m4
6022
6023
6024 # Check whether --with-isl was given.
6025 if test "${with_isl+set}" = set; then :
6026 withval=$with_isl;
6027 fi
6028
6029
6030 # Treat --without-isl as a request to disable
6031 # GRAPHITE support and skip all following checks.
6032 if test "x$with_isl" != "xno"; then
6033 # Check for isl
6034
6035
6036 # Check whether --with-isl-include was given.
6037 if test "${with_isl_include+set}" = set; then :
6038 withval=$with_isl_include;
6039 fi
6040
6041
6042 # Check whether --with-isl-lib was given.
6043 if test "${with_isl_lib+set}" = set; then :
6044 withval=$with_isl_lib;
6045 fi
6046
6047
6048 # Check whether --enable-isl-version-check was given.
6049 if test "${enable_isl_version_check+set}" = set; then :
6050 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6051 else
6052 ENABLE_ISL_CHECK=yes
6053 fi
6054
6055
6056 # Initialize isllibs and islinc.
6057 case $with_isl in
6058 no)
6059 isllibs=
6060 islinc=
6061 ;;
6062 "" | yes)
6063 ;;
6064 *)
6065 isllibs="-L$with_isl/lib"
6066 islinc="-I$with_isl/include"
6067 ;;
6068 esac
6069 if test "x${with_isl_include}" != x ; then
6070 islinc="-I$with_isl_include"
6071 fi
6072 if test "x${with_isl_lib}" != x; then
6073 isllibs="-L$with_isl_lib"
6074 fi
6075 if test "x${islinc}" = x && test "x${isllibs}" = x \
6076 && test -d ${srcdir}/isl; then
6077 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6078 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6079 ENABLE_ISL_CHECK=no
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6081 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6082 fi
6083
6084 isllibs="${isllibs} -lisl"
6085
6086
6087
6088 if test "${ENABLE_ISL_CHECK}" = yes ; then
6089 _isl_saved_CFLAGS=$CFLAGS
6090 _isl_saved_LDFLAGS=$LDFLAGS
6091 _isl_saved_LIBS=$LIBS
6092
6093 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6094 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6095 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6098 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #include <isl/schedule.h>
6102 int
6103 main ()
6104 {
6105 isl_options_set_schedule_serialize_sccs (NULL, 0);
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_link "$LINENO"; then :
6111 gcc_cv_isl=yes
6112 else
6113 gcc_cv_isl=no
6114 fi
6115 rm -f core conftest.err conftest.$ac_objext \
6116 conftest$ac_exeext conftest.$ac_ext
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6118 $as_echo "$gcc_cv_isl" >&6; }
6119
6120 if test "${gcc_cv_isl}" = no ; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6122 $as_echo "required isl version is 0.15 or later" >&6; }
6123 fi
6124
6125 CFLAGS=$_isl_saved_CFLAGS
6126 LDFLAGS=$_isl_saved_LDFLAGS
6127 LIBS=$_isl_saved_LIBS
6128 fi
6129
6130
6131
6132
6133
6134
6135 if test "x${with_isl}" = xno; then
6136 graphite_requested=no
6137 elif test "x${with_isl}" != x \
6138 || test "x${with_isl_include}" != x \
6139 || test "x${with_isl_lib}" != x ; then
6140 graphite_requested=yes
6141 else
6142 graphite_requested=no
6143 fi
6144
6145
6146
6147 if test "${gcc_cv_isl}" = no ; then
6148 isllibs=
6149 islinc=
6150 fi
6151
6152 if test "${graphite_requested}" = yes \
6153 && test "x${isllibs}" = x \
6154 && test "x${islinc}" = x ; then
6155
6156 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6157 fi
6158
6159
6160 fi
6161
6162 # If the isl check failed, disable builds of in-tree variant of isl
6163 if test "x$with_isl" = xno ||
6164 test "x$gcc_cv_isl" = xno; then
6165 noconfigdirs="$noconfigdirs isl"
6166 islinc=
6167 fi
6168
6169
6170
6171
6172 # Check for LTO support.
6173 # Check whether --enable-lto was given.
6174 if test "${enable_lto+set}" = set; then :
6175 enableval=$enable_lto; enable_lto=$enableval
6176 else
6177 enable_lto=yes; default_enable_lto=yes
6178 fi
6179
6180
6181
6182
6183
6184 target_elf=no
6185 case $target in
6186 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6187 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6188 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6189 nvptx-*-none)
6190 target_elf=no
6191 ;;
6192 *)
6193 target_elf=yes
6194 ;;
6195 esac
6196
6197 if test $target_elf = yes; then :
6198 # ELF platforms build the lto-plugin always.
6199 build_lto_plugin=yes
6200
6201 else
6202 if test x"$default_enable_lto" = x"yes" ; then
6203 case $target in
6204 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6205 # On other non-ELF platforms, LTO has yet to be validated.
6206 *) enable_lto=no ;;
6207 esac
6208 else
6209 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6210 # It would also be nice to check the binutils support, but we don't
6211 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6212 # warn during gcc/ subconfigure; unless you're bootstrapping with
6213 # -flto it won't be needed until after installation anyway.
6214 case $target in
6215 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6216 *) if test x"$enable_lto" = x"yes"; then
6217 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6218 fi
6219 ;;
6220 esac
6221 fi
6222 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6223 # Build it unless LTO was explicitly disabled.
6224 case $target in
6225 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6226 *) ;;
6227 esac
6228
6229 fi
6230
6231
6232 # Check whether --enable-linker-plugin-configure-flags was given.
6233 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6234 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6235 else
6236 extra_linker_plugin_configure_flags=
6237 fi
6238
6239
6240 # Check whether --enable-linker-plugin-flags was given.
6241 if test "${enable_linker_plugin_flags+set}" = set; then :
6242 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6243 else
6244 extra_linker_plugin_flags=
6245 fi
6246
6247
6248
6249 # Enable --enable-host-shared.
6250 # Checked early to determine whether jit is an 'all' language
6251 # Check whether --enable-host-shared was given.
6252 if test "${enable_host_shared+set}" = set; then :
6253 enableval=$enable_host_shared; host_shared=$enableval
6254 else
6255 host_shared=no
6256 fi
6257
6258
6259
6260 # By default, C and C++ are the only stage 1 languages.
6261 stage1_languages=,c,
6262
6263 # Target libraries that we bootstrap.
6264 bootstrap_target_libs=,target-libgcc,
6265
6266 # Figure out what language subdirectories are present.
6267 # Look if the user specified --enable-languages="..."; if not, use
6268 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6269 # go away some day.
6270 # NB: embedded tabs in this IF block -- do not untabify
6271 if test -d ${srcdir}/gcc; then
6272 if test x"${enable_languages+set}" != xset; then
6273 if test x"${LANGUAGES+set}" = xset; then
6274 enable_languages="${LANGUAGES}"
6275 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6276 else
6277 enable_languages=default
6278 fi
6279 else
6280 if test x"${enable_languages}" = x ||
6281 test x"${enable_languages}" = xyes;
6282 then
6283 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6284 exit 1
6285 fi
6286 fi
6287 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6288
6289 # 'f95' is the old name for the 'fortran' language. We issue a warning
6290 # and make the substitution.
6291 case ,${enable_languages}, in
6292 *,f95,*)
6293 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6294 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6295 ;;
6296 esac
6297
6298 # If bootstrapping, C++ must be enabled.
6299 case ",$enable_languages,:$enable_bootstrap" in
6300 *,c++,*:*) ;;
6301 *:yes)
6302 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6303 enable_languages="${enable_languages},c++"
6304 else
6305 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6306 fi
6307 ;;
6308 esac
6309
6310 # First scan to see if an enabled language requires some other language.
6311 # We assume that a given config-lang.in will list all the language
6312 # front ends it requires, even if some are required indirectly.
6313 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6314 case ${lang_frag} in
6315 ..) ;;
6316 # The odd quoting in the next line works around
6317 # an apparent bug in bash 1.12 on linux.
6318 ${srcdir}/gcc/[*]/config-lang.in) ;;
6319 *)
6320 # From the config-lang.in, get $language, $lang_requires, and
6321 # $lang_requires_boot_languages.
6322 language=
6323 lang_requires=
6324 lang_requires_boot_languages=
6325 # set srcdir during sourcing lang_frag to the gcc dir.
6326 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6327 # polutes this shell
6328 saved_srcdir=${srcdir}
6329 srcdir=${srcdir}/gcc . ${lang_frag}
6330 srcdir=${saved_srcdir}
6331 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6332 case ,${enable_languages}, in
6333 *,$other,*) ;;
6334 *,default,*) ;;
6335 *,all,*) ;;
6336 *,$language,*)
6337 echo " \`$other' language required by \`$language'; enabling" 1>&2
6338 enable_languages="${enable_languages},${other}"
6339 ;;
6340 esac
6341 done
6342 for other in ${lang_requires_boot_languages} ; do
6343 if test "$other" != "c"; then
6344 case ,${enable_stage1_languages}, in
6345 *,$other,*) ;;
6346 *,default,*) ;;
6347 *,all,*) ;;
6348 *)
6349 case ,${enable_languages}, in
6350 *,$language,*)
6351 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6352 enable_stage1_languages="$enable_stage1_languages,${other}"
6353 ;;
6354 esac
6355 ;;
6356 esac
6357 fi
6358 done
6359 ;;
6360 esac
6361 done
6362
6363 new_enable_languages=,c,
6364
6365 # If LTO is enabled, add the LTO front end.
6366 if test "$enable_lto" = "yes" ; then
6367 case ,${enable_languages}, in
6368 *,lto,*) ;;
6369 *) enable_languages="${enable_languages},lto" ;;
6370 esac
6371 if test "${build_lto_plugin}" = "yes" ; then
6372 configdirs="$configdirs lto-plugin"
6373 fi
6374 fi
6375
6376 # If we're building an offloading compiler, add the LTO front end.
6377 if test x"$enable_as_accelerator_for" != x ; then
6378 case ,${enable_languages}, in
6379 *,lto,*) ;;
6380 *) enable_languages="${enable_languages},lto" ;;
6381 esac
6382 fi
6383
6384 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6385 potential_languages=,c,
6386
6387 enabled_target_libs=
6388 disabled_target_libs=
6389
6390 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6391 case ${lang_frag} in
6392 ..) ;;
6393 # The odd quoting in the next line works around
6394 # an apparent bug in bash 1.12 on linux.
6395 ${srcdir}/gcc/[*]/config-lang.in) ;;
6396 *)
6397 # From the config-lang.in, get $language, $target_libs,
6398 # $lang_dirs, $boot_language, and $build_by_default
6399 language=
6400 target_libs=
6401 lang_dirs=
6402 subdir_requires=
6403 boot_language=no
6404 build_by_default=yes
6405 # set srcdir during sourcing. See above about save & restore
6406 saved_srcdir=${srcdir}
6407 srcdir=${srcdir}/gcc . ${lang_frag}
6408 srcdir=${saved_srcdir}
6409 if test x${language} = x; then
6410 echo "${lang_frag} doesn't set \$language." 1>&2
6411 exit 1
6412 fi
6413
6414 if test "$language" = "c++"; then
6415 boot_language=yes
6416 fi
6417
6418 add_this_lang=no
6419 # C is always enabled, so no need to add it again
6420 if test "$language" != "c"; then
6421 case ,${enable_languages}, in
6422 *,${language},*)
6423 # Language was explicitly selected; include it
6424 add_this_lang=yes
6425 ;;
6426 *,all,*)
6427 # All languages are enabled
6428 add_this_lang=all
6429 ;;
6430 *,default,*)
6431 # 'default' was selected, select it if it is a default language
6432 add_this_lang=${build_by_default}
6433 ;;
6434 esac
6435 fi
6436
6437 # Disable languages that need other directories if these aren't available.
6438 for i in $subdir_requires; do
6439 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6440 case ${add_this_lang} in
6441 yes)
6442 # Specifically requested language; tell them.
6443 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6444 ;;
6445 all)
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6447 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6448 add_this_lang=unsupported
6449 ;;
6450 *)
6451 # Silently disable.
6452 add_this_lang=unsupported
6453 ;;
6454 esac
6455 done
6456
6457 # Disable Ada if no preexisting GNAT is available.
6458 case ${add_this_lang}:${language}:${have_gnat} in
6459 yes:ada:no)
6460 # Specifically requested language; tell them.
6461 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6462 ;;
6463 all:ada:no)
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6465 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6466 add_this_lang=unsupported
6467 ;;
6468 *:ada:no)
6469 # Silently disable.
6470 add_this_lang=unsupported
6471 ;;
6472 esac
6473
6474 # Disable jit if -enable-host-shared not specified
6475 case ${add_this_lang}:${language}:${host_shared} in
6476 yes:jit:no)
6477 # PR jit/64780: explicitly specify --enable-host-shared
6478 as_fn_error $? "
6479 Enabling language \"jit\" requires --enable-host-shared.
6480
6481 --enable-host-shared typically slows the rest of the compiler down by
6482 a few %, so you must explicitly enable it.
6483
6484 If you want to build both the jit and the regular compiler, it is often
6485 best to do this via two separate configure/builds, in separate
6486 directories, to avoid imposing the performance cost of
6487 --enable-host-shared on the regular compiler." "$LINENO" 5
6488 ;;
6489 all:jit:no)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6491 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6492 add_this_lang=unsupported
6493 ;;
6494 *:jit:no)
6495 # Silently disable.
6496 add_this_lang=unsupported
6497 ;;
6498 esac
6499
6500 # Disable a language that is unsupported by the target.
6501 case "${add_this_lang}: $unsupported_languages " in
6502 no:*) ;;
6503 unsupported:*) ;;
6504 *:*" $language "*)
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6506 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6507 add_this_lang=unsupported
6508 ;;
6509 esac
6510
6511 case $add_this_lang in
6512 unsupported)
6513 # Remove language-dependent dirs.
6514 disabled_target_libs="$disabled_target_libs $target_libs"
6515 noconfigdirs="$noconfigdirs $lang_dirs"
6516 ;;
6517 no)
6518 # Remove language-dependent dirs; still show language as supported.
6519 disabled_target_libs="$disabled_target_libs $target_libs"
6520 noconfigdirs="$noconfigdirs $lang_dirs"
6521 potential_languages="${potential_languages}${language},"
6522 ;;
6523 all|yes)
6524 new_enable_languages="${new_enable_languages}${language},"
6525 potential_languages="${potential_languages}${language},"
6526 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6527 enabled_target_libs="$enabled_target_libs $target_libs"
6528 case "${boot_language}:,$enable_stage1_languages," in
6529 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6530 # Add to (comma-separated) list of stage 1 languages.
6531 case ",$stage1_languages," in
6532 *,$language,* | ,yes, | ,all,) ;;
6533 *) stage1_languages="${stage1_languages}${language}," ;;
6534 esac
6535 # We need to bootstrap any supporting libraries.
6536 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6537 ;;
6538 esac
6539 ;;
6540 esac
6541 ;;
6542 esac
6543 done
6544
6545 # Add target libraries which are only needed for disabled languages
6546 # to noconfigdirs.
6547 if test -n "$disabled_target_libs"; then
6548 for dir in $disabled_target_libs; do
6549 case " $enabled_target_libs " in
6550 *" ${dir} "*) ;;
6551 *) noconfigdirs="$noconfigdirs $dir" ;;
6552 esac
6553 done
6554 fi
6555
6556 # Check whether --enable-stage1-languages was given.
6557 if test "${enable_stage1_languages+set}" = set; then :
6558 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6559 ,no,|,,)
6560 # Set it to something that will have no effect in the loop below
6561 enable_stage1_languages=c ;;
6562 ,yes,)
6563 enable_stage1_languages=`echo $new_enable_languages | \
6564 sed -e "s/^,//" -e "s/,$//" ` ;;
6565 *,all,*)
6566 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6567 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6568 esac
6569
6570 # Add "good" languages from enable_stage1_languages to stage1_languages,
6571 # while "bad" languages go in missing_languages. Leave no duplicates.
6572 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6573 case $potential_languages in
6574 *,$i,*)
6575 case $stage1_languages in
6576 *,$i,*) ;;
6577 *) stage1_languages="$stage1_languages$i," ;;
6578 esac ;;
6579 *)
6580 case $missing_languages in
6581 *,$i,*) ;;
6582 *) missing_languages="$missing_languages$i," ;;
6583 esac ;;
6584 esac
6585 done
6586 fi
6587
6588
6589 # Remove leading/trailing commas that were added for simplicity
6590 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6591 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6592 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6593 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6594
6595 if test "x$missing_languages" != x; then
6596 as_fn_error $? "
6597 The following requested languages could not be built: ${missing_languages}
6598 Supported languages are: ${potential_languages}" "$LINENO" 5
6599 fi
6600 if test "x$new_enable_languages" != "x$enable_languages"; then
6601 echo The following languages will be built: ${new_enable_languages}
6602 enable_languages="$new_enable_languages"
6603 fi
6604
6605
6606 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6607 fi
6608
6609 # Handle --disable-<component> generically.
6610 for dir in $configdirs $build_configdirs $target_configdirs ; do
6611 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6612 varname=`echo $dirname | sed -e s/+/_/g`
6613 if eval test x\${enable_${varname}} "=" xno ; then
6614 noconfigdirs="$noconfigdirs $dir"
6615 fi
6616 done
6617
6618 # Check for Boehm's garbage collector
6619 # Check whether --enable-objc-gc was given.
6620 if test "${enable_objc_gc+set}" = set; then :
6621 enableval=$enable_objc_gc;
6622 fi
6623
6624
6625 # Check whether --with-target-bdw-gc was given.
6626 if test "${with_target_bdw_gc+set}" = set; then :
6627 withval=$with_target_bdw_gc;
6628 fi
6629
6630
6631 # Check whether --with-target-bdw-gc-include was given.
6632 if test "${with_target_bdw_gc_include+set}" = set; then :
6633 withval=$with_target_bdw_gc_include;
6634 fi
6635
6636
6637 # Check whether --with-target-bdw-gc-lib was given.
6638 if test "${with_target_bdw_gc_lib+set}" = set; then :
6639 withval=$with_target_bdw_gc_lib;
6640 fi
6641
6642
6643 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6645 $as_echo_n "checking for bdw garbage collector... " >&6; }
6646 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6648 $as_echo "using bdw-gc in default locations" >&6; }
6649 else
6650 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6651 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6652 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6653 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6656 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6657 fi
6658 fi
6659 esac
6660
6661 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6662 case ,${enable_languages}, in
6663 *,c++,*)
6664 # Disable libitm, libsanitizer if we're not building libstdc++
6665 case "${noconfigdirs}" in
6666 *target-libstdc++-v3*)
6667 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6668 ;;
6669 *) ;;
6670 esac
6671 ;;
6672 *)
6673 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6674 ;;
6675 esac
6676
6677 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6678 # $build_configdirs and $target_configdirs.
6679 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6680
6681 notsupp=""
6682 for dir in . $skipdirs $noconfigdirs ; do
6683 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6684 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6685 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6686 if test -r $srcdir/$dirname/configure ; then
6687 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6688 true
6689 else
6690 notsupp="$notsupp $dir"
6691 fi
6692 fi
6693 fi
6694 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6695 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6696 if test -r $srcdir/$dirname/configure ; then
6697 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6698 true
6699 else
6700 notsupp="$notsupp $dir"
6701 fi
6702 fi
6703 fi
6704 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6705 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6706 if test -r $srcdir/$dirname/configure ; then
6707 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6708 true
6709 else
6710 notsupp="$notsupp $dir"
6711 fi
6712 fi
6713 fi
6714 done
6715
6716 # Quietly strip out all directories which aren't configurable in this tree.
6717 # This relies on all configurable subdirectories being autoconfiscated, which
6718 # is now the case.
6719 build_configdirs_all="$build_configdirs"
6720 build_configdirs=
6721 for i in ${build_configdirs_all} ; do
6722 j=`echo $i | sed -e s/build-//g`
6723 if test -f ${srcdir}/$j/configure ; then
6724 build_configdirs="${build_configdirs} $i"
6725 fi
6726 done
6727
6728 configdirs_all="$configdirs"
6729 configdirs=
6730 for i in ${configdirs_all} ; do
6731 if test -f ${srcdir}/$i/configure ; then
6732 configdirs="${configdirs} $i"
6733 fi
6734 done
6735
6736 target_configdirs_all="$target_configdirs"
6737 target_configdirs=
6738 for i in ${target_configdirs_all} ; do
6739 j=`echo $i | sed -e s/target-//g`
6740 if test -f ${srcdir}/$j/configure ; then
6741 target_configdirs="${target_configdirs} $i"
6742 fi
6743 done
6744
6745 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6746 # so we have to add it after the preceding checks.
6747 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6748 then
6749 case " $configdirs " in
6750 *" libiberty "*)
6751 # If we can build libiberty, we can also build libiberty-linker-plugin.
6752 configdirs="$configdirs libiberty-linker-plugin"
6753 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6754 --with-libiberty=../libiberty-linker-plugin";;
6755 *)
6756 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6757 esac
6758 fi
6759
6760 # Sometimes we have special requirements for the host libiberty.
6761 extra_host_libiberty_configure_flags=
6762 extra_host_zlib_configure_flags=
6763 case " $configdirs " in
6764 *" lto-plugin "* | *" libcc1 "*)
6765 # When these are to be built as shared libraries, the same applies to
6766 # libiberty.
6767 extra_host_libiberty_configure_flags=--enable-shared
6768 ;;
6769 *" bfd "*)
6770 # When bfd is to be built as a shared library, the same applies to
6771 # zlib.
6772 if test "$enable_shared" = "yes"; then
6773 extra_host_zlib_configure_flags=--enable-host-shared
6774 fi
6775 ;;
6776 esac
6777
6778
6779
6780 # Produce a warning message for the subdirs we can't configure.
6781 # This isn't especially interesting in the Cygnus tree, but in the individual
6782 # FSF releases, it's important to let people know when their machine isn't
6783 # supported by the one or two programs in a package.
6784
6785 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6786 # If $appdirs is non-empty, at least one of those directories must still
6787 # be configured, or we error out. (E.g., if the gas release supports a
6788 # specified target in some subdirs but not the gas subdir, we shouldn't
6789 # pretend that all is well.)
6790 if test -n "$appdirs" ; then
6791 for dir in $appdirs ; do
6792 if test -r $dir/Makefile.in ; then
6793 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6794 appdirs=""
6795 break
6796 fi
6797 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6798 appdirs=""
6799 break
6800 fi
6801 fi
6802 done
6803 if test -n "$appdirs" ; then
6804 echo "*** This configuration is not supported by this package." 1>&2
6805 exit 1
6806 fi
6807 fi
6808 # Okay, some application will build, or we don't care to check. Still
6809 # notify of subdirs not getting built.
6810 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6811 echo " ${notsupp}" 1>&2
6812 echo " (Any other directories should still work fine.)" 1>&2
6813 fi
6814
6815 case "$host" in
6816 *msdosdjgpp*)
6817 enable_gdbtk=no ;;
6818 esac
6819
6820 # To find our prefix, in gcc_cv_tool_prefix.
6821
6822 # The user is always right.
6823 if test "${PATH_SEPARATOR+set}" != set; then
6824 echo "#! /bin/sh" >conf$$.sh
6825 echo "exit 0" >>conf$$.sh
6826 chmod +x conf$$.sh
6827 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6828 PATH_SEPARATOR=';'
6829 else
6830 PATH_SEPARATOR=:
6831 fi
6832 rm -f conf$$.sh
6833 fi
6834
6835
6836 get_gcc_base_ver="cat"
6837
6838 # Check whether --with-gcc-major-version-only was given.
6839 if test "${with_gcc_major_version_only+set}" = set; then :
6840 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6841 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6842 fi
6843
6844 fi
6845
6846
6847
6848
6849
6850
6851 if test "x$exec_prefix" = xNONE; then
6852 if test "x$prefix" = xNONE; then
6853 gcc_cv_tool_prefix=$ac_default_prefix
6854 else
6855 gcc_cv_tool_prefix=$prefix
6856 fi
6857 else
6858 gcc_cv_tool_prefix=$exec_prefix
6859 fi
6860
6861 # If there is no compiler in the tree, use the PATH only. In any
6862 # case, if there is no compiler in the tree nobody should use
6863 # AS_FOR_TARGET and LD_FOR_TARGET.
6864 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6865 if test x$with_gcc_major_version_only = xyes ; then
6866 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6867 else
6868 gcc_version=`cat $srcdir/gcc/BASE-VER`
6869 fi
6870 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6871 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6872 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6873 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6874 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6875 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6876 else
6877 gcc_cv_tool_dirs=
6878 fi
6879
6880 if test x$build = x$target && test -n "$md_exec_prefix"; then
6881 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6882 fi
6883
6884
6885
6886 copy_dirs=
6887
6888
6889 # Check whether --with-build-sysroot was given.
6890 if test "${with_build_sysroot+set}" = set; then :
6891 withval=$with_build_sysroot; if test x"$withval" != x ; then
6892 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6893 fi
6894 else
6895 SYSROOT_CFLAGS_FOR_TARGET=
6896 fi
6897
6898
6899
6900
6901 # Check whether --with-debug-prefix-map was given.
6902 if test "${with_debug_prefix_map+set}" = set; then :
6903 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6904 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6905 for debug_map in $withval; do
6906 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6907 done
6908 fi
6909 else
6910 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6911 fi
6912
6913
6914
6915 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6916 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6917 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6918 # We want to ensure that TARGET libraries (which we know are built with
6919 # gcc) are built with "-O2 -g", so include those options when setting
6920 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6921 if test "x$CFLAGS_FOR_TARGET" = x; then
6922 if test "x${is_cross_compiler}" = xyes; then
6923 CFLAGS_FOR_TARGET="-g -O2"
6924 else
6925 CFLAGS_FOR_TARGET=$CFLAGS
6926 case " $CFLAGS " in
6927 *" -O2 "*) ;;
6928 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6929 esac
6930 case " $CFLAGS " in
6931 *" -g "* | *" -g3 "*) ;;
6932 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6933 esac
6934 fi
6935 fi
6936
6937
6938 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6939 if test "x${is_cross_compiler}" = xyes; then
6940 CXXFLAGS_FOR_TARGET="-g -O2"
6941 else
6942 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6943 case " $CXXFLAGS " in
6944 *" -O2 "*) ;;
6945 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6946 esac
6947 case " $CXXFLAGS " in
6948 *" -g "* | *" -g3 "*) ;;
6949 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6950 esac
6951 fi
6952 fi
6953
6954
6955
6956
6957 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6958 # the named directory are copied to $(tooldir)/sys-include.
6959 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6960 if test x${is_cross_compiler} = xno ; then
6961 echo 1>&2 '***' --with-headers is only supported when cross compiling
6962 exit 1
6963 fi
6964 if test x"${with_headers}" != xyes ; then
6965 x=${gcc_cv_tool_prefix}
6966 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6967 fi
6968 fi
6969
6970 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6971 # the name directories are copied to $(tooldir)/lib. Multiple directories
6972 # are permitted.
6973 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6974 if test x${is_cross_compiler} = xno ; then
6975 echo 1>&2 '***' --with-libs is only supported when cross compiling
6976 exit 1
6977 fi
6978 if test x"${with_libs}" != xyes ; then
6979 # Copy the libraries in reverse order, so that files in the first named
6980 # library override files in subsequent libraries.
6981 x=${gcc_cv_tool_prefix}
6982 for l in ${with_libs}; do
6983 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6984 done
6985 fi
6986 fi
6987
6988 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6989 #
6990 # This is done by determining whether or not the appropriate directory
6991 # is available, and by checking whether or not specific configurations
6992 # have requested that this magic not happen.
6993 #
6994 # The command line options always override the explicit settings in
6995 # configure.ac, and the settings in configure.ac override this magic.
6996 #
6997 # If the default for a toolchain is to use GNU as and ld, and you don't
6998 # want to do that, then you should use the --without-gnu-as and
6999 # --without-gnu-ld options for the configure script. Similarly, if
7000 # the default is to use the included zlib and you don't want to do that,
7001 # you should use the --with-system-zlib option for the configure script.
7002
7003 if test x${use_gnu_as} = x &&
7004 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7005 with_gnu_as=yes
7006 extra_host_args="$extra_host_args --with-gnu-as"
7007 fi
7008
7009 if test x${use_gnu_ld} = x &&
7010 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7011 with_gnu_ld=yes
7012 extra_host_args="$extra_host_args --with-gnu-ld"
7013 fi
7014
7015 if test x${use_included_zlib} = x &&
7016 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7017 :
7018 else
7019 with_system_zlib=yes
7020 extra_host_args="$extra_host_args --with-system-zlib"
7021 fi
7022
7023 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7024 # can detect this case.
7025
7026 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7027 with_newlib=yes
7028 extra_host_args="$extra_host_args --with-newlib"
7029 fi
7030
7031 # Handle ${copy_dirs}
7032 set fnord ${copy_dirs}
7033 shift
7034 while test $# != 0 ; do
7035 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7036 :
7037 else
7038 echo Copying $1 to $2
7039
7040 # Use the install script to create the directory and all required
7041 # parent directories.
7042 if test -d $2 ; then
7043 :
7044 else
7045 echo >config.temp
7046 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7047 fi
7048
7049 # Copy the directory, assuming we have tar.
7050 # FIXME: Should we use B in the second tar? Not all systems support it.
7051 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7052
7053 # It is the responsibility of the user to correctly adjust all
7054 # symlinks. If somebody can figure out how to handle them correctly
7055 # here, feel free to add the code.
7056
7057 echo $1 > $2/COPIED
7058 fi
7059 shift; shift
7060 done
7061
7062 # Determine a target-dependent exec_prefix that the installed
7063 # gcc will search in. Keep this list sorted by triplet, with
7064 # the *-*-osname triplets last.
7065 md_exec_prefix=
7066 case "${target}" in
7067 i[34567]86-pc-msdosdjgpp*)
7068 md_exec_prefix=/dev/env/DJDIR/bin
7069 ;;
7070 *-*-hpux* | \
7071 *-*-nto-qnx* | \
7072 *-*-solaris2*)
7073 md_exec_prefix=/usr/ccs/bin
7074 ;;
7075 esac
7076
7077 extra_arflags_for_target=
7078 extra_nmflags_for_target=
7079 extra_ranlibflags_for_target=
7080 target_makefile_frag=/dev/null
7081 case "${target}" in
7082 spu-*-*)
7083 target_makefile_frag="config/mt-spu"
7084 ;;
7085 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7086 target_makefile_frag="config/mt-sde"
7087 ;;
7088 mipsisa*-*-elfoabi*)
7089 target_makefile_frag="config/mt-mips-elfoabi"
7090 ;;
7091 mips*-*-*linux* | mips*-*-gnu*)
7092 target_makefile_frag="config/mt-mips-gnu"
7093 ;;
7094 nios2-*-elf*)
7095 target_makefile_frag="config/mt-nios2-elf"
7096 ;;
7097 *-*-linux-android*)
7098 target_makefile_frag="config/mt-android"
7099 ;;
7100 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7101 target_makefile_frag="config/mt-gnu"
7102 ;;
7103 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7104 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7105 # commands to handle both 32-bit and 64-bit objects. These flags are
7106 # harmless if we're using GNU nm or ar.
7107 extra_arflags_for_target=" -X32_64"
7108 extra_nmflags_for_target=" -B -X32_64"
7109 ;;
7110 esac
7111
7112 alphaieee_frag=/dev/null
7113 case $target in
7114 alpha*-*-*)
7115 # This just makes sure to use the -mieee option to build target libs.
7116 # This should probably be set individually by each library.
7117 alphaieee_frag="config/mt-alphaieee"
7118 ;;
7119 esac
7120
7121 # If --enable-target-optspace always use -Os instead of -O2 to build
7122 # the target libraries, similarly if it is not specified, use -Os
7123 # on selected platforms.
7124 ospace_frag=/dev/null
7125 case "${enable_target_optspace}:${target}" in
7126 yes:*)
7127 ospace_frag="config/mt-ospace"
7128 ;;
7129 :d30v-*)
7130 ospace_frag="config/mt-d30v"
7131 ;;
7132 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7133 ospace_frag="config/mt-ospace"
7134 ;;
7135 no:* | :*)
7136 ;;
7137 *)
7138 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7139 ;;
7140 esac
7141
7142 # Some systems (e.g., one of the i386-aix systems the gas testers are
7143 # using) don't handle "\$" correctly, so don't use it here.
7144 tooldir='${exec_prefix}'/${target_noncanonical}
7145 build_tooldir=${tooldir}
7146
7147 # Create a .gdbinit file which runs the one in srcdir
7148 # and tells GDB to look there for source files.
7149
7150 if test -r ${srcdir}/.gdbinit ; then
7151 case ${srcdir} in
7152 .) ;;
7153 *) cat > ./.gdbinit <<EOF
7154 # ${NO_EDIT}
7155 dir ${srcdir}
7156 dir .
7157 source ${srcdir}/.gdbinit
7158 EOF
7159 ;;
7160 esac
7161 fi
7162
7163 # Make sure that the compiler is able to generate an executable. If it
7164 # can't, we are probably in trouble. We don't care whether we can run the
7165 # executable--we might be using a cross compiler--we only care whether it
7166 # can be created. At this point the main configure script has set CC.
7167 we_are_ok=no
7168 echo "int main () { return 0; }" > conftest.c
7169 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7170 if test $? = 0 ; then
7171 if test -s conftest || test -s conftest.exe ; then
7172 we_are_ok=yes
7173 fi
7174 fi
7175 case $we_are_ok in
7176 no)
7177 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7178 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7179 rm -f conftest*
7180 exit 1
7181 ;;
7182 esac
7183 rm -f conftest*
7184
7185 # Decide which environment variable is used to find dynamic libraries.
7186 case "${host}" in
7187 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7188 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7189 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7190 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7191 esac
7192
7193 # On systems where the dynamic library environment variable is PATH,
7194 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7195 # built executables to PATH.
7196 if test "$RPATH_ENVVAR" = PATH; then
7197 GCC_SHLIB_SUBDIR=/shlib
7198 else
7199 GCC_SHLIB_SUBDIR=
7200 fi
7201
7202 # Adjust the toplevel makefile according to whether bootstrap was selected.
7203 case $enable_bootstrap in
7204 yes)
7205 bootstrap_suffix=bootstrap
7206 BUILD_CONFIG=bootstrap-debug
7207 ;;
7208 no)
7209 bootstrap_suffix=no-bootstrap
7210 BUILD_CONFIG=
7211 ;;
7212 esac
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7215 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7216
7217
7218 # Check whether --with-build-config was given.
7219 if test "${with_build_config+set}" = set; then :
7220 withval=$with_build_config; case $with_build_config in
7221 yes) with_build_config= ;;
7222 no) with_build_config= BUILD_CONFIG= ;;
7223 esac
7224 fi
7225
7226
7227 if test "x${with_build_config}" != x; then
7228 BUILD_CONFIG=$with_build_config
7229 else
7230 case $BUILD_CONFIG in
7231 bootstrap-debug)
7232 if echo "int f (void) { return 0; }" > conftest.c &&
7233 ${CC} -c conftest.c &&
7234 mv conftest.o conftest.o.g0 &&
7235 ${CC} -c -g conftest.c &&
7236 mv conftest.o conftest.o.g &&
7237 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7238 :
7239 else
7240 BUILD_CONFIG=
7241 fi
7242 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7243 ;;
7244 esac
7245 fi
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7247 $as_echo "$BUILD_CONFIG" >&6; }
7248
7249
7250 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7252 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7253 # Check whether --enable-vtable-verify was given.
7254 if test "${enable_vtable_verify+set}" = set; then :
7255 enableval=$enable_vtable_verify; case "$enableval" in
7256 yes) enable_vtable_verify=yes ;;
7257 no) enable_vtable_verify=no ;;
7258 *) enable_vtable_verify=no;;
7259 esac
7260 else
7261 enable_vtable_verify=no
7262 fi
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7265 $as_echo "$enable_vtable_verify" >&6; }
7266
7267 # Record target_configdirs and the configure arguments for target and
7268 # build configuration in Makefile.
7269 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7270 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7271 bootstrap_fixincludes=no
7272
7273 # If we are building libgomp, bootstrap it.
7274 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7275 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7276 fi
7277
7278 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7279 # or bootstrap-ubsan, bootstrap it.
7280 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7281 case "$BUILD_CONFIG" in
7282 *bootstrap-asan* | *bootstrap-ubsan* )
7283 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7284 bootstrap_fixincludes=yes
7285 ;;
7286 esac
7287 fi
7288
7289 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7290 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7291 test "$enable_vtable_verify" != no; then
7292 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7293 fi
7294
7295 # Determine whether gdb needs tk/tcl or not.
7296 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7297 # and in that case we want gdb to be built without tk. Ugh!
7298 # In fact I believe gdb is the *only* package directly dependent on tk,
7299 # so we should be able to put the 'maybe's in unconditionally and
7300 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7301 # 100% sure that that's safe though.
7302
7303 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7304 case "$enable_gdbtk" in
7305 no)
7306 GDB_TK="" ;;
7307 yes)
7308 GDB_TK="${gdb_tk}" ;;
7309 *)
7310 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7311 # distro. Eventually someone will fix this and move Insight, nee
7312 # gdbtk to a separate directory.
7313 if test -d ${srcdir}/gdb/gdbtk ; then
7314 GDB_TK="${gdb_tk}"
7315 else
7316 GDB_TK=""
7317 fi
7318 ;;
7319 esac
7320 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7321 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7322
7323 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7324 # else does, only include them if one of these is built. The Makefile
7325 # provides the ordering, so it's enough here to add to the list.
7326 case " ${configdirs} " in
7327 *\ gdb\ *)
7328 configdirs="${configdirs} gnulib gdbsupport"
7329 ;;
7330 *\ gdbserver\ *)
7331 configdirs="${configdirs} gnulib gdbsupport"
7332 ;;
7333 esac
7334
7335 # Strip out unwanted targets.
7336
7337 # While at that, we remove Makefiles if we were started for recursive
7338 # configuration, so that the top-level Makefile reconfigures them,
7339 # like we used to do when configure itself was recursive.
7340
7341 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7342 # but now we're fixing up the Makefile ourselves with the additional
7343 # commands passed to AC_CONFIG_FILES. Use separate variables
7344 # extrasub-{build,host,target} not because there is any reason to split
7345 # the substitutions up that way, but only to remain below the limit of
7346 # 99 commands in a script, for HP-UX sed.
7347
7348 # Do not nest @if/@endif or @unless/@endunless pairs, because
7349 # configure will not warn you at all.
7350
7351 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7352 yes:yes:*\ gold\ *:*,c++,*) ;;
7353 yes:yes:*\ gold\ *:*)
7354 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7355 ;;
7356 esac
7357
7358 extrasub_build=
7359 for module in ${build_configdirs} ; do
7360 if test -z "${no_recursion}" \
7361 && test -f ${build_subdir}/${module}/Makefile; then
7362 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7363 rm -f ${build_subdir}/${module}/Makefile
7364 fi
7365 extrasub_build="$extrasub_build
7366 /^@if build-$module\$/d
7367 /^@endif build-$module\$/d
7368 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7369 /^@if build-$module-$bootstrap_suffix\$/d
7370 /^@endif build-$module-$bootstrap_suffix\$/d
7371 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7372 done
7373 extrasub_host=
7374 for module in ${configdirs} ; do
7375 if test -z "${no_recursion}"; then
7376 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7377 if test -f ${file}; then
7378 echo 1>&2 "*** removing ${file} to force reconfigure"
7379 rm -f ${file}
7380 fi
7381 done
7382 fi
7383 case ${module},${bootstrap_fixincludes} in
7384 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7385 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7386 esac
7387 extrasub_host="$extrasub_host
7388 /^@if $module\$/d
7389 /^@endif $module\$/d
7390 /^@unless $module\$/,/^@endunless $module\$/d
7391 /^@if $module-$host_bootstrap_suffix\$/d
7392 /^@endif $module-$host_bootstrap_suffix\$/d
7393 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7394 done
7395 extrasub_target=
7396 for module in ${target_configdirs} ; do
7397 if test -z "${no_recursion}" \
7398 && test -f ${target_subdir}/${module}/Makefile; then
7399 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7400 rm -f ${target_subdir}/${module}/Makefile
7401 fi
7402
7403 # We only bootstrap target libraries listed in bootstrap_target_libs.
7404 case $bootstrap_target_libs in
7405 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7406 *) target_bootstrap_suffix=no-bootstrap ;;
7407 esac
7408
7409 extrasub_target="$extrasub_target
7410 /^@if target-$module\$/d
7411 /^@endif target-$module\$/d
7412 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7413 /^@if target-$module-$target_bootstrap_suffix\$/d
7414 /^@endif target-$module-$target_bootstrap_suffix\$/d
7415 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7416 done
7417
7418 # Do the final fixup along with target modules.
7419 extrasub_target="$extrasub_target
7420 /^@if /,/^@endif /d
7421 /^@unless /d
7422 /^@endunless /d"
7423
7424 if test "$enable_pgo_build" != "no"; then
7425 extrasub_build="$extrasub_build
7426 /^@if pgo-build\$/d
7427 /^@endif pgo-build\$/d"
7428 fi
7429
7430 # Create the serialization dependencies. This uses a temporary file.
7431
7432 # Check whether --enable-serial-configure was given.
7433 if test "${enable_serial_configure+set}" = set; then :
7434 enableval=$enable_serial_configure;
7435 fi
7436
7437
7438 case ${enable_serial_configure} in
7439 yes)
7440 enable_serial_build_configure=yes
7441 enable_serial_host_configure=yes
7442 enable_serial_target_configure=yes
7443 ;;
7444 esac
7445
7446 # These force 'configure's to be done one at a time, to avoid problems
7447 # with contention over a shared config.cache.
7448 rm -f serdep.tmp
7449 echo '# serdep.tmp' > serdep.tmp
7450 olditem=
7451 test "x${enable_serial_build_configure}" = xyes &&
7452 for item in ${build_configdirs} ; do
7453 case ${olditem} in
7454 "") ;;
7455 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7456 esac
7457 olditem=${item}
7458 done
7459 olditem=
7460 test "x${enable_serial_host_configure}" = xyes &&
7461 for item in ${configdirs} ; do
7462 case ${olditem} in
7463 "") ;;
7464 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7465 esac
7466 olditem=${item}
7467 done
7468 olditem=
7469 test "x${enable_serial_target_configure}" = xyes &&
7470 for item in ${target_configdirs} ; do
7471 case ${olditem} in
7472 "") ;;
7473 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7474 esac
7475 olditem=${item}
7476 done
7477 serialization_dependencies=serdep.tmp
7478
7479
7480 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7481 # target, nonopt, and variable assignments. These are the ones we
7482 # might not want to pass down to subconfigures. The exception being
7483 # --cache-file=/dev/null, which is used to turn off the use of cache
7484 # files altogether, and which should be passed on to subconfigures.
7485 # Also strip program-prefix, program-suffix, and program-transform-name,
7486 # so that we can pass down a consistent program-transform-name.
7487 baseargs=
7488 tbaseargs=
7489 keep_next=no
7490 skip_next=no
7491 eval "set -- $ac_configure_args"
7492 for ac_arg
7493 do
7494 if test X"$skip_next" = X"yes"; then
7495 skip_next=no
7496 continue
7497 fi
7498 if test X"$keep_next" = X"yes"; then
7499 case $ac_arg in
7500 *\'*)
7501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7502 esac
7503 baseargs="$baseargs '$ac_arg'"
7504 tbaseargs="$tbaseargs '$ac_arg'"
7505 keep_next=no
7506 continue
7507 fi
7508
7509 # Handle separated arguments. Based on the logic generated by
7510 # autoconf 2.59.
7511 case $ac_arg in
7512 *=* | --config-cache | -C | -disable-* | --disable-* \
7513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7515 | -with-* | --with-* | -without-* | --without-* | --x)
7516 separate_arg=no
7517 ;;
7518 -*)
7519 separate_arg=yes
7520 ;;
7521 *)
7522 separate_arg=no
7523 ;;
7524 esac
7525
7526 skip_targ=no
7527 case $ac_arg in
7528
7529 --with-* | --without-*)
7530 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7531
7532 case $libopt in
7533 *[-_]include)
7534 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7535 ;;
7536 *[-_]lib)
7537 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7538 ;;
7539 *)
7540 lib=$libopt
7541 ;;
7542 esac
7543
7544
7545 case $lib in
7546 mpc | mpfr | gmp | isl)
7547 # If we're processing --with-$lib, --with-$lib-include or
7548 # --with-$lib-lib, for one of the libs above, and target is
7549 # different from host, don't pass the current argument to any
7550 # target library's configure.
7551 if test x$is_cross_compiler = xyes; then
7552 skip_targ=yes
7553 fi
7554 ;;
7555 esac
7556 ;;
7557 esac
7558
7559 case "$ac_arg" in
7560 --cache-file=/dev/null | \
7561 -cache-file=/dev/null )
7562 # Handled here to avoid the test to skip args below.
7563 baseargs="$baseargs '$ac_arg'"
7564 tbaseargs="$tbaseargs '$ac_arg'"
7565 # Assert: $separate_arg should always be no.
7566 keep_next=$separate_arg
7567 ;;
7568 --no*)
7569 continue
7570 ;;
7571 --c* | \
7572 --sr* | \
7573 --ho* | \
7574 --bu* | \
7575 --t* | \
7576 --program-* | \
7577 -cache_file* | \
7578 -srcdir* | \
7579 -host* | \
7580 -build* | \
7581 -target* | \
7582 -program-prefix* | \
7583 -program-suffix* | \
7584 -program-transform-name* )
7585 skip_next=$separate_arg
7586 continue
7587 ;;
7588 -*)
7589 # An option. Add it.
7590 case $ac_arg in
7591 *\'*)
7592 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7593 esac
7594 baseargs="$baseargs '$ac_arg'"
7595 if test X"$skip_targ" = Xno; then
7596 tbaseargs="$tbaseargs '$ac_arg'"
7597 fi
7598 keep_next=$separate_arg
7599 ;;
7600 *)
7601 # Either a variable assignment, or a nonopt (triplet). Don't
7602 # pass it down; let the Makefile handle this.
7603 continue
7604 ;;
7605 esac
7606 done
7607 # Remove the initial space we just introduced and, as these will be
7608 # expanded by make, quote '$'.
7609 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7610
7611 # Add in --program-transform-name, after --program-prefix and
7612 # --program-suffix have been applied to it. Autoconf has already
7613 # doubled dollar signs and backslashes in program_transform_name; we want
7614 # the backslashes un-doubled, and then the entire thing wrapped in single
7615 # quotes, because this will be expanded first by make and then by the shell.
7616 # Also, because we want to override the logic in subdir configure scripts to
7617 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7618 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7619 ${program_transform_name}
7620 EOF_SED
7621 gcc_transform_name=`cat conftestsed.out`
7622 rm -f conftestsed.out
7623 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7624 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7625 if test "$silent" = yes; then
7626 baseargs="$baseargs --silent"
7627 tbaseargs="$tbaseargs --silent"
7628 fi
7629 baseargs="$baseargs --disable-option-checking"
7630 tbaseargs="$tbaseargs --disable-option-checking"
7631
7632 # Record and document user additions to sub configure arguments.
7633
7634
7635
7636
7637 # For the build-side libraries, we just need to pretend we're native,
7638 # and not use the same cache file. Multilibs are neither needed nor
7639 # desired. We can't even use the same cache file for all build-side
7640 # libraries, as they're compiled differently; some with C, some with
7641 # C++ or with different feature-enabling options.
7642 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7643
7644 # For host modules, accept cache file option, or specification as blank.
7645 case "${cache_file}" in
7646 "") # empty
7647 cache_file_option="" ;;
7648 /* | [A-Za-z]:[\\/]* ) # absolute path
7649 cache_file_option="--cache-file=${cache_file}" ;;
7650 *) # relative path
7651 cache_file_option="--cache-file=../${cache_file}" ;;
7652 esac
7653
7654 # Host dirs don't like to share a cache file either, horribly enough.
7655 # This seems to be due to autoconf 2.5x stupidity.
7656 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7657
7658 target_configargs="$target_configargs ${tbaseargs}"
7659
7660 # Passing a --with-cross-host argument lets the target libraries know
7661 # whether they are being built with a cross-compiler or being built
7662 # native. However, it would be better to use other mechanisms to make the
7663 # sorts of decisions they want to make on this basis. Please consider
7664 # this option to be deprecated. FIXME.
7665 if test x${is_cross_compiler} = xyes ; then
7666 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7667 fi
7668
7669 # Special user-friendly check for native x86_64-linux build, if
7670 # multilib is not explicitly enabled.
7671 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7672 x86_64-*linux*:yes:$build:$build:)
7673 # Make sure we have a development environment that handles 32-bit
7674 dev64=no
7675 echo "int main () { return 0; }" > conftest.c
7676 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7677 if test $? = 0 ; then
7678 if test -s conftest || test -s conftest.exe ; then
7679 dev64=yes
7680 fi
7681 fi
7682 rm -f conftest*
7683 if test x${dev64} != xyes ; then
7684 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
7685 fi
7686 ;;
7687 esac
7688
7689 # Default to --enable-multilib.
7690 if test x${enable_multilib} = x ; then
7691 target_configargs="--enable-multilib ${target_configargs}"
7692 fi
7693
7694 # Pass --with-newlib if appropriate. Note that target_configdirs has
7695 # changed from the earlier setting of with_newlib.
7696 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7697 target_configargs="--with-newlib ${target_configargs}"
7698 fi
7699
7700 # Different target subdirs use different values of certain variables
7701 # (notably CXX). Worse, multilibs use *lots* of different values.
7702 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7703 # it doesn't automatically accept command-line overrides of them.
7704 # This means it's not safe for target subdirs to share a cache file,
7705 # which is disgusting, but there you have it. Hopefully this can be
7706 # fixed in future. It's still worthwhile to use a cache file for each
7707 # directory. I think.
7708
7709 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7710 # We need to pass --target, as newer autoconf's requires consistency
7711 # for target_alias and gcc doesn't manage it consistently.
7712 target_configargs="--cache-file=./config.cache ${target_configargs}"
7713
7714 FLAGS_FOR_TARGET=
7715 case " $target_configdirs " in
7716 *" newlib "*)
7717 case " $target_configargs " in
7718 *" --with-newlib "*)
7719 case "$target" in
7720 *-cygwin*)
7721 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7722 ;;
7723 esac
7724
7725 # If we're not building GCC, don't discard standard headers.
7726 if test -d ${srcdir}/gcc; then
7727 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7728
7729 if test "${build}" != "${host}"; then
7730 # On Canadian crosses, CC_FOR_TARGET will have already been set
7731 # by `configure', so we won't have an opportunity to add -Bgcc/
7732 # to it. This is right: we don't want to search that directory
7733 # for binaries, but we want the header files in there, so add
7734 # them explicitly.
7735 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7736
7737 # Someone might think of using the pre-installed headers on
7738 # Canadian crosses, in case the installed compiler is not fully
7739 # compatible with the compiler being built. In this case, it
7740 # would be better to flag an error than risking having
7741 # incompatible object files being constructed. We can't
7742 # guarantee that an error will be flagged, but let's hope the
7743 # compiler will do it, when presented with incompatible header
7744 # files.
7745 fi
7746 fi
7747
7748 case "${target}-${is_cross_compiler}" in
7749 i[3456789]86-*-linux*-no)
7750 # Here host == target, so we don't need to build gcc,
7751 # so we don't want to discard standard headers.
7752 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7753 ;;
7754 *)
7755 # If we're building newlib, use its generic headers last, but search
7756 # for any libc-related directories first (so make it the last -B
7757 # switch).
7758 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7759
7760 # If we're building libgloss, find the startup file, simulator library
7761 # and linker script.
7762 case " $target_configdirs " in
7763 *" libgloss "*)
7764 # Look for startup file, simulator library and maybe linker script.
7765 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7766 # Look for libnosys.a in case the target needs it.
7767 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7768 # Most targets have the linker script in the source directory.
7769 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7770 ;;
7771 esac
7772 ;;
7773 esac
7774 ;;
7775 esac
7776 ;;
7777 esac
7778
7779 case "$target" in
7780 x86_64-*mingw* | *-w64-mingw*)
7781 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7782 # however, use a symlink named 'mingw' in ${prefix} .
7783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7784 ;;
7785 *-mingw*)
7786 # MinGW can't be handled as Cygwin above since it does not use newlib.
7787 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'
7788 ;;
7789 esac
7790
7791 # Allow the user to override the flags for
7792 # our build compiler if desired.
7793 if test x"${build}" = x"${host}" ; then
7794 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7795 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7796 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7797 fi
7798
7799 # On Canadian crosses, we'll be searching the right directories for
7800 # the previously-installed cross compiler, so don't bother to add
7801 # flags for directories within the install tree of the compiler
7802 # being built; programs in there won't even run.
7803 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7804 # Search for pre-installed headers if nothing else fits.
7805 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7806 fi
7807
7808 if test "x${use_gnu_ld}" = x &&
7809 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7810 # Arrange for us to find uninstalled linker scripts.
7811 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7812 fi
7813
7814 # Search for other target-specific linker scripts and such.
7815 case "${target}" in
7816 mep*)
7817 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7818 ;;
7819 esac
7820
7821 # Makefile fragments.
7822 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7823 do
7824 eval fragval=\$$frag
7825 if test $fragval != /dev/null; then
7826 eval $frag=${srcdir}/$fragval
7827 fi
7828 done
7829
7830
7831
7832
7833
7834 # Miscellanea: directories, flags, etc.
7835
7836
7837
7838
7839
7840
7841
7842
7843 # Build module lists & subconfigure args.
7844
7845
7846
7847 # Host module lists & subconfigure args.
7848
7849
7850
7851
7852 # Target module lists & subconfigure args.
7853
7854
7855
7856 # Build tools.
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873 # Generate default definitions for YACC, M4, LEX and other programs that run
7874 # on the build machine. These are used if the Makefile can't locate these
7875 # programs in objdir.
7876 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7877
7878 for ac_prog in 'bison -y' byacc yacc
7879 do
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 $as_echo_n "checking for $ac_word... " >&6; }
7884 if ${ac_cv_prog_YACC+:} false; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 if test -n "$YACC"; then
7888 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7889 else
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 for as_dir in $PATH
7892 do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_YACC="$ac_prog"
7898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi
7906 fi
7907 YACC=$ac_cv_prog_YACC
7908 if test -n "$YACC"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7910 $as_echo "$YACC" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 fi
7915
7916
7917 test -n "$YACC" && break
7918 done
7919 test -n "$YACC" || YACC="$MISSING bison -y"
7920
7921 case " $build_configdirs " in
7922 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7923 esac
7924
7925 for ac_prog in bison
7926 do
7927 # Extract the first word of "$ac_prog", so it can be a program name with args.
7928 set dummy $ac_prog; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_BISON+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$BISON"; then
7935 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_BISON="$ac_prog"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 BISON=$ac_cv_prog_BISON
7955 if test -n "$BISON"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7957 $as_echo "$BISON" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964 test -n "$BISON" && break
7965 done
7966 test -n "$BISON" || BISON="$MISSING bison"
7967
7968 case " $build_configdirs " in
7969 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7970 esac
7971
7972 for ac_prog in gm4 gnum4 m4
7973 do
7974 # Extract the first word of "$ac_prog", so it can be a program name with args.
7975 set dummy $ac_prog; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if ${ac_cv_prog_M4+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 if test -n "$M4"; then
7982 ac_cv_prog_M4="$M4" # Let the user override the test.
7983 else
7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_M4="$ac_prog"
7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 M4=$ac_cv_prog_M4
8002 if test -n "$M4"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8004 $as_echo "$M4" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011 test -n "$M4" && break
8012 done
8013 test -n "$M4" || M4="$MISSING m4"
8014
8015 case " $build_configdirs " in
8016 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8017 esac
8018
8019 for ac_prog in flex lex
8020 do
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_LEX+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$LEX"; then
8029 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_LEX="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042 done
8043 done
8044 IFS=$as_save_IFS
8045
8046 fi
8047 fi
8048 LEX=$ac_cv_prog_LEX
8049 if test -n "$LEX"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8051 $as_echo "$LEX" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056
8057
8058 test -n "$LEX" && break
8059 done
8060 test -n "$LEX" || LEX="$MISSING flex"
8061
8062 case " $build_configdirs " in
8063 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8064 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8065 esac
8066
8067 for ac_prog in flex
8068 do
8069 # Extract the first word of "$ac_prog", so it can be a program name with args.
8070 set dummy $ac_prog; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_FLEX+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$FLEX"; then
8077 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086 ac_cv_prog_FLEX="$ac_prog"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8094 fi
8095 fi
8096 FLEX=$ac_cv_prog_FLEX
8097 if test -n "$FLEX"; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8099 $as_echo "$FLEX" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 fi
8104
8105
8106 test -n "$FLEX" && break
8107 done
8108 test -n "$FLEX" || FLEX="$MISSING flex"
8109
8110 case " $build_configdirs " in
8111 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8112 esac
8113
8114 for ac_prog in makeinfo
8115 do
8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
8117 set dummy $ac_prog; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_prog_MAKEINFO+:} false; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test -n "$MAKEINFO"; then
8124 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_MAKEINFO="$ac_prog"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 MAKEINFO=$ac_cv_prog_MAKEINFO
8144 if test -n "$MAKEINFO"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8146 $as_echo "$MAKEINFO" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8150 fi
8151
8152
8153 test -n "$MAKEINFO" && break
8154 done
8155 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8156
8157 case " $build_configdirs " in
8158 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8159 *)
8160
8161 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8162 # higher, else we use the "missing" dummy.
8163 if ${MAKEINFO} --version \
8164 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8165 :
8166 else
8167 MAKEINFO="$MISSING makeinfo"
8168 fi
8169 ;;
8170
8171 esac
8172
8173 # FIXME: expect and dejagnu may become build tools?
8174
8175 for ac_prog in expect
8176 do
8177 # Extract the first word of "$ac_prog", so it can be a program name with args.
8178 set dummy $ac_prog; ac_word=$2
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 $as_echo_n "checking for $ac_word... " >&6; }
8181 if ${ac_cv_prog_EXPECT+:} false; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 if test -n "$EXPECT"; then
8185 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8186 else
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8189 do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8194 ac_cv_prog_EXPECT="$ac_prog"
8195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198 done
8199 done
8200 IFS=$as_save_IFS
8201
8202 fi
8203 fi
8204 EXPECT=$ac_cv_prog_EXPECT
8205 if test -n "$EXPECT"; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8207 $as_echo "$EXPECT" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212
8213
8214 test -n "$EXPECT" && break
8215 done
8216 test -n "$EXPECT" || EXPECT="expect"
8217
8218 case " $configdirs " in
8219 *" expect "*)
8220 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8221 ;;
8222 esac
8223
8224 for ac_prog in runtest
8225 do
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_RUNTEST+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$RUNTEST"; then
8234 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8243 ac_cv_prog_RUNTEST="$ac_prog"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247 done
8248 done
8249 IFS=$as_save_IFS
8250
8251 fi
8252 fi
8253 RUNTEST=$ac_cv_prog_RUNTEST
8254 if test -n "$RUNTEST"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8256 $as_echo "$RUNTEST" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263 test -n "$RUNTEST" && break
8264 done
8265 test -n "$RUNTEST" || RUNTEST="runtest"
8266
8267 case " $configdirs " in
8268 *" dejagnu "*)
8269 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8270 ;;
8271 esac
8272
8273
8274 # Host tools.
8275 ncn_tool_prefix=
8276 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8277 ncn_target_tool_prefix=
8278 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8279
8280
8281
8282 if test -n "$AR"; then
8283 ac_cv_prog_AR=$AR
8284 elif test -n "$ac_cv_prog_AR"; then
8285 AR=$ac_cv_prog_AR
8286 fi
8287
8288 if test -n "$ac_cv_prog_AR"; then
8289 for ncn_progname in ar; do
8290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8291 set dummy ${ncn_progname}; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_prog_AR+:} false; then :
8295 $as_echo_n "(cached) " >&6
8296 else
8297 if test -n "$AR"; then
8298 ac_cv_prog_AR="$AR" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_prog_AR="${ncn_progname}"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8310 fi
8311 done
8312 done
8313 IFS=$as_save_IFS
8314
8315 fi
8316 fi
8317 AR=$ac_cv_prog_AR
8318 if test -n "$AR"; then
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8320 $as_echo "$AR" >&6; }
8321 else
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323 $as_echo "no" >&6; }
8324 fi
8325
8326
8327 done
8328 fi
8329
8330 for ncn_progname in ar; do
8331 if test -n "$ncn_tool_prefix"; then
8332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_prog_AR+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test -n "$AR"; then
8340 ac_cv_prog_AR="$AR" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353 done
8354 done
8355 IFS=$as_save_IFS
8356
8357 fi
8358 fi
8359 AR=$ac_cv_prog_AR
8360 if test -n "$AR"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8362 $as_echo "$AR" >&6; }
8363 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8366 fi
8367
8368
8369 fi
8370 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372 set dummy ${ncn_progname}; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if ${ac_cv_prog_AR+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$AR"; then
8379 ac_cv_prog_AR="$AR" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_AR="${ncn_progname}"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 AR=$ac_cv_prog_AR
8399 if test -n "$AR"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8401 $as_echo "$AR" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407
8408 fi
8409 test -n "$ac_cv_prog_AR" && break
8410 done
8411
8412 if test -z "$ac_cv_prog_AR" ; then
8413 set dummy ar
8414 if test $build = $host ; then
8415 AR="$2"
8416 else
8417 AR="${ncn_tool_prefix}$2"
8418 fi
8419 fi
8420
8421
8422
8423 if test -n "$AS"; then
8424 ac_cv_prog_AS=$AS
8425 elif test -n "$ac_cv_prog_AS"; then
8426 AS=$ac_cv_prog_AS
8427 fi
8428
8429 if test -n "$ac_cv_prog_AS"; then
8430 for ncn_progname in as; do
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432 set dummy ${ncn_progname}; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_AS+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 if test -n "$AS"; then
8439 ac_cv_prog_AS="$AS" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_AS="${ncn_progname}"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452 done
8453 done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 AS=$ac_cv_prog_AS
8459 if test -n "$AS"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8461 $as_echo "$AS" >&6; }
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468 done
8469 fi
8470
8471 for ncn_progname in as; do
8472 if test -n "$ncn_tool_prefix"; then
8473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_prog_AS+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test -n "$AS"; then
8481 ac_cv_prog_AS="$AS" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 fi
8499 fi
8500 AS=$ac_cv_prog_AS
8501 if test -n "$AS"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8503 $as_echo "$AS" >&6; }
8504 else
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 $as_echo "no" >&6; }
8507 fi
8508
8509
8510 fi
8511 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513 set dummy ${ncn_progname}; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_AS+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$AS"; then
8520 ac_cv_prog_AS="$AS" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_AS="${ncn_progname}"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 AS=$ac_cv_prog_AS
8540 if test -n "$AS"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8542 $as_echo "$AS" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 test -n "$ac_cv_prog_AS" && break
8551 done
8552
8553 if test -z "$ac_cv_prog_AS" ; then
8554 set dummy as
8555 if test $build = $host ; then
8556 AS="$2"
8557 else
8558 AS="${ncn_tool_prefix}$2"
8559 fi
8560 fi
8561
8562
8563
8564 if test -n "$DLLTOOL"; then
8565 ac_cv_prog_DLLTOOL=$DLLTOOL
8566 elif test -n "$ac_cv_prog_DLLTOOL"; then
8567 DLLTOOL=$ac_cv_prog_DLLTOOL
8568 fi
8569
8570 if test -n "$ac_cv_prog_DLLTOOL"; then
8571 for ncn_progname in dlltool; do
8572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573 set dummy ${ncn_progname}; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if ${ac_cv_prog_DLLTOOL+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 if test -n "$DLLTOOL"; then
8580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_DLLTOOL="${ncn_progname}"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 fi
8598 fi
8599 DLLTOOL=$ac_cv_prog_DLLTOOL
8600 if test -n "$DLLTOOL"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8602 $as_echo "$DLLTOOL" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606 fi
8607
8608
8609 done
8610 fi
8611
8612 for ncn_progname in dlltool; do
8613 if test -n "$ncn_tool_prefix"; then
8614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_DLLTOOL+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 if test -n "$DLLTOOL"; then
8622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 DLLTOOL=$ac_cv_prog_DLLTOOL
8642 if test -n "$DLLTOOL"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8644 $as_echo "$DLLTOOL" >&6; }
8645 else
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650
8651 fi
8652 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_progname}; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_DLLTOOL+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 if test -n "$DLLTOOL"; then
8661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670 ac_cv_prog_DLLTOOL="${ncn_progname}"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 DLLTOOL=$ac_cv_prog_DLLTOOL
8681 if test -n "$DLLTOOL"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8683 $as_echo "$DLLTOOL" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 fi
8691 test -n "$ac_cv_prog_DLLTOOL" && break
8692 done
8693
8694 if test -z "$ac_cv_prog_DLLTOOL" ; then
8695 set dummy dlltool
8696 if test $build = $host ; then
8697 DLLTOOL="$2"
8698 else
8699 DLLTOOL="${ncn_tool_prefix}$2"
8700 fi
8701 fi
8702
8703
8704
8705 if test -n "$LD"; then
8706 ac_cv_prog_LD=$LD
8707 elif test -n "$ac_cv_prog_LD"; then
8708 LD=$ac_cv_prog_LD
8709 fi
8710
8711 if test -n "$ac_cv_prog_LD"; then
8712 for ncn_progname in ld; do
8713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8714 set dummy ${ncn_progname}; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_LD+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 if test -n "$LD"; then
8721 ac_cv_prog_LD="$LD" # Let the user override the test.
8722 else
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8725 do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_LD="${ncn_progname}"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8733 fi
8734 done
8735 done
8736 IFS=$as_save_IFS
8737
8738 fi
8739 fi
8740 LD=$ac_cv_prog_LD
8741 if test -n "$LD"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8743 $as_echo "$LD" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749
8750 done
8751 fi
8752
8753 for ncn_progname in ld; do
8754 if test -n "$ncn_tool_prefix"; then
8755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if ${ac_cv_prog_LD+:} false; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 if test -n "$LD"; then
8763 ac_cv_prog_LD="$LD" # Let the user override the test.
8764 else
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8772 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8775 fi
8776 done
8777 done
8778 IFS=$as_save_IFS
8779
8780 fi
8781 fi
8782 LD=$ac_cv_prog_LD
8783 if test -n "$LD"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8785 $as_echo "$LD" >&6; }
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790
8791
8792 fi
8793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795 set dummy ${ncn_progname}; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_LD+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 if test -n "$LD"; then
8802 ac_cv_prog_LD="$LD" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_LD="${ncn_progname}"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 LD=$ac_cv_prog_LD
8822 if test -n "$LD"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8824 $as_echo "$LD" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 test -n "$ac_cv_prog_LD" && break
8833 done
8834
8835 if test -z "$ac_cv_prog_LD" ; then
8836 set dummy ld
8837 if test $build = $host ; then
8838 LD="$2"
8839 else
8840 LD="${ncn_tool_prefix}$2"
8841 fi
8842 fi
8843
8844
8845
8846 if test -n "$LIPO"; then
8847 ac_cv_prog_LIPO=$LIPO
8848 elif test -n "$ac_cv_prog_LIPO"; then
8849 LIPO=$ac_cv_prog_LIPO
8850 fi
8851
8852 if test -n "$ac_cv_prog_LIPO"; then
8853 for ncn_progname in lipo; do
8854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8855 set dummy ${ncn_progname}; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if ${ac_cv_prog_LIPO+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 if test -n "$LIPO"; then
8862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8863 else
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865 for as_dir in $PATH
8866 do
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_prog_LIPO="${ncn_progname}"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8873 break 2
8874 fi
8875 done
8876 done
8877 IFS=$as_save_IFS
8878
8879 fi
8880 fi
8881 LIPO=$ac_cv_prog_LIPO
8882 if test -n "$LIPO"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8884 $as_echo "$LIPO" >&6; }
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8888 fi
8889
8890
8891 done
8892 fi
8893
8894 for ncn_progname in lipo; do
8895 if test -n "$ncn_tool_prefix"; then
8896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if ${ac_cv_prog_LIPO+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 if test -n "$LIPO"; then
8904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917 done
8918 done
8919 IFS=$as_save_IFS
8920
8921 fi
8922 fi
8923 LIPO=$ac_cv_prog_LIPO
8924 if test -n "$LIPO"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8926 $as_echo "$LIPO" >&6; }
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931
8932
8933 fi
8934 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936 set dummy ${ncn_progname}; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_LIPO+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -n "$LIPO"; then
8943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_prog_LIPO="${ncn_progname}"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956 done
8957 done
8958 IFS=$as_save_IFS
8959
8960 fi
8961 fi
8962 LIPO=$ac_cv_prog_LIPO
8963 if test -n "$LIPO"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8965 $as_echo "$LIPO" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972 fi
8973 test -n "$ac_cv_prog_LIPO" && break
8974 done
8975
8976 if test -z "$ac_cv_prog_LIPO" ; then
8977 set dummy lipo
8978 if test $build = $host ; then
8979 LIPO="$2"
8980 else
8981 LIPO="${ncn_tool_prefix}$2"
8982 fi
8983 fi
8984
8985
8986
8987 if test -n "$NM"; then
8988 ac_cv_prog_NM=$NM
8989 elif test -n "$ac_cv_prog_NM"; then
8990 NM=$ac_cv_prog_NM
8991 fi
8992
8993 if test -n "$ac_cv_prog_NM"; then
8994 for ncn_progname in nm; do
8995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8996 set dummy ${ncn_progname}; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_prog_NM+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 if test -n "$NM"; then
9003 ac_cv_prog_NM="$NM" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9012 ac_cv_prog_NM="${ncn_progname}"
9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014 break 2
9015 fi
9016 done
9017 done
9018 IFS=$as_save_IFS
9019
9020 fi
9021 fi
9022 NM=$ac_cv_prog_NM
9023 if test -n "$NM"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9025 $as_echo "$NM" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 fi
9030
9031
9032 done
9033 fi
9034
9035 for ncn_progname in nm; do
9036 if test -n "$ncn_tool_prefix"; then
9037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if ${ac_cv_prog_NM+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 if test -n "$NM"; then
9045 ac_cv_prog_NM="$NM" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9049 do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058 done
9059 done
9060 IFS=$as_save_IFS
9061
9062 fi
9063 fi
9064 NM=$ac_cv_prog_NM
9065 if test -n "$NM"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9067 $as_echo "$NM" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 fi
9072
9073
9074 fi
9075 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9077 set dummy ${ncn_progname}; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_NM+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 if test -n "$NM"; then
9084 ac_cv_prog_NM="$NM" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_NM="${ncn_progname}"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 NM=$ac_cv_prog_NM
9104 if test -n "$NM"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9106 $as_echo "$NM" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112
9113 fi
9114 test -n "$ac_cv_prog_NM" && break
9115 done
9116
9117 if test -z "$ac_cv_prog_NM" ; then
9118 set dummy nm
9119 if test $build = $host ; then
9120 NM="$2"
9121 else
9122 NM="${ncn_tool_prefix}$2"
9123 fi
9124 fi
9125
9126
9127
9128 if test -n "$RANLIB"; then
9129 ac_cv_prog_RANLIB=$RANLIB
9130 elif test -n "$ac_cv_prog_RANLIB"; then
9131 RANLIB=$ac_cv_prog_RANLIB
9132 fi
9133
9134 if test -n "$ac_cv_prog_RANLIB"; then
9135 for ncn_progname in ranlib; do
9136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137 set dummy ${ncn_progname}; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_prog_RANLIB+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 if test -n "$RANLIB"; then
9144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9145 else
9146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147 for as_dir in $PATH
9148 do
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9153 ac_cv_prog_RANLIB="${ncn_progname}"
9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155 break 2
9156 fi
9157 done
9158 done
9159 IFS=$as_save_IFS
9160
9161 fi
9162 fi
9163 RANLIB=$ac_cv_prog_RANLIB
9164 if test -n "$RANLIB"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9166 $as_echo "$RANLIB" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173 done
9174 fi
9175
9176 for ncn_progname in ranlib; do
9177 if test -n "$ncn_tool_prefix"; then
9178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9179 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if ${ac_cv_prog_RANLIB+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 if test -n "$RANLIB"; then
9186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9198 fi
9199 done
9200 done
9201 IFS=$as_save_IFS
9202
9203 fi
9204 fi
9205 RANLIB=$ac_cv_prog_RANLIB
9206 if test -n "$RANLIB"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9208 $as_echo "$RANLIB" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215 fi
9216 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9218 set dummy ${ncn_progname}; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if ${ac_cv_prog_RANLIB+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 if test -n "$RANLIB"; then
9225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230 IFS=$as_save_IFS
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234 ac_cv_prog_RANLIB="${ncn_progname}"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 break 2
9237 fi
9238 done
9239 done
9240 IFS=$as_save_IFS
9241
9242 fi
9243 fi
9244 RANLIB=$ac_cv_prog_RANLIB
9245 if test -n "$RANLIB"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9247 $as_echo "$RANLIB" >&6; }
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9251 fi
9252
9253
9254 fi
9255 test -n "$ac_cv_prog_RANLIB" && break
9256 done
9257
9258 if test -z "$ac_cv_prog_RANLIB" ; then
9259 RANLIB="true"
9260 fi
9261
9262
9263
9264 if test -n "$STRIP"; then
9265 ac_cv_prog_STRIP=$STRIP
9266 elif test -n "$ac_cv_prog_STRIP"; then
9267 STRIP=$ac_cv_prog_STRIP
9268 fi
9269
9270 if test -n "$ac_cv_prog_STRIP"; then
9271 for ncn_progname in strip; do
9272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9273 set dummy ${ncn_progname}; ac_word=$2
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9275 $as_echo_n "checking for $ac_word... " >&6; }
9276 if ${ac_cv_prog_STRIP+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 if test -n "$STRIP"; then
9280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9281 else
9282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9283 for as_dir in $PATH
9284 do
9285 IFS=$as_save_IFS
9286 test -z "$as_dir" && as_dir=.
9287 for ac_exec_ext in '' $ac_executable_extensions; do
9288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9289 ac_cv_prog_STRIP="${ncn_progname}"
9290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 break 2
9292 fi
9293 done
9294 done
9295 IFS=$as_save_IFS
9296
9297 fi
9298 fi
9299 STRIP=$ac_cv_prog_STRIP
9300 if test -n "$STRIP"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9302 $as_echo "$STRIP" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9306 fi
9307
9308
9309 done
9310 fi
9311
9312 for ncn_progname in strip; do
9313 if test -n "$ncn_tool_prefix"; then
9314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9315 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if ${ac_cv_prog_STRIP+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 if test -n "$STRIP"; then
9322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9331 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9334 fi
9335 done
9336 done
9337 IFS=$as_save_IFS
9338
9339 fi
9340 fi
9341 STRIP=$ac_cv_prog_STRIP
9342 if test -n "$STRIP"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9344 $as_echo "$STRIP" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349
9350
9351 fi
9352 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9354 set dummy ${ncn_progname}; ac_word=$2
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9356 $as_echo_n "checking for $ac_word... " >&6; }
9357 if ${ac_cv_prog_STRIP+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 if test -n "$STRIP"; then
9361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9362 else
9363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9364 for as_dir in $PATH
9365 do
9366 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=.
9368 for ac_exec_ext in '' $ac_executable_extensions; do
9369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9370 ac_cv_prog_STRIP="${ncn_progname}"
9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 break 2
9373 fi
9374 done
9375 done
9376 IFS=$as_save_IFS
9377
9378 fi
9379 fi
9380 STRIP=$ac_cv_prog_STRIP
9381 if test -n "$STRIP"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9383 $as_echo "$STRIP" >&6; }
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9386 $as_echo "no" >&6; }
9387 fi
9388
9389
9390 fi
9391 test -n "$ac_cv_prog_STRIP" && break
9392 done
9393
9394 if test -z "$ac_cv_prog_STRIP" ; then
9395 STRIP="true"
9396 fi
9397
9398
9399
9400 if test -n "$WINDRES"; then
9401 ac_cv_prog_WINDRES=$WINDRES
9402 elif test -n "$ac_cv_prog_WINDRES"; then
9403 WINDRES=$ac_cv_prog_WINDRES
9404 fi
9405
9406 if test -n "$ac_cv_prog_WINDRES"; then
9407 for ncn_progname in windres; do
9408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9409 set dummy ${ncn_progname}; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if ${ac_cv_prog_WINDRES+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 if test -n "$WINDRES"; then
9416 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9417 else
9418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $PATH
9420 do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425 ac_cv_prog_WINDRES="${ncn_progname}"
9426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9427 break 2
9428 fi
9429 done
9430 done
9431 IFS=$as_save_IFS
9432
9433 fi
9434 fi
9435 WINDRES=$ac_cv_prog_WINDRES
9436 if test -n "$WINDRES"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9438 $as_echo "$WINDRES" >&6; }
9439 else
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9442 fi
9443
9444
9445 done
9446 fi
9447
9448 for ncn_progname in windres; do
9449 if test -n "$ncn_tool_prefix"; then
9450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_WINDRES+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 if test -n "$WINDRES"; then
9458 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9459 else
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 break 2
9470 fi
9471 done
9472 done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 WINDRES=$ac_cv_prog_WINDRES
9478 if test -n "$WINDRES"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9480 $as_echo "$WINDRES" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 fi
9485
9486
9487 fi
9488 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_progname}; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_prog_WINDRES+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 if test -n "$WINDRES"; then
9497 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_WINDRES="${ncn_progname}"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510 done
9511 done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 WINDRES=$ac_cv_prog_WINDRES
9517 if test -n "$WINDRES"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9519 $as_echo "$WINDRES" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525
9526 fi
9527 test -n "$ac_cv_prog_WINDRES" && break
9528 done
9529
9530 if test -z "$ac_cv_prog_WINDRES" ; then
9531 set dummy windres
9532 if test $build = $host ; then
9533 WINDRES="$2"
9534 else
9535 WINDRES="${ncn_tool_prefix}$2"
9536 fi
9537 fi
9538
9539
9540
9541 if test -n "$WINDMC"; then
9542 ac_cv_prog_WINDMC=$WINDMC
9543 elif test -n "$ac_cv_prog_WINDMC"; then
9544 WINDMC=$ac_cv_prog_WINDMC
9545 fi
9546
9547 if test -n "$ac_cv_prog_WINDMC"; then
9548 for ncn_progname in windmc; do
9549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9550 set dummy ${ncn_progname}; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_prog_WINDMC+:} false; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 if test -n "$WINDMC"; then
9557 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9566 ac_cv_prog_WINDMC="${ncn_progname}"
9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 fi
9575 fi
9576 WINDMC=$ac_cv_prog_WINDMC
9577 if test -n "$WINDMC"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9579 $as_echo "$WINDMC" >&6; }
9580 else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584
9585
9586 done
9587 fi
9588
9589 for ncn_progname in windmc; do
9590 if test -n "$ncn_tool_prefix"; then
9591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594 $as_echo_n "checking for $ac_word... " >&6; }
9595 if ${ac_cv_prog_WINDMC+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 if test -n "$WINDMC"; then
9599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9600 else
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 break 2
9611 fi
9612 done
9613 done
9614 IFS=$as_save_IFS
9615
9616 fi
9617 fi
9618 WINDMC=$ac_cv_prog_WINDMC
9619 if test -n "$WINDMC"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9621 $as_echo "$WINDMC" >&6; }
9622 else
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625 fi
9626
9627
9628 fi
9629 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9631 set dummy ${ncn_progname}; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_WINDMC+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -n "$WINDMC"; then
9638 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_WINDMC="${ncn_progname}"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9650 fi
9651 done
9652 done
9653 IFS=$as_save_IFS
9654
9655 fi
9656 fi
9657 WINDMC=$ac_cv_prog_WINDMC
9658 if test -n "$WINDMC"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9660 $as_echo "$WINDMC" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667 fi
9668 test -n "$ac_cv_prog_WINDMC" && break
9669 done
9670
9671 if test -z "$ac_cv_prog_WINDMC" ; then
9672 set dummy windmc
9673 if test $build = $host ; then
9674 WINDMC="$2"
9675 else
9676 WINDMC="${ncn_tool_prefix}$2"
9677 fi
9678 fi
9679
9680
9681
9682 if test -n "$OBJCOPY"; then
9683 ac_cv_prog_OBJCOPY=$OBJCOPY
9684 elif test -n "$ac_cv_prog_OBJCOPY"; then
9685 OBJCOPY=$ac_cv_prog_OBJCOPY
9686 fi
9687
9688 if test -n "$ac_cv_prog_OBJCOPY"; then
9689 for ncn_progname in objcopy; do
9690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9691 set dummy ${ncn_progname}; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if ${ac_cv_prog_OBJCOPY+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 if test -n "$OBJCOPY"; then
9698 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9699 else
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701 for as_dir in $PATH
9702 do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9707 ac_cv_prog_OBJCOPY="${ncn_progname}"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711 done
9712 done
9713 IFS=$as_save_IFS
9714
9715 fi
9716 fi
9717 OBJCOPY=$ac_cv_prog_OBJCOPY
9718 if test -n "$OBJCOPY"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9720 $as_echo "$OBJCOPY" >&6; }
9721 else
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9724 fi
9725
9726
9727 done
9728 fi
9729
9730 for ncn_progname in objcopy; do
9731 if test -n "$ncn_tool_prefix"; then
9732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9733 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9735 $as_echo_n "checking for $ac_word... " >&6; }
9736 if ${ac_cv_prog_OBJCOPY+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 if test -n "$OBJCOPY"; then
9740 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9741 else
9742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 for as_dir in $PATH
9744 do
9745 IFS=$as_save_IFS
9746 test -z "$as_dir" && as_dir=.
9747 for ac_exec_ext in '' $ac_executable_extensions; do
9748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9749 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9751 break 2
9752 fi
9753 done
9754 done
9755 IFS=$as_save_IFS
9756
9757 fi
9758 fi
9759 OBJCOPY=$ac_cv_prog_OBJCOPY
9760 if test -n "$OBJCOPY"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9762 $as_echo "$OBJCOPY" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9766 fi
9767
9768
9769 fi
9770 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9772 set dummy ${ncn_progname}; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_prog_OBJCOPY+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 if test -n "$OBJCOPY"; then
9779 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9780 else
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_prog_OBJCOPY="${ncn_progname}"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9791 fi
9792 done
9793 done
9794 IFS=$as_save_IFS
9795
9796 fi
9797 fi
9798 OBJCOPY=$ac_cv_prog_OBJCOPY
9799 if test -n "$OBJCOPY"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9801 $as_echo "$OBJCOPY" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808 fi
9809 test -n "$ac_cv_prog_OBJCOPY" && break
9810 done
9811
9812 if test -z "$ac_cv_prog_OBJCOPY" ; then
9813 set dummy objcopy
9814 if test $build = $host ; then
9815 OBJCOPY="$2"
9816 else
9817 OBJCOPY="${ncn_tool_prefix}$2"
9818 fi
9819 fi
9820
9821
9822
9823 if test -n "$OBJDUMP"; then
9824 ac_cv_prog_OBJDUMP=$OBJDUMP
9825 elif test -n "$ac_cv_prog_OBJDUMP"; then
9826 OBJDUMP=$ac_cv_prog_OBJDUMP
9827 fi
9828
9829 if test -n "$ac_cv_prog_OBJDUMP"; then
9830 for ncn_progname in objdump; do
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832 set dummy ${ncn_progname}; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if ${ac_cv_prog_OBJDUMP+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 if test -n "$OBJDUMP"; then
9839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9840 else
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9843 do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_OBJDUMP="${ncn_progname}"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9851 fi
9852 done
9853 done
9854 IFS=$as_save_IFS
9855
9856 fi
9857 fi
9858 OBJDUMP=$ac_cv_prog_OBJDUMP
9859 if test -n "$OBJDUMP"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9861 $as_echo "$OBJDUMP" >&6; }
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866
9867
9868 done
9869 fi
9870
9871 for ncn_progname in objdump; do
9872 if test -n "$ncn_tool_prefix"; then
9873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9874 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_prog_OBJDUMP+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 if test -n "$OBJDUMP"; then
9881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9885 do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9893 fi
9894 done
9895 done
9896 IFS=$as_save_IFS
9897
9898 fi
9899 fi
9900 OBJDUMP=$ac_cv_prog_OBJDUMP
9901 if test -n "$OBJDUMP"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9903 $as_echo "$OBJDUMP" >&6; }
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9907 fi
9908
9909
9910 fi
9911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9913 set dummy ${ncn_progname}; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_prog_OBJDUMP+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 if test -n "$OBJDUMP"; then
9920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9924 do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_prog_OBJDUMP="${ncn_progname}"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933 done
9934 done
9935 IFS=$as_save_IFS
9936
9937 fi
9938 fi
9939 OBJDUMP=$ac_cv_prog_OBJDUMP
9940 if test -n "$OBJDUMP"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9942 $as_echo "$OBJDUMP" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947
9948
9949 fi
9950 test -n "$ac_cv_prog_OBJDUMP" && break
9951 done
9952
9953 if test -z "$ac_cv_prog_OBJDUMP" ; then
9954 set dummy objdump
9955 if test $build = $host ; then
9956 OBJDUMP="$2"
9957 else
9958 OBJDUMP="${ncn_tool_prefix}$2"
9959 fi
9960 fi
9961
9962
9963
9964 if test -n "$READELF"; then
9965 ac_cv_prog_READELF=$READELF
9966 elif test -n "$ac_cv_prog_READELF"; then
9967 READELF=$ac_cv_prog_READELF
9968 fi
9969
9970 if test -n "$ac_cv_prog_READELF"; then
9971 for ncn_progname in readelf; do
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973 set dummy ${ncn_progname}; ac_word=$2
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975 $as_echo_n "checking for $ac_word... " >&6; }
9976 if ${ac_cv_prog_READELF+:} false; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 if test -n "$READELF"; then
9980 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9981 else
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9984 do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_READELF="${ncn_progname}"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993 done
9994 done
9995 IFS=$as_save_IFS
9996
9997 fi
9998 fi
9999 READELF=$ac_cv_prog_READELF
10000 if test -n "$READELF"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10002 $as_echo "$READELF" >&6; }
10003 else
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007
10008
10009 done
10010 fi
10011
10012 for ncn_progname in readelf; do
10013 if test -n "$ncn_tool_prefix"; then
10014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_prog_READELF+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -n "$READELF"; then
10022 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10031 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10034 fi
10035 done
10036 done
10037 IFS=$as_save_IFS
10038
10039 fi
10040 fi
10041 READELF=$ac_cv_prog_READELF
10042 if test -n "$READELF"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10044 $as_echo "$READELF" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10048 fi
10049
10050
10051 fi
10052 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_READELF+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$READELF"; then
10061 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_READELF="${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074 done
10075 done
10076 IFS=$as_save_IFS
10077
10078 fi
10079 fi
10080 READELF=$ac_cv_prog_READELF
10081 if test -n "$READELF"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10083 $as_echo "$READELF" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 fi
10088
10089
10090 fi
10091 test -n "$ac_cv_prog_READELF" && break
10092 done
10093
10094 if test -z "$ac_cv_prog_READELF" ; then
10095 set dummy readelf
10096 if test $build = $host ; then
10097 READELF="$2"
10098 else
10099 READELF="${ncn_tool_prefix}$2"
10100 fi
10101 fi
10102
10103
10104
10105
10106
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10109 $as_echo_n "checking for -plugin option... " >&6; }
10110
10111 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10112 plugin_option=
10113 for plugin in $plugin_names; do
10114 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10115 if test x$plugin_so = x$plugin; then
10116 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10117 fi
10118 if test x$plugin_so != x$plugin; then
10119 plugin_option="--plugin $plugin_so"
10120 break
10121 fi
10122 done
10123 if test -n "$plugin_option"; then
10124 PLUGIN_OPTION="$plugin_option"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10126 $as_echo "$plugin_option" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10130 fi
10131
10132 AR_PLUGIN_OPTION=
10133 RANLIB_PLUGIN_OPTION=
10134 if test -n "$PLUGIN_OPTION"; then
10135 if $AR --help 2>&1 | grep -q "\--plugin"; then
10136 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10137 fi
10138 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10139 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10140 fi
10141 fi
10142
10143
10144
10145 # Target tools.
10146
10147 # Check whether --with-build-time-tools was given.
10148 if test "${with_build_time_tools+set}" = set; then :
10149 withval=$with_build_time_tools; case x"$withval" in
10150 x/*) ;;
10151 *)
10152 with_build_time_tools=
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10154 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10155 ;;
10156 esac
10157 else
10158 with_build_time_tools=
10159 fi
10160
10161
10162
10163
10164 if test -n "$CC_FOR_TARGET"; then
10165 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10166 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10167 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10168 fi
10169
10170 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10171 for ncn_progname in cc gcc; do
10172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10173 set dummy ${ncn_progname}; ac_word=$2
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175 $as_echo_n "checking for $ac_word... " >&6; }
10176 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 if test -n "$CC_FOR_TARGET"; then
10180 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10181 else
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10184 do
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10189 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 break 2
10192 fi
10193 done
10194 done
10195 IFS=$as_save_IFS
10196
10197 fi
10198 fi
10199 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10200 if test -n "$CC_FOR_TARGET"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10202 $as_echo "$CC_FOR_TARGET" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10206 fi
10207
10208
10209 done
10210 fi
10211
10212 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10213 for ncn_progname in cc gcc; do
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10215 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10216 if test -x $with_build_time_tools/${ncn_progname}; then
10217 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10219 $as_echo "yes" >&6; }
10220 break
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225 done
10226 fi
10227
10228 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10229 for ncn_progname in cc gcc; do
10230 if test -n "$ncn_target_tool_prefix"; then
10231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10232 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234 $as_echo_n "checking for $ac_word... " >&6; }
10235 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 if test -n "$CC_FOR_TARGET"; then
10239 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10243 do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252 done
10253 done
10254 IFS=$as_save_IFS
10255
10256 fi
10257 fi
10258 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10259 if test -n "$CC_FOR_TARGET"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10261 $as_echo "$CC_FOR_TARGET" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10265 fi
10266
10267
10268 fi
10269 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10271 set dummy ${ncn_progname}; ac_word=$2
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10273 $as_echo_n "checking for $ac_word... " >&6; }
10274 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 if test -n "$CC_FOR_TARGET"; then
10278 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10279 else
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10282 do
10283 IFS=$as_save_IFS
10284 test -z "$as_dir" && as_dir=.
10285 for ac_exec_ext in '' $ac_executable_extensions; do
10286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289 break 2
10290 fi
10291 done
10292 done
10293 IFS=$as_save_IFS
10294
10295 fi
10296 fi
10297 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10298 if test -n "$CC_FOR_TARGET"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10300 $as_echo "$CC_FOR_TARGET" >&6; }
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10304 fi
10305
10306
10307 fi
10308 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10309 done
10310 fi
10311
10312 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10313 set dummy cc gcc
10314 if test $build = $target ; then
10315 CC_FOR_TARGET="$2"
10316 else
10317 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10318 fi
10319 else
10320 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10321 fi
10322
10323
10324
10325 if test -n "$CXX_FOR_TARGET"; then
10326 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10327 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10328 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10329 fi
10330
10331 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10332 for ncn_progname in c++ g++ cxx gxx; do
10333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10334 set dummy ${ncn_progname}; ac_word=$2
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10336 $as_echo_n "checking for $ac_word... " >&6; }
10337 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 if test -n "$CXX_FOR_TARGET"; then
10341 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10342 else
10343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10344 for as_dir in $PATH
10345 do
10346 IFS=$as_save_IFS
10347 test -z "$as_dir" && as_dir=.
10348 for ac_exec_ext in '' $ac_executable_extensions; do
10349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10350 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 break 2
10353 fi
10354 done
10355 done
10356 IFS=$as_save_IFS
10357
10358 fi
10359 fi
10360 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10361 if test -n "$CXX_FOR_TARGET"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10363 $as_echo "$CXX_FOR_TARGET" >&6; }
10364 else
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10367 fi
10368
10369
10370 done
10371 fi
10372
10373 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10374 for ncn_progname in c++ g++ cxx gxx; do
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10376 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10377 if test -x $with_build_time_tools/${ncn_progname}; then
10378 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10380 $as_echo "yes" >&6; }
10381 break
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386 done
10387 fi
10388
10389 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10390 for ncn_progname in c++ g++ cxx gxx; do
10391 if test -n "$ncn_target_tool_prefix"; then
10392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10393 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test -n "$CXX_FOR_TARGET"; then
10400 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10404 do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413 done
10414 done
10415 IFS=$as_save_IFS
10416
10417 fi
10418 fi
10419 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10420 if test -n "$CXX_FOR_TARGET"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10422 $as_echo "$CXX_FOR_TARGET" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10426 fi
10427
10428
10429 fi
10430 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10432 set dummy ${ncn_progname}; ac_word=$2
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 $as_echo_n "checking for $ac_word... " >&6; }
10435 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10436 $as_echo_n "(cached) " >&6
10437 else
10438 if test -n "$CXX_FOR_TARGET"; then
10439 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10440 else
10441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10442 for as_dir in $PATH
10443 do
10444 IFS=$as_save_IFS
10445 test -z "$as_dir" && as_dir=.
10446 for ac_exec_ext in '' $ac_executable_extensions; do
10447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10448 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10450 break 2
10451 fi
10452 done
10453 done
10454 IFS=$as_save_IFS
10455
10456 fi
10457 fi
10458 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10459 if test -n "$CXX_FOR_TARGET"; then
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10461 $as_echo "$CXX_FOR_TARGET" >&6; }
10462 else
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464 $as_echo "no" >&6; }
10465 fi
10466
10467
10468 fi
10469 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10470 done
10471 fi
10472
10473 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10474 set dummy c++ g++ cxx gxx
10475 if test $build = $target ; then
10476 CXX_FOR_TARGET="$2"
10477 else
10478 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10479 fi
10480 else
10481 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10482 fi
10483
10484
10485
10486 if test -n "$GCC_FOR_TARGET"; then
10487 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10488 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10489 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10490 fi
10491
10492 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10493 for ncn_progname in gcc; do
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10495 set dummy ${ncn_progname}; ac_word=$2
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497 $as_echo_n "checking for $ac_word... " >&6; }
10498 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 if test -n "$GCC_FOR_TARGET"; then
10502 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10506 do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515 done
10516 done
10517 IFS=$as_save_IFS
10518
10519 fi
10520 fi
10521 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10522 if test -n "$GCC_FOR_TARGET"; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10524 $as_echo "$GCC_FOR_TARGET" >&6; }
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; }
10528 fi
10529
10530
10531 done
10532 fi
10533
10534 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10535 for ncn_progname in gcc; do
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10537 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10538 if test -x $with_build_time_tools/${ncn_progname}; then
10539 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 $as_echo "yes" >&6; }
10542 break
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547 done
10548 fi
10549
10550 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10551 for ncn_progname in gcc; do
10552 if test -n "$ncn_target_tool_prefix"; then
10553 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10554 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test -n "$GCC_FOR_TARGET"; then
10561 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574 done
10575 done
10576 IFS=$as_save_IFS
10577
10578 fi
10579 fi
10580 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10581 if test -n "$GCC_FOR_TARGET"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10583 $as_echo "$GCC_FOR_TARGET" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590 fi
10591 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10593 set dummy ${ncn_progname}; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 if test -n "$GCC_FOR_TARGET"; then
10600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10601 else
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10604 do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613 done
10614 done
10615 IFS=$as_save_IFS
10616
10617 fi
10618 fi
10619 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10620 if test -n "$GCC_FOR_TARGET"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10622 $as_echo "$GCC_FOR_TARGET" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 fi
10627
10628
10629 fi
10630 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10631 done
10632 fi
10633
10634 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10635 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10636 else
10637 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10638 fi
10639
10640
10641
10642 if test -n "$GFORTRAN_FOR_TARGET"; then
10643 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10644 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10645 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10646 fi
10647
10648 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10649 for ncn_progname in gfortran; do
10650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10651 set dummy ${ncn_progname}; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 if test -n "$GFORTRAN_FOR_TARGET"; then
10658 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10659 else
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671 done
10672 done
10673 IFS=$as_save_IFS
10674
10675 fi
10676 fi
10677 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10678 if test -n "$GFORTRAN_FOR_TARGET"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10680 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10681 else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683 $as_echo "no" >&6; }
10684 fi
10685
10686
10687 done
10688 fi
10689
10690 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10691 for ncn_progname in gfortran; do
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10694 if test -x $with_build_time_tools/${ncn_progname}; then
10695 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10697 $as_echo "yes" >&6; }
10698 break
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 fi
10703 done
10704 fi
10705
10706 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10707 for ncn_progname in gfortran; do
10708 if test -n "$ncn_target_tool_prefix"; then
10709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test -n "$GFORTRAN_FOR_TARGET"; then
10717 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10718 else
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10721 do
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10726 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10729 fi
10730 done
10731 done
10732 IFS=$as_save_IFS
10733
10734 fi
10735 fi
10736 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10737 if test -n "$GFORTRAN_FOR_TARGET"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10739 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 fi
10744
10745
10746 fi
10747 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749 set dummy ${ncn_progname}; ac_word=$2
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 $as_echo_n "checking for $ac_word... " >&6; }
10752 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 if test -n "$GFORTRAN_FOR_TARGET"; then
10756 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769 done
10770 done
10771 IFS=$as_save_IFS
10772
10773 fi
10774 fi
10775 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10776 if test -n "$GFORTRAN_FOR_TARGET"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10778 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781 $as_echo "no" >&6; }
10782 fi
10783
10784
10785 fi
10786 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10787 done
10788 fi
10789
10790 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10791 set dummy gfortran
10792 if test $build = $target ; then
10793 GFORTRAN_FOR_TARGET="$2"
10794 else
10795 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10796 fi
10797 else
10798 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10799 fi
10800
10801
10802
10803 if test -n "$GOC_FOR_TARGET"; then
10804 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10805 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10806 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10807 fi
10808
10809 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10810 for ncn_progname in gccgo; do
10811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10812 set dummy ${ncn_progname}; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 if test -n "$GOC_FOR_TARGET"; then
10819 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10820 else
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832 done
10833 done
10834 IFS=$as_save_IFS
10835
10836 fi
10837 fi
10838 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10839 if test -n "$GOC_FOR_TARGET"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10841 $as_echo "$GOC_FOR_TARGET" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10845 fi
10846
10847
10848 done
10849 fi
10850
10851 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10852 for ncn_progname in gccgo; do
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10855 if test -x $with_build_time_tools/${ncn_progname}; then
10856 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10858 $as_echo "yes" >&6; }
10859 break
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864 done
10865 fi
10866
10867 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10868 for ncn_progname in gccgo; do
10869 if test -n "$ncn_target_tool_prefix"; then
10870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 if test -n "$GOC_FOR_TARGET"; then
10878 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10879 else
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10882 do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891 done
10892 done
10893 IFS=$as_save_IFS
10894
10895 fi
10896 fi
10897 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10898 if test -n "$GOC_FOR_TARGET"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10900 $as_echo "$GOC_FOR_TARGET" >&6; }
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905
10906
10907 fi
10908 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10910 set dummy ${ncn_progname}; ac_word=$2
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10912 $as_echo_n "checking for $ac_word... " >&6; }
10913 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 if test -n "$GOC_FOR_TARGET"; then
10917 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10918 else
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920 for as_dir in $PATH
10921 do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10926 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 break 2
10929 fi
10930 done
10931 done
10932 IFS=$as_save_IFS
10933
10934 fi
10935 fi
10936 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10937 if test -n "$GOC_FOR_TARGET"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10939 $as_echo "$GOC_FOR_TARGET" >&6; }
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10943 fi
10944
10945
10946 fi
10947 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10948 done
10949 fi
10950
10951 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10952 set dummy gccgo
10953 if test $build = $target ; then
10954 GOC_FOR_TARGET="$2"
10955 else
10956 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10957 fi
10958 else
10959 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10960 fi
10961
10962
10963
10964 cat > conftest.c << \EOF
10965 #ifdef __GNUC__
10966 gcc_yay;
10967 #endif
10968 EOF
10969 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10970 have_gcc_for_target=yes
10971 else
10972 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10973 have_gcc_for_target=no
10974 fi
10975 rm conftest.c
10976
10977
10978
10979
10980 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10981 if test -n "$with_build_time_tools"; then
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10983 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10984 if test -x $with_build_time_tools/ar; then
10985 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10986 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10988 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
10994 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10995 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10996 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10997 fi
10998 fi
10999 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11000 # Extract the first word of "ar", so it can be a program name with args.
11001 set dummy ar; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 case $AR_FOR_TARGET in
11008 [\\/]* | ?:[\\/]*)
11009 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11010 ;;
11011 *)
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $gcc_cv_tool_dirs
11014 do
11015 IFS=$as_save_IFS
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 break 2
11022 fi
11023 done
11024 done
11025 IFS=$as_save_IFS
11026
11027 ;;
11028 esac
11029 fi
11030 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11031 if test -n "$AR_FOR_TARGET"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11033 $as_echo "$AR_FOR_TARGET" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038
11039
11040 fi
11041 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11042
11043
11044 if test -n "$AR_FOR_TARGET"; then
11045 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11046 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11047 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11048 fi
11049
11050 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11051 for ncn_progname in ar; do
11052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11053 set dummy ${ncn_progname}; ac_word=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 if test -n "$AR_FOR_TARGET"; then
11060 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11061 else
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11064 do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11072 fi
11073 done
11074 done
11075 IFS=$as_save_IFS
11076
11077 fi
11078 fi
11079 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11080 if test -n "$AR_FOR_TARGET"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11082 $as_echo "$AR_FOR_TARGET" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11086 fi
11087
11088
11089 done
11090 fi
11091
11092 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11093 for ncn_progname in ar; do
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11095 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11096 if test -x $with_build_time_tools/${ncn_progname}; then
11097 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11099 $as_echo "yes" >&6; }
11100 break
11101 else
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11103 $as_echo "no" >&6; }
11104 fi
11105 done
11106 fi
11107
11108 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11109 for ncn_progname in ar; do
11110 if test -n "$ncn_target_tool_prefix"; then
11111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 $as_echo_n "checking for $ac_word... " >&6; }
11115 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11116 $as_echo_n "(cached) " >&6
11117 else
11118 if test -n "$AR_FOR_TARGET"; then
11119 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11120 else
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11123 do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132 done
11133 done
11134 IFS=$as_save_IFS
11135
11136 fi
11137 fi
11138 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11139 if test -n "$AR_FOR_TARGET"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11141 $as_echo "$AR_FOR_TARGET" >&6; }
11142 else
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 $as_echo "no" >&6; }
11145 fi
11146
11147
11148 fi
11149 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151 set dummy ${ncn_progname}; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 if test -n "$AR_FOR_TARGET"; then
11158 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11159 else
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11162 do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171 done
11172 done
11173 IFS=$as_save_IFS
11174
11175 fi
11176 fi
11177 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11178 if test -n "$AR_FOR_TARGET"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11180 $as_echo "$AR_FOR_TARGET" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 fi
11185
11186
11187 fi
11188 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11189 done
11190 fi
11191
11192 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11193 set dummy ar
11194 if test $build = $target ; then
11195 AR_FOR_TARGET="$2"
11196 else
11197 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11198 fi
11199 else
11200 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11201 fi
11202
11203 else
11204 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11205 fi
11206
11207
11208
11209
11210 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11211 if test -n "$with_build_time_tools"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11213 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11214 if test -x $with_build_time_tools/as; then
11215 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11216 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11218 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
11224 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11225 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11226 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11227 fi
11228 fi
11229 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11230 # Extract the first word of "as", so it can be a program name with args.
11231 set dummy as; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 case $AS_FOR_TARGET in
11238 [\\/]* | ?:[\\/]*)
11239 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11240 ;;
11241 *)
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $gcc_cv_tool_dirs
11244 do
11245 IFS=$as_save_IFS
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11249 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 break 2
11252 fi
11253 done
11254 done
11255 IFS=$as_save_IFS
11256
11257 ;;
11258 esac
11259 fi
11260 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11261 if test -n "$AS_FOR_TARGET"; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11263 $as_echo "$AS_FOR_TARGET" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268
11269
11270 fi
11271 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11272
11273
11274 if test -n "$AS_FOR_TARGET"; then
11275 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11276 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11277 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11278 fi
11279
11280 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11281 for ncn_progname in as; do
11282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11283 set dummy ${ncn_progname}; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 if test -n "$AS_FOR_TARGET"; then
11290 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11291 else
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11294 do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11302 fi
11303 done
11304 done
11305 IFS=$as_save_IFS
11306
11307 fi
11308 fi
11309 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11310 if test -n "$AS_FOR_TARGET"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11312 $as_echo "$AS_FOR_TARGET" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316 fi
11317
11318
11319 done
11320 fi
11321
11322 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11323 for ncn_progname in as; do
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11325 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11326 if test -x $with_build_time_tools/${ncn_progname}; then
11327 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11330 break
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 fi
11335 done
11336 fi
11337
11338 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11339 for ncn_progname in as; do
11340 if test -n "$ncn_target_tool_prefix"; then
11341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344 $as_echo_n "checking for $ac_word... " >&6; }
11345 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 if test -n "$AS_FOR_TARGET"; then
11349 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362 done
11363 done
11364 IFS=$as_save_IFS
11365
11366 fi
11367 fi
11368 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11369 if test -n "$AS_FOR_TARGET"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11371 $as_echo "$AS_FOR_TARGET" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376
11377
11378 fi
11379 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11381 set dummy ${ncn_progname}; ac_word=$2
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 $as_echo_n "checking for $ac_word... " >&6; }
11384 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 if test -n "$AS_FOR_TARGET"; then
11388 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11389 else
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393 IFS=$as_save_IFS
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 break 2
11400 fi
11401 done
11402 done
11403 IFS=$as_save_IFS
11404
11405 fi
11406 fi
11407 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11408 if test -n "$AS_FOR_TARGET"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11410 $as_echo "$AS_FOR_TARGET" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11415
11416
11417 fi
11418 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11419 done
11420 fi
11421
11422 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11423 set dummy as
11424 if test $build = $target ; then
11425 AS_FOR_TARGET="$2"
11426 else
11427 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11428 fi
11429 else
11430 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11431 fi
11432
11433 else
11434 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11435 fi
11436
11437
11438
11439
11440 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11441 if test -n "$with_build_time_tools"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11443 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11444 if test -x $with_build_time_tools/dlltool; then
11445 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11446 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11448 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
11454 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11455 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11456 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11457 fi
11458 fi
11459 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11460 # Extract the first word of "dlltool", so it can be a program name with args.
11461 set dummy dlltool; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 case $DLLTOOL_FOR_TARGET in
11468 [\\/]* | ?:[\\/]*)
11469 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11470 ;;
11471 *)
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $gcc_cv_tool_dirs
11474 do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483 done
11484 done
11485 IFS=$as_save_IFS
11486
11487 ;;
11488 esac
11489 fi
11490 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11491 if test -n "$DLLTOOL_FOR_TARGET"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11493 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 fi
11498
11499
11500 fi
11501 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11502
11503
11504 if test -n "$DLLTOOL_FOR_TARGET"; then
11505 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11506 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11507 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11508 fi
11509
11510 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11511 for ncn_progname in dlltool; do
11512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11513 set dummy ${ncn_progname}; ac_word=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 if test -n "$DLLTOOL_FOR_TARGET"; then
11520 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11521 else
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $PATH
11524 do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533 done
11534 done
11535 IFS=$as_save_IFS
11536
11537 fi
11538 fi
11539 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11540 if test -n "$DLLTOOL_FOR_TARGET"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11542 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547
11548
11549 done
11550 fi
11551
11552 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11553 for ncn_progname in dlltool; do
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11555 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11556 if test -x $with_build_time_tools/${ncn_progname}; then
11557 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11560 break
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565 done
11566 fi
11567
11568 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11569 for ncn_progname in dlltool; do
11570 if test -n "$ncn_target_tool_prefix"; then
11571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574 $as_echo_n "checking for $ac_word... " >&6; }
11575 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 if test -n "$DLLTOOL_FOR_TARGET"; then
11579 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11580 else
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11583 do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11588 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 break 2
11591 fi
11592 done
11593 done
11594 IFS=$as_save_IFS
11595
11596 fi
11597 fi
11598 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11599 if test -n "$DLLTOOL_FOR_TARGET"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11601 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 fi
11606
11607
11608 fi
11609 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11611 set dummy ${ncn_progname}; ac_word=$2
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11613 $as_echo_n "checking for $ac_word... " >&6; }
11614 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 if test -n "$DLLTOOL_FOR_TARGET"; then
11618 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11619 else
11620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11622 do
11623 IFS=$as_save_IFS
11624 test -z "$as_dir" && as_dir=.
11625 for ac_exec_ext in '' $ac_executable_extensions; do
11626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 break 2
11630 fi
11631 done
11632 done
11633 IFS=$as_save_IFS
11634
11635 fi
11636 fi
11637 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11638 if test -n "$DLLTOOL_FOR_TARGET"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11640 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 fi
11645
11646
11647 fi
11648 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11649 done
11650 fi
11651
11652 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11653 set dummy dlltool
11654 if test $build = $target ; then
11655 DLLTOOL_FOR_TARGET="$2"
11656 else
11657 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11658 fi
11659 else
11660 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11661 fi
11662
11663 else
11664 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11665 fi
11666
11667
11668
11669
11670 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11671 if test -n "$with_build_time_tools"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11673 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11674 if test -x $with_build_time_tools/ld; then
11675 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11676 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11678 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
11684 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11685 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11686 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11687 fi
11688 fi
11689 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11690 # Extract the first word of "ld", so it can be a program name with args.
11691 set dummy ld; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $LD_FOR_TARGET in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11700 ;;
11701 *)
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $gcc_cv_tool_dirs
11704 do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11712 fi
11713 done
11714 done
11715 IFS=$as_save_IFS
11716
11717 ;;
11718 esac
11719 fi
11720 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11721 if test -n "$LD_FOR_TARGET"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11723 $as_echo "$LD_FOR_TARGET" >&6; }
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728
11729
11730 fi
11731 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11732
11733
11734 if test -n "$LD_FOR_TARGET"; then
11735 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11736 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11737 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11738 fi
11739
11740 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11741 for ncn_progname in ld; do
11742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11743 set dummy ${ncn_progname}; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 if test -n "$LD_FOR_TARGET"; then
11750 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11751 else
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763 done
11764 done
11765 IFS=$as_save_IFS
11766
11767 fi
11768 fi
11769 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11770 if test -n "$LD_FOR_TARGET"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11772 $as_echo "$LD_FOR_TARGET" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777
11778
11779 done
11780 fi
11781
11782 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11783 for ncn_progname in ld; do
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11785 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11786 if test -x $with_build_time_tools/${ncn_progname}; then
11787 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 break
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795 done
11796 fi
11797
11798 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11799 for ncn_progname in ld; do
11800 if test -n "$ncn_target_tool_prefix"; then
11801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11802 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 if test -n "$LD_FOR_TARGET"; then
11809 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826 fi
11827 fi
11828 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11829 if test -n "$LD_FOR_TARGET"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11831 $as_echo "$LD_FOR_TARGET" >&6; }
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 fi
11836
11837
11838 fi
11839 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11841 set dummy ${ncn_progname}; ac_word=$2
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843 $as_echo_n "checking for $ac_word... " >&6; }
11844 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 if test -n "$LD_FOR_TARGET"; then
11848 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11849 else
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851 for as_dir in $PATH
11852 do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11857 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 break 2
11860 fi
11861 done
11862 done
11863 IFS=$as_save_IFS
11864
11865 fi
11866 fi
11867 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11868 if test -n "$LD_FOR_TARGET"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11870 $as_echo "$LD_FOR_TARGET" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11874 fi
11875
11876
11877 fi
11878 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11879 done
11880 fi
11881
11882 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11883 set dummy ld
11884 if test $build = $target ; then
11885 LD_FOR_TARGET="$2"
11886 else
11887 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11888 fi
11889 else
11890 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11891 fi
11892
11893 else
11894 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11895 fi
11896
11897
11898
11899
11900 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11901 if test -n "$with_build_time_tools"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11903 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11904 if test -x $with_build_time_tools/lipo; then
11905 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11906 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11908 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
11914 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11915 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11916 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11917 fi
11918 fi
11919 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11920 # Extract the first word of "lipo", so it can be a program name with args.
11921 set dummy lipo; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 case $LIPO_FOR_TARGET in
11928 [\\/]* | ?:[\\/]*)
11929 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11930 ;;
11931 *)
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $gcc_cv_tool_dirs
11934 do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943 done
11944 done
11945 IFS=$as_save_IFS
11946
11947 ;;
11948 esac
11949 fi
11950 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11951 if test -n "$LIPO_FOR_TARGET"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11953 $as_echo "$LIPO_FOR_TARGET" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 fi
11958
11959
11960 fi
11961 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11962
11963
11964 if test -n "$LIPO_FOR_TARGET"; then
11965 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11966 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11967 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11968 fi
11969
11970 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11971 for ncn_progname in lipo; do
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11973 set dummy ${ncn_progname}; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975 $as_echo_n "checking for $ac_word... " >&6; }
11976 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 if test -n "$LIPO_FOR_TARGET"; then
11980 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11981 else
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11992 fi
11993 done
11994 done
11995 IFS=$as_save_IFS
11996
11997 fi
11998 fi
11999 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12000 if test -n "$LIPO_FOR_TARGET"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12002 $as_echo "$LIPO_FOR_TARGET" >&6; }
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 fi
12007
12008
12009 done
12010 fi
12011
12012 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12013 for ncn_progname in lipo; do
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12015 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12016 if test -x $with_build_time_tools/${ncn_progname}; then
12017 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12019 $as_echo "yes" >&6; }
12020 break
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025 done
12026 fi
12027
12028 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12029 for ncn_progname in lipo; do
12030 if test -n "$ncn_target_tool_prefix"; then
12031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 if test -n "$LIPO_FOR_TARGET"; then
12039 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052 done
12053 done
12054 IFS=$as_save_IFS
12055
12056 fi
12057 fi
12058 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12059 if test -n "$LIPO_FOR_TARGET"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12061 $as_echo "$LIPO_FOR_TARGET" >&6; }
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068 fi
12069 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12071 set dummy ${ncn_progname}; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073 $as_echo_n "checking for $ac_word... " >&6; }
12074 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 if test -n "$LIPO_FOR_TARGET"; then
12078 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083 IFS=$as_save_IFS
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089 break 2
12090 fi
12091 done
12092 done
12093 IFS=$as_save_IFS
12094
12095 fi
12096 fi
12097 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12098 if test -n "$LIPO_FOR_TARGET"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12100 $as_echo "$LIPO_FOR_TARGET" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105
12106
12107 fi
12108 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12109 done
12110 fi
12111
12112 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12113 set dummy lipo
12114 if test $build = $target ; then
12115 LIPO_FOR_TARGET="$2"
12116 else
12117 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12118 fi
12119 else
12120 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12121 fi
12122
12123 else
12124 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12125 fi
12126
12127
12128
12129
12130 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12131 if test -n "$with_build_time_tools"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12133 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12134 if test -x $with_build_time_tools/nm; then
12135 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12136 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12138 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
12144 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12145 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12146 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12147 fi
12148 fi
12149 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12150 # Extract the first word of "nm", so it can be a program name with args.
12151 set dummy nm; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153 $as_echo_n "checking for $ac_word... " >&6; }
12154 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 case $NM_FOR_TARGET in
12158 [\\/]* | ?:[\\/]*)
12159 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12160 ;;
12161 *)
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $gcc_cv_tool_dirs
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 ;;
12178 esac
12179 fi
12180 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12181 if test -n "$NM_FOR_TARGET"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12183 $as_echo "$NM_FOR_TARGET" >&6; }
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188
12189
12190 fi
12191 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12192
12193
12194 if test -n "$NM_FOR_TARGET"; then
12195 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12196 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12197 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12198 fi
12199
12200 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12201 for ncn_progname in nm; do
12202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12203 set dummy ${ncn_progname}; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 if test -n "$NM_FOR_TARGET"; then
12210 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12214 do
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12219 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12222 fi
12223 done
12224 done
12225 IFS=$as_save_IFS
12226
12227 fi
12228 fi
12229 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12230 if test -n "$NM_FOR_TARGET"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12232 $as_echo "$NM_FOR_TARGET" >&6; }
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236 fi
12237
12238
12239 done
12240 fi
12241
12242 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12243 for ncn_progname in nm; do
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12245 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12246 if test -x $with_build_time_tools/${ncn_progname}; then
12247 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249 $as_echo "yes" >&6; }
12250 break
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12254 fi
12255 done
12256 fi
12257
12258 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12259 for ncn_progname in nm; do
12260 if test -n "$ncn_target_tool_prefix"; then
12261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12262 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 if test -n "$NM_FOR_TARGET"; then
12269 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282 done
12283 done
12284 IFS=$as_save_IFS
12285
12286 fi
12287 fi
12288 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12289 if test -n "$NM_FOR_TARGET"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12291 $as_echo "$NM_FOR_TARGET" >&6; }
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296
12297
12298 fi
12299 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12301 set dummy ${ncn_progname}; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 if test -n "$NM_FOR_TARGET"; then
12308 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12309 else
12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12311 for as_dir in $PATH
12312 do
12313 IFS=$as_save_IFS
12314 test -z "$as_dir" && as_dir=.
12315 for ac_exec_ext in '' $ac_executable_extensions; do
12316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12317 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 break 2
12320 fi
12321 done
12322 done
12323 IFS=$as_save_IFS
12324
12325 fi
12326 fi
12327 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12328 if test -n "$NM_FOR_TARGET"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12330 $as_echo "$NM_FOR_TARGET" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335
12336
12337 fi
12338 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12339 done
12340 fi
12341
12342 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12343 set dummy nm
12344 if test $build = $target ; then
12345 NM_FOR_TARGET="$2"
12346 else
12347 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12348 fi
12349 else
12350 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12351 fi
12352
12353 else
12354 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12355 fi
12356
12357
12358
12359
12360 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12361 if test -n "$with_build_time_tools"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12363 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12364 if test -x $with_build_time_tools/objcopy; then
12365 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12366 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12368 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
12374 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12375 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12376 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12377 fi
12378 fi
12379 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12380 # Extract the first word of "objcopy", so it can be a program name with args.
12381 set dummy objcopy; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 case $OBJCOPY_FOR_TARGET in
12388 [\\/]* | ?:[\\/]*)
12389 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12390 ;;
12391 *)
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $gcc_cv_tool_dirs
12394 do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12399 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12401 break 2
12402 fi
12403 done
12404 done
12405 IFS=$as_save_IFS
12406
12407 ;;
12408 esac
12409 fi
12410 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12411 if test -n "$OBJCOPY_FOR_TARGET"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12413 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418
12419
12420 fi
12421 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12422
12423
12424 if test -n "$OBJCOPY_FOR_TARGET"; then
12425 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12426 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12427 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12428 fi
12429
12430 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12431 for ncn_progname in objcopy; do
12432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12433 set dummy ${ncn_progname}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 if test -n "$OBJCOPY_FOR_TARGET"; then
12440 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12441 else
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12444 do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12452 fi
12453 done
12454 done
12455 IFS=$as_save_IFS
12456
12457 fi
12458 fi
12459 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12460 if test -n "$OBJCOPY_FOR_TARGET"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12462 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466 fi
12467
12468
12469 done
12470 fi
12471
12472 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12473 for ncn_progname in objcopy; do
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12475 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12476 if test -x $with_build_time_tools/${ncn_progname}; then
12477 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479 $as_echo "yes" >&6; }
12480 break
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485 done
12486 fi
12487
12488 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12489 for ncn_progname in objcopy; do
12490 if test -n "$ncn_target_tool_prefix"; then
12491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 if test -n "$OBJCOPY_FOR_TARGET"; then
12499 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12500 else
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12503 do
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12511 fi
12512 done
12513 done
12514 IFS=$as_save_IFS
12515
12516 fi
12517 fi
12518 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12519 if test -n "$OBJCOPY_FOR_TARGET"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12521 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12522 else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524 $as_echo "no" >&6; }
12525 fi
12526
12527
12528 fi
12529 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12531 set dummy ${ncn_progname}; ac_word=$2
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12533 $as_echo_n "checking for $ac_word... " >&6; }
12534 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 if test -n "$OBJCOPY_FOR_TARGET"; then
12538 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12539 else
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549 break 2
12550 fi
12551 done
12552 done
12553 IFS=$as_save_IFS
12554
12555 fi
12556 fi
12557 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12558 if test -n "$OBJCOPY_FOR_TARGET"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12560 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 fi
12565
12566
12567 fi
12568 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12569 done
12570 fi
12571
12572 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12573 set dummy objcopy
12574 if test $build = $target ; then
12575 OBJCOPY_FOR_TARGET="$2"
12576 else
12577 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12578 fi
12579 else
12580 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12581 fi
12582
12583 else
12584 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12585 fi
12586
12587
12588
12589
12590 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12591 if test -n "$with_build_time_tools"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12593 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12594 if test -x $with_build_time_tools/objdump; then
12595 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12596 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12598 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
12604 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12605 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12606 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12607 fi
12608 fi
12609 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12610 # Extract the first word of "objdump", so it can be a program name with args.
12611 set dummy objdump; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 case $OBJDUMP_FOR_TARGET in
12618 [\\/]* | ?:[\\/]*)
12619 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12620 ;;
12621 *)
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $gcc_cv_tool_dirs
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12632 fi
12633 done
12634 done
12635 IFS=$as_save_IFS
12636
12637 ;;
12638 esac
12639 fi
12640 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12641 if test -n "$OBJDUMP_FOR_TARGET"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12643 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648
12649
12650 fi
12651 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12652
12653
12654 if test -n "$OBJDUMP_FOR_TARGET"; then
12655 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12656 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12657 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12658 fi
12659
12660 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12661 for ncn_progname in objdump; do
12662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12663 set dummy ${ncn_progname}; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 if test -n "$OBJDUMP_FOR_TARGET"; then
12670 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12671 else
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12674 do
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12682 fi
12683 done
12684 done
12685 IFS=$as_save_IFS
12686
12687 fi
12688 fi
12689 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12690 if test -n "$OBJDUMP_FOR_TARGET"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12692 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696 fi
12697
12698
12699 done
12700 fi
12701
12702 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12703 for ncn_progname in objdump; do
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12705 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12706 if test -x $with_build_time_tools/${ncn_progname}; then
12707 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12709 $as_echo "yes" >&6; }
12710 break
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714 fi
12715 done
12716 fi
12717
12718 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12719 for ncn_progname in objdump; do
12720 if test -n "$ncn_target_tool_prefix"; then
12721 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12722 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12724 $as_echo_n "checking for $ac_word... " >&6; }
12725 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test -n "$OBJDUMP_FOR_TARGET"; then
12729 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12730 else
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732 for as_dir in $PATH
12733 do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12738 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742 done
12743 done
12744 IFS=$as_save_IFS
12745
12746 fi
12747 fi
12748 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12749 if test -n "$OBJDUMP_FOR_TARGET"; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12751 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12755 fi
12756
12757
12758 fi
12759 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12761 set dummy ${ncn_progname}; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test -n "$OBJDUMP_FOR_TARGET"; then
12768 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12769 else
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12772 do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781 done
12782 done
12783 IFS=$as_save_IFS
12784
12785 fi
12786 fi
12787 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12788 if test -n "$OBJDUMP_FOR_TARGET"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12790 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795
12796
12797 fi
12798 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12799 done
12800 fi
12801
12802 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12803 set dummy objdump
12804 if test $build = $target ; then
12805 OBJDUMP_FOR_TARGET="$2"
12806 else
12807 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12808 fi
12809 else
12810 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12811 fi
12812
12813 else
12814 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12815 fi
12816
12817
12818
12819
12820 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12821 if test -n "$with_build_time_tools"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12823 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12824 if test -x $with_build_time_tools/ranlib; then
12825 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12826 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12828 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
12834 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12835 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12836 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12837 fi
12838 fi
12839 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12840 # Extract the first word of "ranlib", so it can be a program name with args.
12841 set dummy ranlib; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 case $RANLIB_FOR_TARGET in
12848 [\\/]* | ?:[\\/]*)
12849 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12850 ;;
12851 *)
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $gcc_cv_tool_dirs
12854 do
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12862 fi
12863 done
12864 done
12865 IFS=$as_save_IFS
12866
12867 ;;
12868 esac
12869 fi
12870 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12871 if test -n "$RANLIB_FOR_TARGET"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12873 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878
12879
12880 fi
12881 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12882
12883
12884 if test -n "$RANLIB_FOR_TARGET"; then
12885 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12886 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12887 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12888 fi
12889
12890 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12891 for ncn_progname in ranlib; do
12892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12893 set dummy ${ncn_progname}; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12895 $as_echo_n "checking for $ac_word... " >&6; }
12896 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12897 $as_echo_n "(cached) " >&6
12898 else
12899 if test -n "$RANLIB_FOR_TARGET"; then
12900 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12901 else
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12904 do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12912 fi
12913 done
12914 done
12915 IFS=$as_save_IFS
12916
12917 fi
12918 fi
12919 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12920 if test -n "$RANLIB_FOR_TARGET"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12922 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12926 fi
12927
12928
12929 done
12930 fi
12931
12932 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12933 for ncn_progname in ranlib; do
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12935 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12936 if test -x $with_build_time_tools/${ncn_progname}; then
12937 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12939 $as_echo "yes" >&6; }
12940 break
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944 fi
12945 done
12946 fi
12947
12948 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12949 for ncn_progname in ranlib; do
12950 if test -n "$ncn_target_tool_prefix"; then
12951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12952 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 $as_echo_n "checking for $ac_word... " >&6; }
12955 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 if test -n "$RANLIB_FOR_TARGET"; then
12959 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12960 else
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972 done
12973 done
12974 IFS=$as_save_IFS
12975
12976 fi
12977 fi
12978 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12979 if test -n "$RANLIB_FOR_TARGET"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12981 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985 fi
12986
12987
12988 fi
12989 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12991 set dummy ${ncn_progname}; ac_word=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 if test -n "$RANLIB_FOR_TARGET"; then
12998 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12999 else
13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001 for as_dir in $PATH
13002 do
13003 IFS=$as_save_IFS
13004 test -z "$as_dir" && as_dir=.
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13007 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011 done
13012 done
13013 IFS=$as_save_IFS
13014
13015 fi
13016 fi
13017 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13018 if test -n "$RANLIB_FOR_TARGET"; then
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13020 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024 fi
13025
13026
13027 fi
13028 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13029 done
13030 fi
13031
13032 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13033 set dummy ranlib
13034 if test $build = $target ; then
13035 RANLIB_FOR_TARGET="$2"
13036 else
13037 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13038 fi
13039 else
13040 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13041 fi
13042
13043 else
13044 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13045 fi
13046
13047
13048
13049
13050 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13051 if test -n "$with_build_time_tools"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13053 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13054 if test -x $with_build_time_tools/readelf; then
13055 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13056 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13058 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
13064 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13065 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13066 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13067 fi
13068 fi
13069 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13070 # Extract the first word of "readelf", so it can be a program name with args.
13071 set dummy readelf; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 case $READELF_FOR_TARGET in
13078 [\\/]* | ?:[\\/]*)
13079 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13080 ;;
13081 *)
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $gcc_cv_tool_dirs
13084 do
13085 IFS=$as_save_IFS
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13089 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 break 2
13092 fi
13093 done
13094 done
13095 IFS=$as_save_IFS
13096
13097 ;;
13098 esac
13099 fi
13100 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13101 if test -n "$READELF_FOR_TARGET"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13103 $as_echo "$READELF_FOR_TARGET" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108
13109
13110 fi
13111 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13112
13113
13114 if test -n "$READELF_FOR_TARGET"; then
13115 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13116 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13117 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13118 fi
13119
13120 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13121 for ncn_progname in readelf; do
13122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13123 set dummy ${ncn_progname}; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 if test -n "$READELF_FOR_TARGET"; then
13130 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13131 else
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13142 fi
13143 done
13144 done
13145 IFS=$as_save_IFS
13146
13147 fi
13148 fi
13149 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13150 if test -n "$READELF_FOR_TARGET"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13152 $as_echo "$READELF_FOR_TARGET" >&6; }
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 fi
13157
13158
13159 done
13160 fi
13161
13162 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13163 for ncn_progname in readelf; do
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13165 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13166 if test -x $with_build_time_tools/${ncn_progname}; then
13167 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13170 break
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175 done
13176 fi
13177
13178 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13179 for ncn_progname in readelf; do
13180 if test -n "$ncn_target_tool_prefix"; then
13181 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13182 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 if test -n "$READELF_FOR_TARGET"; then
13189 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13190 else
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13198 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 break 2
13201 fi
13202 done
13203 done
13204 IFS=$as_save_IFS
13205
13206 fi
13207 fi
13208 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13209 if test -n "$READELF_FOR_TARGET"; then
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13211 $as_echo "$READELF_FOR_TARGET" >&6; }
13212 else
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215 fi
13216
13217
13218 fi
13219 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13221 set dummy ${ncn_progname}; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 if test -n "$READELF_FOR_TARGET"; then
13228 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13229 else
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13232 do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241 done
13242 done
13243 IFS=$as_save_IFS
13244
13245 fi
13246 fi
13247 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13248 if test -n "$READELF_FOR_TARGET"; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13250 $as_echo "$READELF_FOR_TARGET" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 fi
13255
13256
13257 fi
13258 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13259 done
13260 fi
13261
13262 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13263 set dummy readelf
13264 if test $build = $target ; then
13265 READELF_FOR_TARGET="$2"
13266 else
13267 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13268 fi
13269 else
13270 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13271 fi
13272
13273 else
13274 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13275 fi
13276
13277
13278
13279
13280 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13281 if test -n "$with_build_time_tools"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13283 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13284 if test -x $with_build_time_tools/strip; then
13285 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13286 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13288 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
13294 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13295 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13296 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13297 fi
13298 fi
13299 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13300 # Extract the first word of "strip", so it can be a program name with args.
13301 set dummy strip; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 case $STRIP_FOR_TARGET in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $gcc_cv_tool_dirs
13314 do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323 done
13324 done
13325 IFS=$as_save_IFS
13326
13327 ;;
13328 esac
13329 fi
13330 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13331 if test -n "$STRIP_FOR_TARGET"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13333 $as_echo "$STRIP_FOR_TARGET" >&6; }
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338
13339
13340 fi
13341 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13342
13343
13344 if test -n "$STRIP_FOR_TARGET"; then
13345 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13346 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13347 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13348 fi
13349
13350 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13351 for ncn_progname in strip; do
13352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13353 set dummy ${ncn_progname}; ac_word=$2
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 $as_echo_n "checking for $ac_word... " >&6; }
13356 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13357 $as_echo_n "(cached) " >&6
13358 else
13359 if test -n "$STRIP_FOR_TARGET"; then
13360 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13361 else
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13369 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373 done
13374 done
13375 IFS=$as_save_IFS
13376
13377 fi
13378 fi
13379 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13380 if test -n "$STRIP_FOR_TARGET"; then
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13382 $as_echo "$STRIP_FOR_TARGET" >&6; }
13383 else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13386 fi
13387
13388
13389 done
13390 fi
13391
13392 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13393 for ncn_progname in strip; do
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13395 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13396 if test -x $with_build_time_tools/${ncn_progname}; then
13397 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13399 $as_echo "yes" >&6; }
13400 break
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13404 fi
13405 done
13406 fi
13407
13408 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13409 for ncn_progname in strip; do
13410 if test -n "$ncn_target_tool_prefix"; then
13411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13414 $as_echo_n "checking for $ac_word... " >&6; }
13415 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 if test -n "$STRIP_FOR_TARGET"; then
13419 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424 IFS=$as_save_IFS
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13430 break 2
13431 fi
13432 done
13433 done
13434 IFS=$as_save_IFS
13435
13436 fi
13437 fi
13438 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13439 if test -n "$STRIP_FOR_TARGET"; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13441 $as_echo "$STRIP_FOR_TARGET" >&6; }
13442 else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13445 fi
13446
13447
13448 fi
13449 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13451 set dummy ${ncn_progname}; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453 $as_echo_n "checking for $ac_word... " >&6; }
13454 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 if test -n "$STRIP_FOR_TARGET"; then
13458 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13459 else
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13462 do
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13467 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13469 break 2
13470 fi
13471 done
13472 done
13473 IFS=$as_save_IFS
13474
13475 fi
13476 fi
13477 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13478 if test -n "$STRIP_FOR_TARGET"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13480 $as_echo "$STRIP_FOR_TARGET" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 fi
13485
13486
13487 fi
13488 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13489 done
13490 fi
13491
13492 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13493 set dummy strip
13494 if test $build = $target ; then
13495 STRIP_FOR_TARGET="$2"
13496 else
13497 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13498 fi
13499 else
13500 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13501 fi
13502
13503 else
13504 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13505 fi
13506
13507
13508
13509
13510 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13511 if test -n "$with_build_time_tools"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13513 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13514 if test -x $with_build_time_tools/windres; then
13515 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13516 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13518 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
13524 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13525 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13526 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13527 fi
13528 fi
13529 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13530 # Extract the first word of "windres", so it can be a program name with args.
13531 set dummy windres; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 case $WINDRES_FOR_TARGET in
13538 [\\/]* | ?:[\\/]*)
13539 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13540 ;;
13541 *)
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $gcc_cv_tool_dirs
13544 do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13549 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553 done
13554 done
13555 IFS=$as_save_IFS
13556
13557 ;;
13558 esac
13559 fi
13560 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13561 if test -n "$WINDRES_FOR_TARGET"; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13563 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568
13569
13570 fi
13571 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13572
13573
13574 if test -n "$WINDRES_FOR_TARGET"; then
13575 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13576 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13577 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13578 fi
13579
13580 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13581 for ncn_progname in windres; do
13582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13583 set dummy ${ncn_progname}; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585 $as_echo_n "checking for $ac_word... " >&6; }
13586 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 if test -n "$WINDRES_FOR_TARGET"; then
13590 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13591 else
13592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13593 for as_dir in $PATH
13594 do
13595 IFS=$as_save_IFS
13596 test -z "$as_dir" && as_dir=.
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13599 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13601 break 2
13602 fi
13603 done
13604 done
13605 IFS=$as_save_IFS
13606
13607 fi
13608 fi
13609 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13610 if test -n "$WINDRES_FOR_TARGET"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13612 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13616 fi
13617
13618
13619 done
13620 fi
13621
13622 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13623 for ncn_progname in windres; do
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13625 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13626 if test -x $with_build_time_tools/${ncn_progname}; then
13627 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13630 break
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635 done
13636 fi
13637
13638 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13639 for ncn_progname in windres; do
13640 if test -n "$ncn_target_tool_prefix"; then
13641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test -n "$WINDRES_FOR_TARGET"; then
13649 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13661 fi
13662 done
13663 done
13664 IFS=$as_save_IFS
13665
13666 fi
13667 fi
13668 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13669 if test -n "$WINDRES_FOR_TARGET"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13671 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678 fi
13679 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13681 set dummy ${ncn_progname}; ac_word=$2
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683 $as_echo_n "checking for $ac_word... " >&6; }
13684 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 if test -n "$WINDRES_FOR_TARGET"; then
13688 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13689 else
13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in $PATH
13692 do
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13697 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 break 2
13700 fi
13701 done
13702 done
13703 IFS=$as_save_IFS
13704
13705 fi
13706 fi
13707 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13708 if test -n "$WINDRES_FOR_TARGET"; then
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13710 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13711 else
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713 $as_echo "no" >&6; }
13714 fi
13715
13716
13717 fi
13718 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13719 done
13720 fi
13721
13722 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13723 set dummy windres
13724 if test $build = $target ; then
13725 WINDRES_FOR_TARGET="$2"
13726 else
13727 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13728 fi
13729 else
13730 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13731 fi
13732
13733 else
13734 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13735 fi
13736
13737
13738
13739
13740 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13741 if test -n "$with_build_time_tools"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13743 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13744 if test -x $with_build_time_tools/windmc; then
13745 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13746 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13748 $as_echo "$ac_cv_path_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 elif test $build != $host && test $have_gcc_for_target = yes; then
13754 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13755 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13756 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13757 fi
13758 fi
13759 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13760 # Extract the first word of "windmc", so it can be a program name with args.
13761 set dummy windmc; ac_word=$2
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763 $as_echo_n "checking for $ac_word... " >&6; }
13764 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 case $WINDMC_FOR_TARGET in
13768 [\\/]* | ?:[\\/]*)
13769 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13770 ;;
13771 *)
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $gcc_cv_tool_dirs
13774 do
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13779 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13782 fi
13783 done
13784 done
13785 IFS=$as_save_IFS
13786
13787 ;;
13788 esac
13789 fi
13790 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13791 if test -n "$WINDMC_FOR_TARGET"; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13793 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13794 else
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 $as_echo "no" >&6; }
13797 fi
13798
13799
13800 fi
13801 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13802
13803
13804 if test -n "$WINDMC_FOR_TARGET"; then
13805 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13806 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13807 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13808 fi
13809
13810 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13811 for ncn_progname in windmc; do
13812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13813 set dummy ${ncn_progname}; ac_word=$2
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13815 $as_echo_n "checking for $ac_word... " >&6; }
13816 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13817 $as_echo_n "(cached) " >&6
13818 else
13819 if test -n "$WINDMC_FOR_TARGET"; then
13820 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13821 else
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13824 do
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13832 fi
13833 done
13834 done
13835 IFS=$as_save_IFS
13836
13837 fi
13838 fi
13839 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13840 if test -n "$WINDMC_FOR_TARGET"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13842 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13843 else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13846 fi
13847
13848
13849 done
13850 fi
13851
13852 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13853 for ncn_progname in windmc; do
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13855 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13856 if test -x $with_build_time_tools/${ncn_progname}; then
13857 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13859 $as_echo "yes" >&6; }
13860 break
13861 else
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13864 fi
13865 done
13866 fi
13867
13868 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13869 for ncn_progname in windmc; do
13870 if test -n "$ncn_target_tool_prefix"; then
13871 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13872 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13874 $as_echo_n "checking for $ac_word... " >&6; }
13875 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 if test -n "$WINDMC_FOR_TARGET"; then
13879 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13880 else
13881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13882 for as_dir in $PATH
13883 do
13884 IFS=$as_save_IFS
13885 test -z "$as_dir" && as_dir=.
13886 for ac_exec_ext in '' $ac_executable_extensions; do
13887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13888 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13890 break 2
13891 fi
13892 done
13893 done
13894 IFS=$as_save_IFS
13895
13896 fi
13897 fi
13898 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13899 if test -n "$WINDMC_FOR_TARGET"; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13901 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904 $as_echo "no" >&6; }
13905 fi
13906
13907
13908 fi
13909 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13911 set dummy ${ncn_progname}; ac_word=$2
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13913 $as_echo_n "checking for $ac_word... " >&6; }
13914 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 if test -n "$WINDMC_FOR_TARGET"; then
13918 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13919 else
13920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13927 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13930 fi
13931 done
13932 done
13933 IFS=$as_save_IFS
13934
13935 fi
13936 fi
13937 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13938 if test -n "$WINDMC_FOR_TARGET"; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13940 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13941 else
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 $as_echo "no" >&6; }
13944 fi
13945
13946
13947 fi
13948 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13949 done
13950 fi
13951
13952 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13953 set dummy windmc
13954 if test $build = $target ; then
13955 WINDMC_FOR_TARGET="$2"
13956 else
13957 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13958 fi
13959 else
13960 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13961 fi
13962
13963 else
13964 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13965 fi
13966
13967
13968 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13969
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13971 $as_echo_n "checking where to find the target ar... " >&6; }
13972 if test "x${build}" != "x${host}" ; then
13973 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13974 # We already found the complete path
13975 ac_dir=`dirname $AR_FOR_TARGET`
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13977 $as_echo "pre-installed in $ac_dir" >&6; }
13978 else
13979 # Canadian cross, just use what we found
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13981 $as_echo "pre-installed" >&6; }
13982 fi
13983 else
13984 ok=yes
13985 case " ${configdirs} " in
13986 *" binutils "*) ;;
13987 *) ok=no ;;
13988 esac
13989
13990 if test $ok = yes; then
13991 # An in-tree tool is available and we can use it
13992 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13994 $as_echo "just compiled" >&6; }
13995 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13996 # We already found the complete path
13997 ac_dir=`dirname $AR_FOR_TARGET`
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13999 $as_echo "pre-installed in $ac_dir" >&6; }
14000 elif test "x$target" = "x$host"; then
14001 # We can use an host tool
14002 AR_FOR_TARGET='$(AR)'
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14004 $as_echo "host tool" >&6; }
14005 else
14006 # We need a cross tool
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008 $as_echo "pre-installed" >&6; }
14009 fi
14010 fi
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14013 $as_echo_n "checking where to find the target as... " >&6; }
14014 if test "x${build}" != "x${host}" ; then
14015 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14016 # We already found the complete path
14017 ac_dir=`dirname $AS_FOR_TARGET`
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14019 $as_echo "pre-installed in $ac_dir" >&6; }
14020 else
14021 # Canadian cross, just use what we found
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14023 $as_echo "pre-installed" >&6; }
14024 fi
14025 else
14026 ok=yes
14027 case " ${configdirs} " in
14028 *" gas "*) ;;
14029 *) ok=no ;;
14030 esac
14031
14032 if test $ok = yes; then
14033 # An in-tree tool is available and we can use it
14034 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14036 $as_echo "just compiled" >&6; }
14037 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14038 # We already found the complete path
14039 ac_dir=`dirname $AS_FOR_TARGET`
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14041 $as_echo "pre-installed in $ac_dir" >&6; }
14042 elif test "x$target" = "x$host"; then
14043 # We can use an host tool
14044 AS_FOR_TARGET='$(AS)'
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14046 $as_echo "host tool" >&6; }
14047 else
14048 # We need a cross tool
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14050 $as_echo "pre-installed" >&6; }
14051 fi
14052 fi
14053
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14055 $as_echo_n "checking where to find the target cc... " >&6; }
14056 if test "x${build}" != "x${host}" ; then
14057 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14058 # We already found the complete path
14059 ac_dir=`dirname $CC_FOR_TARGET`
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14061 $as_echo "pre-installed in $ac_dir" >&6; }
14062 else
14063 # Canadian cross, just use what we found
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14065 $as_echo "pre-installed" >&6; }
14066 fi
14067 else
14068 ok=yes
14069 case " ${configdirs} " in
14070 *" gcc "*) ;;
14071 *) ok=no ;;
14072 esac
14073
14074 if test $ok = yes; then
14075 # An in-tree tool is available and we can use it
14076 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14078 $as_echo "just compiled" >&6; }
14079 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14080 # We already found the complete path
14081 ac_dir=`dirname $CC_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 CC_FOR_TARGET='$(CC)'
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++" >&5
14097 $as_echo_n "checking where to find the target c++... " >&6; }
14098 if test "x${build}" != "x${host}" ; then
14099 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14100 # We already found the complete path
14101 ac_dir=`dirname $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 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'
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14123 $as_echo "just compiled" >&6; }
14124 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14125 # We already found the complete path
14126 ac_dir=`dirname $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 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 c++ for libstdc++" >&5
14142 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14143 if test "x${build}" != "x${host}" ; then
14144 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14145 # We already found the complete path
14146 ac_dir=`dirname $RAW_CXX_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 *" gcc "*) ;;
14158 *) ok=no ;;
14159 esac
14160 case ,${enable_languages}, in
14161 *,c++,*) ;;
14162 *) ok=no ;;
14163 esac
14164 if test $ok = yes; then
14165 # An in-tree tool is available and we can use it
14166 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'
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14168 $as_echo "just compiled" >&6; }
14169 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
14171 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173 $as_echo "pre-installed in $ac_dir" >&6; }
14174 elif test "x$target" = "x$host"; then
14175 # We can use an host tool
14176 RAW_CXX_FOR_TARGET='$(CXX)'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14178 $as_echo "host tool" >&6; }
14179 else
14180 # We need a cross tool
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14183 fi
14184 fi
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14187 $as_echo_n "checking where to find the target dlltool... " >&6; }
14188 if test "x${build}" != "x${host}" ; then
14189 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14190 # We already found the complete path
14191 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14193 $as_echo "pre-installed in $ac_dir" >&6; }
14194 else
14195 # Canadian cross, just use what we found
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14198 fi
14199 else
14200 ok=yes
14201 case " ${configdirs} " in
14202 *" binutils "*) ;;
14203 *) ok=no ;;
14204 esac
14205
14206 if test $ok = yes; then
14207 # An in-tree tool is available and we can use it
14208 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14210 $as_echo "just compiled" >&6; }
14211 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
14213 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215 $as_echo "pre-installed in $ac_dir" >&6; }
14216 elif test "x$target" = "x$host"; then
14217 # We can use an host tool
14218 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14220 $as_echo "host tool" >&6; }
14221 else
14222 # We need a cross tool
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14224 $as_echo "pre-installed" >&6; }
14225 fi
14226 fi
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14229 $as_echo_n "checking where to find the target gcc... " >&6; }
14230 if test "x${build}" != "x${host}" ; then
14231 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14232 # We already found the complete path
14233 ac_dir=`dirname $GCC_FOR_TARGET`
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14235 $as_echo "pre-installed in $ac_dir" >&6; }
14236 else
14237 # Canadian cross, just use what we found
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14239 $as_echo "pre-installed" >&6; }
14240 fi
14241 else
14242 ok=yes
14243 case " ${configdirs} " in
14244 *" gcc "*) ;;
14245 *) ok=no ;;
14246 esac
14247
14248 if test $ok = yes; then
14249 # An in-tree tool is available and we can use it
14250 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -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$GCC_FOR_TARGET" : "x/" > /dev/null; then
14254 # We already found the complete path
14255 ac_dir=`dirname $GCC_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 GCC_FOR_TARGET='$()'
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 case ${enable_werror} in
14867 yes) stage2_werror_flag="--enable-werror-always" ;;
14868 *) stage2_werror_flag="" ;;
14869 esac
14870
14871 else
14872
14873 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14874 case $BUILD_CONFIG in
14875 bootstrap-debug)
14876 stage2_werror_flag="--enable-werror-always" ;;
14877 "")
14878 stage2_werror_flag="--enable-werror-always" ;;
14879 esac
14880 fi
14881
14882 fi
14883
14884
14885
14886
14887 # Specify what files to not compare during bootstrap.
14888
14889 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14890 case "$target" in
14891 hppa*64*-*-hpux*) ;;
14892 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14893 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14894 esac
14895
14896
14897 ac_config_files="$ac_config_files Makefile"
14898
14899 cat >confcache <<\_ACEOF
14900 # This file is a shell script that caches the results of configure
14901 # tests run on this system so they can be shared between configure
14902 # scripts and configure runs, see configure's option --config-cache.
14903 # It is not useful on other systems. If it contains results you don't
14904 # want to keep, you may remove or edit it.
14905 #
14906 # config.status only pays attention to the cache file if you give it
14907 # the --recheck option to rerun configure.
14908 #
14909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14911 # following values.
14912
14913 _ACEOF
14914
14915 # The following way of writing the cache mishandles newlines in values,
14916 # but we know of no workaround that is simple, portable, and efficient.
14917 # So, we kill variables containing newlines.
14918 # Ultrix sh set writes to stderr and can't be redirected directly,
14919 # and sets the high bit in the cache file unless we assign to the vars.
14920 (
14921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14922 eval ac_val=\$$ac_var
14923 case $ac_val in #(
14924 *${as_nl}*)
14925 case $ac_var in #(
14926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14928 esac
14929 case $ac_var in #(
14930 _ | IFS | as_nl) ;; #(
14931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14932 *) { eval $ac_var=; unset $ac_var;} ;;
14933 esac ;;
14934 esac
14935 done
14936
14937 (set) 2>&1 |
14938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14939 *${as_nl}ac_space=\ *)
14940 # `set' does not quote correctly, so add quotes: double-quote
14941 # substitution turns \\\\ into \\, and sed turns \\ into \.
14942 sed -n \
14943 "s/'/'\\\\''/g;
14944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14945 ;; #(
14946 *)
14947 # `set' quotes correctly as required by POSIX, so do not add quotes.
14948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14949 ;;
14950 esac |
14951 sort
14952 ) |
14953 sed '
14954 /^ac_cv_env_/b end
14955 t clear
14956 :clear
14957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14958 t end
14959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14960 :end' >>confcache
14961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14962 if test -w "$cache_file"; then
14963 if test "x$cache_file" != "x/dev/null"; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14965 $as_echo "$as_me: updating cache $cache_file" >&6;}
14966 if test ! -f "$cache_file" || test -h "$cache_file"; then
14967 cat confcache >"$cache_file"
14968 else
14969 case $cache_file in #(
14970 */* | ?:*)
14971 mv -f confcache "$cache_file"$$ &&
14972 mv -f "$cache_file"$$ "$cache_file" ;; #(
14973 *)
14974 mv -f confcache "$cache_file" ;;
14975 esac
14976 fi
14977 fi
14978 else
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14980 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14981 fi
14982 fi
14983 rm -f confcache
14984
14985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14986 # Let make expand exec_prefix.
14987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14988
14989 # Transform confdefs.h into DEFS.
14990 # Protect against shell expansion while executing Makefile rules.
14991 # Protect against Makefile macro expansion.
14992 #
14993 # If the first sed substitution is executed (which looks for macros that
14994 # take arguments), then branch to the quote section. Otherwise,
14995 # look for a macro that doesn't take arguments.
14996 ac_script='
14997 :mline
14998 /\\$/{
14999 N
15000 s,\\\n,,
15001 b mline
15002 }
15003 t clear
15004 :clear
15005 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15006 t quote
15007 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15008 t quote
15009 b any
15010 :quote
15011 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15012 s/\[/\\&/g
15013 s/\]/\\&/g
15014 s/\$/$$/g
15015 H
15016 :any
15017 ${
15018 g
15019 s/^\n//
15020 s/\n/ /g
15021 p
15022 }
15023 '
15024 DEFS=`sed -n "$ac_script" confdefs.h`
15025
15026
15027 ac_libobjs=
15028 ac_ltlibobjs=
15029 U=
15030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15031 # 1. Remove the extension, and $U if already installed.
15032 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15033 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15035 # will be set to the directory where LIBOBJS objects are built.
15036 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15037 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15038 done
15039 LIBOBJS=$ac_libobjs
15040
15041 LTLIBOBJS=$ac_ltlibobjs
15042
15043
15044
15045 : "${CONFIG_STATUS=./config.status}"
15046 ac_write_fail=0
15047 ac_clean_files_save=$ac_clean_files
15048 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15050 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15051 as_write_fail=0
15052 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15053 #! $SHELL
15054 # Generated by $as_me.
15055 # Run this file to recreate the current configuration.
15056 # Compiler output produced by configure, useful for debugging
15057 # configure, is in config.log if it exists.
15058
15059 debug=false
15060 ac_cs_recheck=false
15061 ac_cs_silent=false
15062
15063 SHELL=\${CONFIG_SHELL-$SHELL}
15064 export SHELL
15065 _ASEOF
15066 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15067 ## -------------------- ##
15068 ## M4sh Initialization. ##
15069 ## -------------------- ##
15070
15071 # Be more Bourne compatible
15072 DUALCASE=1; export DUALCASE # for MKS sh
15073 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15074 emulate sh
15075 NULLCMD=:
15076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15077 # is contrary to our usage. Disable this feature.
15078 alias -g '${1+"$@"}'='"$@"'
15079 setopt NO_GLOB_SUBST
15080 else
15081 case `(set -o) 2>/dev/null` in #(
15082 *posix*) :
15083 set -o posix ;; #(
15084 *) :
15085 ;;
15086 esac
15087 fi
15088
15089
15090 as_nl='
15091 '
15092 export as_nl
15093 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15094 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15097 # Prefer a ksh shell builtin over an external printf program on Solaris,
15098 # but without wasting forks for bash or zsh.
15099 if test -z "$BASH_VERSION$ZSH_VERSION" \
15100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15101 as_echo='print -r --'
15102 as_echo_n='print -rn --'
15103 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15104 as_echo='printf %s\n'
15105 as_echo_n='printf %s'
15106 else
15107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15109 as_echo_n='/usr/ucb/echo -n'
15110 else
15111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15112 as_echo_n_body='eval
15113 arg=$1;
15114 case $arg in #(
15115 *"$as_nl"*)
15116 expr "X$arg" : "X\\(.*\\)$as_nl";
15117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15118 esac;
15119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15120 '
15121 export as_echo_n_body
15122 as_echo_n='sh -c $as_echo_n_body as_echo'
15123 fi
15124 export as_echo_body
15125 as_echo='sh -c $as_echo_body as_echo'
15126 fi
15127
15128 # The user is always right.
15129 if test "${PATH_SEPARATOR+set}" != set; then
15130 PATH_SEPARATOR=:
15131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15133 PATH_SEPARATOR=';'
15134 }
15135 fi
15136
15137
15138 # IFS
15139 # We need space, tab and new line, in precisely that order. Quoting is
15140 # there to prevent editors from complaining about space-tab.
15141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15142 # splitting by setting IFS to empty value.)
15143 IFS=" "" $as_nl"
15144
15145 # Find who we are. Look in the path if we contain no directory separator.
15146 as_myself=
15147 case $0 in #((
15148 *[\\/]* ) as_myself=$0 ;;
15149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15151 do
15152 IFS=$as_save_IFS
15153 test -z "$as_dir" && as_dir=.
15154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15155 done
15156 IFS=$as_save_IFS
15157
15158 ;;
15159 esac
15160 # We did not find ourselves, most probably we were run as `sh COMMAND'
15161 # in which case we are not to be found in the path.
15162 if test "x$as_myself" = x; then
15163 as_myself=$0
15164 fi
15165 if test ! -f "$as_myself"; then
15166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15167 exit 1
15168 fi
15169
15170 # Unset variables that we do not need and which cause bugs (e.g. in
15171 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15172 # suppresses any "Segmentation fault" message there. '((' could
15173 # trigger a bug in pdksh 5.2.14.
15174 for as_var in BASH_ENV ENV MAIL MAILPATH
15175 do eval test x\${$as_var+set} = xset \
15176 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15177 done
15178 PS1='$ '
15179 PS2='> '
15180 PS4='+ '
15181
15182 # NLS nuisances.
15183 LC_ALL=C
15184 export LC_ALL
15185 LANGUAGE=C
15186 export LANGUAGE
15187
15188 # CDPATH.
15189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15190
15191
15192 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15193 # ----------------------------------------
15194 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15195 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15196 # script with STATUS, using 1 if that was 0.
15197 as_fn_error ()
15198 {
15199 as_status=$1; test $as_status -eq 0 && as_status=1
15200 if test "$4"; then
15201 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15202 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15203 fi
15204 $as_echo "$as_me: error: $2" >&2
15205 as_fn_exit $as_status
15206 } # as_fn_error
15207
15208
15209 # as_fn_set_status STATUS
15210 # -----------------------
15211 # Set $? to STATUS, without forking.
15212 as_fn_set_status ()
15213 {
15214 return $1
15215 } # as_fn_set_status
15216
15217 # as_fn_exit STATUS
15218 # -----------------
15219 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15220 as_fn_exit ()
15221 {
15222 set +e
15223 as_fn_set_status $1
15224 exit $1
15225 } # as_fn_exit
15226
15227 # as_fn_unset VAR
15228 # ---------------
15229 # Portably unset VAR.
15230 as_fn_unset ()
15231 {
15232 { eval $1=; unset $1;}
15233 }
15234 as_unset=as_fn_unset
15235 # as_fn_append VAR VALUE
15236 # ----------------------
15237 # Append the text in VALUE to the end of the definition contained in VAR. Take
15238 # advantage of any shell optimizations that allow amortized linear growth over
15239 # repeated appends, instead of the typical quadratic growth present in naive
15240 # implementations.
15241 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15242 eval 'as_fn_append ()
15243 {
15244 eval $1+=\$2
15245 }'
15246 else
15247 as_fn_append ()
15248 {
15249 eval $1=\$$1\$2
15250 }
15251 fi # as_fn_append
15252
15253 # as_fn_arith ARG...
15254 # ------------------
15255 # Perform arithmetic evaluation on the ARGs, and store the result in the
15256 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15257 # must be portable across $(()) and expr.
15258 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15259 eval 'as_fn_arith ()
15260 {
15261 as_val=$(( $* ))
15262 }'
15263 else
15264 as_fn_arith ()
15265 {
15266 as_val=`expr "$@" || test $? -eq 1`
15267 }
15268 fi # as_fn_arith
15269
15270
15271 if expr a : '\(a\)' >/dev/null 2>&1 &&
15272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15273 as_expr=expr
15274 else
15275 as_expr=false
15276 fi
15277
15278 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15279 as_basename=basename
15280 else
15281 as_basename=false
15282 fi
15283
15284 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15285 as_dirname=dirname
15286 else
15287 as_dirname=false
15288 fi
15289
15290 as_me=`$as_basename -- "$0" ||
15291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15292 X"$0" : 'X\(//\)$' \| \
15293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15294 $as_echo X/"$0" |
15295 sed '/^.*\/\([^/][^/]*\)\/*$/{
15296 s//\1/
15297 q
15298 }
15299 /^X\/\(\/\/\)$/{
15300 s//\1/
15301 q
15302 }
15303 /^X\/\(\/\).*/{
15304 s//\1/
15305 q
15306 }
15307 s/.*/./; q'`
15308
15309 # Avoid depending upon Character Ranges.
15310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15313 as_cr_digits='0123456789'
15314 as_cr_alnum=$as_cr_Letters$as_cr_digits
15315
15316 ECHO_C= ECHO_N= ECHO_T=
15317 case `echo -n x` in #(((((
15318 -n*)
15319 case `echo 'xy\c'` in
15320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15321 xy) ECHO_C='\c';;
15322 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15323 ECHO_T=' ';;
15324 esac;;
15325 *)
15326 ECHO_N='-n';;
15327 esac
15328
15329 rm -f conf$$ conf$$.exe conf$$.file
15330 if test -d conf$$.dir; then
15331 rm -f conf$$.dir/conf$$.file
15332 else
15333 rm -f conf$$.dir
15334 mkdir conf$$.dir 2>/dev/null
15335 fi
15336 if (echo >conf$$.file) 2>/dev/null; then
15337 if ln -s conf$$.file conf$$ 2>/dev/null; then
15338 as_ln_s='ln -s'
15339 # ... but there are two gotchas:
15340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15342 # In both cases, we have to default to `cp -pR'.
15343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15344 as_ln_s='cp -pR'
15345 elif ln conf$$.file conf$$ 2>/dev/null; then
15346 as_ln_s=ln
15347 else
15348 as_ln_s='cp -pR'
15349 fi
15350 else
15351 as_ln_s='cp -pR'
15352 fi
15353 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15354 rmdir conf$$.dir 2>/dev/null
15355
15356
15357 # as_fn_mkdir_p
15358 # -------------
15359 # Create "$as_dir" as a directory, including parents if necessary.
15360 as_fn_mkdir_p ()
15361 {
15362
15363 case $as_dir in #(
15364 -*) as_dir=./$as_dir;;
15365 esac
15366 test -d "$as_dir" || eval $as_mkdir_p || {
15367 as_dirs=
15368 while :; do
15369 case $as_dir in #(
15370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15371 *) as_qdir=$as_dir;;
15372 esac
15373 as_dirs="'$as_qdir' $as_dirs"
15374 as_dir=`$as_dirname -- "$as_dir" ||
15375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376 X"$as_dir" : 'X\(//\)[^/]' \| \
15377 X"$as_dir" : 'X\(//\)$' \| \
15378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$as_dir" |
15380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15381 s//\1/
15382 q
15383 }
15384 /^X\(\/\/\)[^/].*/{
15385 s//\1/
15386 q
15387 }
15388 /^X\(\/\/\)$/{
15389 s//\1/
15390 q
15391 }
15392 /^X\(\/\).*/{
15393 s//\1/
15394 q
15395 }
15396 s/.*/./; q'`
15397 test -d "$as_dir" && break
15398 done
15399 test -z "$as_dirs" || eval "mkdir $as_dirs"
15400 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15401
15402
15403 } # as_fn_mkdir_p
15404 if mkdir -p . 2>/dev/null; then
15405 as_mkdir_p='mkdir -p "$as_dir"'
15406 else
15407 test -d ./-p && rmdir ./-p
15408 as_mkdir_p=false
15409 fi
15410
15411
15412 # as_fn_executable_p FILE
15413 # -----------------------
15414 # Test if FILE is an executable regular file.
15415 as_fn_executable_p ()
15416 {
15417 test -f "$1" && test -x "$1"
15418 } # as_fn_executable_p
15419 as_test_x='test -x'
15420 as_executable_p=as_fn_executable_p
15421
15422 # Sed expression to map a string onto a valid CPP name.
15423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15424
15425 # Sed expression to map a string onto a valid variable name.
15426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15427
15428
15429 exec 6>&1
15430 ## ----------------------------------- ##
15431 ## Main body of $CONFIG_STATUS script. ##
15432 ## ----------------------------------- ##
15433 _ASEOF
15434 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15435
15436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15437 # Save the log message, to keep $0 and so on meaningful, and to
15438 # report actual input values of CONFIG_FILES etc. instead of their
15439 # values after options handling.
15440 ac_log="
15441 This file was extended by $as_me, which was
15442 generated by GNU Autoconf 2.69. Invocation command line was
15443
15444 CONFIG_FILES = $CONFIG_FILES
15445 CONFIG_HEADERS = $CONFIG_HEADERS
15446 CONFIG_LINKS = $CONFIG_LINKS
15447 CONFIG_COMMANDS = $CONFIG_COMMANDS
15448 $ $0 $@
15449
15450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15451 "
15452
15453 _ACEOF
15454
15455 case $ac_config_files in *"
15456 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15457 esac
15458
15459
15460
15461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462 # Files that config.status was made for.
15463 config_files="$ac_config_files"
15464
15465 _ACEOF
15466
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468 ac_cs_usage="\
15469 \`$as_me' instantiates files and other configuration actions
15470 from templates according to the current configuration. Unless the files
15471 and actions are specified as TAGs, all are instantiated by default.
15472
15473 Usage: $0 [OPTION]... [TAG]...
15474
15475 -h, --help print this help, then exit
15476 -V, --version print version number and configuration settings, then exit
15477 --config print configuration, then exit
15478 -q, --quiet, --silent
15479 do not print progress messages
15480 -d, --debug don't remove temporary files
15481 --recheck update $as_me by reconfiguring in the same conditions
15482 --file=FILE[:TEMPLATE]
15483 instantiate the configuration file FILE
15484
15485 Configuration files:
15486 $config_files
15487
15488 Report bugs to the package provider."
15489
15490 _ACEOF
15491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15493 ac_cs_version="\\
15494 config.status
15495 configured by $0, generated by GNU Autoconf 2.69,
15496 with options \\"\$ac_cs_config\\"
15497
15498 Copyright (C) 2012 Free Software Foundation, Inc.
15499 This config.status script is free software; the Free Software Foundation
15500 gives unlimited permission to copy, distribute and modify it."
15501
15502 ac_pwd='$ac_pwd'
15503 srcdir='$srcdir'
15504 INSTALL='$INSTALL'
15505 AWK='$AWK'
15506 test -n "\$AWK" || AWK=awk
15507 _ACEOF
15508
15509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15510 # The default lists apply if the user does not specify any file.
15511 ac_need_defaults=:
15512 while test $# != 0
15513 do
15514 case $1 in
15515 --*=?*)
15516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15518 ac_shift=:
15519 ;;
15520 --*=)
15521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15522 ac_optarg=
15523 ac_shift=:
15524 ;;
15525 *)
15526 ac_option=$1
15527 ac_optarg=$2
15528 ac_shift=shift
15529 ;;
15530 esac
15531
15532 case $ac_option in
15533 # Handling of the options.
15534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15535 ac_cs_recheck=: ;;
15536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15537 $as_echo "$ac_cs_version"; exit ;;
15538 --config | --confi | --conf | --con | --co | --c )
15539 $as_echo "$ac_cs_config"; exit ;;
15540 --debug | --debu | --deb | --de | --d | -d )
15541 debug=: ;;
15542 --file | --fil | --fi | --f )
15543 $ac_shift
15544 case $ac_optarg in
15545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15546 '') as_fn_error $? "missing file argument" ;;
15547 esac
15548 as_fn_append CONFIG_FILES " '$ac_optarg'"
15549 ac_need_defaults=false;;
15550 --he | --h | --help | --hel | -h )
15551 $as_echo "$ac_cs_usage"; exit ;;
15552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15554 ac_cs_silent=: ;;
15555
15556 # This is an error.
15557 -*) as_fn_error $? "unrecognized option: \`$1'
15558 Try \`$0 --help' for more information." ;;
15559
15560 *) as_fn_append ac_config_targets " $1"
15561 ac_need_defaults=false ;;
15562
15563 esac
15564 shift
15565 done
15566
15567 ac_configure_extra_args=
15568
15569 if $ac_cs_silent; then
15570 exec 6>/dev/null
15571 ac_configure_extra_args="$ac_configure_extra_args --silent"
15572 fi
15573
15574 _ACEOF
15575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576 if \$ac_cs_recheck; then
15577 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15578 shift
15579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15580 CONFIG_SHELL='$SHELL'
15581 export CONFIG_SHELL
15582 exec "\$@"
15583 fi
15584
15585 _ACEOF
15586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15587 exec 5>>config.log
15588 {
15589 echo
15590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15591 ## Running $as_me. ##
15592 _ASBOX
15593 $as_echo "$ac_log"
15594 } >&5
15595
15596 _ACEOF
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598 #
15599 # INIT-COMMANDS
15600 #
15601 extrasub_build="$extrasub_build"
15602 extrasub_host="$extrasub_host"
15603 extrasub_target="$extrasub_target"
15604
15605 _ACEOF
15606
15607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15608
15609 # Handling of arguments.
15610 for ac_config_target in $ac_config_targets
15611 do
15612 case $ac_config_target in
15613 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15614
15615 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15616 esac
15617 done
15618
15619
15620 # If the user did not use the arguments to specify the items to instantiate,
15621 # then the envvar interface is used. Set only those that are not.
15622 # We use the long form for the default assignment because of an extremely
15623 # bizarre bug on SunOS 4.1.3.
15624 if $ac_need_defaults; then
15625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15626 fi
15627
15628 # Have a temporary directory for convenience. Make it in the build tree
15629 # simply because there is no reason against having it here, and in addition,
15630 # creating and moving files from /tmp can sometimes cause problems.
15631 # Hook for its removal unless debugging.
15632 # Note that there is a small window in which the directory will not be cleaned:
15633 # after its creation but before its name has been assigned to `$tmp'.
15634 $debug ||
15635 {
15636 tmp= ac_tmp=
15637 trap 'exit_status=$?
15638 : "${ac_tmp:=$tmp}"
15639 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15640 ' 0
15641 trap 'as_fn_exit 1' 1 2 13 15
15642 }
15643 # Create a (secure) tmp directory for tmp files.
15644
15645 {
15646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15647 test -d "$tmp"
15648 } ||
15649 {
15650 tmp=./conf$$-$RANDOM
15651 (umask 077 && mkdir "$tmp")
15652 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15653 ac_tmp=$tmp
15654
15655 # Set up the scripts for CONFIG_FILES section.
15656 # No need to generate them if there are no CONFIG_FILES.
15657 # This happens for instance with `./config.status config.h'.
15658 if test -n "$CONFIG_FILES"; then
15659
15660 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15661 ac_cs_awk_getline=:
15662 ac_cs_awk_pipe_init=
15663 ac_cs_awk_read_file='
15664 while ((getline aline < (F[key])) > 0)
15665 print(aline)
15666 close(F[key])'
15667 ac_cs_awk_pipe_fini=
15668 else
15669 ac_cs_awk_getline=false
15670 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15671 ac_cs_awk_read_file='
15672 print "|#_!!_#|"
15673 print "cat " F[key] " &&"
15674 '$ac_cs_awk_pipe_init
15675 # The final `:' finishes the AND list.
15676 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15677 fi
15678 ac_cr=`echo X | tr X '\015'`
15679 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15680 # But we know of no other shell where ac_cr would be empty at this
15681 # point, so we can use a bashism as a fallback.
15682 if test "x$ac_cr" = x; then
15683 eval ac_cr=\$\'\\r\'
15684 fi
15685 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15686 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15687 ac_cs_awk_cr='\\r'
15688 else
15689 ac_cs_awk_cr=$ac_cr
15690 fi
15691
15692 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15693 _ACEOF
15694
15695 # Create commands to substitute file output variables.
15696 {
15697 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15698 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15699 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15700 echo "_ACAWK" &&
15701 echo "_ACEOF"
15702 } >conf$$files.sh &&
15703 . ./conf$$files.sh ||
15704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15705 rm -f conf$$files.sh
15706
15707 {
15708 echo "cat >conf$$subs.awk <<_ACEOF" &&
15709 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15710 echo "_ACEOF"
15711 } >conf$$subs.sh ||
15712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15713 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15714 ac_delim='%!_!# '
15715 for ac_last_try in false false false false false :; do
15716 . ./conf$$subs.sh ||
15717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15718
15719 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15720 if test $ac_delim_n = $ac_delim_num; then
15721 break
15722 elif $ac_last_try; then
15723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15724 else
15725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15726 fi
15727 done
15728 rm -f conf$$subs.sh
15729
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15732 _ACEOF
15733 sed -n '
15734 h
15735 s/^/S["/; s/!.*/"]=/
15736 p
15737 g
15738 s/^[^!]*!//
15739 :repl
15740 t repl
15741 s/'"$ac_delim"'$//
15742 t delim
15743 :nl
15744 h
15745 s/\(.\{148\}\)..*/\1/
15746 t more1
15747 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15748 p
15749 n
15750 b repl
15751 :more1
15752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15753 p
15754 g
15755 s/.\{148\}//
15756 t nl
15757 :delim
15758 h
15759 s/\(.\{148\}\)..*/\1/
15760 t more2
15761 s/["\\]/\\&/g; s/^/"/; s/$/"/
15762 p
15763 b
15764 :more2
15765 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15766 p
15767 g
15768 s/.\{148\}//
15769 t delim
15770 ' <conf$$subs.awk | sed '
15771 /^[^""]/{
15772 N
15773 s/\n//
15774 }
15775 ' >>$CONFIG_STATUS || ac_write_fail=1
15776 rm -f conf$$subs.awk
15777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15778 _ACAWK
15779 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15780 for (key in S) S_is_set[key] = 1
15781 FS = "\a"
15782 \$ac_cs_awk_pipe_init
15783 }
15784 {
15785 line = $ 0
15786 nfields = split(line, field, "@")
15787 substed = 0
15788 len = length(field[1])
15789 for (i = 2; i < nfields; i++) {
15790 key = field[i]
15791 keylen = length(key)
15792 if (S_is_set[key]) {
15793 value = S[key]
15794 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15795 len += length(value) + length(field[++i])
15796 substed = 1
15797 } else
15798 len += 1 + keylen
15799 }
15800 if (nfields == 3 && !substed) {
15801 key = field[2]
15802 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15803 \$ac_cs_awk_read_file
15804 next
15805 }
15806 }
15807 print line
15808 }
15809 \$ac_cs_awk_pipe_fini
15810 _ACAWK
15811 _ACEOF
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15815 else
15816 cat
15817 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15819 _ACEOF
15820
15821 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15822 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15823 # trailing colons and then remove the whole line if VPATH becomes empty
15824 # (actually we leave an empty line to preserve line numbers).
15825 if test "x$srcdir" = x.; then
15826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15827 h
15828 s///
15829 s/^/:/
15830 s/[ ]*$/:/
15831 s/:\$(srcdir):/:/g
15832 s/:\${srcdir}:/:/g
15833 s/:@srcdir@:/:/g
15834 s/^:*//
15835 s/:*$//
15836 x
15837 s/\(=[ ]*\).*/\1/
15838 G
15839 s/\n//
15840 s/^[^=]*=[ ]*$//
15841 }'
15842 fi
15843
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 fi # test -n "$CONFIG_FILES"
15846
15847
15848 eval set X " :F $CONFIG_FILES "
15849 shift
15850 for ac_tag
15851 do
15852 case $ac_tag in
15853 :[FHLC]) ac_mode=$ac_tag; continue;;
15854 esac
15855 case $ac_mode$ac_tag in
15856 :[FHL]*:*);;
15857 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15858 :[FH]-) ac_tag=-:-;;
15859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15860 esac
15861 ac_save_IFS=$IFS
15862 IFS=:
15863 set x $ac_tag
15864 IFS=$ac_save_IFS
15865 shift
15866 ac_file=$1
15867 shift
15868
15869 case $ac_mode in
15870 :L) ac_source=$1;;
15871 :[FH])
15872 ac_file_inputs=
15873 for ac_f
15874 do
15875 case $ac_f in
15876 -) ac_f="$ac_tmp/stdin";;
15877 *) # Look for the file first in the build tree, then in the source tree
15878 # (if the path is not absolute). The absolute path cannot be DOS-style,
15879 # because $ac_f cannot contain `:'.
15880 test -f "$ac_f" ||
15881 case $ac_f in
15882 [\\/$]*) false;;
15883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15884 esac ||
15885 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15886 esac
15887 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15888 as_fn_append ac_file_inputs " '$ac_f'"
15889 done
15890
15891 # Let's still pretend it is `configure' which instantiates (i.e., don't
15892 # use $as_me), people would be surprised to read:
15893 # /* config.h. Generated by config.status. */
15894 configure_input='Generated from '`
15895 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15896 `' by configure.'
15897 if test x"$ac_file" != x-; then
15898 configure_input="$ac_file. $configure_input"
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15900 $as_echo "$as_me: creating $ac_file" >&6;}
15901 fi
15902 # Neutralize special characters interpreted by sed in replacement strings.
15903 case $configure_input in #(
15904 *\&* | *\|* | *\\* )
15905 ac_sed_conf_input=`$as_echo "$configure_input" |
15906 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15907 *) ac_sed_conf_input=$configure_input;;
15908 esac
15909
15910 case $ac_tag in
15911 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15913 esac
15914 ;;
15915 esac
15916
15917 ac_dir=`$as_dirname -- "$ac_file" ||
15918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15919 X"$ac_file" : 'X\(//\)[^/]' \| \
15920 X"$ac_file" : 'X\(//\)$' \| \
15921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15922 $as_echo X"$ac_file" |
15923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15924 s//\1/
15925 q
15926 }
15927 /^X\(\/\/\)[^/].*/{
15928 s//\1/
15929 q
15930 }
15931 /^X\(\/\/\)$/{
15932 s//\1/
15933 q
15934 }
15935 /^X\(\/\).*/{
15936 s//\1/
15937 q
15938 }
15939 s/.*/./; q'`
15940 as_dir="$ac_dir"; as_fn_mkdir_p
15941 ac_builddir=.
15942
15943 case "$ac_dir" in
15944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15945 *)
15946 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15947 # A ".." for each directory in $ac_dir_suffix.
15948 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15949 case $ac_top_builddir_sub in
15950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15952 esac ;;
15953 esac
15954 ac_abs_top_builddir=$ac_pwd
15955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15956 # for backward compatibility:
15957 ac_top_builddir=$ac_top_build_prefix
15958
15959 case $srcdir in
15960 .) # We are building in place.
15961 ac_srcdir=.
15962 ac_top_srcdir=$ac_top_builddir_sub
15963 ac_abs_top_srcdir=$ac_pwd ;;
15964 [\\/]* | ?:[\\/]* ) # Absolute name.
15965 ac_srcdir=$srcdir$ac_dir_suffix;
15966 ac_top_srcdir=$srcdir
15967 ac_abs_top_srcdir=$srcdir ;;
15968 *) # Relative name.
15969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15970 ac_top_srcdir=$ac_top_build_prefix$srcdir
15971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15972 esac
15973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15974
15975
15976 case $ac_mode in
15977 :F)
15978 #
15979 # CONFIG_FILE
15980 #
15981
15982 case $INSTALL in
15983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15985 esac
15986 _ACEOF
15987
15988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989 # If the template does not know about datarootdir, expand it.
15990 # FIXME: This hack should be removed a few years after 2.60.
15991 ac_datarootdir_hack=; ac_datarootdir_seen=
15992 ac_sed_dataroot='
15993 /datarootdir/ {
15994 p
15995 q
15996 }
15997 /@datadir@/p
15998 /@docdir@/p
15999 /@infodir@/p
16000 /@localedir@/p
16001 /@mandir@/p'
16002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16003 *datarootdir*) ac_datarootdir_seen=yes;;
16004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16007 _ACEOF
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 ac_datarootdir_hack='
16010 s&@datadir@&$datadir&g
16011 s&@docdir@&$docdir&g
16012 s&@infodir@&$infodir&g
16013 s&@localedir@&$localedir&g
16014 s&@mandir@&$mandir&g
16015 s&\\\${datarootdir}&$datarootdir&g' ;;
16016 esac
16017 _ACEOF
16018
16019 # Neutralize VPATH when `$srcdir' = `.'.
16020 # Shell code in configure.ac might set extrasub.
16021 # FIXME: do we really want to maintain this feature?
16022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_sed_extra="$ac_vpsub
16024 $extrasub
16025 _ACEOF
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027 :t
16028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16029 s|@configure_input@|$ac_sed_conf_input|;t t
16030 s&@top_builddir@&$ac_top_builddir_sub&;t t
16031 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16032 s&@srcdir@&$ac_srcdir&;t t
16033 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16034 s&@top_srcdir@&$ac_top_srcdir&;t t
16035 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16036 s&@builddir@&$ac_builddir&;t t
16037 s&@abs_builddir@&$ac_abs_builddir&;t t
16038 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16039 s&@INSTALL@&$ac_INSTALL&;t t
16040 $ac_datarootdir_hack
16041 "
16042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16043 if $ac_cs_awk_getline; then
16044 $AWK -f "$ac_tmp/subs.awk"
16045 else
16046 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16047 fi \
16048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16049
16050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16053 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16055 which seems to be undefined. Please make sure it is defined" >&5
16056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16057 which seems to be undefined. Please make sure it is defined" >&2;}
16058
16059 rm -f "$ac_tmp/stdin"
16060 case $ac_file in
16061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16063 esac \
16064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16065 ;;
16066
16067
16068
16069 esac
16070
16071
16072 case $ac_file$ac_mode in
16073 "Makefile":F) sed "$extrasub_build" Makefile |
16074 sed "$extrasub_host" |
16075 sed "$extrasub_target" > mf$$
16076 mv -f mf$$ Makefile ;;
16077
16078 esac
16079 done # for ac_tag
16080
16081
16082 as_fn_exit 0
16083 _ACEOF
16084 ac_clean_files=$ac_clean_files_save
16085
16086 test $ac_write_fail = 0 ||
16087 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16088
16089
16090 # configure is writing to config.log, and then calls config.status.
16091 # config.status does its own redirection, appending to config.log.
16092 # Unfortunately, on DOS this fails, as config.log is still kept open
16093 # by configure, so config.status won't be able to write to it; its
16094 # output is simply discarded. So we exec the FD to /dev/null,
16095 # effectively closing config.log, so it can be properly (re)opened and
16096 # appended to by config.status. When coming back to configure, we
16097 # need to make the FD available again.
16098 if test "$no_create" != yes; then
16099 ac_cs_success=:
16100 ac_config_status_args=
16101 test "$silent" = yes &&
16102 ac_config_status_args="$ac_config_status_args --quiet"
16103 exec 5>/dev/null
16104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16105 exec 5>>config.log
16106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16107 # would make configure fail if this is the last instruction.
16108 $ac_cs_success || as_fn_exit 1
16109 fi
16110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16113 fi
16114