Handle multiple target events before commit resume
[deliverable/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 READELF
620 OBJDUMP
621 OBJCOPY
622 WINDMC
623 WINDRES
624 STRIP
625 RANLIB
626 NM
627 LIPO
628 LD
629 DLLTOOL
630 AS
631 AR
632 RUNTEST
633 EXPECT
634 MAKEINFO
635 FLEX
636 LEX
637 M4
638 BISON
639 YACC
640 WINDRES_FOR_BUILD
641 WINDMC_FOR_BUILD
642 RANLIB_FOR_BUILD
643 NM_FOR_BUILD
644 LD_FOR_BUILD
645 LDFLAGS_FOR_BUILD
646 GOC_FOR_BUILD
647 GFORTRAN_FOR_BUILD
648 DLLTOOL_FOR_BUILD
649 CXX_FOR_BUILD
650 CXXFLAGS_FOR_BUILD
651 CFLAGS_FOR_BUILD
652 CC_FOR_BUILD
653 AS_FOR_BUILD
654 AR_FOR_BUILD
655 target_configdirs
656 configdirs
657 build_configdirs
658 INSTALL_GDB_TK
659 GDB_TK
660 CONFIGURE_GDB_TK
661 build_tooldir
662 tooldir
663 GCC_SHLIB_SUBDIR
664 RPATH_ENVVAR
665 target_configargs
666 host_configargs
667 build_configargs
668 BUILD_CONFIG
669 LDFLAGS_FOR_TARGET
670 CXXFLAGS_FOR_TARGET
671 CFLAGS_FOR_TARGET
672 DEBUG_PREFIX_CFLAGS_FOR_TARGET
673 SYSROOT_CFLAGS_FOR_TARGET
674 get_gcc_base_ver
675 extra_host_zlib_configure_flags
676 extra_host_libiberty_configure_flags
677 stage1_languages
678 host_shared
679 extra_linker_plugin_flags
680 extra_linker_plugin_configure_flags
681 islinc
682 isllibs
683 poststage1_ldflags
684 poststage1_libs
685 stage1_ldflags
686 stage1_libs
687 extra_isl_gmp_configure_flags
688 extra_mpc_mpfr_configure_flags
689 extra_mpc_gmp_configure_flags
690 extra_mpfr_configure_flags
691 gmpinc
692 gmplibs
693 do_compare
694 GNATMAKE
695 GNATBIND
696 ac_ct_CXX
697 CXXFLAGS
698 CXX
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 extra_liboffloadmic_configure_flags
707 target_subdir
708 host_subdir
709 build_subdir
710 build_libsubdir
711 AWK
712 SED
713 LN_S
714 LN
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_os
719 target_vendor
720 target_cpu
721 target
722 host_os
723 host_vendor
724 host_cpu
725 host
726 target_noncanonical
727 host_noncanonical
728 build_noncanonical
729 build_os
730 build_vendor
731 build_cpu
732 build
733 TOPLEVEL_CONFIGURE_ARGUMENTS
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='serialization_dependencies
773 host_makefile_frag
774 target_makefile_frag
775 alphaieee_frag
776 ospace_frag'
777 ac_user_opts='
778 enable_option_checking
779 with_build_libsubdir
780 with_system_zlib
781 enable_as_accelerator_for
782 enable_offload_targets
783 enable_gold
784 enable_ld
785 enable_compressed_debug_sections
786 enable_libquadmath
787 enable_libquadmath_support
788 enable_libada
789 enable_libssp
790 enable_libstdcxx
791 enable_liboffloadmic
792 enable_bootstrap
793 with_mpc
794 with_mpc_include
795 with_mpc_lib
796 with_mpfr_dir
797 with_mpfr
798 with_mpfr_include
799 with_mpfr_lib
800 with_gmp_dir
801 with_gmp
802 with_gmp_include
803 with_gmp_lib
804 with_stage1_libs
805 with_static_standard_libraries
806 with_stage1_ldflags
807 with_boot_libs
808 with_boot_ldflags
809 with_isl
810 with_isl_include
811 with_isl_lib
812 enable_isl_version_check
813 enable_lto
814 enable_linker_plugin_configure_flags
815 enable_linker_plugin_flags
816 enable_host_shared
817 enable_stage1_languages
818 enable_objc_gc
819 with_target_bdw_gc
820 with_target_bdw_gc_include
821 with_target_bdw_gc_lib
822 with_gcc_major_version_only
823 with_build_sysroot
824 with_debug_prefix_map
825 with_build_config
826 enable_vtable_verify
827 enable_serial_configure
828 with_build_time_tools
829 enable_maintainer_mode
830 enable_stage1_checking
831 enable_werror
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CXX
842 CXXFLAGS
843 CCC
844 build_configargs
845 host_configargs
846 target_configargs
847 AR
848 AS
849 DLLTOOL
850 LD
851 LIPO
852 NM
853 RANLIB
854 STRIP
855 WINDRES
856 WINDMC
857 OBJCOPY
858 OBJDUMP
859 READELF
860 CC_FOR_TARGET
861 CXX_FOR_TARGET
862 GCC_FOR_TARGET
863 GFORTRAN_FOR_TARGET
864 GOC_FOR_TARGET
865 AR_FOR_TARGET
866 AS_FOR_TARGET
867 DLLTOOL_FOR_TARGET
868 LD_FOR_TARGET
869 LIPO_FOR_TARGET
870 NM_FOR_TARGET
871 OBJCOPY_FOR_TARGET
872 OBJDUMP_FOR_TARGET
873 RANLIB_FOR_TARGET
874 READELF_FOR_TARGET
875 STRIP_FOR_TARGET
876 WINDRES_FOR_TARGET
877 WINDMC_FOR_TARGET'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
901
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
927
928 ac_prev=
929 ac_dashdash=
930 for ac_option
931 do
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
937 fi
938
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291 fi
1292
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299 fi
1300
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306 do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336 fi
1337
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341 test "$silent" = yes && exec 6>/dev/null
1342
1343
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1382 fi
1383 else
1384 ac_srcdir_defaulted=no
1385 fi
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 fi
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 case $srcdir in
1405 *" "*)
1406 as_fn_error $? "path to source, $srcdir, contains spaces"
1407 ;;
1408 esac
1409 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1410
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures this package to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1479
1480 cat <<\_ACEOF
1481
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 --target=TARGET configure for building compilers for TARGET [HOST]
1491 _ACEOF
1492 fi
1493
1494 if test -n "$ac_init_help"; then
1495
1496 cat <<\_ACEOF
1497
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-as-accelerator-for=ARG
1503 build as offload target compiler. Specify offload
1504 host triple by ARG
1505 --enable-offload-targets=LIST
1506 enable offloading to devices from comma-separated
1507 LIST of TARGET[=DIR]. Use optional path to find
1508 offload target compiler during the build
1509 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1510 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1511 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1512 Enable compressed debug sections for gas, gold or ld
1513 by default
1514 --disable-libquadmath do not build libquadmath directory
1515 --disable-libquadmath-support
1516 disable libquadmath support for Fortran
1517 --enable-libada build libada directory
1518 --enable-libssp build libssp directory
1519 --disable-libstdcxx do not build libstdc++-v3 directory
1520 --enable-liboffloadmic=ARG
1521 build liboffloadmic [ARG={no,host,target}]
1522 --enable-bootstrap enable bootstrapping [yes if native build]
1523 --disable-isl-version-check
1524 disable check for isl version
1525 --enable-lto enable link time optimization support
1526 --enable-linker-plugin-configure-flags=FLAGS
1527 additional flags for configuring linker plugins
1528 [none]
1529 --enable-linker-plugin-flags=FLAGS
1530 additional flags for configuring and building linker
1531 plugins [none]
1532 --enable-host-shared build host code as shared libraries
1533 --enable-stage1-languages[=all]
1534 choose additional languages to build during stage1.
1535 Mostly useful for compiler development
1536 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1537 Objective-C runtime
1538 --enable-vtable-verify Enable vtable verification feature
1539 --enable-serial-[{host,target,build}-]configure
1540 force sequential configuration of sub-packages for
1541 the host, target or build machine, or all
1542 sub-packages
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful (and
1545 sometimes confusing) to the casual installer
1546 --enable-stage1-checking[=all]
1547 choose additional checking for stage1 of the
1548 compiler
1549 --enable-werror enable -Werror in bootstrap stage2 and later
1550
1551 Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1554 --with-build-libsubdir=DIR Directory where to find libraries for build system
1555 --with-system-zlib use installed libz
1556 --with-mpc=PATH specify prefix directory for installed MPC package.
1557 Equivalent to --with-mpc-include=PATH/include plus
1558 --with-mpc-lib=PATH/lib
1559 --with-mpc-include=PATH specify directory for installed MPC include files
1560 --with-mpc-lib=PATH specify directory for the installed MPC library
1561 --with-mpfr-dir=PATH this option has been REMOVED
1562 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1563 Equivalent to --with-mpfr-include=PATH/include plus
1564 --with-mpfr-lib=PATH/lib
1565 --with-mpfr-include=PATH
1566 specify directory for installed MPFR include files
1567 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1568 --with-gmp-dir=PATH this option has been REMOVED
1569 --with-gmp=PATH specify prefix directory for the installed GMP
1570 package. Equivalent to
1571 --with-gmp-include=PATH/include plus
1572 --with-gmp-lib=PATH/lib
1573 --with-gmp-include=PATH specify directory for installed GMP include files
1574 --with-gmp-lib=PATH specify directory for the installed GMP library
1575 --with-stage1-libs=LIBS libraries for stage1
1576 --with-static-standard-libraries
1577 use -static-libstdc++ and -static-libgcc
1578 (default=auto)
1579 --with-stage1-ldflags=FLAGS
1580 linker flags for stage1
1581 --with-boot-libs=LIBS libraries for stage2 and later
1582 --with-boot-ldflags=FLAGS
1583 linker flags for stage2 and later
1584 --with-isl=PATH Specify prefix directory for the installed isl
1585 package. Equivalent to
1586 --with-isl-include=PATH/include plus
1587 --with-isl-lib=PATH/lib
1588 --with-isl-include=PATH Specify directory for installed isl include files
1589 --with-isl-lib=PATH Specify the directory for the installed isl library
1590 --with-target-bdw-gc=PATHLIST
1591 specify prefix directory for installed bdw-gc
1592 package. Equivalent to
1593 --with-target-bdw-gc-include=PATH/include plus
1594 --with-target-bdw-gc-lib=PATH/lib
1595 --with-target-bdw-gc-include=PATHLIST
1596 specify directories for installed bdw-gc include
1597 files
1598 --with-target-bdw-gc-lib=PATHLIST
1599 specify directories for installed bdw-gc library
1600 --with-gcc-major-version-only
1601 use only GCC major number in filesystem paths
1602 --with-build-sysroot=SYSROOT
1603 use sysroot as the system root during the build
1604 --with-debug-prefix-map='A=B C=D ...'
1605 map A to B, C to D ... in debug information
1606 --with-build-config='NAME NAME2...'
1607 use config/NAME.mk build configuration
1608 --with-build-time-tools=PATH
1609 use given path to find target tools during the build
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CXX C++ compiler command
1620 CXXFLAGS C++ compiler flags
1621 build_configargs
1622 additional configure arguments for build directories
1623 host_configargs
1624 additional configure arguments for host directories
1625 target_configargs
1626 additional configure arguments for target directories
1627 AR AR for the host
1628 AS AS for the host
1629 DLLTOOL DLLTOOL for the host
1630 LD LD for the host
1631 LIPO LIPO for the host
1632 NM NM for the host
1633 RANLIB RANLIB for the host
1634 STRIP STRIP for the host
1635 WINDRES WINDRES for the host
1636 WINDMC WINDMC for the host
1637 OBJCOPY OBJCOPY for the host
1638 OBJDUMP OBJDUMP for the host
1639 READELF READELF for the host
1640 CC_FOR_TARGET
1641 CC for the target
1642 CXX_FOR_TARGET
1643 CXX for the target
1644 GCC_FOR_TARGET
1645 GCC for the target
1646 GFORTRAN_FOR_TARGET
1647 GFORTRAN for the target
1648 GOC_FOR_TARGET
1649 GOC for the target
1650 AR_FOR_TARGET
1651 AR for the target
1652 AS_FOR_TARGET
1653 AS for the target
1654 DLLTOOL_FOR_TARGET
1655 DLLTOOL for the target
1656 LD_FOR_TARGET
1657 LD for the target
1658 LIPO_FOR_TARGET
1659 LIPO for the target
1660 NM_FOR_TARGET
1661 NM for the target
1662 OBJCOPY_FOR_TARGET
1663 OBJCOPY for the target
1664 OBJDUMP_FOR_TARGET
1665 OBJDUMP for the target
1666 RANLIB_FOR_TARGET
1667 RANLIB for the target
1668 READELF_FOR_TARGET
1669 READELF for the target
1670 STRIP_FOR_TARGET
1671 STRIP for the target
1672 WINDRES_FOR_TARGET
1673 WINDRES for the target
1674 WINDMC_FOR_TARGET
1675 WINDMC for the target
1676
1677 Use these variables to override the choices made by `configure' or to help
1678 it to find libraries and programs with nonstandard names/locations.
1679
1680 Report bugs to the package provider.
1681 _ACEOF
1682 ac_status=$?
1683 fi
1684
1685 if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1690 continue
1691 ac_builddir=.
1692
1693 case "$ac_dir" in
1694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *)
1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 esac ;;
1703 esac
1704 ac_abs_top_builddir=$ac_pwd
1705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1706 # for backward compatibility:
1707 ac_top_builddir=$ac_top_build_prefix
1708
1709 case $srcdir in
1710 .) # We are building in place.
1711 ac_srcdir=.
1712 ac_top_srcdir=$ac_top_builddir_sub
1713 ac_abs_top_srcdir=$ac_pwd ;;
1714 [\\/]* | ?:[\\/]* ) # Absolute name.
1715 ac_srcdir=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir=$srcdir
1717 ac_abs_top_srcdir=$srcdir ;;
1718 *) # Relative name.
1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722 esac
1723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724
1725 cd "$ac_dir" || { ac_status=$?; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1728 echo &&
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1733 else
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 fi || ac_status=$?
1736 cd "$ac_pwd" || { ac_status=$?; break; }
1737 done
1738 fi
1739
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1742 cat <<\_ACEOF
1743 configure
1744 generated by GNU Autoconf 2.69
1745
1746 Copyright (C) 2012 Free Software Foundation, Inc.
1747 This configure script is free software; the Free Software Foundation
1748 gives unlimited permission to copy, distribute and modify it.
1749 _ACEOF
1750 exit
1751 fi
1752
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1756
1757 # ac_fn_c_try_compile LINENO
1758 # --------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789 fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_compile
1794
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_cxx_try_compile
1832
1833 # ac_fn_cxx_try_link LINENO
1834 # -------------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_link ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext conftest$ac_exeext
1840 if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest$ac_exeext && {
1859 test "$cross_compiling" = yes ||
1860 test -x conftest$ac_exeext
1861 }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1
1868 fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_cxx_try_link
1878
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_c_try_link ()
1883 {
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1907 }; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924 cat >config.log <<_ACEOF
1925 This file contains any messages produced by compilers while
1926 running configure, to aid debugging if configure makes a mistake.
1927
1928 It was created by $as_me, which was
1929 generated by GNU Autoconf 2.69. Invocation command line was
1930
1931 $ $0 $@
1932
1933 _ACEOF
1934 exec 5>>config.log
1935 {
1936 cat <<_ASUNAME
1937 ## --------- ##
1938 ## Platform. ##
1939 ## --------- ##
1940
1941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1949
1950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1957
1958 _ASUNAME
1959
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 $as_echo "PATH: $as_dir"
1966 done
1967 IFS=$as_save_IFS
1968
1969 } >&5
1970
1971 cat >&5 <<_ACEOF
1972
1973
1974 ## ----------- ##
1975 ## Core tests. ##
1976 ## ----------- ##
1977
1978 _ACEOF
1979
1980
1981 # Keep a trace of the command line.
1982 # Strip out --no-create and --no-recursion so they do not pile up.
1983 # Strip out --silent because we don't want to record it for future runs.
1984 # Also quote any args containing shell meta-characters.
1985 # Make two passes to allow for proper duplicate-argument suppression.
1986 ac_configure_args=
1987 ac_configure_args0=
1988 ac_configure_args1=
1989 ac_must_keep_next=false
1990 for ac_pass in 1 2
1991 do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025 done
2026 { ac_configure_args0=; unset ac_configure_args0;}
2027 { ac_configure_args1=; unset ac_configure_args1;}
2028
2029 # When interrupted or exit'd, cleanup temporary files, and complete
2030 # config.log. We remove comments because anyway the quotes in there
2031 # would cause problems or look ugly.
2032 # WARNING: Use '\'' to represent an apostrophe within the trap.
2033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034 trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2038
2039 $as_echo "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044 (
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072 )
2073 echo
2074
2075 $as_echo "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088
2089 if test -n "$ac_subst_files"; then
2090 $as_echo "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 $as_echo "## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2125
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2128
2129 $as_echo "/* confdefs.h */" > confdefs.h
2130
2131 # Predefined preprocessor variables.
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_NAME "$PACKAGE_NAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_STRING "$PACKAGE_STRING"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_URL "$PACKAGE_URL"
2155 _ACEOF
2156
2157
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 ac_site_file1=NONE
2161 ac_site_file2=NONE
2162 if test -n "$CONFIG_SITE"; then
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
2169 elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172 else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2175 fi
2176 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177 do
2178 test "x$ac_site_file" = xNONE && continue
2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See \`config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257 done
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2268
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279
2280
2281
2282 if test x"${enable_gdb}" != x"no" -a x"${enable_src_release_build}" != x"yes"; then
2283 # For this branch, we do not support building GDB in-tree.
2284 # Try to detect whether we are in this situation or not by
2285 # searching for a couple of known files in the source directory.
2286 if test -f gnulib/update-gnulib.sh -a -f gdb/ChangeLog; then
2287 as_fn_error $? "GDB must be configured and built in a directory separate from its sources.
2288
2289 To do so, create a dedicated directory for your GDB build and invoke
2290 the configure script from that directory:
2291
2292 $ mkdir build
2293 $ cd build
2294 $ <full path to your sources>/gdb-VERSION/configure [etc...]
2295 $ make" "$LINENO" 5
2296 fi
2297 fi
2298
2299 progname=$0
2300 # if PWD already has a value, it is probably wrong.
2301 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2302
2303 # Export original configure arguments for use by sub-configures.
2304 # Quote arguments with shell meta charatcers.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS=
2306 set -- "$progname" "$@"
2307 for ac_arg
2308 do
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318 done
2319 if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2321 fi
2322 # Remove the initial space we just introduced and, as these will be
2323 # expanded by make, quote '$'.
2324 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2325
2326
2327 # Find the build, host, and target systems.
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2342 fi
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2355
2356
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2373
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398 esac
2399
2400
2401
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2405 esac
2406
2407
2408
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2412 esac
2413
2414
2415
2416
2417 test "$host_noncanonical" = "$target_noncanonical" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_transform_name=s,y,y,
2421
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2423 $as_echo_n "checking host system type... " >&6; }
2424 if ${ac_cv_host+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test "x$host_alias" = x; then
2428 ac_cv_host=$ac_cv_build
2429 else
2430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2432 fi
2433
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2436 $as_echo "$ac_cv_host" >&6; }
2437 case $ac_cv_host in
2438 *-*-*) ;;
2439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2440 esac
2441 host=$ac_cv_host
2442 ac_save_IFS=$IFS; IFS='-'
2443 set x $ac_cv_host
2444 shift
2445 host_cpu=$1
2446 host_vendor=$2
2447 shift; shift
2448 # Remember, the first character of IFS is used to create $*,
2449 # except with old shells:
2450 host_os=$*
2451 IFS=$ac_save_IFS
2452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2453
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2456 $as_echo_n "checking target system type... " >&6; }
2457 if ${ac_cv_target+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test "x$target_alias" = x; then
2461 ac_cv_target=$ac_cv_host
2462 else
2463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2465 fi
2466
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2469 $as_echo "$ac_cv_target" >&6; }
2470 case $ac_cv_target in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2473 esac
2474 target=$ac_cv_target
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_target
2477 shift
2478 target_cpu=$1
2479 target_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 target_os=$*
2484 IFS=$ac_save_IFS
2485 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 # The aliases save the names the user supplied, while $host etc.
2489 # will get canonicalized.
2490 test -n "$target_alias" &&
2491 test "$program_prefix$program_suffix$program_transform_name" = \
2492 NONENONEs,x,x, &&
2493 program_prefix=${target_alias}-
2494
2495 test "$program_prefix" != NONE &&
2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497 # Use a double $ so make ignores it.
2498 test "$program_suffix" != NONE &&
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500 # Double any \ or $.
2501 # By default was `s,x,x', remove it if useless.
2502 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504
2505
2506
2507 # Get 'install' or 'install-sh' and its variants.
2508 # Find a good install program. We prefer a C program (faster),
2509 # so one script is as good as another. But avoid the broken or
2510 # incompatible versions:
2511 # SysV /etc/install, /usr/sbin/install
2512 # SunOS /usr/etc/install
2513 # IRIX /sbin/install
2514 # AIX /bin/install
2515 # AmigaOS /C/install, which installs bootblocks on floppy discs
2516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519 # OS/2's system install, which has a completely different semantic
2520 # ./install, which can be erroneously created by make from ./install.sh.
2521 # Reject install programs that cannot install multiple files.
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2524 if test -z "$INSTALL"; then
2525 if ${ac_cv_path_install+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534 case $as_dir/ in #((
2535 ./ | .// | /[cC]/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538 /usr/ucb/* ) ;;
2539 *)
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2549 :
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2553 :
2554 else
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565 break 3
2566 fi
2567 fi
2568 fi
2569 done
2570 done
2571 ;;
2572 esac
2573
2574 done
2575 IFS=$as_save_IFS
2576
2577 rm -rf conftest.one conftest.two conftest.dir
2578
2579 fi
2580 if test "${ac_cv_path_install+set}" = set; then
2581 INSTALL=$ac_cv_path_install
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 INSTALL=$ac_install_sh
2588 fi
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591 $as_echo "$INSTALL" >&6; }
2592
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2596
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2598
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2602 $as_echo_n "checking whether ln works... " >&6; }
2603 if ${acx_cv_prog_LN+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 rm -f conftestdata_t
2607 echo >conftestdata_f
2608 if ln conftestdata_f conftestdata_t 2>/dev/null
2609 then
2610 acx_cv_prog_LN=ln
2611 else
2612 acx_cv_prog_LN=no
2613 fi
2614 rm -f conftestdata_f conftestdata_t
2615
2616 fi
2617 if test $acx_cv_prog_LN = no; then
2618 LN="cp"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2620 $as_echo "no, using $LN" >&6; }
2621 else
2622 LN="$acx_cv_prog_LN"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 fi
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2628 $as_echo_n "checking whether ln -s works... " >&6; }
2629 LN_S=$as_ln_s
2630 if test "$LN_S" = "ln -s"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2635 $as_echo "no, using $LN_S" >&6; }
2636 fi
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2640 if ${ac_cv_path_SED+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2644 for ac_i in 1 2 3 4 5 6 7; do
2645 ac_script="$ac_script$as_nl$ac_script"
2646 done
2647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2648 { ac_script=; unset ac_script;}
2649 if test -z "$SED"; then
2650 ac_path_SED_found=false
2651 # Loop through the user's path and test for each of PROGNAME-LIST
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in sed gsed; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2660 as_fn_executable_p "$ac_path_SED" || continue
2661 # Check for GNU ac_path_SED and select it if it is found.
2662 # Check for GNU $ac_path_SED
2663 case `"$ac_path_SED" --version 2>&1` in
2664 *GNU*)
2665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2666 *)
2667 ac_count=0
2668 $as_echo_n 0123456789 >"conftest.in"
2669 while :
2670 do
2671 cat "conftest.in" "conftest.in" >"conftest.tmp"
2672 mv "conftest.tmp" "conftest.in"
2673 cp "conftest.in" "conftest.nl"
2674 $as_echo '' >> "conftest.nl"
2675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2677 as_fn_arith $ac_count + 1 && ac_count=$as_val
2678 if test $ac_count -gt ${ac_path_SED_max-0}; then
2679 # Best one so far, save it but keep looking for a better one
2680 ac_cv_path_SED="$ac_path_SED"
2681 ac_path_SED_max=$ac_count
2682 fi
2683 # 10*(2^10) chars as input seems more than enough
2684 test $ac_count -gt 10 && break
2685 done
2686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2687 esac
2688
2689 $ac_path_SED_found && break 3
2690 done
2691 done
2692 done
2693 IFS=$as_save_IFS
2694 if test -z "$ac_cv_path_SED"; then
2695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2696 fi
2697 else
2698 ac_cv_path_SED=$SED
2699 fi
2700
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2703 $as_echo "$ac_cv_path_SED" >&6; }
2704 SED="$ac_cv_path_SED"
2705 rm -f conftest.sed
2706
2707 for ac_prog in gawk mawk nawk awk
2708 do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745
2746 test -n "$AWK" && break
2747 done
2748
2749
2750 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2751
2752 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2753 # a relative path.
2754 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2755 INSTALL="${srcpwd}/install-sh -c"
2756 fi
2757
2758 # Set srcdir to "." if that's what it is.
2759 # This is important for multilib support.
2760 pwd=`${PWDCMD-pwd}`
2761 if test "${pwd}" = "${srcpwd}" ; then
2762 srcdir=.
2763 fi
2764
2765 topsrcdir=$srcpwd
2766
2767 extra_host_args=
2768
2769 ### To add a new directory to the tree, first choose whether it is a target
2770 ### or a host dependent tool. Then put it into the appropriate list
2771 ### (library or tools, host or target), doing a dependency sort.
2772
2773 # Subdirs will be configured in the order listed in build_configdirs,
2774 # configdirs, or target_configdirs; see the serialization section below.
2775
2776 # Dependency sorting is only needed when *configuration* must be done in
2777 # a particular order. In all cases a dependency should be specified in
2778 # the Makefile, whether or not it's implicitly specified here.
2779
2780 # Double entries in build_configdirs, configdirs, or target_configdirs may
2781 # cause circular dependencies and break everything horribly.
2782
2783 # these library is used by various programs built for the build
2784 # environment
2785 #
2786 build_libs="build-libiberty build-libcpp"
2787
2788 # these tools are built for the build environment
2789 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2790
2791 # these libraries are used by various programs built for the host environment
2792 #f
2793 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2794
2795 # these tools are built for the host environment
2796 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2797 # know that we are building the simulator.
2798 # binutils, gas and ld appear in that order because it makes sense to run
2799 # "make check" in that particular order.
2800 # If --enable-gold is used, "gold" may replace "ld".
2801 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2802
2803 # these libraries are built for the target environment, and are built after
2804 # the host libraries and the host tools (which may be a cross compiler)
2805 # Note that libiberty is not a target library.
2806 target_libraries="target-libgcc \
2807 target-libbacktrace \
2808 target-libgloss \
2809 target-newlib \
2810 target-libgomp \
2811 target-liboffloadmic \
2812 target-libhsail-rt \
2813 target-libatomic \
2814 target-libitm \
2815 target-libstdc++-v3 \
2816 target-libsanitizer \
2817 target-libvtv \
2818 target-libssp \
2819 target-libquadmath \
2820 target-libgfortran \
2821 target-libffi \
2822 target-libobjc \
2823 target-libada \
2824 target-libgo"
2825
2826 # these tools are built using the target libraries, and are intended to
2827 # run only in the target environment
2828 #
2829 # note: any program that *uses* libraries that are in the "target_libraries"
2830 # list belongs in this list.
2831 #
2832 target_tools="target-rda"
2833
2834 ################################################################################
2835
2836 ## All tools belong in one of the four categories, and are assigned above
2837 ## We assign ${configdirs} this way to remove all embedded newlines. This
2838 ## is important because configure will choke if they ever get through.
2839 ## ${configdirs} is directories we build using the host tools.
2840 ## ${target_configdirs} is directories we build using the target tools.
2841 configdirs=`echo ${host_libs} ${host_tools}`
2842 target_configdirs=`echo ${target_libraries} ${target_tools}`
2843 build_configdirs=`echo ${build_libs} ${build_tools}`
2844
2845
2846
2847 ################################################################################
2848
2849 srcname="gnu development package"
2850
2851 # This gets set non-empty for some net releases of packages.
2852 appdirs=""
2853
2854 # Define is_cross_compiler to save on calls to 'test'.
2855 is_cross_compiler=
2856 if test x"${host}" = x"${target}" ; then
2857 is_cross_compiler=no
2858 else
2859 is_cross_compiler=yes
2860 fi
2861
2862 # Find the build and target subdir names.
2863
2864 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2865 # have matching libraries, they should use host libraries: Makefile.tpl
2866 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2867 # However, they still use the build modules, because the corresponding
2868 # host modules (e.g. bison) are only built for the host when bootstrap
2869 # finishes. So:
2870 # - build_subdir is where we find build modules, and never changes.
2871 # - build_libsubdir is where we find build libraries, and can be overridden.
2872
2873 # Prefix 'build-' so this never conflicts with target_subdir.
2874 build_subdir="build-${build_noncanonical}"
2875
2876 # Check whether --with-build-libsubdir was given.
2877 if test "${with_build_libsubdir+set}" = set; then :
2878 withval=$with_build_libsubdir; build_libsubdir="$withval"
2879 else
2880 build_libsubdir="$build_subdir"
2881 fi
2882
2883 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2884 if ( test $srcdir = . && test -d gcc ) \
2885 || test -d $srcdir/../host-${host_noncanonical}; then
2886 host_subdir="host-${host_noncanonical}"
2887 else
2888 host_subdir=.
2889 fi
2890 # No prefix.
2891 target_subdir=${target_noncanonical}
2892
2893 # Be sure to cover against remnants of an in-tree build.
2894 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2895 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2896 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2897 fi
2898
2899 # Skipdirs are removed silently.
2900 skipdirs=
2901 # Noconfigdirs are removed loudly.
2902 noconfigdirs=""
2903
2904 use_gnu_ld=
2905 # Make sure we don't let GNU ld be added if we didn't want it.
2906 if test x$with_gnu_ld = xno ; then
2907 use_gnu_ld=no
2908 noconfigdirs="$noconfigdirs ld gold"
2909 fi
2910
2911 use_gnu_as=
2912 # Make sure we don't let GNU as be added if we didn't want it.
2913 if test x$with_gnu_as = xno ; then
2914 use_gnu_as=no
2915 noconfigdirs="$noconfigdirs gas"
2916 fi
2917
2918 use_included_zlib=
2919
2920 # Check whether --with-system-zlib was given.
2921 if test "${with_system_zlib+set}" = set; then :
2922 withval=$with_system_zlib;
2923 fi
2924
2925 # Make sure we don't let ZLIB be added if we didn't want it.
2926 if test x$with_system_zlib = xyes ; then
2927 use_included_zlib=no
2928 noconfigdirs="$noconfigdirs zlib"
2929 fi
2930
2931 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2932 # is provided.
2933 if test x$with_system_readline = xyes ; then
2934 noconfigdirs="$noconfigdirs readline"
2935 fi
2936
2937 # some tools are so dependent upon X11 that if we're not building with X,
2938 # it's not even worth trying to configure, much less build, that tool.
2939
2940 case ${with_x} in
2941 yes | "") ;; # the default value for this tree is that X11 is available
2942 no)
2943 skipdirs="${skipdirs} tk itcl libgui"
2944 # We won't be able to build gdbtk without X.
2945 enable_gdbtk=no
2946 ;;
2947 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2948 esac
2949
2950 # Some are only suitable for cross toolchains.
2951 # Remove these if host=target.
2952 cross_only="target-libgloss target-newlib target-opcodes"
2953
2954 case $is_cross_compiler in
2955 no) skipdirs="${skipdirs} ${cross_only}" ;;
2956 esac
2957
2958 # If both --with-headers and --with-libs are specified, default to
2959 # --without-newlib.
2960 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2961 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2962 if test x"${with_newlib}" = x ; then
2963 with_newlib=no
2964 fi
2965 fi
2966
2967 # Recognize --with-newlib/--without-newlib.
2968 case ${with_newlib} in
2969 no) skipdirs="${skipdirs} target-newlib" ;;
2970 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2971 esac
2972
2973 # Check whether --enable-as-accelerator-for was given.
2974 if test "${enable_as_accelerator_for+set}" = set; then :
2975 enableval=$enable_as_accelerator_for;
2976 fi
2977
2978
2979 # Check whether --enable-offload-targets was given.
2980 if test "${enable_offload_targets+set}" = set; then :
2981 enableval=$enable_offload_targets;
2982 if test x"$enable_offload_targets" = x; then
2983 as_fn_error $? "no offload targets specified" "$LINENO" 5
2984 fi
2985
2986 else
2987 enable_offload_targets=
2988 fi
2989
2990
2991 # Handle --enable-gold, --enable-ld.
2992 # --disable-gold [--enable-ld]
2993 # Build only ld. Default option.
2994 # --enable-gold [--enable-ld]
2995 # Build both gold and ld. Install gold as "ld.gold", install ld
2996 # as "ld.bfd" and "ld".
2997 # --enable-gold=default [--enable-ld]
2998 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2999 # install ld as "ld.bfd".
3000 # --enable-gold[=default] --disable-ld
3001 # Build only gold, which is then installed as both "ld.gold" and "ld".
3002 # --enable-gold --enable-ld=default
3003 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3004 # and ld.bfd).
3005 # In other words, ld is default
3006 # --enable-gold=default --enable-ld=default
3007 # Error.
3008
3009 default_ld=
3010 # Check whether --enable-gold was given.
3011 if test "${enable_gold+set}" = set; then :
3012 enableval=$enable_gold; ENABLE_GOLD=$enableval
3013 else
3014 ENABLE_GOLD=no
3015 fi
3016
3017 case "${ENABLE_GOLD}" in
3018 yes|default)
3019 # Check for ELF target.
3020 is_elf=no
3021 case "${target}" in
3022 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3023 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3024 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3025 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3026 case "${target}" in
3027 *-*-linux*aout* | *-*-linux*oldld*)
3028 ;;
3029 *)
3030 is_elf=yes
3031 ;;
3032 esac
3033 esac
3034
3035 if test "$is_elf" = "yes"; then
3036 # Check for target supported by gold.
3037 case "${target}" in
3038 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3039 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3040 configdirs="$configdirs gold"
3041 if test x${ENABLE_GOLD} = xdefault; then
3042 default_ld=gold
3043 fi
3044 ENABLE_GOLD=yes
3045 ;;
3046 esac
3047 fi
3048 ;;
3049 no)
3050 ;;
3051 *)
3052 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3053 ;;
3054 esac
3055
3056 # Check whether --enable-ld was given.
3057 if test "${enable_ld+set}" = set; then :
3058 enableval=$enable_ld; ENABLE_LD=$enableval
3059 else
3060 ENABLE_LD=yes
3061 fi
3062
3063
3064 case "${ENABLE_LD}" in
3065 default)
3066 if test x${default_ld} != x; then
3067 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3068 fi
3069 ;;
3070 yes)
3071 ;;
3072 no)
3073 if test x${ENABLE_GOLD} != xyes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3075 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3076 fi
3077 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3078 ;;
3079 *)
3080 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3081 ;;
3082 esac
3083
3084 # PR gas/19109
3085 # Decide the default method for compressing debug sections.
3086 # Provide a configure time option to override our default.
3087 # Check whether --enable-compressed_debug_sections was given.
3088 if test "${enable_compressed_debug_sections+set}" = set; then :
3089 enableval=$enable_compressed_debug_sections;
3090 if test x"$enable_compressed_debug_sections" = xyes; then
3091 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3092 fi
3093
3094 else
3095 enable_compressed_debug_sections=
3096 fi
3097
3098
3099 # Configure extra directories which are host specific
3100
3101 case "${host}" in
3102 *-cygwin*)
3103 configdirs="$configdirs libtermcap" ;;
3104 esac
3105
3106 # A target can indicate whether a language isn't supported for some reason.
3107 # Only spaces may be used in this macro; not newlines or tabs.
3108 unsupported_languages=
3109
3110 # Remove more programs from consideration, based on the host or
3111 # target this usually means that a port of the program doesn't
3112 # exist yet.
3113
3114 case "${host}" in
3115 i[3456789]86-*-msdosdjgpp*)
3116 noconfigdirs="$noconfigdirs tcl tk itcl"
3117 ;;
3118 esac
3119
3120
3121 # Check whether --enable-libquadmath was given.
3122 if test "${enable_libquadmath+set}" = set; then :
3123 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3124 else
3125 ENABLE_LIBQUADMATH=yes
3126 fi
3127
3128 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3129 noconfigdirs="$noconfigdirs target-libquadmath"
3130 fi
3131
3132
3133 # Check whether --enable-libquadmath-support was given.
3134 if test "${enable_libquadmath_support+set}" = set; then :
3135 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3136 else
3137 ENABLE_LIBQUADMATH_SUPPORT=yes
3138 fi
3139
3140 enable_libquadmath_support=
3141 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3142 enable_libquadmath_support=no
3143 fi
3144
3145
3146 # Check whether --enable-libada was given.
3147 if test "${enable_libada+set}" = set; then :
3148 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3149 else
3150 ENABLE_LIBADA=yes
3151 fi
3152
3153 if test "${ENABLE_LIBADA}" != "yes" ; then
3154 noconfigdirs="$noconfigdirs gnattools"
3155 fi
3156
3157 # Check whether --enable-libssp was given.
3158 if test "${enable_libssp+set}" = set; then :
3159 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3160 else
3161 ENABLE_LIBSSP=yes
3162 fi
3163
3164
3165 # Check whether --enable-libstdcxx was given.
3166 if test "${enable_libstdcxx+set}" = set; then :
3167 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3168 else
3169 ENABLE_LIBSTDCXX=default
3170 fi
3171
3172 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3174 fi
3175
3176 # If this is accelerator compiler and its target is intelmic we enable
3177 # target liboffloadmic by default. If this is compiler with offloading
3178 # for intelmic we enable host liboffloadmic by default. Otherwise
3179 # liboffloadmic is disabled by default.
3180 # Check whether --enable-liboffloadmic was given.
3181 if test "${enable_liboffloadmic+set}" = set; then :
3182 enableval=$enable_liboffloadmic; case "$enableval" in
3183 no | host | target)
3184 enable_liboffloadmic=$enableval ;;
3185 *)
3186 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3187 esac
3188 else
3189 if test x"$enable_as_accelerator_for" != x; then
3190 case "${target}" in
3191 *-intelmic-* | *-intelmicemul-*)
3192 enable_liboffloadmic=target
3193 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3194 ;;
3195 *)
3196 enable_liboffloadmic=no
3197 ;;
3198 esac
3199 else
3200 case "${enable_offload_targets}" in
3201 *-intelmic-* | *-intelmicemul-*)
3202 enable_liboffloadmic=host
3203 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3204 ;;
3205 *)
3206 enable_liboffloadmic=no
3207 ;;
3208 esac
3209 fi
3210 fi
3211
3212
3213
3214 # Enable libgomp by default on hosted POSIX systems, and a few others.
3215 if test x$enable_libgomp = x ; then
3216 case "${target}" in
3217 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3218 ;;
3219 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3220 ;;
3221 *-*-solaris2* | *-*-hpux11*)
3222 ;;
3223 *-*-darwin* | *-*-aix*)
3224 ;;
3225 nvptx*-*-*)
3226 ;;
3227 *)
3228 noconfigdirs="$noconfigdirs target-libgomp"
3229 ;;
3230 esac
3231 fi
3232
3233 # Disable libatomic on unsupported systems.
3234 if test -d ${srcdir}/libatomic; then
3235 if test x$enable_libatomic = x; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3237 $as_echo_n "checking for libatomic support... " >&6; }
3238 if (srcdir=${srcdir}/libatomic; \
3239 . ${srcdir}/configure.tgt; \
3240 test -n "$UNSUPPORTED")
3241 then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 noconfigdirs="$noconfigdirs target-libatomic"
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248 fi
3249 fi
3250 fi
3251
3252 # Disable liboffloadmic on unsupported systems.
3253 if test -d ${srcdir}/liboffloadmic; then
3254 if test x$enable_liboffloadmic != xno; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3256 $as_echo_n "checking for liboffloadmic support... " >&6; }
3257 if (srcdir=${srcdir}/liboffloadmic; \
3258 . ${srcdir}/configure.tgt; \
3259 test -n "$UNSUPPORTED")
3260 then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 noconfigdirs="$noconfigdirs target-liboffloadmic"
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3267 fi
3268 fi
3269 fi
3270
3271 # Disable libitm on unsupported systems.
3272 if test -d ${srcdir}/libitm; then
3273 if test x$enable_libitm = x; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3275 $as_echo_n "checking for libitm support... " >&6; }
3276 if (srcdir=${srcdir}/libitm; \
3277 . ${srcdir}/configure.tgt; \
3278 test -n "$UNSUPPORTED")
3279 then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 noconfigdirs="$noconfigdirs target-libitm"
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286 fi
3287 fi
3288 fi
3289
3290 # Disable libsanitizer on unsupported systems.
3291 if test -d ${srcdir}/libsanitizer; then
3292 if test x$enable_libsanitizer = x; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3294 $as_echo_n "checking for libsanitizer support... " >&6; }
3295 if (srcdir=${srcdir}/libsanitizer; \
3296 . ${srcdir}/configure.tgt; \
3297 test -n "$UNSUPPORTED")
3298 then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 noconfigdirs="$noconfigdirs target-libsanitizer"
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3305 fi
3306 fi
3307 fi
3308
3309 # Disable libvtv on unsupported systems.
3310 if test -d ${srcdir}/libvtv; then
3311 if test x$enable_libvtv = x; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3313 $as_echo_n "checking for libvtv support... " >&6; }
3314 if (srcdir=${srcdir}/libvtv; \
3315 . ${srcdir}/configure.tgt; \
3316 test "$VTV_SUPPORTED" != "yes")
3317 then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 noconfigdirs="$noconfigdirs target-libvtv"
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 fi
3325 fi
3326 fi
3327
3328
3329 # Disable libhsail-rt on unsupported systems.
3330 if test -d ${srcdir}/libhsail-rt; then
3331 if test x$enable_libhsail_rt = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3333 $as_echo_n "checking for libhsail-rt support... " >&6; }
3334 if (srcdir=${srcdir}/libhsail-rt; \
3335 . ${srcdir}/configure.tgt; \
3336 test -n "$UNSUPPORTED")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 unsupported_languages="$unsupported_languages brig"
3341 # This implicitly disables also target-libhsail-rt as it won't
3342 # get added to the build without BRIG FE.
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 fi
3347 fi
3348 fi
3349
3350
3351 # Disable libquadmath for some systems.
3352 case "${target}" in
3353 avr-*-*)
3354 noconfigdirs="$noconfigdirs target-libquadmath"
3355 ;;
3356 # libquadmath is unused on AIX and libquadmath build process use of
3357 # LD_LIBRARY_PATH can break AIX bootstrap.
3358 powerpc-*-aix* | rs6000-*-aix*)
3359 noconfigdirs="$noconfigdirs target-libquadmath"
3360 ;;
3361 esac
3362
3363 # Disable libssp for some systems.
3364 case "${target}" in
3365 avr-*-*)
3366 # No hosted I/O support.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
3372 rl78-*-*)
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
3382 esac
3383
3384 # Disable libstdc++-v3 for some systems.
3385 # Allow user to override this if they pass --enable-libstdc++-v3
3386 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
3392 arm*-wince-pe*)
3393 # the C++ libraries don't build on top of CE's C libraries
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
3396 avr-*-*)
3397 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3398 ;;
3399 ft32-*-*)
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
3402 esac
3403 fi
3404
3405 # Disable Fortran for some systems.
3406 case "${target}" in
3407 mmix-*-*)
3408 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3409 unsupported_languages="$unsupported_languages fortran"
3410 ;;
3411 esac
3412
3413 # Disable libffi for some systems.
3414 case "${target}" in
3415 powerpc-*-darwin*)
3416 ;;
3417 i[3456789]86-*-darwin*)
3418 ;;
3419 x86_64-*-darwin[912]*)
3420 ;;
3421 *-*-darwin*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 *-*-netware*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 *-*-phoenix*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 *-*-rtems*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 *-*-tpf*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 *-*-uclinux*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 *-*-vxworks*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 aarch64*-*-freebsd*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 alpha*-*-*vms*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 arm*-*-freebsd*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 arm-wince-pe)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 arm*-*-symbianelf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 cris-*-* | crisv32-*-*)
3458 case "${target}" in
3459 *-*-linux*)
3460 ;;
3461 *) # See PR46792 regarding target-libffi.
3462 noconfigdirs="$noconfigdirs target-libffi";;
3463 esac
3464 ;;
3465 hppa*64*-*-hpux*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 hppa*-hp-hpux11*)
3469 ;;
3470 hppa*-*-hpux*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3472 ;;
3473 ia64*-*-*vms*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3475 ;;
3476 i[3456789]86-w64-mingw*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3478 ;;
3479 i[3456789]86-*-mingw*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3481 ;;
3482 x86_64-*-mingw*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3484 ;;
3485 mmix-*-*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3487 ;;
3488 powerpc-*-aix*)
3489 ;;
3490 rs6000-*-aix*)
3491 ;;
3492 ft32-*-*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 *-*-lynxos*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 esac
3499
3500 # Disable the go frontend on systems where it is known to not work. Please keep
3501 # this in sync with contrib/config-list.mk.
3502 case "${target}" in
3503 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3504 unsupported_languages="$unsupported_languages go"
3505 ;;
3506 esac
3507
3508 # Disable libgo for some systems where it is known to not work.
3509 # For testing, you can easily override this with --enable-libgo.
3510 if test x$enable_libgo = x; then
3511 case "${target}" in
3512 *-*-darwin*)
3513 # PR 46986
3514 noconfigdirs="$noconfigdirs target-libgo"
3515 ;;
3516 *-*-cygwin* | *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libgo"
3518 ;;
3519 esac
3520 fi
3521
3522 # Default libgloss CPU subdirectory.
3523 libgloss_dir="$target_cpu"
3524
3525 case "${target}" in
3526 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3527 libgloss_dir=wince
3528 ;;
3529 aarch64*-*-* )
3530 libgloss_dir=aarch64
3531 ;;
3532 arm*-*-*)
3533 libgloss_dir=arm
3534 ;;
3535 cris-*-* | crisv32-*-*)
3536 libgloss_dir=cris
3537 ;;
3538 hppa*-*-*)
3539 libgloss_dir=pa
3540 ;;
3541 i[3456789]86-*-*)
3542 libgloss_dir=i386
3543 ;;
3544 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3545 libgloss_dir=m68hc11
3546 ;;
3547 m68*-*-* | fido-*-*)
3548 libgloss_dir=m68k
3549 ;;
3550 mips*-*-*)
3551 libgloss_dir=mips
3552 ;;
3553 powerpc*-*-*)
3554 libgloss_dir=rs6000
3555 ;;
3556 sparc*-*-*)
3557 libgloss_dir=sparc
3558 ;;
3559 esac
3560
3561 # Disable newlib and libgloss for various target OSes.
3562 case "${target}" in
3563 alpha*-dec-osf*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 i[3456789]86-*-linux*)
3567 # This section makes it possible to build newlib natively on linux.
3568 # If we are using a cross compiler then don't configure newlib.
3569 if test x${is_cross_compiler} != xno ; then
3570 noconfigdirs="$noconfigdirs target-newlib"
3571 fi
3572 noconfigdirs="$noconfigdirs target-libgloss"
3573 # If we are not using a cross compiler, do configure newlib.
3574 # Note however, that newlib will only be configured in this situation
3575 # if the --with-newlib option has been given, because otherwise
3576 # 'target-newlib' will appear in skipdirs.
3577 ;;
3578 i[3456789]86-*-rdos*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3580 ;;
3581 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3582 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3583 ;;
3584 sparc-*-sunos4*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 *-*-aix*)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3589 ;;
3590 *-*-beos*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3592 ;;
3593 *-*-chorusos)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3595 ;;
3596 *-*-dragonfly*)
3597 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 ;;
3599 *-*-freebsd*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-mingw*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-netbsd*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-netware*)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-tpf*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-uclinux*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-vxworks*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626 esac
3627
3628 case "${target}" in
3629 *-*-chorusos)
3630 ;;
3631 aarch64-*-darwin*)
3632 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3634 ;;
3635 arm-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3638 ;;
3639 powerpc-*-darwin*)
3640 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3641 noconfigdirs="$noconfigdirs sim target-rda"
3642 ;;
3643 i[3456789]86-*-darwin*)
3644 noconfigdirs="$noconfigdirs ld gprof"
3645 noconfigdirs="$noconfigdirs sim target-rda"
3646 ;;
3647 x86_64-*-darwin[912]*)
3648 noconfigdirs="$noconfigdirs ld gas gprof"
3649 noconfigdirs="$noconfigdirs sim target-rda"
3650 ;;
3651 *-*-darwin*)
3652 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3653 noconfigdirs="$noconfigdirs sim target-rda"
3654 ;;
3655 *-*-dragonfly*)
3656 ;;
3657 *-*-freebsd*)
3658 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3659 && test -f /usr/local/include/gmp.h; then
3660 with_gmp=/usr/local
3661 fi
3662 ;;
3663 *-*-kaos*)
3664 # Remove unsupported stuff on all kaOS configurations.
3665 noconfigdirs="$noconfigdirs target-libgloss"
3666 ;;
3667 *-*-netbsd*)
3668 ;;
3669 *-*-netware*)
3670 ;;
3671 *-*-phoenix*)
3672 noconfigdirs="$noconfigdirs target-libgloss"
3673 ;;
3674 *-*-rtems*)
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 ;;
3677 # The tpf target doesn't support gdb yet.
3678 *-*-tpf*)
3679 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3680 ;;
3681 *-*-uclinux*)
3682 noconfigdirs="$noconfigdirs target-rda"
3683 ;;
3684 *-*-vxworks*)
3685 ;;
3686 alpha*-dec-osf*)
3687 # ld works, but does not support shared libraries.
3688 # gas doesn't generate exception information.
3689 noconfigdirs="$noconfigdirs gas ld"
3690 ;;
3691 alpha*-*-*vms*)
3692 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3693 ;;
3694 alpha*-*-*)
3695 # newlib is not 64 bit ready
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
3698 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3699 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3700 ;;
3701 arc*-*-*)
3702 noconfigdirs="$noconfigdirs sim"
3703 ;;
3704 arm-*-pe*)
3705 noconfigdirs="$noconfigdirs target-libgloss"
3706 ;;
3707 arm-*-riscix*)
3708 noconfigdirs="$noconfigdirs ld target-libgloss"
3709 ;;
3710 avr-*-*)
3711 if test x${with_avrlibc} != xno; then
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 fi
3714 ;;
3715 c4x-*-* | tic4x-*-*)
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 ;;
3718 tic54x-*-*)
3719 noconfigdirs="$noconfigdirs target-libgloss gdb"
3720 ;;
3721 d10v-*-*)
3722 noconfigdirs="$noconfigdirs target-libgloss"
3723 ;;
3724 d30v-*-*)
3725 noconfigdirs="$noconfigdirs gdb"
3726 ;;
3727 fr30-*-elf*)
3728 noconfigdirs="$noconfigdirs gdb"
3729 ;;
3730 ft32-*-*)
3731 noconfigdirs="$noconfigdirs target-rda gprof"
3732 ;;
3733 moxie-*-*)
3734 noconfigdirs="$noconfigdirs"
3735 ;;
3736 h8300*-*-*)
3737 noconfigdirs="$noconfigdirs target-libgloss"
3738 ;;
3739 h8500-*-*)
3740 noconfigdirs="$noconfigdirs target-libgloss"
3741 ;;
3742 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3743 ;;
3744 hppa*64*-*-hpux*)
3745 noconfigdirs="$noconfigdirs gdb"
3746 ;;
3747 hppa*-*-hpux11*)
3748 noconfigdirs="$noconfigdirs gdb ld"
3749 ;;
3750 hppa*64*-*-linux*)
3751 ;;
3752 hppa*-*-linux*)
3753 ;;
3754 hppa*-*-*elf* | \
3755 hppa*-*-lites* | \
3756 hppa*-*-openbsd* | \
3757 hppa*64*-*-*)
3758 ;;
3759 hppa*-*-pro*)
3760 ;;
3761 hppa*-*-*)
3762 noconfigdirs="$noconfigdirs ld"
3763 ;;
3764 i960-*-*)
3765 noconfigdirs="$noconfigdirs gdb"
3766 ;;
3767 ia64*-*-elf*)
3768 # No gdb support yet.
3769 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3770 ;;
3771 ia64*-**-hpux*)
3772 # No ld support yet.
3773 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3774 ;;
3775 ia64*-*-*vms*)
3776 # No ld support yet.
3777 noconfigdirs="$noconfigdirs libgui itcl ld"
3778 ;;
3779 i[3456789]86-w64-mingw*)
3780 ;;
3781 i[3456789]86-*-mingw*)
3782 target_configdirs="$target_configdirs target-winsup"
3783 ;;
3784 *-*-cygwin*)
3785 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 # always build newlib if winsup directory is present.
3788 if test -d "$srcdir/winsup/cygwin"; then
3789 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3790 elif test -d "$srcdir/newlib"; then
3791 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3792 fi
3793 ;;
3794 i[3456789]86-*-pe)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3796 ;;
3797 i[3456789]86-*-sco3.2v5*)
3798 # The linker does not yet know about weak symbols in COFF,
3799 # and is not configured to handle mixed ELF and COFF.
3800 noconfigdirs="$noconfigdirs ld target-libgloss"
3801 ;;
3802 i[3456789]86-*-sco*)
3803 noconfigdirs="$noconfigdirs gprof target-libgloss"
3804 ;;
3805 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 ;;
3808 i[3456789]86-*-sysv4*)
3809 noconfigdirs="$noconfigdirs target-libgloss"
3810 ;;
3811 i[3456789]86-*-beos*)
3812 noconfigdirs="$noconfigdirs gdb"
3813 ;;
3814 i[3456789]86-*-rdos*)
3815 noconfigdirs="$noconfigdirs gdb"
3816 ;;
3817 mmix-*-*)
3818 noconfigdirs="$noconfigdirs gdb"
3819 ;;
3820 mt-*-*)
3821 noconfigdirs="$noconfigdirs sim"
3822 ;;
3823 nfp-*-*)
3824 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3825 noconfigdirs="$noconfigdirs $target_libraries"
3826 ;;
3827 powerpc-*-aix*)
3828 # copied from rs6000-*-* entry
3829 noconfigdirs="$noconfigdirs gprof"
3830 ;;
3831 powerpc*-*-winnt* | powerpc*-*-pe*)
3832 target_configdirs="$target_configdirs target-winsup"
3833 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3834 # always build newlib.
3835 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3836 ;;
3837 # This is temporary until we can link against shared libraries
3838 powerpcle-*-solaris*)
3839 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3840 ;;
3841 powerpc-*-beos*)
3842 noconfigdirs="$noconfigdirs gdb"
3843 ;;
3844 rs6000-*-lynxos*)
3845 noconfigdirs="$noconfigdirs gprof"
3846 ;;
3847 rs6000-*-aix*)
3848 noconfigdirs="$noconfigdirs gprof"
3849 ;;
3850 rs6000-*-*)
3851 noconfigdirs="$noconfigdirs gprof"
3852 ;;
3853 m68k-apollo-*)
3854 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3855 ;;
3856 microblaze*)
3857 noconfigdirs="$noconfigdirs gprof"
3858 ;;
3859 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3860 if test x$with_newlib = xyes; then
3861 noconfigdirs="$noconfigdirs gprof"
3862 fi
3863 ;;
3864 mips*-*-irix5*)
3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
3866 ;;
3867 mips*-*-irix6*)
3868 noconfigdirs="$noconfigdirs gprof target-libgloss"
3869 ;;
3870 mips*-*-bsd*)
3871 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3872 ;;
3873 mips*-*-linux*)
3874 ;;
3875 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3876 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3877 noconfigdirs="$noconfigdirs ld gas gprof"
3878 ;;
3879 mips*-*-*)
3880 noconfigdirs="$noconfigdirs gprof"
3881 ;;
3882 nvptx*-*-*)
3883 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3884 ;;
3885 sh-*-*)
3886 case "${target}" in
3887 sh*-*-elf)
3888 ;;
3889 *)
3890 noconfigdirs="$noconfigdirs target-libgloss" ;;
3891 esac
3892 ;;
3893 sparc-*-sunos4*)
3894 if test x${is_cross_compiler} = xno ; then
3895 use_gnu_ld=no
3896 fi
3897 ;;
3898 tic6x-*-*)
3899 noconfigdirs="$noconfigdirs sim"
3900 ;;
3901 tilepro*-*-* | tilegx*-*-*)
3902 noconfigdirs="$noconfigdirs sim"
3903 ;;
3904 v810-*-*)
3905 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3906 ;;
3907 vax-*-*)
3908 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3909 ;;
3910 wasm32-*-*)
3911 noconfigdirs="$noconfigdirs ld"
3912 ;;
3913 esac
3914
3915 # If we aren't building newlib, then don't build libgloss, since libgloss
3916 # depends upon some newlib header files.
3917 case "${noconfigdirs}" in
3918 *target-libgloss*) ;;
3919 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3920 esac
3921
3922 # Work in distributions that contain no compiler tools, like Autoconf.
3923 host_makefile_frag=/dev/null
3924 if test -d ${srcdir}/config ; then
3925 case "${host}" in
3926 i[3456789]86-*-msdosdjgpp*)
3927 host_makefile_frag="config/mh-djgpp"
3928 ;;
3929 *-cygwin*)
3930
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3932 $as_echo_n "checking to see if cat works as expected... " >&6; }
3933 echo a >cygwin-cat-check
3934 if test `cat cygwin-cat-check` = a ; then
3935 rm cygwin-cat-check
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3938 else
3939 rm cygwin-cat-check
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 as_fn_error $? "The cat command does not ignore carriage return characters.
3943 Please either mount the build directory in binary mode or run the following
3944 commands before running any configure script:
3945 set -o igncr
3946 export SHELLOPTS
3947 " "$LINENO" 5
3948 fi
3949
3950 host_makefile_frag="config/mh-cygwin"
3951 ;;
3952 *-mingw*)
3953 host_makefile_frag="config/mh-mingw"
3954 ;;
3955 alpha*-linux*)
3956 host_makefile_frag="config/mh-alpha-linux"
3957 ;;
3958 hppa*-hp-hpux10*)
3959 host_makefile_frag="config/mh-pa-hpux10"
3960 ;;
3961 hppa*-hp-hpux*)
3962 host_makefile_frag="config/mh-pa"
3963 ;;
3964 hppa*-*)
3965 host_makefile_frag="config/mh-pa"
3966 ;;
3967 *-*-darwin*)
3968 host_makefile_frag="config/mh-darwin"
3969 ;;
3970 powerpc-*-aix*)
3971 host_makefile_frag="config/mh-ppc-aix"
3972 ;;
3973 rs6000-*-aix*)
3974 host_makefile_frag="config/mh-ppc-aix"
3975 ;;
3976 esac
3977 fi
3978
3979 if test "${build}" != "${host}" ; then
3980 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3981 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3982 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3983 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3984 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3985 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3986 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3987 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3988 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3989 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3990 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3991 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3992 else
3993 AR_FOR_BUILD="\$(AR)"
3994 AS_FOR_BUILD="\$(AS)"
3995 CC_FOR_BUILD="\$(CC)"
3996 CXX_FOR_BUILD="\$(CXX)"
3997 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3998 GOC_FOR_BUILD="\$(GOC)"
3999 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4000 LD_FOR_BUILD="\$(LD)"
4001 NM_FOR_BUILD="\$(NM)"
4002 RANLIB_FOR_BUILD="\$(RANLIB)"
4003 WINDRES_FOR_BUILD="\$(WINDRES)"
4004 WINDMC_FOR_BUILD="\$(WINDMC)"
4005 fi
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if ${ac_cv_prog_CC+:} false; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 break 2
4033 fi
4034 done
4035 done
4036 IFS=$as_save_IFS
4037
4038 fi
4039 fi
4040 CC=$ac_cv_prog_CC
4041 if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4047 fi
4048
4049
4050 fi
4051 if test -z "$ac_cv_prog_CC"; then
4052 ac_ct_CC=$CC
4053 # Extract the first word of "gcc", so it can be a program name with args.
4054 set dummy gcc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$ac_ct_CC"; then
4061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_ac_ct_CC="gcc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081 if test -n "$ac_ct_CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083 $as_echo "$ac_ct_CC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089 if test "x$ac_ct_CC" = x; then
4090 CC=""
4091 else
4092 case $cross_compiling:$ac_tool_warned in
4093 yes:)
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096 ac_tool_warned=yes ;;
4097 esac
4098 CC=$ac_ct_CC
4099 fi
4100 else
4101 CC="$ac_cv_prog_CC"
4102 fi
4103
4104 if test -z "$CC"; then
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}cc; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CC="${ac_tool_prefix}cc"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 CC=$ac_cv_prog_CC
4134 if test -n "$CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136 $as_echo "$CC" >&6; }
4137 else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4140 fi
4141
4142
4143 fi
4144 fi
4145 if test -z "$CC"; then
4146 # Extract the first word of "cc", so it can be a program name with args.
4147 set dummy cc; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if ${ac_cv_prog_CC+:} false; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 if test -n "$CC"; then
4154 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 else
4156 ac_prog_rejected=no
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4165 ac_prog_rejected=yes
4166 continue
4167 fi
4168 ac_cv_prog_CC="cc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 if test $ac_prog_rejected = yes; then
4177 # We found a bogon in the path, so make sure we never use it.
4178 set dummy $ac_cv_prog_CC
4179 shift
4180 if test $# != 0; then
4181 # We chose a different compiler from the bogus one.
4182 # However, it has the same basename, so the bogon will be chosen
4183 # first if we set CC to just the basename; use the full file name.
4184 shift
4185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4186 fi
4187 fi
4188 fi
4189 fi
4190 CC=$ac_cv_prog_CC
4191 if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193 $as_echo "$CC" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200 fi
4201 if test -z "$CC"; then
4202 if test -n "$ac_tool_prefix"; then
4203 for ac_prog in cl.exe
4204 do
4205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_CC+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 $as_echo "$CC" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241
4242 test -n "$CC" && break
4243 done
4244 fi
4245 if test -z "$CC"; then
4246 ac_ct_CC=$CC
4247 for ac_prog in cl.exe
4248 do
4249 # Extract the first word of "$ac_prog", so it can be a program name with args.
4250 set dummy $ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$ac_ct_CC"; then
4257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4258 else
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_CC="$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi
4275 fi
4276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277 if test -n "$ac_ct_CC"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4279 $as_echo "$ac_ct_CC" >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 fi
4284
4285
4286 test -n "$ac_ct_CC" && break
4287 done
4288
4289 if test "x$ac_ct_CC" = x; then
4290 CC=""
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293 yes:)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4297 esac
4298 CC=$ac_ct_CC
4299 fi
4300 fi
4301
4302 fi
4303
4304
4305 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307 as_fn_error $? "no acceptable C compiler found in \$PATH
4308 See \`config.log' for more details" "$LINENO" 5; }
4309
4310 # Provide some information about the compiler.
4311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4312 set X $ac_compile
4313 ac_compiler=$2
4314 for ac_option in --version -v -V -qversion; do
4315 { { ac_try="$ac_compiler $ac_option >&5"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4323 ac_status=$?
4324 if test -s conftest.err; then
4325 sed '10a\
4326 ... rest of stderr output deleted ...
4327 10q' conftest.err >conftest.er1
4328 cat conftest.er1 >&5
4329 fi
4330 rm -f conftest.er1 conftest.err
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }
4333 done
4334
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4337
4338 int
4339 main ()
4340 {
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 ac_clean_files_save=$ac_clean_files
4347 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4348 # Try to create an executable without -o first, disregard a.out.
4349 # It will help us diagnose broken compilers, and finding out an intuition
4350 # of exeext.
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4352 $as_echo_n "checking whether the C compiler works... " >&6; }
4353 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4354
4355 # The possible output files:
4356 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357
4358 ac_rmfiles=
4359 for ac_file in $ac_files
4360 do
4361 case $ac_file in
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4364 esac
4365 done
4366 rm -f $ac_rmfiles
4367
4368 if { { ac_try="$ac_link_default"
4369 case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_link_default") 2>&5
4376 ac_status=$?
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; }; then :
4379 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4380 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4381 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4382 # so that the user can short-circuit this test for compilers unknown to
4383 # Autoconf.
4384 for ac_file in $ac_files ''
4385 do
4386 test -f "$ac_file" || continue
4387 case $ac_file in
4388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4389 ;;
4390 [ab].out )
4391 # We found the default executable, but exeext='' is most
4392 # certainly right.
4393 break;;
4394 *.* )
4395 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4396 then :; else
4397 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 fi
4399 # We set ac_cv_exeext here because the later test for it is not
4400 # safe: cross compilers may not add the suffix if given an `-o'
4401 # argument, so we may need to know it at that point already.
4402 # Even if this section looks crufty: it has the advantage of
4403 # actually working.
4404 break;;
4405 * )
4406 break;;
4407 esac
4408 done
4409 test "$ac_cv_exeext" = no && ac_cv_exeext=
4410
4411 else
4412 ac_file=''
4413 fi
4414 if test -z "$ac_file"; then :
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 $as_echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error 77 "C compiler cannot create executables
4423 See \`config.log' for more details" "$LINENO" 5; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426 $as_echo "yes" >&6; }
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4429 $as_echo_n "checking for C compiler default output file name... " >&6; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4431 $as_echo "$ac_file" >&6; }
4432 ac_exeext=$ac_cv_exeext
4433
4434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4435 ac_clean_files=$ac_clean_files_save
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4437 $as_echo_n "checking for suffix of executables... " >&6; }
4438 if { { ac_try="$ac_link"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; then :
4449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4451 # work properly (i.e., refer to `conftest.exe'), while it won't with
4452 # `rm'.
4453 for ac_file in conftest.exe conftest conftest.*; do
4454 test -f "$ac_file" || continue
4455 case $ac_file in
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4458 break;;
4459 * ) break;;
4460 esac
4461 done
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4466 See \`config.log' for more details" "$LINENO" 5; }
4467 fi
4468 rm -f conftest conftest$ac_cv_exeext
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4470 $as_echo "$ac_cv_exeext" >&6; }
4471
4472 rm -f conftest.$ac_ext
4473 EXEEXT=$ac_cv_exeext
4474 ac_exeext=$EXEEXT
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #include <stdio.h>
4478 int
4479 main ()
4480 {
4481 FILE *f = fopen ("conftest.out", "w");
4482 return ferror (f) || fclose (f) != 0;
4483
4484 ;
4485 return 0;
4486 }
4487 _ACEOF
4488 ac_clean_files="$ac_clean_files conftest.out"
4489 # Check that the compiler produces executables we can run. If not, either
4490 # the compiler is broken, or we cross compile.
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4492 $as_echo_n "checking whether we are cross compiling... " >&6; }
4493 if test "$cross_compiling" != yes; then
4494 { { ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505 if { ac_try='./conftest$ac_cv_exeext'
4506 { { case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_try") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; }; then
4516 cross_compiling=no
4517 else
4518 if test "$cross_compiling" = maybe; then
4519 cross_compiling=yes
4520 else
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error $? "cannot run C compiled programs.
4524 If you meant to cross compile, use \`--host'.
4525 See \`config.log' for more details" "$LINENO" 5; }
4526 fi
4527 fi
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4530 $as_echo "$cross_compiling" >&6; }
4531
4532 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4533 ac_clean_files=$ac_clean_files_save
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4535 $as_echo_n "checking for suffix of object files... " >&6; }
4536 if ${ac_cv_objext+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 rm -f conftest.o conftest.obj
4551 if { { ac_try="$ac_compile"
4552 case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555 esac
4556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4557 $as_echo "$ac_try_echo"; } >&5
4558 (eval "$ac_compile") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4561 test $ac_status = 0; }; then :
4562 for ac_file in conftest.o conftest.obj conftest.*; do
4563 test -f "$ac_file" || continue;
4564 case $ac_file in
4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567 break;;
4568 esac
4569 done
4570 else
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error $? "cannot compute suffix of object files: cannot compile
4577 See \`config.log' for more details" "$LINENO" 5; }
4578 fi
4579 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4580 fi
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4582 $as_echo "$ac_cv_objext" >&6; }
4583 OBJEXT=$ac_cv_objext
4584 ac_objext=$OBJEXT
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4587 if ${ac_cv_c_compiler_gnu+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 int
4594 main ()
4595 {
4596 #ifndef __GNUC__
4597 choke me
4598 #endif
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 ac_compiler_gnu=yes
4606 else
4607 ac_compiler_gnu=no
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615 if test $ac_compiler_gnu = yes; then
4616 GCC=yes
4617 else
4618 GCC=
4619 fi
4620 ac_test_CFLAGS=${CFLAGS+set}
4621 ac_save_CFLAGS=$CFLAGS
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4624 if ${ac_cv_prog_cc_g+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 ac_cv_prog_cc_g=no
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 int
4635 main ()
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644 else
4645 CFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main ()
4651 {
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658
4659 else
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main ()
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684 $as_echo "$ac_cv_prog_cc_g" >&6; }
4685 if test "$ac_test_CFLAGS" = set; then
4686 CFLAGS=$ac_save_CFLAGS
4687 elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="-g -O2"
4690 else
4691 CFLAGS="-g"
4692 fi
4693 else
4694 if test "$GCC" = yes; then
4695 CFLAGS="-O2"
4696 else
4697 CFLAGS=
4698 fi
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4702 if ${ac_cv_prog_cc_c89+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 ac_cv_prog_cc_c89=no
4706 ac_save_CC=$CC
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <stdarg.h>
4710 #include <stdio.h>
4711 struct stat;
4712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4713 struct buf { int x; };
4714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715 static char *e (p, i)
4716 char **p;
4717 int i;
4718 {
4719 return p[i];
4720 }
4721 static char *f (char * (*g) (char **, int), char **p, ...)
4722 {
4723 char *s;
4724 va_list v;
4725 va_start (v,p);
4726 s = g (p, va_arg (v,int));
4727 va_end (v);
4728 return s;
4729 }
4730
4731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4732 function prototypes and stuff, but not '\xHH' hex character constants.
4733 These don't provoke an error unfortunately, instead are silently treated
4734 as 'x'. The following induces an error, until -std is added to get
4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4736 array size at least. It's necessary to write '\x00'==0 to get something
4737 that's true only with -std. */
4738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739
4740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741 inside strings and character constants. */
4742 #define FOO(x) 'x'
4743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
4745 int test (int i, double x);
4746 struct s1 {int (*f) (int a);};
4747 struct s2 {int (*f) (double a);};
4748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749 int argc;
4750 char **argv;
4751 int
4752 main ()
4753 {
4754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761 do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c89=$ac_arg
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c89" != "xno" && break
4768 done
4769 rm -f conftest.$ac_ext
4770 CC=$ac_save_CC
4771
4772 fi
4773 # AC_CACHE_VAL
4774 case "x$ac_cv_prog_cc_c89" in
4775 x)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777 $as_echo "none needed" >&6; } ;;
4778 xno)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780 $as_echo "unsupported" >&6; } ;;
4781 *)
4782 CC="$CC $ac_cv_prog_cc_c89"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4785 esac
4786 if test "x$ac_cv_prog_cc_c89" != xno; then :
4787
4788 fi
4789
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796 ac_ext=cpp
4797 ac_cpp='$CXXCPP $CPPFLAGS'
4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801 if test -z "$CXX"; then
4802 if test -n "$CCC"; then
4803 CXX=$CCC
4804 else
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4807 do
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_CXX+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$CXX"; then
4816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829 done
4830 done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 CXX=$ac_cv_prog_CXX
4836 if test -n "$CXX"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838 $as_echo "$CXX" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845 test -n "$CXX" && break
4846 done
4847 fi
4848 if test -z "$CXX"; then
4849 ac_ct_CXX=$CXX
4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4851 do
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$ac_ct_CXX"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880 if test -n "$ac_ct_CXX"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882 $as_echo "$ac_ct_CXX" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 test -n "$ac_ct_CXX" && break
4890 done
4891
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 CXX=$ac_ct_CXX
4902 fi
4903 fi
4904
4905 fi
4906 fi
4907 # Provide some information about the compiler.
4908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909 set X $ac_compile
4910 ac_compiler=$2
4911 for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918 $as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920 ac_status=$?
4921 if test -s conftest.err; then
4922 sed '10a\
4923 ... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
4926 fi
4927 rm -f conftest.er1 conftest.err
4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930 done
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4934 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main ()
4942 {
4943 #ifndef __GNUC__
4944 choke me
4945 #endif
4946
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 if ac_fn_cxx_try_compile "$LINENO"; then :
4952 ac_compiler_gnu=yes
4953 else
4954 ac_compiler_gnu=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4958
4959 fi
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4962 if test $ac_compiler_gnu = yes; then
4963 GXX=yes
4964 else
4965 GXX=
4966 fi
4967 ac_test_CXXFLAGS=${CXXFLAGS+set}
4968 ac_save_CXXFLAGS=$CXXFLAGS
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4971 if ${ac_cv_prog_cxx_g+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975 ac_cxx_werror_flag=yes
4976 ac_cv_prog_cxx_g=no
4977 CXXFLAGS="-g"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_cxx_try_compile "$LINENO"; then :
4990 ac_cv_prog_cxx_g=yes
4991 else
4992 CXXFLAGS=""
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_cxx_try_compile "$LINENO"; then :
5005
5006 else
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008 CXXFLAGS="-g"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011
5012 int
5013 main ()
5014 {
5015
5016 ;
5017 return 0;
5018 }
5019 _ACEOF
5020 if ac_fn_cxx_try_compile "$LINENO"; then :
5021 ac_cv_prog_cxx_g=yes
5022 fi
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5032 if test "$ac_test_CXXFLAGS" = set; then
5033 CXXFLAGS=$ac_save_CXXFLAGS
5034 elif test $ac_cv_prog_cxx_g = yes; then
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-g -O2"
5037 else
5038 CXXFLAGS="-g"
5039 fi
5040 else
5041 if test "$GXX" = yes; then
5042 CXXFLAGS="-O2"
5043 else
5044 CXXFLAGS=
5045 fi
5046 fi
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052
5053
5054 # We must set the default linker to the linker used by gcc for the correct
5055 # operation of libtool. If LD is not defined and we are using gcc, try to
5056 # set the LD default to the ld used by gcc.
5057 if test -z "$LD"; then
5058 if test "$GCC" = yes; then
5059 case $build in
5060 *-*-mingw*)
5061 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5062 *)
5063 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5064 esac
5065 case $gcc_prog_ld in
5066 # Accept absolute paths.
5067 [\\/]* | [A-Za-z]:[\\/]*)
5068 LD="$gcc_prog_ld" ;;
5069 esac
5070 fi
5071 fi
5072
5073 # Check whether -static-libstdc++ -static-libgcc is supported.
5074 have_static_libs=no
5075 if test "$GCC" = yes; then
5076 saved_LDFLAGS="$LDFLAGS"
5077
5078 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5080 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5081 ac_ext=cpp
5082 ac_cpp='$CXXCPP $CPPFLAGS'
5083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5086
5087
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090
5091 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5092 #error -static-libstdc++ not implemented
5093 #endif
5094 int main() {}
5095 _ACEOF
5096 if ac_fn_cxx_try_link "$LINENO"; then :
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }; have_static_libs=yes
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext conftest.$ac_ext
5105 ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110
5111
5112 LDFLAGS="$saved_LDFLAGS"
5113 fi
5114
5115
5116
5117
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_GNATBIND+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$GNATBIND"; then
5127 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 GNATBIND=$ac_cv_prog_GNATBIND
5147 if test -n "$GNATBIND"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5149 $as_echo "$GNATBIND" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 fi
5157 if test -z "$ac_cv_prog_GNATBIND"; then
5158 ac_ct_GNATBIND=$GNATBIND
5159 # Extract the first word of "gnatbind", so it can be a program name with args.
5160 set dummy gnatbind; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$ac_ct_GNATBIND"; then
5167 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5187 if test -n "$ac_ct_GNATBIND"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5189 $as_echo "$ac_ct_GNATBIND" >&6; }
5190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195 if test "x$ac_ct_GNATBIND" = x; then
5196 GNATBIND="no"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204 GNATBIND=$ac_ct_GNATBIND
5205 fi
5206 else
5207 GNATBIND="$ac_cv_prog_GNATBIND"
5208 fi
5209
5210 if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5212 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_GNATMAKE+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$GNATMAKE"; then
5219 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 GNATMAKE=$ac_cv_prog_GNATMAKE
5239 if test -n "$GNATMAKE"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5241 $as_echo "$GNATMAKE" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248 fi
5249 if test -z "$ac_cv_prog_GNATMAKE"; then
5250 ac_ct_GNATMAKE=$GNATMAKE
5251 # Extract the first word of "gnatmake", so it can be a program name with args.
5252 set dummy gnatmake; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$ac_ct_GNATMAKE"; then
5259 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5279 if test -n "$ac_ct_GNATMAKE"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5281 $as_echo "$ac_ct_GNATMAKE" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286
5287 if test "x$ac_ct_GNATMAKE" = x; then
5288 GNATMAKE="no"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291 yes:)
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294 ac_tool_warned=yes ;;
5295 esac
5296 GNATMAKE=$ac_ct_GNATMAKE
5297 fi
5298 else
5299 GNATMAKE="$ac_cv_prog_GNATMAKE"
5300 fi
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5303 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5304 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat >conftest.adb <<EOF
5308 procedure conftest is begin null; end conftest;
5309 EOF
5310 acx_cv_cc_gcc_supports_ada=no
5311 # There is a bug in old released versions of GCC which causes the
5312 # driver to exit successfully when the appropriate language module
5313 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5314 # Therefore we must check for the error message as well as an
5315 # unsuccessful exit.
5316 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5317 # given a .adb file, but produce no object file. So we must check
5318 # if an object file was really produced to guard against this.
5319 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5320 if test x"$errors" = x && test -f conftest.$ac_objext; then
5321 acx_cv_cc_gcc_supports_ada=yes
5322 fi
5323 rm -f conftest.*
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5326 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5327
5328 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5329 have_gnat=yes
5330 else
5331 have_gnat=no
5332 fi
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5335 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5336 if ${gcc_cv_prog_cmp_skip+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 echo abfoo >t1
5340 echo cdfoo >t2
5341 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5344 :
5345 else
5346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5347 fi
5348 fi
5349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5351 :
5352 else
5353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5354 fi
5355 fi
5356 rm t1 t2
5357
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5360 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5361 do_compare="$gcc_cv_prog_cmp_skip"
5362
5363
5364
5365 # Check whether --enable-bootstrap was given.
5366 if test "${enable_bootstrap+set}" = set; then :
5367 enableval=$enable_bootstrap;
5368 else
5369 enable_bootstrap=default
5370 fi
5371
5372
5373 # Issue errors and warnings for invalid/strange bootstrap combinations.
5374 if test -r $srcdir/gcc/configure; then
5375 have_compiler=yes
5376 else
5377 have_compiler=no
5378 fi
5379
5380 case "$have_compiler:$host:$target:$enable_bootstrap" in
5381 *:*:*:no) ;;
5382
5383 # Default behavior. Enable bootstrap if we have a compiler
5384 # and we are in a native configuration.
5385 yes:$build:$build:default)
5386 enable_bootstrap=yes ;;
5387
5388 *:*:*:default)
5389 enable_bootstrap=no ;;
5390
5391 # We have a compiler and we are in a native configuration, bootstrap is ok
5392 yes:$build:$build:yes)
5393 ;;
5394
5395 # Other configurations, but we have a compiler. Assume the user knows
5396 # what he's doing.
5397 yes:*:*:yes)
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5399 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5400 ;;
5401
5402 # No compiler: if they passed --enable-bootstrap explicitly, fail
5403 no:*:*:yes)
5404 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5405
5406 # Fail if wrong command line
5407 *)
5408 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5409 ;;
5410 esac
5411
5412 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5413 # C++98 compiler can still start the bootstrap.
5414 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5415 CXX="$CXX -std=gnu++98"
5416 fi
5417
5418 # Used for setting $lt_cv_objdir
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5420 $as_echo_n "checking for objdir... " >&6; }
5421 if ${lt_cv_objdir+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 rm -f .libs 2>/dev/null
5425 mkdir .libs 2>/dev/null
5426 if test -d .libs; then
5427 lt_cv_objdir=.libs
5428 else
5429 # MS-DOS does not allow filenames that begin with a dot.
5430 lt_cv_objdir=_libs
5431 fi
5432 rmdir .libs 2>/dev/null
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5435 $as_echo "$lt_cv_objdir" >&6; }
5436 objdir=$lt_cv_objdir
5437
5438
5439
5440
5441
5442 cat >>confdefs.h <<_ACEOF
5443 #define LT_OBJDIR "$lt_cv_objdir/"
5444 _ACEOF
5445
5446
5447
5448 # Check for GMP, MPFR and MPC
5449 gmplibs="-lmpc -lmpfr -lgmp"
5450 gmpinc=
5451 have_gmp=no
5452
5453 # Specify a location for mpc
5454 # check for this first so it ends up on the link line before mpfr.
5455
5456 # Check whether --with-mpc was given.
5457 if test "${with_mpc+set}" = set; then :
5458 withval=$with_mpc;
5459 fi
5460
5461
5462 # Check whether --with-mpc-include was given.
5463 if test "${with_mpc_include+set}" = set; then :
5464 withval=$with_mpc_include;
5465 fi
5466
5467
5468 # Check whether --with-mpc-lib was given.
5469 if test "${with_mpc_lib+set}" = set; then :
5470 withval=$with_mpc_lib;
5471 fi
5472
5473
5474 if test "x$with_mpc" != x; then
5475 gmplibs="-L$with_mpc/lib $gmplibs"
5476 gmpinc="-I$with_mpc/include $gmpinc"
5477 fi
5478 if test "x$with_mpc_include" != x; then
5479 gmpinc="-I$with_mpc_include $gmpinc"
5480 fi
5481 if test "x$with_mpc_lib" != x; then
5482 gmplibs="-L$with_mpc_lib $gmplibs"
5483 fi
5484 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5485 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5486 gmpinc='-I$$s/mpc/src '"$gmpinc"
5487 # Do not test the mpc version. Assume that it is sufficient, since
5488 # it is in the source tree, and the library has not been built yet
5489 # but it would be included on the link line in the version check below
5490 # hence making the test fail.
5491 have_gmp=yes
5492 fi
5493
5494 # Specify a location for mpfr
5495 # check for this first so it ends up on the link line before gmp.
5496
5497 # Check whether --with-mpfr-dir was given.
5498 if test "${with_mpfr_dir+set}" = set; then :
5499 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5500 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5501 fi
5502
5503
5504
5505 # Check whether --with-mpfr was given.
5506 if test "${with_mpfr+set}" = set; then :
5507 withval=$with_mpfr;
5508 fi
5509
5510
5511 # Check whether --with-mpfr-include was given.
5512 if test "${with_mpfr_include+set}" = set; then :
5513 withval=$with_mpfr_include;
5514 fi
5515
5516
5517 # Check whether --with-mpfr-lib was given.
5518 if test "${with_mpfr_lib+set}" = set; then :
5519 withval=$with_mpfr_lib;
5520 fi
5521
5522
5523 if test "x$with_mpfr" != x; then
5524 gmplibs="-L$with_mpfr/lib $gmplibs"
5525 gmpinc="-I$with_mpfr/include $gmpinc"
5526 fi
5527 if test "x$with_mpfr_include" != x; then
5528 gmpinc="-I$with_mpfr_include $gmpinc"
5529 fi
5530 if test "x$with_mpfr_lib" != x; then
5531 gmplibs="-L$with_mpfr_lib $gmplibs"
5532 fi
5533 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5534 # MPFR v3.1.0 moved the sources into a src sub-directory.
5535 if ! test -d ${srcdir}/mpfr/src; then
5536 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5537 fi
5538 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5539 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5540 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5541 # Do not test the mpfr version. Assume that it is sufficient, since
5542 # it is in the source tree, and the library has not been built yet
5543 # but it would be included on the link line in the version check below
5544 # hence making the test fail.
5545 have_gmp=yes
5546 fi
5547
5548 # Specify a location for gmp
5549
5550 # Check whether --with-gmp-dir was given.
5551 if test "${with_gmp_dir+set}" = set; then :
5552 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5553 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5554 fi
5555
5556
5557
5558 # Check whether --with-gmp was given.
5559 if test "${with_gmp+set}" = set; then :
5560 withval=$with_gmp;
5561 fi
5562
5563
5564 # Check whether --with-gmp-include was given.
5565 if test "${with_gmp_include+set}" = set; then :
5566 withval=$with_gmp_include;
5567 fi
5568
5569
5570 # Check whether --with-gmp-lib was given.
5571 if test "${with_gmp_lib+set}" = set; then :
5572 withval=$with_gmp_lib;
5573 fi
5574
5575
5576
5577 if test "x$with_gmp" != x; then
5578 gmplibs="-L$with_gmp/lib $gmplibs"
5579 gmpinc="-I$with_gmp/include $gmpinc"
5580 fi
5581 if test "x$with_gmp_include" != x; then
5582 gmpinc="-I$with_gmp_include $gmpinc"
5583 fi
5584 if test "x$with_gmp_lib" != x; then
5585 gmplibs="-L$with_gmp_lib $gmplibs"
5586 fi
5587 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5588 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5589 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5590 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5591 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5592 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5593 # Do not test the gmp version. Assume that it is sufficient, since
5594 # it is in the source tree, and the library has not been built yet
5595 # but it would be included on the link line in the version check below
5596 # hence making the test fail.
5597 have_gmp=yes
5598 fi
5599
5600 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5601 have_gmp=yes
5602 saved_CFLAGS="$CFLAGS"
5603 CFLAGS="$CFLAGS $gmpinc"
5604 # Check for the recommended and required versions of GMP.
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5606 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5607
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include "gmp.h"
5611 int
5612 main ()
5613 {
5614
5615 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5616 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5617 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5618 choke me
5619 #endif
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <gmp.h>
5629 int
5630 main ()
5631 {
5632
5633 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5634 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5635 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5636 choke me
5637 #endif
5638
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5645 $as_echo "yes" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5648 $as_echo "buggy but acceptable" >&6; }
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }; have_gmp=no
5654 fi
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
5657 # If we have GMP, check the MPFR version.
5658 if test x"$have_gmp" = xyes; then
5659 # Check for the recommended and required versions of MPFR.
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5661 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <gmp.h>
5665 #include <mpfr.h>
5666 int
5667 main ()
5668 {
5669
5670 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5671 choke me
5672 #endif
5673
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <gmp.h>
5682 #include <mpfr.h>
5683 int
5684 main ()
5685 {
5686
5687 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5688 choke me
5689 #endif
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5697 $as_echo "yes" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5700 $as_echo "buggy but acceptable" >&6; }
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }; have_gmp=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 fi
5709
5710 # Check for the MPC header version.
5711 if test x"$have_gmp" = xyes ; then
5712 # Check for the recommended and required versions of MPC.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5714 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <mpc.h>
5718 int
5719 main ()
5720 {
5721
5722 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5723 choke me
5724 #endif
5725
5726 ;
5727 return 0;
5728 }
5729 _ACEOF
5730 if ac_fn_c_try_compile "$LINENO"; then :
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #include <mpc.h>
5734 int
5735 main ()
5736 {
5737
5738 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5739 choke me
5740 #endif
5741
5742 ;
5743 return 0;
5744 }
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5748 $as_echo "yes" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5751 $as_echo "buggy but acceptable" >&6; }
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }; have_gmp=no
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 fi
5760
5761 # Now check the MPFR library.
5762 if test x"$have_gmp" = xyes; then
5763 saved_LIBS="$LIBS"
5764 LIBS="$LIBS $gmplibs"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5766 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <mpc.h>
5770 int
5771 main ()
5772 {
5773
5774 mpfr_t n;
5775 mpfr_t x;
5776 mpc_t c;
5777 int t;
5778 mpfr_init (n);
5779 mpfr_init (x);
5780 mpfr_atan2 (n, n, x, GMP_RNDN);
5781 mpfr_erfc (n, x, GMP_RNDN);
5782 mpfr_subnormalize (x, t, GMP_RNDN);
5783 mpfr_clear(n);
5784 mpfr_clear(x);
5785 mpc_init2 (c, 53);
5786 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5787 mpc_cosh (c, c, MPC_RNDNN);
5788 mpc_pow (c, c, c, MPC_RNDNN);
5789 mpc_acosh (c, c, MPC_RNDNN);
5790 mpc_clear (c);
5791
5792 ;
5793 return 0;
5794 }
5795 _ACEOF
5796 if ac_fn_c_try_link "$LINENO"; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5798 $as_echo "yes" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }; have_gmp=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 LIBS="$saved_LIBS"
5806 fi
5807
5808 CFLAGS="$saved_CFLAGS"
5809
5810 # The library versions listed in the error message below should match
5811 # the HARD-minimums enforced above.
5812 if test x$have_gmp != xyes; then
5813 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5814 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5815 their locations. Source code for these libraries can be found at
5816 their respective hosting sites as well as at
5817 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5818 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5819 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5820 make sure that you have installed both the libraries and the header
5821 files. They may be located in separate packages." "$LINENO" 5
5822 fi
5823 fi
5824
5825 # Flags needed for both GMP, MPFR and/or MPC.
5826
5827
5828
5829
5830
5831
5832
5833 # Libraries to use for stage1 or when not bootstrapping.
5834
5835 # Check whether --with-stage1-libs was given.
5836 if test "${with_stage1_libs+set}" = set; then :
5837 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5838 stage1_libs=
5839 else
5840 stage1_libs=$withval
5841 fi
5842 else
5843 stage1_libs=
5844 fi
5845
5846
5847
5848 # Whether or not to use -static-libstdc++ and -static-libgcc. The
5849 # default is yes if gcc is being built; no otherwise. The reason for
5850 # this default is that gdb is sometimes linked against GNU Source
5851 # Highlight, which is a shared library that uses C++ exceptions. In
5852 # this case, -static-libstdc++ will cause crashes.
5853
5854 # Check whether --with-static-standard-libraries was given.
5855 if test "${with_static_standard_libraries+set}" = set; then :
5856 withval=$with_static_standard_libraries;
5857 else
5858 with_static_standard_libraries=auto
5859 fi
5860
5861 if test "$with_static_standard_libraries" = auto; then
5862 with_static_standard_libraries=$have_compiler
5863 fi
5864
5865 # Linker flags to use for stage1 or when not bootstrapping.
5866
5867 # Check whether --with-stage1-ldflags was given.
5868 if test "${with_stage1_ldflags+set}" = set; then :
5869 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5870 stage1_ldflags=
5871 else
5872 stage1_ldflags=$withval
5873 fi
5874 else
5875 stage1_ldflags=
5876 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5877 # if supported. But if the user explicitly specified the libraries to use,
5878 # trust that they are doing what they want.
5879 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
5880 -a "$have_static_libs" = yes; then
5881 stage1_ldflags="-static-libstdc++ -static-libgcc"
5882 fi
5883 fi
5884
5885
5886
5887 # Libraries to use for stage2 and later builds.
5888
5889 # Check whether --with-boot-libs was given.
5890 if test "${with_boot_libs+set}" = set; then :
5891 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5892 poststage1_libs=
5893 else
5894 poststage1_libs=$withval
5895 fi
5896 else
5897 poststage1_libs=
5898 fi
5899
5900
5901
5902 # Linker flags to use for stage2 and later builds.
5903
5904 # Check whether --with-boot-ldflags was given.
5905 if test "${with_boot_ldflags+set}" = set; then :
5906 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5907 poststage1_ldflags=
5908 else
5909 poststage1_ldflags=$withval
5910 fi
5911 else
5912 poststage1_ldflags=
5913 # In stages 2 and 3, default to linking libstdc++ and libgcc
5914 # statically. But if the user explicitly specified the libraries to
5915 # use, trust that they are doing what they want.
5916 if test "$poststage1_libs" = ""; then
5917 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5918 fi
5919 fi
5920
5921
5922
5923 # GCC GRAPHITE dependency isl.
5924 # Basic setup is inlined here, actual checks are in config/isl.m4
5925
5926
5927 # Check whether --with-isl was given.
5928 if test "${with_isl+set}" = set; then :
5929 withval=$with_isl;
5930 fi
5931
5932
5933 # Treat --without-isl as a request to disable
5934 # GRAPHITE support and skip all following checks.
5935 if test "x$with_isl" != "xno"; then
5936 # Check for isl
5937
5938
5939 # Check whether --with-isl-include was given.
5940 if test "${with_isl_include+set}" = set; then :
5941 withval=$with_isl_include;
5942 fi
5943
5944
5945 # Check whether --with-isl-lib was given.
5946 if test "${with_isl_lib+set}" = set; then :
5947 withval=$with_isl_lib;
5948 fi
5949
5950
5951 # Check whether --enable-isl-version-check was given.
5952 if test "${enable_isl_version_check+set}" = set; then :
5953 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5954 else
5955 ENABLE_ISL_CHECK=yes
5956 fi
5957
5958
5959 # Initialize isllibs and islinc.
5960 case $with_isl in
5961 no)
5962 isllibs=
5963 islinc=
5964 ;;
5965 "" | yes)
5966 ;;
5967 *)
5968 isllibs="-L$with_isl/lib"
5969 islinc="-I$with_isl/include"
5970 ;;
5971 esac
5972 if test "x${with_isl_include}" != x ; then
5973 islinc="-I$with_isl_include"
5974 fi
5975 if test "x${with_isl_lib}" != x; then
5976 isllibs="-L$with_isl_lib"
5977 fi
5978 if test "x${islinc}" = x && test "x${isllibs}" = x \
5979 && test -d ${srcdir}/isl; then
5980 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5981 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5982 ENABLE_ISL_CHECK=no
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5984 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5985 fi
5986
5987 isllibs="${isllibs} -lisl"
5988
5989
5990
5991 if test "${ENABLE_ISL_CHECK}" = yes ; then
5992 _isl_saved_CFLAGS=$CFLAGS
5993 _isl_saved_LDFLAGS=$LDFLAGS
5994 _isl_saved_LIBS=$LIBS
5995
5996 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5997 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5998 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6001 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <isl/schedule.h>
6005 int
6006 main ()
6007 {
6008 isl_options_set_schedule_serialize_sccs (NULL, 0);
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014 gcc_cv_isl=yes
6015 else
6016 gcc_cv_isl=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext \
6019 conftest$ac_exeext conftest.$ac_ext
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6021 $as_echo "$gcc_cv_isl" >&6; }
6022
6023 if test "${gcc_cv_isl}" = no ; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6025 $as_echo "required isl version is 0.15 or later" >&6; }
6026 fi
6027
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6031 fi
6032
6033
6034
6035
6036
6037
6038 if test "x${with_isl}" = xno; then
6039 graphite_requested=no
6040 elif test "x${with_isl}" != x \
6041 || test "x${with_isl_include}" != x \
6042 || test "x${with_isl_lib}" != x ; then
6043 graphite_requested=yes
6044 else
6045 graphite_requested=no
6046 fi
6047
6048
6049
6050 if test "${gcc_cv_isl}" = no ; then
6051 isllibs=
6052 islinc=
6053 fi
6054
6055 if test "${graphite_requested}" = yes \
6056 && test "x${isllibs}" = x \
6057 && test "x${islinc}" = x ; then
6058
6059 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6060 fi
6061
6062
6063 fi
6064
6065 # If the isl check failed, disable builds of in-tree variant of isl
6066 if test "x$with_isl" = xno ||
6067 test "x$gcc_cv_isl" = xno; then
6068 noconfigdirs="$noconfigdirs isl"
6069 islinc=
6070 fi
6071
6072
6073
6074
6075 # Check for LTO support.
6076 # Check whether --enable-lto was given.
6077 if test "${enable_lto+set}" = set; then :
6078 enableval=$enable_lto; enable_lto=$enableval
6079 else
6080 enable_lto=yes; default_enable_lto=yes
6081 fi
6082
6083
6084
6085
6086
6087 target_elf=no
6088 case $target in
6089 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6090 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6091 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6092 nvptx-*-none)
6093 target_elf=no
6094 ;;
6095 *)
6096 target_elf=yes
6097 ;;
6098 esac
6099
6100 if test $target_elf = yes; then :
6101 # ELF platforms build the lto-plugin always.
6102 build_lto_plugin=yes
6103
6104 else
6105 if test x"$default_enable_lto" = x"yes" ; then
6106 case $target in
6107 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6108 # On other non-ELF platforms, LTO has yet to be validated.
6109 *) enable_lto=no ;;
6110 esac
6111 else
6112 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6113 # It would also be nice to check the binutils support, but we don't
6114 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6115 # warn during gcc/ subconfigure; unless you're bootstrapping with
6116 # -flto it won't be needed until after installation anyway.
6117 case $target in
6118 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6119 *) if test x"$enable_lto" = x"yes"; then
6120 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6121 fi
6122 ;;
6123 esac
6124 fi
6125 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6126 # Build it unless LTO was explicitly disabled.
6127 case $target in
6128 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6129 *) ;;
6130 esac
6131
6132 fi
6133
6134
6135 # Check whether --enable-linker-plugin-configure-flags was given.
6136 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6137 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6138 else
6139 extra_linker_plugin_configure_flags=
6140 fi
6141
6142
6143 # Check whether --enable-linker-plugin-flags was given.
6144 if test "${enable_linker_plugin_flags+set}" = set; then :
6145 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6146 else
6147 extra_linker_plugin_flags=
6148 fi
6149
6150
6151
6152 # Enable --enable-host-shared.
6153 # Checked early to determine whether jit is an 'all' language
6154 # Check whether --enable-host-shared was given.
6155 if test "${enable_host_shared+set}" = set; then :
6156 enableval=$enable_host_shared; host_shared=$enableval
6157 else
6158 host_shared=no
6159 fi
6160
6161
6162
6163 # By default, C and C++ are the only stage 1 languages.
6164 stage1_languages=,c,
6165
6166 # Target libraries that we bootstrap.
6167 bootstrap_target_libs=,target-libgcc,
6168
6169 # Figure out what language subdirectories are present.
6170 # Look if the user specified --enable-languages="..."; if not, use
6171 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6172 # go away some day.
6173 # NB: embedded tabs in this IF block -- do not untabify
6174 if test -d ${srcdir}/gcc; then
6175 if test x"${enable_languages+set}" != xset; then
6176 if test x"${LANGUAGES+set}" = xset; then
6177 enable_languages="${LANGUAGES}"
6178 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6179 else
6180 enable_languages=default
6181 fi
6182 else
6183 if test x"${enable_languages}" = x ||
6184 test x"${enable_languages}" = xyes;
6185 then
6186 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6187 exit 1
6188 fi
6189 fi
6190 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6191
6192 # 'f95' is the old name for the 'fortran' language. We issue a warning
6193 # and make the substitution.
6194 case ,${enable_languages}, in
6195 *,f95,*)
6196 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6197 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6198 ;;
6199 esac
6200
6201 # If bootstrapping, C++ must be enabled.
6202 case ",$enable_languages,:$enable_bootstrap" in
6203 *,c++,*:*) ;;
6204 *:yes)
6205 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6206 enable_languages="${enable_languages},c++"
6207 else
6208 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6209 fi
6210 ;;
6211 esac
6212
6213 # First scan to see if an enabled language requires some other language.
6214 # We assume that a given config-lang.in will list all the language
6215 # front ends it requires, even if some are required indirectly.
6216 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6217 case ${lang_frag} in
6218 ..) ;;
6219 # The odd quoting in the next line works around
6220 # an apparent bug in bash 1.12 on linux.
6221 ${srcdir}/gcc/[*]/config-lang.in) ;;
6222 *)
6223 # From the config-lang.in, get $language, $lang_requires, and
6224 # $lang_requires_boot_languages.
6225 language=
6226 lang_requires=
6227 lang_requires_boot_languages=
6228 # set srcdir during sourcing lang_frag to the gcc dir.
6229 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6230 # polutes this shell
6231 saved_srcdir=${srcdir}
6232 srcdir=${srcdir}/gcc . ${lang_frag}
6233 srcdir=${saved_srcdir}
6234 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6235 case ,${enable_languages}, in
6236 *,$other,*) ;;
6237 *,default,*) ;;
6238 *,all,*) ;;
6239 *,$language,*)
6240 echo " \`$other' language required by \`$language'; enabling" 1>&2
6241 enable_languages="${enable_languages},${other}"
6242 ;;
6243 esac
6244 done
6245 for other in ${lang_requires_boot_languages} ; do
6246 if test "$other" != "c"; then
6247 case ,${enable_stage1_languages}, in
6248 *,$other,*) ;;
6249 *,default,*) ;;
6250 *,all,*) ;;
6251 *)
6252 case ,${enable_languages}, in
6253 *,$language,*)
6254 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6255 enable_stage1_languages="$enable_stage1_languages,${other}"
6256 ;;
6257 esac
6258 ;;
6259 esac
6260 fi
6261 done
6262 ;;
6263 esac
6264 done
6265
6266 new_enable_languages=,c,
6267
6268 # If LTO is enabled, add the LTO front end.
6269 if test "$enable_lto" = "yes" ; then
6270 case ,${enable_languages}, in
6271 *,lto,*) ;;
6272 *) enable_languages="${enable_languages},lto" ;;
6273 esac
6274 if test "${build_lto_plugin}" = "yes" ; then
6275 configdirs="$configdirs lto-plugin"
6276 fi
6277 fi
6278
6279 # If we're building an offloading compiler, add the LTO front end.
6280 if test x"$enable_as_accelerator_for" != x ; then
6281 case ,${enable_languages}, in
6282 *,lto,*) ;;
6283 *) enable_languages="${enable_languages},lto" ;;
6284 esac
6285 fi
6286
6287 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6288 potential_languages=,c,
6289
6290 enabled_target_libs=
6291 disabled_target_libs=
6292
6293 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6294 case ${lang_frag} in
6295 ..) ;;
6296 # The odd quoting in the next line works around
6297 # an apparent bug in bash 1.12 on linux.
6298 ${srcdir}/gcc/[*]/config-lang.in) ;;
6299 *)
6300 # From the config-lang.in, get $language, $target_libs,
6301 # $lang_dirs, $boot_language, and $build_by_default
6302 language=
6303 target_libs=
6304 lang_dirs=
6305 subdir_requires=
6306 boot_language=no
6307 build_by_default=yes
6308 # set srcdir during sourcing. See above about save & restore
6309 saved_srcdir=${srcdir}
6310 srcdir=${srcdir}/gcc . ${lang_frag}
6311 srcdir=${saved_srcdir}
6312 if test x${language} = x; then
6313 echo "${lang_frag} doesn't set \$language." 1>&2
6314 exit 1
6315 fi
6316
6317 if test "$language" = "c++"; then
6318 boot_language=yes
6319 fi
6320
6321 add_this_lang=no
6322 # C is always enabled, so no need to add it again
6323 if test "$language" != "c"; then
6324 case ,${enable_languages}, in
6325 *,${language},*)
6326 # Language was explicitly selected; include it
6327 add_this_lang=yes
6328 ;;
6329 *,all,*)
6330 # All languages are enabled
6331 add_this_lang=all
6332 ;;
6333 *,default,*)
6334 # 'default' was selected, select it if it is a default language
6335 add_this_lang=${build_by_default}
6336 ;;
6337 esac
6338 fi
6339
6340 # Disable languages that need other directories if these aren't available.
6341 for i in $subdir_requires; do
6342 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6343 case ${add_this_lang} in
6344 yes)
6345 # Specifically requested language; tell them.
6346 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6347 ;;
6348 all)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6350 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6351 add_this_lang=unsupported
6352 ;;
6353 *)
6354 # Silently disable.
6355 add_this_lang=unsupported
6356 ;;
6357 esac
6358 done
6359
6360 # Disable Ada if no preexisting GNAT is available.
6361 case ${add_this_lang}:${language}:${have_gnat} in
6362 yes:ada:no)
6363 # Specifically requested language; tell them.
6364 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6365 ;;
6366 all:ada:no)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6368 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6369 add_this_lang=unsupported
6370 ;;
6371 *:ada:no)
6372 # Silently disable.
6373 add_this_lang=unsupported
6374 ;;
6375 esac
6376
6377 # Disable jit if -enable-host-shared not specified
6378 case ${add_this_lang}:${language}:${host_shared} in
6379 yes:jit:no)
6380 # PR jit/64780: explicitly specify --enable-host-shared
6381 as_fn_error $? "
6382 Enabling language \"jit\" requires --enable-host-shared.
6383
6384 --enable-host-shared typically slows the rest of the compiler down by
6385 a few %, so you must explicitly enable it.
6386
6387 If you want to build both the jit and the regular compiler, it is often
6388 best to do this via two separate configure/builds, in separate
6389 directories, to avoid imposing the performance cost of
6390 --enable-host-shared on the regular compiler." "$LINENO" 5
6391 ;;
6392 all:jit:no)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6394 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6395 add_this_lang=unsupported
6396 ;;
6397 *:jit:no)
6398 # Silently disable.
6399 add_this_lang=unsupported
6400 ;;
6401 esac
6402
6403 # Disable a language that is unsupported by the target.
6404 case "${add_this_lang}: $unsupported_languages " in
6405 no:*) ;;
6406 unsupported:*) ;;
6407 *:*" $language "*)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6409 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6410 add_this_lang=unsupported
6411 ;;
6412 esac
6413
6414 case $add_this_lang in
6415 unsupported)
6416 # Remove language-dependent dirs.
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
6419 ;;
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
6424 potential_languages="${potential_languages}${language},"
6425 ;;
6426 all|yes)
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6430 enabled_target_libs="$enabled_target_libs $target_libs"
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6433 # Add to (comma-separated) list of stage 1 languages.
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6440 ;;
6441 esac
6442 ;;
6443 esac
6444 ;;
6445 esac
6446 done
6447
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
6459 # Check whether --enable-stage1-languages was given.
6460 if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
6489 fi
6490
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
6498 if test "x$missing_languages" != x; then
6499 as_fn_error $? "
6500 The following requested languages could not be built: ${missing_languages}
6501 Supported languages are: ${potential_languages}" "$LINENO" 5
6502 fi
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
6505 enable_languages="$new_enable_languages"
6506 fi
6507
6508
6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6510 fi
6511
6512 # Handle --disable-<component> generically.
6513 for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519 done
6520
6521 # Check for Boehm's garbage collector
6522 # Check whether --enable-objc-gc was given.
6523 if test "${enable_objc_gc+set}" = set; then :
6524 enableval=$enable_objc_gc;
6525 fi
6526
6527
6528 # Check whether --with-target-bdw-gc was given.
6529 if test "${with_target_bdw_gc+set}" = set; then :
6530 withval=$with_target_bdw_gc;
6531 fi
6532
6533
6534 # Check whether --with-target-bdw-gc-include was given.
6535 if test "${with_target_bdw_gc_include+set}" = set; then :
6536 withval=$with_target_bdw_gc_include;
6537 fi
6538
6539
6540 # Check whether --with-target-bdw-gc-lib was given.
6541 if test "${with_target_bdw_gc_lib+set}" = set; then :
6542 withval=$with_target_bdw_gc_lib;
6543 fi
6544
6545
6546 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6548 $as_echo_n "checking for bdw garbage collector... " >&6; }
6549 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6551 $as_echo "using bdw-gc in default locations" >&6; }
6552 else
6553 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6554 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6555 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6556 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6559 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6560 fi
6561 fi
6562 esac
6563
6564 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6565 case ,${enable_languages}, in
6566 *,c++,*)
6567 # Disable libitm, libsanitizer if we're not building libstdc++
6568 case "${noconfigdirs}" in
6569 *target-libstdc++-v3*)
6570 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6571 ;;
6572 *) ;;
6573 esac
6574 ;;
6575 *)
6576 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6577 ;;
6578 esac
6579
6580 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6581 # $build_configdirs and $target_configdirs.
6582 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6583
6584 notsupp=""
6585 for dir in . $skipdirs $noconfigdirs ; do
6586 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6587 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6588 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6589 if test -r $srcdir/$dirname/configure ; then
6590 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6591 true
6592 else
6593 notsupp="$notsupp $dir"
6594 fi
6595 fi
6596 fi
6597 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6598 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6599 if test -r $srcdir/$dirname/configure ; then
6600 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6601 true
6602 else
6603 notsupp="$notsupp $dir"
6604 fi
6605 fi
6606 fi
6607 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6608 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6609 if test -r $srcdir/$dirname/configure ; then
6610 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6611 true
6612 else
6613 notsupp="$notsupp $dir"
6614 fi
6615 fi
6616 fi
6617 done
6618
6619 # Quietly strip out all directories which aren't configurable in this tree.
6620 # This relies on all configurable subdirectories being autoconfiscated, which
6621 # is now the case.
6622 build_configdirs_all="$build_configdirs"
6623 build_configdirs=
6624 for i in ${build_configdirs_all} ; do
6625 j=`echo $i | sed -e s/build-//g`
6626 if test -f ${srcdir}/$j/configure ; then
6627 build_configdirs="${build_configdirs} $i"
6628 fi
6629 done
6630
6631 configdirs_all="$configdirs"
6632 configdirs=
6633 for i in ${configdirs_all} ; do
6634 if test -f ${srcdir}/$i/configure ; then
6635 configdirs="${configdirs} $i"
6636 fi
6637 done
6638
6639 target_configdirs_all="$target_configdirs"
6640 target_configdirs=
6641 for i in ${target_configdirs_all} ; do
6642 j=`echo $i | sed -e s/target-//g`
6643 if test -f ${srcdir}/$j/configure ; then
6644 target_configdirs="${target_configdirs} $i"
6645 fi
6646 done
6647
6648 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6649 # so we have to add it after the preceding checks.
6650 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6651 then
6652 case " $configdirs " in
6653 *" libiberty "*)
6654 # If we can build libiberty, we can also build libiberty-linker-plugin.
6655 configdirs="$configdirs libiberty-linker-plugin"
6656 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6657 --with-libiberty=../libiberty-linker-plugin";;
6658 *)
6659 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6660 esac
6661 fi
6662
6663 # Sometimes we have special requirements for the host libiberty.
6664 extra_host_libiberty_configure_flags=
6665 extra_host_zlib_configure_flags=
6666 case " $configdirs " in
6667 *" lto-plugin "* | *" libcc1 "*)
6668 # When these are to be built as shared libraries, the same applies to
6669 # libiberty.
6670 extra_host_libiberty_configure_flags=--enable-shared
6671 ;;
6672 *" bfd "*)
6673 # When bfd is to be built as a shared library, the same applies to
6674 # zlib.
6675 if test "$enable_shared" = "yes"; then
6676 extra_host_zlib_configure_flags=--enable-host-shared
6677 fi
6678 ;;
6679 esac
6680
6681
6682
6683 # Produce a warning message for the subdirs we can't configure.
6684 # This isn't especially interesting in the Cygnus tree, but in the individual
6685 # FSF releases, it's important to let people know when their machine isn't
6686 # supported by the one or two programs in a package.
6687
6688 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6689 # If $appdirs is non-empty, at least one of those directories must still
6690 # be configured, or we error out. (E.g., if the gas release supports a
6691 # specified target in some subdirs but not the gas subdir, we shouldn't
6692 # pretend that all is well.)
6693 if test -n "$appdirs" ; then
6694 for dir in $appdirs ; do
6695 if test -r $dir/Makefile.in ; then
6696 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6697 appdirs=""
6698 break
6699 fi
6700 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6701 appdirs=""
6702 break
6703 fi
6704 fi
6705 done
6706 if test -n "$appdirs" ; then
6707 echo "*** This configuration is not supported by this package." 1>&2
6708 exit 1
6709 fi
6710 fi
6711 # Okay, some application will build, or we don't care to check. Still
6712 # notify of subdirs not getting built.
6713 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6714 echo " ${notsupp}" 1>&2
6715 echo " (Any other directories should still work fine.)" 1>&2
6716 fi
6717
6718 case "$host" in
6719 *msdosdjgpp*)
6720 enable_gdbtk=no ;;
6721 esac
6722
6723 # To find our prefix, in gcc_cv_tool_prefix.
6724
6725 # The user is always right.
6726 if test "${PATH_SEPARATOR+set}" != set; then
6727 echo "#! /bin/sh" >conf$$.sh
6728 echo "exit 0" >>conf$$.sh
6729 chmod +x conf$$.sh
6730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6731 PATH_SEPARATOR=';'
6732 else
6733 PATH_SEPARATOR=:
6734 fi
6735 rm -f conf$$.sh
6736 fi
6737
6738
6739 get_gcc_base_ver="cat"
6740
6741 # Check whether --with-gcc-major-version-only was given.
6742 if test "${with_gcc_major_version_only+set}" = set; then :
6743 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6744 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6745 fi
6746
6747 fi
6748
6749
6750
6751
6752
6753
6754 if test "x$exec_prefix" = xNONE; then
6755 if test "x$prefix" = xNONE; then
6756 gcc_cv_tool_prefix=$ac_default_prefix
6757 else
6758 gcc_cv_tool_prefix=$prefix
6759 fi
6760 else
6761 gcc_cv_tool_prefix=$exec_prefix
6762 fi
6763
6764 # If there is no compiler in the tree, use the PATH only. In any
6765 # case, if there is no compiler in the tree nobody should use
6766 # AS_FOR_TARGET and LD_FOR_TARGET.
6767 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6768 if test x$with_gcc_major_version_only = xyes ; then
6769 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6770 else
6771 gcc_version=`cat $srcdir/gcc/BASE-VER`
6772 fi
6773 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6774 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6775 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6776 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6777 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6778 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6779 else
6780 gcc_cv_tool_dirs=
6781 fi
6782
6783 if test x$build = x$target && test -n "$md_exec_prefix"; then
6784 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6785 fi
6786
6787
6788
6789 copy_dirs=
6790
6791
6792 # Check whether --with-build-sysroot was given.
6793 if test "${with_build_sysroot+set}" = set; then :
6794 withval=$with_build_sysroot; if test x"$withval" != x ; then
6795 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6796 fi
6797 else
6798 SYSROOT_CFLAGS_FOR_TARGET=
6799 fi
6800
6801
6802
6803
6804 # Check whether --with-debug-prefix-map was given.
6805 if test "${with_debug_prefix_map+set}" = set; then :
6806 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6807 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6808 for debug_map in $withval; do
6809 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6810 done
6811 fi
6812 else
6813 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6814 fi
6815
6816
6817
6818 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6819 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6820 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6821 # We want to ensure that TARGET libraries (which we know are built with
6822 # gcc) are built with "-O2 -g", so include those options when setting
6823 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6824 if test "x$CFLAGS_FOR_TARGET" = x; then
6825 if test "x${is_cross_compiler}" = xyes; then
6826 CFLAGS_FOR_TARGET="-g -O2"
6827 else
6828 CFLAGS_FOR_TARGET=$CFLAGS
6829 case " $CFLAGS " in
6830 *" -O2 "*) ;;
6831 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6832 esac
6833 case " $CFLAGS " in
6834 *" -g "* | *" -g3 "*) ;;
6835 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6836 esac
6837 fi
6838 fi
6839
6840
6841 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6842 if test "x${is_cross_compiler}" = xyes; then
6843 CXXFLAGS_FOR_TARGET="-g -O2"
6844 else
6845 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6846 case " $CXXFLAGS " in
6847 *" -O2 "*) ;;
6848 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6849 esac
6850 case " $CXXFLAGS " in
6851 *" -g "* | *" -g3 "*) ;;
6852 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6853 esac
6854 fi
6855 fi
6856
6857
6858
6859
6860 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6861 # the named directory are copied to $(tooldir)/sys-include.
6862 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6863 if test x${is_cross_compiler} = xno ; then
6864 echo 1>&2 '***' --with-headers is only supported when cross compiling
6865 exit 1
6866 fi
6867 if test x"${with_headers}" != xyes ; then
6868 x=${gcc_cv_tool_prefix}
6869 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6870 fi
6871 fi
6872
6873 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6874 # the name directories are copied to $(tooldir)/lib. Multiple directories
6875 # are permitted.
6876 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6877 if test x${is_cross_compiler} = xno ; then
6878 echo 1>&2 '***' --with-libs is only supported when cross compiling
6879 exit 1
6880 fi
6881 if test x"${with_libs}" != xyes ; then
6882 # Copy the libraries in reverse order, so that files in the first named
6883 # library override files in subsequent libraries.
6884 x=${gcc_cv_tool_prefix}
6885 for l in ${with_libs}; do
6886 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6887 done
6888 fi
6889 fi
6890
6891 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6892 #
6893 # This is done by determining whether or not the appropriate directory
6894 # is available, and by checking whether or not specific configurations
6895 # have requested that this magic not happen.
6896 #
6897 # The command line options always override the explicit settings in
6898 # configure.ac, and the settings in configure.ac override this magic.
6899 #
6900 # If the default for a toolchain is to use GNU as and ld, and you don't
6901 # want to do that, then you should use the --without-gnu-as and
6902 # --without-gnu-ld options for the configure script. Similarly, if
6903 # the default is to use the included zlib and you don't want to do that,
6904 # you should use the --with-system-zlib option for the configure script.
6905
6906 if test x${use_gnu_as} = x &&
6907 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6908 with_gnu_as=yes
6909 extra_host_args="$extra_host_args --with-gnu-as"
6910 fi
6911
6912 if test x${use_gnu_ld} = x &&
6913 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6914 with_gnu_ld=yes
6915 extra_host_args="$extra_host_args --with-gnu-ld"
6916 fi
6917
6918 if test x${use_included_zlib} = x &&
6919 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6920 :
6921 else
6922 with_system_zlib=yes
6923 extra_host_args="$extra_host_args --with-system-zlib"
6924 fi
6925
6926 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6927 # can detect this case.
6928
6929 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6930 with_newlib=yes
6931 extra_host_args="$extra_host_args --with-newlib"
6932 fi
6933
6934 # Handle ${copy_dirs}
6935 set fnord ${copy_dirs}
6936 shift
6937 while test $# != 0 ; do
6938 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6939 :
6940 else
6941 echo Copying $1 to $2
6942
6943 # Use the install script to create the directory and all required
6944 # parent directories.
6945 if test -d $2 ; then
6946 :
6947 else
6948 echo >config.temp
6949 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6950 fi
6951
6952 # Copy the directory, assuming we have tar.
6953 # FIXME: Should we use B in the second tar? Not all systems support it.
6954 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6955
6956 # It is the responsibility of the user to correctly adjust all
6957 # symlinks. If somebody can figure out how to handle them correctly
6958 # here, feel free to add the code.
6959
6960 echo $1 > $2/COPIED
6961 fi
6962 shift; shift
6963 done
6964
6965 # Determine a target-dependent exec_prefix that the installed
6966 # gcc will search in. Keep this list sorted by triplet, with
6967 # the *-*-osname triplets last.
6968 md_exec_prefix=
6969 case "${target}" in
6970 i[34567]86-pc-msdosdjgpp*)
6971 md_exec_prefix=/dev/env/DJDIR/bin
6972 ;;
6973 *-*-hpux* | \
6974 *-*-nto-qnx* | \
6975 *-*-solaris2*)
6976 md_exec_prefix=/usr/ccs/bin
6977 ;;
6978 esac
6979
6980 extra_arflags_for_target=
6981 extra_nmflags_for_target=
6982 extra_ranlibflags_for_target=
6983 target_makefile_frag=/dev/null
6984 case "${target}" in
6985 spu-*-*)
6986 target_makefile_frag="config/mt-spu"
6987 ;;
6988 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6989 target_makefile_frag="config/mt-sde"
6990 ;;
6991 mipsisa*-*-elfoabi*)
6992 target_makefile_frag="config/mt-mips-elfoabi"
6993 ;;
6994 mips*-*-*linux* | mips*-*-gnu*)
6995 target_makefile_frag="config/mt-mips-gnu"
6996 ;;
6997 nios2-*-elf*)
6998 target_makefile_frag="config/mt-nios2-elf"
6999 ;;
7000 *-*-linux-android*)
7001 target_makefile_frag="config/mt-android"
7002 ;;
7003 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7004 target_makefile_frag="config/mt-gnu"
7005 ;;
7006 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7007 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7008 # commands to handle both 32-bit and 64-bit objects. These flags are
7009 # harmless if we're using GNU nm or ar.
7010 extra_arflags_for_target=" -X32_64"
7011 extra_nmflags_for_target=" -B -X32_64"
7012 ;;
7013 esac
7014
7015 alphaieee_frag=/dev/null
7016 case $target in
7017 alpha*-*-*)
7018 # This just makes sure to use the -mieee option to build target libs.
7019 # This should probably be set individually by each library.
7020 alphaieee_frag="config/mt-alphaieee"
7021 ;;
7022 esac
7023
7024 # If --enable-target-optspace always use -Os instead of -O2 to build
7025 # the target libraries, similarly if it is not specified, use -Os
7026 # on selected platforms.
7027 ospace_frag=/dev/null
7028 case "${enable_target_optspace}:${target}" in
7029 yes:*)
7030 ospace_frag="config/mt-ospace"
7031 ;;
7032 :d30v-*)
7033 ospace_frag="config/mt-d30v"
7034 ;;
7035 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7036 ospace_frag="config/mt-ospace"
7037 ;;
7038 no:* | :*)
7039 ;;
7040 *)
7041 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7042 ;;
7043 esac
7044
7045 # Some systems (e.g., one of the i386-aix systems the gas testers are
7046 # using) don't handle "\$" correctly, so don't use it here.
7047 tooldir='${exec_prefix}'/${target_noncanonical}
7048 build_tooldir=${tooldir}
7049
7050 # Create a .gdbinit file which runs the one in srcdir
7051 # and tells GDB to look there for source files.
7052
7053 if test -r ${srcdir}/.gdbinit ; then
7054 case ${srcdir} in
7055 .) ;;
7056 *) cat > ./.gdbinit <<EOF
7057 # ${NO_EDIT}
7058 dir ${srcdir}
7059 dir .
7060 source ${srcdir}/.gdbinit
7061 EOF
7062 ;;
7063 esac
7064 fi
7065
7066 # Make sure that the compiler is able to generate an executable. If it
7067 # can't, we are probably in trouble. We don't care whether we can run the
7068 # executable--we might be using a cross compiler--we only care whether it
7069 # can be created. At this point the main configure script has set CC.
7070 we_are_ok=no
7071 echo "int main () { return 0; }" > conftest.c
7072 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7073 if test $? = 0 ; then
7074 if test -s conftest || test -s conftest.exe ; then
7075 we_are_ok=yes
7076 fi
7077 fi
7078 case $we_are_ok in
7079 no)
7080 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7081 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7082 rm -f conftest*
7083 exit 1
7084 ;;
7085 esac
7086 rm -f conftest*
7087
7088 # Decide which environment variable is used to find dynamic libraries.
7089 case "${host}" in
7090 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7091 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7092 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7093 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7094 esac
7095
7096 # On systems where the dynamic library environment variable is PATH,
7097 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7098 # built executables to PATH.
7099 if test "$RPATH_ENVVAR" = PATH; then
7100 GCC_SHLIB_SUBDIR=/shlib
7101 else
7102 GCC_SHLIB_SUBDIR=
7103 fi
7104
7105 # Adjust the toplevel makefile according to whether bootstrap was selected.
7106 case $enable_bootstrap in
7107 yes)
7108 bootstrap_suffix=bootstrap
7109 BUILD_CONFIG=bootstrap-debug
7110 ;;
7111 no)
7112 bootstrap_suffix=no-bootstrap
7113 BUILD_CONFIG=
7114 ;;
7115 esac
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7118 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7119
7120
7121 # Check whether --with-build-config was given.
7122 if test "${with_build_config+set}" = set; then :
7123 withval=$with_build_config; case $with_build_config in
7124 yes) with_build_config= ;;
7125 no) with_build_config= BUILD_CONFIG= ;;
7126 esac
7127 fi
7128
7129
7130 if test "x${with_build_config}" != x; then
7131 BUILD_CONFIG=$with_build_config
7132 else
7133 case $BUILD_CONFIG in
7134 bootstrap-debug)
7135 if echo "int f (void) { return 0; }" > conftest.c &&
7136 ${CC} -c conftest.c &&
7137 mv conftest.o conftest.o.g0 &&
7138 ${CC} -c -g conftest.c &&
7139 mv conftest.o conftest.o.g &&
7140 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7141 :
7142 else
7143 BUILD_CONFIG=
7144 fi
7145 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7146 ;;
7147 esac
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7150 $as_echo "$BUILD_CONFIG" >&6; }
7151
7152
7153 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7155 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7156 # Check whether --enable-vtable-verify was given.
7157 if test "${enable_vtable_verify+set}" = set; then :
7158 enableval=$enable_vtable_verify; case "$enableval" in
7159 yes) enable_vtable_verify=yes ;;
7160 no) enable_vtable_verify=no ;;
7161 *) enable_vtable_verify=no;;
7162 esac
7163 else
7164 enable_vtable_verify=no
7165 fi
7166
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7168 $as_echo "$enable_vtable_verify" >&6; }
7169
7170 # Record target_configdirs and the configure arguments for target and
7171 # build configuration in Makefile.
7172 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7173 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7174 bootstrap_fixincludes=no
7175
7176 # If we are building libgomp, bootstrap it.
7177 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7178 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7179 fi
7180
7181 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7182 # or bootstrap-ubsan, bootstrap it.
7183 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7184 case "$BUILD_CONFIG" in
7185 *bootstrap-asan* | *bootstrap-ubsan* )
7186 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7187 bootstrap_fixincludes=yes
7188 ;;
7189 esac
7190 fi
7191
7192 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7193 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7194 test "$enable_vtable_verify" != no; then
7195 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7196 fi
7197
7198 # Determine whether gdb needs tk/tcl or not.
7199 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7200 # and in that case we want gdb to be built without tk. Ugh!
7201 # In fact I believe gdb is the *only* package directly dependent on tk,
7202 # so we should be able to put the 'maybe's in unconditionally and
7203 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7204 # 100% sure that that's safe though.
7205
7206 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7207 case "$enable_gdbtk" in
7208 no)
7209 GDB_TK="" ;;
7210 yes)
7211 GDB_TK="${gdb_tk}" ;;
7212 *)
7213 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7214 # distro. Eventually someone will fix this and move Insight, nee
7215 # gdbtk to a separate directory.
7216 if test -d ${srcdir}/gdb/gdbtk ; then
7217 GDB_TK="${gdb_tk}"
7218 else
7219 GDB_TK=""
7220 fi
7221 ;;
7222 esac
7223 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7224 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7225
7226 # gdb depends on gnulib, but as nothing else does, only include it if
7227 # gdb is built.
7228 if echo " ${configdirs} " | grep " gdb " > /dev/null 2>&1 ; then
7229 # The Makefile provides the ordering, so it's enough here to add
7230 # gnulib to the list.
7231 configdirs="${configdirs} gnulib"
7232 fi
7233
7234 # Strip out unwanted targets.
7235
7236 # While at that, we remove Makefiles if we were started for recursive
7237 # configuration, so that the top-level Makefile reconfigures them,
7238 # like we used to do when configure itself was recursive.
7239
7240 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7241 # but now we're fixing up the Makefile ourselves with the additional
7242 # commands passed to AC_CONFIG_FILES. Use separate variables
7243 # extrasub-{build,host,target} not because there is any reason to split
7244 # the substitutions up that way, but only to remain below the limit of
7245 # 99 commands in a script, for HP-UX sed.
7246
7247 # Do not nest @if/@endif or @unless/@endunless pairs, because
7248 # configure will not warn you at all.
7249
7250 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7251 yes:yes:*\ gold\ *:*,c++,*) ;;
7252 yes:yes:*\ gold\ *:*)
7253 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7254 ;;
7255 esac
7256
7257 extrasub_build=
7258 for module in ${build_configdirs} ; do
7259 if test -z "${no_recursion}" \
7260 && test -f ${build_subdir}/${module}/Makefile; then
7261 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7262 rm -f ${build_subdir}/${module}/Makefile
7263 fi
7264 extrasub_build="$extrasub_build
7265 /^@if build-$module\$/d
7266 /^@endif build-$module\$/d
7267 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7268 /^@if build-$module-$bootstrap_suffix\$/d
7269 /^@endif build-$module-$bootstrap_suffix\$/d
7270 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7271 done
7272 extrasub_host=
7273 for module in ${configdirs} ; do
7274 if test -z "${no_recursion}"; then
7275 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7276 if test -f ${file}; then
7277 echo 1>&2 "*** removing ${file} to force reconfigure"
7278 rm -f ${file}
7279 fi
7280 done
7281 fi
7282 case ${module},${bootstrap_fixincludes} in
7283 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7284 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7285 esac
7286 extrasub_host="$extrasub_host
7287 /^@if $module\$/d
7288 /^@endif $module\$/d
7289 /^@unless $module\$/,/^@endunless $module\$/d
7290 /^@if $module-$host_bootstrap_suffix\$/d
7291 /^@endif $module-$host_bootstrap_suffix\$/d
7292 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7293 done
7294 extrasub_target=
7295 for module in ${target_configdirs} ; do
7296 if test -z "${no_recursion}" \
7297 && test -f ${target_subdir}/${module}/Makefile; then
7298 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7299 rm -f ${target_subdir}/${module}/Makefile
7300 fi
7301
7302 # We only bootstrap target libraries listed in bootstrap_target_libs.
7303 case $bootstrap_target_libs in
7304 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7305 *) target_bootstrap_suffix=no-bootstrap ;;
7306 esac
7307
7308 extrasub_target="$extrasub_target
7309 /^@if target-$module\$/d
7310 /^@endif target-$module\$/d
7311 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7312 /^@if target-$module-$target_bootstrap_suffix\$/d
7313 /^@endif target-$module-$target_bootstrap_suffix\$/d
7314 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7315 done
7316
7317 # Do the final fixup along with target modules.
7318 extrasub_target="$extrasub_target
7319 /^@if /,/^@endif /d
7320 /^@unless /d
7321 /^@endunless /d"
7322
7323 # Create the serialization dependencies. This uses a temporary file.
7324
7325 # Check whether --enable-serial-configure was given.
7326 if test "${enable_serial_configure+set}" = set; then :
7327 enableval=$enable_serial_configure;
7328 fi
7329
7330
7331 case ${enable_serial_configure} in
7332 yes)
7333 enable_serial_build_configure=yes
7334 enable_serial_host_configure=yes
7335 enable_serial_target_configure=yes
7336 ;;
7337 esac
7338
7339 # These force 'configure's to be done one at a time, to avoid problems
7340 # with contention over a shared config.cache.
7341 rm -f serdep.tmp
7342 echo '# serdep.tmp' > serdep.tmp
7343 olditem=
7344 test "x${enable_serial_build_configure}" = xyes &&
7345 for item in ${build_configdirs} ; do
7346 case ${olditem} in
7347 "") ;;
7348 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7349 esac
7350 olditem=${item}
7351 done
7352 olditem=
7353 test "x${enable_serial_host_configure}" = xyes &&
7354 for item in ${configdirs} ; do
7355 case ${olditem} in
7356 "") ;;
7357 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7358 esac
7359 olditem=${item}
7360 done
7361 olditem=
7362 test "x${enable_serial_target_configure}" = xyes &&
7363 for item in ${target_configdirs} ; do
7364 case ${olditem} in
7365 "") ;;
7366 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7367 esac
7368 olditem=${item}
7369 done
7370 serialization_dependencies=serdep.tmp
7371
7372
7373 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7374 # target, nonopt, and variable assignments. These are the ones we
7375 # might not want to pass down to subconfigures. The exception being
7376 # --cache-file=/dev/null, which is used to turn off the use of cache
7377 # files altogether, and which should be passed on to subconfigures.
7378 # Also strip program-prefix, program-suffix, and program-transform-name,
7379 # so that we can pass down a consistent program-transform-name.
7380 baseargs=
7381 tbaseargs=
7382 keep_next=no
7383 skip_next=no
7384 eval "set -- $ac_configure_args"
7385 for ac_arg
7386 do
7387 if test X"$skip_next" = X"yes"; then
7388 skip_next=no
7389 continue
7390 fi
7391 if test X"$keep_next" = X"yes"; then
7392 case $ac_arg in
7393 *\'*)
7394 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7395 esac
7396 baseargs="$baseargs '$ac_arg'"
7397 tbaseargs="$tbaseargs '$ac_arg'"
7398 keep_next=no
7399 continue
7400 fi
7401
7402 # Handle separated arguments. Based on the logic generated by
7403 # autoconf 2.59.
7404 case $ac_arg in
7405 *=* | --config-cache | -C | -disable-* | --disable-* \
7406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7408 | -with-* | --with-* | -without-* | --without-* | --x)
7409 separate_arg=no
7410 ;;
7411 -*)
7412 separate_arg=yes
7413 ;;
7414 *)
7415 separate_arg=no
7416 ;;
7417 esac
7418
7419 skip_targ=no
7420 case $ac_arg in
7421
7422 --with-* | --without-*)
7423 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7424
7425 case $libopt in
7426 *[-_]include)
7427 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7428 ;;
7429 *[-_]lib)
7430 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 ;;
7432 *)
7433 lib=$libopt
7434 ;;
7435 esac
7436
7437
7438 case $lib in
7439 mpc | mpfr | gmp | isl)
7440 # If we're processing --with-$lib, --with-$lib-include or
7441 # --with-$lib-lib, for one of the libs above, and target is
7442 # different from host, don't pass the current argument to any
7443 # target library's configure.
7444 if test x$is_cross_compiler = xyes; then
7445 skip_targ=yes
7446 fi
7447 ;;
7448 esac
7449 ;;
7450 esac
7451
7452 case "$ac_arg" in
7453 --cache-file=/dev/null | \
7454 -cache-file=/dev/null )
7455 # Handled here to avoid the test to skip args below.
7456 baseargs="$baseargs '$ac_arg'"
7457 tbaseargs="$tbaseargs '$ac_arg'"
7458 # Assert: $separate_arg should always be no.
7459 keep_next=$separate_arg
7460 ;;
7461 --no*)
7462 continue
7463 ;;
7464 --c* | \
7465 --sr* | \
7466 --ho* | \
7467 --bu* | \
7468 --t* | \
7469 --program-* | \
7470 -cache_file* | \
7471 -srcdir* | \
7472 -host* | \
7473 -build* | \
7474 -target* | \
7475 -program-prefix* | \
7476 -program-suffix* | \
7477 -program-transform-name* )
7478 skip_next=$separate_arg
7479 continue
7480 ;;
7481 -*)
7482 # An option. Add it.
7483 case $ac_arg in
7484 *\'*)
7485 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7486 esac
7487 baseargs="$baseargs '$ac_arg'"
7488 if test X"$skip_targ" = Xno; then
7489 tbaseargs="$tbaseargs '$ac_arg'"
7490 fi
7491 keep_next=$separate_arg
7492 ;;
7493 *)
7494 # Either a variable assignment, or a nonopt (triplet). Don't
7495 # pass it down; let the Makefile handle this.
7496 continue
7497 ;;
7498 esac
7499 done
7500 # Remove the initial space we just introduced and, as these will be
7501 # expanded by make, quote '$'.
7502 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7503
7504 # Add in --program-transform-name, after --program-prefix and
7505 # --program-suffix have been applied to it. Autoconf has already
7506 # doubled dollar signs and backslashes in program_transform_name; we want
7507 # the backslashes un-doubled, and then the entire thing wrapped in single
7508 # quotes, because this will be expanded first by make and then by the shell.
7509 # Also, because we want to override the logic in subdir configure scripts to
7510 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7511 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7512 ${program_transform_name}
7513 EOF_SED
7514 gcc_transform_name=`cat conftestsed.out`
7515 rm -f conftestsed.out
7516 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7517 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7518 if test "$silent" = yes; then
7519 baseargs="$baseargs --silent"
7520 tbaseargs="$tbaseargs --silent"
7521 fi
7522 baseargs="$baseargs --disable-option-checking"
7523 tbaseargs="$tbaseargs --disable-option-checking"
7524
7525 # Record and document user additions to sub configure arguments.
7526
7527
7528
7529
7530 # For the build-side libraries, we just need to pretend we're native,
7531 # and not use the same cache file. Multilibs are neither needed nor
7532 # desired. We can't even use the same cache file for all build-side
7533 # libraries, as they're compiled differently; some with C, some with
7534 # C++ or with different feature-enabling options.
7535 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7536
7537 # For host modules, accept cache file option, or specification as blank.
7538 case "${cache_file}" in
7539 "") # empty
7540 cache_file_option="" ;;
7541 /* | [A-Za-z]:[\\/]* ) # absolute path
7542 cache_file_option="--cache-file=${cache_file}" ;;
7543 *) # relative path
7544 cache_file_option="--cache-file=../${cache_file}" ;;
7545 esac
7546
7547 # Host dirs don't like to share a cache file either, horribly enough.
7548 # This seems to be due to autoconf 2.5x stupidity.
7549 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7550
7551 target_configargs="$target_configargs ${tbaseargs}"
7552
7553 # Passing a --with-cross-host argument lets the target libraries know
7554 # whether they are being built with a cross-compiler or being built
7555 # native. However, it would be better to use other mechanisms to make the
7556 # sorts of decisions they want to make on this basis. Please consider
7557 # this option to be deprecated. FIXME.
7558 if test x${is_cross_compiler} = xyes ; then
7559 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7560 fi
7561
7562 # Special user-friendly check for native x86_64-linux build, if
7563 # multilib is not explicitly enabled.
7564 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7565 x86_64-*linux*:yes:$build:$build:)
7566 # Make sure we have a development environment that handles 32-bit
7567 dev64=no
7568 echo "int main () { return 0; }" > conftest.c
7569 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7570 if test $? = 0 ; then
7571 if test -s conftest || test -s conftest.exe ; then
7572 dev64=yes
7573 fi
7574 fi
7575 rm -f conftest*
7576 if test x${dev64} != xyes ; then
7577 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
7578 fi
7579 ;;
7580 esac
7581
7582 # Default to --enable-multilib.
7583 if test x${enable_multilib} = x ; then
7584 target_configargs="--enable-multilib ${target_configargs}"
7585 fi
7586
7587 # Pass --with-newlib if appropriate. Note that target_configdirs has
7588 # changed from the earlier setting of with_newlib.
7589 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7590 target_configargs="--with-newlib ${target_configargs}"
7591 fi
7592
7593 # Different target subdirs use different values of certain variables
7594 # (notably CXX). Worse, multilibs use *lots* of different values.
7595 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7596 # it doesn't automatically accept command-line overrides of them.
7597 # This means it's not safe for target subdirs to share a cache file,
7598 # which is disgusting, but there you have it. Hopefully this can be
7599 # fixed in future. It's still worthwhile to use a cache file for each
7600 # directory. I think.
7601
7602 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7603 # We need to pass --target, as newer autoconf's requires consistency
7604 # for target_alias and gcc doesn't manage it consistently.
7605 target_configargs="--cache-file=./config.cache ${target_configargs}"
7606
7607 FLAGS_FOR_TARGET=
7608 case " $target_configdirs " in
7609 *" newlib "*)
7610 case " $target_configargs " in
7611 *" --with-newlib "*)
7612 case "$target" in
7613 *-cygwin*)
7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7615 ;;
7616 esac
7617
7618 # If we're not building GCC, don't discard standard headers.
7619 if test -d ${srcdir}/gcc; then
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7621
7622 if test "${build}" != "${host}"; then
7623 # On Canadian crosses, CC_FOR_TARGET will have already been set
7624 # by `configure', so we won't have an opportunity to add -Bgcc/
7625 # to it. This is right: we don't want to search that directory
7626 # for binaries, but we want the header files in there, so add
7627 # them explicitly.
7628 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7629
7630 # Someone might think of using the pre-installed headers on
7631 # Canadian crosses, in case the installed compiler is not fully
7632 # compatible with the compiler being built. In this case, it
7633 # would be better to flag an error than risking having
7634 # incompatible object files being constructed. We can't
7635 # guarantee that an error will be flagged, but let's hope the
7636 # compiler will do it, when presented with incompatible header
7637 # files.
7638 fi
7639 fi
7640
7641 case "${target}-${is_cross_compiler}" in
7642 i[3456789]86-*-linux*-no)
7643 # Here host == target, so we don't need to build gcc,
7644 # so we don't want to discard standard headers.
7645 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7646 ;;
7647 *)
7648 # If we're building newlib, use its generic headers last, but search
7649 # for any libc-related directories first (so make it the last -B
7650 # switch).
7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7652
7653 # If we're building libgloss, find the startup file, simulator library
7654 # and linker script.
7655 case " $target_configdirs " in
7656 *" libgloss "*)
7657 # Look for startup file, simulator library and maybe linker script.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7659 # Look for libnosys.a in case the target needs it.
7660 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7661 # Most targets have the linker script in the source directory.
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7663 ;;
7664 esac
7665 ;;
7666 esac
7667 ;;
7668 esac
7669 ;;
7670 esac
7671
7672 case "$target" in
7673 x86_64-*mingw* | *-w64-mingw*)
7674 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7675 # however, use a symlink named 'mingw' in ${prefix} .
7676 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7677 ;;
7678 *-mingw*)
7679 # MinGW can't be handled as Cygwin above since it does not use newlib.
7680 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'
7681 ;;
7682 esac
7683
7684 # Allow the user to override the flags for
7685 # our build compiler if desired.
7686 if test x"${build}" = x"${host}" ; then
7687 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7688 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7689 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7690 fi
7691
7692 # On Canadian crosses, we'll be searching the right directories for
7693 # the previously-installed cross compiler, so don't bother to add
7694 # flags for directories within the install tree of the compiler
7695 # being built; programs in there won't even run.
7696 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7697 # Search for pre-installed headers if nothing else fits.
7698 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7699 fi
7700
7701 if test "x${use_gnu_ld}" = x &&
7702 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7703 # Arrange for us to find uninstalled linker scripts.
7704 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7705 fi
7706
7707 # Search for other target-specific linker scripts and such.
7708 case "${target}" in
7709 mep*)
7710 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7711 ;;
7712 esac
7713
7714 # Makefile fragments.
7715 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7716 do
7717 eval fragval=\$$frag
7718 if test $fragval != /dev/null; then
7719 eval $frag=${srcdir}/$fragval
7720 fi
7721 done
7722
7723
7724
7725
7726
7727 # Miscellanea: directories, flags, etc.
7728
7729
7730
7731
7732
7733
7734
7735
7736 # Build module lists & subconfigure args.
7737
7738
7739
7740 # Host module lists & subconfigure args.
7741
7742
7743
7744
7745 # Target module lists & subconfigure args.
7746
7747
7748
7749 # Build tools.
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 # Generate default definitions for YACC, M4, LEX and other programs that run
7767 # on the build machine. These are used if the Makefile can't locate these
7768 # programs in objdir.
7769 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7770
7771 for ac_prog in 'bison -y' byacc yacc
7772 do
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_YACC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 if test -n "$YACC"; then
7781 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790 ac_cv_prog_YACC="$ac_prog"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 break 2
7793 fi
7794 done
7795 done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 YACC=$ac_cv_prog_YACC
7801 if test -n "$YACC"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7803 $as_echo "$YACC" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809
7810 test -n "$YACC" && break
7811 done
7812 test -n "$YACC" || YACC="$MISSING bison -y"
7813
7814 case " $build_configdirs " in
7815 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7816 esac
7817
7818 for ac_prog in bison
7819 do
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_BISON+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 BISON=$ac_cv_prog_BISON
7848 if test -n "$BISON"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850 $as_echo "$BISON" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856
7857 test -n "$BISON" && break
7858 done
7859 test -n "$BISON" || BISON="$MISSING bison"
7860
7861 case " $build_configdirs " in
7862 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7863 esac
7864
7865 for ac_prog in gm4 gnum4 m4
7866 do
7867 # Extract the first word of "$ac_prog", so it can be a program name with args.
7868 set dummy $ac_prog; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if ${ac_cv_prog_M4+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$M4"; then
7875 ac_cv_prog_M4="$M4" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7879 do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_M4="$ac_prog"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892 fi
7893 fi
7894 M4=$ac_cv_prog_M4
7895 if test -n "$M4"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7897 $as_echo "$M4" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7901 fi
7902
7903
7904 test -n "$M4" && break
7905 done
7906 test -n "$M4" || M4="$MISSING m4"
7907
7908 case " $build_configdirs " in
7909 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7910 esac
7911
7912 for ac_prog in flex lex
7913 do
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_prog_LEX+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$LEX"; then
7922 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_LEX="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 LEX=$ac_cv_prog_LEX
7942 if test -n "$LEX"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7944 $as_echo "$LEX" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951 test -n "$LEX" && break
7952 done
7953 test -n "$LEX" || LEX="$MISSING flex"
7954
7955 case " $build_configdirs " in
7956 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7957 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7958 esac
7959
7960 for ac_prog in flex
7961 do
7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
7963 set dummy $ac_prog; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_FLEX+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$FLEX"; then
7970 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_FLEX="$ac_prog"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 FLEX=$ac_cv_prog_FLEX
7990 if test -n "$FLEX"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7992 $as_echo "$FLEX" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997
7998
7999 test -n "$FLEX" && break
8000 done
8001 test -n "$FLEX" || FLEX="$MISSING flex"
8002
8003 case " $build_configdirs " in
8004 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8005 esac
8006
8007 for ac_prog in makeinfo
8008 do
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_MAKEINFO+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 if test -n "$MAKEINFO"; then
8017 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_prog_MAKEINFO="$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030 done
8031 done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 MAKEINFO=$ac_cv_prog_MAKEINFO
8037 if test -n "$MAKEINFO"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8039 $as_echo "$MAKEINFO" >&6; }
8040 else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 test -n "$MAKEINFO" && break
8047 done
8048 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8049
8050 case " $build_configdirs " in
8051 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8052 *)
8053
8054 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8055 # higher, else we use the "missing" dummy.
8056 if ${MAKEINFO} --version \
8057 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8058 :
8059 else
8060 MAKEINFO="$MISSING makeinfo"
8061 fi
8062 ;;
8063
8064 esac
8065
8066 # FIXME: expect and dejagnu may become build tools?
8067
8068 for ac_prog in expect
8069 do
8070 # Extract the first word of "$ac_prog", so it can be a program name with args.
8071 set dummy $ac_prog; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if ${ac_cv_prog_EXPECT+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$EXPECT"; then
8078 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_EXPECT="$ac_prog"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 EXPECT=$ac_cv_prog_EXPECT
8098 if test -n "$EXPECT"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8100 $as_echo "$EXPECT" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 fi
8105
8106
8107 test -n "$EXPECT" && break
8108 done
8109 test -n "$EXPECT" || EXPECT="expect"
8110
8111 case " $configdirs " in
8112 *" expect "*)
8113 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8114 ;;
8115 esac
8116
8117 for ac_prog in runtest
8118 do
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120 set dummy $ac_prog; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_prog_RUNTEST+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$RUNTEST"; then
8127 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_RUNTEST="$ac_prog"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 RUNTEST=$ac_cv_prog_RUNTEST
8147 if test -n "$RUNTEST"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8149 $as_echo "$RUNTEST" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156 test -n "$RUNTEST" && break
8157 done
8158 test -n "$RUNTEST" || RUNTEST="runtest"
8159
8160 case " $configdirs " in
8161 *" dejagnu "*)
8162 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8163 ;;
8164 esac
8165
8166
8167 # Host tools.
8168 ncn_tool_prefix=
8169 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8170 ncn_target_tool_prefix=
8171 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172
8173
8174
8175 if test -n "$AR"; then
8176 ac_cv_prog_AR=$AR
8177 elif test -n "$ac_cv_prog_AR"; then
8178 AR=$ac_cv_prog_AR
8179 fi
8180
8181 if test -n "$ac_cv_prog_AR"; then
8182 for ncn_progname in ar; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184 set dummy ${ncn_progname}; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_AR+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_AR="${ncn_progname}"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8203 fi
8204 done
8205 done
8206 IFS=$as_save_IFS
8207
8208 fi
8209 fi
8210 AR=$ac_cv_prog_AR
8211 if test -n "$AR"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213 $as_echo "$AR" >&6; }
8214 else
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218
8219
8220 done
8221 fi
8222
8223 for ncn_progname in ar; do
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if ${ac_cv_prog_AR+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 if test -n "$AR"; then
8233 ac_cv_prog_AR="$AR" # Let the user override the test.
8234 else
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 break 2
8245 fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250 fi
8251 fi
8252 AR=$ac_cv_prog_AR
8253 if test -n "$AR"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8255 $as_echo "$AR" >&6; }
8256 else
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265 set dummy ${ncn_progname}; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if ${ac_cv_prog_AR+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 if test -n "$AR"; then
8272 ac_cv_prog_AR="$AR" # Let the user override the test.
8273 else
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 for as_dir in $PATH
8276 do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8281 ac_cv_prog_AR="${ncn_progname}"
8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 break 2
8284 fi
8285 done
8286 done
8287 IFS=$as_save_IFS
8288
8289 fi
8290 fi
8291 AR=$ac_cv_prog_AR
8292 if test -n "$AR"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8294 $as_echo "$AR" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8298 fi
8299
8300
8301 fi
8302 test -n "$ac_cv_prog_AR" && break
8303 done
8304
8305 if test -z "$ac_cv_prog_AR" ; then
8306 set dummy ar
8307 if test $build = $host ; then
8308 AR="$2"
8309 else
8310 AR="${ncn_tool_prefix}$2"
8311 fi
8312 fi
8313
8314
8315
8316 if test -n "$AS"; then
8317 ac_cv_prog_AS=$AS
8318 elif test -n "$ac_cv_prog_AS"; then
8319 AS=$ac_cv_prog_AS
8320 fi
8321
8322 if test -n "$ac_cv_prog_AS"; then
8323 for ncn_progname in as; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325 set dummy ${ncn_progname}; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_prog_AS+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 if test -n "$AS"; then
8332 ac_cv_prog_AS="$AS" # Let the user override the test.
8333 else
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8336 do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_AS="${ncn_progname}"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8344 fi
8345 done
8346 done
8347 IFS=$as_save_IFS
8348
8349 fi
8350 fi
8351 AS=$ac_cv_prog_AS
8352 if test -n "$AS"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8354 $as_echo "$AS" >&6; }
8355 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 fi
8359
8360
8361 done
8362 fi
8363
8364 for ncn_progname in as; do
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_AS+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$AS"; then
8374 ac_cv_prog_AS="$AS" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8386 fi
8387 done
8388 done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 AS=$ac_cv_prog_AS
8394 if test -n "$AS"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8396 $as_echo "$AS" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402
8403 fi
8404 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406 set dummy ${ncn_progname}; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_prog_AS+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 if test -n "$AS"; then
8413 ac_cv_prog_AS="$AS" # Let the user override the test.
8414 else
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_AS="${ncn_progname}"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 AS=$ac_cv_prog_AS
8433 if test -n "$AS"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8435 $as_echo "$AS" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441
8442 fi
8443 test -n "$ac_cv_prog_AS" && break
8444 done
8445
8446 if test -z "$ac_cv_prog_AS" ; then
8447 set dummy as
8448 if test $build = $host ; then
8449 AS="$2"
8450 else
8451 AS="${ncn_tool_prefix}$2"
8452 fi
8453 fi
8454
8455
8456
8457 if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL=$DLLTOOL
8459 elif test -n "$ac_cv_prog_DLLTOOL"; then
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461 fi
8462
8463 if test -n "$ac_cv_prog_DLLTOOL"; then
8464 for ncn_progname in dlltool; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466 set dummy ${ncn_progname}; ac_word=$2
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468 $as_echo_n "checking for $ac_word... " >&6; }
8469 if ${ac_cv_prog_DLLTOOL+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 if test -n "$DLLTOOL"; then
8473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_DLLTOOL="${ncn_progname}"
8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 fi
8491 fi
8492 DLLTOOL=$ac_cv_prog_DLLTOOL
8493 if test -n "$DLLTOOL"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8495 $as_echo "$DLLTOOL" >&6; }
8496 else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500
8501
8502 done
8503 fi
8504
8505 for ncn_progname in dlltool; do
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_DLLTOOL+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 if test -n "$DLLTOOL"; then
8515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 DLLTOOL=$ac_cv_prog_DLLTOOL
8535 if test -n "$DLLTOOL"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8537 $as_echo "$DLLTOOL" >&6; }
8538 else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 fi
8542
8543
8544 fi
8545 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547 set dummy ${ncn_progname}; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_DLLTOOL+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 if test -n "$DLLTOOL"; then
8554 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_DLLTOOL="${ncn_progname}"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8566 fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571 fi
8572 fi
8573 DLLTOOL=$ac_cv_prog_DLLTOOL
8574 if test -n "$DLLTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8576 $as_echo "$DLLTOOL" >&6; }
8577 else
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8580 fi
8581
8582
8583 fi
8584 test -n "$ac_cv_prog_DLLTOOL" && break
8585 done
8586
8587 if test -z "$ac_cv_prog_DLLTOOL" ; then
8588 set dummy dlltool
8589 if test $build = $host ; then
8590 DLLTOOL="$2"
8591 else
8592 DLLTOOL="${ncn_tool_prefix}$2"
8593 fi
8594 fi
8595
8596
8597
8598 if test -n "$LD"; then
8599 ac_cv_prog_LD=$LD
8600 elif test -n "$ac_cv_prog_LD"; then
8601 LD=$ac_cv_prog_LD
8602 fi
8603
8604 if test -n "$ac_cv_prog_LD"; then
8605 for ncn_progname in ld; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607 set dummy ${ncn_progname}; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_prog_LD+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 if test -n "$LD"; then
8614 ac_cv_prog_LD="$LD" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8618 do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_LD="${ncn_progname}"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627 done
8628 done
8629 IFS=$as_save_IFS
8630
8631 fi
8632 fi
8633 LD=$ac_cv_prog_LD
8634 if test -n "$LD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8636 $as_echo "$LD" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640 fi
8641
8642
8643 done
8644 fi
8645
8646 for ncn_progname in ld; do
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LD+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test -n "$LD"; then
8656 ac_cv_prog_LD="$LD" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669 done
8670 done
8671 IFS=$as_save_IFS
8672
8673 fi
8674 fi
8675 LD=$ac_cv_prog_LD
8676 if test -n "$LD"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8678 $as_echo "$LD" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 fi
8686 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688 set dummy ${ncn_progname}; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if ${ac_cv_prog_LD+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test -n "$LD"; then
8695 ac_cv_prog_LD="$LD" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_LD="${ncn_progname}"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8707 fi
8708 done
8709 done
8710 IFS=$as_save_IFS
8711
8712 fi
8713 fi
8714 LD=$ac_cv_prog_LD
8715 if test -n "$LD"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8717 $as_echo "$LD" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 fi
8722
8723
8724 fi
8725 test -n "$ac_cv_prog_LD" && break
8726 done
8727
8728 if test -z "$ac_cv_prog_LD" ; then
8729 set dummy ld
8730 if test $build = $host ; then
8731 LD="$2"
8732 else
8733 LD="${ncn_tool_prefix}$2"
8734 fi
8735 fi
8736
8737
8738
8739 if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO=$LIPO
8741 elif test -n "$ac_cv_prog_LIPO"; then
8742 LIPO=$ac_cv_prog_LIPO
8743 fi
8744
8745 if test -n "$ac_cv_prog_LIPO"; then
8746 for ncn_progname in lipo; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748 set dummy ${ncn_progname}; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_LIPO+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 if test -n "$LIPO"; then
8755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_LIPO="${ncn_progname}"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8767 fi
8768 done
8769 done
8770 IFS=$as_save_IFS
8771
8772 fi
8773 fi
8774 LIPO=$ac_cv_prog_LIPO
8775 if test -n "$LIPO"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8777 $as_echo "$LIPO" >&6; }
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782
8783
8784 done
8785 fi
8786
8787 for ncn_progname in lipo; do
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_LIPO+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test -n "$LIPO"; then
8797 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810 done
8811 done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 LIPO=$ac_cv_prog_LIPO
8817 if test -n "$LIPO"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8819 $as_echo "$LIPO" >&6; }
8820 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829 set dummy ${ncn_progname}; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_LIPO+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 if test -n "$LIPO"; then
8836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_prog_LIPO="${ncn_progname}"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8848 fi
8849 done
8850 done
8851 IFS=$as_save_IFS
8852
8853 fi
8854 fi
8855 LIPO=$ac_cv_prog_LIPO
8856 if test -n "$LIPO"; then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8858 $as_echo "$LIPO" >&6; }
8859 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864
8865 fi
8866 test -n "$ac_cv_prog_LIPO" && break
8867 done
8868
8869 if test -z "$ac_cv_prog_LIPO" ; then
8870 set dummy lipo
8871 if test $build = $host ; then
8872 LIPO="$2"
8873 else
8874 LIPO="${ncn_tool_prefix}$2"
8875 fi
8876 fi
8877
8878
8879
8880 if test -n "$NM"; then
8881 ac_cv_prog_NM=$NM
8882 elif test -n "$ac_cv_prog_NM"; then
8883 NM=$ac_cv_prog_NM
8884 fi
8885
8886 if test -n "$ac_cv_prog_NM"; then
8887 for ncn_progname in nm; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889 set dummy ${ncn_progname}; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_prog_NM+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 if test -n "$NM"; then
8896 ac_cv_prog_NM="$NM" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8900 do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_NM="${ncn_progname}"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8908 fi
8909 done
8910 done
8911 IFS=$as_save_IFS
8912
8913 fi
8914 fi
8915 NM=$ac_cv_prog_NM
8916 if test -n "$NM"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8918 $as_echo "$NM" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8922 fi
8923
8924
8925 done
8926 fi
8927
8928 for ncn_progname in nm; do
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_prog_NM+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 if test -n "$NM"; then
8938 ac_cv_prog_NM="$NM" # Let the user override the test.
8939 else
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8942 do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8950 fi
8951 done
8952 done
8953 IFS=$as_save_IFS
8954
8955 fi
8956 fi
8957 NM=$ac_cv_prog_NM
8958 if test -n "$NM"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8960 $as_echo "$NM" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8964 fi
8965
8966
8967 fi
8968 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970 set dummy ${ncn_progname}; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if ${ac_cv_prog_NM+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 if test -n "$NM"; then
8977 ac_cv_prog_NM="$NM" # Let the user override the test.
8978 else
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in $PATH
8981 do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986 ac_cv_prog_NM="${ncn_progname}"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990 done
8991 done
8992 IFS=$as_save_IFS
8993
8994 fi
8995 fi
8996 NM=$ac_cv_prog_NM
8997 if test -n "$NM"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8999 $as_echo "$NM" >&6; }
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9003 fi
9004
9005
9006 fi
9007 test -n "$ac_cv_prog_NM" && break
9008 done
9009
9010 if test -z "$ac_cv_prog_NM" ; then
9011 set dummy nm
9012 if test $build = $host ; then
9013 NM="$2"
9014 else
9015 NM="${ncn_tool_prefix}$2"
9016 fi
9017 fi
9018
9019
9020
9021 if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB=$RANLIB
9023 elif test -n "$ac_cv_prog_RANLIB"; then
9024 RANLIB=$ac_cv_prog_RANLIB
9025 fi
9026
9027 if test -n "$ac_cv_prog_RANLIB"; then
9028 for ncn_progname in ranlib; do
9029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9030 set dummy ${ncn_progname}; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_prog_RANLIB+:} false; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 if test -n "$RANLIB"; then
9037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9038 else
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042 IFS=$as_save_IFS
9043 test -z "$as_dir" && as_dir=.
9044 for ac_exec_ext in '' $ac_executable_extensions; do
9045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9046 ac_cv_prog_RANLIB="${ncn_progname}"
9047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9048 break 2
9049 fi
9050 done
9051 done
9052 IFS=$as_save_IFS
9053
9054 fi
9055 fi
9056 RANLIB=$ac_cv_prog_RANLIB
9057 if test -n "$RANLIB"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9059 $as_echo "$RANLIB" >&6; }
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 fi
9064
9065
9066 done
9067 fi
9068
9069 for ncn_progname in ranlib; do
9070 if test -n "$ncn_tool_prefix"; then
9071 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if ${ac_cv_prog_RANLIB+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080 else
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092 done
9093 done
9094 IFS=$as_save_IFS
9095
9096 fi
9097 fi
9098 RANLIB=$ac_cv_prog_RANLIB
9099 if test -n "$RANLIB"; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9101 $as_echo "$RANLIB" >&6; }
9102 else
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106
9107
9108 fi
9109 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111 set dummy ${ncn_progname}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_prog_RANLIB+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 if test -n "$RANLIB"; then
9118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127 ac_cv_prog_RANLIB="${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9130 fi
9131 done
9132 done
9133 IFS=$as_save_IFS
9134
9135 fi
9136 fi
9137 RANLIB=$ac_cv_prog_RANLIB
9138 if test -n "$RANLIB"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9140 $as_echo "$RANLIB" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9144 fi
9145
9146
9147 fi
9148 test -n "$ac_cv_prog_RANLIB" && break
9149 done
9150
9151 if test -z "$ac_cv_prog_RANLIB" ; then
9152 RANLIB="true"
9153 fi
9154
9155
9156
9157 if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP=$STRIP
9159 elif test -n "$ac_cv_prog_STRIP"; then
9160 STRIP=$ac_cv_prog_STRIP
9161 fi
9162
9163 if test -n "$ac_cv_prog_STRIP"; then
9164 for ncn_progname in strip; do
9165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9166 set dummy ${ncn_progname}; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if ${ac_cv_prog_STRIP+:} false; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 if test -n "$STRIP"; then
9173 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9174 else
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9177 do
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9182 ac_cv_prog_STRIP="${ncn_progname}"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9185 fi
9186 done
9187 done
9188 IFS=$as_save_IFS
9189
9190 fi
9191 fi
9192 STRIP=$ac_cv_prog_STRIP
9193 if test -n "$STRIP"; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9195 $as_echo "$STRIP" >&6; }
9196 else
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9199 fi
9200
9201
9202 done
9203 fi
9204
9205 for ncn_progname in strip; do
9206 if test -n "$ncn_tool_prefix"; then
9207 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_prog_STRIP+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228 done
9229 done
9230 IFS=$as_save_IFS
9231
9232 fi
9233 fi
9234 STRIP=$ac_cv_prog_STRIP
9235 if test -n "$STRIP"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9237 $as_echo "$STRIP" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244 fi
9245 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_prog_STRIP+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$STRIP"; then
9254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9263 ac_cv_prog_STRIP="${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267 done
9268 done
9269 IFS=$as_save_IFS
9270
9271 fi
9272 fi
9273 STRIP=$ac_cv_prog_STRIP
9274 if test -n "$STRIP"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9276 $as_echo "$STRIP" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9280 fi
9281
9282
9283 fi
9284 test -n "$ac_cv_prog_STRIP" && break
9285 done
9286
9287 if test -z "$ac_cv_prog_STRIP" ; then
9288 STRIP="true"
9289 fi
9290
9291
9292
9293 if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES=$WINDRES
9295 elif test -n "$ac_cv_prog_WINDRES"; then
9296 WINDRES=$ac_cv_prog_WINDRES
9297 fi
9298
9299 if test -n "$ac_cv_prog_WINDRES"; then
9300 for ncn_progname in windres; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302 set dummy ${ncn_progname}; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_prog_WINDRES+:} false; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 if test -n "$WINDRES"; then
9309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9310 else
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 for as_dir in $PATH
9313 do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_WINDRES="${ncn_progname}"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322 done
9323 done
9324 IFS=$as_save_IFS
9325
9326 fi
9327 fi
9328 WINDRES=$ac_cv_prog_WINDRES
9329 if test -n "$WINDRES"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9331 $as_echo "$WINDRES" >&6; }
9332 else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9335 fi
9336
9337
9338 done
9339 fi
9340
9341 for ncn_progname in windres; do
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if ${ac_cv_prog_WINDRES+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 if test -n "$WINDRES"; then
9351 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9355 do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9363 fi
9364 done
9365 done
9366 IFS=$as_save_IFS
9367
9368 fi
9369 fi
9370 WINDRES=$ac_cv_prog_WINDRES
9371 if test -n "$WINDRES"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9373 $as_echo "$WINDRES" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9377 fi
9378
9379
9380 fi
9381 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383 set dummy ${ncn_progname}; ac_word=$2
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if ${ac_cv_prog_WINDRES+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$WINDRES"; then
9390 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399 ac_cv_prog_WINDRES="${ncn_progname}"
9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9402 fi
9403 done
9404 done
9405 IFS=$as_save_IFS
9406
9407 fi
9408 fi
9409 WINDRES=$ac_cv_prog_WINDRES
9410 if test -n "$WINDRES"; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9412 $as_echo "$WINDRES" >&6; }
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415 $as_echo "no" >&6; }
9416 fi
9417
9418
9419 fi
9420 test -n "$ac_cv_prog_WINDRES" && break
9421 done
9422
9423 if test -z "$ac_cv_prog_WINDRES" ; then
9424 set dummy windres
9425 if test $build = $host ; then
9426 WINDRES="$2"
9427 else
9428 WINDRES="${ncn_tool_prefix}$2"
9429 fi
9430 fi
9431
9432
9433
9434 if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC=$WINDMC
9436 elif test -n "$ac_cv_prog_WINDMC"; then
9437 WINDMC=$ac_cv_prog_WINDMC
9438 fi
9439
9440 if test -n "$ac_cv_prog_WINDMC"; then
9441 for ncn_progname in windmc; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_progname}; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if ${ac_cv_prog_WINDMC+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 if test -n "$WINDMC"; then
9450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9451 else
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9454 do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_WINDMC="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463 done
9464 done
9465 IFS=$as_save_IFS
9466
9467 fi
9468 fi
9469 WINDMC=$ac_cv_prog_WINDMC
9470 if test -n "$WINDMC"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9472 $as_echo "$WINDMC" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477
9478
9479 done
9480 fi
9481
9482 for ncn_progname in windmc; do
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487 $as_echo_n "checking for $ac_word... " >&6; }
9488 if ${ac_cv_prog_WINDMC+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 if test -n "$WINDMC"; then
9492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9493 else
9494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495 for as_dir in $PATH
9496 do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9501 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9503 break 2
9504 fi
9505 done
9506 done
9507 IFS=$as_save_IFS
9508
9509 fi
9510 fi
9511 WINDMC=$ac_cv_prog_WINDMC
9512 if test -n "$WINDMC"; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9514 $as_echo "$WINDMC" >&6; }
9515 else
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517 $as_echo "no" >&6; }
9518 fi
9519
9520
9521 fi
9522 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524 set dummy ${ncn_progname}; ac_word=$2
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526 $as_echo_n "checking for $ac_word... " >&6; }
9527 if ${ac_cv_prog_WINDMC+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 if test -n "$WINDMC"; then
9531 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9532 else
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540 ac_cv_prog_WINDMC="${ncn_progname}"
9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 break 2
9543 fi
9544 done
9545 done
9546 IFS=$as_save_IFS
9547
9548 fi
9549 fi
9550 WINDMC=$ac_cv_prog_WINDMC
9551 if test -n "$WINDMC"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9553 $as_echo "$WINDMC" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9557 fi
9558
9559
9560 fi
9561 test -n "$ac_cv_prog_WINDMC" && break
9562 done
9563
9564 if test -z "$ac_cv_prog_WINDMC" ; then
9565 set dummy windmc
9566 if test $build = $host ; then
9567 WINDMC="$2"
9568 else
9569 WINDMC="${ncn_tool_prefix}$2"
9570 fi
9571 fi
9572
9573
9574
9575 if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY=$OBJCOPY
9577 elif test -n "$ac_cv_prog_OBJCOPY"; then
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579 fi
9580
9581 if test -n "$ac_cv_prog_OBJCOPY"; then
9582 for ncn_progname in objcopy; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584 set dummy ${ncn_progname}; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_prog_OBJCOPY+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 if test -n "$OBJCOPY"; then
9591 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9592 else
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9595 do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_prog_OBJCOPY="${ncn_progname}"
9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9603 fi
9604 done
9605 done
9606 IFS=$as_save_IFS
9607
9608 fi
9609 fi
9610 OBJCOPY=$ac_cv_prog_OBJCOPY
9611 if test -n "$OBJCOPY"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9613 $as_echo "$OBJCOPY" >&6; }
9614 else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9617 fi
9618
9619
9620 done
9621 fi
9622
9623 for ncn_progname in objcopy; do
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_prog_OBJCOPY+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test -n "$OBJCOPY"; then
9633 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9634 else
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 for as_dir in $PATH
9637 do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9642 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646 done
9647 done
9648 IFS=$as_save_IFS
9649
9650 fi
9651 fi
9652 OBJCOPY=$ac_cv_prog_OBJCOPY
9653 if test -n "$OBJCOPY"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9655 $as_echo "$OBJCOPY" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9659 fi
9660
9661
9662 fi
9663 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665 set dummy ${ncn_progname}; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_prog_OBJCOPY+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 if test -n "$OBJCOPY"; then
9672 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9673 else
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9676 do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_OBJCOPY="${ncn_progname}"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 break 2
9684 fi
9685 done
9686 done
9687 IFS=$as_save_IFS
9688
9689 fi
9690 fi
9691 OBJCOPY=$ac_cv_prog_OBJCOPY
9692 if test -n "$OBJCOPY"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9694 $as_echo "$OBJCOPY" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9698 fi
9699
9700
9701 fi
9702 test -n "$ac_cv_prog_OBJCOPY" && break
9703 done
9704
9705 if test -z "$ac_cv_prog_OBJCOPY" ; then
9706 set dummy objcopy
9707 if test $build = $host ; then
9708 OBJCOPY="$2"
9709 else
9710 OBJCOPY="${ncn_tool_prefix}$2"
9711 fi
9712 fi
9713
9714
9715
9716 if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP=$OBJDUMP
9718 elif test -n "$ac_cv_prog_OBJDUMP"; then
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720 fi
9721
9722 if test -n "$ac_cv_prog_OBJDUMP"; then
9723 for ncn_progname in objdump; do
9724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9725 set dummy ${ncn_progname}; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_prog_OBJDUMP+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730 else
9731 if test -n "$OBJDUMP"; then
9732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9733 else
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9736 do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741 ac_cv_prog_OBJDUMP="${ncn_progname}"
9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745 done
9746 done
9747 IFS=$as_save_IFS
9748
9749 fi
9750 fi
9751 OBJDUMP=$ac_cv_prog_OBJDUMP
9752 if test -n "$OBJDUMP"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9754 $as_echo "$OBJDUMP" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9758 fi
9759
9760
9761 done
9762 fi
9763
9764 for ncn_progname in objdump; do
9765 if test -n "$ncn_tool_prefix"; then
9766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9767 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_prog_OBJDUMP+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 if test -n "$OBJDUMP"; then
9774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9775 else
9776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 break 2
9786 fi
9787 done
9788 done
9789 IFS=$as_save_IFS
9790
9791 fi
9792 fi
9793 OBJDUMP=$ac_cv_prog_OBJDUMP
9794 if test -n "$OBJDUMP"; then
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9796 $as_echo "$OBJDUMP" >&6; }
9797 else
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9800 fi
9801
9802
9803 fi
9804 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806 set dummy ${ncn_progname}; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_prog_OBJDUMP+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 if test -n "$OBJDUMP"; then
9813 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9814 else
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816 for as_dir in $PATH
9817 do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_OBJDUMP="${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826 done
9827 done
9828 IFS=$as_save_IFS
9829
9830 fi
9831 fi
9832 OBJDUMP=$ac_cv_prog_OBJDUMP
9833 if test -n "$OBJDUMP"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9835 $as_echo "$OBJDUMP" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9839 fi
9840
9841
9842 fi
9843 test -n "$ac_cv_prog_OBJDUMP" && break
9844 done
9845
9846 if test -z "$ac_cv_prog_OBJDUMP" ; then
9847 set dummy objdump
9848 if test $build = $host ; then
9849 OBJDUMP="$2"
9850 else
9851 OBJDUMP="${ncn_tool_prefix}$2"
9852 fi
9853 fi
9854
9855
9856
9857 if test -n "$READELF"; then
9858 ac_cv_prog_READELF=$READELF
9859 elif test -n "$ac_cv_prog_READELF"; then
9860 READELF=$ac_cv_prog_READELF
9861 fi
9862
9863 if test -n "$ac_cv_prog_READELF"; then
9864 for ncn_progname in readelf; do
9865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9866 set dummy ${ncn_progname}; ac_word=$2
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868 $as_echo_n "checking for $ac_word... " >&6; }
9869 if ${ac_cv_prog_READELF+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 if test -n "$READELF"; then
9873 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9874 else
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 for as_dir in $PATH
9877 do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_READELF="${ncn_progname}"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886 done
9887 done
9888 IFS=$as_save_IFS
9889
9890 fi
9891 fi
9892 READELF=$ac_cv_prog_READELF
9893 if test -n "$READELF"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9895 $as_echo "$READELF" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899 fi
9900
9901
9902 done
9903 fi
9904
9905 for ncn_progname in readelf; do
9906 if test -n "$ncn_tool_prefix"; then
9907 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9908 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910 $as_echo_n "checking for $ac_word... " >&6; }
9911 if ${ac_cv_prog_READELF+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 if test -n "$READELF"; then
9915 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9916 else
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9924 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928 done
9929 done
9930 IFS=$as_save_IFS
9931
9932 fi
9933 fi
9934 READELF=$ac_cv_prog_READELF
9935 if test -n "$READELF"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9937 $as_echo "$READELF" >&6; }
9938 else
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9941 fi
9942
9943
9944 fi
9945 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9947 set dummy ${ncn_progname}; ac_word=$2
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9949 $as_echo_n "checking for $ac_word... " >&6; }
9950 if ${ac_cv_prog_READELF+:} false; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 if test -n "$READELF"; then
9954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9955 else
9956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 for as_dir in $PATH
9958 do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9963 ac_cv_prog_READELF="${ncn_progname}"
9964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967 done
9968 done
9969 IFS=$as_save_IFS
9970
9971 fi
9972 fi
9973 READELF=$ac_cv_prog_READELF
9974 if test -n "$READELF"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9976 $as_echo "$READELF" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9980 fi
9981
9982
9983 fi
9984 test -n "$ac_cv_prog_READELF" && break
9985 done
9986
9987 if test -z "$ac_cv_prog_READELF" ; then
9988 set dummy readelf
9989 if test $build = $host ; then
9990 READELF="$2"
9991 else
9992 READELF="${ncn_tool_prefix}$2"
9993 fi
9994 fi
9995
9996
9997
9998
9999
10000
10001 # Target tools.
10002
10003 # Check whether --with-build-time-tools was given.
10004 if test "${with_build_time_tools+set}" = set; then :
10005 withval=$with_build_time_tools; case x"$withval" in
10006 x/*) ;;
10007 *)
10008 with_build_time_tools=
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10010 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10011 ;;
10012 esac
10013 else
10014 with_build_time_tools=
10015 fi
10016
10017
10018
10019
10020 if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10022 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10023 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10024 fi
10025
10026 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10027 for ncn_progname in cc gcc; do
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10029 set dummy ${ncn_progname}; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10040 do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10048 fi
10049 done
10050 done
10051 IFS=$as_save_IFS
10052
10053 fi
10054 fi
10055 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10056 if test -n "$CC_FOR_TARGET"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058 $as_echo "$CC_FOR_TARGET" >&6; }
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10062 fi
10063
10064
10065 done
10066 fi
10067
10068 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10069 for ncn_progname in cc gcc; do
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10071 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10072 if test -x $with_build_time_tools/${ncn_progname}; then
10073 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10075 $as_echo "yes" >&6; }
10076 break
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10080 fi
10081 done
10082 fi
10083
10084 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10085 for ncn_progname in cc gcc; do
10086 if test -n "$ncn_target_tool_prefix"; then
10087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10088 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 if test -n "$CC_FOR_TARGET"; then
10095 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108 done
10109 done
10110 IFS=$as_save_IFS
10111
10112 fi
10113 fi
10114 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10115 if test -n "$CC_FOR_TARGET"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10117 $as_echo "$CC_FOR_TARGET" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10121 fi
10122
10123
10124 fi
10125 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10127 set dummy ${ncn_progname}; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 if test -n "$CC_FOR_TARGET"; then
10134 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10135 else
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10138 do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10143 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10145 break 2
10146 fi
10147 done
10148 done
10149 IFS=$as_save_IFS
10150
10151 fi
10152 fi
10153 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10154 if test -n "$CC_FOR_TARGET"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10156 $as_echo "$CC_FOR_TARGET" >&6; }
10157 else
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10160 fi
10161
10162
10163 fi
10164 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10165 done
10166 fi
10167
10168 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10169 set dummy cc gcc
10170 if test $build = $target ; then
10171 CC_FOR_TARGET="$2"
10172 else
10173 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10174 fi
10175 else
10176 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10177 fi
10178
10179
10180
10181 if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10183 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10185 fi
10186
10187 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10188 for ncn_progname in c++ g++ cxx gxx; do
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_progname}; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10198 else
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 fi
10215 fi
10216 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10217 if test -n "$CXX_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219 $as_echo "$CXX_FOR_TARGET" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224
10225
10226 done
10227 fi
10228
10229 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10230 for ncn_progname in c++ g++ cxx gxx; do
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10232 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10233 if test -x $with_build_time_tools/${ncn_progname}; then
10234 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10236 $as_echo "yes" >&6; }
10237 break
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10240 $as_echo "no" >&6; }
10241 fi
10242 done
10243 fi
10244
10245 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10246 for ncn_progname in c++ g++ cxx gxx; do
10247 if test -n "$ncn_target_tool_prefix"; then
10248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10249 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 if test -n "$CXX_FOR_TARGET"; then
10256 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269 done
10270 done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10276 if test -n "$CXX_FOR_TARGET"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10278 $as_echo "$CXX_FOR_TARGET" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284
10285 fi
10286 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10288 set dummy ${ncn_progname}; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 if test -n "$CXX_FOR_TARGET"; then
10295 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10296 else
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10299 do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308 done
10309 done
10310 IFS=$as_save_IFS
10311
10312 fi
10313 fi
10314 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10315 if test -n "$CXX_FOR_TARGET"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10317 $as_echo "$CXX_FOR_TARGET" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 fi
10322
10323
10324 fi
10325 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10326 done
10327 fi
10328
10329 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10330 set dummy c++ g++ cxx gxx
10331 if test $build = $target ; then
10332 CXX_FOR_TARGET="$2"
10333 else
10334 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10335 fi
10336 else
10337 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10338 fi
10339
10340
10341
10342 if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10344 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10346 fi
10347
10348 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10349 for ncn_progname in gcc; do
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371 done
10372 done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10378 if test -n "$GCC_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380 $as_echo "$GCC_FOR_TARGET" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387 done
10388 fi
10389
10390 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10391 for ncn_progname in gcc; do
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; }
10398 break
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10402 fi
10403 done
10404 fi
10405
10406 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10407 for ncn_progname in gcc; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10410 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 if test -n "$GCC_FOR_TARGET"; then
10417 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10421 do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430 done
10431 done
10432 IFS=$as_save_IFS
10433
10434 fi
10435 fi
10436 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10437 if test -n "$GCC_FOR_TARGET"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10439 $as_echo "$GCC_FOR_TARGET" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10443 fi
10444
10445
10446 fi
10447 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10449 set dummy ${ncn_progname}; ac_word=$2
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451 $as_echo_n "checking for $ac_word... " >&6; }
10452 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 if test -n "$GCC_FOR_TARGET"; then
10456 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10457 else
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10460 do
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10468 fi
10469 done
10470 done
10471 IFS=$as_save_IFS
10472
10473 fi
10474 fi
10475 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10476 if test -n "$GCC_FOR_TARGET"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10478 $as_echo "$GCC_FOR_TARGET" >&6; }
10479 else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481 $as_echo "no" >&6; }
10482 fi
10483
10484
10485 fi
10486 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10487 done
10488 fi
10489
10490 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10491 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10492 else
10493 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10494 fi
10495
10496
10497
10498 if test -n "$GFORTRAN_FOR_TARGET"; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10500 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10501 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10502 fi
10503
10504 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10505 for ncn_progname in gfortran; do
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507 set dummy ${ncn_progname}; ac_word=$2
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509 $as_echo_n "checking for $ac_word... " >&6; }
10510 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 if test -n "$GFORTRAN_FOR_TARGET"; then
10514 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10515 else
10516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517 for as_dir in $PATH
10518 do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 break 2
10526 fi
10527 done
10528 done
10529 IFS=$as_save_IFS
10530
10531 fi
10532 fi
10533 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10534 if test -n "$GFORTRAN_FOR_TARGET"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10536 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10540 fi
10541
10542
10543 done
10544 fi
10545
10546 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10547 for ncn_progname in gfortran; do
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10549 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10550 if test -x $with_build_time_tools/${ncn_progname}; then
10551 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; }
10554 break
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10558 fi
10559 done
10560 fi
10561
10562 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10563 for ncn_progname in gfortran; do
10564 if test -n "$ncn_target_tool_prefix"; then
10565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10566 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if test -n "$GFORTRAN_FOR_TARGET"; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10574 else
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10577 do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10585 fi
10586 done
10587 done
10588 IFS=$as_save_IFS
10589
10590 fi
10591 fi
10592 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10593 if test -n "$GFORTRAN_FOR_TARGET"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10595 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 fi
10600
10601
10602 fi
10603 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 if test -n "$GFORTRAN_FOR_TARGET"; then
10612 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10616 do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625 done
10626 done
10627 IFS=$as_save_IFS
10628
10629 fi
10630 fi
10631 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10632 if test -n "$GFORTRAN_FOR_TARGET"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10634 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638 fi
10639
10640
10641 fi
10642 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10643 done
10644 fi
10645
10646 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10647 set dummy gfortran
10648 if test $build = $target ; then
10649 GFORTRAN_FOR_TARGET="$2"
10650 else
10651 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10652 fi
10653 else
10654 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10655 fi
10656
10657
10658
10659 if test -n "$GOC_FOR_TARGET"; then
10660 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10661 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10662 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10663 fi
10664
10665 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10666 for ncn_progname in gccgo; do
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668 set dummy ${ncn_progname}; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670 $as_echo_n "checking for $ac_word... " >&6; }
10671 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 if test -n "$GOC_FOR_TARGET"; then
10675 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10676 else
10677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678 for as_dir in $PATH
10679 do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 break 2
10687 fi
10688 done
10689 done
10690 IFS=$as_save_IFS
10691
10692 fi
10693 fi
10694 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10695 if test -n "$GOC_FOR_TARGET"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10697 $as_echo "$GOC_FOR_TARGET" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10701 fi
10702
10703
10704 done
10705 fi
10706
10707 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10708 for ncn_progname in gccgo; do
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10710 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10711 if test -x $with_build_time_tools/${ncn_progname}; then
10712 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10714 $as_echo "yes" >&6; }
10715 break
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10719 fi
10720 done
10721 fi
10722
10723 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10724 for ncn_progname in gccgo; do
10725 if test -n "$ncn_target_tool_prefix"; then
10726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 if test -n "$GOC_FOR_TARGET"; then
10734 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10735 else
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10738 do
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10743 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10746 fi
10747 done
10748 done
10749 IFS=$as_save_IFS
10750
10751 fi
10752 fi
10753 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10754 if test -n "$GOC_FOR_TARGET"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10756 $as_echo "$GOC_FOR_TARGET" >&6; }
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10760 fi
10761
10762
10763 fi
10764 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10766 set dummy ${ncn_progname}; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10772 if test -n "$GOC_FOR_TARGET"; then
10773 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10774 else
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10777 do
10778 IFS=$as_save_IFS
10779 test -z "$as_dir" && as_dir=.
10780 for ac_exec_ext in '' $ac_executable_extensions; do
10781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10782 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784 break 2
10785 fi
10786 done
10787 done
10788 IFS=$as_save_IFS
10789
10790 fi
10791 fi
10792 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10793 if test -n "$GOC_FOR_TARGET"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10795 $as_echo "$GOC_FOR_TARGET" >&6; }
10796 else
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10799 fi
10800
10801
10802 fi
10803 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10804 done
10805 fi
10806
10807 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10808 set dummy gccgo
10809 if test $build = $target ; then
10810 GOC_FOR_TARGET="$2"
10811 else
10812 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10813 fi
10814 else
10815 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10816 fi
10817
10818
10819
10820 cat > conftest.c << \EOF
10821 #ifdef __GNUC__
10822 gcc_yay;
10823 #endif
10824 EOF
10825 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10826 have_gcc_for_target=yes
10827 else
10828 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10829 have_gcc_for_target=no
10830 fi
10831 rm conftest.c
10832
10833
10834
10835
10836 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10837 if test -n "$with_build_time_tools"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10839 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10840 if test -x $with_build_time_tools/ar; then
10841 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10842 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10844 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849 elif test $build != $host && test $have_gcc_for_target = yes; then
10850 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10851 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10852 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10853 fi
10854 fi
10855 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10856 # Extract the first word of "ar", so it can be a program name with args.
10857 set dummy ar; ac_word=$2
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10859 $as_echo_n "checking for $ac_word... " >&6; }
10860 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 case $AR_FOR_TARGET in
10864 [\\/]* | ?:[\\/]*)
10865 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10866 ;;
10867 *)
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $gcc_cv_tool_dirs
10870 do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10875 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879 done
10880 done
10881 IFS=$as_save_IFS
10882
10883 ;;
10884 esac
10885 fi
10886 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10887 if test -n "$AR_FOR_TARGET"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10889 $as_echo "$AR_FOR_TARGET" >&6; }
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10893 fi
10894
10895
10896 fi
10897 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10898
10899
10900 if test -n "$AR_FOR_TARGET"; then
10901 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10902 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10903 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10904 fi
10905
10906 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10907 for ncn_progname in ar; do
10908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10909 set dummy ${ncn_progname}; ac_word=$2
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 if test -n "$AR_FOR_TARGET"; then
10916 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10917 else
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10920 do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929 done
10930 done
10931 IFS=$as_save_IFS
10932
10933 fi
10934 fi
10935 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10936 if test -n "$AR_FOR_TARGET"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10938 $as_echo "$AR_FOR_TARGET" >&6; }
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10942 fi
10943
10944
10945 done
10946 fi
10947
10948 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10949 for ncn_progname in ar; do
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10951 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10952 if test -x $with_build_time_tools/${ncn_progname}; then
10953 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10955 $as_echo "yes" >&6; }
10956 break
10957 else
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959 $as_echo "no" >&6; }
10960 fi
10961 done
10962 fi
10963
10964 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10965 for ncn_progname in ar; do
10966 if test -n "$ncn_target_tool_prefix"; then
10967 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10968 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10970 $as_echo_n "checking for $ac_word... " >&6; }
10971 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 if test -n "$AR_FOR_TARGET"; then
10975 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10976 else
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10979 do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10987 fi
10988 done
10989 done
10990 IFS=$as_save_IFS
10991
10992 fi
10993 fi
10994 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10995 if test -n "$AR_FOR_TARGET"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997 $as_echo "$AR_FOR_TARGET" >&6; }
10998 else
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000 $as_echo "no" >&6; }
11001 fi
11002
11003
11004 fi
11005 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11007 set dummy ${ncn_progname}; ac_word=$2
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009 $as_echo_n "checking for $ac_word... " >&6; }
11010 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11011 $as_echo_n "(cached) " >&6
11012 else
11013 if test -n "$AR_FOR_TARGET"; then
11014 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11015 else
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11018 do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11023 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027 done
11028 done
11029 IFS=$as_save_IFS
11030
11031 fi
11032 fi
11033 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11034 if test -n "$AR_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036 $as_echo "$AR_FOR_TARGET" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 fi
11041
11042
11043 fi
11044 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11045 done
11046 fi
11047
11048 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11049 set dummy ar
11050 if test $build = $target ; then
11051 AR_FOR_TARGET="$2"
11052 else
11053 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11054 fi
11055 else
11056 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11057 fi
11058
11059 else
11060 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11061 fi
11062
11063
11064
11065
11066 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11067 if test -n "$with_build_time_tools"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11069 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11070 if test -x $with_build_time_tools/as; then
11071 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11072 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11074 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 $as_echo "no" >&6; }
11078 fi
11079 elif test $build != $host && test $have_gcc_for_target = yes; then
11080 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11081 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11082 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11083 fi
11084 fi
11085 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11086 # Extract the first word of "as", so it can be a program name with args.
11087 set dummy as; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 case $AS_FOR_TARGET in
11094 [\\/]* | ?:[\\/]*)
11095 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11096 ;;
11097 *)
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $gcc_cv_tool_dirs
11100 do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109 done
11110 done
11111 IFS=$as_save_IFS
11112
11113 ;;
11114 esac
11115 fi
11116 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11117 if test -n "$AS_FOR_TARGET"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11119 $as_echo "$AS_FOR_TARGET" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125
11126 fi
11127 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11128
11129
11130 if test -n "$AS_FOR_TARGET"; then
11131 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11132 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11133 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11134 fi
11135
11136 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11137 for ncn_progname in as; do
11138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11139 set dummy ${ncn_progname}; ac_word=$2
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141 $as_echo_n "checking for $ac_word... " >&6; }
11142 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test -n "$AS_FOR_TARGET"; then
11146 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11147 else
11148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11150 do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
11153 for ac_exec_ext in '' $ac_executable_extensions; do
11154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11155 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 break 2
11158 fi
11159 done
11160 done
11161 IFS=$as_save_IFS
11162
11163 fi
11164 fi
11165 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11166 if test -n "$AS_FOR_TARGET"; then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11168 $as_echo "$AS_FOR_TARGET" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 fi
11173
11174
11175 done
11176 fi
11177
11178 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11179 for ncn_progname in as; do
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11181 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11182 if test -x $with_build_time_tools/${ncn_progname}; then
11183 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 break
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189 $as_echo "no" >&6; }
11190 fi
11191 done
11192 fi
11193
11194 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11195 for ncn_progname in as; do
11196 if test -n "$ncn_target_tool_prefix"; then
11197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11198 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test -n "$AS_FOR_TARGET"; then
11205 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218 done
11219 done
11220 IFS=$as_save_IFS
11221
11222 fi
11223 fi
11224 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11225 if test -n "$AS_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227 $as_echo "$AS_FOR_TARGET" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 fi
11232
11233
11234 fi
11235 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11237 set dummy ${ncn_progname}; ac_word=$2
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239 $as_echo_n "checking for $ac_word... " >&6; }
11240 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test -n "$AS_FOR_TARGET"; then
11244 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11245 else
11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247 for as_dir in $PATH
11248 do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
11251 for ac_exec_ext in '' $ac_executable_extensions; do
11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11253 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11255 break 2
11256 fi
11257 done
11258 done
11259 IFS=$as_save_IFS
11260
11261 fi
11262 fi
11263 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11264 if test -n "$AS_FOR_TARGET"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266 $as_echo "$AS_FOR_TARGET" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 fi
11271
11272
11273 fi
11274 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11275 done
11276 fi
11277
11278 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11279 set dummy as
11280 if test $build = $target ; then
11281 AS_FOR_TARGET="$2"
11282 else
11283 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11284 fi
11285 else
11286 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11287 fi
11288
11289 else
11290 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11291 fi
11292
11293
11294
11295
11296 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11297 if test -n "$with_build_time_tools"; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11299 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11300 if test -x $with_build_time_tools/dlltool; then
11301 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11302 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11304 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309 elif test $build != $host && test $have_gcc_for_target = yes; then
11310 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11311 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11312 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11313 fi
11314 fi
11315 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11316 # Extract the first word of "dlltool", so it can be a program name with args.
11317 set dummy dlltool; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11319 $as_echo_n "checking for $ac_word... " >&6; }
11320 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 case $DLLTOOL_FOR_TARGET in
11324 [\\/]* | ?:[\\/]*)
11325 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11326 ;;
11327 *)
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $gcc_cv_tool_dirs
11330 do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339 done
11340 done
11341 IFS=$as_save_IFS
11342
11343 ;;
11344 esac
11345 fi
11346 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11347 if test -n "$DLLTOOL_FOR_TARGET"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11349 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11353 fi
11354
11355
11356 fi
11357 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11358
11359
11360 if test -n "$DLLTOOL_FOR_TARGET"; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11362 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11363 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11364 fi
11365
11366 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11367 for ncn_progname in dlltool; do
11368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11369 set dummy ${ncn_progname}; ac_word=$2
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371 $as_echo_n "checking for $ac_word... " >&6; }
11372 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 if test -n "$DLLTOOL_FOR_TARGET"; then
11376 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11377 else
11378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379 for as_dir in $PATH
11380 do
11381 IFS=$as_save_IFS
11382 test -z "$as_dir" && as_dir=.
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11385 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 break 2
11388 fi
11389 done
11390 done
11391 IFS=$as_save_IFS
11392
11393 fi
11394 fi
11395 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11396 if test -n "$DLLTOOL_FOR_TARGET"; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11398 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403
11404
11405 done
11406 fi
11407
11408 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11409 for ncn_progname in dlltool; do
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11411 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11412 if test -x $with_build_time_tools/${ncn_progname}; then
11413 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11415 $as_echo "yes" >&6; }
11416 break
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421 done
11422 fi
11423
11424 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11425 for ncn_progname in dlltool; do
11426 if test -n "$ncn_target_tool_prefix"; then
11427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430 $as_echo_n "checking for $ac_word... " >&6; }
11431 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 if test -n "$DLLTOOL_FOR_TARGET"; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448 done
11449 done
11450 IFS=$as_save_IFS
11451
11452 fi
11453 fi
11454 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11455 if test -n "$DLLTOOL_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467 set dummy ${ncn_progname}; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 if test -n "$DLLTOOL_FOR_TARGET"; then
11474 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11475 else
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11478 do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487 done
11488 done
11489 IFS=$as_save_IFS
11490
11491 fi
11492 fi
11493 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11494 if test -n "$DLLTOOL_FOR_TARGET"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11500 fi
11501
11502
11503 fi
11504 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11505 done
11506 fi
11507
11508 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11509 set dummy dlltool
11510 if test $build = $target ; then
11511 DLLTOOL_FOR_TARGET="$2"
11512 else
11513 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11514 fi
11515 else
11516 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11517 fi
11518
11519 else
11520 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11521 fi
11522
11523
11524
11525
11526 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11527 if test -n "$with_build_time_tools"; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11529 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11530 if test -x $with_build_time_tools/ld; then
11531 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11532 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11534 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539 elif test $build != $host && test $have_gcc_for_target = yes; then
11540 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11541 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11542 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11543 fi
11544 fi
11545 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11546 # Extract the first word of "ld", so it can be a program name with args.
11547 set dummy ld; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 case $LD_FOR_TARGET in
11554 [\\/]* | ?:[\\/]*)
11555 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11556 ;;
11557 *)
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $gcc_cv_tool_dirs
11560 do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569 done
11570 done
11571 IFS=$as_save_IFS
11572
11573 ;;
11574 esac
11575 fi
11576 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11577 if test -n "$LD_FOR_TARGET"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11579 $as_echo "$LD_FOR_TARGET" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 fi
11584
11585
11586 fi
11587 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11588
11589
11590 if test -n "$LD_FOR_TARGET"; then
11591 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11592 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11593 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11594 fi
11595
11596 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11597 for ncn_progname in ld; do
11598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11599 set dummy ${ncn_progname}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 $as_echo_n "checking for $ac_word... " >&6; }
11602 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 if test -n "$LD_FOR_TARGET"; then
11606 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11607 else
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 break 2
11618 fi
11619 done
11620 done
11621 IFS=$as_save_IFS
11622
11623 fi
11624 fi
11625 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11626 if test -n "$LD_FOR_TARGET"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11628 $as_echo "$LD_FOR_TARGET" >&6; }
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633
11634
11635 done
11636 fi
11637
11638 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11639 for ncn_progname in ld; do
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11641 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11642 if test -x $with_build_time_tools/${ncn_progname}; then
11643 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645 $as_echo "yes" >&6; }
11646 break
11647 else
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 fi
11651 done
11652 fi
11653
11654 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11655 for ncn_progname in ld; do
11656 if test -n "$ncn_target_tool_prefix"; then
11657 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11658 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 if test -n "$LD_FOR_TARGET"; then
11665 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11666 else
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11669 do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11674 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678 done
11679 done
11680 IFS=$as_save_IFS
11681
11682 fi
11683 fi
11684 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11685 if test -n "$LD_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687 $as_echo "$LD_FOR_TARGET" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 fi
11692
11693
11694 fi
11695 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697 set dummy ${ncn_progname}; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 if test -n "$LD_FOR_TARGET"; then
11704 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11708 do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11716 fi
11717 done
11718 done
11719 IFS=$as_save_IFS
11720
11721 fi
11722 fi
11723 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11724 if test -n "$LD_FOR_TARGET"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726 $as_echo "$LD_FOR_TARGET" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731
11732
11733 fi
11734 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11735 done
11736 fi
11737
11738 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11739 set dummy ld
11740 if test $build = $target ; then
11741 LD_FOR_TARGET="$2"
11742 else
11743 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11744 fi
11745 else
11746 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11747 fi
11748
11749 else
11750 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11751 fi
11752
11753
11754
11755
11756 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11757 if test -n "$with_build_time_tools"; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11759 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11760 if test -x $with_build_time_tools/lipo; then
11761 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11762 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11764 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768 fi
11769 elif test $build != $host && test $have_gcc_for_target = yes; then
11770 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11771 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11772 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11773 fi
11774 fi
11775 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11776 # Extract the first word of "lipo", so it can be a program name with args.
11777 set dummy lipo; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 case $LIPO_FOR_TARGET in
11784 [\\/]* | ?:[\\/]*)
11785 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11786 ;;
11787 *)
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $gcc_cv_tool_dirs
11790 do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797 break 2
11798 fi
11799 done
11800 done
11801 IFS=$as_save_IFS
11802
11803 ;;
11804 esac
11805 fi
11806 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11807 if test -n "$LIPO_FOR_TARGET"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11809 $as_echo "$LIPO_FOR_TARGET" >&6; }
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815
11816 fi
11817 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11818
11819
11820 if test -n "$LIPO_FOR_TARGET"; then
11821 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11822 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11823 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11824 fi
11825
11826 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11827 for ncn_progname in lipo; do
11828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11829 set dummy ${ncn_progname}; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 if test -n "$LIPO_FOR_TARGET"; then
11836 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11837 else
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11840 do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 break 2
11848 fi
11849 done
11850 done
11851 IFS=$as_save_IFS
11852
11853 fi
11854 fi
11855 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11856 if test -n "$LIPO_FOR_TARGET"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11858 $as_echo "$LIPO_FOR_TARGET" >&6; }
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 fi
11863
11864
11865 done
11866 fi
11867
11868 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11869 for ncn_progname in lipo; do
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11871 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11872 if test -x $with_build_time_tools/${ncn_progname}; then
11873 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11875 $as_echo "yes" >&6; }
11876 break
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880 fi
11881 done
11882 fi
11883
11884 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11885 for ncn_progname in lipo; do
11886 if test -n "$ncn_target_tool_prefix"; then
11887 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11888 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 if test -n "$LIPO_FOR_TARGET"; then
11895 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11896 else
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908 done
11909 done
11910 IFS=$as_save_IFS
11911
11912 fi
11913 fi
11914 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11915 if test -n "$LIPO_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917 $as_echo "$LIPO_FOR_TARGET" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922
11923
11924 fi
11925 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11927 set dummy ${ncn_progname}; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 if test -n "$LIPO_FOR_TARGET"; then
11934 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11946 fi
11947 done
11948 done
11949 IFS=$as_save_IFS
11950
11951 fi
11952 fi
11953 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11954 if test -n "$LIPO_FOR_TARGET"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956 $as_echo "$LIPO_FOR_TARGET" >&6; }
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 fi
11961
11962
11963 fi
11964 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11965 done
11966 fi
11967
11968 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11969 set dummy lipo
11970 if test $build = $target ; then
11971 LIPO_FOR_TARGET="$2"
11972 else
11973 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11974 fi
11975 else
11976 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11977 fi
11978
11979 else
11980 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11981 fi
11982
11983
11984
11985
11986 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11987 if test -n "$with_build_time_tools"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11989 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11990 if test -x $with_build_time_tools/nm; then
11991 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11992 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11994 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999 elif test $build != $host && test $have_gcc_for_target = yes; then
12000 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12001 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12002 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12003 fi
12004 fi
12005 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12006 # Extract the first word of "nm", so it can be a program name with args.
12007 set dummy nm; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 case $NM_FOR_TARGET in
12014 [\\/]* | ?:[\\/]*)
12015 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12016 ;;
12017 *)
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $gcc_cv_tool_dirs
12020 do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029 done
12030 done
12031 IFS=$as_save_IFS
12032
12033 ;;
12034 esac
12035 fi
12036 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12037 if test -n "$NM_FOR_TARGET"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12039 $as_echo "$NM_FOR_TARGET" >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043 fi
12044
12045
12046 fi
12047 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12048
12049
12050 if test -n "$NM_FOR_TARGET"; then
12051 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12052 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12053 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12054 fi
12055
12056 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12057 for ncn_progname in nm; do
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059 set dummy ${ncn_progname}; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061 $as_echo_n "checking for $ac_word... " >&6; }
12062 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test -n "$NM_FOR_TARGET"; then
12066 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12067 else
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12070 do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 break 2
12078 fi
12079 done
12080 done
12081 IFS=$as_save_IFS
12082
12083 fi
12084 fi
12085 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12086 if test -n "$NM_FOR_TARGET"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12088 $as_echo "$NM_FOR_TARGET" >&6; }
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092 fi
12093
12094
12095 done
12096 fi
12097
12098 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12099 for ncn_progname in nm; do
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12101 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12102 if test -x $with_build_time_tools/${ncn_progname}; then
12103 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12106 break
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12110 fi
12111 done
12112 fi
12113
12114 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12115 for ncn_progname in nm; do
12116 if test -n "$ncn_target_tool_prefix"; then
12117 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12118 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test -n "$NM_FOR_TARGET"; then
12125 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138 done
12139 done
12140 IFS=$as_save_IFS
12141
12142 fi
12143 fi
12144 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12145 if test -n "$NM_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147 $as_echo "$NM_FOR_TARGET" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154 fi
12155 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12157 set dummy ${ncn_progname}; ac_word=$2
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12159 $as_echo_n "checking for $ac_word... " >&6; }
12160 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 if test -n "$NM_FOR_TARGET"; then
12164 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12165 else
12166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167 for as_dir in $PATH
12168 do
12169 IFS=$as_save_IFS
12170 test -z "$as_dir" && as_dir=.
12171 for ac_exec_ext in '' $ac_executable_extensions; do
12172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12173 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 break 2
12176 fi
12177 done
12178 done
12179 IFS=$as_save_IFS
12180
12181 fi
12182 fi
12183 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12184 if test -n "$NM_FOR_TARGET"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186 $as_echo "$NM_FOR_TARGET" >&6; }
12187 else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190 fi
12191
12192
12193 fi
12194 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12195 done
12196 fi
12197
12198 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12199 set dummy nm
12200 if test $build = $target ; then
12201 NM_FOR_TARGET="$2"
12202 else
12203 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12204 fi
12205 else
12206 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12207 fi
12208
12209 else
12210 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12211 fi
12212
12213
12214
12215
12216 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12217 if test -n "$with_build_time_tools"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12219 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12220 if test -x $with_build_time_tools/objcopy; then
12221 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12222 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12224 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229 elif test $build != $host && test $have_gcc_for_target = yes; then
12230 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12231 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12232 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12233 fi
12234 fi
12235 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12236 # Extract the first word of "objcopy", so it can be a program name with args.
12237 set dummy objcopy; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242 else
12243 case $OBJCOPY_FOR_TARGET in
12244 [\\/]* | ?:[\\/]*)
12245 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12246 ;;
12247 *)
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $gcc_cv_tool_dirs
12250 do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 break 2
12258 fi
12259 done
12260 done
12261 IFS=$as_save_IFS
12262
12263 ;;
12264 esac
12265 fi
12266 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12267 if test -n "$OBJCOPY_FOR_TARGET"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12269 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 fi
12274
12275
12276 fi
12277 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12278
12279
12280 if test -n "$OBJCOPY_FOR_TARGET"; then
12281 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12282 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12283 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12284 fi
12285
12286 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12287 for ncn_progname in objcopy; do
12288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12289 set dummy ${ncn_progname}; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 if test -n "$OBJCOPY_FOR_TARGET"; then
12296 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12297 else
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301 IFS=$as_save_IFS
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 break 2
12308 fi
12309 done
12310 done
12311 IFS=$as_save_IFS
12312
12313 fi
12314 fi
12315 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12316 if test -n "$OBJCOPY_FOR_TARGET"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12318 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322 fi
12323
12324
12325 done
12326 fi
12327
12328 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12329 for ncn_progname in objcopy; do
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12331 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12332 if test -x $with_build_time_tools/${ncn_progname}; then
12333 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12335 $as_echo "yes" >&6; }
12336 break
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341 done
12342 fi
12343
12344 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12345 for ncn_progname in objcopy; do
12346 if test -n "$ncn_target_tool_prefix"; then
12347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -n "$OBJCOPY_FOR_TARGET"; then
12355 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12356 else
12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358 for as_dir in $PATH
12359 do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12364 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368 done
12369 done
12370 IFS=$as_save_IFS
12371
12372 fi
12373 fi
12374 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12375 if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 fi
12382
12383
12384 fi
12385 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12387 set dummy ${ncn_progname}; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if test -n "$OBJCOPY_FOR_TARGET"; then
12394 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407 done
12408 done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12414 if test -n "$OBJCOPY_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12416 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422
12423 fi
12424 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12425 done
12426 fi
12427
12428 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12429 set dummy objcopy
12430 if test $build = $target ; then
12431 OBJCOPY_FOR_TARGET="$2"
12432 else
12433 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12434 fi
12435 else
12436 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12437 fi
12438
12439 else
12440 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12441 fi
12442
12443
12444
12445
12446 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12447 if test -n "$with_build_time_tools"; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12449 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12450 if test -x $with_build_time_tools/objdump; then
12451 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12452 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12454 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459 elif test $build != $host && test $have_gcc_for_target = yes; then
12460 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12461 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12462 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12463 fi
12464 fi
12465 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12466 # Extract the first word of "objdump", so it can be a program name with args.
12467 set dummy objdump; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 case $OBJDUMP_FOR_TARGET in
12474 [\\/]* | ?:[\\/]*)
12475 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12476 ;;
12477 *)
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $gcc_cv_tool_dirs
12480 do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12485 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12488 fi
12489 done
12490 done
12491 IFS=$as_save_IFS
12492
12493 ;;
12494 esac
12495 fi
12496 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12497 if test -n "$OBJDUMP_FOR_TARGET"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12499 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12503 fi
12504
12505
12506 fi
12507 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12508
12509
12510 if test -n "$OBJDUMP_FOR_TARGET"; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12512 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12513 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12514 fi
12515
12516 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12517 for ncn_progname in objdump; do
12518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12519 set dummy ${ncn_progname}; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 if test -n "$OBJDUMP_FOR_TARGET"; then
12526 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12527 else
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 break 2
12538 fi
12539 done
12540 done
12541 IFS=$as_save_IFS
12542
12543 fi
12544 fi
12545 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12546 if test -n "$OBJDUMP_FOR_TARGET"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12548 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12549 else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 fi
12553
12554
12555 done
12556 fi
12557
12558 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12559 for ncn_progname in objdump; do
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12561 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12562 if test -x $with_build_time_tools/${ncn_progname}; then
12563 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12565 $as_echo "yes" >&6; }
12566 break
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570 fi
12571 done
12572 fi
12573
12574 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12575 for ncn_progname in objdump; do
12576 if test -n "$ncn_target_tool_prefix"; then
12577 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12578 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$OBJDUMP_FOR_TARGET"; then
12585 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602 fi
12603 fi
12604 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12605 if test -n "$OBJDUMP_FOR_TARGET"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612
12613
12614 fi
12615 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617 set dummy ${ncn_progname}; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 if test -n "$OBJDUMP_FOR_TARGET"; then
12624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12625 else
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12628 do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635 break 2
12636 fi
12637 done
12638 done
12639 IFS=$as_save_IFS
12640
12641 fi
12642 fi
12643 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12644 if test -n "$OBJDUMP_FOR_TARGET"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12646 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650 fi
12651
12652
12653 fi
12654 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12655 done
12656 fi
12657
12658 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12659 set dummy objdump
12660 if test $build = $target ; then
12661 OBJDUMP_FOR_TARGET="$2"
12662 else
12663 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12664 fi
12665 else
12666 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12667 fi
12668
12669 else
12670 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12671 fi
12672
12673
12674
12675
12676 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12677 if test -n "$with_build_time_tools"; then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12679 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12680 if test -x $with_build_time_tools/ranlib; then
12681 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12682 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12684 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12685 else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688 fi
12689 elif test $build != $host && test $have_gcc_for_target = yes; then
12690 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12691 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12692 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12693 fi
12694 fi
12695 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12696 # Extract the first word of "ranlib", so it can be a program name with args.
12697 set dummy ranlib; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 case $RANLIB_FOR_TARGET in
12704 [\\/]* | ?:[\\/]*)
12705 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12706 ;;
12707 *)
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $gcc_cv_tool_dirs
12710 do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719 done
12720 done
12721 IFS=$as_save_IFS
12722
12723 ;;
12724 esac
12725 fi
12726 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12727 if test -n "$RANLIB_FOR_TARGET"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12729 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 fi
12734
12735
12736 fi
12737 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12738
12739
12740 if test -n "$RANLIB_FOR_TARGET"; then
12741 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12742 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12743 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12744 fi
12745
12746 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12747 for ncn_progname in ranlib; do
12748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12749 set dummy ${ncn_progname}; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 if test -n "$RANLIB_FOR_TARGET"; then
12756 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12757 else
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12760 do
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12768 fi
12769 done
12770 done
12771 IFS=$as_save_IFS
12772
12773 fi
12774 fi
12775 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12776 if test -n "$RANLIB_FOR_TARGET"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12778 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12782 fi
12783
12784
12785 done
12786 fi
12787
12788 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12789 for ncn_progname in ranlib; do
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12791 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12792 if test -x $with_build_time_tools/${ncn_progname}; then
12793 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12795 $as_echo "yes" >&6; }
12796 break
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801 done
12802 fi
12803
12804 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12805 for ncn_progname in ranlib; do
12806 if test -n "$ncn_target_tool_prefix"; then
12807 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12808 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$RANLIB_FOR_TARGET"; then
12815 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832 fi
12833 fi
12834 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12835 if test -n "$RANLIB_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842
12843
12844 fi
12845 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12847 set dummy ${ncn_progname}; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849 $as_echo_n "checking for $ac_word... " >&6; }
12850 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 if test -n "$RANLIB_FOR_TARGET"; then
12854 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12855 else
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859 IFS=$as_save_IFS
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 break 2
12866 fi
12867 done
12868 done
12869 IFS=$as_save_IFS
12870
12871 fi
12872 fi
12873 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12874 if test -n "$RANLIB_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12876 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12880 fi
12881
12882
12883 fi
12884 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12885 done
12886 fi
12887
12888 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12889 set dummy ranlib
12890 if test $build = $target ; then
12891 RANLIB_FOR_TARGET="$2"
12892 else
12893 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12894 fi
12895 else
12896 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12897 fi
12898
12899 else
12900 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12901 fi
12902
12903
12904
12905
12906 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12907 if test -n "$with_build_time_tools"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12909 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12910 if test -x $with_build_time_tools/readelf; then
12911 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12912 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12914 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919 elif test $build != $host && test $have_gcc_for_target = yes; then
12920 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12921 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12922 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12923 fi
12924 fi
12925 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12926 # Extract the first word of "readelf", so it can be a program name with args.
12927 set dummy readelf; ac_word=$2
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929 $as_echo_n "checking for $ac_word... " >&6; }
12930 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 case $READELF_FOR_TARGET in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12936 ;;
12937 *)
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939 for as_dir in $gcc_cv_tool_dirs
12940 do
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12945 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949 done
12950 done
12951 IFS=$as_save_IFS
12952
12953 ;;
12954 esac
12955 fi
12956 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12957 if test -n "$READELF_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12959 $as_echo "$READELF_FOR_TARGET" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12963 fi
12964
12965
12966 fi
12967 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12968
12969
12970 if test -n "$READELF_FOR_TARGET"; then
12971 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12972 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12973 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12974 fi
12975
12976 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12977 for ncn_progname in readelf; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 if test -n "$READELF_FOR_TARGET"; then
12986 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999 done
13000 done
13001 IFS=$as_save_IFS
13002
13003 fi
13004 fi
13005 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13006 if test -n "$READELF_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13008 $as_echo "$READELF_FOR_TARGET" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013
13014
13015 done
13016 fi
13017
13018 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in readelf; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025 $as_echo "yes" >&6; }
13026 break
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031 done
13032 fi
13033
13034 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13035 for ncn_progname in readelf; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$READELF_FOR_TARGET"; then
13045 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13065 if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067 $as_echo "$READELF_FOR_TARGET" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -n "$READELF_FOR_TARGET"; then
13084 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 fi
13102 fi
13103 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13104 if test -n "$READELF_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13106 $as_echo "$READELF_FOR_TARGET" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111
13112
13113 fi
13114 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13115 done
13116 fi
13117
13118 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13119 set dummy readelf
13120 if test $build = $target ; then
13121 READELF_FOR_TARGET="$2"
13122 else
13123 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13124 fi
13125 else
13126 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13127 fi
13128
13129 else
13130 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13131 fi
13132
13133
13134
13135
13136 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13137 if test -n "$with_build_time_tools"; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13139 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13140 if test -x $with_build_time_tools/strip; then
13141 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13142 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13144 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149 elif test $build != $host && test $have_gcc_for_target = yes; then
13150 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13151 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13152 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13153 fi
13154 fi
13155 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13156 # Extract the first word of "strip", so it can be a program name with args.
13157 set dummy strip; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 case $STRIP_FOR_TARGET in
13164 [\\/]* | ?:[\\/]*)
13165 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13166 ;;
13167 *)
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $gcc_cv_tool_dirs
13170 do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179 done
13180 done
13181 IFS=$as_save_IFS
13182
13183 ;;
13184 esac
13185 fi
13186 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13187 if test -n "$STRIP_FOR_TARGET"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13189 $as_echo "$STRIP_FOR_TARGET" >&6; }
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13193 fi
13194
13195
13196 fi
13197 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13198
13199
13200 if test -n "$STRIP_FOR_TARGET"; then
13201 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13202 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13203 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13204 fi
13205
13206 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13207 for ncn_progname in strip; do
13208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13209 set dummy ${ncn_progname}; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test -n "$STRIP_FOR_TARGET"; then
13216 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13220 do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13225 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13228 fi
13229 done
13230 done
13231 IFS=$as_save_IFS
13232
13233 fi
13234 fi
13235 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13236 if test -n "$STRIP_FOR_TARGET"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13238 $as_echo "$STRIP_FOR_TARGET" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 fi
13243
13244
13245 done
13246 fi
13247
13248 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13249 for ncn_progname in strip; do
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13251 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13252 if test -x $with_build_time_tools/${ncn_progname}; then
13253 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13255 $as_echo "yes" >&6; }
13256 break
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13260 fi
13261 done
13262 fi
13263
13264 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13265 for ncn_progname in strip; do
13266 if test -n "$ncn_target_tool_prefix"; then
13267 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 if test -n "$STRIP_FOR_TARGET"; then
13275 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13276 else
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13287 fi
13288 done
13289 done
13290 IFS=$as_save_IFS
13291
13292 fi
13293 fi
13294 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13295 if test -n "$STRIP_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297 $as_echo "$STRIP_FOR_TARGET" >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13301 fi
13302
13303
13304 fi
13305 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13307 set dummy ${ncn_progname}; ac_word=$2
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309 $as_echo_n "checking for $ac_word... " >&6; }
13310 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 if test -n "$STRIP_FOR_TARGET"; then
13314 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13315 else
13316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317 for as_dir in $PATH
13318 do
13319 IFS=$as_save_IFS
13320 test -z "$as_dir" && as_dir=.
13321 for ac_exec_ext in '' $ac_executable_extensions; do
13322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13323 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 break 2
13326 fi
13327 done
13328 done
13329 IFS=$as_save_IFS
13330
13331 fi
13332 fi
13333 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13334 if test -n "$STRIP_FOR_TARGET"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13336 $as_echo "$STRIP_FOR_TARGET" >&6; }
13337 else
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339 $as_echo "no" >&6; }
13340 fi
13341
13342
13343 fi
13344 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13345 done
13346 fi
13347
13348 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13349 set dummy strip
13350 if test $build = $target ; then
13351 STRIP_FOR_TARGET="$2"
13352 else
13353 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13354 fi
13355 else
13356 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13357 fi
13358
13359 else
13360 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13361 fi
13362
13363
13364
13365
13366 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13367 if test -n "$with_build_time_tools"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13369 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13370 if test -x $with_build_time_tools/windres; then
13371 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13372 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13374 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379 elif test $build != $host && test $have_gcc_for_target = yes; then
13380 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13381 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13382 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13383 fi
13384 fi
13385 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13386 # Extract the first word of "windres", so it can be a program name with args.
13387 set dummy windres; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 case $WINDRES_FOR_TARGET in
13394 [\\/]* | ?:[\\/]*)
13395 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13396 ;;
13397 *)
13398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399 for as_dir in $gcc_cv_tool_dirs
13400 do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13405 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 break 2
13408 fi
13409 done
13410 done
13411 IFS=$as_save_IFS
13412
13413 ;;
13414 esac
13415 fi
13416 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13417 if test -n "$WINDRES_FOR_TARGET"; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13419 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13423 fi
13424
13425
13426 fi
13427 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13428
13429
13430 if test -n "$WINDRES_FOR_TARGET"; then
13431 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13432 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13433 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13434 fi
13435
13436 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13437 for ncn_progname in windres; do
13438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13439 set dummy ${ncn_progname}; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441 $as_echo_n "checking for $ac_word... " >&6; }
13442 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 if test -n "$WINDRES_FOR_TARGET"; then
13446 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13447 else
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461 IFS=$as_save_IFS
13462
13463 fi
13464 fi
13465 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13466 if test -n "$WINDRES_FOR_TARGET"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13468 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13472 fi
13473
13474
13475 done
13476 fi
13477
13478 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13479 for ncn_progname in windres; do
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13481 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13482 if test -x $with_build_time_tools/${ncn_progname}; then
13483 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485 $as_echo "yes" >&6; }
13486 break
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491 done
13492 fi
13493
13494 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13495 for ncn_progname in windres; do
13496 if test -n "$ncn_target_tool_prefix"; then
13497 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13498 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 if test -n "$WINDRES_FOR_TARGET"; then
13505 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13514 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518 done
13519 done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13525 if test -n "$WINDRES_FOR_TARGET"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 fi
13532
13533
13534 fi
13535 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13537 set dummy ${ncn_progname}; ac_word=$2
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539 $as_echo_n "checking for $ac_word... " >&6; }
13540 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 if test -n "$WINDRES_FOR_TARGET"; then
13544 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13545 else
13546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13547 for as_dir in $PATH
13548 do
13549 IFS=$as_save_IFS
13550 test -z "$as_dir" && as_dir=.
13551 for ac_exec_ext in '' $ac_executable_extensions; do
13552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13553 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13555 break 2
13556 fi
13557 done
13558 done
13559 IFS=$as_save_IFS
13560
13561 fi
13562 fi
13563 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13564 if test -n "$WINDRES_FOR_TARGET"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13566 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569 $as_echo "no" >&6; }
13570 fi
13571
13572
13573 fi
13574 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13575 done
13576 fi
13577
13578 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13579 set dummy windres
13580 if test $build = $target ; then
13581 WINDRES_FOR_TARGET="$2"
13582 else
13583 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13584 fi
13585 else
13586 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13587 fi
13588
13589 else
13590 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13591 fi
13592
13593
13594
13595
13596 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13597 if test -n "$with_build_time_tools"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13599 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13600 if test -x $with_build_time_tools/windmc; then
13601 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13602 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13604 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609 elif test $build != $host && test $have_gcc_for_target = yes; then
13610 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13611 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13612 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13613 fi
13614 fi
13615 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13616 # Extract the first word of "windmc", so it can be a program name with args.
13617 set dummy windmc; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 case $WINDMC_FOR_TARGET in
13624 [\\/]* | ?:[\\/]*)
13625 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13626 ;;
13627 *)
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $gcc_cv_tool_dirs
13630 do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639 done
13640 done
13641 IFS=$as_save_IFS
13642
13643 ;;
13644 esac
13645 fi
13646 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13647 if test -n "$WINDMC_FOR_TARGET"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13649 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13650 else
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653 fi
13654
13655
13656 fi
13657 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13658
13659
13660 if test -n "$WINDMC_FOR_TARGET"; then
13661 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13662 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13663 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13664 fi
13665
13666 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13667 for ncn_progname in windmc; do
13668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13669 set dummy ${ncn_progname}; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 if test -n "$WINDMC_FOR_TARGET"; then
13676 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13677 else
13678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13679 for as_dir in $PATH
13680 do
13681 IFS=$as_save_IFS
13682 test -z "$as_dir" && as_dir=.
13683 for ac_exec_ext in '' $ac_executable_extensions; do
13684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13685 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13687 break 2
13688 fi
13689 done
13690 done
13691 IFS=$as_save_IFS
13692
13693 fi
13694 fi
13695 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13696 if test -n "$WINDMC_FOR_TARGET"; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13698 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13699 else
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703
13704
13705 done
13706 fi
13707
13708 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13709 for ncn_progname in windmc; do
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13711 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13712 if test -x $with_build_time_tools/${ncn_progname}; then
13713 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715 $as_echo "yes" >&6; }
13716 break
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719 $as_echo "no" >&6; }
13720 fi
13721 done
13722 fi
13723
13724 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13725 for ncn_progname in windmc; do
13726 if test -n "$ncn_target_tool_prefix"; then
13727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13728 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 $as_echo_n "checking for $ac_word... " >&6; }
13731 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 if test -n "$WINDMC_FOR_TARGET"; then
13735 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13736 else
13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13739 do
13740 IFS=$as_save_IFS
13741 test -z "$as_dir" && as_dir=.
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13746 break 2
13747 fi
13748 done
13749 done
13750 IFS=$as_save_IFS
13751
13752 fi
13753 fi
13754 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13755 if test -n "$WINDMC_FOR_TARGET"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13758 else
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13761 fi
13762
13763
13764 fi
13765 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13767 set dummy ${ncn_progname}; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 if test -n "$WINDMC_FOR_TARGET"; then
13774 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13775 else
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $PATH
13778 do
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13786 fi
13787 done
13788 done
13789 IFS=$as_save_IFS
13790
13791 fi
13792 fi
13793 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13794 if test -n "$WINDMC_FOR_TARGET"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13796 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13800 fi
13801
13802
13803 fi
13804 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13805 done
13806 fi
13807
13808 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13809 set dummy windmc
13810 if test $build = $target ; then
13811 WINDMC_FOR_TARGET="$2"
13812 else
13813 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13814 fi
13815 else
13816 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13817 fi
13818
13819 else
13820 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13821 fi
13822
13823
13824 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13825
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13827 $as_echo_n "checking where to find the target ar... " >&6; }
13828 if test "x${build}" != "x${host}" ; then
13829 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
13831 ac_dir=`dirname $AR_FOR_TARGET`
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833 $as_echo "pre-installed in $ac_dir" >&6; }
13834 else
13835 # Canadian cross, just use what we found
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13838 fi
13839 else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" binutils "*) ;;
13843 *) ok=no ;;
13844 esac
13845
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850 $as_echo "just compiled" >&6; }
13851 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $AR_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 AR_FOR_TARGET='$(AR)'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860 $as_echo "host tool" >&6; }
13861 else
13862 # We need a cross tool
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13865 fi
13866 fi
13867
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13869 $as_echo_n "checking where to find the target as... " >&6; }
13870 if test "x${build}" != "x${host}" ; then
13871 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
13873 ac_dir=`dirname $AS_FOR_TARGET`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875 $as_echo "pre-installed in $ac_dir" >&6; }
13876 else
13877 # Canadian cross, just use what we found
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13880 fi
13881 else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" gas "*) ;;
13885 *) ok=no ;;
13886 esac
13887
13888 if test $ok = yes; then
13889 # An in-tree tool is available and we can use it
13890 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13892 $as_echo "just compiled" >&6; }
13893 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $AS_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898 elif test "x$target" = "x$host"; then
13899 # We can use an host tool
13900 AS_FOR_TARGET='$(AS)'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13902 $as_echo "host tool" >&6; }
13903 else
13904 # We need a cross tool
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13907 fi
13908 fi
13909
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13911 $as_echo_n "checking where to find the target cc... " >&6; }
13912 if test "x${build}" != "x${host}" ; then
13913 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13914 # We already found the complete path
13915 ac_dir=`dirname $CC_FOR_TARGET`
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13917 $as_echo "pre-installed in $ac_dir" >&6; }
13918 else
13919 # Canadian cross, just use what we found
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13922 fi
13923 else
13924 ok=yes
13925 case " ${configdirs} " in
13926 *" gcc "*) ;;
13927 *) ok=no ;;
13928 esac
13929
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934 $as_echo "just compiled" >&6; }
13935 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $CC_FOR_TARGET`
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939 $as_echo "pre-installed in $ac_dir" >&6; }
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 CC_FOR_TARGET='$(CC)'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944 $as_echo "host tool" >&6; }
13945 else
13946 # We need a cross tool
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13949 fi
13950 fi
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13953 $as_echo_n "checking where to find the target c++... " >&6; }
13954 if test "x${build}" != "x${host}" ; then
13955 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
13957 ac_dir=`dirname $CXX_FOR_TARGET`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959 $as_echo "pre-installed in $ac_dir" >&6; }
13960 else
13961 # Canadian cross, just use what we found
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13964 fi
13965 else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" gcc "*) ;;
13969 *) ok=no ;;
13970 esac
13971 case ,${enable_languages}, in
13972 *,c++,*) ;;
13973 *) ok=no ;;
13974 esac
13975 if test $ok = yes; then
13976 # An in-tree tool is available and we can use it
13977 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'
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13979 $as_echo "just compiled" >&6; }
13980 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13981 # We already found the complete path
13982 ac_dir=`dirname $CXX_FOR_TARGET`
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13984 $as_echo "pre-installed in $ac_dir" >&6; }
13985 elif test "x$target" = "x$host"; then
13986 # We can use an host tool
13987 CXX_FOR_TARGET='$(CXX)'
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13989 $as_echo "host tool" >&6; }
13990 else
13991 # We need a cross tool
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13993 $as_echo "pre-installed" >&6; }
13994 fi
13995 fi
13996
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13998 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13999 if test "x${build}" != "x${host}" ; then
14000 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14001 # We already found the complete path
14002 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14004 $as_echo "pre-installed in $ac_dir" >&6; }
14005 else
14006 # Canadian cross, just use what we found
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14008 $as_echo "pre-installed" >&6; }
14009 fi
14010 else
14011 ok=yes
14012 case " ${configdirs} " in
14013 *" gcc "*) ;;
14014 *) ok=no ;;
14015 esac
14016 case ,${enable_languages}, in
14017 *,c++,*) ;;
14018 *) ok=no ;;
14019 esac
14020 if test $ok = yes; then
14021 # An in-tree tool is available and we can use it
14022 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'
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14024 $as_echo "just compiled" >&6; }
14025 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
14027 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029 $as_echo "pre-installed in $ac_dir" >&6; }
14030 elif test "x$target" = "x$host"; then
14031 # We can use an host tool
14032 RAW_CXX_FOR_TARGET='$(CXX)'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034 $as_echo "host tool" >&6; }
14035 else
14036 # We need a cross tool
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038 $as_echo "pre-installed" >&6; }
14039 fi
14040 fi
14041
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14043 $as_echo_n "checking where to find the target dlltool... " >&6; }
14044 if test "x${build}" != "x${host}" ; then
14045 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
14047 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049 $as_echo "pre-installed in $ac_dir" >&6; }
14050 else
14051 # Canadian cross, just use what we found
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053 $as_echo "pre-installed" >&6; }
14054 fi
14055 else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
14061
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066 $as_echo "just compiled" >&6; }
14067 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
14069 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071 $as_echo "pre-installed in $ac_dir" >&6; }
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076 $as_echo "host tool" >&6; }
14077 else
14078 # We need a cross tool
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080 $as_echo "pre-installed" >&6; }
14081 fi
14082 fi
14083
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14085 $as_echo_n "checking where to find the target gcc... " >&6; }
14086 if test "x${build}" != "x${host}" ; then
14087 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $GCC_FOR_TARGET`
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091 $as_echo "pre-installed in $ac_dir" >&6; }
14092 else
14093 # Canadian cross, just use what we found
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095 $as_echo "pre-installed" >&6; }
14096 fi
14097 else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" gcc "*) ;;
14101 *) ok=no ;;
14102 esac
14103
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108 $as_echo "just compiled" >&6; }
14109 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
14111 ac_dir=`dirname $GCC_FOR_TARGET`
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113 $as_echo "pre-installed in $ac_dir" >&6; }
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 GCC_FOR_TARGET='$()'
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118 $as_echo "host tool" >&6; }
14119 else
14120 # We need a cross tool
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122 $as_echo "pre-installed" >&6; }
14123 fi
14124 fi
14125
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14127 $as_echo_n "checking where to find the target gfortran... " >&6; }
14128 if test "x${build}" != "x${host}" ; then
14129 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
14131 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133 $as_echo "pre-installed in $ac_dir" >&6; }
14134 else
14135 # Canadian cross, just use what we found
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137 $as_echo "pre-installed" >&6; }
14138 fi
14139 else
14140 ok=yes
14141 case " ${configdirs} " in
14142 *" gcc "*) ;;
14143 *) ok=no ;;
14144 esac
14145 case ,${enable_languages}, in
14146 *,fortran,*) ;;
14147 *) ok=no ;;
14148 esac
14149 if test $ok = yes; then
14150 # An in-tree tool is available and we can use it
14151 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14153 $as_echo "just compiled" >&6; }
14154 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14155 # We already found the complete path
14156 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14158 $as_echo "pre-installed in $ac_dir" >&6; }
14159 elif test "x$target" = "x$host"; then
14160 # We can use an host tool
14161 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14163 $as_echo "host tool" >&6; }
14164 else
14165 # We need a cross tool
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167 $as_echo "pre-installed" >&6; }
14168 fi
14169 fi
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14172 $as_echo_n "checking where to find the target gccgo... " >&6; }
14173 if test "x${build}" != "x${host}" ; then
14174 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14175 # We already found the complete path
14176 ac_dir=`dirname $GOC_FOR_TARGET`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14178 $as_echo "pre-installed in $ac_dir" >&6; }
14179 else
14180 # Canadian cross, just use what we found
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14183 fi
14184 else
14185 ok=yes
14186 case " ${configdirs} " in
14187 *" gcc "*) ;;
14188 *) ok=no ;;
14189 esac
14190 case ,${enable_languages}, in
14191 *,go,*) ;;
14192 *) ok=no ;;
14193 esac
14194 if test $ok = yes; then
14195 # An in-tree tool is available and we can use it
14196 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14198 $as_echo "just compiled" >&6; }
14199 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $GOC_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204 elif test "x$target" = "x$host"; then
14205 # We can use an host tool
14206 GOC_FOR_TARGET='$(GOC)'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14208 $as_echo "host tool" >&6; }
14209 else
14210 # We need a cross tool
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212 $as_echo "pre-installed" >&6; }
14213 fi
14214 fi
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14217 $as_echo_n "checking where to find the target ld... " >&6; }
14218 if test "x${build}" != "x${host}" ; then
14219 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $LD_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223 $as_echo "pre-installed in $ac_dir" >&6; }
14224 else
14225 # Canadian cross, just use what we found
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227 $as_echo "pre-installed" >&6; }
14228 fi
14229 else
14230 ok=yes
14231 case " ${configdirs} " in
14232 *" ld "*) ;;
14233 *) ok=no ;;
14234 esac
14235
14236 if test $ok = yes; then
14237 # An in-tree tool is available and we can use it
14238 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14240 $as_echo "just compiled" >&6; }
14241 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14242 # We already found the complete path
14243 ac_dir=`dirname $LD_FOR_TARGET`
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14245 $as_echo "pre-installed in $ac_dir" >&6; }
14246 elif test "x$target" = "x$host"; then
14247 # We can use an host tool
14248 LD_FOR_TARGET='$(LD)'
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14250 $as_echo "host tool" >&6; }
14251 else
14252 # We need a cross tool
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14254 $as_echo "pre-installed" >&6; }
14255 fi
14256 fi
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14259 $as_echo_n "checking where to find the target lipo... " >&6; }
14260 if test "x${build}" != "x${host}" ; then
14261 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $LIPO_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 else
14267 # Canadian cross, just use what we found
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14269 $as_echo "pre-installed" >&6; }
14270 fi
14271 else
14272 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $LIPO_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 elif test "x$target" = "x$host"; then
14278 # We can use an host tool
14279 LIPO_FOR_TARGET='$(LIPO)'
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14281 $as_echo "host tool" >&6; }
14282 else
14283 # We need a cross tool
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14285 $as_echo "pre-installed" >&6; }
14286 fi
14287 fi
14288
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14290 $as_echo_n "checking where to find the target nm... " >&6; }
14291 if test "x${build}" != "x${host}" ; then
14292 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $NM_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296 $as_echo "pre-installed in $ac_dir" >&6; }
14297 else
14298 # Canadian cross, just use what we found
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14300 $as_echo "pre-installed" >&6; }
14301 fi
14302 else
14303 ok=yes
14304 case " ${configdirs} " in
14305 *" binutils "*) ;;
14306 *) ok=no ;;
14307 esac
14308
14309 if test $ok = yes; then
14310 # An in-tree tool is available and we can use it
14311 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14313 $as_echo "just compiled" >&6; }
14314 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $NM_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 elif test "x$target" = "x$host"; then
14320 # We can use an host tool
14321 NM_FOR_TARGET='$(NM)'
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14323 $as_echo "host tool" >&6; }
14324 else
14325 # We need a cross tool
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14327 $as_echo "pre-installed" >&6; }
14328 fi
14329 fi
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14332 $as_echo_n "checking where to find the target objcopy... " >&6; }
14333 if test "x${build}" != "x${host}" ; then
14334 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
14336 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338 $as_echo "pre-installed in $ac_dir" >&6; }
14339 else
14340 # Canadian cross, just use what we found
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14342 $as_echo "pre-installed" >&6; }
14343 fi
14344 else
14345 ok=yes
14346 case " ${configdirs} " in
14347 *" binutils "*) ;;
14348 *) ok=no ;;
14349 esac
14350
14351 if test $ok = yes; then
14352 # An in-tree tool is available and we can use it
14353 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14355 $as_echo "just compiled" >&6; }
14356 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360 $as_echo "pre-installed in $ac_dir" >&6; }
14361 elif test "x$target" = "x$host"; then
14362 # We can use an host tool
14363 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14365 $as_echo "host tool" >&6; }
14366 else
14367 # We need a cross tool
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14369 $as_echo "pre-installed" >&6; }
14370 fi
14371 fi
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14374 $as_echo_n "checking where to find the target objdump... " >&6; }
14375 if test "x${build}" != "x${host}" ; then
14376 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14377 # We already found the complete path
14378 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14380 $as_echo "pre-installed in $ac_dir" >&6; }
14381 else
14382 # Canadian cross, just use what we found
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14384 $as_echo "pre-installed" >&6; }
14385 fi
14386 else
14387 ok=yes
14388 case " ${configdirs} " in
14389 *" binutils "*) ;;
14390 *) ok=no ;;
14391 esac
14392
14393 if test $ok = yes; then
14394 # An in-tree tool is available and we can use it
14395 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14397 $as_echo "just compiled" >&6; }
14398 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402 $as_echo "pre-installed in $ac_dir" >&6; }
14403 elif test "x$target" = "x$host"; then
14404 # We can use an host tool
14405 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14407 $as_echo "host tool" >&6; }
14408 else
14409 # We need a cross tool
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14411 $as_echo "pre-installed" >&6; }
14412 fi
14413 fi
14414
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14416 $as_echo_n "checking where to find the target ranlib... " >&6; }
14417 if test "x${build}" != "x${host}" ; then
14418 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
14420 ac_dir=`dirname $RANLIB_FOR_TARGET`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422 $as_echo "pre-installed in $ac_dir" >&6; }
14423 else
14424 # Canadian cross, just use what we found
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14426 $as_echo "pre-installed" >&6; }
14427 fi
14428 else
14429 ok=yes
14430 case " ${configdirs} " in
14431 *" binutils "*) ;;
14432 *) ok=no ;;
14433 esac
14434
14435 if test $ok = yes; then
14436 # An in-tree tool is available and we can use it
14437 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14439 $as_echo "just compiled" >&6; }
14440 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $RANLIB_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 elif test "x$target" = "x$host"; then
14446 # We can use an host tool
14447 RANLIB_FOR_TARGET='$(RANLIB)'
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14449 $as_echo "host tool" >&6; }
14450 else
14451 # We need a cross tool
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453 $as_echo "pre-installed" >&6; }
14454 fi
14455 fi
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14458 $as_echo_n "checking where to find the target readelf... " >&6; }
14459 if test "x${build}" != "x${host}" ; then
14460 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14461 # We already found the complete path
14462 ac_dir=`dirname $READELF_FOR_TARGET`
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464 $as_echo "pre-installed in $ac_dir" >&6; }
14465 else
14466 # Canadian cross, just use what we found
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14468 $as_echo "pre-installed" >&6; }
14469 fi
14470 else
14471 ok=yes
14472 case " ${configdirs} " in
14473 *" binutils "*) ;;
14474 *) ok=no ;;
14475 esac
14476
14477 if test $ok = yes; then
14478 # An in-tree tool is available and we can use it
14479 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14481 $as_echo "just compiled" >&6; }
14482 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
14484 ac_dir=`dirname $READELF_FOR_TARGET`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486 $as_echo "pre-installed in $ac_dir" >&6; }
14487 elif test "x$target" = "x$host"; then
14488 # We can use an host tool
14489 READELF_FOR_TARGET='$(READELF)'
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14491 $as_echo "host tool" >&6; }
14492 else
14493 # We need a cross tool
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495 $as_echo "pre-installed" >&6; }
14496 fi
14497 fi
14498
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14500 $as_echo_n "checking where to find the target strip... " >&6; }
14501 if test "x${build}" != "x${host}" ; then
14502 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14503 # We already found the complete path
14504 ac_dir=`dirname $STRIP_FOR_TARGET`
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506 $as_echo "pre-installed in $ac_dir" >&6; }
14507 else
14508 # Canadian cross, just use what we found
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14510 $as_echo "pre-installed" >&6; }
14511 fi
14512 else
14513 ok=yes
14514 case " ${configdirs} " in
14515 *" binutils "*) ;;
14516 *) ok=no ;;
14517 esac
14518
14519 if test $ok = yes; then
14520 # An in-tree tool is available and we can use it
14521 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14523 $as_echo "just compiled" >&6; }
14524 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
14526 ac_dir=`dirname $STRIP_FOR_TARGET`
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528 $as_echo "pre-installed in $ac_dir" >&6; }
14529 elif test "x$target" = "x$host"; then
14530 # We can use an host tool
14531 STRIP_FOR_TARGET='$(STRIP)'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14533 $as_echo "host tool" >&6; }
14534 else
14535 # We need a cross tool
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537 $as_echo "pre-installed" >&6; }
14538 fi
14539 fi
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14542 $as_echo_n "checking where to find the target windres... " >&6; }
14543 if test "x${build}" != "x${host}" ; then
14544 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14545 # We already found the complete path
14546 ac_dir=`dirname $WINDRES_FOR_TARGET`
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548 $as_echo "pre-installed in $ac_dir" >&6; }
14549 else
14550 # Canadian cross, just use what we found
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14552 $as_echo "pre-installed" >&6; }
14553 fi
14554 else
14555 ok=yes
14556 case " ${configdirs} " in
14557 *" binutils "*) ;;
14558 *) ok=no ;;
14559 esac
14560
14561 if test $ok = yes; then
14562 # An in-tree tool is available and we can use it
14563 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14565 $as_echo "just compiled" >&6; }
14566 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14567 # We already found the complete path
14568 ac_dir=`dirname $WINDRES_FOR_TARGET`
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14570 $as_echo "pre-installed in $ac_dir" >&6; }
14571 elif test "x$target" = "x$host"; then
14572 # We can use an host tool
14573 WINDRES_FOR_TARGET='$(WINDRES)'
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14575 $as_echo "host tool" >&6; }
14576 else
14577 # We need a cross tool
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579 $as_echo "pre-installed" >&6; }
14580 fi
14581 fi
14582
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14584 $as_echo_n "checking where to find the target windmc... " >&6; }
14585 if test "x${build}" != "x${host}" ; then
14586 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14587 # We already found the complete path
14588 ac_dir=`dirname $WINDMC_FOR_TARGET`
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590 $as_echo "pre-installed in $ac_dir" >&6; }
14591 else
14592 # Canadian cross, just use what we found
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594 $as_echo "pre-installed" >&6; }
14595 fi
14596 else
14597 ok=yes
14598 case " ${configdirs} " in
14599 *" binutils "*) ;;
14600 *) ok=no ;;
14601 esac
14602
14603 if test $ok = yes; then
14604 # An in-tree tool is available and we can use it
14605 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14607 $as_echo "just compiled" >&6; }
14608 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14609 # We already found the complete path
14610 ac_dir=`dirname $WINDMC_FOR_TARGET`
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14612 $as_echo "pre-installed in $ac_dir" >&6; }
14613 elif test "x$target" = "x$host"; then
14614 # We can use an host tool
14615 WINDMC_FOR_TARGET='$(WINDMC)'
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14617 $as_echo "host tool" >&6; }
14618 else
14619 # We need a cross tool
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621 $as_echo "pre-installed" >&6; }
14622 fi
14623 fi
14624
14625
14626
14627
14628
14629 # Certain tools may need extra flags.
14630 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14631 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14632 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14633
14634 # When building target libraries, except in a Canadian cross, we use
14635 # the same toolchain as the compiler we just built.
14636 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14637 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14638 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14639 if test $host = $build; then
14640 case " $configdirs " in
14641 *" gcc "*)
14642 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14643 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14644 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14645 ;;
14646 esac
14647 fi
14648
14649
14650
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14654 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14655 # Check whether --enable-maintainer-mode was given.
14656 if test "${enable_maintainer_mode+set}" = set; then :
14657 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14658 else
14659 USE_MAINTAINER_MODE=no
14660 fi
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14663 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14664
14665
14666 if test "$USE_MAINTAINER_MODE" = yes; then
14667 MAINTAINER_MODE_TRUE=
14668 MAINTAINER_MODE_FALSE='#'
14669 else
14670 MAINTAINER_MODE_TRUE='#'
14671 MAINTAINER_MODE_FALSE=
14672 fi
14673 MAINT=$MAINTAINER_MODE_TRUE
14674
14675 # ---------------------
14676 # GCC bootstrap support
14677 # ---------------------
14678
14679 # Stage specific cflags for build.
14680 stage1_cflags="-g"
14681 case $build in
14682 vax-*-*)
14683 case ${GCC} in
14684 yes) stage1_cflags="-g -Wa,-J" ;;
14685 *) stage1_cflags="-g -J" ;;
14686 esac ;;
14687 esac
14688
14689
14690
14691 # Enable --enable-checking in stage1 of the compiler.
14692 # Check whether --enable-stage1-checking was given.
14693 if test "${enable_stage1_checking+set}" = set; then :
14694 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14695 else
14696 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14697 # For --disable-checking or implicit --enable-checking=release, avoid
14698 # setting --enable-checking=gc in the default stage1 checking for LTO
14699 # bootstraps. See PR62077.
14700 case $BUILD_CONFIG in
14701 *lto*)
14702 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14703 *)
14704 stage1_checking=--enable-checking=yes,types;;
14705 esac
14706 if test "x$enable_checking" = x && \
14707 test -d ${srcdir}/gcc && \
14708 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14709 stage1_checking=--enable-checking=yes,types,extra
14710 fi
14711 else
14712 stage1_checking=--enable-checking=$enable_checking,types
14713 fi
14714 fi
14715
14716
14717
14718 # Enable -Werror in bootstrap stage2 and later.
14719 # Check whether --enable-werror was given.
14720 if test "${enable_werror+set}" = set; then :
14721 enableval=$enable_werror;
14722 case ${enable_werror} in
14723 yes) stage2_werror_flag="--enable-werror-always" ;;
14724 *) stage2_werror_flag="" ;;
14725 esac
14726
14727 else
14728
14729 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14730 case $BUILD_CONFIG in
14731 bootstrap-debug)
14732 stage2_werror_flag="--enable-werror-always" ;;
14733 "")
14734 stage2_werror_flag="--enable-werror-always" ;;
14735 esac
14736 fi
14737
14738 fi
14739
14740
14741
14742
14743 # Specify what files to not compare during bootstrap.
14744
14745 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14746 case "$target" in
14747 hppa*64*-*-hpux*) ;;
14748 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14749 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14750 esac
14751
14752
14753 ac_config_files="$ac_config_files Makefile"
14754
14755 cat >confcache <<\_ACEOF
14756 # This file is a shell script that caches the results of configure
14757 # tests run on this system so they can be shared between configure
14758 # scripts and configure runs, see configure's option --config-cache.
14759 # It is not useful on other systems. If it contains results you don't
14760 # want to keep, you may remove or edit it.
14761 #
14762 # config.status only pays attention to the cache file if you give it
14763 # the --recheck option to rerun configure.
14764 #
14765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14767 # following values.
14768
14769 _ACEOF
14770
14771 # The following way of writing the cache mishandles newlines in values,
14772 # but we know of no workaround that is simple, portable, and efficient.
14773 # So, we kill variables containing newlines.
14774 # Ultrix sh set writes to stderr and can't be redirected directly,
14775 # and sets the high bit in the cache file unless we assign to the vars.
14776 (
14777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14778 eval ac_val=\$$ac_var
14779 case $ac_val in #(
14780 *${as_nl}*)
14781 case $ac_var in #(
14782 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14784 esac
14785 case $ac_var in #(
14786 _ | IFS | as_nl) ;; #(
14787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14788 *) { eval $ac_var=; unset $ac_var;} ;;
14789 esac ;;
14790 esac
14791 done
14792
14793 (set) 2>&1 |
14794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14795 *${as_nl}ac_space=\ *)
14796 # `set' does not quote correctly, so add quotes: double-quote
14797 # substitution turns \\\\ into \\, and sed turns \\ into \.
14798 sed -n \
14799 "s/'/'\\\\''/g;
14800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14801 ;; #(
14802 *)
14803 # `set' quotes correctly as required by POSIX, so do not add quotes.
14804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14805 ;;
14806 esac |
14807 sort
14808 ) |
14809 sed '
14810 /^ac_cv_env_/b end
14811 t clear
14812 :clear
14813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14814 t end
14815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14816 :end' >>confcache
14817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14818 if test -w "$cache_file"; then
14819 if test "x$cache_file" != "x/dev/null"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14821 $as_echo "$as_me: updating cache $cache_file" >&6;}
14822 if test ! -f "$cache_file" || test -h "$cache_file"; then
14823 cat confcache >"$cache_file"
14824 else
14825 case $cache_file in #(
14826 */* | ?:*)
14827 mv -f confcache "$cache_file"$$ &&
14828 mv -f "$cache_file"$$ "$cache_file" ;; #(
14829 *)
14830 mv -f confcache "$cache_file" ;;
14831 esac
14832 fi
14833 fi
14834 else
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14836 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14837 fi
14838 fi
14839 rm -f confcache
14840
14841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14842 # Let make expand exec_prefix.
14843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14844
14845 # Transform confdefs.h into DEFS.
14846 # Protect against shell expansion while executing Makefile rules.
14847 # Protect against Makefile macro expansion.
14848 #
14849 # If the first sed substitution is executed (which looks for macros that
14850 # take arguments), then branch to the quote section. Otherwise,
14851 # look for a macro that doesn't take arguments.
14852 ac_script='
14853 :mline
14854 /\\$/{
14855 N
14856 s,\\\n,,
14857 b mline
14858 }
14859 t clear
14860 :clear
14861 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14862 t quote
14863 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14864 t quote
14865 b any
14866 :quote
14867 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14868 s/\[/\\&/g
14869 s/\]/\\&/g
14870 s/\$/$$/g
14871 H
14872 :any
14873 ${
14874 g
14875 s/^\n//
14876 s/\n/ /g
14877 p
14878 }
14879 '
14880 DEFS=`sed -n "$ac_script" confdefs.h`
14881
14882
14883 ac_libobjs=
14884 ac_ltlibobjs=
14885 U=
14886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14887 # 1. Remove the extension, and $U if already installed.
14888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14889 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14891 # will be set to the directory where LIBOBJS objects are built.
14892 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14893 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14894 done
14895 LIBOBJS=$ac_libobjs
14896
14897 LTLIBOBJS=$ac_ltlibobjs
14898
14899
14900
14901 : "${CONFIG_STATUS=./config.status}"
14902 ac_write_fail=0
14903 ac_clean_files_save=$ac_clean_files
14904 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14906 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14907 as_write_fail=0
14908 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14909 #! $SHELL
14910 # Generated by $as_me.
14911 # Run this file to recreate the current configuration.
14912 # Compiler output produced by configure, useful for debugging
14913 # configure, is in config.log if it exists.
14914
14915 debug=false
14916 ac_cs_recheck=false
14917 ac_cs_silent=false
14918
14919 SHELL=\${CONFIG_SHELL-$SHELL}
14920 export SHELL
14921 _ASEOF
14922 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14923 ## -------------------- ##
14924 ## M4sh Initialization. ##
14925 ## -------------------- ##
14926
14927 # Be more Bourne compatible
14928 DUALCASE=1; export DUALCASE # for MKS sh
14929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14930 emulate sh
14931 NULLCMD=:
14932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14933 # is contrary to our usage. Disable this feature.
14934 alias -g '${1+"$@"}'='"$@"'
14935 setopt NO_GLOB_SUBST
14936 else
14937 case `(set -o) 2>/dev/null` in #(
14938 *posix*) :
14939 set -o posix ;; #(
14940 *) :
14941 ;;
14942 esac
14943 fi
14944
14945
14946 as_nl='
14947 '
14948 export as_nl
14949 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14950 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14953 # Prefer a ksh shell builtin over an external printf program on Solaris,
14954 # but without wasting forks for bash or zsh.
14955 if test -z "$BASH_VERSION$ZSH_VERSION" \
14956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='print -r --'
14958 as_echo_n='print -rn --'
14959 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14960 as_echo='printf %s\n'
14961 as_echo_n='printf %s'
14962 else
14963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14964 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14965 as_echo_n='/usr/ucb/echo -n'
14966 else
14967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14968 as_echo_n_body='eval
14969 arg=$1;
14970 case $arg in #(
14971 *"$as_nl"*)
14972 expr "X$arg" : "X\\(.*\\)$as_nl";
14973 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14974 esac;
14975 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14976 '
14977 export as_echo_n_body
14978 as_echo_n='sh -c $as_echo_n_body as_echo'
14979 fi
14980 export as_echo_body
14981 as_echo='sh -c $as_echo_body as_echo'
14982 fi
14983
14984 # The user is always right.
14985 if test "${PATH_SEPARATOR+set}" != set; then
14986 PATH_SEPARATOR=:
14987 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14988 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14989 PATH_SEPARATOR=';'
14990 }
14991 fi
14992
14993
14994 # IFS
14995 # We need space, tab and new line, in precisely that order. Quoting is
14996 # there to prevent editors from complaining about space-tab.
14997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14998 # splitting by setting IFS to empty value.)
14999 IFS=" "" $as_nl"
15000
15001 # Find who we are. Look in the path if we contain no directory separator.
15002 as_myself=
15003 case $0 in #((
15004 *[\\/]* ) as_myself=$0 ;;
15005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006 for as_dir in $PATH
15007 do
15008 IFS=$as_save_IFS
15009 test -z "$as_dir" && as_dir=.
15010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15011 done
15012 IFS=$as_save_IFS
15013
15014 ;;
15015 esac
15016 # We did not find ourselves, most probably we were run as `sh COMMAND'
15017 # in which case we are not to be found in the path.
15018 if test "x$as_myself" = x; then
15019 as_myself=$0
15020 fi
15021 if test ! -f "$as_myself"; then
15022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15023 exit 1
15024 fi
15025
15026 # Unset variables that we do not need and which cause bugs (e.g. in
15027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15028 # suppresses any "Segmentation fault" message there. '((' could
15029 # trigger a bug in pdksh 5.2.14.
15030 for as_var in BASH_ENV ENV MAIL MAILPATH
15031 do eval test x\${$as_var+set} = xset \
15032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15033 done
15034 PS1='$ '
15035 PS2='> '
15036 PS4='+ '
15037
15038 # NLS nuisances.
15039 LC_ALL=C
15040 export LC_ALL
15041 LANGUAGE=C
15042 export LANGUAGE
15043
15044 # CDPATH.
15045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15046
15047
15048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15049 # ----------------------------------------
15050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15052 # script with STATUS, using 1 if that was 0.
15053 as_fn_error ()
15054 {
15055 as_status=$1; test $as_status -eq 0 && as_status=1
15056 if test "$4"; then
15057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15059 fi
15060 $as_echo "$as_me: error: $2" >&2
15061 as_fn_exit $as_status
15062 } # as_fn_error
15063
15064
15065 # as_fn_set_status STATUS
15066 # -----------------------
15067 # Set $? to STATUS, without forking.
15068 as_fn_set_status ()
15069 {
15070 return $1
15071 } # as_fn_set_status
15072
15073 # as_fn_exit STATUS
15074 # -----------------
15075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15076 as_fn_exit ()
15077 {
15078 set +e
15079 as_fn_set_status $1
15080 exit $1
15081 } # as_fn_exit
15082
15083 # as_fn_unset VAR
15084 # ---------------
15085 # Portably unset VAR.
15086 as_fn_unset ()
15087 {
15088 { eval $1=; unset $1;}
15089 }
15090 as_unset=as_fn_unset
15091 # as_fn_append VAR VALUE
15092 # ----------------------
15093 # Append the text in VALUE to the end of the definition contained in VAR. Take
15094 # advantage of any shell optimizations that allow amortized linear growth over
15095 # repeated appends, instead of the typical quadratic growth present in naive
15096 # implementations.
15097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15098 eval 'as_fn_append ()
15099 {
15100 eval $1+=\$2
15101 }'
15102 else
15103 as_fn_append ()
15104 {
15105 eval $1=\$$1\$2
15106 }
15107 fi # as_fn_append
15108
15109 # as_fn_arith ARG...
15110 # ------------------
15111 # Perform arithmetic evaluation on the ARGs, and store the result in the
15112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15113 # must be portable across $(()) and expr.
15114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15115 eval 'as_fn_arith ()
15116 {
15117 as_val=$(( $* ))
15118 }'
15119 else
15120 as_fn_arith ()
15121 {
15122 as_val=`expr "$@" || test $? -eq 1`
15123 }
15124 fi # as_fn_arith
15125
15126
15127 if expr a : '\(a\)' >/dev/null 2>&1 &&
15128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15129 as_expr=expr
15130 else
15131 as_expr=false
15132 fi
15133
15134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15135 as_basename=basename
15136 else
15137 as_basename=false
15138 fi
15139
15140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15141 as_dirname=dirname
15142 else
15143 as_dirname=false
15144 fi
15145
15146 as_me=`$as_basename -- "$0" ||
15147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15148 X"$0" : 'X\(//\)$' \| \
15149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15150 $as_echo X/"$0" |
15151 sed '/^.*\/\([^/][^/]*\)\/*$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\/\(\/\/\)$/{
15156 s//\1/
15157 q
15158 }
15159 /^X\/\(\/\).*/{
15160 s//\1/
15161 q
15162 }
15163 s/.*/./; q'`
15164
15165 # Avoid depending upon Character Ranges.
15166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15169 as_cr_digits='0123456789'
15170 as_cr_alnum=$as_cr_Letters$as_cr_digits
15171
15172 ECHO_C= ECHO_N= ECHO_T=
15173 case `echo -n x` in #(((((
15174 -n*)
15175 case `echo 'xy\c'` in
15176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15177 xy) ECHO_C='\c';;
15178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15179 ECHO_T=' ';;
15180 esac;;
15181 *)
15182 ECHO_N='-n';;
15183 esac
15184
15185 rm -f conf$$ conf$$.exe conf$$.file
15186 if test -d conf$$.dir; then
15187 rm -f conf$$.dir/conf$$.file
15188 else
15189 rm -f conf$$.dir
15190 mkdir conf$$.dir 2>/dev/null
15191 fi
15192 if (echo >conf$$.file) 2>/dev/null; then
15193 if ln -s conf$$.file conf$$ 2>/dev/null; then
15194 as_ln_s='ln -s'
15195 # ... but there are two gotchas:
15196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15198 # In both cases, we have to default to `cp -pR'.
15199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15200 as_ln_s='cp -pR'
15201 elif ln conf$$.file conf$$ 2>/dev/null; then
15202 as_ln_s=ln
15203 else
15204 as_ln_s='cp -pR'
15205 fi
15206 else
15207 as_ln_s='cp -pR'
15208 fi
15209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15210 rmdir conf$$.dir 2>/dev/null
15211
15212
15213 # as_fn_mkdir_p
15214 # -------------
15215 # Create "$as_dir" as a directory, including parents if necessary.
15216 as_fn_mkdir_p ()
15217 {
15218
15219 case $as_dir in #(
15220 -*) as_dir=./$as_dir;;
15221 esac
15222 test -d "$as_dir" || eval $as_mkdir_p || {
15223 as_dirs=
15224 while :; do
15225 case $as_dir in #(
15226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15227 *) as_qdir=$as_dir;;
15228 esac
15229 as_dirs="'$as_qdir' $as_dirs"
15230 as_dir=`$as_dirname -- "$as_dir" ||
15231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15232 X"$as_dir" : 'X\(//\)[^/]' \| \
15233 X"$as_dir" : 'X\(//\)$' \| \
15234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15235 $as_echo X"$as_dir" |
15236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\/\)[^/].*/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\/\)$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\).*/{
15249 s//\1/
15250 q
15251 }
15252 s/.*/./; q'`
15253 test -d "$as_dir" && break
15254 done
15255 test -z "$as_dirs" || eval "mkdir $as_dirs"
15256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15257
15258
15259 } # as_fn_mkdir_p
15260 if mkdir -p . 2>/dev/null; then
15261 as_mkdir_p='mkdir -p "$as_dir"'
15262 else
15263 test -d ./-p && rmdir ./-p
15264 as_mkdir_p=false
15265 fi
15266
15267
15268 # as_fn_executable_p FILE
15269 # -----------------------
15270 # Test if FILE is an executable regular file.
15271 as_fn_executable_p ()
15272 {
15273 test -f "$1" && test -x "$1"
15274 } # as_fn_executable_p
15275 as_test_x='test -x'
15276 as_executable_p=as_fn_executable_p
15277
15278 # Sed expression to map a string onto a valid CPP name.
15279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15280
15281 # Sed expression to map a string onto a valid variable name.
15282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15283
15284
15285 exec 6>&1
15286 ## ----------------------------------- ##
15287 ## Main body of $CONFIG_STATUS script. ##
15288 ## ----------------------------------- ##
15289 _ASEOF
15290 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15291
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 # Save the log message, to keep $0 and so on meaningful, and to
15294 # report actual input values of CONFIG_FILES etc. instead of their
15295 # values after options handling.
15296 ac_log="
15297 This file was extended by $as_me, which was
15298 generated by GNU Autoconf 2.69. Invocation command line was
15299
15300 CONFIG_FILES = $CONFIG_FILES
15301 CONFIG_HEADERS = $CONFIG_HEADERS
15302 CONFIG_LINKS = $CONFIG_LINKS
15303 CONFIG_COMMANDS = $CONFIG_COMMANDS
15304 $ $0 $@
15305
15306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15307 "
15308
15309 _ACEOF
15310
15311 case $ac_config_files in *"
15312 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15313 esac
15314
15315
15316
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 # Files that config.status was made for.
15319 config_files="$ac_config_files"
15320
15321 _ACEOF
15322
15323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324 ac_cs_usage="\
15325 \`$as_me' instantiates files and other configuration actions
15326 from templates according to the current configuration. Unless the files
15327 and actions are specified as TAGs, all are instantiated by default.
15328
15329 Usage: $0 [OPTION]... [TAG]...
15330
15331 -h, --help print this help, then exit
15332 -V, --version print version number and configuration settings, then exit
15333 --config print configuration, then exit
15334 -q, --quiet, --silent
15335 do not print progress messages
15336 -d, --debug don't remove temporary files
15337 --recheck update $as_me by reconfiguring in the same conditions
15338 --file=FILE[:TEMPLATE]
15339 instantiate the configuration file FILE
15340
15341 Configuration files:
15342 $config_files
15343
15344 Report bugs to the package provider."
15345
15346 _ACEOF
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15349 ac_cs_version="\\
15350 config.status
15351 configured by $0, generated by GNU Autoconf 2.69,
15352 with options \\"\$ac_cs_config\\"
15353
15354 Copyright (C) 2012 Free Software Foundation, Inc.
15355 This config.status script is free software; the Free Software Foundation
15356 gives unlimited permission to copy, distribute and modify it."
15357
15358 ac_pwd='$ac_pwd'
15359 srcdir='$srcdir'
15360 INSTALL='$INSTALL'
15361 AWK='$AWK'
15362 test -n "\$AWK" || AWK=awk
15363 _ACEOF
15364
15365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15366 # The default lists apply if the user does not specify any file.
15367 ac_need_defaults=:
15368 while test $# != 0
15369 do
15370 case $1 in
15371 --*=?*)
15372 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15374 ac_shift=:
15375 ;;
15376 --*=)
15377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15378 ac_optarg=
15379 ac_shift=:
15380 ;;
15381 *)
15382 ac_option=$1
15383 ac_optarg=$2
15384 ac_shift=shift
15385 ;;
15386 esac
15387
15388 case $ac_option in
15389 # Handling of the options.
15390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15391 ac_cs_recheck=: ;;
15392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15393 $as_echo "$ac_cs_version"; exit ;;
15394 --config | --confi | --conf | --con | --co | --c )
15395 $as_echo "$ac_cs_config"; exit ;;
15396 --debug | --debu | --deb | --de | --d | -d )
15397 debug=: ;;
15398 --file | --fil | --fi | --f )
15399 $ac_shift
15400 case $ac_optarg in
15401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15402 '') as_fn_error $? "missing file argument" ;;
15403 esac
15404 as_fn_append CONFIG_FILES " '$ac_optarg'"
15405 ac_need_defaults=false;;
15406 --he | --h | --help | --hel | -h )
15407 $as_echo "$ac_cs_usage"; exit ;;
15408 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15409 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15410 ac_cs_silent=: ;;
15411
15412 # This is an error.
15413 -*) as_fn_error $? "unrecognized option: \`$1'
15414 Try \`$0 --help' for more information." ;;
15415
15416 *) as_fn_append ac_config_targets " $1"
15417 ac_need_defaults=false ;;
15418
15419 esac
15420 shift
15421 done
15422
15423 ac_configure_extra_args=
15424
15425 if $ac_cs_silent; then
15426 exec 6>/dev/null
15427 ac_configure_extra_args="$ac_configure_extra_args --silent"
15428 fi
15429
15430 _ACEOF
15431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432 if \$ac_cs_recheck; then
15433 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15434 shift
15435 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15436 CONFIG_SHELL='$SHELL'
15437 export CONFIG_SHELL
15438 exec "\$@"
15439 fi
15440
15441 _ACEOF
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 exec 5>>config.log
15444 {
15445 echo
15446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15447 ## Running $as_me. ##
15448 _ASBOX
15449 $as_echo "$ac_log"
15450 } >&5
15451
15452 _ACEOF
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 #
15455 # INIT-COMMANDS
15456 #
15457 extrasub_build="$extrasub_build"
15458 extrasub_host="$extrasub_host"
15459 extrasub_target="$extrasub_target"
15460
15461 _ACEOF
15462
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464
15465 # Handling of arguments.
15466 for ac_config_target in $ac_config_targets
15467 do
15468 case $ac_config_target in
15469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15470
15471 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15472 esac
15473 done
15474
15475
15476 # If the user did not use the arguments to specify the items to instantiate,
15477 # then the envvar interface is used. Set only those that are not.
15478 # We use the long form for the default assignment because of an extremely
15479 # bizarre bug on SunOS 4.1.3.
15480 if $ac_need_defaults; then
15481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15482 fi
15483
15484 # Have a temporary directory for convenience. Make it in the build tree
15485 # simply because there is no reason against having it here, and in addition,
15486 # creating and moving files from /tmp can sometimes cause problems.
15487 # Hook for its removal unless debugging.
15488 # Note that there is a small window in which the directory will not be cleaned:
15489 # after its creation but before its name has been assigned to `$tmp'.
15490 $debug ||
15491 {
15492 tmp= ac_tmp=
15493 trap 'exit_status=$?
15494 : "${ac_tmp:=$tmp}"
15495 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15496 ' 0
15497 trap 'as_fn_exit 1' 1 2 13 15
15498 }
15499 # Create a (secure) tmp directory for tmp files.
15500
15501 {
15502 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15503 test -d "$tmp"
15504 } ||
15505 {
15506 tmp=./conf$$-$RANDOM
15507 (umask 077 && mkdir "$tmp")
15508 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15509 ac_tmp=$tmp
15510
15511 # Set up the scripts for CONFIG_FILES section.
15512 # No need to generate them if there are no CONFIG_FILES.
15513 # This happens for instance with `./config.status config.h'.
15514 if test -n "$CONFIG_FILES"; then
15515
15516 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15517 ac_cs_awk_getline=:
15518 ac_cs_awk_pipe_init=
15519 ac_cs_awk_read_file='
15520 while ((getline aline < (F[key])) > 0)
15521 print(aline)
15522 close(F[key])'
15523 ac_cs_awk_pipe_fini=
15524 else
15525 ac_cs_awk_getline=false
15526 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15527 ac_cs_awk_read_file='
15528 print "|#_!!_#|"
15529 print "cat " F[key] " &&"
15530 '$ac_cs_awk_pipe_init
15531 # The final `:' finishes the AND list.
15532 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15533 fi
15534 ac_cr=`echo X | tr X '\015'`
15535 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15536 # But we know of no other shell where ac_cr would be empty at this
15537 # point, so we can use a bashism as a fallback.
15538 if test "x$ac_cr" = x; then
15539 eval ac_cr=\$\'\\r\'
15540 fi
15541 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15542 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15543 ac_cs_awk_cr='\\r'
15544 else
15545 ac_cs_awk_cr=$ac_cr
15546 fi
15547
15548 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15549 _ACEOF
15550
15551 # Create commands to substitute file output variables.
15552 {
15553 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15554 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15555 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15556 echo "_ACAWK" &&
15557 echo "_ACEOF"
15558 } >conf$$files.sh &&
15559 . ./conf$$files.sh ||
15560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15561 rm -f conf$$files.sh
15562
15563 {
15564 echo "cat >conf$$subs.awk <<_ACEOF" &&
15565 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15566 echo "_ACEOF"
15567 } >conf$$subs.sh ||
15568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15569 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15570 ac_delim='%!_!# '
15571 for ac_last_try in false false false false false :; do
15572 . ./conf$$subs.sh ||
15573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15574
15575 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15576 if test $ac_delim_n = $ac_delim_num; then
15577 break
15578 elif $ac_last_try; then
15579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15580 else
15581 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15582 fi
15583 done
15584 rm -f conf$$subs.sh
15585
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15588 _ACEOF
15589 sed -n '
15590 h
15591 s/^/S["/; s/!.*/"]=/
15592 p
15593 g
15594 s/^[^!]*!//
15595 :repl
15596 t repl
15597 s/'"$ac_delim"'$//
15598 t delim
15599 :nl
15600 h
15601 s/\(.\{148\}\)..*/\1/
15602 t more1
15603 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15604 p
15605 n
15606 b repl
15607 :more1
15608 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15609 p
15610 g
15611 s/.\{148\}//
15612 t nl
15613 :delim
15614 h
15615 s/\(.\{148\}\)..*/\1/
15616 t more2
15617 s/["\\]/\\&/g; s/^/"/; s/$/"/
15618 p
15619 b
15620 :more2
15621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15622 p
15623 g
15624 s/.\{148\}//
15625 t delim
15626 ' <conf$$subs.awk | sed '
15627 /^[^""]/{
15628 N
15629 s/\n//
15630 }
15631 ' >>$CONFIG_STATUS || ac_write_fail=1
15632 rm -f conf$$subs.awk
15633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634 _ACAWK
15635 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15636 for (key in S) S_is_set[key] = 1
15637 FS = "\a"
15638 \$ac_cs_awk_pipe_init
15639 }
15640 {
15641 line = $ 0
15642 nfields = split(line, field, "@")
15643 substed = 0
15644 len = length(field[1])
15645 for (i = 2; i < nfields; i++) {
15646 key = field[i]
15647 keylen = length(key)
15648 if (S_is_set[key]) {
15649 value = S[key]
15650 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15651 len += length(value) + length(field[++i])
15652 substed = 1
15653 } else
15654 len += 1 + keylen
15655 }
15656 if (nfields == 3 && !substed) {
15657 key = field[2]
15658 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15659 \$ac_cs_awk_read_file
15660 next
15661 }
15662 }
15663 print line
15664 }
15665 \$ac_cs_awk_pipe_fini
15666 _ACAWK
15667 _ACEOF
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15669 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15671 else
15672 cat
15673 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15675 _ACEOF
15676
15677 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15678 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15679 # trailing colons and then remove the whole line if VPATH becomes empty
15680 # (actually we leave an empty line to preserve line numbers).
15681 if test "x$srcdir" = x.; then
15682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15683 h
15684 s///
15685 s/^/:/
15686 s/[ ]*$/:/
15687 s/:\$(srcdir):/:/g
15688 s/:\${srcdir}:/:/g
15689 s/:@srcdir@:/:/g
15690 s/^:*//
15691 s/:*$//
15692 x
15693 s/\(=[ ]*\).*/\1/
15694 G
15695 s/\n//
15696 s/^[^=]*=[ ]*$//
15697 }'
15698 fi
15699
15700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15701 fi # test -n "$CONFIG_FILES"
15702
15703
15704 eval set X " :F $CONFIG_FILES "
15705 shift
15706 for ac_tag
15707 do
15708 case $ac_tag in
15709 :[FHLC]) ac_mode=$ac_tag; continue;;
15710 esac
15711 case $ac_mode$ac_tag in
15712 :[FHL]*:*);;
15713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15714 :[FH]-) ac_tag=-:-;;
15715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15716 esac
15717 ac_save_IFS=$IFS
15718 IFS=:
15719 set x $ac_tag
15720 IFS=$ac_save_IFS
15721 shift
15722 ac_file=$1
15723 shift
15724
15725 case $ac_mode in
15726 :L) ac_source=$1;;
15727 :[FH])
15728 ac_file_inputs=
15729 for ac_f
15730 do
15731 case $ac_f in
15732 -) ac_f="$ac_tmp/stdin";;
15733 *) # Look for the file first in the build tree, then in the source tree
15734 # (if the path is not absolute). The absolute path cannot be DOS-style,
15735 # because $ac_f cannot contain `:'.
15736 test -f "$ac_f" ||
15737 case $ac_f in
15738 [\\/$]*) false;;
15739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15740 esac ||
15741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15742 esac
15743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15744 as_fn_append ac_file_inputs " '$ac_f'"
15745 done
15746
15747 # Let's still pretend it is `configure' which instantiates (i.e., don't
15748 # use $as_me), people would be surprised to read:
15749 # /* config.h. Generated by config.status. */
15750 configure_input='Generated from '`
15751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15752 `' by configure.'
15753 if test x"$ac_file" != x-; then
15754 configure_input="$ac_file. $configure_input"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15756 $as_echo "$as_me: creating $ac_file" >&6;}
15757 fi
15758 # Neutralize special characters interpreted by sed in replacement strings.
15759 case $configure_input in #(
15760 *\&* | *\|* | *\\* )
15761 ac_sed_conf_input=`$as_echo "$configure_input" |
15762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15763 *) ac_sed_conf_input=$configure_input;;
15764 esac
15765
15766 case $ac_tag in
15767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15769 esac
15770 ;;
15771 esac
15772
15773 ac_dir=`$as_dirname -- "$ac_file" ||
15774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775 X"$ac_file" : 'X\(//\)[^/]' \| \
15776 X"$ac_file" : 'X\(//\)$' \| \
15777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15778 $as_echo X"$ac_file" |
15779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15780 s//\1/
15781 q
15782 }
15783 /^X\(\/\/\)[^/].*/{
15784 s//\1/
15785 q
15786 }
15787 /^X\(\/\/\)$/{
15788 s//\1/
15789 q
15790 }
15791 /^X\(\/\).*/{
15792 s//\1/
15793 q
15794 }
15795 s/.*/./; q'`
15796 as_dir="$ac_dir"; as_fn_mkdir_p
15797 ac_builddir=.
15798
15799 case "$ac_dir" in
15800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15801 *)
15802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15803 # A ".." for each directory in $ac_dir_suffix.
15804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15805 case $ac_top_builddir_sub in
15806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15808 esac ;;
15809 esac
15810 ac_abs_top_builddir=$ac_pwd
15811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15812 # for backward compatibility:
15813 ac_top_builddir=$ac_top_build_prefix
15814
15815 case $srcdir in
15816 .) # We are building in place.
15817 ac_srcdir=.
15818 ac_top_srcdir=$ac_top_builddir_sub
15819 ac_abs_top_srcdir=$ac_pwd ;;
15820 [\\/]* | ?:[\\/]* ) # Absolute name.
15821 ac_srcdir=$srcdir$ac_dir_suffix;
15822 ac_top_srcdir=$srcdir
15823 ac_abs_top_srcdir=$srcdir ;;
15824 *) # Relative name.
15825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15826 ac_top_srcdir=$ac_top_build_prefix$srcdir
15827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15828 esac
15829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15830
15831
15832 case $ac_mode in
15833 :F)
15834 #
15835 # CONFIG_FILE
15836 #
15837
15838 case $INSTALL in
15839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15841 esac
15842 _ACEOF
15843
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 # If the template does not know about datarootdir, expand it.
15846 # FIXME: This hack should be removed a few years after 2.60.
15847 ac_datarootdir_hack=; ac_datarootdir_seen=
15848 ac_sed_dataroot='
15849 /datarootdir/ {
15850 p
15851 q
15852 }
15853 /@datadir@/p
15854 /@docdir@/p
15855 /@infodir@/p
15856 /@localedir@/p
15857 /@mandir@/p'
15858 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15859 *datarootdir*) ac_datarootdir_seen=yes;;
15860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15862 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15863 _ACEOF
15864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 ac_datarootdir_hack='
15866 s&@datadir@&$datadir&g
15867 s&@docdir@&$docdir&g
15868 s&@infodir@&$infodir&g
15869 s&@localedir@&$localedir&g
15870 s&@mandir@&$mandir&g
15871 s&\\\${datarootdir}&$datarootdir&g' ;;
15872 esac
15873 _ACEOF
15874
15875 # Neutralize VPATH when `$srcdir' = `.'.
15876 # Shell code in configure.ac might set extrasub.
15877 # FIXME: do we really want to maintain this feature?
15878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879 ac_sed_extra="$ac_vpsub
15880 $extrasub
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15883 :t
15884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15885 s|@configure_input@|$ac_sed_conf_input|;t t
15886 s&@top_builddir@&$ac_top_builddir_sub&;t t
15887 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15888 s&@srcdir@&$ac_srcdir&;t t
15889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15890 s&@top_srcdir@&$ac_top_srcdir&;t t
15891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15892 s&@builddir@&$ac_builddir&;t t
15893 s&@abs_builddir@&$ac_abs_builddir&;t t
15894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15895 s&@INSTALL@&$ac_INSTALL&;t t
15896 $ac_datarootdir_hack
15897 "
15898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15899 if $ac_cs_awk_getline; then
15900 $AWK -f "$ac_tmp/subs.awk"
15901 else
15902 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15903 fi \
15904 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15905
15906 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15907 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15908 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15909 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15911 which seems to be undefined. Please make sure it is defined" >&5
15912 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15913 which seems to be undefined. Please make sure it is defined" >&2;}
15914
15915 rm -f "$ac_tmp/stdin"
15916 case $ac_file in
15917 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15918 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15919 esac \
15920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15921 ;;
15922
15923
15924
15925 esac
15926
15927
15928 case $ac_file$ac_mode in
15929 "Makefile":F) sed "$extrasub_build" Makefile |
15930 sed "$extrasub_host" |
15931 sed "$extrasub_target" > mf$$
15932 mv -f mf$$ Makefile ;;
15933
15934 esac
15935 done # for ac_tag
15936
15937
15938 as_fn_exit 0
15939 _ACEOF
15940 ac_clean_files=$ac_clean_files_save
15941
15942 test $ac_write_fail = 0 ||
15943 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15944
15945
15946 # configure is writing to config.log, and then calls config.status.
15947 # config.status does its own redirection, appending to config.log.
15948 # Unfortunately, on DOS this fails, as config.log is still kept open
15949 # by configure, so config.status won't be able to write to it; its
15950 # output is simply discarded. So we exec the FD to /dev/null,
15951 # effectively closing config.log, so it can be properly (re)opened and
15952 # appended to by config.status. When coming back to configure, we
15953 # need to make the FD available again.
15954 if test "$no_create" != yes; then
15955 ac_cs_success=:
15956 ac_config_status_args=
15957 test "$silent" = yes &&
15958 ac_config_status_args="$ac_config_status_args --quiet"
15959 exec 5>/dev/null
15960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15961 exec 5>>config.log
15962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15963 # would make configure fail if this is the last instruction.
15964 $ac_cs_success || as_fn_exit 1
15965 fi
15966 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15968 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15969 fi
15970
This page took 0.413144 seconds and 4 git commands to generate.