configure revision 1.15 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 (at] 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 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 do_compare
698 GNATMAKE
699 GNATBIND
700 ac_ct_CXX
701 CXXFLAGS
702 CXX
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 extra_liboffloadmic_configure_flags
711 target_subdir
712 host_subdir
713 build_subdir
714 build_libsubdir
715 AWK
716 SED
717 LN_S
718 LN
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 target_noncanonical
731 host_noncanonical
732 build_noncanonical
733 build_os
734 build_vendor
735 build_cpu
736 build
737 TOPLEVEL_CONFIGURE_ARGUMENTS
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL'
776 ac_subst_files='serialization_dependencies
777 host_makefile_frag
778 target_makefile_frag
779 alphaieee_frag
780 ospace_frag'
781 ac_user_opts='
782 enable_option_checking
783 with_build_libsubdir
784 with_system_zlib
785 enable_as_accelerator_for
786 enable_offload_targets
787 enable_gold
788 enable_ld
789 enable_compressed_debug_sections
790 enable_libquadmath
791 enable_libquadmath_support
792 enable_libada
793 enable_libssp
794 enable_libstdcxx
795 enable_liboffloadmic
796 enable_bootstrap
797 with_mpc
798 with_mpc_include
799 with_mpc_lib
800 with_mpfr_dir
801 with_mpfr
802 with_mpfr_include
803 with_mpfr_lib
804 with_gmp_dir
805 with_gmp
806 with_gmp_include
807 with_gmp_lib
808 with_stage1_libs
809 with_stage1_ldflags
810 with_boot_libs
811 with_boot_ldflags
812 with_isl
813 with_isl_include
814 with_isl_lib
815 enable_isl_version_check
816 enable_lto
817 enable_linker_plugin_configure_flags
818 enable_linker_plugin_flags
819 enable_host_shared
820 enable_stage1_languages
821 enable_objc_gc
822 with_target_bdw_gc
823 with_target_bdw_gc_include
824 with_target_bdw_gc_lib
825 with_gcc_major_version_only
826 with_build_sysroot
827 with_debug_prefix_map
828 with_build_config
829 enable_vtable_verify
830 enable_serial_configure
831 with_build_time_tools
832 enable_maintainer_mode
833 enable_stage1_checking
834 enable_werror
835 '
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 CXX
845 CXXFLAGS
846 CCC
847 build_configargs
848 host_configargs
849 target_configargs
850 AR
851 AS
852 DLLTOOL
853 LD
854 LIPO
855 NM
856 RANLIB
857 STRIP
858 WINDRES
859 WINDMC
860 OBJCOPY
861 OBJDUMP
862 OTOOL
863 READELF
864 CC_FOR_TARGET
865 CXX_FOR_TARGET
866 GCC_FOR_TARGET
867 GFORTRAN_FOR_TARGET
868 GOC_FOR_TARGET
869 GDC_FOR_TARGET
870 AR_FOR_TARGET
871 AS_FOR_TARGET
872 DLLTOOL_FOR_TARGET
873 LD_FOR_TARGET
874 LIPO_FOR_TARGET
875 NM_FOR_TARGET
876 OBJCOPY_FOR_TARGET
877 OBJDUMP_FOR_TARGET
878 OTOOL_FOR_TARGET
879 RANLIB_FOR_TARGET
880 READELF_FOR_TARGET
881 STRIP_FOR_TARGET
882 WINDRES_FOR_TARGET
883 WINDMC_FOR_TARGET'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
941 ac_prev=
942 continue
943 fi
944
945 case $ac_option in
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389 else
1390 ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 case $srcdir in
1411 *" "*)
1412 as_fn_error $? "path to source, $srcdir, contains spaces"
1413 ;;
1414 esac
1415 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1416
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 --target=TARGET configure for building compilers for TARGET [HOST]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501
1502 cat <<\_ACEOF
1503
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-as-accelerator-for=ARG
1509 build as offload target compiler. Specify offload
1510 host triple by ARG
1511 --enable-offload-targets=LIST
1512 enable offloading to devices from comma-separated
1513 LIST of TARGET[=DIR]. Use optional path to find
1514 offload target compiler during the build
1515 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1516 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1517 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1518 Enable compressed debug sections for gas, gold or ld
1519 by default
1520 --disable-libquadmath do not build libquadmath directory
1521 --disable-libquadmath-support
1522 disable libquadmath support for Fortran
1523 --enable-libada build libada directory
1524 --enable-libssp build libssp directory
1525 --disable-libstdcxx do not build libstdc++-v3 directory
1526 --enable-liboffloadmic=ARG
1527 build liboffloadmic [ARG={no,host,target}]
1528 --enable-bootstrap enable bootstrapping [yes if native build]
1529 --disable-isl-version-check
1530 disable check for isl version
1531 --enable-lto enable link time optimization support
1532 --enable-linker-plugin-configure-flags=FLAGS
1533 additional flags for configuring linker plugins
1534 [none]
1535 --enable-linker-plugin-flags=FLAGS
1536 additional flags for configuring and building linker
1537 plugins [none]
1538 --enable-host-shared build host code as shared libraries
1539 --enable-stage1-languages[=all]
1540 choose additional languages to build during stage1.
1541 Mostly useful for compiler development
1542 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1543 Objective-C runtime
1544 --enable-vtable-verify Enable vtable verification feature
1545 --enable-serial-[{host,target,build}-]configure
1546 force sequential configuration of sub-packages for
1547 the host, target or build machine, or all
1548 sub-packages
1549 --enable-maintainer-mode
1550 enable make rules and dependencies not useful (and
1551 sometimes confusing) to the casual installer
1552 --enable-stage1-checking[=all]
1553 choose additional checking for stage1 of the
1554 compiler
1555 --enable-werror enable -Werror in bootstrap stage2 and later
1556
1557 Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1560 --with-build-libsubdir=DIR Directory where to find libraries for build system
1561 --with-system-zlib use installed libz
1562 --with-mpc=PATH specify prefix directory for installed MPC package.
1563 Equivalent to --with-mpc-include=PATH/include plus
1564 --with-mpc-lib=PATH/lib
1565 --with-mpc-include=PATH specify directory for installed MPC include files
1566 --with-mpc-lib=PATH specify directory for the installed MPC library
1567 --with-mpfr-dir=PATH this option has been REMOVED
1568 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1569 Equivalent to --with-mpfr-include=PATH/include plus
1570 --with-mpfr-lib=PATH/lib
1571 --with-mpfr-include=PATH
1572 specify directory for installed MPFR include files
1573 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1574 --with-gmp-dir=PATH this option has been REMOVED
1575 --with-gmp=PATH specify prefix directory for the installed GMP
1576 package. Equivalent to
1577 --with-gmp-include=PATH/include plus
1578 --with-gmp-lib=PATH/lib
1579 --with-gmp-include=PATH specify directory for installed GMP include files
1580 --with-gmp-lib=PATH specify directory for the installed GMP library
1581 --with-stage1-libs=LIBS libraries for stage1
1582 --with-stage1-ldflags=FLAGS
1583 linker flags for stage1
1584 --with-boot-libs=LIBS libraries for stage2 and later
1585 --with-boot-ldflags=FLAGS
1586 linker flags for stage2 and later
1587 --with-isl=PATH Specify prefix directory for the installed isl
1588 package. Equivalent to
1589 --with-isl-include=PATH/include plus
1590 --with-isl-lib=PATH/lib
1591 --with-isl-include=PATH Specify directory for installed isl include files
1592 --with-isl-lib=PATH Specify the directory for the installed isl library
1593 --with-target-bdw-gc=PATHLIST
1594 specify prefix directory for installed bdw-gc
1595 package. Equivalent to
1596 --with-target-bdw-gc-include=PATH/include plus
1597 --with-target-bdw-gc-lib=PATH/lib
1598 --with-target-bdw-gc-include=PATHLIST
1599 specify directories for installed bdw-gc include
1600 files
1601 --with-target-bdw-gc-lib=PATHLIST
1602 specify directories for installed bdw-gc library
1603 --with-gcc-major-version-only
1604 use only GCC major number in filesystem paths
1605 --with-build-sysroot=SYSROOT
1606 use sysroot as the system root during the build
1607 --with-debug-prefix-map='A=B C=D ...'
1608 map A to B, C to D ... in debug information
1609 --with-build-config='NAME NAME2...'
1610 use config/NAME.mk build configuration
1611 --with-build-time-tools=PATH
1612 use given path to find target tools during the build
1613
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CXX C++ compiler command
1623 CXXFLAGS C++ compiler flags
1624 build_configargs
1625 additional configure arguments for build directories
1626 host_configargs
1627 additional configure arguments for host directories
1628 target_configargs
1629 additional configure arguments for target directories
1630 AR AR for the host
1631 AS AS for the host
1632 DLLTOOL DLLTOOL for the host
1633 LD LD for the host
1634 LIPO LIPO for the host
1635 NM NM for the host
1636 RANLIB RANLIB for the host
1637 STRIP STRIP for the host
1638 WINDRES WINDRES for the host
1639 WINDMC WINDMC for the host
1640 OBJCOPY OBJCOPY for the host
1641 OBJDUMP OBJDUMP for the host
1642 OTOOL OTOOL for the host
1643 READELF READELF for the host
1644 CC_FOR_TARGET
1645 CC for the target
1646 CXX_FOR_TARGET
1647 CXX for the target
1648 GCC_FOR_TARGET
1649 GCC for the target
1650 GFORTRAN_FOR_TARGET
1651 GFORTRAN for the target
1652 GOC_FOR_TARGET
1653 GOC for the target
1654 GDC_FOR_TARGET
1655 GDC for the target
1656 AR_FOR_TARGET
1657 AR for the target
1658 AS_FOR_TARGET
1659 AS for the target
1660 DLLTOOL_FOR_TARGET
1661 DLLTOOL for the target
1662 LD_FOR_TARGET
1663 LD for the target
1664 LIPO_FOR_TARGET
1665 LIPO for the target
1666 NM_FOR_TARGET
1667 NM for the target
1668 OBJCOPY_FOR_TARGET
1669 OBJCOPY for the target
1670 OBJDUMP_FOR_TARGET
1671 OBJDUMP for the target
1672 OTOOL_FOR_TARGET
1673 OTOOL for the target
1674 RANLIB_FOR_TARGET
1675 RANLIB for the target
1676 READELF_FOR_TARGET
1677 READELF for the target
1678 STRIP_FOR_TARGET
1679 STRIP for the target
1680 WINDRES_FOR_TARGET
1681 WINDRES for the target
1682 WINDMC_FOR_TARGET
1683 WINDMC for the target
1684
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1687
1688 Report bugs to the package provider.
1689 _ACEOF
1690 ac_status=$?
1691 fi
1692
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 continue
1699 ac_builddir=.
1700
1701 case "$ac_dir" in
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *)
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710 esac ;;
1711 esac
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1716
1717 case $srcdir in
1718 .) # We are building in place.
1719 ac_srcdir=.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1726 *) # Relative name.
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730 esac
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1739 echo &&
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1741 else
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 fi || ac_status=$?
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1745 done
1746 fi
1747
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1750 cat <<\_ACEOF
1751 configure
1752 generated by GNU Autoconf 2.69
1753
1754 Copyright (C) 2012 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1757 _ACEOF
1758 exit
1759 fi
1760
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1764
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_compile
1802
1803 # ac_fn_cxx_try_compile LINENO
1804 # ----------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_compile ()
1807 {
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_cxx_try_compile
1840
1841 # ac_fn_cxx_try_link LINENO
1842 # -------------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_link ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1861 fi
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1874
1875 ac_retval=1
1876 fi
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_cxx_try_link
1886
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_link
1932 cat >config.log <<_ACEOF
1933 This file contains any messages produced by compilers while
1934 running configure, to aid debugging if configure makes a mistake.
1935
1936 It was created by $as_me, which was
1937 generated by GNU Autoconf 2.69. Invocation command line was
1938
1939 $ $0 $@
1940
1941 _ACEOF
1942 exec 5>>config.log
1943 {
1944 cat <<_ASUNAME
1945 ## --------- ##
1946 ## Platform. ##
1947 ## --------- ##
1948
1949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1954
1955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1957
1958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1965
1966 _ASUNAME
1967
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 $as_echo "PATH: $as_dir"
1974 done
1975 IFS=$as_save_IFS
1976
1977 } >&5
1978
1979 cat >&5 <<_ACEOF
1980
1981
1982 ## ----------- ##
1983 ## Core tests. ##
1984 ## ----------- ##
1985
1986 _ACEOF
1987
1988
1989 # Keep a trace of the command line.
1990 # Strip out --no-create and --no-recursion so they do not pile up.
1991 # Strip out --silent because we don't want to record it for future runs.
1992 # Also quote any args containing shell meta-characters.
1993 # Make two passes to allow for proper duplicate-argument suppression.
1994 ac_configure_args=
1995 ac_configure_args0=
1996 ac_configure_args1=
1997 ac_must_keep_next=false
1998 for ac_pass in 1 2
1999 do
2000 for ac_arg
2001 do
2002 case $ac_arg in
2003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005 | -silent | --silent | --silen | --sile | --sil)
2006 continue ;;
2007 *\'*)
2008 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 esac
2010 case $ac_pass in
2011 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2012 2)
2013 as_fn_append ac_configure_args1 " '$ac_arg'"
2014 if test $ac_must_keep_next = true; then
2015 ac_must_keep_next=false # Got value, back to normal.
2016 else
2017 case $ac_arg in
2018 *=* | --config-cache | -C | -disable-* | --disable-* \
2019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021 | -with-* | --with-* | -without-* | --without-* | --x)
2022 case "$ac_configure_args0 " in
2023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2024 esac
2025 ;;
2026 -* ) ac_must_keep_next=true ;;
2027 esac
2028 fi
2029 as_fn_append ac_configure_args " '$ac_arg'"
2030 ;;
2031 esac
2032 done
2033 done
2034 { ac_configure_args0=; unset ac_configure_args0;}
2035 { ac_configure_args1=; unset ac_configure_args1;}
2036
2037 # When interrupted or exit'd, cleanup temporary files, and complete
2038 # config.log. We remove comments because anyway the quotes in there
2039 # would cause problems or look ugly.
2040 # WARNING: Use '\'' to represent an apostrophe within the trap.
2041 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042 trap 'exit_status=$?
2043 # Save into config.log some information that might help in debugging.
2044 {
2045 echo
2046
2047 $as_echo "## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##"
2050 echo
2051 # The following way of writing the cache mishandles newlines in values,
2052 (
2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in #(
2056 *${as_nl}*)
2057 case $ac_var in #(
2058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2060 esac
2061 case $ac_var in #(
2062 _ | IFS | as_nl) ;; #(
2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064 *) { eval $ac_var=; unset $ac_var;} ;;
2065 esac ;;
2066 esac
2067 done
2068 (set) 2>&1 |
2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070 *${as_nl}ac_space=\ *)
2071 sed -n \
2072 "s/'\''/'\''\\\\'\'''\''/g;
2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2074 ;; #(
2075 *)
2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2077 ;;
2078 esac |
2079 sort
2080 )
2081 echo
2082
2083 $as_echo "## ----------------- ##
2084 ## Output variables. ##
2085 ## ----------------- ##"
2086 echo
2087 for ac_var in $ac_subst_vars
2088 do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2096
2097 if test -n "$ac_subst_files"; then
2098 $as_echo "## ------------------- ##
2099 ## File substitutions. ##
2100 ## ------------------- ##"
2101 echo
2102 for ac_var in $ac_subst_files
2103 do
2104 eval ac_val=\$$ac_var
2105 case $ac_val in
2106 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 esac
2108 $as_echo "$ac_var='\''$ac_val'\''"
2109 done | sort
2110 echo
2111 fi
2112
2113 if test -s confdefs.h; then
2114 $as_echo "## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##"
2117 echo
2118 cat confdefs.h
2119 echo
2120 fi
2121 test "$ac_signal" != 0 &&
2122 $as_echo "$as_me: caught signal $ac_signal"
2123 $as_echo "$as_me: exit $exit_status"
2124 } >&5
2125 rm -f core *.core core.conftest.* &&
2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2127 exit $exit_status
2128 ' 0
2129 for ac_signal in 1 2 13 15; do
2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2131 done
2132 ac_signal=0
2133
2134 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2135 rm -f -r conftest* confdefs.h
2136
2137 $as_echo "/* confdefs.h */" > confdefs.h
2138
2139 # Predefined preprocessor variables.
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_NAME "$PACKAGE_NAME"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2151 _ACEOF
2152
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_STRING "$PACKAGE_STRING"
2155 _ACEOF
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_URL "$PACKAGE_URL"
2163 _ACEOF
2164
2165
2166 # Let the site file select an alternate cache file if it wants to.
2167 # Prefer an explicitly selected file to automatically selected ones.
2168 ac_site_file1=NONE
2169 ac_site_file2=NONE
2170 if test -n "$CONFIG_SITE"; then
2171 # We do not want a PATH search for config.site.
2172 case $CONFIG_SITE in #((
2173 -*) ac_site_file1=./$CONFIG_SITE;;
2174 */*) ac_site_file1=$CONFIG_SITE;;
2175 *) ac_site_file1=./$CONFIG_SITE;;
2176 esac
2177 elif test "x$prefix" != xNONE; then
2178 ac_site_file1=$prefix/share/config.site
2179 ac_site_file2=$prefix/etc/config.site
2180 else
2181 ac_site_file1=$ac_default_prefix/share/config.site
2182 ac_site_file2=$ac_default_prefix/etc/config.site
2183 fi
2184 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 do
2186 test "x$ac_site_file" = xNONE && continue
2187 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190 sed 's/^/| /' "$ac_site_file" >&5
2191 . "$ac_site_file" \
2192 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194 as_fn_error $? "failed to load site script $ac_site_file
2195 See \`config.log' for more details" "$LINENO" 5; }
2196 fi
2197 done
2198
2199 if test -r "$cache_file"; then
2200 # Some versions of bash will fail to source /dev/null (special files
2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204 $as_echo "$as_me: loading cache $cache_file" >&6;}
2205 case $cache_file in
2206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2207 *) . "./$cache_file";;
2208 esac
2209 fi
2210 else
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212 $as_echo "$as_me: creating cache $cache_file" >&6;}
2213 >$cache_file
2214 fi
2215
2216 # Check that the precious variables saved in the cache have kept the same
2217 # value.
2218 ac_cache_corrupted=false
2219 for ac_var in $ac_precious_vars; do
2220 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221 eval ac_new_set=\$ac_env_${ac_var}_set
2222 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223 eval ac_new_val=\$ac_env_${ac_var}_value
2224 case $ac_old_set,$ac_new_set in
2225 set,)
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2229 ,set)
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232 ac_cache_corrupted=: ;;
2233 ,);;
2234 *)
2235 if test "x$ac_old_val" != "x$ac_new_val"; then
2236 # differences in whitespace do not lead to failure.
2237 ac_old_val_w=`echo x $ac_old_val`
2238 ac_new_val_w=`echo x $ac_new_val`
2239 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242 ac_cache_corrupted=:
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246 eval $ac_var=\$ac_old_val
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2252 fi;;
2253 esac
2254 # Pass precious variables to config.status.
2255 if test "$ac_new_set" = set; then
2256 case $ac_new_val in
2257 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258 *) ac_arg=$ac_var=$ac_new_val ;;
2259 esac
2260 case " $ac_configure_args " in
2261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2263 esac
2264 fi
2265 done
2266 if $ac_cache_corrupted; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2272 fi
2273 ## -------------------- ##
2274 ## Main body of script. ##
2275 ## -------------------- ##
2276
2277 ac_ext=c
2278 ac_cpp='$CPP $CPPFLAGS'
2279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282
2283
2284
2285
2286
2287
2288
2289
2290 progname=$0
2291 # if PWD already has a value, it is probably wrong.
2292 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2293
2294 # Export original configure arguments for use by sub-configures.
2295 # Quote arguments with shell meta charatcers.
2296 TOPLEVEL_CONFIGURE_ARGUMENTS=
2297 set -- "$progname" "$@"
2298 for ac_arg
2299 do
2300 case "$ac_arg" in
2301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2303 # if the argument is of the form -foo=baz, quote the baz part only
2304 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2305 *) ;;
2306 esac
2307 # Add the quoted argument to the list.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2309 done
2310 if test "$silent" = yes; then
2311 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2312 fi
2313 # Remove the initial space we just introduced and, as these will be
2314 # expanded by make, quote '$'.
2315 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2316
2317
2318 # Find the build, host, and target systems.
2319 ac_aux_dir=
2320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2321 if test -f "$ac_dir/install-sh"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c"
2324 break
2325 elif test -f "$ac_dir/install.sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c"
2328 break
2329 elif test -f "$ac_dir/shtool"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c"
2332 break
2333 fi
2334 done
2335 if test -z "$ac_aux_dir"; then
2336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337 fi
2338
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346
2347
2348 # Make sure we can run config.sub.
2349 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2350 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2351
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2353 $as_echo_n "checking build system type... " >&6; }
2354 if ${ac_cv_build+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 ac_build_alias=$build_alias
2358 test "x$ac_build_alias" = x &&
2359 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2360 test "x$ac_build_alias" = x &&
2361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2362 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2364
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2367 $as_echo "$ac_cv_build" >&6; }
2368 case $ac_cv_build in
2369 *-*-*) ;;
2370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2371 esac
2372 build=$ac_cv_build
2373 ac_save_IFS=$IFS; IFS='-'
2374 set x $ac_cv_build
2375 shift
2376 build_cpu=$1
2377 build_vendor=$2
2378 shift; shift
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2381 build_os=$*
2382 IFS=$ac_save_IFS
2383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2384
2385
2386 case ${build_alias} in
2387 "") build_noncanonical=${build} ;;
2388 *) build_noncanonical=${build_alias} ;;
2389 esac
2390
2391
2392
2393 case ${host_alias} in
2394 "") host_noncanonical=${build_noncanonical} ;;
2395 *) host_noncanonical=${host_alias} ;;
2396 esac
2397
2398
2399
2400 case ${target_alias} in
2401 "") target_noncanonical=${host_noncanonical} ;;
2402 *) target_noncanonical=${target_alias} ;;
2403 esac
2404
2405
2406
2407
2408 test "$host_noncanonical" = "$target_noncanonical" &&
2409 test "$program_prefix$program_suffix$program_transform_name" = \
2410 NONENONEs,x,x, &&
2411 program_transform_name=s,y,y,
2412
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2414 $as_echo_n "checking host system type... " >&6; }
2415 if ${ac_cv_host+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test "x$host_alias" = x; then
2419 ac_cv_host=$ac_cv_build
2420 else
2421 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2422 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2423 fi
2424
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2427 $as_echo "$ac_cv_host" >&6; }
2428 case $ac_cv_host in
2429 *-*-*) ;;
2430 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2431 esac
2432 host=$ac_cv_host
2433 ac_save_IFS=$IFS; IFS='-'
2434 set x $ac_cv_host
2435 shift
2436 host_cpu=$1
2437 host_vendor=$2
2438 shift; shift
2439 # Remember, the first character of IFS is used to create $*,
2440 # except with old shells:
2441 host_os=$*
2442 IFS=$ac_save_IFS
2443 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2444
2445
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2447 $as_echo_n "checking target system type... " >&6; }
2448 if ${ac_cv_target+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$target_alias" = x; then
2452 ac_cv_target=$ac_cv_host
2453 else
2454 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2456 fi
2457
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2460 $as_echo "$ac_cv_target" >&6; }
2461 case $ac_cv_target in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2464 esac
2465 target=$ac_cv_target
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_target
2468 shift
2469 target_cpu=$1
2470 target_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 target_os=$*
2475 IFS=$ac_save_IFS
2476 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2477
2478
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2483 NONENONEs,x,x, &&
2484 program_prefix=${target_alias}-
2485
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496
2497
2498 # Get 'install' or 'install-sh' and its variants.
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if ${ac_cv_path_install+:} false; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in #((
2526 ./ | .// | /[cC]/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2540 :
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 fi
2560 done
2561 done
2562 ;;
2563 esac
2564
2565 done
2566 IFS=$as_save_IFS
2567
2568 rm -rf conftest.one conftest.two conftest.dir
2569
2570 fi
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2579 fi
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2583
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2593 $as_echo_n "checking whether ln works... " >&6; }
2594 if ${acx_cv_prog_LN+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 rm -f conftestdata_t
2598 echo >conftestdata_f
2599 if ln conftestdata_f conftestdata_t 2>/dev/null
2600 then
2601 acx_cv_prog_LN=ln
2602 else
2603 acx_cv_prog_LN=no
2604 fi
2605 rm -f conftestdata_f conftestdata_t
2606
2607 fi
2608 if test $acx_cv_prog_LN = no; then
2609 LN="cp"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2611 $as_echo "no, using $LN" >&6; }
2612 else
2613 LN="$acx_cv_prog_LN"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 fi
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2619 $as_echo_n "checking whether ln -s works... " >&6; }
2620 LN_S=$as_ln_s
2621 if test "$LN_S" = "ln -s"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2623 $as_echo "yes" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2626 $as_echo "no, using $LN_S" >&6; }
2627 fi
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2630 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2631 if ${ac_cv_path_SED+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2635 for ac_i in 1 2 3 4 5 6 7; do
2636 ac_script="$ac_script$as_nl$ac_script"
2637 done
2638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2639 { ac_script=; unset ac_script;}
2640 if test -z "$SED"; then
2641 ac_path_SED_found=false
2642 # Loop through the user's path and test for each of PROGNAME-LIST
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_prog in sed gsed; do
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2651 as_fn_executable_p "$ac_path_SED" || continue
2652 # Check for GNU ac_path_SED and select it if it is found.
2653 # Check for GNU $ac_path_SED
2654 case `"$ac_path_SED" --version 2>&1` in
2655 *GNU*)
2656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2657 *)
2658 ac_count=0
2659 $as_echo_n 0123456789 >"conftest.in"
2660 while :
2661 do
2662 cat "conftest.in" "conftest.in" >"conftest.tmp"
2663 mv "conftest.tmp" "conftest.in"
2664 cp "conftest.in" "conftest.nl"
2665 $as_echo '' >> "conftest.nl"
2666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2668 as_fn_arith $ac_count + 1 && ac_count=$as_val
2669 if test $ac_count -gt ${ac_path_SED_max-0}; then
2670 # Best one so far, save it but keep looking for a better one
2671 ac_cv_path_SED="$ac_path_SED"
2672 ac_path_SED_max=$ac_count
2673 fi
2674 # 10*(2^10) chars as input seems more than enough
2675 test $ac_count -gt 10 && break
2676 done
2677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2678 esac
2679
2680 $ac_path_SED_found && break 3
2681 done
2682 done
2683 done
2684 IFS=$as_save_IFS
2685 if test -z "$ac_cv_path_SED"; then
2686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2687 fi
2688 else
2689 ac_cv_path_SED=$SED
2690 fi
2691
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2694 $as_echo "$ac_cv_path_SED" >&6; }
2695 SED="$ac_cv_path_SED"
2696 rm -f conftest.sed
2697
2698 for ac_prog in gawk mawk nawk awk
2699 do
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if ${ac_cv_prog_AWK+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$AWK"; then
2708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_AWK="$ac_prog"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 AWK=$ac_cv_prog_AWK
2728 if test -n "$AWK"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2730 $as_echo "$AWK" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 test -n "$AWK" && break
2738 done
2739
2740
2741 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2742
2743 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2744 # a relative path.
2745 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2746 INSTALL="${srcpwd}/install-sh -c"
2747 fi
2748
2749 # Set srcdir to "." if that's what it is.
2750 # This is important for multilib support.
2751 pwd=`${PWDCMD-pwd}`
2752 if test "${pwd}" = "${srcpwd}" ; then
2753 srcdir=.
2754 fi
2755
2756 topsrcdir=$srcpwd
2757
2758 extra_host_args=
2759
2760 ### To add a new directory to the tree, first choose whether it is a target
2761 ### or a host dependent tool. Then put it into the appropriate list
2762 ### (library or tools, host or target), doing a dependency sort.
2763
2764 # Subdirs will be configured in the order listed in build_configdirs,
2765 # configdirs, or target_configdirs; see the serialization section below.
2766
2767 # Dependency sorting is only needed when *configuration* must be done in
2768 # a particular order. In all cases a dependency should be specified in
2769 # the Makefile, whether or not it's implicitly specified here.
2770
2771 # Double entries in build_configdirs, configdirs, or target_configdirs may
2772 # cause circular dependencies and break everything horribly.
2773
2774 # these library is used by various programs built for the build
2775 # environment
2776 #
2777 build_libs="build-libiberty build-libcpp"
2778
2779 # these tools are built for the build environment
2780 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2781
2782 # these libraries are used by various programs built for the host environment
2783 #f
2784 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2785
2786 # these tools are built for the host environment
2787 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2788 # know that we are building the simulator.
2789 # binutils, gas and ld appear in that order because it makes sense to run
2790 # "make check" in that particular order.
2791 # If --enable-gold is used, "gold" may replace "ld".
2792 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2793
2794 # these libraries are built for the target environment, and are built after
2795 # the host libraries and the host tools (which may be a cross compiler)
2796 # Note that libiberty is not a target library.
2797 target_libraries="target-libgcc \
2798 target-libbacktrace \
2799 target-libgloss \
2800 target-newlib \
2801 target-libgomp \
2802 target-liboffloadmic \
2803 target-libhsail-rt \
2804 target-libatomic \
2805 target-libitm \
2806 target-libstdc++-v3 \
2807 target-libsanitizer \
2808 target-libvtv \
2809 target-libssp \
2810 target-libquadmath \
2811 target-libgfortran \
2812 target-libffi \
2813 target-libobjc \
2814 target-libada \
2815 target-libgo \
2816 target-libphobos \
2817 target-zlib"
2818
2819 # these tools are built using the target libraries, and are intended to
2820 # run only in the target environment
2821 #
2822 # note: any program that *uses* libraries that are in the "target_libraries"
2823 # list belongs in this list.
2824 #
2825 target_tools="target-rda"
2826
2827 ################################################################################
2828
2829 ## All tools belong in one of the four categories, and are assigned above
2830 ## We assign ${configdirs} this way to remove all embedded newlines. This
2831 ## is important because configure will choke if they ever get through.
2832 ## ${configdirs} is directories we build using the host tools.
2833 ## ${target_configdirs} is directories we build using the target tools.
2834 configdirs=`echo ${host_libs} ${host_tools}`
2835 target_configdirs=`echo ${target_libraries} ${target_tools}`
2836 build_configdirs=`echo ${build_libs} ${build_tools}`
2837
2838
2839
2840 ################################################################################
2841
2842 srcname="gnu development package"
2843
2844 # This gets set non-empty for some net releases of packages.
2845 appdirs=""
2846
2847 # Define is_cross_compiler to save on calls to 'test'.
2848 is_cross_compiler=
2849 if test x"${host}" = x"${target}" ; then
2850 is_cross_compiler=no
2851 else
2852 is_cross_compiler=yes
2853 fi
2854
2855 # Find the build and target subdir names.
2856
2857 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2858 # have matching libraries, they should use host libraries: Makefile.tpl
2859 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2860 # However, they still use the build modules, because the corresponding
2861 # host modules (e.g. bison) are only built for the host when bootstrap
2862 # finishes. So:
2863 # - build_subdir is where we find build modules, and never changes.
2864 # - build_libsubdir is where we find build libraries, and can be overridden.
2865
2866 # Prefix 'build-' so this never conflicts with target_subdir.
2867 build_subdir="build-${build_noncanonical}"
2868
2869 # Check whether --with-build-libsubdir was given.
2870 if test "${with_build_libsubdir+set}" = set; then :
2871 withval=$with_build_libsubdir; build_libsubdir="$withval"
2872 else
2873 build_libsubdir="$build_subdir"
2874 fi
2875
2876 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2877 if ( test $srcdir = . && test -d gcc ) \
2878 || test -d $srcdir/../host-${host_noncanonical}; then
2879 host_subdir="host-${host_noncanonical}"
2880 else
2881 host_subdir=.
2882 fi
2883 # No prefix.
2884 target_subdir=${target_noncanonical}
2885
2886 # Be sure to cover against remnants of an in-tree build.
2887 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2888 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2889 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2890 fi
2891
2892 # Skipdirs are removed silently.
2893 skipdirs=
2894 # Noconfigdirs are removed loudly.
2895 noconfigdirs=""
2896
2897 use_gnu_ld=
2898 # Make sure we don't let GNU ld be added if we didn't want it.
2899 if test x$with_gnu_ld = xno ; then
2900 use_gnu_ld=no
2901 noconfigdirs="$noconfigdirs ld gold"
2902 fi
2903
2904 use_gnu_as=
2905 # Make sure we don't let GNU as be added if we didn't want it.
2906 if test x$with_gnu_as = xno ; then
2907 use_gnu_as=no
2908 noconfigdirs="$noconfigdirs gas"
2909 fi
2910
2911 use_included_zlib=
2912
2913 # Check whether --with-system-zlib was given.
2914 if test "${with_system_zlib+set}" = set; then :
2915 withval=$with_system_zlib;
2916 fi
2917
2918 # Make sure we don't let ZLIB be added if we didn't want it.
2919 if test x$with_system_zlib = xyes ; then
2920 use_included_zlib=no
2921 noconfigdirs="$noconfigdirs zlib"
2922 fi
2923
2924 # some tools are so dependent upon X11 that if we're not building with X,
2925 # it's not even worth trying to configure, much less build, that tool.
2926
2927 case ${with_x} in
2928 yes | "") ;; # the default value for this tree is that X11 is available
2929 no)
2930 skipdirs="${skipdirs} tk itcl libgui"
2931 # We won't be able to build gdbtk without X.
2932 enable_gdbtk=no
2933 ;;
2934 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2935 esac
2936
2937 # Some are only suitable for cross toolchains.
2938 # Remove these if host=target.
2939 cross_only="target-libgloss target-newlib target-opcodes"
2940
2941 case $is_cross_compiler in
2942 no) skipdirs="${skipdirs} ${cross_only}" ;;
2943 esac
2944
2945 # If both --with-headers and --with-libs are specified, default to
2946 # --without-newlib.
2947 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2948 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2949 if test x"${with_newlib}" = x ; then
2950 with_newlib=no
2951 fi
2952 fi
2953
2954 # Recognize --with-newlib/--without-newlib.
2955 case ${with_newlib} in
2956 no) skipdirs="${skipdirs} target-newlib" ;;
2957 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2958 esac
2959
2960 # Check whether --enable-as-accelerator-for was given.
2961 if test "${enable_as_accelerator_for+set}" = set; then :
2962 enableval=$enable_as_accelerator_for;
2963 fi
2964
2965
2966 # Check whether --enable-offload-targets was given.
2967 if test "${enable_offload_targets+set}" = set; then :
2968 enableval=$enable_offload_targets;
2969 if test x"$enable_offload_targets" = x; then
2970 as_fn_error $? "no offload targets specified" "$LINENO" 5
2971 fi
2972
2973 else
2974 enable_offload_targets=
2975 fi
2976
2977
2978 # Handle --enable-gold, --enable-ld.
2979 # --disable-gold [--enable-ld]
2980 # Build only ld. Default option.
2981 # --enable-gold [--enable-ld]
2982 # Build both gold and ld. Install gold as "ld.gold", install ld
2983 # as "ld.bfd" and "ld".
2984 # --enable-gold=default [--enable-ld]
2985 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2986 # install ld as "ld.bfd".
2987 # --enable-gold[=default] --disable-ld
2988 # Build only gold, which is then installed as both "ld.gold" and "ld".
2989 # --enable-gold --enable-ld=default
2990 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2991 # and ld.bfd).
2992 # In other words, ld is default
2993 # --enable-gold=default --enable-ld=default
2994 # Error.
2995
2996 default_ld=
2997 # Check whether --enable-gold was given.
2998 if test "${enable_gold+set}" = set; then :
2999 enableval=$enable_gold; ENABLE_GOLD=$enableval
3000 else
3001 ENABLE_GOLD=no
3002 fi
3003
3004 case "${ENABLE_GOLD}" in
3005 yes|default)
3006 # Check for ELF target.
3007 is_elf=no
3008 case "${target}" in
3009 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3010 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3011 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3012 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3013 case "${target}" in
3014 *-*-linux*aout* | *-*-linux*oldld*)
3015 ;;
3016 *)
3017 is_elf=yes
3018 ;;
3019 esac
3020 esac
3021
3022 if test "$is_elf" = "yes"; then
3023 # Check for target supported by gold.
3024 case "${target}" in
3025 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3026 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3027 configdirs="$configdirs gold"
3028 if test x${ENABLE_GOLD} = xdefault; then
3029 default_ld=gold
3030 fi
3031 ENABLE_GOLD=yes
3032 ;;
3033 esac
3034 fi
3035 ;;
3036 no)
3037 ;;
3038 *)
3039 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3040 ;;
3041 esac
3042
3043 # Check whether --enable-ld was given.
3044 if test "${enable_ld+set}" = set; then :
3045 enableval=$enable_ld; ENABLE_LD=$enableval
3046 else
3047 ENABLE_LD=yes
3048 fi
3049
3050
3051 case "${ENABLE_LD}" in
3052 default)
3053 if test x${default_ld} != x; then
3054 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3055 fi
3056 ;;
3057 yes)
3058 ;;
3059 no)
3060 if test x${ENABLE_GOLD} != xyes; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3062 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3063 fi
3064 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3065 ;;
3066 *)
3067 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3068 ;;
3069 esac
3070
3071 # PR gas/19109
3072 # Decide the default method for compressing debug sections.
3073 # Provide a configure time option to override our default.
3074 # Check whether --enable-compressed_debug_sections was given.
3075 if test "${enable_compressed_debug_sections+set}" = set; then :
3076 enableval=$enable_compressed_debug_sections;
3077 if test x"$enable_compressed_debug_sections" = xyes; then
3078 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3079 fi
3080
3081 else
3082 enable_compressed_debug_sections=
3083 fi
3084
3085
3086 # Configure extra directories which are host specific
3087
3088 case "${host}" in
3089 *-cygwin*)
3090 configdirs="$configdirs libtermcap" ;;
3091 esac
3092
3093 # A target can indicate whether a language isn't supported for some reason.
3094 # Only spaces may be used in this macro; not newlines or tabs.
3095 unsupported_languages=
3096
3097 # Remove more programs from consideration, based on the host or
3098 # target this usually means that a port of the program doesn't
3099 # exist yet.
3100
3101 case "${host}" in
3102 i[3456789]86-*-msdosdjgpp*)
3103 noconfigdirs="$noconfigdirs tcl tk itcl"
3104 ;;
3105 esac
3106
3107
3108 # Check whether --enable-libquadmath was given.
3109 if test "${enable_libquadmath+set}" = set; then :
3110 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3111 else
3112 ENABLE_LIBQUADMATH=yes
3113 fi
3114
3115 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3116 noconfigdirs="$noconfigdirs target-libquadmath"
3117 fi
3118
3119
3120 # Check whether --enable-libquadmath-support was given.
3121 if test "${enable_libquadmath_support+set}" = set; then :
3122 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3123 else
3124 ENABLE_LIBQUADMATH_SUPPORT=yes
3125 fi
3126
3127 enable_libquadmath_support=
3128 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3129 enable_libquadmath_support=no
3130 fi
3131
3132
3133 # Check whether --enable-libada was given.
3134 if test "${enable_libada+set}" = set; then :
3135 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3136 else
3137 ENABLE_LIBADA=yes
3138 fi
3139
3140 if test "${ENABLE_LIBADA}" != "yes" ; then
3141 noconfigdirs="$noconfigdirs gnattools"
3142 fi
3143
3144 # Check whether --enable-libssp was given.
3145 if test "${enable_libssp+set}" = set; then :
3146 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3147 else
3148 ENABLE_LIBSSP=yes
3149 fi
3150
3151
3152 # Check whether --enable-libstdcxx was given.
3153 if test "${enable_libstdcxx+set}" = set; then :
3154 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3155 else
3156 ENABLE_LIBSTDCXX=default
3157 fi
3158
3159 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3160 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3161 fi
3162
3163 # If this is accelerator compiler and its target is intelmic we enable
3164 # target liboffloadmic by default. If this is compiler with offloading
3165 # for intelmic we enable host liboffloadmic by default. Otherwise
3166 # liboffloadmic is disabled by default.
3167 # Check whether --enable-liboffloadmic was given.
3168 if test "${enable_liboffloadmic+set}" = set; then :
3169 enableval=$enable_liboffloadmic; case "$enableval" in
3170 no | host | target)
3171 enable_liboffloadmic=$enableval ;;
3172 *)
3173 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3174 esac
3175 else
3176 if test x"$enable_as_accelerator_for" != x; then
3177 case "${target}" in
3178 *-intelmic-* | *-intelmicemul-*)
3179 enable_liboffloadmic=target
3180 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3181 ;;
3182 *)
3183 enable_liboffloadmic=no
3184 ;;
3185 esac
3186 else
3187 case "${enable_offload_targets}" in
3188 *-intelmic-* | *-intelmicemul-*)
3189 enable_liboffloadmic=host
3190 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3191 ;;
3192 *)
3193 enable_liboffloadmic=no
3194 ;;
3195 esac
3196 fi
3197 fi
3198
3199
3200
3201 # Enable libgomp by default on hosted POSIX systems, and a few others.
3202 if test x$enable_libgomp = x ; then
3203 case "${target}" in
3204 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3205 ;;
3206 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3207 ;;
3208 *-*-solaris2* | *-*-hpux11*)
3209 ;;
3210 *-*-darwin* | *-*-aix*)
3211 ;;
3212 nvptx*-*-*)
3213 ;;
3214 *)
3215 noconfigdirs="$noconfigdirs target-libgomp"
3216 ;;
3217 esac
3218 fi
3219
3220 # Disable libatomic on unsupported systems.
3221 if test -d ${srcdir}/libatomic; then
3222 if test x$enable_libatomic = x; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3224 $as_echo_n "checking for libatomic support... " >&6; }
3225 if (srcdir=${srcdir}/libatomic; \
3226 . ${srcdir}/configure.tgt; \
3227 test -n "$UNSUPPORTED")
3228 then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 noconfigdirs="$noconfigdirs target-libatomic"
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3235 fi
3236 fi
3237 fi
3238
3239 # Disable liboffloadmic on unsupported systems.
3240 if test -d ${srcdir}/liboffloadmic; then
3241 if test x$enable_liboffloadmic != xno; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3243 $as_echo_n "checking for liboffloadmic support... " >&6; }
3244 if (srcdir=${srcdir}/liboffloadmic; \
3245 . ${srcdir}/configure.tgt; \
3246 test -n "$UNSUPPORTED")
3247 then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 noconfigdirs="$noconfigdirs target-liboffloadmic"
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3254 fi
3255 fi
3256 fi
3257
3258 # Disable libitm on unsupported systems.
3259 if test -d ${srcdir}/libitm; then
3260 if test x$enable_libitm = x; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3262 $as_echo_n "checking for libitm support... " >&6; }
3263 if (srcdir=${srcdir}/libitm; \
3264 . ${srcdir}/configure.tgt; \
3265 test -n "$UNSUPPORTED")
3266 then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 noconfigdirs="$noconfigdirs target-libitm"
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3273 fi
3274 fi
3275 fi
3276
3277 # Disable libsanitizer on unsupported systems.
3278 if test -d ${srcdir}/libsanitizer; then
3279 if test x$enable_libsanitizer = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281 $as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir=${srcdir}/libsanitizer; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libsanitizer"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292 fi
3293 fi
3294 fi
3295
3296 # Disable libvtv on unsupported systems.
3297 if test -d ${srcdir}/libvtv; then
3298 if test x$enable_libvtv = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300 $as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir=${srcdir}/libvtv; \
3302 . ${srcdir}/configure.tgt; \
3303 test "$VTV_SUPPORTED" != "yes")
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libvtv"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311 fi
3312 fi
3313 fi
3314
3315
3316 # Disable libhsail-rt on unsupported systems.
3317 if test -d ${srcdir}/libhsail-rt; then
3318 if test x$enable_libhsail_rt = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3320 $as_echo_n "checking for libhsail-rt support... " >&6; }
3321 if (srcdir=${srcdir}/libhsail-rt; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 unsupported_languages="$unsupported_languages brig"
3328 # This implicitly disables also target-libhsail-rt as it won't
3329 # get added to the build without BRIG FE.
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 fi
3334 fi
3335 fi
3336
3337
3338 # Disable libquadmath for some systems.
3339 case "${target}" in
3340 avr-*-*)
3341 noconfigdirs="$noconfigdirs target-libquadmath"
3342 ;;
3343 # libquadmath is unused on AIX and libquadmath build process use of
3344 # LD_LIBRARY_PATH can break AIX bootstrap.
3345 powerpc-*-aix* | rs6000-*-aix*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
3348 esac
3349
3350 # Disable libssp for some systems.
3351 case "${target}" in
3352 avr-*-*)
3353 # No hosted I/O support.
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 powerpc-*-aix* | rs6000-*-aix*)
3357 noconfigdirs="$noconfigdirs target-libssp"
3358 ;;
3359 rl78-*-*)
3360 # libssp uses a misaligned load to trigger a fault, but the RL78
3361 # doesn't fault for those - instead, it gives a build-time error
3362 # for explicit misaligned loads.
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
3365 visium-*-*)
3366 # No hosted I/O support.
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
3369 esac
3370
3371 # Disable libstdc++-v3 for some systems.
3372 # Allow user to override this if they pass --enable-libstdc++-v3
3373 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3374 case "${target}" in
3375 *-*-vxworks*)
3376 # VxWorks uses the Dinkumware C++ library.
3377 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 ;;
3379 arm*-wince-pe*)
3380 # the C++ libraries don't build on top of CE's C libraries
3381 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3382 ;;
3383 avr-*-*)
3384 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3385 ;;
3386 ft32-*-*)
3387 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3388 ;;
3389 esac
3390 fi
3391
3392 # Disable D on systems where it is known to not work.
3393 # For testing, you can override this with --enable-languages=d.
3394 case ,${enable_languages}, in
3395 *,d,*)
3396 ;;
3397 *)
3398 case "${target}" in
3399 *-*-darwin*)
3400 unsupported_languages="$unsupported_languages d"
3401 ;;
3402 esac
3403 ;;
3404 esac
3405
3406 # Disable libphobos on unsupported systems.
3407 # For testing, you can override this with --enable-libphobos.
3408 if test -d ${srcdir}/libphobos; then
3409 if test x$enable_libphobos = x; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3411 $as_echo_n "checking for libphobos support... " >&6; }
3412 if (srcdir=${srcdir}/libphobos; \
3413 . ${srcdir}/configure.tgt; \
3414 test "$LIBPHOBOS_SUPPORTED" != "yes")
3415 then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 noconfigdirs="$noconfigdirs target-libphobos"
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 $as_echo "yes" >&6; }
3422 fi
3423 fi
3424 fi
3425
3426 # Disable Fortran for some systems.
3427 case "${target}" in
3428 mmix-*-*)
3429 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3430 unsupported_languages="$unsupported_languages fortran"
3431 ;;
3432 esac
3433
3434 # Disable libffi for some systems.
3435 case "${target}" in
3436 powerpc-*-darwin*)
3437 ;;
3438 i[3456789]86-*-darwin*)
3439 ;;
3440 x86_64-*-darwin[912]*)
3441 ;;
3442 *-*-darwin*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 *-*-netware*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 *-*-phoenix*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-rtems*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454 *-*-tpf*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3456 ;;
3457 *-*-uclinux*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3459 ;;
3460 *-*-vxworks*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 aarch64*-*-freebsd*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 alpha*-*-*vms*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 arm*-*-freebsd*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 arm-wince-pe)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 arm*-*-symbianelf*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 cris-*-* | crisv32-*-*)
3479 case "${target}" in
3480 *-*-linux*)
3481 ;;
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs="$noconfigdirs target-libffi";;
3484 esac
3485 ;;
3486 hppa*64*-*-hpux*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
3489 hppa*-hp-hpux11*)
3490 ;;
3491 hppa*-*-hpux*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 ia64*-*-*vms*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 i[3456789]86-w64-mingw*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 i[3456789]86-*-mingw*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 x86_64-*-mingw*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 mmix-*-*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 powerpc-*-aix*)
3510 ;;
3511 rs6000-*-aix*)
3512 ;;
3513 ft32-*-*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-lynxos*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 esac
3520
3521 # Disable the go frontend on systems where it is known to not work. Please keep
3522 # this in sync with contrib/config-list.mk.
3523 case "${target}" in
3524 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3525 unsupported_languages="$unsupported_languages go"
3526 ;;
3527 esac
3528
3529 # Disable libgo for some systems where it is known to not work.
3530 # For testing, you can easily override this with --enable-libgo.
3531 if test x$enable_libgo = x; then
3532 case "${target}" in
3533 *-*-darwin*)
3534 # PR 46986
3535 noconfigdirs="$noconfigdirs target-libgo"
3536 ;;
3537 *-*-cygwin* | *-*-mingw*)
3538 noconfigdirs="$noconfigdirs target-libgo"
3539 ;;
3540 esac
3541 fi
3542
3543 # Default libgloss CPU subdirectory.
3544 libgloss_dir="$target_cpu"
3545
3546 case "${target}" in
3547 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3548 libgloss_dir=wince
3549 ;;
3550 aarch64*-*-* )
3551 libgloss_dir=aarch64
3552 ;;
3553 arm*-*-*)
3554 libgloss_dir=arm
3555 ;;
3556 cris-*-* | crisv32-*-*)
3557 libgloss_dir=cris
3558 ;;
3559 hppa*-*-*)
3560 libgloss_dir=pa
3561 ;;
3562 i[3456789]86-*-*)
3563 libgloss_dir=i386
3564 ;;
3565 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3566 libgloss_dir=m68hc11
3567 ;;
3568 m68*-*-* | fido-*-*)
3569 libgloss_dir=m68k
3570 ;;
3571 mips*-*-*)
3572 libgloss_dir=mips
3573 ;;
3574 powerpc*-*-*)
3575 libgloss_dir=rs6000
3576 ;;
3577 sparc*-*-*)
3578 libgloss_dir=sparc
3579 ;;
3580 esac
3581
3582 # Disable newlib and libgloss for various target OSes.
3583 case "${target}" in
3584 alpha*-dec-osf*)
3585 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3586 ;;
3587 i[3456789]86-*-linux*)
3588 # This section makes it possible to build newlib natively on linux.
3589 # If we are using a cross compiler then don't configure newlib.
3590 if test x${is_cross_compiler} != xno ; then
3591 noconfigdirs="$noconfigdirs target-newlib"
3592 fi
3593 noconfigdirs="$noconfigdirs target-libgloss"
3594 # If we are not using a cross compiler, do configure newlib.
3595 # Note however, that newlib will only be configured in this situation
3596 # if the --with-newlib option has been given, because otherwise
3597 # 'target-newlib' will appear in skipdirs.
3598 ;;
3599 i[3456789]86-*-rdos*)
3600 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 ;;
3602 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3604 ;;
3605 sparc-*-sunos4*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3607 ;;
3608 *-*-aix*)
3609 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3610 ;;
3611 *-*-beos*)
3612 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3613 ;;
3614 *-*-chorusos)
3615 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 ;;
3617 *-*-dragonfly*)
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 ;;
3620 *-*-freebsd*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 ;;
3623 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626 *-*-lynxos*)
3627 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 ;;
3629 *-*-mingw*)
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 ;;
3632 *-*-netbsd*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 ;;
3635 *-*-netware*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 ;;
3638 *-*-tpf*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 *-*-uclinux*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 *-*-vxworks*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 esac
3648
3649 case "${target}" in
3650 *-*-chorusos)
3651 ;;
3652 aarch64-*-darwin*)
3653 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3654 noconfigdirs="$noconfigdirs sim target-rda"
3655 ;;
3656 amdgcn*-*-*)
3657 ;;
3658 arm-*-darwin*)
3659 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3660 noconfigdirs="$noconfigdirs sim target-rda"
3661 ;;
3662 powerpc-*-darwin*)
3663 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3664 noconfigdirs="$noconfigdirs sim target-rda"
3665 ;;
3666 i[3456789]86-*-darwin*)
3667 noconfigdirs="$noconfigdirs ld gprof"
3668 noconfigdirs="$noconfigdirs sim target-rda"
3669 ;;
3670 x86_64-*-darwin[912]*)
3671 noconfigdirs="$noconfigdirs ld gas gprof"
3672 noconfigdirs="$noconfigdirs sim target-rda"
3673 ;;
3674 *-*-darwin*)
3675 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3676 noconfigdirs="$noconfigdirs sim target-rda"
3677 ;;
3678 *-*-dragonfly*)
3679 ;;
3680 *-*-freebsd*)
3681 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3682 && test -f /usr/local/include/gmp.h; then
3683 with_gmp=/usr/local
3684 fi
3685 ;;
3686 *-*-kaos*)
3687 # Remove unsupported stuff on all kaOS configurations.
3688 noconfigdirs="$noconfigdirs target-libgloss"
3689 ;;
3690 *-*-netbsd*)
3691 ;;
3692 *-*-netware*)
3693 ;;
3694 *-*-phoenix*)
3695 noconfigdirs="$noconfigdirs target-libgloss"
3696 ;;
3697 *-*-rtems*)
3698 noconfigdirs="$noconfigdirs target-libgloss"
3699 ;;
3700 # The tpf target doesn't support gdb yet.
3701 *-*-tpf*)
3702 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3703 ;;
3704 *-*-uclinux*)
3705 noconfigdirs="$noconfigdirs target-rda"
3706 ;;
3707 *-*-vxworks*)
3708 ;;
3709 alpha*-dec-osf*)
3710 # ld works, but does not support shared libraries.
3711 # gas doesn't generate exception information.
3712 noconfigdirs="$noconfigdirs gas ld"
3713 ;;
3714 alpha*-*-*vms*)
3715 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3716 ;;
3717 alpha*-*-*)
3718 # newlib is not 64 bit ready
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3722 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3723 ;;
3724 arc*-*-*)
3725 noconfigdirs="$noconfigdirs sim"
3726 ;;
3727 arm-*-pe*)
3728 noconfigdirs="$noconfigdirs target-libgloss"
3729 ;;
3730 arm-*-riscix*)
3731 noconfigdirs="$noconfigdirs ld target-libgloss"
3732 ;;
3733 avr-*-*)
3734 if test x${with_avrlibc} != xno; then
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 fi
3737 ;;
3738 c4x-*-* | tic4x-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 ;;
3741 tic54x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss gdb"
3743 ;;
3744 d10v-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss"
3746 ;;
3747 d30v-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3749 ;;
3750 fr30-*-elf*)
3751 noconfigdirs="$noconfigdirs gdb"
3752 ;;
3753 ft32-*-*)
3754 noconfigdirs="$noconfigdirs target-rda gprof"
3755 ;;
3756 moxie-*-*)
3757 noconfigdirs="$noconfigdirs"
3758 ;;
3759 h8300*-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 ;;
3762 h8500-*-*)
3763 noconfigdirs="$noconfigdirs target-libgloss"
3764 ;;
3765 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3766 ;;
3767 hppa*64*-*-hpux*)
3768 noconfigdirs="$noconfigdirs gdb"
3769 ;;
3770 hppa*-*-hpux11*)
3771 noconfigdirs="$noconfigdirs gdb ld"
3772 ;;
3773 hppa*64*-*-linux*)
3774 ;;
3775 hppa*-*-linux*)
3776 ;;
3777 hppa*-*-*elf* | \
3778 hppa*-*-lites* | \
3779 hppa*-*-openbsd* | \
3780 hppa*64*-*-*)
3781 ;;
3782 hppa*-*-pro*)
3783 ;;
3784 hppa*-*-*)
3785 noconfigdirs="$noconfigdirs ld"
3786 ;;
3787 i960-*-*)
3788 noconfigdirs="$noconfigdirs gdb"
3789 ;;
3790 ia64*-*-elf*)
3791 # No gdb support yet.
3792 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3793 ;;
3794 ia64*-**-hpux*)
3795 # No ld support yet.
3796 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3797 ;;
3798 ia64*-*-*vms*)
3799 # No ld support yet.
3800 noconfigdirs="$noconfigdirs libgui itcl ld"
3801 ;;
3802 i[3456789]86-w64-mingw*)
3803 ;;
3804 i[3456789]86-*-mingw*)
3805 target_configdirs="$target_configdirs target-winsup"
3806 ;;
3807 *-*-cygwin*)
3808 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3809 noconfigdirs="$noconfigdirs target-libgloss"
3810 # always build newlib if winsup directory is present.
3811 if test -d "$srcdir/winsup/cygwin"; then
3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3813 elif test -d "$srcdir/newlib"; then
3814 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3815 fi
3816 ;;
3817 i[3456789]86-*-pe)
3818 noconfigdirs="$noconfigdirs target-libgloss"
3819 ;;
3820 i[3456789]86-*-sco3.2v5*)
3821 # The linker does not yet know about weak symbols in COFF,
3822 # and is not configured to handle mixed ELF and COFF.
3823 noconfigdirs="$noconfigdirs ld target-libgloss"
3824 ;;
3825 i[3456789]86-*-sco*)
3826 noconfigdirs="$noconfigdirs gprof target-libgloss"
3827 ;;
3828 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3829 noconfigdirs="$noconfigdirs target-libgloss"
3830 ;;
3831 i[3456789]86-*-sysv4*)
3832 noconfigdirs="$noconfigdirs target-libgloss"
3833 ;;
3834 i[3456789]86-*-beos*)
3835 noconfigdirs="$noconfigdirs gdb"
3836 ;;
3837 i[3456789]86-*-rdos*)
3838 noconfigdirs="$noconfigdirs gdb"
3839 ;;
3840 mmix-*-*)
3841 noconfigdirs="$noconfigdirs gdb"
3842 ;;
3843 mt-*-*)
3844 noconfigdirs="$noconfigdirs sim"
3845 ;;
3846 nfp-*-*)
3847 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3848 noconfigdirs="$noconfigdirs $target_libraries"
3849 ;;
3850 powerpc-*-aix*)
3851 # copied from rs6000-*-* entry
3852 noconfigdirs="$noconfigdirs gprof"
3853 ;;
3854 powerpc*-*-winnt* | powerpc*-*-pe*)
3855 target_configdirs="$target_configdirs target-winsup"
3856 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3857 # always build newlib.
3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3859 ;;
3860 # This is temporary until we can link against shared libraries
3861 powerpcle-*-solaris*)
3862 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3863 ;;
3864 powerpc-*-beos*)
3865 noconfigdirs="$noconfigdirs gdb"
3866 ;;
3867 rs6000-*-lynxos*)
3868 noconfigdirs="$noconfigdirs gprof"
3869 ;;
3870 rs6000-*-aix*)
3871 noconfigdirs="$noconfigdirs gprof"
3872 ;;
3873 rs6000-*-*)
3874 noconfigdirs="$noconfigdirs gprof"
3875 ;;
3876 m68k-apollo-*)
3877 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3878 ;;
3879 microblaze*)
3880 noconfigdirs="$noconfigdirs gprof"
3881 ;;
3882 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3883 if test x$with_newlib = xyes; then
3884 noconfigdirs="$noconfigdirs gprof"
3885 fi
3886 ;;
3887 mips*-*-irix5*)
3888 noconfigdirs="$noconfigdirs gprof target-libgloss"
3889 ;;
3890 mips*-*-irix6*)
3891 noconfigdirs="$noconfigdirs gprof target-libgloss"
3892 ;;
3893 mips*-*-bsd*)
3894 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3895 ;;
3896 mips*-*-linux*)
3897 ;;
3898 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3899 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3900 noconfigdirs="$noconfigdirs ld gas gprof"
3901 ;;
3902 mips*-*-*)
3903 noconfigdirs="$noconfigdirs gprof"
3904 ;;
3905 nvptx*-*-*)
3906 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3907 ;;
3908 sh-*-*)
3909 case "${target}" in
3910 sh*-*-elf)
3911 ;;
3912 *)
3913 noconfigdirs="$noconfigdirs target-libgloss" ;;
3914 esac
3915 ;;
3916 sparc-*-sunos4*)
3917 if test x${is_cross_compiler} = xno ; then
3918 use_gnu_ld=no
3919 fi
3920 ;;
3921 tic6x-*-*)
3922 noconfigdirs="$noconfigdirs sim"
3923 ;;
3924 tilepro*-*-* | tilegx*-*-*)
3925 noconfigdirs="$noconfigdirs sim"
3926 ;;
3927 v810-*-*)
3928 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3929 ;;
3930 vax-*-*)
3931 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3932 ;;
3933 wasm32-*-*)
3934 noconfigdirs="$noconfigdirs ld"
3935 ;;
3936 esac
3937
3938 # If we aren't building newlib, then don't build libgloss, since libgloss
3939 # depends upon some newlib header files.
3940 case "${noconfigdirs}" in
3941 *target-libgloss*) ;;
3942 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3943 esac
3944
3945 # Work in distributions that contain no compiler tools, like Autoconf.
3946 host_makefile_frag=/dev/null
3947 if test -d ${srcdir}/config ; then
3948 case "${host}" in
3949 i[3456789]86-*-msdosdjgpp*)
3950 host_makefile_frag="config/mh-djgpp"
3951 ;;
3952 *-cygwin*)
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3955 $as_echo_n "checking to see if cat works as expected... " >&6; }
3956 echo a >cygwin-cat-check
3957 if test `cat cygwin-cat-check` = a ; then
3958 rm cygwin-cat-check
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 $as_echo "yes" >&6; }
3961 else
3962 rm cygwin-cat-check
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 as_fn_error $? "The cat command does not ignore carriage return characters.
3966 Please either mount the build directory in binary mode or run the following
3967 commands before running any configure script:
3968 set -o igncr
3969 export SHELLOPTS
3970 " "$LINENO" 5
3971 fi
3972
3973 host_makefile_frag="config/mh-cygwin"
3974 ;;
3975 *-mingw*)
3976 host_makefile_frag="config/mh-mingw"
3977 ;;
3978 alpha*-linux*)
3979 host_makefile_frag="config/mh-alpha-linux"
3980 ;;
3981 hppa*-hp-hpux10*)
3982 host_makefile_frag="config/mh-pa-hpux10"
3983 ;;
3984 hppa*-hp-hpux*)
3985 host_makefile_frag="config/mh-pa"
3986 ;;
3987 hppa*-*)
3988 host_makefile_frag="config/mh-pa"
3989 ;;
3990 *-*-darwin*)
3991 host_makefile_frag="config/mh-darwin"
3992 ;;
3993 powerpc-*-aix*)
3994 host_makefile_frag="config/mh-ppc-aix"
3995 ;;
3996 rs6000-*-aix*)
3997 host_makefile_frag="config/mh-ppc-aix"
3998 ;;
3999 esac
4000 fi
4001
4002 if test "${build}" != "${host}" ; then
4003 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4004 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4005 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4006 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4007 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4008 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4009 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4010 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4011 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4012 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4013 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4014 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4015 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4016 else
4017 AR_FOR_BUILD="\$(AR)"
4018 AS_FOR_BUILD="\$(AS)"
4019 CC_FOR_BUILD="\$(CC)"
4020 CXX_FOR_BUILD="\$(CXX)"
4021 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4022 GOC_FOR_BUILD="\$(GOC)"
4023 GDC_FOR_BUILD="\$(GDC)"
4024 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4025 LD_FOR_BUILD="\$(LD)"
4026 NM_FOR_BUILD="\$(NM)"
4027 RANLIB_FOR_BUILD="\$(RANLIB)"
4028 WINDRES_FOR_BUILD="\$(WINDRES)"
4029 WINDMC_FOR_BUILD="\$(WINDMC)"
4030 fi
4031
4032 ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037 if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if ${ac_cv_prog_CC+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059 done
4060 done
4061 IFS=$as_save_IFS
4062
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068 $as_echo "$CC" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4072 fi
4073
4074
4075 fi
4076 if test -z "$ac_cv_prog_CC"; then
4077 ac_ct_CC=$CC
4078 # Extract the first word of "gcc", so it can be a program name with args.
4079 set dummy gcc; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_ac_ct_CC="gcc"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106 if test -n "$ac_ct_CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108 $as_echo "$ac_ct_CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114 if test "x$ac_ct_CC" = x; then
4115 CC=""
4116 else
4117 case $cross_compiling:$ac_tool_warned in
4118 yes:)
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4121 ac_tool_warned=yes ;;
4122 esac
4123 CC=$ac_ct_CC
4124 fi
4125 else
4126 CC="$ac_cv_prog_CC"
4127 fi
4128
4129 if test -z "$CC"; then
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}cc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_CC+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_CC="${ac_tool_prefix}cc"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4151 fi
4152 done
4153 done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 CC=$ac_cv_prog_CC
4159 if test -n "$CC"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4161 $as_echo "$CC" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168 fi
4169 fi
4170 if test -z "$CC"; then
4171 # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_CC+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 ac_prog_rejected=no
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4190 ac_prog_rejected=yes
4191 continue
4192 fi
4193 ac_cv_prog_CC="cc"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197 done
4198 done
4199 IFS=$as_save_IFS
4200
4201 if test $ac_prog_rejected = yes; then
4202 # We found a bogon in the path, so make sure we never use it.
4203 set dummy $ac_cv_prog_CC
4204 shift
4205 if test $# != 0; then
4206 # We chose a different compiler from the bogus one.
4207 # However, it has the same basename, so the bogon will be chosen
4208 # first if we set CC to just the basename; use the full file name.
4209 shift
4210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4211 fi
4212 fi
4213 fi
4214 fi
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225 fi
4226 if test -z "$CC"; then
4227 if test -n "$ac_tool_prefix"; then
4228 for ac_prog in cl.exe
4229 do
4230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if ${ac_cv_prog_CC+:} false; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253 IFS=$as_save_IFS
4254
4255 fi
4256 fi
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260 $as_echo "$CC" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4264 fi
4265
4266
4267 test -n "$CC" && break
4268 done
4269 fi
4270 if test -z "$CC"; then
4271 ac_ct_CC=$CC
4272 for ac_prog in cl.exe
4273 do
4274 # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$ac_ct_CC"; then
4282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_ac_ct_CC="$ac_prog"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4302 if test -n "$ac_ct_CC"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4304 $as_echo "$ac_ct_CC" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310
4311 test -n "$ac_ct_CC" && break
4312 done
4313
4314 if test "x$ac_ct_CC" = x; then
4315 CC=""
4316 else
4317 case $cross_compiling:$ac_tool_warned in
4318 yes:)
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4321 ac_tool_warned=yes ;;
4322 esac
4323 CC=$ac_ct_CC
4324 fi
4325 fi
4326
4327 fi
4328
4329
4330 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 as_fn_error $? "no acceptable C compiler found in \$PATH
4333 See \`config.log' for more details" "$LINENO" 5; }
4334
4335 # Provide some information about the compiler.
4336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4337 set X $ac_compile
4338 ac_compiler=$2
4339 for ac_option in --version -v -V -qversion; do
4340 { { ac_try="$ac_compiler $ac_option >&5"
4341 case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4348 ac_status=$?
4349 if test -s conftest.err; then
4350 sed '10a\
4351 ... rest of stderr output deleted ...
4352 10q' conftest.err >conftest.er1
4353 cat conftest.er1 >&5
4354 fi
4355 rm -f conftest.er1 conftest.err
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }
4358 done
4359
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362
4363 int
4364 main ()
4365 {
4366
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 ac_clean_files_save=$ac_clean_files
4372 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4373 # Try to create an executable without -o first, disregard a.out.
4374 # It will help us diagnose broken compilers, and finding out an intuition
4375 # of exeext.
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4377 $as_echo_n "checking whether the C compiler works... " >&6; }
4378 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4379
4380 # The possible output files:
4381 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4382
4383 ac_rmfiles=
4384 for ac_file in $ac_files
4385 do
4386 case $ac_file in
4387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4388 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4389 esac
4390 done
4391 rm -f $ac_rmfiles
4392
4393 if { { ac_try="$ac_link_default"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_link_default") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; then :
4404 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4405 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4406 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4407 # so that the user can short-circuit this test for compilers unknown to
4408 # Autoconf.
4409 for ac_file in $ac_files ''
4410 do
4411 test -f "$ac_file" || continue
4412 case $ac_file in
4413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4414 ;;
4415 [ab].out )
4416 # We found the default executable, but exeext='' is most
4417 # certainly right.
4418 break;;
4419 *.* )
4420 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4421 then :; else
4422 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4423 fi
4424 # We set ac_cv_exeext here because the later test for it is not
4425 # safe: cross compilers may not add the suffix if given an `-o'
4426 # argument, so we may need to know it at that point already.
4427 # Even if this section looks crufty: it has the advantage of
4428 # actually working.
4429 break;;
4430 * )
4431 break;;
4432 esac
4433 done
4434 test "$ac_cv_exeext" = no && ac_cv_exeext=
4435
4436 else
4437 ac_file=''
4438 fi
4439 if test -z "$ac_file"; then :
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 $as_echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error 77 "C compiler cannot create executables
4448 See \`config.log' for more details" "$LINENO" 5; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4451 $as_echo "yes" >&6; }
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4454 $as_echo_n "checking for C compiler default output file name... " >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4456 $as_echo "$ac_file" >&6; }
4457 ac_exeext=$ac_cv_exeext
4458
4459 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4460 ac_clean_files=$ac_clean_files_save
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4462 $as_echo_n "checking for suffix of executables... " >&6; }
4463 if { { ac_try="$ac_link"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_link") 2>&5
4471 ac_status=$?
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }; then :
4474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4475 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4476 # work properly (i.e., refer to `conftest.exe'), while it won't with
4477 # `rm'.
4478 for ac_file in conftest.exe conftest conftest.*; do
4479 test -f "$ac_file" || continue
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483 break;;
4484 * ) break;;
4485 esac
4486 done
4487 else
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4491 See \`config.log' for more details" "$LINENO" 5; }
4492 fi
4493 rm -f conftest conftest$ac_cv_exeext
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4495 $as_echo "$ac_cv_exeext" >&6; }
4496
4497 rm -f conftest.$ac_ext
4498 EXEEXT=$ac_cv_exeext
4499 ac_exeext=$EXEEXT
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4502 #include <stdio.h>
4503 int
4504 main ()
4505 {
4506 FILE *f = fopen ("conftest.out", "w");
4507 return ferror (f) || fclose (f) != 0;
4508
4509 ;
4510 return 0;
4511 }
4512 _ACEOF
4513 ac_clean_files="$ac_clean_files conftest.out"
4514 # Check that the compiler produces executables we can run. If not, either
4515 # the compiler is broken, or we cross compile.
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4517 $as_echo_n "checking whether we are cross compiling... " >&6; }
4518 if test "$cross_compiling" != yes; then
4519 { { ac_try="$ac_link"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4527 ac_status=$?
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }
4530 if { ac_try='./conftest$ac_cv_exeext'
4531 { { case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_try") 2>&5
4538 ac_status=$?
4539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540 test $ac_status = 0; }; }; then
4541 cross_compiling=no
4542 else
4543 if test "$cross_compiling" = maybe; then
4544 cross_compiling=yes
4545 else
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $? "cannot run C compiled programs.
4549 If you meant to cross compile, use \`--host'.
4550 See \`config.log' for more details" "$LINENO" 5; }
4551 fi
4552 fi
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4555 $as_echo "$cross_compiling" >&6; }
4556
4557 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4558 ac_clean_files=$ac_clean_files_save
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4560 $as_echo_n "checking for suffix of object files... " >&6; }
4561 if ${ac_cv_objext+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566
4567 int
4568 main ()
4569 {
4570
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.o conftest.obj
4576 if { { ac_try="$ac_compile"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 $as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_compile") 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
4587 for ac_file in conftest.o conftest.obj conftest.*; do
4588 test -f "$ac_file" || continue;
4589 case $ac_file in
4590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4592 break;;
4593 esac
4594 done
4595 else
4596 $as_echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601 as_fn_error $? "cannot compute suffix of object files: cannot compile
4602 See \`config.log' for more details" "$LINENO" 5; }
4603 fi
4604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4607 $as_echo "$ac_cv_objext" >&6; }
4608 OBJEXT=$ac_cv_objext
4609 ac_objext=$OBJEXT
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4612 if ${ac_cv_c_compiler_gnu+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617
4618 int
4619 main ()
4620 {
4621 #ifndef __GNUC__
4622 choke me
4623 #endif
4624
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_compiler_gnu=yes
4631 else
4632 ac_compiler_gnu=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4636
4637 fi
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4639 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4640 if test $ac_compiler_gnu = yes; then
4641 GCC=yes
4642 else
4643 GCC=
4644 fi
4645 ac_test_CFLAGS=${CFLAGS+set}
4646 ac_save_CFLAGS=$CFLAGS
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4648 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4649 if ${ac_cv_prog_cc_g+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 ac_save_c_werror_flag=$ac_c_werror_flag
4653 ac_c_werror_flag=yes
4654 ac_cv_prog_cc_g=no
4655 CFLAGS="-g"
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_cv_prog_cc_g=yes
4669 else
4670 CFLAGS=""
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683
4684 else
4685 ac_c_werror_flag=$ac_save_c_werror_flag
4686 CFLAGS="-g"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689
4690 int
4691 main ()
4692 {
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_g=yes
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_c_werror_flag=$ac_save_c_werror_flag
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4709 $as_echo "$ac_cv_prog_cc_g" >&6; }
4710 if test "$ac_test_CFLAGS" = set; then
4711 CFLAGS=$ac_save_CFLAGS
4712 elif test $ac_cv_prog_cc_g = yes; then
4713 if test "$GCC" = yes; then
4714 CFLAGS="-g -O2"
4715 else
4716 CFLAGS="-g"
4717 fi
4718 else
4719 if test "$GCC" = yes; then
4720 CFLAGS="-O2"
4721 else
4722 CFLAGS=
4723 fi
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4726 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4727 if ${ac_cv_prog_cc_c89+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 ac_cv_prog_cc_c89=no
4731 ac_save_CC=$CC
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <stdarg.h>
4735 #include <stdio.h>
4736 struct stat;
4737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4738 struct buf { int x; };
4739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4740 static char *e (p, i)
4741 char **p;
4742 int i;
4743 {
4744 return p[i];
4745 }
4746 static char *f (char * (*g) (char **, int), char **p, ...)
4747 {
4748 char *s;
4749 va_list v;
4750 va_start (v,p);
4751 s = g (p, va_arg (v,int));
4752 va_end (v);
4753 return s;
4754 }
4755
4756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4757 function prototypes and stuff, but not '\xHH' hex character constants.
4758 These don't provoke an error unfortunately, instead are silently treated
4759 as 'x'. The following induces an error, until -std is added to get
4760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4761 array size at least. It's necessary to write '\x00'==0 to get something
4762 that's true only with -std. */
4763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4764
4765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4766 inside strings and character constants. */
4767 #define FOO(x) 'x'
4768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4769
4770 int test (int i, double x);
4771 struct s1 {int (*f) (int a);};
4772 struct s2 {int (*f) (double a);};
4773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4774 int argc;
4775 char **argv;
4776 int
4777 main ()
4778 {
4779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4786 do
4787 CC="$ac_save_CC $ac_arg"
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_prog_cc_c89=$ac_arg
4790 fi
4791 rm -f core conftest.err conftest.$ac_objext
4792 test "x$ac_cv_prog_cc_c89" != "xno" && break
4793 done
4794 rm -f conftest.$ac_ext
4795 CC=$ac_save_CC
4796
4797 fi
4798 # AC_CACHE_VAL
4799 case "x$ac_cv_prog_cc_c89" in
4800 x)
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4802 $as_echo "none needed" >&6; } ;;
4803 xno)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4805 $as_echo "unsupported" >&6; } ;;
4806 *)
4807 CC="$CC $ac_cv_prog_cc_c89"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4810 esac
4811 if test "x$ac_cv_prog_cc_c89" != xno; then :
4812
4813 fi
4814
4815 ac_ext=c
4816 ac_cpp='$CPP $CPPFLAGS'
4817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4820
4821 ac_ext=cpp
4822 ac_cpp='$CXXCPP $CPPFLAGS'
4823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4826 if test -z "$CXX"; then
4827 if test -n "$CCC"; then
4828 CXX=$CCC
4829 else
4830 if test -n "$ac_tool_prefix"; then
4831 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4832 do
4833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_CXX+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$CXX"; then
4841 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4845 do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854 done
4855 done
4856 IFS=$as_save_IFS
4857
4858 fi
4859 fi
4860 CXX=$ac_cv_prog_CXX
4861 if test -n "$CXX"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4863 $as_echo "$CXX" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4867 fi
4868
4869
4870 test -n "$CXX" && break
4871 done
4872 fi
4873 if test -z "$CXX"; then
4874 ac_ct_CXX=$CXX
4875 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4876 do
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$ac_ct_CXX"; then
4885 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_ac_ct_CXX="$ac_prog"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4905 if test -n "$ac_ct_CXX"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4907 $as_echo "$ac_ct_CXX" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914 test -n "$ac_ct_CXX" && break
4915 done
4916
4917 if test "x$ac_ct_CXX" = x; then
4918 CXX="g++"
4919 else
4920 case $cross_compiling:$ac_tool_warned in
4921 yes:)
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4924 ac_tool_warned=yes ;;
4925 esac
4926 CXX=$ac_ct_CXX
4927 fi
4928 fi
4929
4930 fi
4931 fi
4932 # Provide some information about the compiler.
4933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4934 set X $ac_compile
4935 ac_compiler=$2
4936 for ac_option in --version -v -V -qversion; do
4937 { { ac_try="$ac_compiler $ac_option >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943 $as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4945 ac_status=$?
4946 if test -s conftest.err; then
4947 sed '10a\
4948 ... rest of stderr output deleted ...
4949 10q' conftest.err >conftest.er1
4950 cat conftest.er1 >&5
4951 fi
4952 rm -f conftest.er1 conftest.err
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }
4955 done
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4958 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4959 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964
4965 int
4966 main ()
4967 {
4968 #ifndef __GNUC__
4969 choke me
4970 #endif
4971
4972 ;
4973 return 0;
4974 }
4975 _ACEOF
4976 if ac_fn_cxx_try_compile "$LINENO"; then :
4977 ac_compiler_gnu=yes
4978 else
4979 ac_compiler_gnu=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4983
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4986 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4987 if test $ac_compiler_gnu = yes; then
4988 GXX=yes
4989 else
4990 GXX=
4991 fi
4992 ac_test_CXXFLAGS=${CXXFLAGS+set}
4993 ac_save_CXXFLAGS=$CXXFLAGS
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4995 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4996 if ${ac_cv_prog_cxx_g+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5000 ac_cxx_werror_flag=yes
5001 ac_cv_prog_cxx_g=no
5002 CXXFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005
5006 int
5007 main ()
5008 {
5009
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_cxx_try_compile "$LINENO"; then :
5015 ac_cv_prog_cxx_g=yes
5016 else
5017 CXXFLAGS=""
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020
5021 int
5022 main ()
5023 {
5024
5025 ;
5026 return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_cxx_try_compile "$LINENO"; then :
5030
5031 else
5032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5033 CXXFLAGS="-g"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036
5037 int
5038 main ()
5039 {
5040
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_cxx_try_compile "$LINENO"; then :
5046 ac_cv_prog_cxx_g=yes
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5056 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5057 if test "$ac_test_CXXFLAGS" = set; then
5058 CXXFLAGS=$ac_save_CXXFLAGS
5059 elif test $ac_cv_prog_cxx_g = yes; then
5060 if test "$GXX" = yes; then
5061 CXXFLAGS="-g -O2"
5062 else
5063 CXXFLAGS="-g"
5064 fi
5065 else
5066 if test "$GXX" = yes; then
5067 CXXFLAGS="-O2"
5068 else
5069 CXXFLAGS=
5070 fi
5071 fi
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078
5079 # We must set the default linker to the linker used by gcc for the correct
5080 # operation of libtool. If LD is not defined and we are using gcc, try to
5081 # set the LD default to the ld used by gcc.
5082 if test -z "$LD"; then
5083 if test "$GCC" = yes; then
5084 case $build in
5085 *-*-mingw*)
5086 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5087 *)
5088 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5089 esac
5090 case $gcc_prog_ld in
5091 # Accept absolute paths.
5092 [\\/]* | [A-Za-z]:[\\/]*)
5093 LD="$gcc_prog_ld" ;;
5094 esac
5095 fi
5096 fi
5097
5098 # Check whether -static-libstdc++ -static-libgcc is supported.
5099 have_static_libs=no
5100 if test "$GCC" = yes; then
5101 saved_LDFLAGS="$LDFLAGS"
5102
5103 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5105 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5106 ac_ext=cpp
5107 ac_cpp='$CXXCPP $CPPFLAGS'
5108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111
5112
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115
5116 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5117 #error -static-libstdc++ not implemented
5118 #endif
5119 int main() {}
5120 _ACEOF
5121 if ac_fn_cxx_try_link "$LINENO"; then :
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }; have_static_libs=yes
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext \
5129 conftest$ac_exeext conftest.$ac_ext
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136
5137 LDFLAGS="$saved_LDFLAGS"
5138 fi
5139
5140
5141
5142
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5145 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_GNATBIND+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$GNATBIND"; then
5152 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 fi
5170 fi
5171 GNATBIND=$ac_cv_prog_GNATBIND
5172 if test -n "$GNATBIND"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5174 $as_echo "$GNATBIND" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 fi
5179
5180
5181 fi
5182 if test -z "$ac_cv_prog_GNATBIND"; then
5183 ac_ct_GNATBIND=$GNATBIND
5184 # Extract the first word of "gnatbind", so it can be a program name with args.
5185 set dummy gnatbind; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$ac_ct_GNATBIND"; then
5192 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 fi
5210 fi
5211 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5212 if test -n "$ac_ct_GNATBIND"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5214 $as_echo "$ac_ct_GNATBIND" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220 if test "x$ac_ct_GNATBIND" = x; then
5221 GNATBIND="no"
5222 else
5223 case $cross_compiling:$ac_tool_warned in
5224 yes:)
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5228 esac
5229 GNATBIND=$ac_ct_GNATBIND
5230 fi
5231 else
5232 GNATBIND="$ac_cv_prog_GNATBIND"
5233 fi
5234
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_GNATMAKE+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$GNATMAKE"; then
5244 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 fi
5262 fi
5263 GNATMAKE=$ac_cv_prog_GNATMAKE
5264 if test -n "$GNATMAKE"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5266 $as_echo "$GNATMAKE" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5270 fi
5271
5272
5273 fi
5274 if test -z "$ac_cv_prog_GNATMAKE"; then
5275 ac_ct_GNATMAKE=$GNATMAKE
5276 # Extract the first word of "gnatmake", so it can be a program name with args.
5277 set dummy gnatmake; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$ac_ct_GNATMAKE"; then
5284 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301 fi
5302 fi
5303 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5304 if test -n "$ac_ct_GNATMAKE"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5306 $as_echo "$ac_ct_GNATMAKE" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5312 if test "x$ac_ct_GNATMAKE" = x; then
5313 GNATMAKE="no"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316 yes:)
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319 ac_tool_warned=yes ;;
5320 esac
5321 GNATMAKE=$ac_ct_GNATMAKE
5322 fi
5323 else
5324 GNATMAKE="$ac_cv_prog_GNATMAKE"
5325 fi
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5328 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5329 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat >conftest.adb <<EOF
5333 procedure conftest is begin null; end conftest;
5334 EOF
5335 acx_cv_cc_gcc_supports_ada=no
5336 # There is a bug in old released versions of GCC which causes the
5337 # driver to exit successfully when the appropriate language module
5338 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5339 # Therefore we must check for the error message as well as an
5340 # unsuccessful exit.
5341 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5342 # given a .adb file, but produce no object file. So we must check
5343 # if an object file was really produced to guard against this.
5344 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5345 if test x"$errors" = x && test -f conftest.$ac_objext; then
5346 acx_cv_cc_gcc_supports_ada=yes
5347 fi
5348 rm -f conftest.*
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5351 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5352
5353 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5354 have_gnat=yes
5355 else
5356 have_gnat=no
5357 fi
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5360 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5361 if ${gcc_cv_prog_cmp_skip+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 echo abfoo >t1
5365 echo cdfoo >t2
5366 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5367 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5368 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5369 :
5370 else
5371 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5372 fi
5373 fi
5374 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5375 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5376 :
5377 else
5378 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5379 fi
5380 fi
5381 rm t1 t2
5382
5383 fi
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5385 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5386 do_compare="$gcc_cv_prog_cmp_skip"
5387
5388
5389
5390 # Check whether --enable-bootstrap was given.
5391 if test "${enable_bootstrap+set}" = set; then :
5392 enableval=$enable_bootstrap;
5393 else
5394 enable_bootstrap=default
5395 fi
5396
5397
5398 # Issue errors and warnings for invalid/strange bootstrap combinations.
5399 if test -r $srcdir/gcc/configure; then
5400 have_compiler=yes
5401 else
5402 have_compiler=no
5403 fi
5404
5405 case "$have_compiler:$host:$target:$enable_bootstrap" in
5406 *:*:*:no) ;;
5407
5408 # Default behavior. Enable bootstrap if we have a compiler
5409 # and we are in a native configuration.
5410 yes:$build:$build:default)
5411 enable_bootstrap=yes ;;
5412
5413 *:*:*:default)
5414 enable_bootstrap=no ;;
5415
5416 # We have a compiler and we are in a native configuration, bootstrap is ok
5417 yes:$build:$build:yes)
5418 ;;
5419
5420 # Other configurations, but we have a compiler. Assume the user knows
5421 # what he's doing.
5422 yes:*:*:yes)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5424 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5425 ;;
5426
5427 # No compiler: if they passed --enable-bootstrap explicitly, fail
5428 no:*:*:yes)
5429 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5430
5431 # Fail if wrong command line
5432 *)
5433 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5434 ;;
5435 esac
5436
5437 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5438 # C++98 compiler can still start the bootstrap.
5439 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5440 CXX="$CXX -std=gnu++98"
5441 fi
5442
5443 # Used for setting $lt_cv_objdir
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5445 $as_echo_n "checking for objdir... " >&6; }
5446 if ${lt_cv_objdir+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 rm -f .libs 2>/dev/null
5450 mkdir .libs 2>/dev/null
5451 if test -d .libs; then
5452 lt_cv_objdir=.libs
5453 else
5454 # MS-DOS does not allow filenames that begin with a dot.
5455 lt_cv_objdir=_libs
5456 fi
5457 rmdir .libs 2>/dev/null
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5460 $as_echo "$lt_cv_objdir" >&6; }
5461 objdir=$lt_cv_objdir
5462
5463
5464
5465
5466
5467 cat >>confdefs.h <<_ACEOF
5468 #define LT_OBJDIR "$lt_cv_objdir/"
5469 _ACEOF
5470
5471
5472
5473 # Check for GMP, MPFR and MPC
5474 gmplibs="-lmpc -lmpfr -lgmp"
5475 gmpinc=
5476 have_gmp=no
5477
5478 # Specify a location for mpc
5479 # check for this first so it ends up on the link line before mpfr.
5480
5481 # Check whether --with-mpc was given.
5482 if test "${with_mpc+set}" = set; then :
5483 withval=$with_mpc;
5484 fi
5485
5486
5487 # Check whether --with-mpc-include was given.
5488 if test "${with_mpc_include+set}" = set; then :
5489 withval=$with_mpc_include;
5490 fi
5491
5492
5493 # Check whether --with-mpc-lib was given.
5494 if test "${with_mpc_lib+set}" = set; then :
5495 withval=$with_mpc_lib;
5496 fi
5497
5498
5499 if test "x$with_mpc" != x; then
5500 gmplibs="-L$with_mpc/lib $gmplibs"
5501 gmpinc="-I$with_mpc/include $gmpinc"
5502 fi
5503 if test "x$with_mpc_include" != x; then
5504 gmpinc="-I$with_mpc_include $gmpinc"
5505 fi
5506 if test "x$with_mpc_lib" != x; then
5507 gmplibs="-L$with_mpc_lib $gmplibs"
5508 fi
5509 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5510 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5511 gmpinc='-I$$s/mpc/src '"$gmpinc"
5512 # Do not test the mpc version. Assume that it is sufficient, since
5513 # it is in the source tree, and the library has not been built yet
5514 # but it would be included on the link line in the version check below
5515 # hence making the test fail.
5516 have_gmp=yes
5517 fi
5518
5519 # Specify a location for mpfr
5520 # check for this first so it ends up on the link line before gmp.
5521
5522 # Check whether --with-mpfr-dir was given.
5523 if test "${with_mpfr_dir+set}" = set; then :
5524 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5525 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5526 fi
5527
5528
5529
5530 # Check whether --with-mpfr was given.
5531 if test "${with_mpfr+set}" = set; then :
5532 withval=$with_mpfr;
5533 fi
5534
5535
5536 # Check whether --with-mpfr-include was given.
5537 if test "${with_mpfr_include+set}" = set; then :
5538 withval=$with_mpfr_include;
5539 fi
5540
5541
5542 # Check whether --with-mpfr-lib was given.
5543 if test "${with_mpfr_lib+set}" = set; then :
5544 withval=$with_mpfr_lib;
5545 fi
5546
5547
5548 if test "x$with_mpfr" != x; then
5549 gmplibs="-L$with_mpfr/lib $gmplibs"
5550 gmpinc="-I$with_mpfr/include $gmpinc"
5551 fi
5552 if test "x$with_mpfr_include" != x; then
5553 gmpinc="-I$with_mpfr_include $gmpinc"
5554 fi
5555 if test "x$with_mpfr_lib" != x; then
5556 gmplibs="-L$with_mpfr_lib $gmplibs"
5557 fi
5558 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5559 # MPFR v3.1.0 moved the sources into a src sub-directory.
5560 if ! test -d ${srcdir}/mpfr/src; then
5561 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5562 fi
5563 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5564 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5565 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5566 # Do not test the mpfr version. Assume that it is sufficient, since
5567 # it is in the source tree, and the library has not been built yet
5568 # but it would be included on the link line in the version check below
5569 # hence making the test fail.
5570 have_gmp=yes
5571 fi
5572
5573 # Specify a location for gmp
5574
5575 # Check whether --with-gmp-dir was given.
5576 if test "${with_gmp_dir+set}" = set; then :
5577 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5578 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5579 fi
5580
5581
5582
5583 # Check whether --with-gmp was given.
5584 if test "${with_gmp+set}" = set; then :
5585 withval=$with_gmp;
5586 fi
5587
5588
5589 # Check whether --with-gmp-include was given.
5590 if test "${with_gmp_include+set}" = set; then :
5591 withval=$with_gmp_include;
5592 fi
5593
5594
5595 # Check whether --with-gmp-lib was given.
5596 if test "${with_gmp_lib+set}" = set; then :
5597 withval=$with_gmp_lib;
5598 fi
5599
5600
5601
5602 if test "x$with_gmp" != x; then
5603 gmplibs="-L$with_gmp/lib $gmplibs"
5604 gmpinc="-I$with_gmp/include $gmpinc"
5605 fi
5606 if test "x$with_gmp_include" != x; then
5607 gmpinc="-I$with_gmp_include $gmpinc"
5608 fi
5609 if test "x$with_gmp_lib" != x; then
5610 gmplibs="-L$with_gmp_lib $gmplibs"
5611 fi
5612 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5613 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5614 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5615 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5616 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5617 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5618 # Do not test the gmp version. Assume that it is sufficient, since
5619 # it is in the source tree, and the library has not been built yet
5620 # but it would be included on the link line in the version check below
5621 # hence making the test fail.
5622 have_gmp=yes
5623 fi
5624
5625 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5626 have_gmp=yes
5627 saved_CFLAGS="$CFLAGS"
5628 CFLAGS="$CFLAGS $gmpinc"
5629 # Check for the recommended and required versions of GMP.
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5631 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5632
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include "gmp.h"
5636 int
5637 main ()
5638 {
5639
5640 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5641 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5642 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5643 choke me
5644 #endif
5645
5646 ;
5647 return 0;
5648 }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <gmp.h>
5654 int
5655 main ()
5656 {
5657
5658 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5659 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5660 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5661 choke me
5662 #endif
5663
5664 ;
5665 return 0;
5666 }
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5673 $as_echo "buggy but acceptable" >&6; }
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }; have_gmp=no
5679 fi
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681
5682 # If we have GMP, check the MPFR version.
5683 if test x"$have_gmp" = xyes; then
5684 # Check for the recommended and required versions of MPFR.
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5686 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <gmp.h>
5690 #include <mpfr.h>
5691 int
5692 main ()
5693 {
5694
5695 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5696 choke me
5697 #endif
5698
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <gmp.h>
5707 #include <mpfr.h>
5708 int
5709 main ()
5710 {
5711
5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5713 choke me
5714 #endif
5715
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5725 $as_echo "buggy but acceptable" >&6; }
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }; have_gmp=no
5731 fi
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5733 fi
5734
5735 # Check for the MPC header version.
5736 if test x"$have_gmp" = xyes ; then
5737 # Check for the recommended and required versions of MPC.
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5739 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <mpc.h>
5743 int
5744 main ()
5745 {
5746
5747 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5748 choke me
5749 #endif
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #include <mpc.h>
5759 int
5760 main ()
5761 {
5762
5763 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5764 choke me
5765 #endif
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5773 $as_echo "yes" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5776 $as_echo "buggy but acceptable" >&6; }
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }; have_gmp=no
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5785
5786 # Now check the MPFR library.
5787 if test x"$have_gmp" = xyes; then
5788 saved_LIBS="$LIBS"
5789 LIBS="$LIBS $gmplibs"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5791 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <mpc.h>
5795 int
5796 main ()
5797 {
5798
5799 mpfr_t n;
5800 mpfr_t x;
5801 mpc_t c;
5802 int t;
5803 mpfr_init (n);
5804 mpfr_init (x);
5805 mpfr_atan2 (n, n, x, GMP_RNDN);
5806 mpfr_erfc (n, x, GMP_RNDN);
5807 mpfr_subnormalize (x, t, GMP_RNDN);
5808 mpfr_clear(n);
5809 mpfr_clear(x);
5810 mpc_init2 (c, 53);
5811 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5812 mpc_cosh (c, c, MPC_RNDNN);
5813 mpc_pow (c, c, c, MPC_RNDNN);
5814 mpc_acosh (c, c, MPC_RNDNN);
5815 mpc_clear (c);
5816
5817 ;
5818 return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_link "$LINENO"; then :
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5823 $as_echo "yes" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }; have_gmp=no
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext \
5829 conftest$ac_exeext conftest.$ac_ext
5830 LIBS="$saved_LIBS"
5831 fi
5832
5833 CFLAGS="$saved_CFLAGS"
5834
5835 # The library versions listed in the error message below should match
5836 # the HARD-minimums enforced above.
5837 if test x$have_gmp != xyes; then
5838 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5839 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5840 their locations. Source code for these libraries can be found at
5841 their respective hosting sites as well as at
5842 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5843 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5844 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5845 make sure that you have installed both the libraries and the header
5846 files. They may be located in separate packages." "$LINENO" 5
5847 fi
5848 fi
5849
5850 # Flags needed for both GMP, MPFR and/or MPC.
5851
5852
5853
5854
5855
5856
5857
5858 # Libraries to use for stage1 or when not bootstrapping.
5859
5860 # Check whether --with-stage1-libs was given.
5861 if test "${with_stage1_libs+set}" = set; then :
5862 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5863 stage1_libs=
5864 else
5865 stage1_libs=$withval
5866 fi
5867 else
5868 stage1_libs=
5869 fi
5870
5871
5872
5873 # Linker flags to use for stage1 or when not bootstrapping.
5874
5875 # Check whether --with-stage1-ldflags was given.
5876 if test "${with_stage1_ldflags+set}" = set; then :
5877 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5878 stage1_ldflags=
5879 else
5880 stage1_ldflags=$withval
5881 fi
5882 else
5883 stage1_ldflags=
5884 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5885 # if supported. But if the user explicitly specified the libraries to use,
5886 # trust that they are doing what they want.
5887 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5888 stage1_ldflags="-static-libstdc++ -static-libgcc"
5889 fi
5890 fi
5891
5892
5893
5894 # Libraries to use for stage2 and later builds.
5895
5896 # Check whether --with-boot-libs was given.
5897 if test "${with_boot_libs+set}" = set; then :
5898 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5899 poststage1_libs=
5900 else
5901 poststage1_libs=$withval
5902 fi
5903 else
5904 poststage1_libs=
5905 fi
5906
5907
5908
5909 # Linker flags to use for stage2 and later builds.
5910
5911 # Check whether --with-boot-ldflags was given.
5912 if test "${with_boot_ldflags+set}" = set; then :
5913 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5914 poststage1_ldflags=
5915 else
5916 poststage1_ldflags=$withval
5917 fi
5918 else
5919 poststage1_ldflags=
5920 # In stages 2 and 3, default to linking libstdc++ and libgcc
5921 # statically. But if the user explicitly specified the libraries to
5922 # use, trust that they are doing what they want.
5923 if test "$poststage1_libs" = ""; then
5924 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5925 fi
5926 fi
5927
5928
5929
5930 # GCC GRAPHITE dependency isl.
5931 # Basic setup is inlined here, actual checks are in config/isl.m4
5932
5933
5934 # Check whether --with-isl was given.
5935 if test "${with_isl+set}" = set; then :
5936 withval=$with_isl;
5937 fi
5938
5939
5940 # Treat --without-isl as a request to disable
5941 # GRAPHITE support and skip all following checks.
5942 if test "x$with_isl" != "xno"; then
5943 # Check for isl
5944
5945
5946 # Check whether --with-isl-include was given.
5947 if test "${with_isl_include+set}" = set; then :
5948 withval=$with_isl_include;
5949 fi
5950
5951
5952 # Check whether --with-isl-lib was given.
5953 if test "${with_isl_lib+set}" = set; then :
5954 withval=$with_isl_lib;
5955 fi
5956
5957
5958 # Check whether --enable-isl-version-check was given.
5959 if test "${enable_isl_version_check+set}" = set; then :
5960 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5961 else
5962 ENABLE_ISL_CHECK=yes
5963 fi
5964
5965
5966 # Initialize isllibs and islinc.
5967 case $with_isl in
5968 no)
5969 isllibs=
5970 islinc=
5971 ;;
5972 "" | yes)
5973 ;;
5974 *)
5975 isllibs="-L$with_isl/lib"
5976 islinc="-I$with_isl/include"
5977 ;;
5978 esac
5979 if test "x${with_isl_include}" != x ; then
5980 islinc="-I$with_isl_include"
5981 fi
5982 if test "x${with_isl_lib}" != x; then
5983 isllibs="-L$with_isl_lib"
5984 fi
5985 if test "x${islinc}" = x && test "x${isllibs}" = x \
5986 && test -d ${srcdir}/isl; then
5987 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5988 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5989 ENABLE_ISL_CHECK=no
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5991 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5992 fi
5993
5994 isllibs="${isllibs} -lisl"
5995
5996
5997
5998 if test "${ENABLE_ISL_CHECK}" = yes ; then
5999 _isl_saved_CFLAGS=$CFLAGS
6000 _isl_saved_LDFLAGS=$LDFLAGS
6001 _isl_saved_LIBS=$LIBS
6002
6003 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6004 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6005 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6008 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <isl/schedule.h>
6012 int
6013 main ()
6014 {
6015 isl_options_set_schedule_serialize_sccs (NULL, 0);
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_link "$LINENO"; then :
6021 gcc_cv_isl=yes
6022 else
6023 gcc_cv_isl=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext \
6026 conftest$ac_exeext conftest.$ac_ext
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6028 $as_echo "$gcc_cv_isl" >&6; }
6029
6030 if test "${gcc_cv_isl}" = no ; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6032 $as_echo "required isl version is 0.15 or later" >&6; }
6033 fi
6034
6035 CFLAGS=$_isl_saved_CFLAGS
6036 LDFLAGS=$_isl_saved_LDFLAGS
6037 LIBS=$_isl_saved_LIBS
6038 fi
6039
6040
6041
6042
6043
6044
6045 if test "x${with_isl}" = xno; then
6046 graphite_requested=no
6047 elif test "x${with_isl}" != x \
6048 || test "x${with_isl_include}" != x \
6049 || test "x${with_isl_lib}" != x ; then
6050 graphite_requested=yes
6051 else
6052 graphite_requested=no
6053 fi
6054
6055
6056
6057 if test "${gcc_cv_isl}" = no ; then
6058 isllibs=
6059 islinc=
6060 fi
6061
6062 if test "${graphite_requested}" = yes \
6063 && test "x${isllibs}" = x \
6064 && test "x${islinc}" = x ; then
6065
6066 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6067 fi
6068
6069
6070 fi
6071
6072 # If the isl check failed, disable builds of in-tree variant of isl
6073 if test "x$with_isl" = xno ||
6074 test "x$gcc_cv_isl" = xno; then
6075 noconfigdirs="$noconfigdirs isl"
6076 islinc=
6077 fi
6078
6079
6080
6081
6082 # Check for LTO support.
6083 # Check whether --enable-lto was given.
6084 if test "${enable_lto+set}" = set; then :
6085 enableval=$enable_lto; enable_lto=$enableval
6086 else
6087 enable_lto=yes; default_enable_lto=yes
6088 fi
6089
6090
6091
6092
6093
6094 target_elf=no
6095 case $target in
6096 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6097 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6098 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6099 nvptx-*-none)
6100 target_elf=no
6101 ;;
6102 *)
6103 target_elf=yes
6104 ;;
6105 esac
6106
6107 if test $target_elf = yes; then :
6108 # ELF platforms build the lto-plugin always.
6109 case $target in
6110 m68010-*)
6111 build_lto_plugin=no;;
6112 *)
6113 build_lto_plugin=yes;;
6114 esac
6115
6116 else
6117 if test x"$default_enable_lto" = x"yes" ; then
6118 case $target in
6119 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6120 # On other non-ELF platforms, LTO has yet to be validated.
6121 *) enable_lto=no ;;
6122 esac
6123 else
6124 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6125 # It would also be nice to check the binutils support, but we don't
6126 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6127 # warn during gcc/ subconfigure; unless you're bootstrapping with
6128 # -flto it won't be needed until after installation anyway.
6129 case $target in
6130 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6131 *) if test x"$enable_lto" = x"yes"; then
6132 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6133 fi
6134 ;;
6135 esac
6136 fi
6137 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6138 # Build it unless LTO was explicitly disabled.
6139 case $target in
6140 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6141 *) ;;
6142 esac
6143
6144 fi
6145
6146
6147 # Check whether --enable-linker-plugin-configure-flags was given.
6148 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6149 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6150 else
6151 extra_linker_plugin_configure_flags=
6152 fi
6153
6154
6155 # Check whether --enable-linker-plugin-flags was given.
6156 if test "${enable_linker_plugin_flags+set}" = set; then :
6157 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6158 else
6159 extra_linker_plugin_flags=
6160 fi
6161
6162
6163
6164 # Enable --enable-host-shared.
6165 # Checked early to determine whether jit is an 'all' language
6166 # Check whether --enable-host-shared was given.
6167 if test "${enable_host_shared+set}" = set; then :
6168 enableval=$enable_host_shared; host_shared=$enableval
6169 else
6170 host_shared=no
6171 fi
6172
6173
6174
6175 # By default, C and C++ are the only stage 1 languages.
6176 stage1_languages=,c,
6177
6178 # Target libraries that we bootstrap.
6179 bootstrap_target_libs=,target-libgcc,
6180
6181 # Figure out what language subdirectories are present.
6182 # Look if the user specified --enable-languages="..."; if not, use
6183 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6184 # go away some day.
6185 # NB: embedded tabs in this IF block -- do not untabify
6186 if test -d ${srcdir}/gcc; then
6187 if test x"${enable_languages+set}" != xset; then
6188 if test x"${LANGUAGES+set}" = xset; then
6189 enable_languages="${LANGUAGES}"
6190 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6191 else
6192 enable_languages=default
6193 fi
6194 else
6195 if test x"${enable_languages}" = x ||
6196 test x"${enable_languages}" = xyes;
6197 then
6198 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6199 exit 1
6200 fi
6201 fi
6202 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6203
6204 # 'f95' is the old name for the 'fortran' language. We issue a warning
6205 # and make the substitution.
6206 case ,${enable_languages}, in
6207 *,f95,*)
6208 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6209 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6210 ;;
6211 esac
6212
6213 # If bootstrapping, C++ must be enabled.
6214 case ",$enable_languages,:$enable_bootstrap" in
6215 *,c++,*:*) ;;
6216 *:yes)
6217 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6218 enable_languages="${enable_languages},c++"
6219 else
6220 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6221 fi
6222 ;;
6223 esac
6224
6225 # First scan to see if an enabled language requires some other language.
6226 # We assume that a given config-lang.in will list all the language
6227 # front ends it requires, even if some are required indirectly.
6228 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6229 case ${lang_frag} in
6230 ..) ;;
6231 # The odd quoting in the next line works around
6232 # an apparent bug in bash 1.12 on linux.
6233 ${srcdir}/gcc/[*]/config-lang.in) ;;
6234 *)
6235 # From the config-lang.in, get $language, $lang_requires, and
6236 # $lang_requires_boot_languages.
6237 language=
6238 lang_requires=
6239 lang_requires_boot_languages=
6240 # set srcdir during sourcing lang_frag to the gcc dir.
6241 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6242 # polutes this shell
6243 saved_srcdir=${srcdir}
6244 srcdir=${srcdir}/gcc . ${lang_frag}
6245 srcdir=${saved_srcdir}
6246 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6247 case ,${enable_languages}, in
6248 *,$other,*) ;;
6249 *,default,*) ;;
6250 *,all,*) ;;
6251 *,$language,*)
6252 echo " \`$other' language required by \`$language'; enabling" 1>&2
6253 enable_languages="${enable_languages},${other}"
6254 ;;
6255 esac
6256 done
6257 for other in ${lang_requires_boot_languages} ; do
6258 if test "$other" != "c"; then
6259 case ,${enable_stage1_languages}, in
6260 *,$other,*) ;;
6261 *,default,*) ;;
6262 *,all,*) ;;
6263 *)
6264 case ,${enable_languages}, in
6265 *,$language,*)
6266 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6267 enable_stage1_languages="$enable_stage1_languages,${other}"
6268 ;;
6269 esac
6270 ;;
6271 esac
6272 fi
6273 done
6274 ;;
6275 esac
6276 done
6277
6278 new_enable_languages=,c,
6279
6280 # If LTO is enabled, add the LTO front end.
6281 if test "$enable_lto" = "yes" ; then
6282 case ,${enable_languages}, in
6283 *,lto,*) ;;
6284 *) enable_languages="${enable_languages},lto" ;;
6285 esac
6286 if test "${build_lto_plugin}" = "yes" ; then
6287 configdirs="$configdirs lto-plugin"
6288 fi
6289 fi
6290
6291 # If we're building an offloading compiler, add the LTO front end.
6292 if test x"$enable_as_accelerator_for" != x ; then
6293 case ,${enable_languages}, in
6294 *,lto,*) ;;
6295 *) enable_languages="${enable_languages},lto" ;;
6296 esac
6297 fi
6298
6299 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6300 potential_languages=,c,
6301
6302 enabled_target_libs=
6303 disabled_target_libs=
6304
6305 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6306 case ${lang_frag} in
6307 ..) ;;
6308 # The odd quoting in the next line works around
6309 # an apparent bug in bash 1.12 on linux.
6310 ${srcdir}/gcc/[*]/config-lang.in) ;;
6311 *)
6312 # From the config-lang.in, get $language, $target_libs,
6313 # $lang_dirs, $boot_language, and $build_by_default
6314 language=
6315 target_libs=
6316 lang_dirs=
6317 subdir_requires=
6318 boot_language=no
6319 build_by_default=yes
6320 # set srcdir during sourcing. See above about save & restore
6321 saved_srcdir=${srcdir}
6322 srcdir=${srcdir}/gcc . ${lang_frag}
6323 srcdir=${saved_srcdir}
6324 if test x${language} = x; then
6325 echo "${lang_frag} doesn't set \$language." 1>&2
6326 exit 1
6327 fi
6328
6329 if test "$language" = "c++"; then
6330 boot_language=yes
6331 fi
6332
6333 add_this_lang=no
6334 # C is always enabled, so no need to add it again
6335 if test "$language" != "c"; then
6336 case ,${enable_languages}, in
6337 *,${language},*)
6338 # Language was explicitly selected; include it
6339 add_this_lang=yes
6340 ;;
6341 *,all,*)
6342 # All languages are enabled
6343 add_this_lang=all
6344 ;;
6345 *,default,*)
6346 # 'default' was selected, select it if it is a default language
6347 add_this_lang=${build_by_default}
6348 ;;
6349 esac
6350 fi
6351
6352 # Disable languages that need other directories if these aren't available.
6353 for i in $subdir_requires; do
6354 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6355 case ${add_this_lang} in
6356 yes)
6357 # Specifically requested language; tell them.
6358 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6359 ;;
6360 all)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6362 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6363 add_this_lang=unsupported
6364 ;;
6365 *)
6366 # Silently disable.
6367 add_this_lang=unsupported
6368 ;;
6369 esac
6370 done
6371
6372 # Disable Ada if no preexisting GNAT is available.
6373 case ${add_this_lang}:${language}:${have_gnat} in
6374 yes:ada:no)
6375 # Specifically requested language; tell them.
6376 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6377 ;;
6378 all:ada:no)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6380 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6381 add_this_lang=unsupported
6382 ;;
6383 *:ada:no)
6384 # Silently disable.
6385 add_this_lang=unsupported
6386 ;;
6387 esac
6388
6389 # Disable jit if -enable-host-shared not specified
6390 case ${add_this_lang}:${language}:${host_shared} in
6391 yes:jit:no)
6392 # PR jit/64780: explicitly specify --enable-host-shared
6393 as_fn_error $? "
6394 Enabling language \"jit\" requires --enable-host-shared.
6395
6396 --enable-host-shared typically slows the rest of the compiler down by
6397 a few %, so you must explicitly enable it.
6398
6399 If you want to build both the jit and the regular compiler, it is often
6400 best to do this via two separate configure/builds, in separate
6401 directories, to avoid imposing the performance cost of
6402 --enable-host-shared on the regular compiler." "$LINENO" 5
6403 ;;
6404 all:jit:no)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6406 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6407 add_this_lang=unsupported
6408 ;;
6409 *:jit:no)
6410 # Silently disable.
6411 add_this_lang=unsupported
6412 ;;
6413 esac
6414
6415 # Disable a language that is unsupported by the target.
6416 case "${add_this_lang}: $unsupported_languages " in
6417 no:*) ;;
6418 unsupported:*) ;;
6419 *:*" $language "*)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6421 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6422 add_this_lang=unsupported
6423 ;;
6424 esac
6425
6426 case $add_this_lang in
6427 unsupported)
6428 # Remove language-dependent dirs.
6429 disabled_target_libs="$disabled_target_libs $target_libs"
6430 noconfigdirs="$noconfigdirs $lang_dirs"
6431 ;;
6432 no)
6433 # Remove language-dependent dirs; still show language as supported.
6434 disabled_target_libs="$disabled_target_libs $target_libs"
6435 noconfigdirs="$noconfigdirs $lang_dirs"
6436 potential_languages="${potential_languages}${language},"
6437 ;;
6438 all|yes)
6439 new_enable_languages="${new_enable_languages}${language},"
6440 potential_languages="${potential_languages}${language},"
6441 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6442 enabled_target_libs="$enabled_target_libs $target_libs"
6443 case "${boot_language}:,$enable_stage1_languages," in
6444 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6445 # Add to (comma-separated) list of stage 1 languages.
6446 case ",$stage1_languages," in
6447 *,$language,* | ,yes, | ,all,) ;;
6448 *) stage1_languages="${stage1_languages}${language}," ;;
6449 esac
6450 # We need to bootstrap any supporting libraries.
6451 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6452 ;;
6453 esac
6454 ;;
6455 esac
6456 ;;
6457 esac
6458 done
6459
6460 # Add target libraries which are only needed for disabled languages
6461 # to noconfigdirs.
6462 if test -n "$disabled_target_libs"; then
6463 for dir in $disabled_target_libs; do
6464 case " $enabled_target_libs " in
6465 *" ${dir} "*) ;;
6466 *) noconfigdirs="$noconfigdirs $dir" ;;
6467 esac
6468 done
6469 fi
6470
6471 # Check whether --enable-stage1-languages was given.
6472 if test "${enable_stage1_languages+set}" = set; then :
6473 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6474 ,no,|,,)
6475 # Set it to something that will have no effect in the loop below
6476 enable_stage1_languages=c ;;
6477 ,yes,)
6478 enable_stage1_languages=`echo $new_enable_languages | \
6479 sed -e "s/^,//" -e "s/,$//" ` ;;
6480 *,all,*)
6481 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6482 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6483 esac
6484
6485 # Add "good" languages from enable_stage1_languages to stage1_languages,
6486 # while "bad" languages go in missing_languages. Leave no duplicates.
6487 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6488 case $potential_languages in
6489 *,$i,*)
6490 case $stage1_languages in
6491 *,$i,*) ;;
6492 *) stage1_languages="$stage1_languages$i," ;;
6493 esac ;;
6494 *)
6495 case $missing_languages in
6496 *,$i,*) ;;
6497 *) missing_languages="$missing_languages$i," ;;
6498 esac ;;
6499 esac
6500 done
6501 fi
6502
6503
6504 # Remove leading/trailing commas that were added for simplicity
6505 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6506 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6507 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6508 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6509
6510 if test "x$missing_languages" != x; then
6511 as_fn_error $? "
6512 The following requested languages could not be built: ${missing_languages}
6513 Supported languages are: ${potential_languages}" "$LINENO" 5
6514 fi
6515 if test "x$new_enable_languages" != "x$enable_languages"; then
6516 echo The following languages will be built: ${new_enable_languages}
6517 enable_languages="$new_enable_languages"
6518 fi
6519
6520
6521 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6522 fi
6523
6524 # Handle --disable-<component> generically.
6525 for dir in $configdirs $build_configdirs $target_configdirs ; do
6526 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6527 varname=`echo $dirname | sed -e s/+/_/g`
6528 if eval test x\${enable_${varname}} "=" xno ; then
6529 noconfigdirs="$noconfigdirs $dir"
6530 fi
6531 done
6532
6533 # Check for Boehm's garbage collector
6534 # Check whether --enable-objc-gc was given.
6535 if test "${enable_objc_gc+set}" = set; then :
6536 enableval=$enable_objc_gc;
6537 fi
6538
6539
6540 # Check whether --with-target-bdw-gc was given.
6541 if test "${with_target_bdw_gc+set}" = set; then :
6542 withval=$with_target_bdw_gc;
6543 fi
6544
6545
6546 # Check whether --with-target-bdw-gc-include was given.
6547 if test "${with_target_bdw_gc_include+set}" = set; then :
6548 withval=$with_target_bdw_gc_include;
6549 fi
6550
6551
6552 # Check whether --with-target-bdw-gc-lib was given.
6553 if test "${with_target_bdw_gc_lib+set}" = set; then :
6554 withval=$with_target_bdw_gc_lib;
6555 fi
6556
6557
6558 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6560 $as_echo_n "checking for bdw garbage collector... " >&6; }
6561 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6563 $as_echo "using bdw-gc in default locations" >&6; }
6564 else
6565 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6566 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6567 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6568 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6571 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6572 fi
6573 fi
6574 esac
6575
6576 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6577 case ,${enable_languages}, in
6578 *,c++,*)
6579 # Disable libitm, libsanitizer if we're not building libstdc++
6580 case "${noconfigdirs}" in
6581 *target-libstdc++-v3*)
6582 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6583 ;;
6584 *) ;;
6585 esac
6586 ;;
6587 *)
6588 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6589 ;;
6590 esac
6591
6592 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6593 # $build_configdirs and $target_configdirs.
6594 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6595
6596 notsupp=""
6597 for dir in . $skipdirs $noconfigdirs ; do
6598 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6599 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6600 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6601 if test -r $srcdir/$dirname/configure ; then
6602 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6603 true
6604 else
6605 notsupp="$notsupp $dir"
6606 fi
6607 fi
6608 fi
6609 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6610 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6611 if test -r $srcdir/$dirname/configure ; then
6612 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6613 true
6614 else
6615 notsupp="$notsupp $dir"
6616 fi
6617 fi
6618 fi
6619 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6620 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6621 if test -r $srcdir/$dirname/configure ; then
6622 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6623 true
6624 else
6625 notsupp="$notsupp $dir"
6626 fi
6627 fi
6628 fi
6629 done
6630
6631 # Quietly strip out all directories which aren't configurable in this tree.
6632 # This relies on all configurable subdirectories being autoconfiscated, which
6633 # is now the case.
6634 build_configdirs_all="$build_configdirs"
6635 build_configdirs=
6636 for i in ${build_configdirs_all} ; do
6637 j=`echo $i | sed -e s/build-//g`
6638 if test -f ${srcdir}/$j/configure ; then
6639 build_configdirs="${build_configdirs} $i"
6640 fi
6641 done
6642
6643 configdirs_all="$configdirs"
6644 configdirs=
6645 for i in ${configdirs_all} ; do
6646 if test -f ${srcdir}/$i/configure ; then
6647 configdirs="${configdirs} $i"
6648 fi
6649 done
6650
6651 target_configdirs_all="$target_configdirs"
6652 target_configdirs=
6653 for i in ${target_configdirs_all} ; do
6654 j=`echo $i | sed -e s/target-//g`
6655 if test -f ${srcdir}/$j/configure ; then
6656 target_configdirs="${target_configdirs} $i"
6657 fi
6658 done
6659
6660 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6661 # so we have to add it after the preceding checks.
6662 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6663 then
6664 case " $configdirs " in
6665 *" libiberty "*)
6666 # If we can build libiberty, we can also build libiberty-linker-plugin.
6667 configdirs="$configdirs libiberty-linker-plugin"
6668 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6669 --with-libiberty=../libiberty-linker-plugin";;
6670 *)
6671 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6672 esac
6673 fi
6674
6675 # Sometimes we have special requirements for the host libiberty.
6676 extra_host_libiberty_configure_flags=
6677 extra_host_zlib_configure_flags=
6678 case " $configdirs " in
6679 *" lto-plugin "* | *" libcc1 "*)
6680 # When these are to be built as shared libraries, the same applies to
6681 # libiberty.
6682 extra_host_libiberty_configure_flags=--enable-shared
6683 ;;
6684 *" bfd "*)
6685 # When bfd is to be built as a shared library, the same applies to
6686 # zlib.
6687 if test "$enable_shared" = "yes"; then
6688 extra_host_zlib_configure_flags=--enable-host-shared
6689 fi
6690 ;;
6691 esac
6692
6693
6694
6695 # Produce a warning message for the subdirs we can't configure.
6696 # This isn't especially interesting in the Cygnus tree, but in the individual
6697 # FSF releases, it's important to let people know when their machine isn't
6698 # supported by the one or two programs in a package.
6699
6700 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6701 # If $appdirs is non-empty, at least one of those directories must still
6702 # be configured, or we error out. (E.g., if the gas release supports a
6703 # specified target in some subdirs but not the gas subdir, we shouldn't
6704 # pretend that all is well.)
6705 if test -n "$appdirs" ; then
6706 for dir in $appdirs ; do
6707 if test -r $dir/Makefile.in ; then
6708 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6709 appdirs=""
6710 break
6711 fi
6712 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6713 appdirs=""
6714 break
6715 fi
6716 fi
6717 done
6718 if test -n "$appdirs" ; then
6719 echo "*** This configuration is not supported by this package." 1>&2
6720 exit 1
6721 fi
6722 fi
6723 # Okay, some application will build, or we don't care to check. Still
6724 # notify of subdirs not getting built.
6725 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6726 echo " ${notsupp}" 1>&2
6727 echo " (Any other directories should still work fine.)" 1>&2
6728 fi
6729
6730 case "$host" in
6731 *msdosdjgpp*)
6732 enable_gdbtk=no ;;
6733 esac
6734
6735 # To find our prefix, in gcc_cv_tool_prefix.
6736
6737 # The user is always right.
6738 if test "${PATH_SEPARATOR+set}" != set; then
6739 echo "#! /bin/sh" >conf$$.sh
6740 echo "exit 0" >>conf$$.sh
6741 chmod +x conf$$.sh
6742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6743 PATH_SEPARATOR=';'
6744 else
6745 PATH_SEPARATOR=:
6746 fi
6747 rm -f conf$$.sh
6748 fi
6749
6750
6751 get_gcc_base_ver="cat"
6752
6753 # Check whether --with-gcc-major-version-only was given.
6754 if test "${with_gcc_major_version_only+set}" = set; then :
6755 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6756 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6757 fi
6758
6759 fi
6760
6761
6762
6763
6764
6765
6766 if test "x$exec_prefix" = xNONE; then
6767 if test "x$prefix" = xNONE; then
6768 gcc_cv_tool_prefix=$ac_default_prefix
6769 else
6770 gcc_cv_tool_prefix=$prefix
6771 fi
6772 else
6773 gcc_cv_tool_prefix=$exec_prefix
6774 fi
6775
6776 # If there is no compiler in the tree, use the PATH only. In any
6777 # case, if there is no compiler in the tree nobody should use
6778 # AS_FOR_TARGET and LD_FOR_TARGET.
6779 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6780 if test x$with_gcc_major_version_only = xyes ; then
6781 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6782 else
6783 gcc_version=`cat $srcdir/gcc/BASE-VER`
6784 fi
6785 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6786 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6787 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6791 else
6792 gcc_cv_tool_dirs=
6793 fi
6794
6795 if test x$build = x$target && test -n "$md_exec_prefix"; then
6796 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6797 fi
6798
6799
6800
6801 copy_dirs=
6802
6803
6804 # Check whether --with-build-sysroot was given.
6805 if test "${with_build_sysroot+set}" = set; then :
6806 withval=$with_build_sysroot; if test x"$withval" != x ; then
6807 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6808 fi
6809 else
6810 SYSROOT_CFLAGS_FOR_TARGET=
6811 fi
6812
6813
6814
6815
6816 # Check whether --with-debug-prefix-map was given.
6817 if test "${with_debug_prefix_map+set}" = set; then :
6818 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6819 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6820 for debug_map in $withval; do
6821 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6822 done
6823 fi
6824 else
6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6826 fi
6827
6828
6829
6830 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6831 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6832 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6833 # We want to ensure that TARGET libraries (which we know are built with
6834 # gcc) are built with "-O2 -g", so include those options when setting
6835 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6836 if test "x$CFLAGS_FOR_TARGET" = x; then
6837 if test "x${is_cross_compiler}" = xyes; then
6838 CFLAGS_FOR_TARGET="-g -O2"
6839 else
6840 CFLAGS_FOR_TARGET=$CFLAGS
6841 case " $CFLAGS " in
6842 *" -O2 "*) ;;
6843 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6844 esac
6845 case " $CFLAGS " in
6846 *" -g "* | *" -g3 "*) ;;
6847 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6848 esac
6849 fi
6850 fi
6851
6852
6853 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6854 if test "x${is_cross_compiler}" = xyes; then
6855 CXXFLAGS_FOR_TARGET="-g -O2"
6856 else
6857 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6858 case " $CXXFLAGS " in
6859 *" -O2 "*) ;;
6860 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6861 esac
6862 case " $CXXFLAGS " in
6863 *" -g "* | *" -g3 "*) ;;
6864 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6865 esac
6866 fi
6867 fi
6868
6869
6870
6871
6872 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6873 # the named directory are copied to $(tooldir)/sys-include.
6874 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6875 if test x${is_cross_compiler} = xno ; then
6876 echo 1>&2 '***' --with-headers is only supported when cross compiling
6877 exit 1
6878 fi
6879 if test x"${with_headers}" != xyes ; then
6880 x=${gcc_cv_tool_prefix}
6881 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6882 fi
6883 fi
6884
6885 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6886 # the name directories are copied to $(tooldir)/lib. Multiple directories
6887 # are permitted.
6888 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6889 if test x${is_cross_compiler} = xno ; then
6890 echo 1>&2 '***' --with-libs is only supported when cross compiling
6891 exit 1
6892 fi
6893 if test x"${with_libs}" != xyes ; then
6894 # Copy the libraries in reverse order, so that files in the first named
6895 # library override files in subsequent libraries.
6896 x=${gcc_cv_tool_prefix}
6897 for l in ${with_libs}; do
6898 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6899 done
6900 fi
6901 fi
6902
6903 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6904 #
6905 # This is done by determining whether or not the appropriate directory
6906 # is available, and by checking whether or not specific configurations
6907 # have requested that this magic not happen.
6908 #
6909 # The command line options always override the explicit settings in
6910 # configure.ac, and the settings in configure.ac override this magic.
6911 #
6912 # If the default for a toolchain is to use GNU as and ld, and you don't
6913 # want to do that, then you should use the --without-gnu-as and
6914 # --without-gnu-ld options for the configure script. Similarly, if
6915 # the default is to use the included zlib and you don't want to do that,
6916 # you should use the --with-system-zlib option for the configure script.
6917
6918 if test x${use_gnu_as} = x &&
6919 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6920 with_gnu_as=yes
6921 extra_host_args="$extra_host_args --with-gnu-as"
6922 fi
6923
6924 if test x${use_gnu_ld} = x &&
6925 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6926 with_gnu_ld=yes
6927 extra_host_args="$extra_host_args --with-gnu-ld"
6928 fi
6929
6930 if test x${use_included_zlib} = x &&
6931 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6932 :
6933 else
6934 with_system_zlib=yes
6935 extra_host_args="$extra_host_args --with-system-zlib"
6936 fi
6937
6938 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6939 # can detect this case.
6940
6941 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6942 with_newlib=yes
6943 extra_host_args="$extra_host_args --with-newlib"
6944 fi
6945
6946 # Handle ${copy_dirs}
6947 set fnord ${copy_dirs}
6948 shift
6949 while test $# != 0 ; do
6950 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6951 :
6952 else
6953 echo Copying $1 to $2
6954
6955 # Use the install script to create the directory and all required
6956 # parent directories.
6957 if test -d $2 ; then
6958 :
6959 else
6960 echo >config.temp
6961 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6962 fi
6963
6964 # Copy the directory, assuming we have tar.
6965 # FIXME: Should we use B in the second tar? Not all systems support it.
6966 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6967
6968 # It is the responsibility of the user to correctly adjust all
6969 # symlinks. If somebody can figure out how to handle them correctly
6970 # here, feel free to add the code.
6971
6972 echo $1 > $2/COPIED
6973 fi
6974 shift; shift
6975 done
6976
6977 # Determine a target-dependent exec_prefix that the installed
6978 # gcc will search in. Keep this list sorted by triplet, with
6979 # the *-*-osname triplets last.
6980 md_exec_prefix=
6981 case "${target}" in
6982 i[34567]86-pc-msdosdjgpp*)
6983 md_exec_prefix=/dev/env/DJDIR/bin
6984 ;;
6985 *-*-hpux* | \
6986 *-*-nto-qnx* | \
6987 *-*-solaris2*)
6988 md_exec_prefix=/usr/ccs/bin
6989 ;;
6990 esac
6991
6992 extra_arflags_for_target=
6993 extra_nmflags_for_target=
6994 extra_ranlibflags_for_target=
6995 target_makefile_frag=/dev/null
6996 case "${target}" in
6997 spu-*-*)
6998 target_makefile_frag="config/mt-spu"
6999 ;;
7000 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7001 target_makefile_frag="config/mt-sde"
7002 ;;
7003 mipsisa*-*-elfoabi*)
7004 target_makefile_frag="config/mt-mips-elfoabi"
7005 ;;
7006 mips*-*-*linux* | mips*-*-gnu*)
7007 target_makefile_frag="config/mt-mips-gnu"
7008 ;;
7009 nios2-*-elf*)
7010 target_makefile_frag="config/mt-nios2-elf"
7011 ;;
7012 *-*-linux-android*)
7013 target_makefile_frag="config/mt-android"
7014 ;;
7015 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7016 target_makefile_frag="config/mt-gnu"
7017 ;;
7018 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7019 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7020 # commands to handle both 32-bit and 64-bit objects. These flags are
7021 # harmless if we're using GNU nm or ar.
7022 extra_arflags_for_target=" -X32_64"
7023 extra_nmflags_for_target=" -B -X32_64"
7024 ;;
7025 esac
7026
7027 alphaieee_frag=/dev/null
7028 case $target in
7029 alpha*-*-*)
7030 # This just makes sure to use the -mieee option to build target libs.
7031 # This should probably be set individually by each library.
7032 alphaieee_frag="config/mt-alphaieee"
7033 ;;
7034 esac
7035
7036 # If --enable-target-optspace always use -Os instead of -O2 to build
7037 # the target libraries, similarly if it is not specified, use -Os
7038 # on selected platforms.
7039 ospace_frag=/dev/null
7040 case "${enable_target_optspace}:${target}" in
7041 yes:*)
7042 ospace_frag="config/mt-ospace"
7043 ;;
7044 :d30v-*)
7045 ospace_frag="config/mt-d30v"
7046 ;;
7047 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7048 ospace_frag="config/mt-ospace"
7049 ;;
7050 no:* | :*)
7051 ;;
7052 *)
7053 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7054 ;;
7055 esac
7056
7057 # Some systems (e.g., one of the i386-aix systems the gas testers are
7058 # using) don't handle "\$" correctly, so don't use it here.
7059 tooldir='${exec_prefix}'/${target_noncanonical}
7060 build_tooldir=${tooldir}
7061
7062 # Create a .gdbinit file which runs the one in srcdir
7063 # and tells GDB to look there for source files.
7064
7065 if test -r ${srcdir}/.gdbinit ; then
7066 case ${srcdir} in
7067 .) ;;
7068 *) cat > ./.gdbinit <<EOF
7069 # ${NO_EDIT}
7070 dir ${srcdir}
7071 dir .
7072 source ${srcdir}/.gdbinit
7073 EOF
7074 ;;
7075 esac
7076 fi
7077
7078 # Make sure that the compiler is able to generate an executable. If it
7079 # can't, we are probably in trouble. We don't care whether we can run the
7080 # executable--we might be using a cross compiler--we only care whether it
7081 # can be created. At this point the main configure script has set CC.
7082 we_are_ok=no
7083 echo "int main () { return 0; }" > conftest.c
7084 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7085 if test $? = 0 ; then
7086 if test -s conftest || test -s conftest.exe ; then
7087 we_are_ok=yes
7088 fi
7089 fi
7090 case $we_are_ok in
7091 no)
7092 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7093 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7094 rm -f conftest*
7095 exit 1
7096 ;;
7097 esac
7098 rm -f conftest*
7099
7100 # Decide which environment variable is used to find dynamic libraries.
7101 case "${host}" in
7102 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7103 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7104 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7105 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7106 esac
7107
7108 # On systems where the dynamic library environment variable is PATH,
7109 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7110 # built executables to PATH.
7111 if test "$RPATH_ENVVAR" = PATH; then
7112 GCC_SHLIB_SUBDIR=/shlib
7113 else
7114 GCC_SHLIB_SUBDIR=
7115 fi
7116
7117 # Adjust the toplevel makefile according to whether bootstrap was selected.
7118 case $enable_bootstrap in
7119 yes)
7120 bootstrap_suffix=bootstrap
7121 BUILD_CONFIG=bootstrap-debug
7122 ;;
7123 no)
7124 bootstrap_suffix=no-bootstrap
7125 BUILD_CONFIG=
7126 ;;
7127 esac
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7130 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7131
7132
7133 # Check whether --with-build-config was given.
7134 if test "${with_build_config+set}" = set; then :
7135 withval=$with_build_config; case $with_build_config in
7136 yes) with_build_config= ;;
7137 no) with_build_config= BUILD_CONFIG= ;;
7138 esac
7139 fi
7140
7141
7142 if test "x${with_build_config}" != x; then
7143 BUILD_CONFIG=$with_build_config
7144 else
7145 case $BUILD_CONFIG in
7146 bootstrap-debug)
7147 if echo "int f (void) { return 0; }" > conftest.c &&
7148 ${CC} -c conftest.c &&
7149 mv conftest.o conftest.o.g0 &&
7150 ${CC} -c -g conftest.c &&
7151 mv conftest.o conftest.o.g &&
7152 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7153 :
7154 else
7155 BUILD_CONFIG=
7156 fi
7157 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7158 ;;
7159 esac
7160 fi
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7162 $as_echo "$BUILD_CONFIG" >&6; }
7163
7164
7165 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7167 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7168 # Check whether --enable-vtable-verify was given.
7169 if test "${enable_vtable_verify+set}" = set; then :
7170 enableval=$enable_vtable_verify; case "$enableval" in
7171 yes) enable_vtable_verify=yes ;;
7172 no) enable_vtable_verify=no ;;
7173 *) enable_vtable_verify=no;;
7174 esac
7175 else
7176 enable_vtable_verify=no
7177 fi
7178
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7180 $as_echo "$enable_vtable_verify" >&6; }
7181
7182 # Record target_configdirs and the configure arguments for target and
7183 # build configuration in Makefile.
7184 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7185 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7186 bootstrap_fixincludes=no
7187
7188 # If we are building libgomp, bootstrap it.
7189 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7190 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7191 fi
7192
7193 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7194 # or bootstrap-ubsan, bootstrap it.
7195 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7196 case "$BUILD_CONFIG" in
7197 *bootstrap-asan* | *bootstrap-ubsan* )
7198 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7199 bootstrap_fixincludes=yes
7200 ;;
7201 esac
7202 fi
7203
7204 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7205 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7206 test "$enable_vtable_verify" != no; then
7207 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7208 fi
7209
7210 # Determine whether gdb needs tk/tcl or not.
7211 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7212 # and in that case we want gdb to be built without tk. Ugh!
7213 # In fact I believe gdb is the *only* package directly dependent on tk,
7214 # so we should be able to put the 'maybe's in unconditionally and
7215 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7216 # 100% sure that that's safe though.
7217
7218 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7219 case "$enable_gdbtk" in
7220 no)
7221 GDB_TK="" ;;
7222 yes)
7223 GDB_TK="${gdb_tk}" ;;
7224 *)
7225 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7226 # distro. Eventually someone will fix this and move Insight, nee
7227 # gdbtk to a separate directory.
7228 if test -d ${srcdir}/gdb/gdbtk ; then
7229 GDB_TK="${gdb_tk}"
7230 else
7231 GDB_TK=""
7232 fi
7233 ;;
7234 esac
7235 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7236 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7237
7238 # Strip out unwanted targets.
7239
7240 # While at that, we remove Makefiles if we were started for recursive
7241 # configuration, so that the top-level Makefile reconfigures them,
7242 # like we used to do when configure itself was recursive.
7243
7244 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7245 # but now we're fixing up the Makefile ourselves with the additional
7246 # commands passed to AC_CONFIG_FILES. Use separate variables
7247 # extrasub-{build,host,target} not because there is any reason to split
7248 # the substitutions up that way, but only to remain below the limit of
7249 # 99 commands in a script, for HP-UX sed.
7250
7251 # Do not nest @if/@endif or @unless/@endunless pairs, because
7252 # configure will not warn you at all.
7253
7254 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7255 yes:yes:*\ gold\ *:*,c++,*) ;;
7256 yes:yes:*\ gold\ *:*)
7257 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7258 ;;
7259 esac
7260
7261 extrasub_build=
7262 for module in ${build_configdirs} ; do
7263 if test -z "${no_recursion}" \
7264 && test -f ${build_subdir}/${module}/Makefile; then
7265 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7266 rm -f ${build_subdir}/${module}/Makefile
7267 fi
7268 extrasub_build="$extrasub_build
7269 /^@if build-$module\$/d
7270 /^@endif build-$module\$/d
7271 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7272 /^@if build-$module-$bootstrap_suffix\$/d
7273 /^@endif build-$module-$bootstrap_suffix\$/d
7274 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7275 done
7276 extrasub_host=
7277 for module in ${configdirs} ; do
7278 if test -z "${no_recursion}"; then
7279 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7280 if test -f ${file}; then
7281 echo 1>&2 "*** removing ${file} to force reconfigure"
7282 rm -f ${file}
7283 fi
7284 done
7285 fi
7286 case ${module},${bootstrap_fixincludes} in
7287 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7288 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7289 esac
7290 extrasub_host="$extrasub_host
7291 /^@if $module\$/d
7292 /^@endif $module\$/d
7293 /^@unless $module\$/,/^@endunless $module\$/d
7294 /^@if $module-$host_bootstrap_suffix\$/d
7295 /^@endif $module-$host_bootstrap_suffix\$/d
7296 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7297 done
7298 extrasub_target=
7299 for module in ${target_configdirs} ; do
7300 if test -z "${no_recursion}" \
7301 && test -f ${target_subdir}/${module}/Makefile; then
7302 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7303 rm -f ${target_subdir}/${module}/Makefile
7304 fi
7305
7306 # We only bootstrap target libraries listed in bootstrap_target_libs.
7307 case $bootstrap_target_libs in
7308 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7309 *) target_bootstrap_suffix=no-bootstrap ;;
7310 esac
7311
7312 extrasub_target="$extrasub_target
7313 /^@if target-$module\$/d
7314 /^@endif target-$module\$/d
7315 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7316 /^@if target-$module-$target_bootstrap_suffix\$/d
7317 /^@endif target-$module-$target_bootstrap_suffix\$/d
7318 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7319 done
7320
7321 # Do the final fixup along with target modules.
7322 extrasub_target="$extrasub_target
7323 /^@if /,/^@endif /d
7324 /^@unless /d
7325 /^@endunless /d"
7326
7327 # Create the serialization dependencies. This uses a temporary file.
7328
7329 # Check whether --enable-serial-configure was given.
7330 if test "${enable_serial_configure+set}" = set; then :
7331 enableval=$enable_serial_configure;
7332 fi
7333
7334
7335 case ${enable_serial_configure} in
7336 yes)
7337 enable_serial_build_configure=yes
7338 enable_serial_host_configure=yes
7339 enable_serial_target_configure=yes
7340 ;;
7341 esac
7342
7343 # These force 'configure's to be done one at a time, to avoid problems
7344 # with contention over a shared config.cache.
7345 rm -f serdep.tmp
7346 echo '# serdep.tmp' > serdep.tmp
7347 olditem=
7348 test "x${enable_serial_build_configure}" = xyes &&
7349 for item in ${build_configdirs} ; do
7350 case ${olditem} in
7351 "") ;;
7352 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7353 esac
7354 olditem=${item}
7355 done
7356 olditem=
7357 test "x${enable_serial_host_configure}" = xyes &&
7358 for item in ${configdirs} ; do
7359 case ${olditem} in
7360 "") ;;
7361 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7362 esac
7363 olditem=${item}
7364 done
7365 olditem=
7366 test "x${enable_serial_target_configure}" = xyes &&
7367 for item in ${target_configdirs} ; do
7368 case ${olditem} in
7369 "") ;;
7370 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7371 esac
7372 olditem=${item}
7373 done
7374 serialization_dependencies=serdep.tmp
7375
7376
7377 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7378 # target, nonopt, and variable assignments. These are the ones we
7379 # might not want to pass down to subconfigures. The exception being
7380 # --cache-file=/dev/null, which is used to turn off the use of cache
7381 # files altogether, and which should be passed on to subconfigures.
7382 # Also strip program-prefix, program-suffix, and program-transform-name,
7383 # so that we can pass down a consistent program-transform-name.
7384 baseargs=
7385 tbaseargs=
7386 keep_next=no
7387 skip_next=no
7388 eval "set -- $ac_configure_args"
7389 for ac_arg
7390 do
7391 if test X"$skip_next" = X"yes"; then
7392 skip_next=no
7393 continue
7394 fi
7395 if test X"$keep_next" = X"yes"; then
7396 case $ac_arg in
7397 *\'*)
7398 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7399 esac
7400 baseargs="$baseargs '$ac_arg'"
7401 tbaseargs="$tbaseargs '$ac_arg'"
7402 keep_next=no
7403 continue
7404 fi
7405
7406 # Handle separated arguments. Based on the logic generated by
7407 # autoconf 2.59.
7408 case $ac_arg in
7409 *=* | --config-cache | -C | -disable-* | --disable-* \
7410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7412 | -with-* | --with-* | -without-* | --without-* | --x)
7413 separate_arg=no
7414 ;;
7415 -*)
7416 separate_arg=yes
7417 ;;
7418 *)
7419 separate_arg=no
7420 ;;
7421 esac
7422
7423 skip_targ=no
7424 case $ac_arg in
7425
7426 --with-* | --without-*)
7427 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7428
7429 case $libopt in
7430 *[-_]include)
7431 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7432 ;;
7433 *[-_]lib)
7434 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7435 ;;
7436 *)
7437 lib=$libopt
7438 ;;
7439 esac
7440
7441
7442 case $lib in
7443 mpc | mpfr | gmp | isl)
7444 # If we're processing --with-$lib, --with-$lib-include or
7445 # --with-$lib-lib, for one of the libs above, and target is
7446 # different from host, don't pass the current argument to any
7447 # target library's configure.
7448 if test x$is_cross_compiler = xyes; then
7449 skip_targ=yes
7450 fi
7451 ;;
7452 esac
7453 ;;
7454 esac
7455
7456 case "$ac_arg" in
7457 --cache-file=/dev/null | \
7458 -cache-file=/dev/null )
7459 # Handled here to avoid the test to skip args below.
7460 baseargs="$baseargs '$ac_arg'"
7461 tbaseargs="$tbaseargs '$ac_arg'"
7462 # Assert: $separate_arg should always be no.
7463 keep_next=$separate_arg
7464 ;;
7465 --no*)
7466 continue
7467 ;;
7468 --c* | \
7469 --sr* | \
7470 --ho* | \
7471 --bu* | \
7472 --t* | \
7473 --program-* | \
7474 -cache_file* | \
7475 -srcdir* | \
7476 -host* | \
7477 -build* | \
7478 -target* | \
7479 -program-prefix* | \
7480 -program-suffix* | \
7481 -program-transform-name* )
7482 skip_next=$separate_arg
7483 continue
7484 ;;
7485 -*)
7486 # An option. Add it.
7487 case $ac_arg in
7488 *\'*)
7489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7490 esac
7491 baseargs="$baseargs '$ac_arg'"
7492 if test X"$skip_targ" = Xno; then
7493 tbaseargs="$tbaseargs '$ac_arg'"
7494 fi
7495 keep_next=$separate_arg
7496 ;;
7497 *)
7498 # Either a variable assignment, or a nonopt (triplet). Don't
7499 # pass it down; let the Makefile handle this.
7500 continue
7501 ;;
7502 esac
7503 done
7504 # Remove the initial space we just introduced and, as these will be
7505 # expanded by make, quote '$'.
7506 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7507
7508 # Add in --program-transform-name, after --program-prefix and
7509 # --program-suffix have been applied to it. Autoconf has already
7510 # doubled dollar signs and backslashes in program_transform_name; we want
7511 # the backslashes un-doubled, and then the entire thing wrapped in single
7512 # quotes, because this will be expanded first by make and then by the shell.
7513 # Also, because we want to override the logic in subdir configure scripts to
7514 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7515 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7516 ${program_transform_name}
7517 EOF_SED
7518 gcc_transform_name=`cat conftestsed.out`
7519 rm -f conftestsed.out
7520 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7521 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7522 if test "$silent" = yes; then
7523 baseargs="$baseargs --silent"
7524 tbaseargs="$tbaseargs --silent"
7525 fi
7526 baseargs="$baseargs --disable-option-checking"
7527 tbaseargs="$tbaseargs --disable-option-checking"
7528
7529 # Record and document user additions to sub configure arguments.
7530
7531
7532
7533
7534 # For the build-side libraries, we just need to pretend we're native,
7535 # and not use the same cache file. Multilibs are neither needed nor
7536 # desired. We can't even use the same cache file for all build-side
7537 # libraries, as they're compiled differently; some with C, some with
7538 # C++ or with different feature-enabling options.
7539 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7540
7541 # For host modules, accept cache file option, or specification as blank.
7542 case "${cache_file}" in
7543 "") # empty
7544 cache_file_option="" ;;
7545 /* | [A-Za-z]:[\\/]* ) # absolute path
7546 cache_file_option="--cache-file=${cache_file}" ;;
7547 *) # relative path
7548 cache_file_option="--cache-file=../${cache_file}" ;;
7549 esac
7550
7551 # Host dirs don't like to share a cache file either, horribly enough.
7552 # This seems to be due to autoconf 2.5x stupidity.
7553 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7554
7555 target_configargs="$target_configargs ${tbaseargs}"
7556
7557 # Passing a --with-cross-host argument lets the target libraries know
7558 # whether they are being built with a cross-compiler or being built
7559 # native. However, it would be better to use other mechanisms to make the
7560 # sorts of decisions they want to make on this basis. Please consider
7561 # this option to be deprecated. FIXME.
7562 if test x${is_cross_compiler} = xyes ; then
7563 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7564 fi
7565
7566 # Special user-friendly check for native x86_64-linux build, if
7567 # multilib is not explicitly enabled.
7568 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7569 x86_64-*linux*:yes:$build:$build:)
7570 # Make sure we have a development environment that handles 32-bit
7571 dev64=no
7572 echo "int main () { return 0; }" > conftest.c
7573 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7574 if test $? = 0 ; then
7575 if test -s conftest || test -s conftest.exe ; then
7576 dev64=yes
7577 fi
7578 fi
7579 rm -f conftest*
7580 if test x${dev64} != xyes ; then
7581 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
7582 fi
7583 ;;
7584 esac
7585
7586 # Default to --enable-multilib.
7587 if test x${enable_multilib} = x ; then
7588 target_configargs="--enable-multilib ${target_configargs}"
7589 fi
7590
7591 # Pass --with-newlib if appropriate. Note that target_configdirs has
7592 # changed from the earlier setting of with_newlib.
7593 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7594 target_configargs="--with-newlib ${target_configargs}"
7595 fi
7596
7597 # Different target subdirs use different values of certain variables
7598 # (notably CXX). Worse, multilibs use *lots* of different values.
7599 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7600 # it doesn't automatically accept command-line overrides of them.
7601 # This means it's not safe for target subdirs to share a cache file,
7602 # which is disgusting, but there you have it. Hopefully this can be
7603 # fixed in future. It's still worthwhile to use a cache file for each
7604 # directory. I think.
7605
7606 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7607 # We need to pass --target, as newer autoconf's requires consistency
7608 # for target_alias and gcc doesn't manage it consistently.
7609 target_configargs="--cache-file=./config.cache ${target_configargs}"
7610
7611 FLAGS_FOR_TARGET=
7612 case " $target_configdirs " in
7613 *" newlib "*)
7614 case " $target_configargs " in
7615 *" --with-newlib "*)
7616 case "$target" in
7617 *-cygwin*)
7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7619 ;;
7620 esac
7621
7622 # If we're not building GCC, don't discard standard headers.
7623 if test -d ${srcdir}/gcc; then
7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7625
7626 if test "${build}" != "${host}"; then
7627 # On Canadian crosses, CC_FOR_TARGET will have already been set
7628 # by `configure', so we won't have an opportunity to add -Bgcc/
7629 # to it. This is right: we don't want to search that directory
7630 # for binaries, but we want the header files in there, so add
7631 # them explicitly.
7632 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7633
7634 # Someone might think of using the pre-installed headers on
7635 # Canadian crosses, in case the installed compiler is not fully
7636 # compatible with the compiler being built. In this case, it
7637 # would be better to flag an error than risking having
7638 # incompatible object files being constructed. We can't
7639 # guarantee that an error will be flagged, but let's hope the
7640 # compiler will do it, when presented with incompatible header
7641 # files.
7642 fi
7643 fi
7644
7645 case "${target}-${is_cross_compiler}" in
7646 i[3456789]86-*-linux*-no)
7647 # Here host == target, so we don't need to build gcc,
7648 # so we don't want to discard standard headers.
7649 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7650 ;;
7651 *)
7652 # If we're building newlib, use its generic headers last, but search
7653 # for any libc-related directories first (so make it the last -B
7654 # switch).
7655 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7656
7657 # If we're building libgloss, find the startup file, simulator library
7658 # and linker script.
7659 case " $target_configdirs " in
7660 *" libgloss "*)
7661 # Look for startup file, simulator library and maybe linker script.
7662 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7663 # Look for libnosys.a in case the target needs it.
7664 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7665 # Most targets have the linker script in the source directory.
7666 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7667 ;;
7668 esac
7669 ;;
7670 esac
7671 ;;
7672 esac
7673 ;;
7674 esac
7675
7676 case "$target" in
7677 x86_64-*mingw* | *-w64-mingw*)
7678 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7679 # however, use a symlink named 'mingw' in ${prefix} .
7680 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7681 ;;
7682 *-mingw*)
7683 # MinGW can't be handled as Cygwin above since it does not use newlib.
7684 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'
7685 ;;
7686 esac
7687
7688 # Allow the user to override the flags for
7689 # our build compiler if desired.
7690 if test x"${build}" = x"${host}" ; then
7691 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7692 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7693 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7694 fi
7695
7696 # On Canadian crosses, we'll be searching the right directories for
7697 # the previously-installed cross compiler, so don't bother to add
7698 # flags for directories within the install tree of the compiler
7699 # being built; programs in there won't even run.
7700 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7701 # Search for pre-installed headers if nothing else fits.
7702 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7703 fi
7704
7705 if test "x${use_gnu_ld}" = x &&
7706 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7707 # Arrange for us to find uninstalled linker scripts.
7708 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7709 fi
7710
7711 # Search for other target-specific linker scripts and such.
7712 case "${target}" in
7713 mep*)
7714 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7715 ;;
7716 esac
7717
7718 # Makefile fragments.
7719 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7720 do
7721 eval fragval=\$$frag
7722 if test $fragval != /dev/null; then
7723 eval $frag=${srcdir}/$fragval
7724 fi
7725 done
7726
7727
7728
7729
7730
7731 # Miscellanea: directories, flags, etc.
7732
7733
7734
7735
7736
7737
7738
7739
7740 # Build module lists & subconfigure args.
7741
7742
7743
7744 # Host module lists & subconfigure args.
7745
7746
7747
7748
7749 # Target module lists & subconfigure args.
7750
7751
7752
7753 # Build tools.
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771 # Generate default definitions for YACC, M4, LEX and other programs that run
7772 # on the build machine. These are used if the Makefile can't locate these
7773 # programs in objdir.
7774 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7775
7776 for ac_prog in 'bison -y' byacc yacc
7777 do
7778 # Extract the first word of "$ac_prog", so it can be a program name with args.
7779 set dummy $ac_prog; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_YACC+:} false; then :
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$YACC"; then
7786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_YACC="$ac_prog"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7798 fi
7799 done
7800 done
7801 IFS=$as_save_IFS
7802
7803 fi
7804 fi
7805 YACC=$ac_cv_prog_YACC
7806 if test -n "$YACC"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7808 $as_echo "$YACC" >&6; }
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813
7814
7815 test -n "$YACC" && break
7816 done
7817 test -n "$YACC" || YACC="$MISSING bison -y"
7818
7819 case " $build_configdirs " in
7820 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7821 esac
7822
7823 for ac_prog in bison
7824 do
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_BISON+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$BISON"; then
7833 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842 ac_cv_prog_BISON="$ac_prog"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7845 fi
7846 done
7847 done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 BISON=$ac_cv_prog_BISON
7853 if test -n "$BISON"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7855 $as_echo "$BISON" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861
7862 test -n "$BISON" && break
7863 done
7864 test -n "$BISON" || BISON="$MISSING bison"
7865
7866 case " $build_configdirs " in
7867 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7868 esac
7869
7870 for ac_prog in gm4 gnum4 m4
7871 do
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_M4+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$M4"; then
7880 ac_cv_prog_M4="$M4" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_M4="$ac_prog"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 M4=$ac_cv_prog_M4
7900 if test -n "$M4"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7902 $as_echo "$M4" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 test -n "$M4" && break
7910 done
7911 test -n "$M4" || M4="$MISSING m4"
7912
7913 case " $build_configdirs " in
7914 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7915 esac
7916
7917 for ac_prog in flex lex
7918 do
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy $ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_LEX+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$LEX"; then
7927 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_LEX="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7939 fi
7940 done
7941 done
7942 IFS=$as_save_IFS
7943
7944 fi
7945 fi
7946 LEX=$ac_cv_prog_LEX
7947 if test -n "$LEX"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7949 $as_echo "$LEX" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955
7956 test -n "$LEX" && break
7957 done
7958 test -n "$LEX" || LEX="$MISSING flex"
7959
7960 case " $build_configdirs " in
7961 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7962 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7963 esac
7964
7965 for ac_prog in flex
7966 do
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_FLEX+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$FLEX"; then
7975 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_FLEX="$ac_prog"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 FLEX=$ac_cv_prog_FLEX
7995 if test -n "$FLEX"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7997 $as_echo "$FLEX" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004 test -n "$FLEX" && break
8005 done
8006 test -n "$FLEX" || FLEX="$MISSING flex"
8007
8008 case " $build_configdirs " in
8009 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8010 esac
8011
8012 for ac_prog in makeinfo
8013 do
8014 # Extract the first word of "$ac_prog", so it can be a program name with args.
8015 set dummy $ac_prog; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_MAKEINFO+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$MAKEINFO"; then
8022 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8026 do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_MAKEINFO="$ac_prog"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 MAKEINFO=$ac_cv_prog_MAKEINFO
8042 if test -n "$MAKEINFO"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8044 $as_echo "$MAKEINFO" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051 test -n "$MAKEINFO" && break
8052 done
8053 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8054
8055 case " $build_configdirs " in
8056 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8057 *)
8058
8059 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8060 # higher, else we use the "missing" dummy.
8061 if ${MAKEINFO} --version \
8062 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8063 :
8064 else
8065 MAKEINFO="$MISSING makeinfo"
8066 fi
8067 ;;
8068
8069 esac
8070
8071 # FIXME: expect and dejagnu may become build tools?
8072
8073 for ac_prog in expect
8074 do
8075 # Extract the first word of "$ac_prog", so it can be a program name with args.
8076 set dummy $ac_prog; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_EXPECT+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$EXPECT"; then
8083 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_EXPECT="$ac_prog"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096 done
8097 done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 EXPECT=$ac_cv_prog_EXPECT
8103 if test -n "$EXPECT"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8105 $as_echo "$EXPECT" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111
8112 test -n "$EXPECT" && break
8113 done
8114 test -n "$EXPECT" || EXPECT="expect"
8115
8116 case " $configdirs " in
8117 *" expect "*)
8118 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8119 ;;
8120 esac
8121
8122 for ac_prog in runtest
8123 do
8124 # Extract the first word of "$ac_prog", so it can be a program name with args.
8125 set dummy $ac_prog; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_RUNTEST+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$RUNTEST"; then
8132 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_RUNTEST="$ac_prog"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145 done
8146 done
8147 IFS=$as_save_IFS
8148
8149 fi
8150 fi
8151 RUNTEST=$ac_cv_prog_RUNTEST
8152 if test -n "$RUNTEST"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8154 $as_echo "$RUNTEST" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159
8160
8161 test -n "$RUNTEST" && break
8162 done
8163 test -n "$RUNTEST" || RUNTEST="runtest"
8164
8165 case " $configdirs " in
8166 *" dejagnu "*)
8167 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8168 ;;
8169 esac
8170
8171
8172 # Host tools.
8173 ncn_tool_prefix=
8174 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8175 ncn_target_tool_prefix=
8176 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8177
8178
8179
8180 if test -n "$AR"; then
8181 ac_cv_prog_AR=$AR
8182 elif test -n "$ac_cv_prog_AR"; then
8183 AR=$ac_cv_prog_AR
8184 fi
8185
8186 if test -n "$ac_cv_prog_AR"; then
8187 for ncn_progname in ar; do
8188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8189 set dummy ${ncn_progname}; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_AR+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$AR"; then
8196 ac_cv_prog_AR="$AR" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_AR="${ncn_progname}"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8208 fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 AR=$ac_cv_prog_AR
8216 if test -n "$AR"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8218 $as_echo "$AR" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225 done
8226 fi
8227
8228 for ncn_progname in ar; do
8229 if test -n "$ncn_tool_prefix"; then
8230 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8231 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_AR+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$AR"; then
8238 ac_cv_prog_AR="$AR" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 AR=$ac_cv_prog_AR
8258 if test -n "$AR"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8260 $as_echo "$AR" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267 fi
8268 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8270 set dummy ${ncn_progname}; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_prog_AR+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$AR"; then
8277 ac_cv_prog_AR="$AR" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8281 do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_AR="${ncn_progname}"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi
8295 fi
8296 AR=$ac_cv_prog_AR
8297 if test -n "$AR"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8299 $as_echo "$AR" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8303 fi
8304
8305
8306 fi
8307 test -n "$ac_cv_prog_AR" && break
8308 done
8309
8310 if test -z "$ac_cv_prog_AR" ; then
8311 set dummy ar
8312 if test $build = $host ; then
8313 AR="$2"
8314 else
8315 AR="${ncn_tool_prefix}$2"
8316 fi
8317 fi
8318
8319
8320
8321 if test -n "$AS"; then
8322 ac_cv_prog_AS=$AS
8323 elif test -n "$ac_cv_prog_AS"; then
8324 AS=$ac_cv_prog_AS
8325 fi
8326
8327 if test -n "$ac_cv_prog_AS"; then
8328 for ncn_progname in as; do
8329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8330 set dummy ${ncn_progname}; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_prog_AS+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 if test -n "$AS"; then
8337 ac_cv_prog_AS="$AS" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_AS="${ncn_progname}"
8347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354 fi
8355 fi
8356 AS=$ac_cv_prog_AS
8357 if test -n "$AS"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8359 $as_echo "$AS" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364
8365
8366 done
8367 fi
8368
8369 for ncn_progname in as; do
8370 if test -n "$ncn_tool_prefix"; then
8371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8372 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if ${ac_cv_prog_AS+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$AS"; then
8379 ac_cv_prog_AS="$AS" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 AS=$ac_cv_prog_AS
8399 if test -n "$AS"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8401 $as_echo "$AS" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407
8408 fi
8409 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411 set dummy ${ncn_progname}; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if ${ac_cv_prog_AS+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$AS"; then
8418 ac_cv_prog_AS="$AS" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_AS="${ncn_progname}"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431 done
8432 done
8433 IFS=$as_save_IFS
8434
8435 fi
8436 fi
8437 AS=$ac_cv_prog_AS
8438 if test -n "$AS"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8440 $as_echo "$AS" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 fi
8445
8446
8447 fi
8448 test -n "$ac_cv_prog_AS" && break
8449 done
8450
8451 if test -z "$ac_cv_prog_AS" ; then
8452 set dummy as
8453 if test $build = $host ; then
8454 AS="$2"
8455 else
8456 AS="${ncn_tool_prefix}$2"
8457 fi
8458 fi
8459
8460
8461
8462 if test -n "$DLLTOOL"; then
8463 ac_cv_prog_DLLTOOL=$DLLTOOL
8464 elif test -n "$ac_cv_prog_DLLTOOL"; then
8465 DLLTOOL=$ac_cv_prog_DLLTOOL
8466 fi
8467
8468 if test -n "$ac_cv_prog_DLLTOOL"; then
8469 for ncn_progname in dlltool; do
8470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8471 set dummy ${ncn_progname}; ac_word=$2
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8473 $as_echo_n "checking for $ac_word... " >&6; }
8474 if ${ac_cv_prog_DLLTOOL+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 if test -n "$DLLTOOL"; then
8478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8479 else
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8482 do
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_prog_DLLTOOL="${ncn_progname}"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8490 fi
8491 done
8492 done
8493 IFS=$as_save_IFS
8494
8495 fi
8496 fi
8497 DLLTOOL=$ac_cv_prog_DLLTOOL
8498 if test -n "$DLLTOOL"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8500 $as_echo "$DLLTOOL" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 done
8508 fi
8509
8510 for ncn_progname in dlltool; do
8511 if test -n "$ncn_tool_prefix"; then
8512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8513 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_DLLTOOL+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$DLLTOOL"; then
8520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 DLLTOOL=$ac_cv_prog_DLLTOOL
8540 if test -n "$DLLTOOL"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8542 $as_echo "$DLLTOOL" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8552 set dummy ${ncn_progname}; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_prog_DLLTOOL+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 if test -n "$DLLTOOL"; then
8559 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8563 do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8568 ac_cv_prog_DLLTOOL="${ncn_progname}"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572 done
8573 done
8574 IFS=$as_save_IFS
8575
8576 fi
8577 fi
8578 DLLTOOL=$ac_cv_prog_DLLTOOL
8579 if test -n "$DLLTOOL"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8581 $as_echo "$DLLTOOL" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586
8587
8588 fi
8589 test -n "$ac_cv_prog_DLLTOOL" && break
8590 done
8591
8592 if test -z "$ac_cv_prog_DLLTOOL" ; then
8593 set dummy dlltool
8594 if test $build = $host ; then
8595 DLLTOOL="$2"
8596 else
8597 DLLTOOL="${ncn_tool_prefix}$2"
8598 fi
8599 fi
8600
8601
8602
8603 if test -n "$LD"; then
8604 ac_cv_prog_LD=$LD
8605 elif test -n "$ac_cv_prog_LD"; then
8606 LD=$ac_cv_prog_LD
8607 fi
8608
8609 if test -n "$ac_cv_prog_LD"; then
8610 for ncn_progname in ld; do
8611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8612 set dummy ${ncn_progname}; ac_word=$2
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614 $as_echo_n "checking for $ac_word... " >&6; }
8615 if ${ac_cv_prog_LD+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 if test -n "$LD"; then
8619 ac_cv_prog_LD="$LD" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8628 ac_cv_prog_LD="${ncn_progname}"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8631 fi
8632 done
8633 done
8634 IFS=$as_save_IFS
8635
8636 fi
8637 fi
8638 LD=$ac_cv_prog_LD
8639 if test -n "$LD"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8641 $as_echo "$LD" >&6; }
8642 else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8645 fi
8646
8647
8648 done
8649 fi
8650
8651 for ncn_progname in ld; do
8652 if test -n "$ncn_tool_prefix"; then
8653 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_LD+:} false; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 if test -n "$LD"; then
8661 ac_cv_prog_LD="$LD" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 LD=$ac_cv_prog_LD
8681 if test -n "$LD"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8683 $as_echo "$LD" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 fi
8691 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8693 set dummy ${ncn_progname}; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_LD+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 if test -n "$LD"; then
8700 ac_cv_prog_LD="$LD" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_LD="${ncn_progname}"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715 IFS=$as_save_IFS
8716
8717 fi
8718 fi
8719 LD=$ac_cv_prog_LD
8720 if test -n "$LD"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8722 $as_echo "$LD" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 fi
8727
8728
8729 fi
8730 test -n "$ac_cv_prog_LD" && break
8731 done
8732
8733 if test -z "$ac_cv_prog_LD" ; then
8734 set dummy ld
8735 if test $build = $host ; then
8736 LD="$2"
8737 else
8738 LD="${ncn_tool_prefix}$2"
8739 fi
8740 fi
8741
8742
8743
8744 if test -n "$LIPO"; then
8745 ac_cv_prog_LIPO=$LIPO
8746 elif test -n "$ac_cv_prog_LIPO"; then
8747 LIPO=$ac_cv_prog_LIPO
8748 fi
8749
8750 if test -n "$ac_cv_prog_LIPO"; then
8751 for ncn_progname in lipo; do
8752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8753 set dummy ${ncn_progname}; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_prog_LIPO+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 if test -n "$LIPO"; then
8760 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8761 else
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8764 do
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_prog_LIPO="${ncn_progname}"
8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 break 2
8772 fi
8773 done
8774 done
8775 IFS=$as_save_IFS
8776
8777 fi
8778 fi
8779 LIPO=$ac_cv_prog_LIPO
8780 if test -n "$LIPO"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8782 $as_echo "$LIPO" >&6; }
8783 else
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8786 fi
8787
8788
8789 done
8790 fi
8791
8792 for ncn_progname in lipo; do
8793 if test -n "$ncn_tool_prefix"; then
8794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8795 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if ${ac_cv_prog_LIPO+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 if test -n "$LIPO"; then
8802 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8806 do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8811 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8814 fi
8815 done
8816 done
8817 IFS=$as_save_IFS
8818
8819 fi
8820 fi
8821 LIPO=$ac_cv_prog_LIPO
8822 if test -n "$LIPO"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8824 $as_echo "$LIPO" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831 fi
8832 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8834 set dummy ${ncn_progname}; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_prog_LIPO+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 if test -n "$LIPO"; then
8841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8845 do
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8850 ac_cv_prog_LIPO="${ncn_progname}"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8853 fi
8854 done
8855 done
8856 IFS=$as_save_IFS
8857
8858 fi
8859 fi
8860 LIPO=$ac_cv_prog_LIPO
8861 if test -n "$LIPO"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8863 $as_echo "$LIPO" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 fi
8868
8869
8870 fi
8871 test -n "$ac_cv_prog_LIPO" && break
8872 done
8873
8874 if test -z "$ac_cv_prog_LIPO" ; then
8875 set dummy lipo
8876 if test $build = $host ; then
8877 LIPO="$2"
8878 else
8879 LIPO="${ncn_tool_prefix}$2"
8880 fi
8881 fi
8882
8883
8884
8885 if test -n "$NM"; then
8886 ac_cv_prog_NM=$NM
8887 elif test -n "$ac_cv_prog_NM"; then
8888 NM=$ac_cv_prog_NM
8889 fi
8890
8891 if test -n "$ac_cv_prog_NM"; then
8892 for ncn_progname in nm; do
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8894 set dummy ${ncn_progname}; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_NM+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$NM"; then
8901 ac_cv_prog_NM="$NM" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_NM="${ncn_progname}"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914 done
8915 done
8916 IFS=$as_save_IFS
8917
8918 fi
8919 fi
8920 NM=$ac_cv_prog_NM
8921 if test -n "$NM"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8923 $as_echo "$NM" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8927 fi
8928
8929
8930 done
8931 fi
8932
8933 for ncn_progname in nm; do
8934 if test -n "$ncn_tool_prefix"; then
8935 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8936 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_prog_NM+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -n "$NM"; then
8943 ac_cv_prog_NM="$NM" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956 done
8957 done
8958 IFS=$as_save_IFS
8959
8960 fi
8961 fi
8962 NM=$ac_cv_prog_NM
8963 if test -n "$NM"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8965 $as_echo "$NM" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8969 fi
8970
8971
8972 fi
8973 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8975 set dummy ${ncn_progname}; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if ${ac_cv_prog_NM+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 if test -n "$NM"; then
8982 ac_cv_prog_NM="$NM" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8986 do
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991 ac_cv_prog_NM="${ncn_progname}"
8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 break 2
8994 fi
8995 done
8996 done
8997 IFS=$as_save_IFS
8998
8999 fi
9000 fi
9001 NM=$ac_cv_prog_NM
9002 if test -n "$NM"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9004 $as_echo "$NM" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9008 fi
9009
9010
9011 fi
9012 test -n "$ac_cv_prog_NM" && break
9013 done
9014
9015 if test -z "$ac_cv_prog_NM" ; then
9016 set dummy nm
9017 if test $build = $host ; then
9018 NM="$2"
9019 else
9020 NM="${ncn_tool_prefix}$2"
9021 fi
9022 fi
9023
9024
9025
9026 if test -n "$RANLIB"; then
9027 ac_cv_prog_RANLIB=$RANLIB
9028 elif test -n "$ac_cv_prog_RANLIB"; then
9029 RANLIB=$ac_cv_prog_RANLIB
9030 fi
9031
9032 if test -n "$ac_cv_prog_RANLIB"; then
9033 for ncn_progname in ranlib; do
9034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9035 set dummy ${ncn_progname}; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_prog_RANLIB+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 if test -n "$RANLIB"; then
9042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9046 do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_RANLIB="${ncn_progname}"
9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9054 fi
9055 done
9056 done
9057 IFS=$as_save_IFS
9058
9059 fi
9060 fi
9061 RANLIB=$ac_cv_prog_RANLIB
9062 if test -n "$RANLIB"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9064 $as_echo "$RANLIB" >&6; }
9065 else
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9068 fi
9069
9070
9071 done
9072 fi
9073
9074 for ncn_progname in ranlib; do
9075 if test -n "$ncn_tool_prefix"; then
9076 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9077 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_RANLIB+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 if test -n "$RANLIB"; then
9084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9093 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9096 fi
9097 done
9098 done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 RANLIB=$ac_cv_prog_RANLIB
9104 if test -n "$RANLIB"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9106 $as_echo "$RANLIB" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112
9113 fi
9114 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9116 set dummy ${ncn_progname}; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if ${ac_cv_prog_RANLIB+:} false; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 if test -n "$RANLIB"; then
9123 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9127 do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9132 ac_cv_prog_RANLIB="${ncn_progname}"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136 done
9137 done
9138 IFS=$as_save_IFS
9139
9140 fi
9141 fi
9142 RANLIB=$ac_cv_prog_RANLIB
9143 if test -n "$RANLIB"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9145 $as_echo "$RANLIB" >&6; }
9146 else
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9149 fi
9150
9151
9152 fi
9153 test -n "$ac_cv_prog_RANLIB" && break
9154 done
9155
9156 if test -z "$ac_cv_prog_RANLIB" ; then
9157 RANLIB="true"
9158 fi
9159
9160
9161
9162 if test -n "$STRIP"; then
9163 ac_cv_prog_STRIP=$STRIP
9164 elif test -n "$ac_cv_prog_STRIP"; then
9165 STRIP=$ac_cv_prog_STRIP
9166 fi
9167
9168 if test -n "$ac_cv_prog_STRIP"; then
9169 for ncn_progname in strip; do
9170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9171 set dummy ${ncn_progname}; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_prog_STRIP+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 if test -n "$STRIP"; then
9178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9182 do
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_STRIP="${ncn_progname}"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9190 fi
9191 done
9192 done
9193 IFS=$as_save_IFS
9194
9195 fi
9196 fi
9197 STRIP=$ac_cv_prog_STRIP
9198 if test -n "$STRIP"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9200 $as_echo "$STRIP" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 fi
9205
9206
9207 done
9208 fi
9209
9210 for ncn_progname in strip; do
9211 if test -n "$ncn_tool_prefix"; then
9212 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9213 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9215 $as_echo_n "checking for $ac_word... " >&6; }
9216 if ${ac_cv_prog_STRIP+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 if test -n "$STRIP"; then
9220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9221 else
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9229 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9232 fi
9233 done
9234 done
9235 IFS=$as_save_IFS
9236
9237 fi
9238 fi
9239 STRIP=$ac_cv_prog_STRIP
9240 if test -n "$STRIP"; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9242 $as_echo "$STRIP" >&6; }
9243 else
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 $as_echo "no" >&6; }
9246 fi
9247
9248
9249 fi
9250 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9252 set dummy ${ncn_progname}; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if ${ac_cv_prog_STRIP+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 if test -n "$STRIP"; then
9259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268 ac_cv_prog_STRIP="${ncn_progname}"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9271 fi
9272 done
9273 done
9274 IFS=$as_save_IFS
9275
9276 fi
9277 fi
9278 STRIP=$ac_cv_prog_STRIP
9279 if test -n "$STRIP"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9281 $as_echo "$STRIP" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9285 fi
9286
9287
9288 fi
9289 test -n "$ac_cv_prog_STRIP" && break
9290 done
9291
9292 if test -z "$ac_cv_prog_STRIP" ; then
9293 STRIP="true"
9294 fi
9295
9296
9297
9298 if test -n "$WINDRES"; then
9299 ac_cv_prog_WINDRES=$WINDRES
9300 elif test -n "$ac_cv_prog_WINDRES"; then
9301 WINDRES=$ac_cv_prog_WINDRES
9302 fi
9303
9304 if test -n "$ac_cv_prog_WINDRES"; then
9305 for ncn_progname in windres; do
9306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9307 set dummy ${ncn_progname}; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_WINDRES+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 if test -n "$WINDRES"; then
9314 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9315 else
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 for as_dir in $PATH
9318 do
9319 IFS=$as_save_IFS
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 ac_cv_prog_WINDRES="${ncn_progname}"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9325 break 2
9326 fi
9327 done
9328 done
9329 IFS=$as_save_IFS
9330
9331 fi
9332 fi
9333 WINDRES=$ac_cv_prog_WINDRES
9334 if test -n "$WINDRES"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9336 $as_echo "$WINDRES" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342
9343 done
9344 fi
9345
9346 for ncn_progname in windres; do
9347 if test -n "$ncn_tool_prefix"; then
9348 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9349 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if ${ac_cv_prog_WINDRES+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test -n "$WINDRES"; then
9356 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9360 do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9365 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369 done
9370 done
9371 IFS=$as_save_IFS
9372
9373 fi
9374 fi
9375 WINDRES=$ac_cv_prog_WINDRES
9376 if test -n "$WINDRES"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9378 $as_echo "$WINDRES" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383
9384
9385 fi
9386 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9388 set dummy ${ncn_progname}; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if ${ac_cv_prog_WINDRES+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 if test -n "$WINDRES"; then
9395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9399 do
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404 ac_cv_prog_WINDRES="${ncn_progname}"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9407 fi
9408 done
9409 done
9410 IFS=$as_save_IFS
9411
9412 fi
9413 fi
9414 WINDRES=$ac_cv_prog_WINDRES
9415 if test -n "$WINDRES"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9417 $as_echo "$WINDRES" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421 fi
9422
9423
9424 fi
9425 test -n "$ac_cv_prog_WINDRES" && break
9426 done
9427
9428 if test -z "$ac_cv_prog_WINDRES" ; then
9429 set dummy windres
9430 if test $build = $host ; then
9431 WINDRES="$2"
9432 else
9433 WINDRES="${ncn_tool_prefix}$2"
9434 fi
9435 fi
9436
9437
9438
9439 if test -n "$WINDMC"; then
9440 ac_cv_prog_WINDMC=$WINDMC
9441 elif test -n "$ac_cv_prog_WINDMC"; then
9442 WINDMC=$ac_cv_prog_WINDMC
9443 fi
9444
9445 if test -n "$ac_cv_prog_WINDMC"; then
9446 for ncn_progname in windmc; do
9447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9448 set dummy ${ncn_progname}; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if ${ac_cv_prog_WINDMC+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 if test -n "$WINDMC"; then
9455 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9459 do
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_WINDMC="${ncn_progname}"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468 done
9469 done
9470 IFS=$as_save_IFS
9471
9472 fi
9473 fi
9474 WINDMC=$ac_cv_prog_WINDMC
9475 if test -n "$WINDMC"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9477 $as_echo "$WINDMC" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9481 fi
9482
9483
9484 done
9485 fi
9486
9487 for ncn_progname in windmc; do
9488 if test -n "$ncn_tool_prefix"; then
9489 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_prog_WINDMC+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 if test -n "$WINDMC"; then
9497 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510 done
9511 done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 WINDMC=$ac_cv_prog_WINDMC
9517 if test -n "$WINDMC"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9519 $as_echo "$WINDMC" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525
9526 fi
9527 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9529 set dummy ${ncn_progname}; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_prog_WINDMC+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 if test -n "$WINDMC"; then
9536 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9540 do
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9545 ac_cv_prog_WINDMC="${ncn_progname}"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9548 fi
9549 done
9550 done
9551 IFS=$as_save_IFS
9552
9553 fi
9554 fi
9555 WINDMC=$ac_cv_prog_WINDMC
9556 if test -n "$WINDMC"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9558 $as_echo "$WINDMC" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563
9564
9565 fi
9566 test -n "$ac_cv_prog_WINDMC" && break
9567 done
9568
9569 if test -z "$ac_cv_prog_WINDMC" ; then
9570 set dummy windmc
9571 if test $build = $host ; then
9572 WINDMC="$2"
9573 else
9574 WINDMC="${ncn_tool_prefix}$2"
9575 fi
9576 fi
9577
9578
9579
9580 if test -n "$OBJCOPY"; then
9581 ac_cv_prog_OBJCOPY=$OBJCOPY
9582 elif test -n "$ac_cv_prog_OBJCOPY"; then
9583 OBJCOPY=$ac_cv_prog_OBJCOPY
9584 fi
9585
9586 if test -n "$ac_cv_prog_OBJCOPY"; then
9587 for ncn_progname in objcopy; do
9588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9589 set dummy ${ncn_progname}; ac_word=$2
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591 $as_echo_n "checking for $ac_word... " >&6; }
9592 if ${ac_cv_prog_OBJCOPY+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 if test -n "$OBJCOPY"; then
9596 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9597 else
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9600 do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605 ac_cv_prog_OBJCOPY="${ncn_progname}"
9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9608 fi
9609 done
9610 done
9611 IFS=$as_save_IFS
9612
9613 fi
9614 fi
9615 OBJCOPY=$ac_cv_prog_OBJCOPY
9616 if test -n "$OBJCOPY"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9618 $as_echo "$OBJCOPY" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9622 fi
9623
9624
9625 done
9626 fi
9627
9628 for ncn_progname in objcopy; do
9629 if test -n "$ncn_tool_prefix"; then
9630 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9631 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_OBJCOPY+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -n "$OBJCOPY"; then
9638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9650 fi
9651 done
9652 done
9653 IFS=$as_save_IFS
9654
9655 fi
9656 fi
9657 OBJCOPY=$ac_cv_prog_OBJCOPY
9658 if test -n "$OBJCOPY"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9660 $as_echo "$OBJCOPY" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667 fi
9668 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9670 set dummy ${ncn_progname}; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_prog_OBJCOPY+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 if test -n "$OBJCOPY"; then
9677 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9681 do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_OBJCOPY="${ncn_progname}"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9689 fi
9690 done
9691 done
9692 IFS=$as_save_IFS
9693
9694 fi
9695 fi
9696 OBJCOPY=$ac_cv_prog_OBJCOPY
9697 if test -n "$OBJCOPY"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9699 $as_echo "$OBJCOPY" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9703 fi
9704
9705
9706 fi
9707 test -n "$ac_cv_prog_OBJCOPY" && break
9708 done
9709
9710 if test -z "$ac_cv_prog_OBJCOPY" ; then
9711 set dummy objcopy
9712 if test $build = $host ; then
9713 OBJCOPY="$2"
9714 else
9715 OBJCOPY="${ncn_tool_prefix}$2"
9716 fi
9717 fi
9718
9719
9720
9721 if test -n "$OBJDUMP"; then
9722 ac_cv_prog_OBJDUMP=$OBJDUMP
9723 elif test -n "$ac_cv_prog_OBJDUMP"; then
9724 OBJDUMP=$ac_cv_prog_OBJDUMP
9725 fi
9726
9727 if test -n "$ac_cv_prog_OBJDUMP"; then
9728 for ncn_progname in objdump; do
9729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9730 set dummy ${ncn_progname}; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_prog_OBJDUMP+:} false; then :
9734 $as_echo_n "(cached) " >&6
9735 else
9736 if test -n "$OBJDUMP"; then
9737 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9738 else
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9740 for as_dir in $PATH
9741 do
9742 IFS=$as_save_IFS
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_OBJDUMP="${ncn_progname}"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 break 2
9749 fi
9750 done
9751 done
9752 IFS=$as_save_IFS
9753
9754 fi
9755 fi
9756 OBJDUMP=$ac_cv_prog_OBJDUMP
9757 if test -n "$OBJDUMP"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9759 $as_echo "$OBJDUMP" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9763 fi
9764
9765
9766 done
9767 fi
9768
9769 for ncn_progname in objdump; do
9770 if test -n "$ncn_tool_prefix"; then
9771 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9772 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if ${ac_cv_prog_OBJDUMP+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 if test -n "$OBJDUMP"; then
9779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9780 else
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 for as_dir in $PATH
9783 do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9791 fi
9792 done
9793 done
9794 IFS=$as_save_IFS
9795
9796 fi
9797 fi
9798 OBJDUMP=$ac_cv_prog_OBJDUMP
9799 if test -n "$OBJDUMP"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9801 $as_echo "$OBJDUMP" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808 fi
9809 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9811 set dummy ${ncn_progname}; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if ${ac_cv_prog_OBJDUMP+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 if test -n "$OBJDUMP"; then
9818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9822 do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827 ac_cv_prog_OBJDUMP="${ncn_progname}"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9830 fi
9831 done
9832 done
9833 IFS=$as_save_IFS
9834
9835 fi
9836 fi
9837 OBJDUMP=$ac_cv_prog_OBJDUMP
9838 if test -n "$OBJDUMP"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9840 $as_echo "$OBJDUMP" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9844 fi
9845
9846
9847 fi
9848 test -n "$ac_cv_prog_OBJDUMP" && break
9849 done
9850
9851 if test -z "$ac_cv_prog_OBJDUMP" ; then
9852 set dummy objdump
9853 if test $build = $host ; then
9854 OBJDUMP="$2"
9855 else
9856 OBJDUMP="${ncn_tool_prefix}$2"
9857 fi
9858 fi
9859
9860
9861
9862 if test -n "$OTOOL"; then
9863 ac_cv_prog_OTOOL=$OTOOL
9864 elif test -n "$ac_cv_prog_OTOOL"; then
9865 OTOOL=$ac_cv_prog_OTOOL
9866 fi
9867
9868 if test -n "$ac_cv_prog_OTOOL"; then
9869 for ncn_progname in otool; do
9870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9871 set dummy ${ncn_progname}; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_prog_OTOOL+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 if test -n "$OTOOL"; then
9878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_prog_OTOOL="${ncn_progname}"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9889 break 2
9890 fi
9891 done
9892 done
9893 IFS=$as_save_IFS
9894
9895 fi
9896 fi
9897 OTOOL=$ac_cv_prog_OTOOL
9898 if test -n "$OTOOL"; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9900 $as_echo "$OTOOL" >&6; }
9901 else
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9904 fi
9905
9906
9907 done
9908 fi
9909
9910 for ncn_progname in otool; do
9911 if test -n "$ncn_tool_prefix"; then
9912 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9913 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9915 $as_echo_n "checking for $ac_word... " >&6; }
9916 if ${ac_cv_prog_OTOOL+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 if test -n "$OTOOL"; then
9920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9921 else
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $PATH
9924 do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
9930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933 done
9934 done
9935 IFS=$as_save_IFS
9936
9937 fi
9938 fi
9939 OTOOL=$ac_cv_prog_OTOOL
9940 if test -n "$OTOOL"; then
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9942 $as_echo "$OTOOL" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947
9948
9949 fi
9950 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
9951 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9952 set dummy ${ncn_progname}; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_OTOOL+:} false; then :
9956 $as_echo_n "(cached) " >&6
9957 else
9958 if test -n "$OTOOL"; then
9959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9960 else
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9968 ac_cv_prog_OTOOL="${ncn_progname}"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9971 fi
9972 done
9973 done
9974 IFS=$as_save_IFS
9975
9976 fi
9977 fi
9978 OTOOL=$ac_cv_prog_OTOOL
9979 if test -n "$OTOOL"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9981 $as_echo "$OTOOL" >&6; }
9982 else
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986
9987
9988 fi
9989 test -n "$ac_cv_prog_OTOOL" && break
9990 done
9991
9992 if test -z "$ac_cv_prog_OTOOL" ; then
9993 set dummy otool
9994 if test $build = $host ; then
9995 OTOOL="$2"
9996 else
9997 OTOOL="${ncn_tool_prefix}$2"
9998 fi
9999 fi
10000
10001
10002
10003 if test -n "$READELF"; then
10004 ac_cv_prog_READELF=$READELF
10005 elif test -n "$ac_cv_prog_READELF"; then
10006 READELF=$ac_cv_prog_READELF
10007 fi
10008
10009 if test -n "$ac_cv_prog_READELF"; then
10010 for ncn_progname in readelf; do
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10012 set dummy ${ncn_progname}; ac_word=$2
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014 $as_echo_n "checking for $ac_word... " >&6; }
10015 if ${ac_cv_prog_READELF+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 if test -n "$READELF"; then
10019 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10020 else
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10023 do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10028 ac_cv_prog_READELF="${ncn_progname}"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032 done
10033 done
10034 IFS=$as_save_IFS
10035
10036 fi
10037 fi
10038 READELF=$ac_cv_prog_READELF
10039 if test -n "$READELF"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10041 $as_echo "$READELF" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044 $as_echo "no" >&6; }
10045 fi
10046
10047
10048 done
10049 fi
10050
10051 for ncn_progname in readelf; do
10052 if test -n "$ncn_tool_prefix"; then
10053 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10054 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_READELF+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$READELF"; then
10061 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10073 fi
10074 done
10075 done
10076 IFS=$as_save_IFS
10077
10078 fi
10079 fi
10080 READELF=$ac_cv_prog_READELF
10081 if test -n "$READELF"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10083 $as_echo "$READELF" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 fi
10088
10089
10090 fi
10091 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10093 set dummy ${ncn_progname}; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_prog_READELF+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 if test -n "$READELF"; then
10100 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10109 ac_cv_prog_READELF="${ncn_progname}"
10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10112 fi
10113 done
10114 done
10115 IFS=$as_save_IFS
10116
10117 fi
10118 fi
10119 READELF=$ac_cv_prog_READELF
10120 if test -n "$READELF"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10122 $as_echo "$READELF" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10126 fi
10127
10128
10129 fi
10130 test -n "$ac_cv_prog_READELF" && break
10131 done
10132
10133 if test -z "$ac_cv_prog_READELF" ; then
10134 set dummy readelf
10135 if test $build = $host ; then
10136 READELF="$2"
10137 else
10138 READELF="${ncn_tool_prefix}$2"
10139 fi
10140 fi
10141
10142
10143
10144
10145
10146
10147 # Target tools.
10148
10149 # Check whether --with-build-time-tools was given.
10150 if test "${with_build_time_tools+set}" = set; then :
10151 withval=$with_build_time_tools; case x"$withval" in
10152 x/*) ;;
10153 *)
10154 with_build_time_tools=
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10156 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10157 ;;
10158 esac
10159 else
10160 with_build_time_tools=
10161 fi
10162
10163
10164
10165
10166 if test -n "$CC_FOR_TARGET"; then
10167 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10168 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10169 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10170 fi
10171
10172 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10173 for ncn_progname in cc gcc; do
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175 set dummy ${ncn_progname}; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 if test -n "$CC_FOR_TARGET"; then
10182 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10186 do
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10194 fi
10195 done
10196 done
10197 IFS=$as_save_IFS
10198
10199 fi
10200 fi
10201 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10202 if test -n "$CC_FOR_TARGET"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10204 $as_echo "$CC_FOR_TARGET" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209
10210
10211 done
10212 fi
10213
10214 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10215 for ncn_progname in cc gcc; do
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10217 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10218 if test -x $with_build_time_tools/${ncn_progname}; then
10219 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221 $as_echo "yes" >&6; }
10222 break
10223 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 fi
10227 done
10228 fi
10229
10230 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10231 for ncn_progname in cc gcc; do
10232 if test -n "$ncn_target_tool_prefix"; then
10233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10234 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 if test -n "$CC_FOR_TARGET"; then
10241 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10245 do
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10253 fi
10254 done
10255 done
10256 IFS=$as_save_IFS
10257
10258 fi
10259 fi
10260 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10261 if test -n "$CC_FOR_TARGET"; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10263 $as_echo "$CC_FOR_TARGET" >&6; }
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268
10269
10270 fi
10271 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273 set dummy ${ncn_progname}; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 if test -n "$CC_FOR_TARGET"; then
10280 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293 done
10294 done
10295 IFS=$as_save_IFS
10296
10297 fi
10298 fi
10299 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10300 if test -n "$CC_FOR_TARGET"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10302 $as_echo "$CC_FOR_TARGET" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307
10308
10309 fi
10310 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10311 done
10312 fi
10313
10314 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10315 set dummy cc gcc
10316 if test $build = $target ; then
10317 CC_FOR_TARGET="$2"
10318 else
10319 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10320 fi
10321 else
10322 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10323 fi
10324
10325
10326
10327 if test -n "$CXX_FOR_TARGET"; then
10328 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10329 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10330 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10331 fi
10332
10333 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10334 for ncn_progname in c++ g++ cxx gxx; do
10335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10336 set dummy ${ncn_progname}; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 if test -n "$CXX_FOR_TARGET"; then
10343 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10347 do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10355 fi
10356 done
10357 done
10358 IFS=$as_save_IFS
10359
10360 fi
10361 fi
10362 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10363 if test -n "$CXX_FOR_TARGET"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10365 $as_echo "$CXX_FOR_TARGET" >&6; }
10366 else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10369 fi
10370
10371
10372 done
10373 fi
10374
10375 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10376 for ncn_progname in c++ g++ cxx gxx; do
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10378 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10379 if test -x $with_build_time_tools/${ncn_progname}; then
10380 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }
10383 break
10384 else
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10387 fi
10388 done
10389 fi
10390
10391 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10392 for ncn_progname in c++ g++ cxx gxx; do
10393 if test -n "$ncn_target_tool_prefix"; then
10394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397 $as_echo_n "checking for $ac_word... " >&6; }
10398 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 if test -n "$CXX_FOR_TARGET"; then
10402 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10403 else
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10406 do
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10414 fi
10415 done
10416 done
10417 IFS=$as_save_IFS
10418
10419 fi
10420 fi
10421 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10422 if test -n "$CXX_FOR_TARGET"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10424 $as_echo "$CXX_FOR_TARGET" >&6; }
10425 else
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10428 fi
10429
10430
10431 fi
10432 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10434 set dummy ${ncn_progname}; ac_word=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test -n "$CXX_FOR_TARGET"; then
10441 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10442 else
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10445 do
10446 IFS=$as_save_IFS
10447 test -z "$as_dir" && as_dir=.
10448 for ac_exec_ext in '' $ac_executable_extensions; do
10449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10450 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 break 2
10453 fi
10454 done
10455 done
10456 IFS=$as_save_IFS
10457
10458 fi
10459 fi
10460 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10461 if test -n "$CXX_FOR_TARGET"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10463 $as_echo "$CXX_FOR_TARGET" >&6; }
10464 else
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10467 fi
10468
10469
10470 fi
10471 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10472 done
10473 fi
10474
10475 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10476 set dummy c++ g++ cxx gxx
10477 if test $build = $target ; then
10478 CXX_FOR_TARGET="$2"
10479 else
10480 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10481 fi
10482 else
10483 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10484 fi
10485
10486
10487
10488 if test -n "$GCC_FOR_TARGET"; then
10489 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10490 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10491 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10492 fi
10493
10494 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10495 for ncn_progname in gcc; do
10496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10497 set dummy ${ncn_progname}; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 if test -n "$GCC_FOR_TARGET"; then
10504 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10505 else
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10508 do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517 done
10518 done
10519 IFS=$as_save_IFS
10520
10521 fi
10522 fi
10523 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10524 if test -n "$GCC_FOR_TARGET"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10526 $as_echo "$GCC_FOR_TARGET" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531
10532
10533 done
10534 fi
10535
10536 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10537 for ncn_progname in gcc; do
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10539 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10540 if test -x $with_build_time_tools/${ncn_progname}; then
10541 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543 $as_echo "yes" >&6; }
10544 break
10545 else
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10547 $as_echo "no" >&6; }
10548 fi
10549 done
10550 fi
10551
10552 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10553 for ncn_progname in gcc; do
10554 if test -n "$ncn_target_tool_prefix"; then
10555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 if test -n "$GCC_FOR_TARGET"; then
10563 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10564 else
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10567 do
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10575 fi
10576 done
10577 done
10578 IFS=$as_save_IFS
10579
10580 fi
10581 fi
10582 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10583 if test -n "$GCC_FOR_TARGET"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10585 $as_echo "$GCC_FOR_TARGET" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589 fi
10590
10591
10592 fi
10593 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10595 set dummy ${ncn_progname}; ac_word=$2
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10597 $as_echo_n "checking for $ac_word... " >&6; }
10598 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 if test -n "$GCC_FOR_TARGET"; then
10602 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10603 else
10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607 IFS=$as_save_IFS
10608 test -z "$as_dir" && as_dir=.
10609 for ac_exec_ext in '' $ac_executable_extensions; do
10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613 break 2
10614 fi
10615 done
10616 done
10617 IFS=$as_save_IFS
10618
10619 fi
10620 fi
10621 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10622 if test -n "$GCC_FOR_TARGET"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10624 $as_echo "$GCC_FOR_TARGET" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; }
10628 fi
10629
10630
10631 fi
10632 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10633 done
10634 fi
10635
10636 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10637 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10638 else
10639 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10640 fi
10641
10642
10643
10644 if test -n "$GFORTRAN_FOR_TARGET"; then
10645 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10646 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10647 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10648 fi
10649
10650 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10651 for ncn_progname in gfortran; do
10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10653 set dummy ${ncn_progname}; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test -n "$GFORTRAN_FOR_TARGET"; then
10660 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675 IFS=$as_save_IFS
10676
10677 fi
10678 fi
10679 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10682 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687
10688
10689 done
10690 fi
10691
10692 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10693 for ncn_progname in gfortran; do
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10695 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10696 if test -x $with_build_time_tools/${ncn_progname}; then
10697 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10699 $as_echo "yes" >&6; }
10700 break
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 fi
10705 done
10706 fi
10707
10708 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10709 for ncn_progname in gfortran; do
10710 if test -n "$ncn_target_tool_prefix"; then
10711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714 $as_echo_n "checking for $ac_word... " >&6; }
10715 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 if test -n "$GFORTRAN_FOR_TARGET"; then
10719 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732 done
10733 done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10739 if test -n "$GFORTRAN_FOR_TARGET"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10741 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746
10747
10748 fi
10749 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751 set dummy ${ncn_progname}; ac_word=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 if test -n "$GFORTRAN_FOR_TARGET"; then
10758 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10759 else
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10762 do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10770 fi
10771 done
10772 done
10773 IFS=$as_save_IFS
10774
10775 fi
10776 fi
10777 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10778 if test -n "$GFORTRAN_FOR_TARGET"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10780 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787 fi
10788 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10789 done
10790 fi
10791
10792 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10793 set dummy gfortran
10794 if test $build = $target ; then
10795 GFORTRAN_FOR_TARGET="$2"
10796 else
10797 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10798 fi
10799 else
10800 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10801 fi
10802
10803
10804
10805 if test -n "$GOC_FOR_TARGET"; then
10806 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10807 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10808 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10809 fi
10810
10811 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10812 for ncn_progname in gccgo; do
10813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10814 set dummy ${ncn_progname}; ac_word=$2
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816 $as_echo_n "checking for $ac_word... " >&6; }
10817 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 if test -n "$GOC_FOR_TARGET"; then
10821 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834 done
10835 done
10836 IFS=$as_save_IFS
10837
10838 fi
10839 fi
10840 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10841 if test -n "$GOC_FOR_TARGET"; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10843 $as_echo "$GOC_FOR_TARGET" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 fi
10848
10849
10850 done
10851 fi
10852
10853 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10854 for ncn_progname in gccgo; do
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10857 if test -x $with_build_time_tools/${ncn_progname}; then
10858 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10860 $as_echo "yes" >&6; }
10861 break
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10865 fi
10866 done
10867 fi
10868
10869 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10870 for ncn_progname in gccgo; do
10871 if test -n "$ncn_target_tool_prefix"; then
10872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 if test -n "$GOC_FOR_TARGET"; then
10880 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10881 else
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10884 do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10889 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10892 fi
10893 done
10894 done
10895 IFS=$as_save_IFS
10896
10897 fi
10898 fi
10899 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10900 if test -n "$GOC_FOR_TARGET"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10902 $as_echo "$GOC_FOR_TARGET" >&6; }
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10906 fi
10907
10908
10909 fi
10910 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10912 set dummy ${ncn_progname}; ac_word=$2
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10914 $as_echo_n "checking for $ac_word... " >&6; }
10915 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10916 $as_echo_n "(cached) " >&6
10917 else
10918 if test -n "$GOC_FOR_TARGET"; then
10919 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10920 else
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10923 do
10924 IFS=$as_save_IFS
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10928 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10930 break 2
10931 fi
10932 done
10933 done
10934 IFS=$as_save_IFS
10935
10936 fi
10937 fi
10938 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10939 if test -n "$GOC_FOR_TARGET"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10941 $as_echo "$GOC_FOR_TARGET" >&6; }
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; }
10945 fi
10946
10947
10948 fi
10949 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10950 done
10951 fi
10952
10953 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10954 set dummy gccgo
10955 if test $build = $target ; then
10956 GOC_FOR_TARGET="$2"
10957 else
10958 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10959 fi
10960 else
10961 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10962 fi
10963
10964
10965
10966 if test -n "$GDC_FOR_TARGET"; then
10967 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
10968 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10969 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
10970 fi
10971
10972 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
10973 for ncn_progname in gdc; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test -n "$GDC_FOR_TARGET"; then
10982 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995 done
10996 done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11002 if test -n "$GDC_FOR_TARGET"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11004 $as_echo "$GDC_FOR_TARGET" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 done
11012 fi
11013
11014 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11015 for ncn_progname in gdc; do
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11018 if test -x $with_build_time_tools/${ncn_progname}; then
11019 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11021 $as_echo "yes" >&6; }
11022 break
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11026 fi
11027 done
11028 fi
11029
11030 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11031 for ncn_progname in gdc; do
11032 if test -n "$ncn_target_tool_prefix"; then
11033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036 $as_echo_n "checking for $ac_word... " >&6; }
11037 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 if test -n "$GDC_FOR_TARGET"; then
11041 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11042 else
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11045 do
11046 IFS=$as_save_IFS
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11050 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 break 2
11053 fi
11054 done
11055 done
11056 IFS=$as_save_IFS
11057
11058 fi
11059 fi
11060 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11061 if test -n "$GDC_FOR_TARGET"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11063 $as_echo "$GDC_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11067 fi
11068
11069
11070 fi
11071 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11073 set dummy ${ncn_progname}; ac_word=$2
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 if test -n "$GDC_FOR_TARGET"; then
11080 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11081 else
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11089 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093 done
11094 done
11095 IFS=$as_save_IFS
11096
11097 fi
11098 fi
11099 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11100 if test -n "$GDC_FOR_TARGET"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11102 $as_echo "$GDC_FOR_TARGET" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107
11108
11109 fi
11110 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11111 done
11112 fi
11113
11114 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11115 set dummy gdc
11116 if test $build = $target ; then
11117 GDC_FOR_TARGET="$2"
11118 else
11119 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11120 fi
11121 else
11122 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11123 fi
11124
11125
11126
11127 cat > conftest.c << \EOF
11128 #ifdef __GNUC__
11129 gcc_yay;
11130 #endif
11131 EOF
11132 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11133 have_gcc_for_target=yes
11134 else
11135 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11136 have_gcc_for_target=no
11137 fi
11138 rm conftest.c
11139
11140
11141
11142
11143 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11144 if test -n "$with_build_time_tools"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11146 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11147 if test -x $with_build_time_tools/ar; then
11148 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11149 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11151 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156 elif test $build != $host && test $have_gcc_for_target = yes; then
11157 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11158 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11159 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11160 fi
11161 fi
11162 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11163 # Extract the first word of "ar", so it can be a program name with args.
11164 set dummy ar; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 case $AR_FOR_TARGET in
11171 [\\/]* | ?:[\\/]*)
11172 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $gcc_cv_tool_dirs
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 ;;
11191 esac
11192 fi
11193 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11194 if test -n "$AR_FOR_TARGET"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11196 $as_echo "$AR_FOR_TARGET" >&6; }
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201
11202
11203 fi
11204 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11205
11206
11207 if test -n "$AR_FOR_TARGET"; then
11208 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11209 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11210 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11211 fi
11212
11213 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11214 for ncn_progname in ar; do
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218 $as_echo_n "checking for $ac_word... " >&6; }
11219 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test -n "$AR_FOR_TARGET"; then
11223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11224 else
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11227 do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236 done
11237 done
11238 IFS=$as_save_IFS
11239
11240 fi
11241 fi
11242 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11243 if test -n "$AR_FOR_TARGET"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11245 $as_echo "$AR_FOR_TARGET" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249 fi
11250
11251
11252 done
11253 fi
11254
11255 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11256 for ncn_progname in ar; do
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11259 if test -x $with_build_time_tools/${ncn_progname}; then
11260 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 $as_echo "yes" >&6; }
11263 break
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268 done
11269 fi
11270
11271 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11272 for ncn_progname in ar; do
11273 if test -n "$ncn_target_tool_prefix"; then
11274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 if test -n "$AR_FOR_TARGET"; then
11282 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11291 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299 fi
11300 fi
11301 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11302 if test -n "$AR_FOR_TARGET"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11304 $as_echo "$AR_FOR_TARGET" >&6; }
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311 fi
11312 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11314 set dummy ${ncn_progname}; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 if test -n "$AR_FOR_TARGET"; then
11321 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11322 else
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11333 fi
11334 done
11335 done
11336 IFS=$as_save_IFS
11337
11338 fi
11339 fi
11340 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11341 if test -n "$AR_FOR_TARGET"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11343 $as_echo "$AR_FOR_TARGET" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 fi
11351 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11352 done
11353 fi
11354
11355 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11356 set dummy ar
11357 if test $build = $target ; then
11358 AR_FOR_TARGET="$2"
11359 else
11360 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11361 fi
11362 else
11363 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11364 fi
11365
11366 else
11367 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11368 fi
11369
11370
11371
11372
11373 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11374 if test -n "$with_build_time_tools"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11376 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11377 if test -x $with_build_time_tools/as; then
11378 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11379 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11381 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11385 fi
11386 elif test $build != $host && test $have_gcc_for_target = yes; then
11387 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11388 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11389 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11390 fi
11391 fi
11392 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11393 # Extract the first word of "as", so it can be a program name with args.
11394 set dummy as; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11396 $as_echo_n "checking for $ac_word... " >&6; }
11397 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 case $AS_FOR_TARGET in
11401 [\\/]* | ?:[\\/]*)
11402 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11403 ;;
11404 *)
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $gcc_cv_tool_dirs
11407 do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 ;;
11421 esac
11422 fi
11423 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11424 if test -n "$AS_FOR_TARGET"; then
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11426 $as_echo "$AS_FOR_TARGET" >&6; }
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 $as_echo "no" >&6; }
11430 fi
11431
11432
11433 fi
11434 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11435
11436
11437 if test -n "$AS_FOR_TARGET"; then
11438 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11439 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11440 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11441 fi
11442
11443 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11444 for ncn_progname in as; do
11445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11446 set dummy ${ncn_progname}; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448 $as_echo_n "checking for $ac_word... " >&6; }
11449 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 if test -n "$AS_FOR_TARGET"; then
11453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11454 else
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11457 do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11462 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11465 fi
11466 done
11467 done
11468 IFS=$as_save_IFS
11469
11470 fi
11471 fi
11472 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11473 if test -n "$AS_FOR_TARGET"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11475 $as_echo "$AS_FOR_TARGET" >&6; }
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479 fi
11480
11481
11482 done
11483 fi
11484
11485 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11486 for ncn_progname in as; do
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11489 if test -x $with_build_time_tools/${ncn_progname}; then
11490 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 $as_echo "yes" >&6; }
11493 break
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 fi
11498 done
11499 fi
11500
11501 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11502 for ncn_progname in as; do
11503 if test -n "$ncn_target_tool_prefix"; then
11504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 if test -n "$AS_FOR_TARGET"; then
11512 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11513 else
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11516 do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 fi
11530 fi
11531 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11532 if test -n "$AS_FOR_TARGET"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11534 $as_echo "$AS_FOR_TARGET" >&6; }
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11538 fi
11539
11540
11541 fi
11542 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11544 set dummy ${ncn_progname}; ac_word=$2
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546 $as_echo_n "checking for $ac_word... " >&6; }
11547 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test -n "$AS_FOR_TARGET"; then
11551 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11552 else
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11563 fi
11564 done
11565 done
11566 IFS=$as_save_IFS
11567
11568 fi
11569 fi
11570 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11571 if test -n "$AS_FOR_TARGET"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11573 $as_echo "$AS_FOR_TARGET" >&6; }
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578
11579
11580 fi
11581 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11582 done
11583 fi
11584
11585 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11586 set dummy as
11587 if test $build = $target ; then
11588 AS_FOR_TARGET="$2"
11589 else
11590 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11591 fi
11592 else
11593 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11594 fi
11595
11596 else
11597 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11598 fi
11599
11600
11601
11602
11603 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11604 if test -n "$with_build_time_tools"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11606 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11607 if test -x $with_build_time_tools/dlltool; then
11608 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11609 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11611 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616 elif test $build != $host && test $have_gcc_for_target = yes; then
11617 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11618 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11619 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11620 fi
11621 fi
11622 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11623 # Extract the first word of "dlltool", so it can be a program name with args.
11624 set dummy dlltool; ac_word=$2
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 case $DLLTOOL_FOR_TARGET in
11631 [\\/]* | ?:[\\/]*)
11632 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11633 ;;
11634 *)
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $gcc_cv_tool_dirs
11637 do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11644 break 2
11645 fi
11646 done
11647 done
11648 IFS=$as_save_IFS
11649
11650 ;;
11651 esac
11652 fi
11653 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11654 if test -n "$DLLTOOL_FOR_TARGET"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11656 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11660 fi
11661
11662
11663 fi
11664 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11665
11666
11667 if test -n "$DLLTOOL_FOR_TARGET"; then
11668 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11669 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11670 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11671 fi
11672
11673 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11674 for ncn_progname in dlltool; do
11675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 if test -n "$DLLTOOL_FOR_TARGET"; then
11683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696 done
11697 done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11703 if test -n "$DLLTOOL_FOR_TARGET"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11705 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11706 else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 $as_echo "no" >&6; }
11709 fi
11710
11711
11712 done
11713 fi
11714
11715 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11716 for ncn_progname in dlltool; do
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11719 if test -x $with_build_time_tools/${ncn_progname}; then
11720 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11722 $as_echo "yes" >&6; }
11723 break
11724 else
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11727 fi
11728 done
11729 fi
11730
11731 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11732 for ncn_progname in dlltool; do
11733 if test -n "$ncn_target_tool_prefix"; then
11734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737 $as_echo_n "checking for $ac_word... " >&6; }
11738 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test -n "$DLLTOOL_FOR_TARGET"; then
11742 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11743 else
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11751 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757 IFS=$as_save_IFS
11758
11759 fi
11760 fi
11761 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11762 if test -n "$DLLTOOL_FOR_TARGET"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11764 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11768 fi
11769
11770
11771 fi
11772 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11774 set dummy ${ncn_progname}; ac_word=$2
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776 $as_echo_n "checking for $ac_word... " >&6; }
11777 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 if test -n "$DLLTOOL_FOR_TARGET"; then
11781 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11793 fi
11794 done
11795 done
11796 IFS=$as_save_IFS
11797
11798 fi
11799 fi
11800 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11801 if test -n "$DLLTOOL_FOR_TARGET"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11803 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808
11809
11810 fi
11811 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11812 done
11813 fi
11814
11815 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11816 set dummy dlltool
11817 if test $build = $target ; then
11818 DLLTOOL_FOR_TARGET="$2"
11819 else
11820 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11821 fi
11822 else
11823 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11824 fi
11825
11826 else
11827 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11828 fi
11829
11830
11831
11832
11833 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11834 if test -n "$with_build_time_tools"; then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11836 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11837 if test -x $with_build_time_tools/ld; then
11838 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11839 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11841 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 fi
11846 elif test $build != $host && test $have_gcc_for_target = yes; then
11847 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11848 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11849 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11850 fi
11851 fi
11852 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11853 # Extract the first word of "ld", so it can be a program name with args.
11854 set dummy ld; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 case $LD_FOR_TARGET in
11861 [\\/]* | ?:[\\/]*)
11862 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11863 ;;
11864 *)
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $gcc_cv_tool_dirs
11867 do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876 done
11877 done
11878 IFS=$as_save_IFS
11879
11880 ;;
11881 esac
11882 fi
11883 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11884 if test -n "$LD_FOR_TARGET"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11886 $as_echo "$LD_FOR_TARGET" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 fi
11894 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11895
11896
11897 if test -n "$LD_FOR_TARGET"; then
11898 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11899 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11900 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11901 fi
11902
11903 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11904 for ncn_progname in ld; do
11905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11906 set dummy ${ncn_progname}; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$LD_FOR_TARGET"; then
11913 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926 done
11927 done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11933 if test -n "$LD_FOR_TARGET"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11935 $as_echo "$LD_FOR_TARGET" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942 done
11943 fi
11944
11945 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11946 for ncn_progname in ld; do
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11949 if test -x $with_build_time_tools/${ncn_progname}; then
11950 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11953 break
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 fi
11958 done
11959 fi
11960
11961 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11962 for ncn_progname in ld; do
11963 if test -n "$ncn_target_tool_prefix"; then
11964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 if test -n "$LD_FOR_TARGET"; then
11972 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 break 2
11984 fi
11985 done
11986 done
11987 IFS=$as_save_IFS
11988
11989 fi
11990 fi
11991 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11992 if test -n "$LD_FOR_TARGET"; then
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11994 $as_echo "$LD_FOR_TARGET" >&6; }
11995 else
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999
12000
12001 fi
12002 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12004 set dummy ${ncn_progname}; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 if test -n "$LD_FOR_TARGET"; then
12011 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12012 else
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12015 do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12023 fi
12024 done
12025 done
12026 IFS=$as_save_IFS
12027
12028 fi
12029 fi
12030 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12031 if test -n "$LD_FOR_TARGET"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12033 $as_echo "$LD_FOR_TARGET" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 fi
12041 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12042 done
12043 fi
12044
12045 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12046 set dummy ld
12047 if test $build = $target ; then
12048 LD_FOR_TARGET="$2"
12049 else
12050 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12051 fi
12052 else
12053 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12054 fi
12055
12056 else
12057 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12058 fi
12059
12060
12061
12062
12063 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12064 if test -n "$with_build_time_tools"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12066 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12067 if test -x $with_build_time_tools/lipo; then
12068 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12069 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12071 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076 elif test $build != $host && test $have_gcc_for_target = yes; then
12077 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12078 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12079 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12080 fi
12081 fi
12082 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12083 # Extract the first word of "lipo", so it can be a program name with args.
12084 set dummy lipo; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 case $LIPO_FOR_TARGET in
12091 [\\/]* | ?:[\\/]*)
12092 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12093 ;;
12094 *)
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $gcc_cv_tool_dirs
12097 do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 break 2
12105 fi
12106 done
12107 done
12108 IFS=$as_save_IFS
12109
12110 ;;
12111 esac
12112 fi
12113 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12114 if test -n "$LIPO_FOR_TARGET"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12116 $as_echo "$LIPO_FOR_TARGET" >&6; }
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 fi
12121
12122
12123 fi
12124 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12125
12126
12127 if test -n "$LIPO_FOR_TARGET"; then
12128 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12129 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12130 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12131 fi
12132
12133 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12134 for ncn_progname in lipo; do
12135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test -n "$LIPO_FOR_TARGET"; then
12143 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12147 do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156 done
12157 done
12158 IFS=$as_save_IFS
12159
12160 fi
12161 fi
12162 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12163 if test -n "$LIPO_FOR_TARGET"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12165 $as_echo "$LIPO_FOR_TARGET" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 done
12173 fi
12174
12175 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12176 for ncn_progname in lipo; do
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12179 if test -x $with_build_time_tools/${ncn_progname}; then
12180 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12182 $as_echo "yes" >&6; }
12183 break
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186 $as_echo "no" >&6; }
12187 fi
12188 done
12189 fi
12190
12191 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12192 for ncn_progname in lipo; do
12193 if test -n "$ncn_target_tool_prefix"; then
12194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 if test -n "$LIPO_FOR_TARGET"; then
12202 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 fi
12220 fi
12221 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12222 if test -n "$LIPO_FOR_TARGET"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12224 $as_echo "$LIPO_FOR_TARGET" >&6; }
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 fi
12229
12230
12231 fi
12232 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$LIPO_FOR_TARGET"; then
12241 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12261 if test -n "$LIPO_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12263 $as_echo "$LIPO_FOR_TARGET" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 fi
12271 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12272 done
12273 fi
12274
12275 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12276 set dummy lipo
12277 if test $build = $target ; then
12278 LIPO_FOR_TARGET="$2"
12279 else
12280 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12281 fi
12282 else
12283 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12284 fi
12285
12286 else
12287 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12288 fi
12289
12290
12291
12292
12293 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12294 if test -n "$with_build_time_tools"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12296 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12297 if test -x $with_build_time_tools/nm; then
12298 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12299 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12301 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12305 fi
12306 elif test $build != $host && test $have_gcc_for_target = yes; then
12307 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12308 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12309 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12310 fi
12311 fi
12312 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12313 # Extract the first word of "nm", so it can be a program name with args.
12314 set dummy nm; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 case $NM_FOR_TARGET in
12321 [\\/]* | ?:[\\/]*)
12322 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12323 ;;
12324 *)
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $gcc_cv_tool_dirs
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 ;;
12341 esac
12342 fi
12343 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12344 if test -n "$NM_FOR_TARGET"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12346 $as_echo "$NM_FOR_TARGET" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352
12353 fi
12354 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12355
12356
12357 if test -n "$NM_FOR_TARGET"; then
12358 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12359 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12360 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12361 fi
12362
12363 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12364 for ncn_progname in nm; do
12365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12366 set dummy ${ncn_progname}; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 if test -n "$NM_FOR_TARGET"; then
12373 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12374 else
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12382 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12385 fi
12386 done
12387 done
12388 IFS=$as_save_IFS
12389
12390 fi
12391 fi
12392 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12393 if test -n "$NM_FOR_TARGET"; then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12395 $as_echo "$NM_FOR_TARGET" >&6; }
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12399 fi
12400
12401
12402 done
12403 fi
12404
12405 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12406 for ncn_progname in nm; do
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12409 if test -x $with_build_time_tools/${ncn_progname}; then
12410 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413 break
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418 done
12419 fi
12420
12421 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12422 for ncn_progname in nm; do
12423 if test -n "$ncn_target_tool_prefix"; then
12424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test -n "$NM_FOR_TARGET"; then
12432 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12452 if test -n "$NM_FOR_TARGET"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12454 $as_echo "$NM_FOR_TARGET" >&6; }
12455 else
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 fi
12462 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12464 set dummy ${ncn_progname}; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466 $as_echo_n "checking for $ac_word... " >&6; }
12467 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 if test -n "$NM_FOR_TARGET"; then
12471 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12472 else
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12475 do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484 done
12485 done
12486 IFS=$as_save_IFS
12487
12488 fi
12489 fi
12490 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12491 if test -n "$NM_FOR_TARGET"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12493 $as_echo "$NM_FOR_TARGET" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499
12500 fi
12501 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12502 done
12503 fi
12504
12505 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12506 set dummy nm
12507 if test $build = $target ; then
12508 NM_FOR_TARGET="$2"
12509 else
12510 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12511 fi
12512 else
12513 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12514 fi
12515
12516 else
12517 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12518 fi
12519
12520
12521
12522
12523 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12524 if test -n "$with_build_time_tools"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12526 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12527 if test -x $with_build_time_tools/objcopy; then
12528 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12529 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12531 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 fi
12536 elif test $build != $host && test $have_gcc_for_target = yes; then
12537 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12538 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12539 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12540 fi
12541 fi
12542 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12543 # Extract the first word of "objcopy", so it can be a program name with args.
12544 set dummy objcopy; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 case $OBJCOPY_FOR_TARGET in
12551 [\\/]* | ?:[\\/]*)
12552 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12553 ;;
12554 *)
12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556 for as_dir in $gcc_cv_tool_dirs
12557 do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566 done
12567 done
12568 IFS=$as_save_IFS
12569
12570 ;;
12571 esac
12572 fi
12573 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12574 if test -n "$OBJCOPY_FOR_TARGET"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12576 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12580 fi
12581
12582
12583 fi
12584 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12585
12586
12587 if test -n "$OBJCOPY_FOR_TARGET"; then
12588 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12589 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12590 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12591 fi
12592
12593 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12594 for ncn_progname in objcopy; do
12595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12596 set dummy ${ncn_progname}; ac_word=$2
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12600 $as_echo_n "(cached) " >&6
12601 else
12602 if test -n "$OBJCOPY_FOR_TARGET"; then
12603 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12604 else
12605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606 for as_dir in $PATH
12607 do
12608 IFS=$as_save_IFS
12609 test -z "$as_dir" && as_dir=.
12610 for ac_exec_ext in '' $ac_executable_extensions; do
12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 break 2
12615 fi
12616 done
12617 done
12618 IFS=$as_save_IFS
12619
12620 fi
12621 fi
12622 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12623 if test -n "$OBJCOPY_FOR_TARGET"; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12625 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12626 else
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630
12631
12632 done
12633 fi
12634
12635 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12636 for ncn_progname in objcopy; do
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12638 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12639 if test -x $with_build_time_tools/${ncn_progname}; then
12640 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12643 break
12644 else
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12647 fi
12648 done
12649 fi
12650
12651 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12652 for ncn_progname in objcopy; do
12653 if test -n "$ncn_target_tool_prefix"; then
12654 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test -n "$OBJCOPY_FOR_TARGET"; then
12662 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12663 else
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12666 do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675 done
12676 done
12677 IFS=$as_save_IFS
12678
12679 fi
12680 fi
12681 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12682 if test -n "$OBJCOPY_FOR_TARGET"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12684 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12685 else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688 fi
12689
12690
12691 fi
12692 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700 if test -n "$OBJCOPY_FOR_TARGET"; then
12701 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12702 else
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12705 do
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12713 fi
12714 done
12715 done
12716 IFS=$as_save_IFS
12717
12718 fi
12719 fi
12720 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12721 if test -n "$OBJCOPY_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12723 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730 fi
12731 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12732 done
12733 fi
12734
12735 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12736 set dummy objcopy
12737 if test $build = $target ; then
12738 OBJCOPY_FOR_TARGET="$2"
12739 else
12740 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12741 fi
12742 else
12743 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12744 fi
12745
12746 else
12747 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12748 fi
12749
12750
12751
12752
12753 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12754 if test -n "$with_build_time_tools"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12756 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12757 if test -x $with_build_time_tools/objdump; then
12758 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12759 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12761 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12765 fi
12766 elif test $build != $host && test $have_gcc_for_target = yes; then
12767 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12768 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12769 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12770 fi
12771 fi
12772 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12773 # Extract the first word of "objdump", so it can be a program name with args.
12774 set dummy objdump; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 case $OBJDUMP_FOR_TARGET in
12781 [\\/]* | ?:[\\/]*)
12782 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12783 ;;
12784 *)
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $gcc_cv_tool_dirs
12787 do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12792 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12795 fi
12796 done
12797 done
12798 IFS=$as_save_IFS
12799
12800 ;;
12801 esac
12802 fi
12803 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12804 if test -n "$OBJDUMP_FOR_TARGET"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12806 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813 fi
12814 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12815
12816
12817 if test -n "$OBJDUMP_FOR_TARGET"; then
12818 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12819 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12820 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12821 fi
12822
12823 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12824 for ncn_progname in objdump; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$OBJDUMP_FOR_TARGET"; then
12833 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12853 if test -n "$OBJDUMP_FOR_TARGET"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12855 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 done
12863 fi
12864
12865 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12866 for ncn_progname in objdump; do
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12868 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12869 if test -x $with_build_time_tools/${ncn_progname}; then
12870 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873 break
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12877 fi
12878 done
12879 fi
12880
12881 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12882 for ncn_progname in objdump; do
12883 if test -n "$ncn_target_tool_prefix"; then
12884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12885 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12887 $as_echo_n "checking for $ac_word... " >&6; }
12888 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test -n "$OBJDUMP_FOR_TARGET"; then
12892 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12893 else
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 fi
12910 fi
12911 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12912 if test -n "$OBJDUMP_FOR_TARGET"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12914 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12918 fi
12919
12920
12921 fi
12922 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12924 set dummy ${ncn_progname}; ac_word=$2
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12926 $as_echo_n "checking for $ac_word... " >&6; }
12927 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 if test -n "$OBJDUMP_FOR_TARGET"; then
12931 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12932 else
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $PATH
12935 do
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12943 fi
12944 done
12945 done
12946 IFS=$as_save_IFS
12947
12948 fi
12949 fi
12950 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12951 if test -n "$OBJDUMP_FOR_TARGET"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12953 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958
12959
12960 fi
12961 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12962 done
12963 fi
12964
12965 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12966 set dummy objdump
12967 if test $build = $target ; then
12968 OBJDUMP_FOR_TARGET="$2"
12969 else
12970 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12971 fi
12972 else
12973 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12974 fi
12975
12976 else
12977 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12978 fi
12979
12980
12981
12982
12983 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
12984 if test -n "$with_build_time_tools"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
12986 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
12987 if test -x $with_build_time_tools/otool; then
12988 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
12989 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
12991 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996 elif test $build != $host && test $have_gcc_for_target = yes; then
12997 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
12998 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
12999 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13000 fi
13001 fi
13002 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13003 # Extract the first word of "otool", so it can be a program name with args.
13004 set dummy otool; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 case $OTOOL_FOR_TARGET in
13011 [\\/]* | ?:[\\/]*)
13012 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13013 ;;
13014 *)
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $gcc_cv_tool_dirs
13017 do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 break 2
13025 fi
13026 done
13027 done
13028 IFS=$as_save_IFS
13029
13030 ;;
13031 esac
13032 fi
13033 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13034 if test -n "$OTOOL_FOR_TARGET"; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13036 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041
13042
13043 fi
13044 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13045
13046
13047 if test -n "$OTOOL_FOR_TARGET"; then
13048 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13049 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13050 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13051 fi
13052
13053 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13054 for ncn_progname in otool; do
13055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13056 set dummy ${ncn_progname}; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$OTOOL_FOR_TARGET"; then
13063 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13075 fi
13076 done
13077 done
13078 IFS=$as_save_IFS
13079
13080 fi
13081 fi
13082 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13083 if test -n "$OTOOL_FOR_TARGET"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13085 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 fi
13090
13091
13092 done
13093 fi
13094
13095 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13096 for ncn_progname in otool; do
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13098 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13099 if test -x $with_build_time_tools/${ncn_progname}; then
13100 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13102 $as_echo "yes" >&6; }
13103 break
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 done
13109 fi
13110
13111 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13112 for ncn_progname in otool; do
13113 if test -n "$ncn_target_tool_prefix"; then
13114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13115 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 if test -n "$OTOOL_FOR_TARGET"; then
13122 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13126 do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13131 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135 done
13136 done
13137 IFS=$as_save_IFS
13138
13139 fi
13140 fi
13141 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13142 if test -n "$OTOOL_FOR_TARGET"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13144 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149
13150
13151 fi
13152 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13154 set dummy ${ncn_progname}; ac_word=$2
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156 $as_echo_n "checking for $ac_word... " >&6; }
13157 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 if test -n "$OTOOL_FOR_TARGET"; then
13161 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13162 else
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13170 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13173 fi
13174 done
13175 done
13176 IFS=$as_save_IFS
13177
13178 fi
13179 fi
13180 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13181 if test -n "$OTOOL_FOR_TARGET"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13183 $as_echo "$OTOOL_FOR_TARGET" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190 fi
13191 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13192 done
13193 fi
13194
13195 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13196 set dummy otool
13197 if test $build = $target ; then
13198 OTOOL_FOR_TARGET="$2"
13199 else
13200 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13201 fi
13202 else
13203 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13204 fi
13205
13206 else
13207 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13208 fi
13209
13210
13211
13212
13213 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13214 if test -n "$with_build_time_tools"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13216 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13217 if test -x $with_build_time_tools/ranlib; then
13218 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13219 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13221 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13222 else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224 $as_echo "no" >&6; }
13225 fi
13226 elif test $build != $host && test $have_gcc_for_target = yes; then
13227 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13228 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13229 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13230 fi
13231 fi
13232 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13233 # Extract the first word of "ranlib", so it can be a program name with args.
13234 set dummy ranlib; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 case $RANLIB_FOR_TARGET in
13241 [\\/]* | ?:[\\/]*)
13242 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13243 ;;
13244 *)
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $gcc_cv_tool_dirs
13247 do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13255 fi
13256 done
13257 done
13258 IFS=$as_save_IFS
13259
13260 ;;
13261 esac
13262 fi
13263 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13264 if test -n "$RANLIB_FOR_TARGET"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13266 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 fi
13271
13272
13273 fi
13274 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13275
13276
13277 if test -n "$RANLIB_FOR_TARGET"; then
13278 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13279 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13280 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13281 fi
13282
13283 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13284 for ncn_progname in ranlib; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$RANLIB_FOR_TARGET"; then
13293 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13313 if test -n "$RANLIB_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13315 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320
13321
13322 done
13323 fi
13324
13325 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13326 for ncn_progname in ranlib; do
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13332 $as_echo "yes" >&6; }
13333 break
13334 else
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13336 $as_echo "no" >&6; }
13337 fi
13338 done
13339 fi
13340
13341 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13342 for ncn_progname in ranlib; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$RANLIB_FOR_TARGET"; then
13352 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13361 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13372 if test -n "$RANLIB_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13374 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380
13381 fi
13382 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$RANLIB_FOR_TARGET"; then
13391 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13395 do
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13403 fi
13404 done
13405 done
13406 IFS=$as_save_IFS
13407
13408 fi
13409 fi
13410 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13411 if test -n "$RANLIB_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13413 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13422 done
13423 fi
13424
13425 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13426 set dummy ranlib
13427 if test $build = $target ; then
13428 RANLIB_FOR_TARGET="$2"
13429 else
13430 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13431 fi
13432 else
13433 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13434 fi
13435
13436 else
13437 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13438 fi
13439
13440
13441
13442
13443 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13444 if test -n "$with_build_time_tools"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13446 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13447 if test -x $with_build_time_tools/readelf; then
13448 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13449 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13451 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456 elif test $build != $host && test $have_gcc_for_target = yes; then
13457 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13458 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13459 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13460 fi
13461 fi
13462 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13463 # Extract the first word of "readelf", so it can be a program name with args.
13464 set dummy readelf; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 case $READELF_FOR_TARGET in
13471 [\\/]* | ?:[\\/]*)
13472 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13473 ;;
13474 *)
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $gcc_cv_tool_dirs
13477 do
13478 IFS=$as_save_IFS
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13482 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13484 break 2
13485 fi
13486 done
13487 done
13488 IFS=$as_save_IFS
13489
13490 ;;
13491 esac
13492 fi
13493 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13494 if test -n "$READELF_FOR_TARGET"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13496 $as_echo "$READELF_FOR_TARGET" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13500 fi
13501
13502
13503 fi
13504 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13505
13506
13507 if test -n "$READELF_FOR_TARGET"; then
13508 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13509 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13510 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13511 fi
13512
13513 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13514 for ncn_progname in readelf; do
13515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$READELF_FOR_TARGET"; then
13523 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13543 if test -n "$READELF_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13545 $as_echo "$READELF_FOR_TARGET" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552 done
13553 fi
13554
13555 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13556 for ncn_progname in readelf; do
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13559 if test -x $with_build_time_tools/${ncn_progname}; then
13560 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13562 $as_echo "yes" >&6; }
13563 break
13564 else
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566 $as_echo "no" >&6; }
13567 fi
13568 done
13569 fi
13570
13571 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13572 for ncn_progname in readelf; do
13573 if test -n "$ncn_target_tool_prefix"; then
13574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 if test -n "$READELF_FOR_TARGET"; then
13582 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13583 else
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13586 do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13591 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13594 fi
13595 done
13596 done
13597 IFS=$as_save_IFS
13598
13599 fi
13600 fi
13601 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13602 if test -n "$READELF_FOR_TARGET"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13604 $as_echo "$READELF_FOR_TARGET" >&6; }
13605 else
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13607 $as_echo "no" >&6; }
13608 fi
13609
13610
13611 fi
13612 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13614 set dummy ${ncn_progname}; ac_word=$2
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13616 $as_echo_n "checking for $ac_word... " >&6; }
13617 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 if test -n "$READELF_FOR_TARGET"; then
13621 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13622 else
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $PATH
13625 do
13626 IFS=$as_save_IFS
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13630 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 break 2
13633 fi
13634 done
13635 done
13636 IFS=$as_save_IFS
13637
13638 fi
13639 fi
13640 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13641 if test -n "$READELF_FOR_TARGET"; then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13643 $as_echo "$READELF_FOR_TARGET" >&6; }
13644 else
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13647 fi
13648
13649
13650 fi
13651 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13652 done
13653 fi
13654
13655 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13656 set dummy readelf
13657 if test $build = $target ; then
13658 READELF_FOR_TARGET="$2"
13659 else
13660 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13661 fi
13662 else
13663 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13664 fi
13665
13666 else
13667 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13668 fi
13669
13670
13671
13672
13673 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13674 if test -n "$with_build_time_tools"; then
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13676 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13677 if test -x $with_build_time_tools/strip; then
13678 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13679 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13681 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686 elif test $build != $host && test $have_gcc_for_target = yes; then
13687 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13688 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13689 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13690 fi
13691 fi
13692 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13693 # Extract the first word of "strip", so it can be a program name with args.
13694 set dummy strip; ac_word=$2
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696 $as_echo_n "checking for $ac_word... " >&6; }
13697 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 case $STRIP_FOR_TARGET in
13701 [\\/]* | ?:[\\/]*)
13702 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13703 ;;
13704 *)
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $gcc_cv_tool_dirs
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716 done
13717 done
13718 IFS=$as_save_IFS
13719
13720 ;;
13721 esac
13722 fi
13723 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13724 if test -n "$STRIP_FOR_TARGET"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13726 $as_echo "$STRIP_FOR_TARGET" >&6; }
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13730 fi
13731
13732
13733 fi
13734 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13735
13736
13737 if test -n "$STRIP_FOR_TARGET"; then
13738 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13739 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13740 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13741 fi
13742
13743 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13744 for ncn_progname in strip; do
13745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13746 set dummy ${ncn_progname}; ac_word=$2
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748 $as_echo_n "checking for $ac_word... " >&6; }
13749 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 if test -n "$STRIP_FOR_TARGET"; then
13753 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13754 else
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH
13757 do
13758 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13762 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2
13765 fi
13766 done
13767 done
13768 IFS=$as_save_IFS
13769
13770 fi
13771 fi
13772 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13773 if test -n "$STRIP_FOR_TARGET"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13775 $as_echo "$STRIP_FOR_TARGET" >&6; }
13776 else
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13778 $as_echo "no" >&6; }
13779 fi
13780
13781
13782 done
13783 fi
13784
13785 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13786 for ncn_progname in strip; do
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13788 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13789 if test -x $with_build_time_tools/${ncn_progname}; then
13790 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13792 $as_echo "yes" >&6; }
13793 break
13794 else
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13796 $as_echo "no" >&6; }
13797 fi
13798 done
13799 fi
13800
13801 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13802 for ncn_progname in strip; do
13803 if test -n "$ncn_target_tool_prefix"; then
13804 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13805 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 if test -n "$STRIP_FOR_TARGET"; then
13812 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13813 else
13814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13815 for as_dir in $PATH
13816 do
13817 IFS=$as_save_IFS
13818 test -z "$as_dir" && as_dir=.
13819 for ac_exec_ext in '' $ac_executable_extensions; do
13820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13821 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 break 2
13824 fi
13825 done
13826 done
13827 IFS=$as_save_IFS
13828
13829 fi
13830 fi
13831 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13832 if test -n "$STRIP_FOR_TARGET"; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13834 $as_echo "$STRIP_FOR_TARGET" >&6; }
13835 else
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13837 $as_echo "no" >&6; }
13838 fi
13839
13840
13841 fi
13842 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13844 set dummy ${ncn_progname}; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846 $as_echo_n "checking for $ac_word... " >&6; }
13847 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 if test -n "$STRIP_FOR_TARGET"; then
13851 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13852 else
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13855 do
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13860 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13863 fi
13864 done
13865 done
13866 IFS=$as_save_IFS
13867
13868 fi
13869 fi
13870 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13871 if test -n "$STRIP_FOR_TARGET"; then
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13873 $as_echo "$STRIP_FOR_TARGET" >&6; }
13874 else
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13876 $as_echo "no" >&6; }
13877 fi
13878
13879
13880 fi
13881 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13882 done
13883 fi
13884
13885 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13886 set dummy strip
13887 if test $build = $target ; then
13888 STRIP_FOR_TARGET="$2"
13889 else
13890 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13891 fi
13892 else
13893 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13894 fi
13895
13896 else
13897 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13898 fi
13899
13900
13901
13902
13903 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13904 if test -n "$with_build_time_tools"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13906 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13907 if test -x $with_build_time_tools/windres; then
13908 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13909 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13911 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13912 else
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915 fi
13916 elif test $build != $host && test $have_gcc_for_target = yes; then
13917 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13918 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13919 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13920 fi
13921 fi
13922 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13923 # Extract the first word of "windres", so it can be a program name with args.
13924 set dummy windres; ac_word=$2
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13926 $as_echo_n "checking for $ac_word... " >&6; }
13927 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 case $WINDRES_FOR_TARGET in
13931 [\\/]* | ?:[\\/]*)
13932 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13933 ;;
13934 *)
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $gcc_cv_tool_dirs
13937 do
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13945 fi
13946 done
13947 done
13948 IFS=$as_save_IFS
13949
13950 ;;
13951 esac
13952 fi
13953 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13954 if test -n "$WINDRES_FOR_TARGET"; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13956 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13957 else
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 $as_echo "no" >&6; }
13960 fi
13961
13962
13963 fi
13964 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13965
13966
13967 if test -n "$WINDRES_FOR_TARGET"; then
13968 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13969 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13970 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13971 fi
13972
13973 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13974 for ncn_progname in windres; do
13975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13976 set dummy ${ncn_progname}; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978 $as_echo_n "checking for $ac_word... " >&6; }
13979 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 if test -n "$WINDRES_FOR_TARGET"; then
13983 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13984 else
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13995 fi
13996 done
13997 done
13998 IFS=$as_save_IFS
13999
14000 fi
14001 fi
14002 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14003 if test -n "$WINDRES_FOR_TARGET"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14005 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010
14011
14012 done
14013 fi
14014
14015 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
14016 for ncn_progname in windres; do
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14018 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14019 if test -x $with_build_time_tools/${ncn_progname}; then
14020 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14022 $as_echo "yes" >&6; }
14023 break
14024 else
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14027 fi
14028 done
14029 fi
14030
14031 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14032 for ncn_progname in windres; do
14033 if test -n "$ncn_target_tool_prefix"; then
14034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14037 $as_echo_n "checking for $ac_word... " >&6; }
14038 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 if test -n "$WINDRES_FOR_TARGET"; then
14042 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14043 else
14044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14045 for as_dir in $PATH
14046 do
14047 IFS=$as_save_IFS
14048 test -z "$as_dir" && as_dir=.
14049 for ac_exec_ext in '' $ac_executable_extensions; do
14050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14051 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14053 break 2
14054 fi
14055 done
14056 done
14057 IFS=$as_save_IFS
14058
14059 fi
14060 fi
14061 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14062 if test -n "$WINDRES_FOR_TARGET"; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14064 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14065 else
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14067 $as_echo "no" >&6; }
14068 fi
14069
14070
14071 fi
14072 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14074 set dummy ${ncn_progname}; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 if test -n "$WINDRES_FOR_TARGET"; then
14081 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14090 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14093 fi
14094 done
14095 done
14096 IFS=$as_save_IFS
14097
14098 fi
14099 fi
14100 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14101 if test -n "$WINDRES_FOR_TARGET"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14103 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14104 else
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14107 fi
14108
14109
14110 fi
14111 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14112 done
14113 fi
14114
14115 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14116 set dummy windres
14117 if test $build = $target ; then
14118 WINDRES_FOR_TARGET="$2"
14119 else
14120 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14121 fi
14122 else
14123 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14124 fi
14125
14126 else
14127 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14128 fi
14129
14130
14131
14132
14133 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14134 if test -n "$with_build_time_tools"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14136 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14137 if test -x $with_build_time_tools/windmc; then
14138 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14139 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14141 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14142 else
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 $as_echo "no" >&6; }
14145 fi
14146 elif test $build != $host && test $have_gcc_for_target = yes; then
14147 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14148 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14149 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14150 fi
14151 fi
14152 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14153 # Extract the first word of "windmc", so it can be a program name with args.
14154 set dummy windmc; ac_word=$2
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 case $WINDMC_FOR_TARGET in
14161 [\\/]* | ?:[\\/]*)
14162 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14163 ;;
14164 *)
14165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166 for as_dir in $gcc_cv_tool_dirs
14167 do
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
14170 for ac_exec_ext in '' $ac_executable_extensions; do
14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14172 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 break 2
14175 fi
14176 done
14177 done
14178 IFS=$as_save_IFS
14179
14180 ;;
14181 esac
14182 fi
14183 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14184 if test -n "$WINDMC_FOR_TARGET"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14186 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14187 else
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190 fi
14191
14192
14193 fi
14194 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14195
14196
14197 if test -n "$WINDMC_FOR_TARGET"; then
14198 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14199 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14200 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14201 fi
14202
14203 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14204 for ncn_progname in windmc; do
14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14206 set dummy ${ncn_progname}; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 if test -n "$WINDMC_FOR_TARGET"; then
14213 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14217 do
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14225 fi
14226 done
14227 done
14228 IFS=$as_save_IFS
14229
14230 fi
14231 fi
14232 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14233 if test -n "$WINDMC_FOR_TARGET"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14235 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14239 fi
14240
14241
14242 done
14243 fi
14244
14245 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14246 for ncn_progname in windmc; do
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14248 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14249 if test -x $with_build_time_tools/${ncn_progname}; then
14250 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14252 $as_echo "yes" >&6; }
14253 break
14254 else
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257 fi
14258 done
14259 fi
14260
14261 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14262 for ncn_progname in windmc; do
14263 if test -n "$ncn_target_tool_prefix"; then
14264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14267 $as_echo_n "checking for $ac_word... " >&6; }
14268 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14269 $as_echo_n "(cached) " >&6
14270 else
14271 if test -n "$WINDMC_FOR_TARGET"; then
14272 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14273 else
14274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14276 do
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 for ac_exec_ext in '' $ac_executable_extensions; do
14280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14281 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283 break 2
14284 fi
14285 done
14286 done
14287 IFS=$as_save_IFS
14288
14289 fi
14290 fi
14291 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14292 if test -n "$WINDMC_FOR_TARGET"; then
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14294 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14295 else
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297 $as_echo "no" >&6; }
14298 fi
14299
14300
14301 fi
14302 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14304 set dummy ${ncn_progname}; ac_word=$2
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306 $as_echo_n "checking for $ac_word... " >&6; }
14307 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 if test -n "$WINDMC_FOR_TARGET"; then
14311 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14312 else
14313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314 for as_dir in $PATH
14315 do
14316 IFS=$as_save_IFS
14317 test -z "$as_dir" && as_dir=.
14318 for ac_exec_ext in '' $ac_executable_extensions; do
14319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14320 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14322 break 2
14323 fi
14324 done
14325 done
14326 IFS=$as_save_IFS
14327
14328 fi
14329 fi
14330 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14331 if test -n "$WINDMC_FOR_TARGET"; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14333 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14334 else
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336 $as_echo "no" >&6; }
14337 fi
14338
14339
14340 fi
14341 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14342 done
14343 fi
14344
14345 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14346 set dummy windmc
14347 if test $build = $target ; then
14348 WINDMC_FOR_TARGET="$2"
14349 else
14350 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14351 fi
14352 else
14353 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14354 fi
14355
14356 else
14357 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14358 fi
14359
14360
14361 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14364 $as_echo_n "checking where to find the target ar... " >&6; }
14365 if test "x${build}" != "x${host}" ; then
14366 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14367 # We already found the complete path
14368 ac_dir=`dirname $AR_FOR_TARGET`
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14370 $as_echo "pre-installed in $ac_dir" >&6; }
14371 else
14372 # Canadian cross, just use what we found
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14374 $as_echo "pre-installed" >&6; }
14375 fi
14376 else
14377 ok=yes
14378 case " ${configdirs} " in
14379 *" binutils "*) ;;
14380 *) ok=no ;;
14381 esac
14382
14383 if test $ok = yes; then
14384 # An in-tree tool is available and we can use it
14385 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14387 $as_echo "just compiled" >&6; }
14388 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14389 # We already found the complete path
14390 ac_dir=`dirname $AR_FOR_TARGET`
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14392 $as_echo "pre-installed in $ac_dir" >&6; }
14393 elif test "x$target" = "x$host"; then
14394 # We can use an host tool
14395 AR_FOR_TARGET='$(AR)'
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14397 $as_echo "host tool" >&6; }
14398 else
14399 # We need a cross tool
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401 $as_echo "pre-installed" >&6; }
14402 fi
14403 fi
14404
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14406 $as_echo_n "checking where to find the target as... " >&6; }
14407 if test "x${build}" != "x${host}" ; then
14408 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14409 # We already found the complete path
14410 ac_dir=`dirname $AS_FOR_TARGET`
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14412 $as_echo "pre-installed in $ac_dir" >&6; }
14413 else
14414 # Canadian cross, just use what we found
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14416 $as_echo "pre-installed" >&6; }
14417 fi
14418 else
14419 ok=yes
14420 case " ${configdirs} " in
14421 *" gas "*) ;;
14422 *) ok=no ;;
14423 esac
14424
14425 if test $ok = yes; then
14426 # An in-tree tool is available and we can use it
14427 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14429 $as_echo "just compiled" >&6; }
14430 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14431 # We already found the complete path
14432 ac_dir=`dirname $AS_FOR_TARGET`
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14434 $as_echo "pre-installed in $ac_dir" >&6; }
14435 elif test "x$target" = "x$host"; then
14436 # We can use an host tool
14437 AS_FOR_TARGET='$(AS)'
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14439 $as_echo "host tool" >&6; }
14440 else
14441 # We need a cross tool
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14443 $as_echo "pre-installed" >&6; }
14444 fi
14445 fi
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14448 $as_echo_n "checking where to find the target cc... " >&6; }
14449 if test "x${build}" != "x${host}" ; then
14450 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14451 # We already found the complete path
14452 ac_dir=`dirname $CC_FOR_TARGET`
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14454 $as_echo "pre-installed in $ac_dir" >&6; }
14455 else
14456 # Canadian cross, just use what we found
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14458 $as_echo "pre-installed" >&6; }
14459 fi
14460 else
14461 ok=yes
14462 case " ${configdirs} " in
14463 *" gcc "*) ;;
14464 *) ok=no ;;
14465 esac
14466
14467 if test $ok = yes; then
14468 # An in-tree tool is available and we can use it
14469 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14471 $as_echo "just compiled" >&6; }
14472 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14473 # We already found the complete path
14474 ac_dir=`dirname $CC_FOR_TARGET`
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14476 $as_echo "pre-installed in $ac_dir" >&6; }
14477 elif test "x$target" = "x$host"; then
14478 # We can use an host tool
14479 CC_FOR_TARGET='$(CC)'
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14481 $as_echo "host tool" >&6; }
14482 else
14483 # We need a cross tool
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14485 $as_echo "pre-installed" >&6; }
14486 fi
14487 fi
14488
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14490 $as_echo_n "checking where to find the target c++... " >&6; }
14491 if test "x${build}" != "x${host}" ; then
14492 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14493 # We already found the complete path
14494 ac_dir=`dirname $CXX_FOR_TARGET`
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14496 $as_echo "pre-installed in $ac_dir" >&6; }
14497 else
14498 # Canadian cross, just use what we found
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14500 $as_echo "pre-installed" >&6; }
14501 fi
14502 else
14503 ok=yes
14504 case " ${configdirs} " in
14505 *" gcc "*) ;;
14506 *) ok=no ;;
14507 esac
14508 case ,${enable_languages}, in
14509 *,c++,*) ;;
14510 *) ok=no ;;
14511 esac
14512 if test $ok = yes; then
14513 # An in-tree tool is available and we can use it
14514 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'
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14516 $as_echo "just compiled" >&6; }
14517 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14518 # We already found the complete path
14519 ac_dir=`dirname $CXX_FOR_TARGET`
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14521 $as_echo "pre-installed in $ac_dir" >&6; }
14522 elif test "x$target" = "x$host"; then
14523 # We can use an host tool
14524 CXX_FOR_TARGET='$(CXX)'
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14526 $as_echo "host tool" >&6; }
14527 else
14528 # We need a cross tool
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14530 $as_echo "pre-installed" >&6; }
14531 fi
14532 fi
14533
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14535 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14536 if test "x${build}" != "x${host}" ; then
14537 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
14539 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541 $as_echo "pre-installed in $ac_dir" >&6; }
14542 else
14543 # Canadian cross, just use what we found
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14545 $as_echo "pre-installed" >&6; }
14546 fi
14547 else
14548 ok=yes
14549 case " ${configdirs} " in
14550 *" gcc "*) ;;
14551 *) ok=no ;;
14552 esac
14553 case ,${enable_languages}, in
14554 *,c++,*) ;;
14555 *) ok=no ;;
14556 esac
14557 if test $ok = yes; then
14558 # An in-tree tool is available and we can use it
14559 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'
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14561 $as_echo "just compiled" >&6; }
14562 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14563 # We already found the complete path
14564 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14566 $as_echo "pre-installed in $ac_dir" >&6; }
14567 elif test "x$target" = "x$host"; then
14568 # We can use an host tool
14569 RAW_CXX_FOR_TARGET='$(CXX)'
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14571 $as_echo "host tool" >&6; }
14572 else
14573 # We need a cross tool
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575 $as_echo "pre-installed" >&6; }
14576 fi
14577 fi
14578
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14580 $as_echo_n "checking where to find the target dlltool... " >&6; }
14581 if test "x${build}" != "x${host}" ; then
14582 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14583 # We already found the complete path
14584 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14586 $as_echo "pre-installed in $ac_dir" >&6; }
14587 else
14588 # Canadian cross, just use what we found
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590 $as_echo "pre-installed" >&6; }
14591 fi
14592 else
14593 ok=yes
14594 case " ${configdirs} " in
14595 *" binutils "*) ;;
14596 *) ok=no ;;
14597 esac
14598
14599 if test $ok = yes; then
14600 # An in-tree tool is available and we can use it
14601 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14603 $as_echo "just compiled" >&6; }
14604 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14605 # We already found the complete path
14606 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14608 $as_echo "pre-installed in $ac_dir" >&6; }
14609 elif test "x$target" = "x$host"; then
14610 # We can use an host tool
14611 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14613 $as_echo "host tool" >&6; }
14614 else
14615 # We need a cross tool
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14617 $as_echo "pre-installed" >&6; }
14618 fi
14619 fi
14620
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14622 $as_echo_n "checking where to find the target gcc... " >&6; }
14623 if test "x${build}" != "x${host}" ; then
14624 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14625 # We already found the complete path
14626 ac_dir=`dirname $GCC_FOR_TARGET`
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14628 $as_echo "pre-installed in $ac_dir" >&6; }
14629 else
14630 # Canadian cross, just use what we found
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14632 $as_echo "pre-installed" >&6; }
14633 fi
14634 else
14635 ok=yes
14636 case " ${configdirs} " in
14637 *" gcc "*) ;;
14638 *) ok=no ;;
14639 esac
14640
14641 if test $ok = yes; then
14642 # An in-tree tool is available and we can use it
14643 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14645 $as_echo "just compiled" >&6; }
14646 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14647 # We already found the complete path
14648 ac_dir=`dirname $GCC_FOR_TARGET`
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14650 $as_echo "pre-installed in $ac_dir" >&6; }
14651 elif test "x$target" = "x$host"; then
14652 # We can use an host tool
14653 GCC_FOR_TARGET='$()'
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14655 $as_echo "host tool" >&6; }
14656 else
14657 # We need a cross tool
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659 $as_echo "pre-installed" >&6; }
14660 fi
14661 fi
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14664 $as_echo_n "checking where to find the target gfortran... " >&6; }
14665 if test "x${build}" != "x${host}" ; then
14666 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14667 # We already found the complete path
14668 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14670 $as_echo "pre-installed in $ac_dir" >&6; }
14671 else
14672 # Canadian cross, just use what we found
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14674 $as_echo "pre-installed" >&6; }
14675 fi
14676 else
14677 ok=yes
14678 case " ${configdirs} " in
14679 *" gcc "*) ;;
14680 *) ok=no ;;
14681 esac
14682 case ,${enable_languages}, in
14683 *,fortran,*) ;;
14684 *) ok=no ;;
14685 esac
14686 if test $ok = yes; then
14687 # An in-tree tool is available and we can use it
14688 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14690 $as_echo "just compiled" >&6; }
14691 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14692 # We already found the complete path
14693 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14695 $as_echo "pre-installed in $ac_dir" >&6; }
14696 elif test "x$target" = "x$host"; then
14697 # We can use an host tool
14698 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14700 $as_echo "host tool" >&6; }
14701 else
14702 # We need a cross tool
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14704 $as_echo "pre-installed" >&6; }
14705 fi
14706 fi
14707
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14709 $as_echo_n "checking where to find the target gccgo... " >&6; }
14710 if test "x${build}" != "x${host}" ; then
14711 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14712 # We already found the complete path
14713 ac_dir=`dirname $GOC_FOR_TARGET`
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14715 $as_echo "pre-installed in $ac_dir" >&6; }
14716 else
14717 # Canadian cross, just use what we found
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14719 $as_echo "pre-installed" >&6; }
14720 fi
14721 else
14722 ok=yes
14723 case " ${configdirs} " in
14724 *" gcc "*) ;;
14725 *) ok=no ;;
14726 esac
14727 case ,${enable_languages}, in
14728 *,go,*) ;;
14729 *) ok=no ;;
14730 esac
14731 if test $ok = yes; then
14732 # An in-tree tool is available and we can use it
14733 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14735 $as_echo "just compiled" >&6; }
14736 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14737 # We already found the complete path
14738 ac_dir=`dirname $GOC_FOR_TARGET`
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14740 $as_echo "pre-installed in $ac_dir" >&6; }
14741 elif test "x$target" = "x$host"; then
14742 # We can use an host tool
14743 GOC_FOR_TARGET='$(GOC)'
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14745 $as_echo "host tool" >&6; }
14746 else
14747 # We need a cross tool
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14749 $as_echo "pre-installed" >&6; }
14750 fi
14751 fi
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
14754 $as_echo_n "checking where to find the target gdc... " >&6; }
14755 if test "x${build}" != "x${host}" ; then
14756 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14757 # We already found the complete path
14758 ac_dir=`dirname $GDC_FOR_TARGET`
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14760 $as_echo "pre-installed in $ac_dir" >&6; }
14761 else
14762 # Canadian cross, just use what we found
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14764 $as_echo "pre-installed" >&6; }
14765 fi
14766 else
14767 ok=yes
14768 case " ${configdirs} " in
14769 *" gcc "*) ;;
14770 *) ok=no ;;
14771 esac
14772 case ,${enable_languages}, in
14773 *,d,*) ;;
14774 *) ok=no ;;
14775 esac
14776 if test $ok = yes; then
14777 # An in-tree tool is available and we can use it
14778 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14780 $as_echo "just compiled" >&6; }
14781 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
14782 # We already found the complete path
14783 ac_dir=`dirname $GDC_FOR_TARGET`
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14785 $as_echo "pre-installed in $ac_dir" >&6; }
14786 elif test "x$target" = "x$host"; then
14787 # We can use an host tool
14788 GDC_FOR_TARGET='$(GDC)'
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14790 $as_echo "host tool" >&6; }
14791 else
14792 # We need a cross tool
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14794 $as_echo "pre-installed" >&6; }
14795 fi
14796 fi
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14799 $as_echo_n "checking where to find the target ld... " >&6; }
14800 if test "x${build}" != "x${host}" ; then
14801 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14802 # We already found the complete path
14803 ac_dir=`dirname $LD_FOR_TARGET`
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14805 $as_echo "pre-installed in $ac_dir" >&6; }
14806 else
14807 # Canadian cross, just use what we found
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14809 $as_echo "pre-installed" >&6; }
14810 fi
14811 else
14812 ok=yes
14813 case " ${configdirs} " in
14814 *" ld "*) ;;
14815 *) ok=no ;;
14816 esac
14817
14818 if test $ok = yes; then
14819 # An in-tree tool is available and we can use it
14820 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14822 $as_echo "just compiled" >&6; }
14823 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14824 # We already found the complete path
14825 ac_dir=`dirname $LD_FOR_TARGET`
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14827 $as_echo "pre-installed in $ac_dir" >&6; }
14828 elif test "x$target" = "x$host"; then
14829 # We can use an host tool
14830 LD_FOR_TARGET='$(LD)'
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14832 $as_echo "host tool" >&6; }
14833 else
14834 # We need a cross tool
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14836 $as_echo "pre-installed" >&6; }
14837 fi
14838 fi
14839
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14841 $as_echo_n "checking where to find the target lipo... " >&6; }
14842 if test "x${build}" != "x${host}" ; then
14843 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14844 # We already found the complete path
14845 ac_dir=`dirname $LIPO_FOR_TARGET`
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14847 $as_echo "pre-installed in $ac_dir" >&6; }
14848 else
14849 # Canadian cross, just use what we found
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14851 $as_echo "pre-installed" >&6; }
14852 fi
14853 else
14854 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14855 # We already found the complete path
14856 ac_dir=`dirname $LIPO_FOR_TARGET`
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14858 $as_echo "pre-installed in $ac_dir" >&6; }
14859 elif test "x$target" = "x$host"; then
14860 # We can use an host tool
14861 LIPO_FOR_TARGET='$(LIPO)'
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14863 $as_echo "host tool" >&6; }
14864 else
14865 # We need a cross tool
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14867 $as_echo "pre-installed" >&6; }
14868 fi
14869 fi
14870
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14872 $as_echo_n "checking where to find the target nm... " >&6; }
14873 if test "x${build}" != "x${host}" ; then
14874 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14875 # We already found the complete path
14876 ac_dir=`dirname $NM_FOR_TARGET`
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14878 $as_echo "pre-installed in $ac_dir" >&6; }
14879 else
14880 # Canadian cross, just use what we found
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14882 $as_echo "pre-installed" >&6; }
14883 fi
14884 else
14885 ok=yes
14886 case " ${configdirs} " in
14887 *" binutils "*) ;;
14888 *) ok=no ;;
14889 esac
14890
14891 if test $ok = yes; then
14892 # An in-tree tool is available and we can use it
14893 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14895 $as_echo "just compiled" >&6; }
14896 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14897 # We already found the complete path
14898 ac_dir=`dirname $NM_FOR_TARGET`
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14900 $as_echo "pre-installed in $ac_dir" >&6; }
14901 elif test "x$target" = "x$host"; then
14902 # We can use an host tool
14903 NM_FOR_TARGET='$(NM)'
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14905 $as_echo "host tool" >&6; }
14906 else
14907 # We need a cross tool
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14909 $as_echo "pre-installed" >&6; }
14910 fi
14911 fi
14912
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14914 $as_echo_n "checking where to find the target objcopy... " >&6; }
14915 if test "x${build}" != "x${host}" ; then
14916 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14917 # We already found the complete path
14918 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14920 $as_echo "pre-installed in $ac_dir" >&6; }
14921 else
14922 # Canadian cross, just use what we found
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14924 $as_echo "pre-installed" >&6; }
14925 fi
14926 else
14927 ok=yes
14928 case " ${configdirs} " in
14929 *" binutils "*) ;;
14930 *) ok=no ;;
14931 esac
14932
14933 if test $ok = yes; then
14934 # An in-tree tool is available and we can use it
14935 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14937 $as_echo "just compiled" >&6; }
14938 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14939 # We already found the complete path
14940 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14942 $as_echo "pre-installed in $ac_dir" >&6; }
14943 elif test "x$target" = "x$host"; then
14944 # We can use an host tool
14945 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14947 $as_echo "host tool" >&6; }
14948 else
14949 # We need a cross tool
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14951 $as_echo "pre-installed" >&6; }
14952 fi
14953 fi
14954
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14956 $as_echo_n "checking where to find the target objdump... " >&6; }
14957 if test "x${build}" != "x${host}" ; then
14958 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14959 # We already found the complete path
14960 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14962 $as_echo "pre-installed in $ac_dir" >&6; }
14963 else
14964 # Canadian cross, just use what we found
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14966 $as_echo "pre-installed" >&6; }
14967 fi
14968 else
14969 ok=yes
14970 case " ${configdirs} " in
14971 *" binutils "*) ;;
14972 *) ok=no ;;
14973 esac
14974
14975 if test $ok = yes; then
14976 # An in-tree tool is available and we can use it
14977 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14979 $as_echo "just compiled" >&6; }
14980 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14981 # We already found the complete path
14982 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14984 $as_echo "pre-installed in $ac_dir" >&6; }
14985 elif test "x$target" = "x$host"; then
14986 # We can use an host tool
14987 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14989 $as_echo "host tool" >&6; }
14990 else
14991 # We need a cross tool
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14993 $as_echo "pre-installed" >&6; }
14994 fi
14995 fi
14996
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
14998 $as_echo_n "checking where to find the target otool... " >&6; }
14999 if test "x${build}" != "x${host}" ; then
15000 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15001 # We already found the complete path
15002 ac_dir=`dirname $OTOOL_FOR_TARGET`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15004 $as_echo "pre-installed in $ac_dir" >&6; }
15005 else
15006 # Canadian cross, just use what we found
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15008 $as_echo "pre-installed" >&6; }
15009 fi
15010 else
15011 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15012 # We already found the complete path
15013 ac_dir=`dirname $OTOOL_FOR_TARGET`
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15015 $as_echo "pre-installed in $ac_dir" >&6; }
15016 elif test "x$target" = "x$host"; then
15017 # We can use an host tool
15018 OTOOL_FOR_TARGET='$(OTOOL)'
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15020 $as_echo "host tool" >&6; }
15021 else
15022 # We need a cross tool
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15024 $as_echo "pre-installed" >&6; }
15025 fi
15026 fi
15027
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15029 $as_echo_n "checking where to find the target ranlib... " >&6; }
15030 if test "x${build}" != "x${host}" ; then
15031 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15032 # We already found the complete path
15033 ac_dir=`dirname $RANLIB_FOR_TARGET`
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15035 $as_echo "pre-installed in $ac_dir" >&6; }
15036 else
15037 # Canadian cross, just use what we found
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15039 $as_echo "pre-installed" >&6; }
15040 fi
15041 else
15042 ok=yes
15043 case " ${configdirs} " in
15044 *" binutils "*) ;;
15045 *) ok=no ;;
15046 esac
15047
15048 if test $ok = yes; then
15049 # An in-tree tool is available and we can use it
15050 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15052 $as_echo "just compiled" >&6; }
15053 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15054 # We already found the complete path
15055 ac_dir=`dirname $RANLIB_FOR_TARGET`
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15057 $as_echo "pre-installed in $ac_dir" >&6; }
15058 elif test "x$target" = "x$host"; then
15059 # We can use an host tool
15060 RANLIB_FOR_TARGET='$(RANLIB)'
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15062 $as_echo "host tool" >&6; }
15063 else
15064 # We need a cross tool
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15066 $as_echo "pre-installed" >&6; }
15067 fi
15068 fi
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15071 $as_echo_n "checking where to find the target readelf... " >&6; }
15072 if test "x${build}" != "x${host}" ; then
15073 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15074 # We already found the complete path
15075 ac_dir=`dirname $READELF_FOR_TARGET`
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15077 $as_echo "pre-installed in $ac_dir" >&6; }
15078 else
15079 # Canadian cross, just use what we found
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15081 $as_echo "pre-installed" >&6; }
15082 fi
15083 else
15084 ok=yes
15085 case " ${configdirs} " in
15086 *" binutils "*) ;;
15087 *) ok=no ;;
15088 esac
15089
15090 if test $ok = yes; then
15091 # An in-tree tool is available and we can use it
15092 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15094 $as_echo "just compiled" >&6; }
15095 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15096 # We already found the complete path
15097 ac_dir=`dirname $READELF_FOR_TARGET`
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15099 $as_echo "pre-installed in $ac_dir" >&6; }
15100 elif test "x$target" = "x$host"; then
15101 # We can use an host tool
15102 READELF_FOR_TARGET='$(READELF)'
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15104 $as_echo "host tool" >&6; }
15105 else
15106 # We need a cross tool
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15108 $as_echo "pre-installed" >&6; }
15109 fi
15110 fi
15111
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15113 $as_echo_n "checking where to find the target strip... " >&6; }
15114 if test "x${build}" != "x${host}" ; then
15115 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15116 # We already found the complete path
15117 ac_dir=`dirname $STRIP_FOR_TARGET`
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15119 $as_echo "pre-installed in $ac_dir" >&6; }
15120 else
15121 # Canadian cross, just use what we found
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15123 $as_echo "pre-installed" >&6; }
15124 fi
15125 else
15126 ok=yes
15127 case " ${configdirs} " in
15128 *" binutils "*) ;;
15129 *) ok=no ;;
15130 esac
15131
15132 if test $ok = yes; then
15133 # An in-tree tool is available and we can use it
15134 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15136 $as_echo "just compiled" >&6; }
15137 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15138 # We already found the complete path
15139 ac_dir=`dirname $STRIP_FOR_TARGET`
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15141 $as_echo "pre-installed in $ac_dir" >&6; }
15142 elif test "x$target" = "x$host"; then
15143 # We can use an host tool
15144 STRIP_FOR_TARGET='$(STRIP)'
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15146 $as_echo "host tool" >&6; }
15147 else
15148 # We need a cross tool
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15150 $as_echo "pre-installed" >&6; }
15151 fi
15152 fi
15153
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15155 $as_echo_n "checking where to find the target windres... " >&6; }
15156 if test "x${build}" != "x${host}" ; then
15157 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15158 # We already found the complete path
15159 ac_dir=`dirname $WINDRES_FOR_TARGET`
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15161 $as_echo "pre-installed in $ac_dir" >&6; }
15162 else
15163 # Canadian cross, just use what we found
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15165 $as_echo "pre-installed" >&6; }
15166 fi
15167 else
15168 ok=yes
15169 case " ${configdirs} " in
15170 *" binutils "*) ;;
15171 *) ok=no ;;
15172 esac
15173
15174 if test $ok = yes; then
15175 # An in-tree tool is available and we can use it
15176 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15178 $as_echo "just compiled" >&6; }
15179 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15180 # We already found the complete path
15181 ac_dir=`dirname $WINDRES_FOR_TARGET`
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15183 $as_echo "pre-installed in $ac_dir" >&6; }
15184 elif test "x$target" = "x$host"; then
15185 # We can use an host tool
15186 WINDRES_FOR_TARGET='$(WINDRES)'
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15188 $as_echo "host tool" >&6; }
15189 else
15190 # We need a cross tool
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15192 $as_echo "pre-installed" >&6; }
15193 fi
15194 fi
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15197 $as_echo_n "checking where to find the target windmc... " >&6; }
15198 if test "x${build}" != "x${host}" ; then
15199 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15200 # We already found the complete path
15201 ac_dir=`dirname $WINDMC_FOR_TARGET`
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15203 $as_echo "pre-installed in $ac_dir" >&6; }
15204 else
15205 # Canadian cross, just use what we found
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15207 $as_echo "pre-installed" >&6; }
15208 fi
15209 else
15210 ok=yes
15211 case " ${configdirs} " in
15212 *" binutils "*) ;;
15213 *) ok=no ;;
15214 esac
15215
15216 if test $ok = yes; then
15217 # An in-tree tool is available and we can use it
15218 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15220 $as_echo "just compiled" >&6; }
15221 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15222 # We already found the complete path
15223 ac_dir=`dirname $WINDMC_FOR_TARGET`
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15225 $as_echo "pre-installed in $ac_dir" >&6; }
15226 elif test "x$target" = "x$host"; then
15227 # We can use an host tool
15228 WINDMC_FOR_TARGET='$(WINDMC)'
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15230 $as_echo "host tool" >&6; }
15231 else
15232 # We need a cross tool
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15234 $as_echo "pre-installed" >&6; }
15235 fi
15236 fi
15237
15238
15239
15240
15241
15242 # Certain tools may need extra flags.
15243 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15244 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15245 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15246
15247 # When building target libraries, except in a Canadian cross, we use
15248 # the same toolchain as the compiler we just built.
15249 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15250 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15251 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15252 if test $host = $build; then
15253 case " $configdirs " in
15254 *" gcc "*)
15255 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15256 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15257 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15258 ;;
15259 esac
15260 fi
15261
15262
15263
15264
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15267 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15268 # Check whether --enable-maintainer-mode was given.
15269 if test "${enable_maintainer_mode+set}" = set; then :
15270 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15271 else
15272 USE_MAINTAINER_MODE=no
15273 fi
15274
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15276 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15277
15278
15279 if test "$USE_MAINTAINER_MODE" = yes; then
15280 MAINTAINER_MODE_TRUE=
15281 MAINTAINER_MODE_FALSE='#'
15282 else
15283 MAINTAINER_MODE_TRUE='#'
15284 MAINTAINER_MODE_FALSE=
15285 fi
15286 MAINT=$MAINTAINER_MODE_TRUE
15287
15288 # ---------------------
15289 # GCC bootstrap support
15290 # ---------------------
15291
15292 # Stage specific cflags for build.
15293 stage1_cflags="-g"
15294 case $build in
15295 vax-*-*)
15296 case ${GCC} in
15297 yes) stage1_cflags="-g -Wa,-J" ;;
15298 *) stage1_cflags="-g -J" ;;
15299 esac ;;
15300 esac
15301
15302
15303
15304 # Enable --enable-checking in stage1 of the compiler.
15305 # Check whether --enable-stage1-checking was given.
15306 if test "${enable_stage1_checking+set}" = set; then :
15307 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15308 else
15309 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15310 # For --disable-checking or implicit --enable-checking=release, avoid
15311 # setting --enable-checking=gc in the default stage1 checking for LTO
15312 # bootstraps. See PR62077.
15313 case $BUILD_CONFIG in
15314 *lto*)
15315 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15316 *)
15317 stage1_checking=--enable-checking=yes,types;;
15318 esac
15319 if test "x$enable_checking" = x && \
15320 test -d ${srcdir}/gcc && \
15321 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15322 stage1_checking=--enable-checking=yes,types,extra
15323 fi
15324 else
15325 stage1_checking=--enable-checking=$enable_checking,types
15326 fi
15327 fi
15328
15329
15330
15331 # Enable -Werror in bootstrap stage2 and later.
15332 # Check whether --enable-werror was given.
15333 if test "${enable_werror+set}" = set; then :
15334 enableval=$enable_werror;
15335 case ${enable_werror} in
15336 yes) stage2_werror_flag="--enable-werror-always" ;;
15337 *) stage2_werror_flag="" ;;
15338 esac
15339
15340 else
15341
15342 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15343 case $BUILD_CONFIG in
15344 bootstrap-debug)
15345 stage2_werror_flag="--enable-werror-always" ;;
15346 "")
15347 stage2_werror_flag="--enable-werror-always" ;;
15348 esac
15349 fi
15350
15351 fi
15352
15353
15354
15355
15356 # Specify what files to not compare during bootstrap.
15357
15358 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15359 case "$target" in
15360 hppa*64*-*-hpux*) ;;
15361 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15362 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15363 esac
15364
15365
15366 ac_config_files="$ac_config_files Makefile"
15367
15368 cat >confcache <<\_ACEOF
15369 # This file is a shell script that caches the results of configure
15370 # tests run on this system so they can be shared between configure
15371 # scripts and configure runs, see configure's option --config-cache.
15372 # It is not useful on other systems. If it contains results you don't
15373 # want to keep, you may remove or edit it.
15374 #
15375 # config.status only pays attention to the cache file if you give it
15376 # the --recheck option to rerun configure.
15377 #
15378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15380 # following values.
15381
15382 _ACEOF
15383
15384 # The following way of writing the cache mishandles newlines in values,
15385 # but we know of no workaround that is simple, portable, and efficient.
15386 # So, we kill variables containing newlines.
15387 # Ultrix sh set writes to stderr and can't be redirected directly,
15388 # and sets the high bit in the cache file unless we assign to the vars.
15389 (
15390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15391 eval ac_val=\$$ac_var
15392 case $ac_val in #(
15393 *${as_nl}*)
15394 case $ac_var in #(
15395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15397 esac
15398 case $ac_var in #(
15399 _ | IFS | as_nl) ;; #(
15400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15401 *) { eval $ac_var=; unset $ac_var;} ;;
15402 esac ;;
15403 esac
15404 done
15405
15406 (set) 2>&1 |
15407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15408 *${as_nl}ac_space=\ *)
15409 # `set' does not quote correctly, so add quotes: double-quote
15410 # substitution turns \\\\ into \\, and sed turns \\ into \.
15411 sed -n \
15412 "s/'/'\\\\''/g;
15413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15414 ;; #(
15415 *)
15416 # `set' quotes correctly as required by POSIX, so do not add quotes.
15417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15418 ;;
15419 esac |
15420 sort
15421 ) |
15422 sed '
15423 /^ac_cv_env_/b end
15424 t clear
15425 :clear
15426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15427 t end
15428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15429 :end' >>confcache
15430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15431 if test -w "$cache_file"; then
15432 if test "x$cache_file" != "x/dev/null"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15434 $as_echo "$as_me: updating cache $cache_file" >&6;}
15435 if test ! -f "$cache_file" || test -h "$cache_file"; then
15436 cat confcache >"$cache_file"
15437 else
15438 case $cache_file in #(
15439 */* | ?:*)
15440 mv -f confcache "$cache_file"$$ &&
15441 mv -f "$cache_file"$$ "$cache_file" ;; #(
15442 *)
15443 mv -f confcache "$cache_file" ;;
15444 esac
15445 fi
15446 fi
15447 else
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15449 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15450 fi
15451 fi
15452 rm -f confcache
15453
15454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15455 # Let make expand exec_prefix.
15456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15457
15458 # Transform confdefs.h into DEFS.
15459 # Protect against shell expansion while executing Makefile rules.
15460 # Protect against Makefile macro expansion.
15461 #
15462 # If the first sed substitution is executed (which looks for macros that
15463 # take arguments), then branch to the quote section. Otherwise,
15464 # look for a macro that doesn't take arguments.
15465 ac_script='
15466 :mline
15467 /\\$/{
15468 N
15469 s,\\\n,,
15470 b mline
15471 }
15472 t clear
15473 :clear
15474 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15475 t quote
15476 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15477 t quote
15478 b any
15479 :quote
15480 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15481 s/\[/\\&/g
15482 s/\]/\\&/g
15483 s/\$/$$/g
15484 H
15485 :any
15486 ${
15487 g
15488 s/^\n//
15489 s/\n/ /g
15490 p
15491 }
15492 '
15493 DEFS=`sed -n "$ac_script" confdefs.h`
15494
15495
15496 ac_libobjs=
15497 ac_ltlibobjs=
15498 U=
15499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15500 # 1. Remove the extension, and $U if already installed.
15501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15504 # will be set to the directory where LIBOBJS objects are built.
15505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15507 done
15508 LIBOBJS=$ac_libobjs
15509
15510 LTLIBOBJS=$ac_ltlibobjs
15511
15512
15513
15514 : "${CONFIG_STATUS=./config.status}"
15515 ac_write_fail=0
15516 ac_clean_files_save=$ac_clean_files
15517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15520 as_write_fail=0
15521 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15522 #! $SHELL
15523 # Generated by $as_me.
15524 # Run this file to recreate the current configuration.
15525 # Compiler output produced by configure, useful for debugging
15526 # configure, is in config.log if it exists.
15527
15528 debug=false
15529 ac_cs_recheck=false
15530 ac_cs_silent=false
15531
15532 SHELL=\${CONFIG_SHELL-$SHELL}
15533 export SHELL
15534 _ASEOF
15535 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15536 ## -------------------- ##
15537 ## M4sh Initialization. ##
15538 ## -------------------- ##
15539
15540 # Be more Bourne compatible
15541 DUALCASE=1; export DUALCASE # for MKS sh
15542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15543 emulate sh
15544 NULLCMD=:
15545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15546 # is contrary to our usage. Disable this feature.
15547 alias -g '${1+"$@"}'='"$@"'
15548 setopt NO_GLOB_SUBST
15549 else
15550 case `(set -o) 2>/dev/null` in #(
15551 *posix*) :
15552 set -o posix ;; #(
15553 *) :
15554 ;;
15555 esac
15556 fi
15557
15558
15559 as_nl='
15560 '
15561 export as_nl
15562 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15563 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15566 # Prefer a ksh shell builtin over an external printf program on Solaris,
15567 # but without wasting forks for bash or zsh.
15568 if test -z "$BASH_VERSION$ZSH_VERSION" \
15569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15570 as_echo='print -r --'
15571 as_echo_n='print -rn --'
15572 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15573 as_echo='printf %s\n'
15574 as_echo_n='printf %s'
15575 else
15576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15578 as_echo_n='/usr/ucb/echo -n'
15579 else
15580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15581 as_echo_n_body='eval
15582 arg=$1;
15583 case $arg in #(
15584 *"$as_nl"*)
15585 expr "X$arg" : "X\\(.*\\)$as_nl";
15586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15587 esac;
15588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15589 '
15590 export as_echo_n_body
15591 as_echo_n='sh -c $as_echo_n_body as_echo'
15592 fi
15593 export as_echo_body
15594 as_echo='sh -c $as_echo_body as_echo'
15595 fi
15596
15597 # The user is always right.
15598 if test "${PATH_SEPARATOR+set}" != set; then
15599 PATH_SEPARATOR=:
15600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15602 PATH_SEPARATOR=';'
15603 }
15604 fi
15605
15606
15607 # IFS
15608 # We need space, tab and new line, in precisely that order. Quoting is
15609 # there to prevent editors from complaining about space-tab.
15610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15611 # splitting by setting IFS to empty value.)
15612 IFS=" "" $as_nl"
15613
15614 # Find who we are. Look in the path if we contain no directory separator.
15615 as_myself=
15616 case $0 in #((
15617 *[\\/]* ) as_myself=$0 ;;
15618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15619 for as_dir in $PATH
15620 do
15621 IFS=$as_save_IFS
15622 test -z "$as_dir" && as_dir=.
15623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15624 done
15625 IFS=$as_save_IFS
15626
15627 ;;
15628 esac
15629 # We did not find ourselves, most probably we were run as `sh COMMAND'
15630 # in which case we are not to be found in the path.
15631 if test "x$as_myself" = x; then
15632 as_myself=$0
15633 fi
15634 if test ! -f "$as_myself"; then
15635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15636 exit 1
15637 fi
15638
15639 # Unset variables that we do not need and which cause bugs (e.g. in
15640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15641 # suppresses any "Segmentation fault" message there. '((' could
15642 # trigger a bug in pdksh 5.2.14.
15643 for as_var in BASH_ENV ENV MAIL MAILPATH
15644 do eval test x\${$as_var+set} = xset \
15645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15646 done
15647 PS1='$ '
15648 PS2='> '
15649 PS4='+ '
15650
15651 # NLS nuisances.
15652 LC_ALL=C
15653 export LC_ALL
15654 LANGUAGE=C
15655 export LANGUAGE
15656
15657 # CDPATH.
15658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15659
15660
15661 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15662 # ----------------------------------------
15663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15665 # script with STATUS, using 1 if that was 0.
15666 as_fn_error ()
15667 {
15668 as_status=$1; test $as_status -eq 0 && as_status=1
15669 if test "$4"; then
15670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15672 fi
15673 $as_echo "$as_me: error: $2" >&2
15674 as_fn_exit $as_status
15675 } # as_fn_error
15676
15677
15678 # as_fn_set_status STATUS
15679 # -----------------------
15680 # Set $? to STATUS, without forking.
15681 as_fn_set_status ()
15682 {
15683 return $1
15684 } # as_fn_set_status
15685
15686 # as_fn_exit STATUS
15687 # -----------------
15688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15689 as_fn_exit ()
15690 {
15691 set +e
15692 as_fn_set_status $1
15693 exit $1
15694 } # as_fn_exit
15695
15696 # as_fn_unset VAR
15697 # ---------------
15698 # Portably unset VAR.
15699 as_fn_unset ()
15700 {
15701 { eval $1=; unset $1;}
15702 }
15703 as_unset=as_fn_unset
15704 # as_fn_append VAR VALUE
15705 # ----------------------
15706 # Append the text in VALUE to the end of the definition contained in VAR. Take
15707 # advantage of any shell optimizations that allow amortized linear growth over
15708 # repeated appends, instead of the typical quadratic growth present in naive
15709 # implementations.
15710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15711 eval 'as_fn_append ()
15712 {
15713 eval $1+=\$2
15714 }'
15715 else
15716 as_fn_append ()
15717 {
15718 eval $1=\$$1\$2
15719 }
15720 fi # as_fn_append
15721
15722 # as_fn_arith ARG...
15723 # ------------------
15724 # Perform arithmetic evaluation on the ARGs, and store the result in the
15725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15726 # must be portable across $(()) and expr.
15727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15728 eval 'as_fn_arith ()
15729 {
15730 as_val=$(( $* ))
15731 }'
15732 else
15733 as_fn_arith ()
15734 {
15735 as_val=`expr "$@" || test $? -eq 1`
15736 }
15737 fi # as_fn_arith
15738
15739
15740 if expr a : '\(a\)' >/dev/null 2>&1 &&
15741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15742 as_expr=expr
15743 else
15744 as_expr=false
15745 fi
15746
15747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15748 as_basename=basename
15749 else
15750 as_basename=false
15751 fi
15752
15753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15754 as_dirname=dirname
15755 else
15756 as_dirname=false
15757 fi
15758
15759 as_me=`$as_basename -- "$0" ||
15760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15761 X"$0" : 'X\(//\)$' \| \
15762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15763 $as_echo X/"$0" |
15764 sed '/^.*\/\([^/][^/]*\)\/*$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\/\(\/\/\)$/{
15769 s//\1/
15770 q
15771 }
15772 /^X\/\(\/\).*/{
15773 s//\1/
15774 q
15775 }
15776 s/.*/./; q'`
15777
15778 # Avoid depending upon Character Ranges.
15779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15782 as_cr_digits='0123456789'
15783 as_cr_alnum=$as_cr_Letters$as_cr_digits
15784
15785 ECHO_C= ECHO_N= ECHO_T=
15786 case `echo -n x` in #(((((
15787 -n*)
15788 case `echo 'xy\c'` in
15789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15790 xy) ECHO_C='\c';;
15791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15792 ECHO_T=' ';;
15793 esac;;
15794 *)
15795 ECHO_N='-n';;
15796 esac
15797
15798 rm -f conf$$ conf$$.exe conf$$.file
15799 if test -d conf$$.dir; then
15800 rm -f conf$$.dir/conf$$.file
15801 else
15802 rm -f conf$$.dir
15803 mkdir conf$$.dir 2>/dev/null
15804 fi
15805 if (echo >conf$$.file) 2>/dev/null; then
15806 if ln -s conf$$.file conf$$ 2>/dev/null; then
15807 as_ln_s='ln -s'
15808 # ... but there are two gotchas:
15809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15811 # In both cases, we have to default to `cp -pR'.
15812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15813 as_ln_s='cp -pR'
15814 elif ln conf$$.file conf$$ 2>/dev/null; then
15815 as_ln_s=ln
15816 else
15817 as_ln_s='cp -pR'
15818 fi
15819 else
15820 as_ln_s='cp -pR'
15821 fi
15822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15823 rmdir conf$$.dir 2>/dev/null
15824
15825
15826 # as_fn_mkdir_p
15827 # -------------
15828 # Create "$as_dir" as a directory, including parents if necessary.
15829 as_fn_mkdir_p ()
15830 {
15831
15832 case $as_dir in #(
15833 -*) as_dir=./$as_dir;;
15834 esac
15835 test -d "$as_dir" || eval $as_mkdir_p || {
15836 as_dirs=
15837 while :; do
15838 case $as_dir in #(
15839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15840 *) as_qdir=$as_dir;;
15841 esac
15842 as_dirs="'$as_qdir' $as_dirs"
15843 as_dir=`$as_dirname -- "$as_dir" ||
15844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15845 X"$as_dir" : 'X\(//\)[^/]' \| \
15846 X"$as_dir" : 'X\(//\)$' \| \
15847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15848 $as_echo X"$as_dir" |
15849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15850 s//\1/
15851 q
15852 }
15853 /^X\(\/\/\)[^/].*/{
15854 s//\1/
15855 q
15856 }
15857 /^X\(\/\/\)$/{
15858 s//\1/
15859 q
15860 }
15861 /^X\(\/\).*/{
15862 s//\1/
15863 q
15864 }
15865 s/.*/./; q'`
15866 test -d "$as_dir" && break
15867 done
15868 test -z "$as_dirs" || eval "mkdir $as_dirs"
15869 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15870
15871
15872 } # as_fn_mkdir_p
15873 if mkdir -p . 2>/dev/null; then
15874 as_mkdir_p='mkdir -p "$as_dir"'
15875 else
15876 test -d ./-p && rmdir ./-p
15877 as_mkdir_p=false
15878 fi
15879
15880
15881 # as_fn_executable_p FILE
15882 # -----------------------
15883 # Test if FILE is an executable regular file.
15884 as_fn_executable_p ()
15885 {
15886 test -f "$1" && test -x "$1"
15887 } # as_fn_executable_p
15888 as_test_x='test -x'
15889 as_executable_p=as_fn_executable_p
15890
15891 # Sed expression to map a string onto a valid CPP name.
15892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15893
15894 # Sed expression to map a string onto a valid variable name.
15895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15896
15897
15898 exec 6>&1
15899 ## ----------------------------------- ##
15900 ## Main body of $CONFIG_STATUS script. ##
15901 ## ----------------------------------- ##
15902 _ASEOF
15903 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15904
15905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15906 # Save the log message, to keep $0 and so on meaningful, and to
15907 # report actual input values of CONFIG_FILES etc. instead of their
15908 # values after options handling.
15909 ac_log="
15910 This file was extended by $as_me, which was
15911 generated by GNU Autoconf 2.69. Invocation command line was
15912
15913 CONFIG_FILES = $CONFIG_FILES
15914 CONFIG_HEADERS = $CONFIG_HEADERS
15915 CONFIG_LINKS = $CONFIG_LINKS
15916 CONFIG_COMMANDS = $CONFIG_COMMANDS
15917 $ $0 $@
15918
15919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15920 "
15921
15922 _ACEOF
15923
15924 case $ac_config_files in *"
15925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15926 esac
15927
15928
15929
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 # Files that config.status was made for.
15932 config_files="$ac_config_files"
15933
15934 _ACEOF
15935
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 ac_cs_usage="\
15938 \`$as_me' instantiates files and other configuration actions
15939 from templates according to the current configuration. Unless the files
15940 and actions are specified as TAGs, all are instantiated by default.
15941
15942 Usage: $0 [OPTION]... [TAG]...
15943
15944 -h, --help print this help, then exit
15945 -V, --version print version number and configuration settings, then exit
15946 --config print configuration, then exit
15947 -q, --quiet, --silent
15948 do not print progress messages
15949 -d, --debug don't remove temporary files
15950 --recheck update $as_me by reconfiguring in the same conditions
15951 --file=FILE[:TEMPLATE]
15952 instantiate the configuration file FILE
15953
15954 Configuration files:
15955 $config_files
15956
15957 Report bugs to the package provider."
15958
15959 _ACEOF
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15962 ac_cs_version="\\
15963 config.status
15964 configured by $0, generated by GNU Autoconf 2.69,
15965 with options \\"\$ac_cs_config\\"
15966
15967 Copyright (C) 2012 Free Software Foundation, Inc.
15968 This config.status script is free software; the Free Software Foundation
15969 gives unlimited permission to copy, distribute and modify it."
15970
15971 ac_pwd='$ac_pwd'
15972 srcdir='$srcdir'
15973 INSTALL='$INSTALL'
15974 AWK='$AWK'
15975 test -n "\$AWK" || AWK=awk
15976 _ACEOF
15977
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 # The default lists apply if the user does not specify any file.
15980 ac_need_defaults=:
15981 while test $# != 0
15982 do
15983 case $1 in
15984 --*=?*)
15985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15987 ac_shift=:
15988 ;;
15989 --*=)
15990 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15991 ac_optarg=
15992 ac_shift=:
15993 ;;
15994 *)
15995 ac_option=$1
15996 ac_optarg=$2
15997 ac_shift=shift
15998 ;;
15999 esac
16000
16001 case $ac_option in
16002 # Handling of the options.
16003 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16004 ac_cs_recheck=: ;;
16005 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16006 $as_echo "$ac_cs_version"; exit ;;
16007 --config | --confi | --conf | --con | --co | --c )
16008 $as_echo "$ac_cs_config"; exit ;;
16009 --debug | --debu | --deb | --de | --d | -d )
16010 debug=: ;;
16011 --file | --fil | --fi | --f )
16012 $ac_shift
16013 case $ac_optarg in
16014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16015 '') as_fn_error $? "missing file argument" ;;
16016 esac
16017 as_fn_append CONFIG_FILES " '$ac_optarg'"
16018 ac_need_defaults=false;;
16019 --he | --h | --help | --hel | -h )
16020 $as_echo "$ac_cs_usage"; exit ;;
16021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16022 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16023 ac_cs_silent=: ;;
16024
16025 # This is an error.
16026 -*) as_fn_error $? "unrecognized option: \`$1'
16027 Try \`$0 --help' for more information." ;;
16028
16029 *) as_fn_append ac_config_targets " $1"
16030 ac_need_defaults=false ;;
16031
16032 esac
16033 shift
16034 done
16035
16036 ac_configure_extra_args=
16037
16038 if $ac_cs_silent; then
16039 exec 6>/dev/null
16040 ac_configure_extra_args="$ac_configure_extra_args --silent"
16041 fi
16042
16043 _ACEOF
16044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045 if \$ac_cs_recheck; then
16046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16047 shift
16048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16049 CONFIG_SHELL='$SHELL'
16050 export CONFIG_SHELL
16051 exec "\$@"
16052 fi
16053
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 exec 5>>config.log
16057 {
16058 echo
16059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16060 ## Running $as_me. ##
16061 _ASBOX
16062 $as_echo "$ac_log"
16063 } >&5
16064
16065 _ACEOF
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 #
16068 # INIT-COMMANDS
16069 #
16070 extrasub_build="$extrasub_build"
16071 extrasub_host="$extrasub_host"
16072 extrasub_target="$extrasub_target"
16073
16074 _ACEOF
16075
16076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16077
16078 # Handling of arguments.
16079 for ac_config_target in $ac_config_targets
16080 do
16081 case $ac_config_target in
16082 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16083
16084 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16085 esac
16086 done
16087
16088
16089 # If the user did not use the arguments to specify the items to instantiate,
16090 # then the envvar interface is used. Set only those that are not.
16091 # We use the long form for the default assignment because of an extremely
16092 # bizarre bug on SunOS 4.1.3.
16093 if $ac_need_defaults; then
16094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16095 fi
16096
16097 # Have a temporary directory for convenience. Make it in the build tree
16098 # simply because there is no reason against having it here, and in addition,
16099 # creating and moving files from /tmp can sometimes cause problems.
16100 # Hook for its removal unless debugging.
16101 # Note that there is a small window in which the directory will not be cleaned:
16102 # after its creation but before its name has been assigned to `$tmp'.
16103 $debug ||
16104 {
16105 tmp= ac_tmp=
16106 trap 'exit_status=$?
16107 : "${ac_tmp:=$tmp}"
16108 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16109 ' 0
16110 trap 'as_fn_exit 1' 1 2 13 15
16111 }
16112 # Create a (secure) tmp directory for tmp files.
16113
16114 {
16115 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16116 test -d "$tmp"
16117 } ||
16118 {
16119 tmp=./conf$$-$RANDOM
16120 (umask 077 && mkdir "$tmp")
16121 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16122 ac_tmp=$tmp
16123
16124 # Set up the scripts for CONFIG_FILES section.
16125 # No need to generate them if there are no CONFIG_FILES.
16126 # This happens for instance with `./config.status config.h'.
16127 if test -n "$CONFIG_FILES"; then
16128
16129 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16130 ac_cs_awk_getline=:
16131 ac_cs_awk_pipe_init=
16132 ac_cs_awk_read_file='
16133 while ((getline aline < (F[key])) > 0)
16134 print(aline)
16135 close(F[key])'
16136 ac_cs_awk_pipe_fini=
16137 else
16138 ac_cs_awk_getline=false
16139 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16140 ac_cs_awk_read_file='
16141 print "|#_!!_#|"
16142 print "cat " F[key] " &&"
16143 '$ac_cs_awk_pipe_init
16144 # The final `:' finishes the AND list.
16145 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16146 fi
16147 ac_cr=`echo X | tr X '\015'`
16148 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16149 # But we know of no other shell where ac_cr would be empty at this
16150 # point, so we can use a bashism as a fallback.
16151 if test "x$ac_cr" = x; then
16152 eval ac_cr=\$\'\\r\'
16153 fi
16154 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16155 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16156 ac_cs_awk_cr='\\r'
16157 else
16158 ac_cs_awk_cr=$ac_cr
16159 fi
16160
16161 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16162 _ACEOF
16163
16164 # Create commands to substitute file output variables.
16165 {
16166 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16167 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16168 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16169 echo "_ACAWK" &&
16170 echo "_ACEOF"
16171 } >conf$$files.sh &&
16172 . ./conf$$files.sh ||
16173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16174 rm -f conf$$files.sh
16175
16176 {
16177 echo "cat >conf$$subs.awk <<_ACEOF" &&
16178 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16179 echo "_ACEOF"
16180 } >conf$$subs.sh ||
16181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16182 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16183 ac_delim='%!_!# '
16184 for ac_last_try in false false false false false :; do
16185 . ./conf$$subs.sh ||
16186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16187
16188 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16189 if test $ac_delim_n = $ac_delim_num; then
16190 break
16191 elif $ac_last_try; then
16192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16193 else
16194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16195 fi
16196 done
16197 rm -f conf$$subs.sh
16198
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16201 _ACEOF
16202 sed -n '
16203 h
16204 s/^/S["/; s/!.*/"]=/
16205 p
16206 g
16207 s/^[^!]*!//
16208 :repl
16209 t repl
16210 s/'"$ac_delim"'$//
16211 t delim
16212 :nl
16213 h
16214 s/\(.\{148\}\)..*/\1/
16215 t more1
16216 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16217 p
16218 n
16219 b repl
16220 :more1
16221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16222 p
16223 g
16224 s/.\{148\}//
16225 t nl
16226 :delim
16227 h
16228 s/\(.\{148\}\)..*/\1/
16229 t more2
16230 s/["\\]/\\&/g; s/^/"/; s/$/"/
16231 p
16232 b
16233 :more2
16234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16235 p
16236 g
16237 s/.\{148\}//
16238 t delim
16239 ' <conf$$subs.awk | sed '
16240 /^[^""]/{
16241 N
16242 s/\n//
16243 }
16244 ' >>$CONFIG_STATUS || ac_write_fail=1
16245 rm -f conf$$subs.awk
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 _ACAWK
16248 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16249 for (key in S) S_is_set[key] = 1
16250 FS = ""
16251 \$ac_cs_awk_pipe_init
16252 }
16253 {
16254 line = $ 0
16255 nfields = split(line, field, "@")
16256 substed = 0
16257 len = length(field[1])
16258 for (i = 2; i < nfields; i++) {
16259 key = field[i]
16260 keylen = length(key)
16261 if (S_is_set[key]) {
16262 value = S[key]
16263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16264 len += length(value) + length(field[++i])
16265 substed = 1
16266 } else
16267 len += 1 + keylen
16268 }
16269 if (nfields == 3 && !substed) {
16270 key = field[2]
16271 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16272 \$ac_cs_awk_read_file
16273 next
16274 }
16275 }
16276 print line
16277 }
16278 \$ac_cs_awk_pipe_fini
16279 _ACAWK
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16284 else
16285 cat
16286 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16287 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16288 _ACEOF
16289
16290 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16291 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16292 # trailing colons and then remove the whole line if VPATH becomes empty
16293 # (actually we leave an empty line to preserve line numbers).
16294 if test "x$srcdir" = x.; then
16295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16296 h
16297 s///
16298 s/^/:/
16299 s/[ ]*$/:/
16300 s/:\$(srcdir):/:/g
16301 s/:\${srcdir}:/:/g
16302 s/:@srcdir@:/:/g
16303 s/^:*//
16304 s/:*$//
16305 x
16306 s/\(=[ ]*\).*/\1/
16307 G
16308 s/\n//
16309 s/^[^=]*=[ ]*$//
16310 }'
16311 fi
16312
16313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16314 fi # test -n "$CONFIG_FILES"
16315
16316
16317 eval set X " :F $CONFIG_FILES "
16318 shift
16319 for ac_tag
16320 do
16321 case $ac_tag in
16322 :[FHLC]) ac_mode=$ac_tag; continue;;
16323 esac
16324 case $ac_mode$ac_tag in
16325 :[FHL]*:*);;
16326 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16327 :[FH]-) ac_tag=-:-;;
16328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16329 esac
16330 ac_save_IFS=$IFS
16331 IFS=:
16332 set x $ac_tag
16333 IFS=$ac_save_IFS
16334 shift
16335 ac_file=$1
16336 shift
16337
16338 case $ac_mode in
16339 :L) ac_source=$1;;
16340 :[FH])
16341 ac_file_inputs=
16342 for ac_f
16343 do
16344 case $ac_f in
16345 -) ac_f="$ac_tmp/stdin";;
16346 *) # Look for the file first in the build tree, then in the source tree
16347 # (if the path is not absolute). The absolute path cannot be DOS-style,
16348 # because $ac_f cannot contain `:'.
16349 test -f "$ac_f" ||
16350 case $ac_f in
16351 [\\/$]*) false;;
16352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16353 esac ||
16354 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16355 esac
16356 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16357 as_fn_append ac_file_inputs " '$ac_f'"
16358 done
16359
16360 # Let's still pretend it is `configure' which instantiates (i.e., don't
16361 # use $as_me), people would be surprised to read:
16362 # /* config.h. Generated by config.status. */
16363 configure_input='Generated from '`
16364 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16365 `' by configure.'
16366 if test x"$ac_file" != x-; then
16367 configure_input="$ac_file. $configure_input"
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16369 $as_echo "$as_me: creating $ac_file" >&6;}
16370 fi
16371 # Neutralize special characters interpreted by sed in replacement strings.
16372 case $configure_input in #(
16373 *\&* | *\|* | *\\* )
16374 ac_sed_conf_input=`$as_echo "$configure_input" |
16375 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16376 *) ac_sed_conf_input=$configure_input;;
16377 esac
16378
16379 case $ac_tag in
16380 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16382 esac
16383 ;;
16384 esac
16385
16386 ac_dir=`$as_dirname -- "$ac_file" ||
16387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16388 X"$ac_file" : 'X\(//\)[^/]' \| \
16389 X"$ac_file" : 'X\(//\)$' \| \
16390 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16391 $as_echo X"$ac_file" |
16392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16393 s//\1/
16394 q
16395 }
16396 /^X\(\/\/\)[^/].*/{
16397 s//\1/
16398 q
16399 }
16400 /^X\(\/\/\)$/{
16401 s//\1/
16402 q
16403 }
16404 /^X\(\/\).*/{
16405 s//\1/
16406 q
16407 }
16408 s/.*/./; q'`
16409 as_dir="$ac_dir"; as_fn_mkdir_p
16410 ac_builddir=.
16411
16412 case "$ac_dir" in
16413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414 *)
16415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16416 # A ".." for each directory in $ac_dir_suffix.
16417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16418 case $ac_top_builddir_sub in
16419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16421 esac ;;
16422 esac
16423 ac_abs_top_builddir=$ac_pwd
16424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16425 # for backward compatibility:
16426 ac_top_builddir=$ac_top_build_prefix
16427
16428 case $srcdir in
16429 .) # We are building in place.
16430 ac_srcdir=.
16431 ac_top_srcdir=$ac_top_builddir_sub
16432 ac_abs_top_srcdir=$ac_pwd ;;
16433 [\\/]* | ?:[\\/]* ) # Absolute name.
16434 ac_srcdir=$srcdir$ac_dir_suffix;
16435 ac_top_srcdir=$srcdir
16436 ac_abs_top_srcdir=$srcdir ;;
16437 *) # Relative name.
16438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16439 ac_top_srcdir=$ac_top_build_prefix$srcdir
16440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16441 esac
16442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16443
16444
16445 case $ac_mode in
16446 :F)
16447 #
16448 # CONFIG_FILE
16449 #
16450
16451 case $INSTALL in
16452 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16453 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16454 esac
16455 _ACEOF
16456
16457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16458 # If the template does not know about datarootdir, expand it.
16459 # FIXME: This hack should be removed a few years after 2.60.
16460 ac_datarootdir_hack=; ac_datarootdir_seen=
16461 ac_sed_dataroot='
16462 /datarootdir/ {
16463 p
16464 q
16465 }
16466 /@datadir@/p
16467 /@docdir@/p
16468 /@infodir@/p
16469 /@localedir@/p
16470 /@mandir@/p'
16471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16472 *datarootdir*) ac_datarootdir_seen=yes;;
16473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16476 _ACEOF
16477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16478 ac_datarootdir_hack='
16479 s&@datadir@&$datadir&g
16480 s&@docdir@&$docdir&g
16481 s&@infodir@&$infodir&g
16482 s&@localedir@&$localedir&g
16483 s&@mandir@&$mandir&g
16484 s&\\\${datarootdir}&$datarootdir&g' ;;
16485 esac
16486 _ACEOF
16487
16488 # Neutralize VPATH when `$srcdir' = `.'.
16489 # Shell code in configure.ac might set extrasub.
16490 # FIXME: do we really want to maintain this feature?
16491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16492 ac_sed_extra="$ac_vpsub
16493 $extrasub
16494 _ACEOF
16495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496 :t
16497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16498 s|@configure_input@|$ac_sed_conf_input|;t t
16499 s&@top_builddir@&$ac_top_builddir_sub&;t t
16500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16501 s&@srcdir@&$ac_srcdir&;t t
16502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16503 s&@top_srcdir@&$ac_top_srcdir&;t t
16504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16505 s&@builddir@&$ac_builddir&;t t
16506 s&@abs_builddir@&$ac_abs_builddir&;t t
16507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16508 s&@INSTALL@&$ac_INSTALL&;t t
16509 $ac_datarootdir_hack
16510 "
16511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16512 if $ac_cs_awk_getline; then
16513 $AWK -f "$ac_tmp/subs.awk"
16514 else
16515 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16516 fi \
16517 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16518
16519 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16520 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16521 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16522 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16524 which seems to be undefined. Please make sure it is defined" >&5
16525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16526 which seems to be undefined. Please make sure it is defined" >&2;}
16527
16528 rm -f "$ac_tmp/stdin"
16529 case $ac_file in
16530 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16531 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16532 esac \
16533 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16534 ;;
16535
16536
16537
16538 esac
16539
16540
16541 case $ac_file$ac_mode in
16542 "Makefile":F) sed "$extrasub_build" Makefile |
16543 sed "$extrasub_host" |
16544 sed "$extrasub_target" > mf$$
16545 mv -f mf$$ Makefile ;;
16546
16547 esac
16548 done # for ac_tag
16549
16550
16551 as_fn_exit 0
16552 _ACEOF
16553 ac_clean_files=$ac_clean_files_save
16554
16555 test $ac_write_fail = 0 ||
16556 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16557
16558
16559 # configure is writing to config.log, and then calls config.status.
16560 # config.status does its own redirection, appending to config.log.
16561 # Unfortunately, on DOS this fails, as config.log is still kept open
16562 # by configure, so config.status won't be able to write to it; its
16563 # output is simply discarded. So we exec the FD to /dev/null,
16564 # effectively closing config.log, so it can be properly (re)opened and
16565 # appended to by config.status. When coming back to configure, we
16566 # need to make the FD available again.
16567 if test "$no_create" != yes; then
16568 ac_cs_success=:
16569 ac_config_status_args=
16570 test "$silent" = yes &&
16571 ac_config_status_args="$ac_config_status_args --quiet"
16572 exec 5>/dev/null
16573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16574 exec 5>>config.log
16575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16576 # would make configure fail if this is the last instruction.
16577 $ac_cs_success || as_fn_exit 1
16578 fi
16579 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16581 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16582 fi
16583
16584