Bump to autoconf 2.69 and automake 1.15.1
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 READELF
620 OBJDUMP
621 OBJCOPY
622 WINDMC
623 WINDRES
624 STRIP
625 RANLIB
626 NM
627 LIPO
628 LD
629 DLLTOOL
630 AS
631 AR
632 RUNTEST
633 EXPECT
634 MAKEINFO
635 FLEX
636 LEX
637 M4
638 BISON
639 YACC
640 WINDRES_FOR_BUILD
641 WINDMC_FOR_BUILD
642 RANLIB_FOR_BUILD
643 NM_FOR_BUILD
644 LD_FOR_BUILD
645 LDFLAGS_FOR_BUILD
646 GOC_FOR_BUILD
647 GFORTRAN_FOR_BUILD
648 DLLTOOL_FOR_BUILD
649 CXX_FOR_BUILD
650 CXXFLAGS_FOR_BUILD
651 CFLAGS_FOR_BUILD
652 CC_FOR_BUILD
653 AS_FOR_BUILD
654 AR_FOR_BUILD
655 target_configdirs
656 configdirs
657 build_configdirs
658 INSTALL_GDB_TK
659 GDB_TK
660 CONFIGURE_GDB_TK
661 build_tooldir
662 tooldir
663 GCC_SHLIB_SUBDIR
664 RPATH_ENVVAR
665 target_configargs
666 host_configargs
667 build_configargs
668 BUILD_CONFIG
669 LDFLAGS_FOR_TARGET
670 CXXFLAGS_FOR_TARGET
671 CFLAGS_FOR_TARGET
672 DEBUG_PREFIX_CFLAGS_FOR_TARGET
673 SYSROOT_CFLAGS_FOR_TARGET
674 get_gcc_base_ver
675 extra_host_zlib_configure_flags
676 extra_host_libiberty_configure_flags
677 stage1_languages
678 host_shared
679 extra_linker_plugin_flags
680 extra_linker_plugin_configure_flags
681 islinc
682 isllibs
683 poststage1_ldflags
684 poststage1_libs
685 stage1_ldflags
686 stage1_libs
687 extra_isl_gmp_configure_flags
688 extra_mpc_mpfr_configure_flags
689 extra_mpc_gmp_configure_flags
690 extra_mpfr_configure_flags
691 gmpinc
692 gmplibs
693 do_compare
694 GNATMAKE
695 GNATBIND
696 ac_ct_CXX
697 CXXFLAGS
698 CXX
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 extra_liboffloadmic_configure_flags
707 target_subdir
708 host_subdir
709 build_subdir
710 build_libsubdir
711 AWK
712 SED
713 LN_S
714 LN
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_os
719 target_vendor
720 target_cpu
721 target
722 host_os
723 host_vendor
724 host_cpu
725 host
726 target_noncanonical
727 host_noncanonical
728 build_noncanonical
729 build_os
730 build_vendor
731 build_cpu
732 build
733 TOPLEVEL_CONFIGURE_ARGUMENTS
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='serialization_dependencies
773 host_makefile_frag
774 target_makefile_frag
775 alphaieee_frag
776 ospace_frag'
777 ac_user_opts='
778 enable_option_checking
779 with_build_libsubdir
780 with_system_zlib
781 enable_as_accelerator_for
782 enable_offload_targets
783 enable_gold
784 enable_ld
785 enable_compressed_debug_sections
786 enable_libquadmath
787 enable_libquadmath_support
788 enable_libada
789 enable_libssp
790 enable_libstdcxx
791 enable_liboffloadmic
792 enable_bootstrap
793 with_mpc
794 with_mpc_include
795 with_mpc_lib
796 with_mpfr_dir
797 with_mpfr
798 with_mpfr_include
799 with_mpfr_lib
800 with_gmp_dir
801 with_gmp
802 with_gmp_include
803 with_gmp_lib
804 with_stage1_libs
805 with_stage1_ldflags
806 with_boot_libs
807 with_boot_ldflags
808 with_isl
809 with_isl_include
810 with_isl_lib
811 enable_isl_version_check
812 enable_lto
813 enable_linker_plugin_configure_flags
814 enable_linker_plugin_flags
815 enable_host_shared
816 enable_stage1_languages
817 enable_objc_gc
818 with_target_bdw_gc
819 with_target_bdw_gc_include
820 with_target_bdw_gc_lib
821 with_gcc_major_version_only
822 with_build_sysroot
823 with_debug_prefix_map
824 with_build_config
825 enable_vtable_verify
826 enable_serial_configure
827 with_build_time_tools
828 enable_maintainer_mode
829 enable_stage1_checking
830 enable_werror
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 build_configargs
844 host_configargs
845 target_configargs
846 AR
847 AS
848 DLLTOOL
849 LD
850 LIPO
851 NM
852 RANLIB
853 STRIP
854 WINDRES
855 WINDMC
856 OBJCOPY
857 OBJDUMP
858 READELF
859 CC_FOR_TARGET
860 CXX_FOR_TARGET
861 GCC_FOR_TARGET
862 GFORTRAN_FOR_TARGET
863 GOC_FOR_TARGET
864 AR_FOR_TARGET
865 AS_FOR_TARGET
866 DLLTOOL_FOR_TARGET
867 LD_FOR_TARGET
868 LIPO_FOR_TARGET
869 NM_FOR_TARGET
870 OBJCOPY_FOR_TARGET
871 OBJDUMP_FOR_TARGET
872 RANLIB_FOR_TARGET
873 READELF_FOR_TARGET
874 STRIP_FOR_TARGET
875 WINDRES_FOR_TARGET
876 WINDMC_FOR_TARGET'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 # Accept the important Cygnus configure options, so we can diagnose typos.
945
946 case $ac_dashdash$ac_option in
947 --)
948 ac_dashdash=yes ;;
949
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
954
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
959
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
966
967 --config-cache | -C)
968 cache_file=config.cache ;;
969
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
974
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
981
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
997
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1002
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1007
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264 ;;
1265
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1381 fi
1382 else
1383 ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 case $srcdir in
1404 *" "*)
1405 as_fn_error $? "path to source, $srcdir, contains spaces"
1406 ;;
1407 esac
1408 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1409
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures this package to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494
1495 cat <<\_ACEOF
1496
1497 Optional Features:
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --enable-as-accelerator-for=ARG
1502 build as offload target compiler. Specify offload
1503 host triple by ARG
1504 --enable-offload-targets=LIST
1505 enable offloading to devices from comma-separated
1506 LIST of TARGET[=DIR]. Use optional path to find
1507 offload target compiler during the build
1508 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1509 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1510 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1511 Enable compressed debug sections for gas, gold or ld
1512 by default
1513 --disable-libquadmath do not build libquadmath directory
1514 --disable-libquadmath-support
1515 disable libquadmath support for Fortran
1516 --enable-libada build libada directory
1517 --enable-libssp build libssp directory
1518 --disable-libstdcxx do not build libstdc++-v3 directory
1519 --enable-liboffloadmic=ARG
1520 build liboffloadmic [ARG={no,host,target}]
1521 --enable-bootstrap enable bootstrapping [yes if native build]
1522 --disable-isl-version-check
1523 disable check for isl version
1524 --enable-lto enable link time optimization support
1525 --enable-linker-plugin-configure-flags=FLAGS
1526 additional flags for configuring linker plugins
1527 [none]
1528 --enable-linker-plugin-flags=FLAGS
1529 additional flags for configuring and building linker
1530 plugins [none]
1531 --enable-host-shared build host code as shared libraries
1532 --enable-stage1-languages[=all]
1533 choose additional languages to build during stage1.
1534 Mostly useful for compiler development
1535 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1536 Objective-C runtime
1537 --enable-vtable-verify Enable vtable verification feature
1538 --enable-serial-[{host,target,build}-]configure
1539 force sequential configuration of sub-packages for
1540 the host, target or build machine, or all
1541 sub-packages
1542 --enable-maintainer-mode
1543 enable make rules and dependencies not useful (and
1544 sometimes confusing) to the casual installer
1545 --enable-stage1-checking[=all]
1546 choose additional checking for stage1 of the
1547 compiler
1548 --enable-werror enable -Werror in bootstrap stage2 and later
1549
1550 Optional Packages:
1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1553 --with-build-libsubdir=DIR Directory where to find libraries for build system
1554 --with-system-zlib use installed libz
1555 --with-mpc=PATH specify prefix directory for installed MPC package.
1556 Equivalent to --with-mpc-include=PATH/include plus
1557 --with-mpc-lib=PATH/lib
1558 --with-mpc-include=PATH specify directory for installed MPC include files
1559 --with-mpc-lib=PATH specify directory for the installed MPC library
1560 --with-mpfr-dir=PATH this option has been REMOVED
1561 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1562 Equivalent to --with-mpfr-include=PATH/include plus
1563 --with-mpfr-lib=PATH/lib
1564 --with-mpfr-include=PATH
1565 specify directory for installed MPFR include files
1566 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1567 --with-gmp-dir=PATH this option has been REMOVED
1568 --with-gmp=PATH specify prefix directory for the installed GMP
1569 package. Equivalent to
1570 --with-gmp-include=PATH/include plus
1571 --with-gmp-lib=PATH/lib
1572 --with-gmp-include=PATH specify directory for installed GMP include files
1573 --with-gmp-lib=PATH specify directory for the installed GMP library
1574 --with-stage1-libs=LIBS libraries for stage1
1575 --with-stage1-ldflags=FLAGS
1576 linker flags for stage1
1577 --with-boot-libs=LIBS libraries for stage2 and later
1578 --with-boot-ldflags=FLAGS
1579 linker flags for stage2 and later
1580 --with-isl=PATH Specify prefix directory for the installed isl
1581 package. Equivalent to
1582 --with-isl-include=PATH/include plus
1583 --with-isl-lib=PATH/lib
1584 --with-isl-include=PATH Specify directory for installed isl include files
1585 --with-isl-lib=PATH Specify the directory for the installed isl library
1586 --with-target-bdw-gc=PATHLIST
1587 specify prefix directory for installed bdw-gc
1588 package. Equivalent to
1589 --with-target-bdw-gc-include=PATH/include plus
1590 --with-target-bdw-gc-lib=PATH/lib
1591 --with-target-bdw-gc-include=PATHLIST
1592 specify directories for installed bdw-gc include
1593 files
1594 --with-target-bdw-gc-lib=PATHLIST
1595 specify directories for installed bdw-gc library
1596 --with-gcc-major-version-only
1597 use only GCC major number in filesystem paths
1598 --with-build-sysroot=SYSROOT
1599 use sysroot as the system root during the build
1600 --with-debug-prefix-map='A=B C=D ...'
1601 map A to B, C to D ... in debug information
1602 --with-build-config='NAME NAME2...'
1603 use config/NAME.mk build configuration
1604 --with-build-time-tools=PATH
1605 use given path to find target tools during the build
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
1617 build_configargs
1618 additional configure arguments for build directories
1619 host_configargs
1620 additional configure arguments for host directories
1621 target_configargs
1622 additional configure arguments for target directories
1623 AR AR for the host
1624 AS AS for the host
1625 DLLTOOL DLLTOOL for the host
1626 LD LD for the host
1627 LIPO LIPO for the host
1628 NM NM for the host
1629 RANLIB RANLIB for the host
1630 STRIP STRIP for the host
1631 WINDRES WINDRES for the host
1632 WINDMC WINDMC for the host
1633 OBJCOPY OBJCOPY for the host
1634 OBJDUMP OBJDUMP for the host
1635 READELF READELF for the host
1636 CC_FOR_TARGET
1637 CC for the target
1638 CXX_FOR_TARGET
1639 CXX for the target
1640 GCC_FOR_TARGET
1641 GCC for the target
1642 GFORTRAN_FOR_TARGET
1643 GFORTRAN for the target
1644 GOC_FOR_TARGET
1645 GOC for the target
1646 AR_FOR_TARGET
1647 AR for the target
1648 AS_FOR_TARGET
1649 AS for the target
1650 DLLTOOL_FOR_TARGET
1651 DLLTOOL for the target
1652 LD_FOR_TARGET
1653 LD for the target
1654 LIPO_FOR_TARGET
1655 LIPO for the target
1656 NM_FOR_TARGET
1657 NM for the target
1658 OBJCOPY_FOR_TARGET
1659 OBJCOPY for the target
1660 OBJDUMP_FOR_TARGET
1661 OBJDUMP for the target
1662 RANLIB_FOR_TARGET
1663 RANLIB for the target
1664 READELF_FOR_TARGET
1665 READELF for the target
1666 STRIP_FOR_TARGET
1667 STRIP for the target
1668 WINDRES_FOR_TARGET
1669 WINDRES for the target
1670 WINDMC_FOR_TARGET
1671 WINDMC for the target
1672
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1675
1676 Report bugs to the package provider.
1677 _ACEOF
1678 ac_status=$?
1679 fi
1680
1681 if test "$ac_init_help" = "recursive"; then
1682 # If there are subdirs, report their specific --help.
1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684 test -d "$ac_dir" ||
1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686 continue
1687 ac_builddir=.
1688
1689 case "$ac_dir" in
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *)
1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693 # A ".." for each directory in $ac_dir_suffix.
1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695 case $ac_top_builddir_sub in
1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 esac ;;
1699 esac
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1704
1705 case $srcdir in
1706 .) # We are building in place.
1707 ac_srcdir=.
1708 ac_top_srcdir=$ac_top_builddir_sub
1709 ac_abs_top_srcdir=$ac_pwd ;;
1710 [\\/]* | ?:[\\/]* ) # Absolute name.
1711 ac_srcdir=$srcdir$ac_dir_suffix;
1712 ac_top_srcdir=$srcdir
1713 ac_abs_top_srcdir=$srcdir ;;
1714 *) # Relative name.
1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716 ac_top_srcdir=$ac_top_build_prefix$srcdir
1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 esac
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721 cd "$ac_dir" || { ac_status=$?; continue; }
1722 # Check for guested configure.
1723 if test -f "$ac_srcdir/configure.gnu"; then
1724 echo &&
1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726 elif test -f "$ac_srcdir/configure"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure" --help=recursive
1729 else
1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 fi || ac_status=$?
1732 cd "$ac_pwd" || { ac_status=$?; break; }
1733 done
1734 fi
1735
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1738 cat <<\_ACEOF
1739 configure
1740 generated by GNU Autoconf 2.69
1741
1742 Copyright (C) 2012 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1745 _ACEOF
1746 exit
1747 fi
1748
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1752
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_cxx_try_compile
1828
1829 # ac_fn_cxx_try_link LINENO
1830 # -------------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_link ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864 fi
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_cxx_try_link
1874
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_link ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_link
1920 cat >config.log <<_ACEOF
1921 This file contains any messages produced by compilers while
1922 running configure, to aid debugging if configure makes a mistake.
1923
1924 It was created by $as_me, which was
1925 generated by GNU Autoconf 2.69. Invocation command line was
1926
1927 $ $0 $@
1928
1929 _ACEOF
1930 exec 5>>config.log
1931 {
1932 cat <<_ASUNAME
1933 ## --------- ##
1934 ## Platform. ##
1935 ## --------- ##
1936
1937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954 _ASUNAME
1955
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 $as_echo "PATH: $as_dir"
1962 done
1963 IFS=$as_save_IFS
1964
1965 } >&5
1966
1967 cat >&5 <<_ACEOF
1968
1969
1970 ## ----------- ##
1971 ## Core tests. ##
1972 ## ----------- ##
1973
1974 _ACEOF
1975
1976
1977 # Keep a trace of the command line.
1978 # Strip out --no-create and --no-recursion so they do not pile up.
1979 # Strip out --silent because we don't want to record it for future runs.
1980 # Also quote any args containing shell meta-characters.
1981 # Make two passes to allow for proper duplicate-argument suppression.
1982 ac_configure_args=
1983 ac_configure_args0=
1984 ac_configure_args1=
1985 ac_must_keep_next=false
1986 for ac_pass in 1 2
1987 do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 case $ac_pass in
1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 2)
2001 as_fn_append ac_configure_args1 " '$ac_arg'"
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
2017 as_fn_append ac_configure_args " '$ac_arg'"
2018 ;;
2019 esac
2020 done
2021 done
2022 { ac_configure_args0=; unset ac_configure_args0;}
2023 { ac_configure_args1=; unset ac_configure_args1;}
2024
2025 # When interrupted or exit'd, cleanup temporary files, and complete
2026 # config.log. We remove comments because anyway the quotes in there
2027 # would cause problems or look ugly.
2028 # WARNING: Use '\'' to represent an apostrophe within the trap.
2029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030 trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
2035 $as_echo "## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##"
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040 (
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068 )
2069 echo
2070
2071 $as_echo "## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##"
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 $as_echo "## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##"
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
2102 $as_echo "## ----------- ##
2103 ## confdefs.h. ##
2104 ## ----------- ##"
2105 echo
2106 cat confdefs.h
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2116 ' 0
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119 done
2120 ac_signal=0
2121
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2124
2125 $as_echo "/* confdefs.h */" > confdefs.h
2126
2127 # Predefined preprocessor variables.
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2151 _ACEOF
2152
2153
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171 fi
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173 do
2174 test "x$ac_site_file" = xNONE && continue
2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 as_fn_error $? "failed to load site script $ac_site_file
2183 See \`config.log' for more details" "$LINENO" 5; }
2184 fi
2185 done
2186
2187 if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192 $as_echo "$as_me: loading cache $cache_file" >&6;}
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2197 fi
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200 $as_echo "$as_me: creating cache $cache_file" >&6;}
2201 >$cache_file
2202 fi
2203
2204 # Check that the precious variables saved in the cache have kept the same
2205 # value.
2206 ac_cache_corrupted=false
2207 for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,set)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251 esac
2252 fi
2253 done
2254 if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2260 fi
2261 ## -------------------- ##
2262 ## Main body of script. ##
2263 ## -------------------- ##
2264
2265 ac_ext=c
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279 progname=$0
2280 # if PWD already has a value, it is probably wrong.
2281 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2282
2283 # Export original configure arguments for use by sub-configures.
2284 # Quote arguments with shell meta charatcers.
2285 TOPLEVEL_CONFIGURE_ARGUMENTS=
2286 set -- "$progname" "$@"
2287 for ac_arg
2288 do
2289 case "$ac_arg" in
2290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2292 # if the argument is of the form -foo=baz, quote the baz part only
2293 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2294 *) ;;
2295 esac
2296 # Add the quoted argument to the list.
2297 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2298 done
2299 if test "$silent" = yes; then
2300 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2301 fi
2302 # Remove the initial space we just introduced and, as these will be
2303 # expanded by make, quote '$'.
2304 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2305
2306
2307 # Find the build, host, and target systems.
2308 ac_aux_dir=
2309 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2322 fi
2323 done
2324 if test -z "$ac_aux_dir"; then
2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2326 fi
2327
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
2336
2337 # Make sure we can run config.sub.
2338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2339 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2340
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2342 $as_echo_n "checking build system type... " >&6; }
2343 if ${ac_cv_build+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 ac_build_alias=$build_alias
2347 test "x$ac_build_alias" = x &&
2348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349 test "x$ac_build_alias" = x &&
2350 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2351 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2353
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2356 $as_echo "$ac_cv_build" >&6; }
2357 case $ac_cv_build in
2358 *-*-*) ;;
2359 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2360 esac
2361 build=$ac_cv_build
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_build
2364 shift
2365 build_cpu=$1
2366 build_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 build_os=$*
2371 IFS=$ac_save_IFS
2372 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2373
2374
2375 case ${build_alias} in
2376 "") build_noncanonical=${build} ;;
2377 *) build_noncanonical=${build_alias} ;;
2378 esac
2379
2380
2381
2382 case ${host_alias} in
2383 "") host_noncanonical=${build_noncanonical} ;;
2384 *) host_noncanonical=${host_alias} ;;
2385 esac
2386
2387
2388
2389 case ${target_alias} in
2390 "") target_noncanonical=${host_noncanonical} ;;
2391 *) target_noncanonical=${target_alias} ;;
2392 esac
2393
2394
2395
2396
2397 test "$host_noncanonical" = "$target_noncanonical" &&
2398 test "$program_prefix$program_suffix$program_transform_name" = \
2399 NONENONEs,x,x, &&
2400 program_transform_name=s,y,y,
2401
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2403 $as_echo_n "checking host system type... " >&6; }
2404 if ${ac_cv_host+:} false; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 if test "x$host_alias" = x; then
2408 ac_cv_host=$ac_cv_build
2409 else
2410 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2412 fi
2413
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2416 $as_echo "$ac_cv_host" >&6; }
2417 case $ac_cv_host in
2418 *-*-*) ;;
2419 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2420 esac
2421 host=$ac_cv_host
2422 ac_save_IFS=$IFS; IFS='-'
2423 set x $ac_cv_host
2424 shift
2425 host_cpu=$1
2426 host_vendor=$2
2427 shift; shift
2428 # Remember, the first character of IFS is used to create $*,
2429 # except with old shells:
2430 host_os=$*
2431 IFS=$ac_save_IFS
2432 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2433
2434
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2436 $as_echo_n "checking target system type... " >&6; }
2437 if ${ac_cv_target+:} false; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test "x$target_alias" = x; then
2441 ac_cv_target=$ac_cv_host
2442 else
2443 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2445 fi
2446
2447 fi
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2449 $as_echo "$ac_cv_target" >&6; }
2450 case $ac_cv_target in
2451 *-*-*) ;;
2452 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2453 esac
2454 target=$ac_cv_target
2455 ac_save_IFS=$IFS; IFS='-'
2456 set x $ac_cv_target
2457 shift
2458 target_cpu=$1
2459 target_vendor=$2
2460 shift; shift
2461 # Remember, the first character of IFS is used to create $*,
2462 # except with old shells:
2463 target_os=$*
2464 IFS=$ac_save_IFS
2465 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2466
2467
2468 # The aliases save the names the user supplied, while $host etc.
2469 # will get canonicalized.
2470 test -n "$target_alias" &&
2471 test "$program_prefix$program_suffix$program_transform_name" = \
2472 NONENONEs,x,x, &&
2473 program_prefix=${target_alias}-
2474
2475 test "$program_prefix" != NONE &&
2476 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2477 # Use a double $ so make ignores it.
2478 test "$program_suffix" != NONE &&
2479 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2480 # Double any \ or $.
2481 # By default was `s,x,x', remove it if useless.
2482 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2483 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2484
2485
2486
2487 # Get 'install' or 'install-sh' and its variants.
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 # Reject install programs that cannot install multiple files.
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2504 if test -z "$INSTALL"; then
2505 if ${ac_cv_path_install+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
2547 fi
2548 fi
2549 done
2550 done
2551 ;;
2552 esac
2553
2554 done
2555 IFS=$as_save_IFS
2556
2557 rm -rf conftest.one conftest.two conftest.dir
2558
2559 fi
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571 $as_echo "$INSTALL" >&6; }
2572
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2582 $as_echo_n "checking whether ln works... " >&6; }
2583 if ${acx_cv_prog_LN+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 rm -f conftestdata_t
2587 echo >conftestdata_f
2588 if ln conftestdata_f conftestdata_t 2>/dev/null
2589 then
2590 acx_cv_prog_LN=ln
2591 else
2592 acx_cv_prog_LN=no
2593 fi
2594 rm -f conftestdata_f conftestdata_t
2595
2596 fi
2597 if test $acx_cv_prog_LN = no; then
2598 LN="cp"
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2600 $as_echo "no, using $LN" >&6; }
2601 else
2602 LN="$acx_cv_prog_LN"
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2604 $as_echo "yes" >&6; }
2605 fi
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2608 $as_echo_n "checking whether ln -s works... " >&6; }
2609 LN_S=$as_ln_s
2610 if test "$LN_S" = "ln -s"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2615 $as_echo "no, using $LN_S" >&6; }
2616 fi
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2619 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2620 if ${ac_cv_path_SED+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2624 for ac_i in 1 2 3 4 5 6 7; do
2625 ac_script="$ac_script$as_nl$ac_script"
2626 done
2627 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2628 { ac_script=; unset ac_script;}
2629 if test -z "$SED"; then
2630 ac_path_SED_found=false
2631 # Loop through the user's path and test for each of PROGNAME-LIST
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635 IFS=$as_save_IFS
2636 test -z "$as_dir" && as_dir=.
2637 for ac_prog in sed gsed; do
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2640 as_fn_executable_p "$ac_path_SED" || continue
2641 # Check for GNU ac_path_SED and select it if it is found.
2642 # Check for GNU $ac_path_SED
2643 case `"$ac_path_SED" --version 2>&1` in
2644 *GNU*)
2645 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2646 *)
2647 ac_count=0
2648 $as_echo_n 0123456789 >"conftest.in"
2649 while :
2650 do
2651 cat "conftest.in" "conftest.in" >"conftest.tmp"
2652 mv "conftest.tmp" "conftest.in"
2653 cp "conftest.in" "conftest.nl"
2654 $as_echo '' >> "conftest.nl"
2655 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2657 as_fn_arith $ac_count + 1 && ac_count=$as_val
2658 if test $ac_count -gt ${ac_path_SED_max-0}; then
2659 # Best one so far, save it but keep looking for a better one
2660 ac_cv_path_SED="$ac_path_SED"
2661 ac_path_SED_max=$ac_count
2662 fi
2663 # 10*(2^10) chars as input seems more than enough
2664 test $ac_count -gt 10 && break
2665 done
2666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2667 esac
2668
2669 $ac_path_SED_found && break 3
2670 done
2671 done
2672 done
2673 IFS=$as_save_IFS
2674 if test -z "$ac_cv_path_SED"; then
2675 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2676 fi
2677 else
2678 ac_cv_path_SED=$SED
2679 fi
2680
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2683 $as_echo "$ac_cv_path_SED" >&6; }
2684 SED="$ac_cv_path_SED"
2685 rm -f conftest.sed
2686
2687 for ac_prog in gawk mawk nawk awk
2688 do
2689 # Extract the first word of "$ac_prog", so it can be a program name with args.
2690 set dummy $ac_prog; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_AWK+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$AWK"; then
2697 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_AWK="$ac_prog"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 AWK=$ac_cv_prog_AWK
2717 if test -n "$AWK"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2719 $as_echo "$AWK" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725
2726 test -n "$AWK" && break
2727 done
2728
2729
2730 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2731
2732 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2733 # a relative path.
2734 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2735 INSTALL="${srcpwd}/install-sh -c"
2736 fi
2737
2738 # Set srcdir to "." if that's what it is.
2739 # This is important for multilib support.
2740 pwd=`${PWDCMD-pwd}`
2741 if test "${pwd}" = "${srcpwd}" ; then
2742 srcdir=.
2743 fi
2744
2745 topsrcdir=$srcpwd
2746
2747 extra_host_args=
2748
2749 ### To add a new directory to the tree, first choose whether it is a target
2750 ### or a host dependent tool. Then put it into the appropriate list
2751 ### (library or tools, host or target), doing a dependency sort.
2752
2753 # Subdirs will be configured in the order listed in build_configdirs,
2754 # configdirs, or target_configdirs; see the serialization section below.
2755
2756 # Dependency sorting is only needed when *configuration* must be done in
2757 # a particular order. In all cases a dependency should be specified in
2758 # the Makefile, whether or not it's implicitly specified here.
2759
2760 # Double entries in build_configdirs, configdirs, or target_configdirs may
2761 # cause circular dependencies and break everything horribly.
2762
2763 # these library is used by various programs built for the build
2764 # environment
2765 #
2766 build_libs="build-libiberty build-libcpp"
2767
2768 # these tools are built for the build environment
2769 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2770
2771 # these libraries are used by various programs built for the host environment
2772 #f
2773 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2774
2775 # these tools are built for the host environment
2776 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2777 # know that we are building the simulator.
2778 # binutils, gas and ld appear in that order because it makes sense to run
2779 # "make check" in that particular order.
2780 # If --enable-gold is used, "gold" may replace "ld".
2781 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"
2782
2783 # these libraries are built for the target environment, and are built after
2784 # the host libraries and the host tools (which may be a cross compiler)
2785 # Note that libiberty is not a target library.
2786 target_libraries="target-libgcc \
2787 target-libbacktrace \
2788 target-libgloss \
2789 target-newlib \
2790 target-libgomp \
2791 target-liboffloadmic \
2792 target-libhsail-rt \
2793 target-libatomic \
2794 target-libitm \
2795 target-libstdc++-v3 \
2796 target-libsanitizer \
2797 target-libvtv \
2798 target-libssp \
2799 target-libquadmath \
2800 target-libgfortran \
2801 target-libffi \
2802 target-libobjc \
2803 target-libada \
2804 target-libgo"
2805
2806 # these tools are built using the target libraries, and are intended to
2807 # run only in the target environment
2808 #
2809 # note: any program that *uses* libraries that are in the "target_libraries"
2810 # list belongs in this list.
2811 #
2812 target_tools="target-rda"
2813
2814 ################################################################################
2815
2816 ## All tools belong in one of the four categories, and are assigned above
2817 ## We assign ${configdirs} this way to remove all embedded newlines. This
2818 ## is important because configure will choke if they ever get through.
2819 ## ${configdirs} is directories we build using the host tools.
2820 ## ${target_configdirs} is directories we build using the target tools.
2821 configdirs=`echo ${host_libs} ${host_tools}`
2822 target_configdirs=`echo ${target_libraries} ${target_tools}`
2823 build_configdirs=`echo ${build_libs} ${build_tools}`
2824
2825
2826
2827 ################################################################################
2828
2829 srcname="gnu development package"
2830
2831 # This gets set non-empty for some net releases of packages.
2832 appdirs=""
2833
2834 # Define is_cross_compiler to save on calls to 'test'.
2835 is_cross_compiler=
2836 if test x"${host}" = x"${target}" ; then
2837 is_cross_compiler=no
2838 else
2839 is_cross_compiler=yes
2840 fi
2841
2842 # Find the build and target subdir names.
2843
2844 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2845 # have matching libraries, they should use host libraries: Makefile.tpl
2846 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2847 # However, they still use the build modules, because the corresponding
2848 # host modules (e.g. bison) are only built for the host when bootstrap
2849 # finishes. So:
2850 # - build_subdir is where we find build modules, and never changes.
2851 # - build_libsubdir is where we find build libraries, and can be overridden.
2852
2853 # Prefix 'build-' so this never conflicts with target_subdir.
2854 build_subdir="build-${build_noncanonical}"
2855
2856 # Check whether --with-build-libsubdir was given.
2857 if test "${with_build_libsubdir+set}" = set; then :
2858 withval=$with_build_libsubdir; build_libsubdir="$withval"
2859 else
2860 build_libsubdir="$build_subdir"
2861 fi
2862
2863 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2864 if ( test $srcdir = . && test -d gcc ) \
2865 || test -d $srcdir/../host-${host_noncanonical}; then
2866 host_subdir="host-${host_noncanonical}"
2867 else
2868 host_subdir=.
2869 fi
2870 # No prefix.
2871 target_subdir=${target_noncanonical}
2872
2873 # Be sure to cover against remnants of an in-tree build.
2874 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2875 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2876 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2877 fi
2878
2879 # Skipdirs are removed silently.
2880 skipdirs=
2881 # Noconfigdirs are removed loudly.
2882 noconfigdirs=""
2883
2884 use_gnu_ld=
2885 # Make sure we don't let GNU ld be added if we didn't want it.
2886 if test x$with_gnu_ld = xno ; then
2887 use_gnu_ld=no
2888 noconfigdirs="$noconfigdirs ld gold"
2889 fi
2890
2891 use_gnu_as=
2892 # Make sure we don't let GNU as be added if we didn't want it.
2893 if test x$with_gnu_as = xno ; then
2894 use_gnu_as=no
2895 noconfigdirs="$noconfigdirs gas"
2896 fi
2897
2898 use_included_zlib=
2899
2900 # Check whether --with-system-zlib was given.
2901 if test "${with_system_zlib+set}" = set; then :
2902 withval=$with_system_zlib;
2903 fi
2904
2905 # Make sure we don't let ZLIB be added if we didn't want it.
2906 if test x$with_system_zlib = xyes ; then
2907 use_included_zlib=no
2908 noconfigdirs="$noconfigdirs zlib"
2909 fi
2910
2911 # some tools are so dependent upon X11 that if we're not building with X,
2912 # it's not even worth trying to configure, much less build, that tool.
2913
2914 case ${with_x} in
2915 yes | "") ;; # the default value for this tree is that X11 is available
2916 no)
2917 skipdirs="${skipdirs} tk itcl libgui"
2918 # We won't be able to build gdbtk without X.
2919 enable_gdbtk=no
2920 ;;
2921 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2922 esac
2923
2924 # Some are only suitable for cross toolchains.
2925 # Remove these if host=target.
2926 cross_only="target-libgloss target-newlib target-opcodes"
2927
2928 case $is_cross_compiler in
2929 no) skipdirs="${skipdirs} ${cross_only}" ;;
2930 esac
2931
2932 # If both --with-headers and --with-libs are specified, default to
2933 # --without-newlib.
2934 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2935 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2936 if test x"${with_newlib}" = x ; then
2937 with_newlib=no
2938 fi
2939 fi
2940
2941 # Recognize --with-newlib/--without-newlib.
2942 case ${with_newlib} in
2943 no) skipdirs="${skipdirs} target-newlib" ;;
2944 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2945 esac
2946
2947 # Check whether --enable-as-accelerator-for was given.
2948 if test "${enable_as_accelerator_for+set}" = set; then :
2949 enableval=$enable_as_accelerator_for;
2950 fi
2951
2952
2953 # Check whether --enable-offload-targets was given.
2954 if test "${enable_offload_targets+set}" = set; then :
2955 enableval=$enable_offload_targets;
2956 if test x"$enable_offload_targets" = x; then
2957 as_fn_error $? "no offload targets specified" "$LINENO" 5
2958 fi
2959
2960 else
2961 enable_offload_targets=
2962 fi
2963
2964
2965 # Handle --enable-gold, --enable-ld.
2966 # --disable-gold [--enable-ld]
2967 # Build only ld. Default option.
2968 # --enable-gold [--enable-ld]
2969 # Build both gold and ld. Install gold as "ld.gold", install ld
2970 # as "ld.bfd" and "ld".
2971 # --enable-gold=default [--enable-ld]
2972 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2973 # install ld as "ld.bfd".
2974 # --enable-gold[=default] --disable-ld
2975 # Build only gold, which is then installed as both "ld.gold" and "ld".
2976 # --enable-gold --enable-ld=default
2977 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2978 # and ld.bfd).
2979 # In other words, ld is default
2980 # --enable-gold=default --enable-ld=default
2981 # Error.
2982
2983 default_ld=
2984 # Check whether --enable-gold was given.
2985 if test "${enable_gold+set}" = set; then :
2986 enableval=$enable_gold; ENABLE_GOLD=$enableval
2987 else
2988 ENABLE_GOLD=no
2989 fi
2990
2991 case "${ENABLE_GOLD}" in
2992 yes|default)
2993 # Check for ELF target.
2994 is_elf=no
2995 case "${target}" in
2996 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2997 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2998 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2999 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3000 case "${target}" in
3001 *-*-linux*aout* | *-*-linux*oldld*)
3002 ;;
3003 *)
3004 is_elf=yes
3005 ;;
3006 esac
3007 esac
3008
3009 if test "$is_elf" = "yes"; then
3010 # Check for target supported by gold.
3011 case "${target}" in
3012 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3013 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3014 configdirs="$configdirs gold"
3015 if test x${ENABLE_GOLD} = xdefault; then
3016 default_ld=gold
3017 fi
3018 ENABLE_GOLD=yes
3019 ;;
3020 esac
3021 fi
3022 ;;
3023 no)
3024 ;;
3025 *)
3026 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3027 ;;
3028 esac
3029
3030 # Check whether --enable-ld was given.
3031 if test "${enable_ld+set}" = set; then :
3032 enableval=$enable_ld; ENABLE_LD=$enableval
3033 else
3034 ENABLE_LD=yes
3035 fi
3036
3037
3038 case "${ENABLE_LD}" in
3039 default)
3040 if test x${default_ld} != x; then
3041 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3042 fi
3043 ;;
3044 yes)
3045 ;;
3046 no)
3047 if test x${ENABLE_GOLD} != xyes; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3049 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3050 fi
3051 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3052 ;;
3053 *)
3054 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3055 ;;
3056 esac
3057
3058 # PR gas/19109
3059 # Decide the default method for compressing debug sections.
3060 # Provide a configure time option to override our default.
3061 # Check whether --enable-compressed_debug_sections was given.
3062 if test "${enable_compressed_debug_sections+set}" = set; then :
3063 enableval=$enable_compressed_debug_sections;
3064 if test x"$enable_compressed_debug_sections" = xyes; then
3065 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3066 fi
3067
3068 else
3069 enable_compressed_debug_sections=
3070 fi
3071
3072
3073 # Configure extra directories which are host specific
3074
3075 case "${host}" in
3076 *-cygwin*)
3077 configdirs="$configdirs libtermcap" ;;
3078 esac
3079
3080 # A target can indicate whether a language isn't supported for some reason.
3081 # Only spaces may be used in this macro; not newlines or tabs.
3082 unsupported_languages=
3083
3084 # Remove more programs from consideration, based on the host or
3085 # target this usually means that a port of the program doesn't
3086 # exist yet.
3087
3088 case "${host}" in
3089 i[3456789]86-*-msdosdjgpp*)
3090 noconfigdirs="$noconfigdirs tcl tk itcl"
3091 ;;
3092 esac
3093
3094
3095 # Check whether --enable-libquadmath was given.
3096 if test "${enable_libquadmath+set}" = set; then :
3097 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3098 else
3099 ENABLE_LIBQUADMATH=yes
3100 fi
3101
3102 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3103 noconfigdirs="$noconfigdirs target-libquadmath"
3104 fi
3105
3106
3107 # Check whether --enable-libquadmath-support was given.
3108 if test "${enable_libquadmath_support+set}" = set; then :
3109 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3110 else
3111 ENABLE_LIBQUADMATH_SUPPORT=yes
3112 fi
3113
3114 enable_libquadmath_support=
3115 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3116 enable_libquadmath_support=no
3117 fi
3118
3119
3120 # Check whether --enable-libada was given.
3121 if test "${enable_libada+set}" = set; then :
3122 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3123 else
3124 ENABLE_LIBADA=yes
3125 fi
3126
3127 if test "${ENABLE_LIBADA}" != "yes" ; then
3128 noconfigdirs="$noconfigdirs gnattools"
3129 fi
3130
3131 # Check whether --enable-libssp was given.
3132 if test "${enable_libssp+set}" = set; then :
3133 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3134 else
3135 ENABLE_LIBSSP=yes
3136 fi
3137
3138
3139 # Check whether --enable-libstdcxx was given.
3140 if test "${enable_libstdcxx+set}" = set; then :
3141 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3142 else
3143 ENABLE_LIBSTDCXX=default
3144 fi
3145
3146 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3147 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3148 fi
3149
3150 # If this is accelerator compiler and its target is intelmic we enable
3151 # target liboffloadmic by default. If this is compiler with offloading
3152 # for intelmic we enable host liboffloadmic by default. Otherwise
3153 # liboffloadmic is disabled by default.
3154 # Check whether --enable-liboffloadmic was given.
3155 if test "${enable_liboffloadmic+set}" = set; then :
3156 enableval=$enable_liboffloadmic; case "$enableval" in
3157 no | host | target)
3158 enable_liboffloadmic=$enableval ;;
3159 *)
3160 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3161 esac
3162 else
3163 if test x"$enable_as_accelerator_for" != x; then
3164 case "${target}" in
3165 *-intelmic-* | *-intelmicemul-*)
3166 enable_liboffloadmic=target
3167 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3168 ;;
3169 *)
3170 enable_liboffloadmic=no
3171 ;;
3172 esac
3173 else
3174 case "${enable_offload_targets}" in
3175 *-intelmic-* | *-intelmicemul-*)
3176 enable_liboffloadmic=host
3177 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3178 ;;
3179 *)
3180 enable_liboffloadmic=no
3181 ;;
3182 esac
3183 fi
3184 fi
3185
3186
3187
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3190 case "${target}" in
3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3192 ;;
3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3194 ;;
3195 *-*-solaris2* | *-*-hpux11*)
3196 ;;
3197 *-*-darwin* | *-*-aix*)
3198 ;;
3199 nvptx*-*-*)
3200 ;;
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
3205 fi
3206
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222 fi
3223 fi
3224 fi
3225
3226 # Disable liboffloadmic on unsupported systems.
3227 if test -d ${srcdir}/liboffloadmic; then
3228 if test x$enable_liboffloadmic != xno; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3230 $as_echo_n "checking for liboffloadmic support... " >&6; }
3231 if (srcdir=${srcdir}/liboffloadmic; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-liboffloadmic"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 fi
3243 fi
3244
3245 # Disable libitm on unsupported systems.
3246 if test -d ${srcdir}/libitm; then
3247 if test x$enable_libitm = x; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3249 $as_echo_n "checking for libitm support... " >&6; }
3250 if (srcdir=${srcdir}/libitm; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-libitm"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 fi
3262 fi
3263
3264 # Disable libsanitizer on unsupported systems.
3265 if test -d ${srcdir}/libsanitizer; then
3266 if test x$enable_libsanitizer = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3268 $as_echo_n "checking for libsanitizer support... " >&6; }
3269 if (srcdir=${srcdir}/libsanitizer; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libsanitizer"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279 fi
3280 fi
3281 fi
3282
3283 # Disable libvtv on unsupported systems.
3284 if test -d ${srcdir}/libvtv; then
3285 if test x$enable_libvtv = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3287 $as_echo_n "checking for libvtv support... " >&6; }
3288 if (srcdir=${srcdir}/libvtv; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$VTV_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libvtv"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302
3303 # Disable libhsail-rt on unsupported systems.
3304 if test -d ${srcdir}/libhsail-rt; then
3305 if test x$enable_libhsail_rt = x; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3307 $as_echo_n "checking for libhsail-rt support... " >&6; }
3308 if (srcdir=${srcdir}/libhsail-rt; \
3309 . ${srcdir}/configure.tgt; \
3310 test -n "$UNSUPPORTED")
3311 then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 unsupported_languages="$unsupported_languages brig"
3315 # This implicitly disables also target-libhsail-rt as it won't
3316 # get added to the build without BRIG FE.
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3320 fi
3321 fi
3322 fi
3323
3324
3325 # Disable libquadmath for some systems.
3326 case "${target}" in
3327 avr-*-*)
3328 noconfigdirs="$noconfigdirs target-libquadmath"
3329 ;;
3330 # libquadmath is unused on AIX and libquadmath build process use of
3331 # LD_LIBRARY_PATH can break AIX bootstrap.
3332 powerpc-*-aix* | rs6000-*-aix*)
3333 noconfigdirs="$noconfigdirs target-libquadmath"
3334 ;;
3335 esac
3336
3337 # Disable libssp for some systems.
3338 case "${target}" in
3339 avr-*-*)
3340 # No hosted I/O support.
3341 noconfigdirs="$noconfigdirs target-libssp"
3342 ;;
3343 powerpc-*-aix* | rs6000-*-aix*)
3344 noconfigdirs="$noconfigdirs target-libssp"
3345 ;;
3346 rl78-*-*)
3347 # libssp uses a misaligned load to trigger a fault, but the RL78
3348 # doesn't fault for those - instead, it gives a build-time error
3349 # for explicit misaligned loads.
3350 noconfigdirs="$noconfigdirs target-libssp"
3351 ;;
3352 visium-*-*)
3353 # No hosted I/O support.
3354 noconfigdirs="$noconfigdirs target-libssp"
3355 ;;
3356 esac
3357
3358 # Disable libstdc++-v3 for some systems.
3359 # Allow user to override this if they pass --enable-libstdc++-v3
3360 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3361 case "${target}" in
3362 *-*-vxworks*)
3363 # VxWorks uses the Dinkumware C++ library.
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3365 ;;
3366 arm*-wince-pe*)
3367 # the C++ libraries don't build on top of CE's C libraries
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
3370 avr-*-*)
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 ;;
3373 ft32-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375 ;;
3376 esac
3377 fi
3378
3379 # Disable Fortran for some systems.
3380 case "${target}" in
3381 mmix-*-*)
3382 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3383 unsupported_languages="$unsupported_languages fortran"
3384 ;;
3385 esac
3386
3387 # Disable libffi for some systems.
3388 case "${target}" in
3389 powerpc-*-darwin*)
3390 ;;
3391 i[3456789]86-*-darwin*)
3392 ;;
3393 x86_64-*-darwin[912]*)
3394 ;;
3395 *-*-darwin*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
3398 *-*-netware*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 *-*-phoenix*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 *-*-rtems*)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 *-*-tpf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 *-*-uclinux*)
3411 noconfigdirs="$noconfigdirs target-libffi"
3412 ;;
3413 *-*-vxworks*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3415 ;;
3416 aarch64*-*-freebsd*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3418 ;;
3419 alpha*-*-*vms*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3421 ;;
3422 arm*-*-freebsd*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 arm-wince-pe)
3426 noconfigdirs="$noconfigdirs target-libffi"
3427 ;;
3428 arm*-*-symbianelf*)
3429 noconfigdirs="$noconfigdirs target-libffi"
3430 ;;
3431 cris-*-* | crisv32-*-*)
3432 case "${target}" in
3433 *-*-linux*)
3434 ;;
3435 *) # See PR46792 regarding target-libffi.
3436 noconfigdirs="$noconfigdirs target-libffi";;
3437 esac
3438 ;;
3439 hppa*64*-*-hpux*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 hppa*-hp-hpux11*)
3443 ;;
3444 hppa*-*-hpux*)
3445 noconfigdirs="$noconfigdirs target-libffi"
3446 ;;
3447 ia64*-*-*vms*)
3448 noconfigdirs="$noconfigdirs target-libffi"
3449 ;;
3450 i[3456789]86-w64-mingw*)
3451 noconfigdirs="$noconfigdirs target-libffi"
3452 ;;
3453 i[3456789]86-*-mingw*)
3454 noconfigdirs="$noconfigdirs target-libffi"
3455 ;;
3456 x86_64-*-mingw*)
3457 noconfigdirs="$noconfigdirs target-libffi"
3458 ;;
3459 mmix-*-*)
3460 noconfigdirs="$noconfigdirs target-libffi"
3461 ;;
3462 powerpc-*-aix*)
3463 ;;
3464 rs6000-*-aix*)
3465 ;;
3466 ft32-*-*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 *-*-lynxos*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 esac
3473
3474 # Disable the go frontend on systems where it is known to not work. Please keep
3475 # this in sync with contrib/config-list.mk.
3476 case "${target}" in
3477 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3478 unsupported_languages="$unsupported_languages go"
3479 ;;
3480 esac
3481
3482 # Disable libgo for some systems where it is known to not work.
3483 # For testing, you can easily override this with --enable-libgo.
3484 if test x$enable_libgo = x; then
3485 case "${target}" in
3486 *-*-darwin*)
3487 # PR 46986
3488 noconfigdirs="$noconfigdirs target-libgo"
3489 ;;
3490 *-*-cygwin* | *-*-mingw*)
3491 noconfigdirs="$noconfigdirs target-libgo"
3492 ;;
3493 esac
3494 fi
3495
3496 # Default libgloss CPU subdirectory.
3497 libgloss_dir="$target_cpu"
3498
3499 case "${target}" in
3500 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3501 libgloss_dir=wince
3502 ;;
3503 aarch64*-*-* )
3504 libgloss_dir=aarch64
3505 ;;
3506 arm*-*-*)
3507 libgloss_dir=arm
3508 ;;
3509 cris-*-* | crisv32-*-*)
3510 libgloss_dir=cris
3511 ;;
3512 hppa*-*-*)
3513 libgloss_dir=pa
3514 ;;
3515 i[3456789]86-*-*)
3516 libgloss_dir=i386
3517 ;;
3518 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3519 libgloss_dir=m68hc11
3520 ;;
3521 m68*-*-* | fido-*-*)
3522 libgloss_dir=m68k
3523 ;;
3524 mips*-*-*)
3525 libgloss_dir=mips
3526 ;;
3527 powerpc*-*-*)
3528 libgloss_dir=rs6000
3529 ;;
3530 sparc*-*-*)
3531 libgloss_dir=sparc
3532 ;;
3533 esac
3534
3535 # Disable newlib and libgloss for various target OSes.
3536 case "${target}" in
3537 alpha*-dec-osf*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 i[3456789]86-*-linux*)
3541 # This section makes it possible to build newlib natively on linux.
3542 # If we are using a cross compiler then don't configure newlib.
3543 if test x${is_cross_compiler} != xno ; then
3544 noconfigdirs="$noconfigdirs target-newlib"
3545 fi
3546 noconfigdirs="$noconfigdirs target-libgloss"
3547 # If we are not using a cross compiler, do configure newlib.
3548 # Note however, that newlib will only be configured in this situation
3549 # if the --with-newlib option has been given, because otherwise
3550 # 'target-newlib' will appear in skipdirs.
3551 ;;
3552 i[3456789]86-*-rdos*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 ;;
3555 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 sparc-*-sunos4*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-aix*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-beos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-chorusos)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-dragonfly*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-freebsd*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-lynxos*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-mingw*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585 *-*-netbsd*)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3587 ;;
3588 *-*-netware*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 ;;
3591 *-*-tpf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3593 ;;
3594 *-*-uclinux*)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3596 ;;
3597 *-*-vxworks*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 esac
3601
3602 case "${target}" in
3603 *-*-chorusos)
3604 ;;
3605 aarch64-*-darwin*)
3606 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3607 noconfigdirs="$noconfigdirs sim target-rda"
3608 ;;
3609 arm-*-darwin*)
3610 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3611 noconfigdirs="$noconfigdirs sim target-rda"
3612 ;;
3613 powerpc-*-darwin*)
3614 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3615 noconfigdirs="$noconfigdirs sim target-rda"
3616 ;;
3617 i[3456789]86-*-darwin*)
3618 noconfigdirs="$noconfigdirs ld gprof"
3619 noconfigdirs="$noconfigdirs sim target-rda"
3620 ;;
3621 x86_64-*-darwin[912]*)
3622 noconfigdirs="$noconfigdirs ld gas gprof"
3623 noconfigdirs="$noconfigdirs sim target-rda"
3624 ;;
3625 *-*-darwin*)
3626 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3627 noconfigdirs="$noconfigdirs sim target-rda"
3628 ;;
3629 *-*-dragonfly*)
3630 ;;
3631 *-*-freebsd*)
3632 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3633 && test -f /usr/local/include/gmp.h; then
3634 with_gmp=/usr/local
3635 fi
3636 ;;
3637 *-*-kaos*)
3638 # Remove unsupported stuff on all kaOS configurations.
3639 noconfigdirs="$noconfigdirs target-libgloss"
3640 ;;
3641 *-*-netbsd*)
3642 ;;
3643 *-*-netware*)
3644 ;;
3645 *-*-phoenix*)
3646 noconfigdirs="$noconfigdirs target-libgloss"
3647 ;;
3648 *-*-rtems*)
3649 noconfigdirs="$noconfigdirs target-libgloss"
3650 ;;
3651 # The tpf target doesn't support gdb yet.
3652 *-*-tpf*)
3653 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3654 ;;
3655 *-*-uclinux*)
3656 noconfigdirs="$noconfigdirs target-rda"
3657 ;;
3658 *-*-vxworks*)
3659 ;;
3660 alpha*-dec-osf*)
3661 # ld works, but does not support shared libraries.
3662 # gas doesn't generate exception information.
3663 noconfigdirs="$noconfigdirs gas ld"
3664 ;;
3665 alpha*-*-*vms*)
3666 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3667 ;;
3668 alpha*-*-*)
3669 # newlib is not 64 bit ready
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 ;;
3672 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3673 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3674 ;;
3675 arc*-*-*)
3676 noconfigdirs="$noconfigdirs sim"
3677 ;;
3678 arm-*-pe*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 ;;
3681 arm-*-riscix*)
3682 noconfigdirs="$noconfigdirs ld target-libgloss"
3683 ;;
3684 avr-*-*)
3685 if test x${with_avrlibc} != xno; then
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 fi
3688 ;;
3689 c4x-*-* | tic4x-*-*)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3691 ;;
3692 tic54x-*-*)
3693 noconfigdirs="$noconfigdirs target-libgloss gdb"
3694 ;;
3695 d10v-*-*)
3696 noconfigdirs="$noconfigdirs target-libgloss"
3697 ;;
3698 d30v-*-*)
3699 noconfigdirs="$noconfigdirs gdb"
3700 ;;
3701 fr30-*-elf*)
3702 noconfigdirs="$noconfigdirs gdb"
3703 ;;
3704 ft32-*-*)
3705 noconfigdirs="$noconfigdirs target-rda gprof"
3706 ;;
3707 moxie-*-*)
3708 noconfigdirs="$noconfigdirs"
3709 ;;
3710 h8300*-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss"
3712 ;;
3713 h8500-*-*)
3714 noconfigdirs="$noconfigdirs target-libgloss"
3715 ;;
3716 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3717 ;;
3718 hppa*64*-*-hpux*)
3719 noconfigdirs="$noconfigdirs gdb"
3720 ;;
3721 hppa*-*-hpux11*)
3722 noconfigdirs="$noconfigdirs gdb ld"
3723 ;;
3724 hppa*64*-*-linux*)
3725 ;;
3726 hppa*-*-linux*)
3727 ;;
3728 hppa*-*-*elf* | \
3729 hppa*-*-lites* | \
3730 hppa*-*-openbsd* | \
3731 hppa*64*-*-*)
3732 ;;
3733 hppa*-*-pro*)
3734 ;;
3735 hppa*-*-*)
3736 noconfigdirs="$noconfigdirs ld"
3737 ;;
3738 i960-*-*)
3739 noconfigdirs="$noconfigdirs gdb"
3740 ;;
3741 ia64*-*-elf*)
3742 # No gdb support yet.
3743 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3744 ;;
3745 ia64*-**-hpux*)
3746 # No ld support yet.
3747 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3748 ;;
3749 ia64*-*-*vms*)
3750 # No ld support yet.
3751 noconfigdirs="$noconfigdirs libgui itcl ld"
3752 ;;
3753 i[3456789]86-w64-mingw*)
3754 ;;
3755 i[3456789]86-*-mingw*)
3756 target_configdirs="$target_configdirs target-winsup"
3757 ;;
3758 *-*-cygwin*)
3759 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3760 noconfigdirs="$noconfigdirs target-libgloss"
3761 # always build newlib if winsup directory is present.
3762 if test -d "$srcdir/winsup/cygwin"; then
3763 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3764 elif test -d "$srcdir/newlib"; then
3765 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3766 fi
3767 ;;
3768 i[3456789]86-*-pe)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
3771 i[3456789]86-*-sco3.2v5*)
3772 # The linker does not yet know about weak symbols in COFF,
3773 # and is not configured to handle mixed ELF and COFF.
3774 noconfigdirs="$noconfigdirs ld target-libgloss"
3775 ;;
3776 i[3456789]86-*-sco*)
3777 noconfigdirs="$noconfigdirs gprof target-libgloss"
3778 ;;
3779 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
3782 i[3456789]86-*-sysv4*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3784 ;;
3785 i[3456789]86-*-beos*)
3786 noconfigdirs="$noconfigdirs gdb"
3787 ;;
3788 i[3456789]86-*-rdos*)
3789 noconfigdirs="$noconfigdirs gdb"
3790 ;;
3791 mmix-*-*)
3792 noconfigdirs="$noconfigdirs gdb"
3793 ;;
3794 mt-*-*)
3795 noconfigdirs="$noconfigdirs sim"
3796 ;;
3797 nfp-*-*)
3798 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3799 noconfigdirs="$noconfigdirs $target_libraries"
3800 ;;
3801 powerpc-*-aix*)
3802 # copied from rs6000-*-* entry
3803 noconfigdirs="$noconfigdirs gprof"
3804 ;;
3805 powerpc*-*-winnt* | powerpc*-*-pe*)
3806 target_configdirs="$target_configdirs target-winsup"
3807 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3808 # always build newlib.
3809 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3810 ;;
3811 # This is temporary until we can link against shared libraries
3812 powerpcle-*-solaris*)
3813 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3814 ;;
3815 powerpc-*-beos*)
3816 noconfigdirs="$noconfigdirs gdb"
3817 ;;
3818 rs6000-*-lynxos*)
3819 noconfigdirs="$noconfigdirs gprof"
3820 ;;
3821 rs6000-*-aix*)
3822 noconfigdirs="$noconfigdirs gprof"
3823 ;;
3824 rs6000-*-*)
3825 noconfigdirs="$noconfigdirs gprof"
3826 ;;
3827 m68k-apollo-*)
3828 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3829 ;;
3830 microblaze*)
3831 noconfigdirs="$noconfigdirs gprof"
3832 ;;
3833 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3834 if test x$with_newlib = xyes; then
3835 noconfigdirs="$noconfigdirs gprof"
3836 fi
3837 ;;
3838 mips*-*-irix5*)
3839 noconfigdirs="$noconfigdirs gprof target-libgloss"
3840 ;;
3841 mips*-*-irix6*)
3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
3843 ;;
3844 mips*-*-bsd*)
3845 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3846 ;;
3847 mips*-*-linux*)
3848 ;;
3849 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3850 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3851 noconfigdirs="$noconfigdirs ld gas gprof"
3852 ;;
3853 mips*-*-*)
3854 noconfigdirs="$noconfigdirs gprof"
3855 ;;
3856 nvptx*-*-*)
3857 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3858 ;;
3859 sh-*-*)
3860 case "${target}" in
3861 sh*-*-elf)
3862 ;;
3863 *)
3864 noconfigdirs="$noconfigdirs target-libgloss" ;;
3865 esac
3866 ;;
3867 sparc-*-sunos4*)
3868 if test x${is_cross_compiler} = xno ; then
3869 use_gnu_ld=no
3870 fi
3871 ;;
3872 tic6x-*-*)
3873 noconfigdirs="$noconfigdirs sim"
3874 ;;
3875 tilepro*-*-* | tilegx*-*-*)
3876 noconfigdirs="$noconfigdirs sim"
3877 ;;
3878 v810-*-*)
3879 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3880 ;;
3881 vax-*-*)
3882 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3883 ;;
3884 wasm32-*-*)
3885 noconfigdirs="$noconfigdirs ld"
3886 ;;
3887 esac
3888
3889 # If we aren't building newlib, then don't build libgloss, since libgloss
3890 # depends upon some newlib header files.
3891 case "${noconfigdirs}" in
3892 *target-libgloss*) ;;
3893 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3894 esac
3895
3896 # Work in distributions that contain no compiler tools, like Autoconf.
3897 host_makefile_frag=/dev/null
3898 if test -d ${srcdir}/config ; then
3899 case "${host}" in
3900 i[3456789]86-*-msdosdjgpp*)
3901 host_makefile_frag="config/mh-djgpp"
3902 ;;
3903 *-cygwin*)
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3906 $as_echo_n "checking to see if cat works as expected... " >&6; }
3907 echo a >cygwin-cat-check
3908 if test `cat cygwin-cat-check` = a ; then
3909 rm cygwin-cat-check
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; }
3912 else
3913 rm cygwin-cat-check
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 as_fn_error $? "The cat command does not ignore carriage return characters.
3917 Please either mount the build directory in binary mode or run the following
3918 commands before running any configure script:
3919 set -o igncr
3920 export SHELLOPTS
3921 " "$LINENO" 5
3922 fi
3923
3924 host_makefile_frag="config/mh-cygwin"
3925 ;;
3926 *-mingw*)
3927 host_makefile_frag="config/mh-mingw"
3928 ;;
3929 alpha*-linux*)
3930 host_makefile_frag="config/mh-alpha-linux"
3931 ;;
3932 hppa*-hp-hpux10*)
3933 host_makefile_frag="config/mh-pa-hpux10"
3934 ;;
3935 hppa*-hp-hpux*)
3936 host_makefile_frag="config/mh-pa"
3937 ;;
3938 hppa*-*)
3939 host_makefile_frag="config/mh-pa"
3940 ;;
3941 *-*-darwin*)
3942 host_makefile_frag="config/mh-darwin"
3943 ;;
3944 powerpc-*-aix*)
3945 host_makefile_frag="config/mh-ppc-aix"
3946 ;;
3947 rs6000-*-aix*)
3948 host_makefile_frag="config/mh-ppc-aix"
3949 ;;
3950 esac
3951 fi
3952
3953 if test "${build}" != "${host}" ; then
3954 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3955 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3956 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3957 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3958 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3959 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3960 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3961 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3962 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3963 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3964 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3965 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3966 else
3967 AR_FOR_BUILD="\$(AR)"
3968 AS_FOR_BUILD="\$(AS)"
3969 CC_FOR_BUILD="\$(CC)"
3970 CXX_FOR_BUILD="\$(CXX)"
3971 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3972 GOC_FOR_BUILD="\$(GOC)"
3973 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3974 LD_FOR_BUILD="\$(LD)"
3975 NM_FOR_BUILD="\$(NM)"
3976 RANLIB_FOR_BUILD="\$(RANLIB)"
3977 WINDRES_FOR_BUILD="\$(WINDRES)"
3978 WINDMC_FOR_BUILD="\$(WINDMC)"
3979 fi
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_CC+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi
4013 fi
4014 CC=$ac_cv_prog_CC
4015 if test -n "$CC"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017 $as_echo "$CC" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 fi
4022
4023
4024 fi
4025 if test -z "$ac_cv_prog_CC"; then
4026 ac_ct_CC=$CC
4027 # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_CC="gcc"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4047 fi
4048 done
4049 done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063 if test "x$ac_ct_CC" = x; then
4064 CC=""
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 CC=$ac_ct_CC
4073 fi
4074 else
4075 CC="$ac_cv_prog_CC"
4076 fi
4077
4078 if test -z "$CC"; then
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}cc; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC="${ac_tool_prefix}cc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117 fi
4118 fi
4119 if test -z "$CC"; then
4120 # Extract the first word of "cc", so it can be a program name with args.
4121 set dummy cc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CC+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 else
4130 ac_prog_rejected=no
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139 ac_prog_rejected=yes
4140 continue
4141 fi
4142 ac_cv_prog_CC="cc"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 if test $ac_prog_rejected = yes; then
4151 # We found a bogon in the path, so make sure we never use it.
4152 set dummy $ac_cv_prog_CC
4153 shift
4154 if test $# != 0; then
4155 # We chose a different compiler from the bogus one.
4156 # However, it has the same basename, so the bogon will be chosen
4157 # first if we set CC to just the basename; use the full file name.
4158 shift
4159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4160 fi
4161 fi
4162 fi
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174 fi
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 for ac_prog in cl.exe
4178 do
4179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4199 fi
4200 done
4201 done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216 test -n "$CC" && break
4217 done
4218 fi
4219 if test -z "$CC"; then
4220 ac_ct_CC=$CC
4221 for ac_prog in cl.exe
4222 do
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_CC="$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4251 if test -n "$ac_ct_CC"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4253 $as_echo "$ac_ct_CC" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260 test -n "$ac_ct_CC" && break
4261 done
4262
4263 if test "x$ac_ct_CC" = x; then
4264 CC=""
4265 else
4266 case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272 CC=$ac_ct_CC
4273 fi
4274 fi
4275
4276 fi
4277
4278
4279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "no acceptable C compiler found in \$PATH
4282 See \`config.log' for more details" "$LINENO" 5; }
4283
4284 # Provide some information about the compiler.
4285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4286 set X $ac_compile
4287 ac_compiler=$2
4288 for ac_option in --version -v -V -qversion; do
4289 { { ac_try="$ac_compiler $ac_option >&5"
4290 case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4297 ac_status=$?
4298 if test -s conftest.err; then
4299 sed '10a\
4300 ... rest of stderr output deleted ...
4301 10q' conftest.err >conftest.er1
4302 cat conftest.er1 >&5
4303 fi
4304 rm -f conftest.er1 conftest.err
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }
4307 done
4308
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311
4312 int
4313 main ()
4314 {
4315
4316 ;
4317 return 0;
4318 }
4319 _ACEOF
4320 ac_clean_files_save=$ac_clean_files
4321 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4322 # Try to create an executable without -o first, disregard a.out.
4323 # It will help us diagnose broken compilers, and finding out an intuition
4324 # of exeext.
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4326 $as_echo_n "checking whether the C compiler works... " >&6; }
4327 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4328
4329 # The possible output files:
4330 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4331
4332 ac_rmfiles=
4333 for ac_file in $ac_files
4334 do
4335 case $ac_file in
4336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4337 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4338 esac
4339 done
4340 rm -f $ac_rmfiles
4341
4342 if { { ac_try="$ac_link_default"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348 $as_echo "$ac_try_echo"; } >&5
4349 (eval "$ac_link_default") 2>&5
4350 ac_status=$?
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; }; then :
4353 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4356 # so that the user can short-circuit this test for compilers unknown to
4357 # Autoconf.
4358 for ac_file in $ac_files ''
4359 do
4360 test -f "$ac_file" || continue
4361 case $ac_file in
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4363 ;;
4364 [ab].out )
4365 # We found the default executable, but exeext='' is most
4366 # certainly right.
4367 break;;
4368 *.* )
4369 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4370 then :; else
4371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372 fi
4373 # We set ac_cv_exeext here because the later test for it is not
4374 # safe: cross compilers may not add the suffix if given an `-o'
4375 # argument, so we may need to know it at that point already.
4376 # Even if this section looks crufty: it has the advantage of
4377 # actually working.
4378 break;;
4379 * )
4380 break;;
4381 esac
4382 done
4383 test "$ac_cv_exeext" = no && ac_cv_exeext=
4384
4385 else
4386 ac_file=''
4387 fi
4388 if test -z "$ac_file"; then :
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 $as_echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4396 as_fn_error 77 "C compiler cannot create executables
4397 See \`config.log' for more details" "$LINENO" 5; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400 $as_echo "yes" >&6; }
4401 fi
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4403 $as_echo_n "checking for C compiler default output file name... " >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4405 $as_echo "$ac_file" >&6; }
4406 ac_exeext=$ac_cv_exeext
4407
4408 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4409 ac_clean_files=$ac_clean_files_save
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4411 $as_echo_n "checking for suffix of executables... " >&6; }
4412 if { { ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_link") 2>&5
4420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; then :
4423 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4424 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4425 # work properly (i.e., refer to `conftest.exe'), while it won't with
4426 # `rm'.
4427 for ac_file in conftest.exe conftest conftest.*; do
4428 test -f "$ac_file" || continue
4429 case $ac_file in
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4432 break;;
4433 * ) break;;
4434 esac
4435 done
4436 else
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4440 See \`config.log' for more details" "$LINENO" 5; }
4441 fi
4442 rm -f conftest conftest$ac_cv_exeext
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4444 $as_echo "$ac_cv_exeext" >&6; }
4445
4446 rm -f conftest.$ac_ext
4447 EXEEXT=$ac_cv_exeext
4448 ac_exeext=$EXEEXT
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <stdio.h>
4452 int
4453 main ()
4454 {
4455 FILE *f = fopen ("conftest.out", "w");
4456 return ferror (f) || fclose (f) != 0;
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 ac_clean_files="$ac_clean_files conftest.out"
4463 # Check that the compiler produces executables we can run. If not, either
4464 # the compiler is broken, or we cross compile.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4466 $as_echo_n "checking whether we are cross compiling... " >&6; }
4467 if test "$cross_compiling" != yes; then
4468 { { ac_try="$ac_link"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_link") 2>&5
4476 ac_status=$?
4477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4478 test $ac_status = 0; }
4479 if { ac_try='./conftest$ac_cv_exeext'
4480 { { case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485 $as_echo "$ac_try_echo"; } >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }; }; then
4490 cross_compiling=no
4491 else
4492 if test "$cross_compiling" = maybe; then
4493 cross_compiling=yes
4494 else
4495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 as_fn_error $? "cannot run C compiled programs.
4498 If you meant to cross compile, use \`--host'.
4499 See \`config.log' for more details" "$LINENO" 5; }
4500 fi
4501 fi
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4504 $as_echo "$cross_compiling" >&6; }
4505
4506 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4507 ac_clean_files=$ac_clean_files_save
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4509 $as_echo_n "checking for suffix of object files... " >&6; }
4510 if ${ac_cv_objext+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.o conftest.obj
4525 if { { ac_try="$ac_compile"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4531 $as_echo "$ac_try_echo"; } >&5
4532 (eval "$ac_compile") 2>&5
4533 ac_status=$?
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }; then :
4536 for ac_file in conftest.o conftest.obj conftest.*; do
4537 test -f "$ac_file" || continue;
4538 case $ac_file in
4539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4540 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4541 break;;
4542 esac
4543 done
4544 else
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4547
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error $? "cannot compute suffix of object files: cannot compile
4551 See \`config.log' for more details" "$LINENO" 5; }
4552 fi
4553 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4556 $as_echo "$ac_cv_objext" >&6; }
4557 OBJEXT=$ac_cv_objext
4558 ac_objext=$OBJEXT
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4560 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4561 if ${ac_cv_c_compiler_gnu+:} 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 #ifndef __GNUC__
4571 choke me
4572 #endif
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579 ac_compiler_gnu=yes
4580 else
4581 ac_compiler_gnu=no
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4585
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4588 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4589 if test $ac_compiler_gnu = yes; then
4590 GCC=yes
4591 else
4592 GCC=
4593 fi
4594 ac_test_CFLAGS=${CFLAGS+set}
4595 ac_save_CFLAGS=$CFLAGS
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4597 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4598 if ${ac_cv_prog_cc_g+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 ac_save_c_werror_flag=$ac_c_werror_flag
4602 ac_c_werror_flag=yes
4603 ac_cv_prog_cc_g=no
4604 CFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607
4608 int
4609 main ()
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_prog_cc_g=yes
4618 else
4619 CFLAGS=""
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632
4633 else
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635 CFLAGS="-g"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642
4643 ;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_prog_cc_g=yes
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 fi
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_c_werror_flag=$ac_save_c_werror_flag
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4658 $as_echo "$ac_cv_prog_cc_g" >&6; }
4659 if test "$ac_test_CFLAGS" = set; then
4660 CFLAGS=$ac_save_CFLAGS
4661 elif test $ac_cv_prog_cc_g = yes; then
4662 if test "$GCC" = yes; then
4663 CFLAGS="-g -O2"
4664 else
4665 CFLAGS="-g"
4666 fi
4667 else
4668 if test "$GCC" = yes; then
4669 CFLAGS="-O2"
4670 else
4671 CFLAGS=
4672 fi
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4675 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4676 if ${ac_cv_prog_cc_c89+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 ac_cv_prog_cc_c89=no
4680 ac_save_CC=$CC
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #include <stdarg.h>
4684 #include <stdio.h>
4685 struct stat;
4686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4687 struct buf { int x; };
4688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4689 static char *e (p, i)
4690 char **p;
4691 int i;
4692 {
4693 return p[i];
4694 }
4695 static char *f (char * (*g) (char **, int), char **p, ...)
4696 {
4697 char *s;
4698 va_list v;
4699 va_start (v,p);
4700 s = g (p, va_arg (v,int));
4701 va_end (v);
4702 return s;
4703 }
4704
4705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4706 function prototypes and stuff, but not '\xHH' hex character constants.
4707 These don't provoke an error unfortunately, instead are silently treated
4708 as 'x'. The following induces an error, until -std is added to get
4709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4710 array size at least. It's necessary to write '\x00'==0 to get something
4711 that's true only with -std. */
4712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4713
4714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4715 inside strings and character constants. */
4716 #define FOO(x) 'x'
4717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4718
4719 int test (int i, double x);
4720 struct s1 {int (*f) (int a);};
4721 struct s2 {int (*f) (double a);};
4722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4723 int argc;
4724 char **argv;
4725 int
4726 main ()
4727 {
4728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4735 do
4736 CC="$ac_save_CC $ac_arg"
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_prog_cc_c89=$ac_arg
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext
4741 test "x$ac_cv_prog_cc_c89" != "xno" && break
4742 done
4743 rm -f conftest.$ac_ext
4744 CC=$ac_save_CC
4745
4746 fi
4747 # AC_CACHE_VAL
4748 case "x$ac_cv_prog_cc_c89" in
4749 x)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4751 $as_echo "none needed" >&6; } ;;
4752 xno)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4754 $as_echo "unsupported" >&6; } ;;
4755 *)
4756 CC="$CC $ac_cv_prog_cc_c89"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4758 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4759 esac
4760 if test "x$ac_cv_prog_cc_c89" != xno; then :
4761
4762 fi
4763
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769
4770 ac_ext=cpp
4771 ac_cpp='$CXXCPP $CPPFLAGS'
4772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4775 if test -z "$CXX"; then
4776 if test -n "$CCC"; then
4777 CXX=$CCC
4778 else
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4781 do
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_CXX+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$CXX"; then
4790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803 done
4804 done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 CXX=$ac_cv_prog_CXX
4810 if test -n "$CXX"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4812 $as_echo "$CXX" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 test -n "$CXX" && break
4820 done
4821 fi
4822 if test -z "$CXX"; then
4823 ac_ct_CXX=$CXX
4824 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4825 do
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ac_ct_CXX"; then
4834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_ac_ct_CXX="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4854 if test -n "$ac_ct_CXX"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4856 $as_echo "$ac_ct_CXX" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 test -n "$ac_ct_CXX" && break
4864 done
4865
4866 if test "x$ac_ct_CXX" = x; then
4867 CXX="g++"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CXX=$ac_ct_CXX
4876 fi
4877 fi
4878
4879 fi
4880 fi
4881 # Provide some information about the compiler.
4882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4883 set X $ac_compile
4884 ac_compiler=$2
4885 for ac_option in --version -v -V -qversion; do
4886 { { ac_try="$ac_compiler $ac_option >&5"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4892 $as_echo "$ac_try_echo"; } >&5
4893 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4894 ac_status=$?
4895 if test -s conftest.err; then
4896 sed '10a\
4897 ... rest of stderr output deleted ...
4898 10q' conftest.err >conftest.er1
4899 cat conftest.er1 >&5
4900 fi
4901 rm -f conftest.er1 conftest.err
4902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903 test $ac_status = 0; }
4904 done
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4907 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4908 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913
4914 int
4915 main ()
4916 {
4917 #ifndef __GNUC__
4918 choke me
4919 #endif
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_cxx_try_compile "$LINENO"; then :
4926 ac_compiler_gnu=yes
4927 else
4928 ac_compiler_gnu=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4932
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4935 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4936 if test $ac_compiler_gnu = yes; then
4937 GXX=yes
4938 else
4939 GXX=
4940 fi
4941 ac_test_CXXFLAGS=${CXXFLAGS+set}
4942 ac_save_CXXFLAGS=$CXXFLAGS
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4944 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4945 if ${ac_cv_prog_cxx_g+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4949 ac_cxx_werror_flag=yes
4950 ac_cv_prog_cxx_g=no
4951 CXXFLAGS="-g"
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_cxx_try_compile "$LINENO"; then :
4964 ac_cv_prog_cxx_g=yes
4965 else
4966 CXXFLAGS=""
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969
4970 int
4971 main ()
4972 {
4973
4974 ;
4975 return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979
4980 else
4981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4982 CXXFLAGS="-g"
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985
4986 int
4987 main ()
4988 {
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 ac_cv_prog_cxx_g=yes
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5005 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5006 if test "$ac_test_CXXFLAGS" = set; then
5007 CXXFLAGS=$ac_save_CXXFLAGS
5008 elif test $ac_cv_prog_cxx_g = yes; then
5009 if test "$GXX" = yes; then
5010 CXXFLAGS="-g -O2"
5011 else
5012 CXXFLAGS="-g"
5013 fi
5014 else
5015 if test "$GXX" = yes; then
5016 CXXFLAGS="-O2"
5017 else
5018 CXXFLAGS=
5019 fi
5020 fi
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027
5028 # We must set the default linker to the linker used by gcc for the correct
5029 # operation of libtool. If LD is not defined and we are using gcc, try to
5030 # set the LD default to the ld used by gcc.
5031 if test -z "$LD"; then
5032 if test "$GCC" = yes; then
5033 case $build in
5034 *-*-mingw*)
5035 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5036 *)
5037 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5038 esac
5039 case $gcc_prog_ld in
5040 # Accept absolute paths.
5041 [\\/]* | [A-Za-z]:[\\/]*)
5042 LD="$gcc_prog_ld" ;;
5043 esac
5044 fi
5045 fi
5046
5047 # Check whether -static-libstdc++ -static-libgcc is supported.
5048 have_static_libs=no
5049 if test "$GCC" = yes; then
5050 saved_LDFLAGS="$LDFLAGS"
5051
5052 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5054 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5055 ac_ext=cpp
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060
5061
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064
5065 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5066 #error -static-libstdc++ not implemented
5067 #endif
5068 int main() {}
5069 _ACEOF
5070 if ac_fn_cxx_try_link "$LINENO"; then :
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5072 $as_echo "yes" >&6; }; have_static_libs=yes
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext conftest.$ac_ext
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086 LDFLAGS="$saved_LDFLAGS"
5087 fi
5088
5089
5090
5091
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_GNATBIND+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$GNATBIND"; then
5101 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 GNATBIND=$ac_cv_prog_GNATBIND
5121 if test -n "$GNATBIND"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5123 $as_echo "$GNATBIND" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_GNATBIND"; then
5132 ac_ct_GNATBIND=$GNATBIND
5133 # Extract the first word of "gnatbind", so it can be a program name with args.
5134 set dummy gnatbind; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_GNATBIND"; then
5141 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5153 fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5161 if test -n "$ac_ct_GNATBIND"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5163 $as_echo "$ac_ct_GNATBIND" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169 if test "x$ac_ct_GNATBIND" = x; then
5170 GNATBIND="no"
5171 else
5172 case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178 GNATBIND=$ac_ct_GNATBIND
5179 fi
5180 else
5181 GNATBIND="$ac_cv_prog_GNATBIND"
5182 fi
5183
5184 if test -n "$ac_tool_prefix"; then
5185 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_prog_GNATMAKE+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if test -n "$GNATMAKE"; then
5193 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5194 else
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210 fi
5211 fi
5212 GNATMAKE=$ac_cv_prog_GNATMAKE
5213 if test -n "$GNATMAKE"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5215 $as_echo "$GNATMAKE" >&6; }
5216 else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218 $as_echo "no" >&6; }
5219 fi
5220
5221
5222 fi
5223 if test -z "$ac_cv_prog_GNATMAKE"; then
5224 ac_ct_GNATMAKE=$GNATMAKE
5225 # Extract the first word of "gnatmake", so it can be a program name with args.
5226 set dummy gnatmake; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$ac_ct_GNATMAKE"; then
5233 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 fi
5251 fi
5252 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5253 if test -n "$ac_ct_GNATMAKE"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5255 $as_echo "$ac_ct_GNATMAKE" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261 if test "x$ac_ct_GNATMAKE" = x; then
5262 GNATMAKE="no"
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265 yes:)
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5269 esac
5270 GNATMAKE=$ac_ct_GNATMAKE
5271 fi
5272 else
5273 GNATMAKE="$ac_cv_prog_GNATMAKE"
5274 fi
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5277 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5278 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 cat >conftest.adb <<EOF
5282 procedure conftest is begin null; end conftest;
5283 EOF
5284 acx_cv_cc_gcc_supports_ada=no
5285 # There is a bug in old released versions of GCC which causes the
5286 # driver to exit successfully when the appropriate language module
5287 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5288 # Therefore we must check for the error message as well as an
5289 # unsuccessful exit.
5290 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5291 # given a .adb file, but produce no object file. So we must check
5292 # if an object file was really produced to guard against this.
5293 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5294 if test x"$errors" = x && test -f conftest.$ac_objext; then
5295 acx_cv_cc_gcc_supports_ada=yes
5296 fi
5297 rm -f conftest.*
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5300 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5301
5302 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5303 have_gnat=yes
5304 else
5305 have_gnat=no
5306 fi
5307
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5309 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5310 if ${gcc_cv_prog_cmp_skip+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 echo abfoo >t1
5314 echo cdfoo >t2
5315 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5316 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5317 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5318 :
5319 else
5320 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5321 fi
5322 fi
5323 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5324 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5325 :
5326 else
5327 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5328 fi
5329 fi
5330 rm t1 t2
5331
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5334 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5335 do_compare="$gcc_cv_prog_cmp_skip"
5336
5337
5338
5339 # Check whether --enable-bootstrap was given.
5340 if test "${enable_bootstrap+set}" = set; then :
5341 enableval=$enable_bootstrap;
5342 else
5343 enable_bootstrap=default
5344 fi
5345
5346
5347 # Issue errors and warnings for invalid/strange bootstrap combinations.
5348 if test -r $srcdir/gcc/configure; then
5349 have_compiler=yes
5350 else
5351 have_compiler=no
5352 fi
5353
5354 case "$have_compiler:$host:$target:$enable_bootstrap" in
5355 *:*:*:no) ;;
5356
5357 # Default behavior. Enable bootstrap if we have a compiler
5358 # and we are in a native configuration.
5359 yes:$build:$build:default)
5360 enable_bootstrap=yes ;;
5361
5362 *:*:*:default)
5363 enable_bootstrap=no ;;
5364
5365 # We have a compiler and we are in a native configuration, bootstrap is ok
5366 yes:$build:$build:yes)
5367 ;;
5368
5369 # Other configurations, but we have a compiler. Assume the user knows
5370 # what he's doing.
5371 yes:*:*:yes)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5373 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5374 ;;
5375
5376 # No compiler: if they passed --enable-bootstrap explicitly, fail
5377 no:*:*:yes)
5378 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5379
5380 # Fail if wrong command line
5381 *)
5382 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5383 ;;
5384 esac
5385
5386 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5387 # C++98 compiler can still start the bootstrap.
5388 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5389 CXX="$CXX -std=gnu++98"
5390 fi
5391
5392 # Used for setting $lt_cv_objdir
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5394 $as_echo_n "checking for objdir... " >&6; }
5395 if ${lt_cv_objdir+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 rm -f .libs 2>/dev/null
5399 mkdir .libs 2>/dev/null
5400 if test -d .libs; then
5401 lt_cv_objdir=.libs
5402 else
5403 # MS-DOS does not allow filenames that begin with a dot.
5404 lt_cv_objdir=_libs
5405 fi
5406 rmdir .libs 2>/dev/null
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5409 $as_echo "$lt_cv_objdir" >&6; }
5410 objdir=$lt_cv_objdir
5411
5412
5413
5414
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LT_OBJDIR "$lt_cv_objdir/"
5418 _ACEOF
5419
5420
5421
5422 # Check for GMP, MPFR and MPC
5423 gmplibs="-lmpc -lmpfr -lgmp"
5424 gmpinc=
5425 have_gmp=no
5426
5427 # Specify a location for mpc
5428 # check for this first so it ends up on the link line before mpfr.
5429
5430 # Check whether --with-mpc was given.
5431 if test "${with_mpc+set}" = set; then :
5432 withval=$with_mpc;
5433 fi
5434
5435
5436 # Check whether --with-mpc-include was given.
5437 if test "${with_mpc_include+set}" = set; then :
5438 withval=$with_mpc_include;
5439 fi
5440
5441
5442 # Check whether --with-mpc-lib was given.
5443 if test "${with_mpc_lib+set}" = set; then :
5444 withval=$with_mpc_lib;
5445 fi
5446
5447
5448 if test "x$with_mpc" != x; then
5449 gmplibs="-L$with_mpc/lib $gmplibs"
5450 gmpinc="-I$with_mpc/include $gmpinc"
5451 fi
5452 if test "x$with_mpc_include" != x; then
5453 gmpinc="-I$with_mpc_include $gmpinc"
5454 fi
5455 if test "x$with_mpc_lib" != x; then
5456 gmplibs="-L$with_mpc_lib $gmplibs"
5457 fi
5458 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5459 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5460 gmpinc='-I$$s/mpc/src '"$gmpinc"
5461 # Do not test the mpc version. Assume that it is sufficient, since
5462 # it is in the source tree, and the library has not been built yet
5463 # but it would be included on the link line in the version check below
5464 # hence making the test fail.
5465 have_gmp=yes
5466 fi
5467
5468 # Specify a location for mpfr
5469 # check for this first so it ends up on the link line before gmp.
5470
5471 # Check whether --with-mpfr-dir was given.
5472 if test "${with_mpfr_dir+set}" = set; then :
5473 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5474 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5475 fi
5476
5477
5478
5479 # Check whether --with-mpfr was given.
5480 if test "${with_mpfr+set}" = set; then :
5481 withval=$with_mpfr;
5482 fi
5483
5484
5485 # Check whether --with-mpfr-include was given.
5486 if test "${with_mpfr_include+set}" = set; then :
5487 withval=$with_mpfr_include;
5488 fi
5489
5490
5491 # Check whether --with-mpfr-lib was given.
5492 if test "${with_mpfr_lib+set}" = set; then :
5493 withval=$with_mpfr_lib;
5494 fi
5495
5496
5497 if test "x$with_mpfr" != x; then
5498 gmplibs="-L$with_mpfr/lib $gmplibs"
5499 gmpinc="-I$with_mpfr/include $gmpinc"
5500 fi
5501 if test "x$with_mpfr_include" != x; then
5502 gmpinc="-I$with_mpfr_include $gmpinc"
5503 fi
5504 if test "x$with_mpfr_lib" != x; then
5505 gmplibs="-L$with_mpfr_lib $gmplibs"
5506 fi
5507 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5508 # MPFR v3.1.0 moved the sources into a src sub-directory.
5509 if ! test -d ${srcdir}/mpfr/src; then
5510 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5511 fi
5512 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5513 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5514 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5515 # Do not test the mpfr version. Assume that it is sufficient, since
5516 # it is in the source tree, and the library has not been built yet
5517 # but it would be included on the link line in the version check below
5518 # hence making the test fail.
5519 have_gmp=yes
5520 fi
5521
5522 # Specify a location for gmp
5523
5524 # Check whether --with-gmp-dir was given.
5525 if test "${with_gmp_dir+set}" = set; then :
5526 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5527 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5528 fi
5529
5530
5531
5532 # Check whether --with-gmp was given.
5533 if test "${with_gmp+set}" = set; then :
5534 withval=$with_gmp;
5535 fi
5536
5537
5538 # Check whether --with-gmp-include was given.
5539 if test "${with_gmp_include+set}" = set; then :
5540 withval=$with_gmp_include;
5541 fi
5542
5543
5544 # Check whether --with-gmp-lib was given.
5545 if test "${with_gmp_lib+set}" = set; then :
5546 withval=$with_gmp_lib;
5547 fi
5548
5549
5550
5551 if test "x$with_gmp" != x; then
5552 gmplibs="-L$with_gmp/lib $gmplibs"
5553 gmpinc="-I$with_gmp/include $gmpinc"
5554 fi
5555 if test "x$with_gmp_include" != x; then
5556 gmpinc="-I$with_gmp_include $gmpinc"
5557 fi
5558 if test "x$with_gmp_lib" != x; then
5559 gmplibs="-L$with_gmp_lib $gmplibs"
5560 fi
5561 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5562 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5563 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5564 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5565 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5566 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5567 # Do not test the gmp version. Assume that it is sufficient, since
5568 # it is in the source tree, and the library has not been built yet
5569 # but it would be included on the link line in the version check below
5570 # hence making the test fail.
5571 have_gmp=yes
5572 fi
5573
5574 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5575 have_gmp=yes
5576 saved_CFLAGS="$CFLAGS"
5577 CFLAGS="$CFLAGS $gmpinc"
5578 # Check for the recommended and required versions of GMP.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5580 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5581
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include "gmp.h"
5585 int
5586 main ()
5587 {
5588
5589 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5590 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5591 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5592 choke me
5593 #endif
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 #include <gmp.h>
5603 int
5604 main ()
5605 {
5606
5607 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5608 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5609 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5610 choke me
5611 #endif
5612
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619 $as_echo "yes" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5622 $as_echo "buggy but acceptable" >&6; }
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }; have_gmp=no
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630
5631 # If we have GMP, check the MPFR version.
5632 if test x"$have_gmp" = xyes; then
5633 # Check for the recommended and required versions of MPFR.
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5635 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <gmp.h>
5639 #include <mpfr.h>
5640 int
5641 main ()
5642 {
5643
5644 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5645 choke me
5646 #endif
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <gmp.h>
5656 #include <mpfr.h>
5657 int
5658 main ()
5659 {
5660
5661 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5662 choke me
5663 #endif
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671 $as_echo "yes" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5674 $as_echo "buggy but acceptable" >&6; }
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }; have_gmp=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683
5684 # Check for the MPC header version.
5685 if test x"$have_gmp" = xyes ; then
5686 # Check for the recommended and required versions of MPC.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5688 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <mpc.h>
5692 int
5693 main ()
5694 {
5695
5696 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5697 choke me
5698 #endif
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <mpc.h>
5708 int
5709 main ()
5710 {
5711
5712 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
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 # Now check the MPFR library.
5736 if test x"$have_gmp" = xyes; then
5737 saved_LIBS="$LIBS"
5738 LIBS="$LIBS $gmplibs"
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5740 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <mpc.h>
5744 int
5745 main ()
5746 {
5747
5748 mpfr_t n;
5749 mpfr_t x;
5750 mpc_t c;
5751 int t;
5752 mpfr_init (n);
5753 mpfr_init (x);
5754 mpfr_atan2 (n, n, x, GMP_RNDN);
5755 mpfr_erfc (n, x, GMP_RNDN);
5756 mpfr_subnormalize (x, t, GMP_RNDN);
5757 mpfr_clear(n);
5758 mpfr_clear(x);
5759 mpc_init2 (c, 53);
5760 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5761 mpc_cosh (c, c, MPC_RNDNN);
5762 mpc_pow (c, c, c, MPC_RNDNN);
5763 mpc_acosh (c, c, MPC_RNDNN);
5764 mpc_clear (c);
5765
5766 ;
5767 return 0;
5768 }
5769 _ACEOF
5770 if ac_fn_c_try_link "$LINENO"; then :
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5772 $as_echo "yes" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }; have_gmp=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 LIBS="$saved_LIBS"
5780 fi
5781
5782 CFLAGS="$saved_CFLAGS"
5783
5784 # The library versions listed in the error message below should match
5785 # the HARD-minimums enforced above.
5786 if test x$have_gmp != xyes; then
5787 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5788 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5789 their locations. Source code for these libraries can be found at
5790 their respective hosting sites as well as at
5791 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5792 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5793 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5794 make sure that you have installed both the libraries and the header
5795 files. They may be located in separate packages." "$LINENO" 5
5796 fi
5797 fi
5798
5799 # Flags needed for both GMP, MPFR and/or MPC.
5800
5801
5802
5803
5804
5805
5806
5807 # Libraries to use for stage1 or when not bootstrapping.
5808
5809 # Check whether --with-stage1-libs was given.
5810 if test "${with_stage1_libs+set}" = set; then :
5811 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5812 stage1_libs=
5813 else
5814 stage1_libs=$withval
5815 fi
5816 else
5817 stage1_libs=
5818 fi
5819
5820
5821
5822 # Linker flags to use for stage1 or when not bootstrapping.
5823
5824 # Check whether --with-stage1-ldflags was given.
5825 if test "${with_stage1_ldflags+set}" = set; then :
5826 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5827 stage1_ldflags=
5828 else
5829 stage1_ldflags=$withval
5830 fi
5831 else
5832 stage1_ldflags=
5833 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5834 # if supported. But if the user explicitly specified the libraries to use,
5835 # trust that they are doing what they want.
5836 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5837 stage1_ldflags="-static-libstdc++ -static-libgcc"
5838 fi
5839 fi
5840
5841
5842
5843 # Libraries to use for stage2 and later builds.
5844
5845 # Check whether --with-boot-libs was given.
5846 if test "${with_boot_libs+set}" = set; then :
5847 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5848 poststage1_libs=
5849 else
5850 poststage1_libs=$withval
5851 fi
5852 else
5853 poststage1_libs=
5854 fi
5855
5856
5857
5858 # Linker flags to use for stage2 and later builds.
5859
5860 # Check whether --with-boot-ldflags was given.
5861 if test "${with_boot_ldflags+set}" = set; then :
5862 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5863 poststage1_ldflags=
5864 else
5865 poststage1_ldflags=$withval
5866 fi
5867 else
5868 poststage1_ldflags=
5869 # In stages 2 and 3, default to linking libstdc++ and libgcc
5870 # statically. But if the user explicitly specified the libraries to
5871 # use, trust that they are doing what they want.
5872 if test "$poststage1_libs" = ""; then
5873 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5874 fi
5875 fi
5876
5877
5878
5879 # GCC GRAPHITE dependency isl.
5880 # Basic setup is inlined here, actual checks are in config/isl.m4
5881
5882
5883 # Check whether --with-isl was given.
5884 if test "${with_isl+set}" = set; then :
5885 withval=$with_isl;
5886 fi
5887
5888
5889 # Treat --without-isl as a request to disable
5890 # GRAPHITE support and skip all following checks.
5891 if test "x$with_isl" != "xno"; then
5892 # Check for isl
5893
5894
5895 # Check whether --with-isl-include was given.
5896 if test "${with_isl_include+set}" = set; then :
5897 withval=$with_isl_include;
5898 fi
5899
5900
5901 # Check whether --with-isl-lib was given.
5902 if test "${with_isl_lib+set}" = set; then :
5903 withval=$with_isl_lib;
5904 fi
5905
5906
5907 # Check whether --enable-isl-version-check was given.
5908 if test "${enable_isl_version_check+set}" = set; then :
5909 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5910 else
5911 ENABLE_ISL_CHECK=yes
5912 fi
5913
5914
5915 # Initialize isllibs and islinc.
5916 case $with_isl in
5917 no)
5918 isllibs=
5919 islinc=
5920 ;;
5921 "" | yes)
5922 ;;
5923 *)
5924 isllibs="-L$with_isl/lib"
5925 islinc="-I$with_isl/include"
5926 ;;
5927 esac
5928 if test "x${with_isl_include}" != x ; then
5929 islinc="-I$with_isl_include"
5930 fi
5931 if test "x${with_isl_lib}" != x; then
5932 isllibs="-L$with_isl_lib"
5933 fi
5934 if test "x${islinc}" = x && test "x${isllibs}" = x \
5935 && test -d ${srcdir}/isl; then
5936 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5937 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5938 ENABLE_ISL_CHECK=no
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5940 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5941 fi
5942
5943 isllibs="${isllibs} -lisl"
5944
5945
5946
5947 if test "${ENABLE_ISL_CHECK}" = yes ; then
5948 _isl_saved_CFLAGS=$CFLAGS
5949 _isl_saved_LDFLAGS=$LDFLAGS
5950 _isl_saved_LIBS=$LIBS
5951
5952 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5953 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5954 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5955
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5957 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <isl/schedule.h>
5961 int
5962 main ()
5963 {
5964 isl_options_set_schedule_serialize_sccs (NULL, 0);
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 gcc_cv_isl=yes
5971 else
5972 gcc_cv_isl=no
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5977 $as_echo "$gcc_cv_isl" >&6; }
5978
5979 if test "${gcc_cv_isl}" = no ; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5981 $as_echo "required isl version is 0.15 or later" >&6; }
5982 fi
5983
5984 CFLAGS=$_isl_saved_CFLAGS
5985 LDFLAGS=$_isl_saved_LDFLAGS
5986 LIBS=$_isl_saved_LIBS
5987 fi
5988
5989
5990
5991
5992
5993
5994 if test "x${with_isl}" = xno; then
5995 graphite_requested=no
5996 elif test "x${with_isl}" != x \
5997 || test "x${with_isl_include}" != x \
5998 || test "x${with_isl_lib}" != x ; then
5999 graphite_requested=yes
6000 else
6001 graphite_requested=no
6002 fi
6003
6004
6005
6006 if test "${gcc_cv_isl}" = no ; then
6007 isllibs=
6008 islinc=
6009 fi
6010
6011 if test "${graphite_requested}" = yes \
6012 && test "x${isllibs}" = x \
6013 && test "x${islinc}" = x ; then
6014
6015 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6016 fi
6017
6018
6019 fi
6020
6021 # If the isl check failed, disable builds of in-tree variant of isl
6022 if test "x$with_isl" = xno ||
6023 test "x$gcc_cv_isl" = xno; then
6024 noconfigdirs="$noconfigdirs isl"
6025 islinc=
6026 fi
6027
6028
6029
6030
6031 # Check for LTO support.
6032 # Check whether --enable-lto was given.
6033 if test "${enable_lto+set}" = set; then :
6034 enableval=$enable_lto; enable_lto=$enableval
6035 else
6036 enable_lto=yes; default_enable_lto=yes
6037 fi
6038
6039
6040
6041
6042
6043 target_elf=no
6044 case $target in
6045 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6046 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6047 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6048 nvptx-*-none)
6049 target_elf=no
6050 ;;
6051 *)
6052 target_elf=yes
6053 ;;
6054 esac
6055
6056 if test $target_elf = yes; then :
6057 # ELF platforms build the lto-plugin always.
6058 build_lto_plugin=yes
6059
6060 else
6061 if test x"$default_enable_lto" = x"yes" ; then
6062 case $target in
6063 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6064 # On other non-ELF platforms, LTO has yet to be validated.
6065 *) enable_lto=no ;;
6066 esac
6067 else
6068 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6069 # It would also be nice to check the binutils support, but we don't
6070 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6071 # warn during gcc/ subconfigure; unless you're bootstrapping with
6072 # -flto it won't be needed until after installation anyway.
6073 case $target in
6074 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6075 *) if test x"$enable_lto" = x"yes"; then
6076 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6077 fi
6078 ;;
6079 esac
6080 fi
6081 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6082 # Build it unless LTO was explicitly disabled.
6083 case $target in
6084 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6085 *) ;;
6086 esac
6087
6088 fi
6089
6090
6091 # Check whether --enable-linker-plugin-configure-flags was given.
6092 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6093 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6094 else
6095 extra_linker_plugin_configure_flags=
6096 fi
6097
6098
6099 # Check whether --enable-linker-plugin-flags was given.
6100 if test "${enable_linker_plugin_flags+set}" = set; then :
6101 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6102 else
6103 extra_linker_plugin_flags=
6104 fi
6105
6106
6107
6108 # Enable --enable-host-shared.
6109 # Checked early to determine whether jit is an 'all' language
6110 # Check whether --enable-host-shared was given.
6111 if test "${enable_host_shared+set}" = set; then :
6112 enableval=$enable_host_shared; host_shared=$enableval
6113 else
6114 host_shared=no
6115 fi
6116
6117
6118
6119 # By default, C and C++ are the only stage 1 languages.
6120 stage1_languages=,c,
6121
6122 # Target libraries that we bootstrap.
6123 bootstrap_target_libs=,target-libgcc,
6124
6125 # Figure out what language subdirectories are present.
6126 # Look if the user specified --enable-languages="..."; if not, use
6127 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6128 # go away some day.
6129 # NB: embedded tabs in this IF block -- do not untabify
6130 if test -d ${srcdir}/gcc; then
6131 if test x"${enable_languages+set}" != xset; then
6132 if test x"${LANGUAGES+set}" = xset; then
6133 enable_languages="${LANGUAGES}"
6134 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6135 else
6136 enable_languages=default
6137 fi
6138 else
6139 if test x"${enable_languages}" = x ||
6140 test x"${enable_languages}" = xyes;
6141 then
6142 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6143 exit 1
6144 fi
6145 fi
6146 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6147
6148 # 'f95' is the old name for the 'fortran' language. We issue a warning
6149 # and make the substitution.
6150 case ,${enable_languages}, in
6151 *,f95,*)
6152 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6153 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6154 ;;
6155 esac
6156
6157 # If bootstrapping, C++ must be enabled.
6158 case ",$enable_languages,:$enable_bootstrap" in
6159 *,c++,*:*) ;;
6160 *:yes)
6161 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6162 enable_languages="${enable_languages},c++"
6163 else
6164 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6165 fi
6166 ;;
6167 esac
6168
6169 # First scan to see if an enabled language requires some other language.
6170 # We assume that a given config-lang.in will list all the language
6171 # front ends it requires, even if some are required indirectly.
6172 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6173 case ${lang_frag} in
6174 ..) ;;
6175 # The odd quoting in the next line works around
6176 # an apparent bug in bash 1.12 on linux.
6177 ${srcdir}/gcc/[*]/config-lang.in) ;;
6178 *)
6179 # From the config-lang.in, get $language, $lang_requires, and
6180 # $lang_requires_boot_languages.
6181 language=
6182 lang_requires=
6183 lang_requires_boot_languages=
6184 # set srcdir during sourcing lang_frag to the gcc dir.
6185 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6186 # polutes this shell
6187 saved_srcdir=${srcdir}
6188 srcdir=${srcdir}/gcc . ${lang_frag}
6189 srcdir=${saved_srcdir}
6190 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6191 case ,${enable_languages}, in
6192 *,$other,*) ;;
6193 *,default,*) ;;
6194 *,all,*) ;;
6195 *,$language,*)
6196 echo " \`$other' language required by \`$language'; enabling" 1>&2
6197 enable_languages="${enable_languages},${other}"
6198 ;;
6199 esac
6200 done
6201 for other in ${lang_requires_boot_languages} ; do
6202 if test "$other" != "c"; then
6203 case ,${enable_stage1_languages}, in
6204 *,$other,*) ;;
6205 *,default,*) ;;
6206 *,all,*) ;;
6207 *)
6208 case ,${enable_languages}, in
6209 *,$language,*)
6210 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6211 enable_stage1_languages="$enable_stage1_languages,${other}"
6212 ;;
6213 esac
6214 ;;
6215 esac
6216 fi
6217 done
6218 ;;
6219 esac
6220 done
6221
6222 new_enable_languages=,c,
6223
6224 # If LTO is enabled, add the LTO front end.
6225 if test "$enable_lto" = "yes" ; then
6226 case ,${enable_languages}, in
6227 *,lto,*) ;;
6228 *) enable_languages="${enable_languages},lto" ;;
6229 esac
6230 if test "${build_lto_plugin}" = "yes" ; then
6231 configdirs="$configdirs lto-plugin"
6232 fi
6233 fi
6234
6235 # If we're building an offloading compiler, add the LTO front end.
6236 if test x"$enable_as_accelerator_for" != x ; then
6237 case ,${enable_languages}, in
6238 *,lto,*) ;;
6239 *) enable_languages="${enable_languages},lto" ;;
6240 esac
6241 fi
6242
6243 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6244 potential_languages=,c,
6245
6246 enabled_target_libs=
6247 disabled_target_libs=
6248
6249 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6250 case ${lang_frag} in
6251 ..) ;;
6252 # The odd quoting in the next line works around
6253 # an apparent bug in bash 1.12 on linux.
6254 ${srcdir}/gcc/[*]/config-lang.in) ;;
6255 *)
6256 # From the config-lang.in, get $language, $target_libs,
6257 # $lang_dirs, $boot_language, and $build_by_default
6258 language=
6259 target_libs=
6260 lang_dirs=
6261 subdir_requires=
6262 boot_language=no
6263 build_by_default=yes
6264 # set srcdir during sourcing. See above about save & restore
6265 saved_srcdir=${srcdir}
6266 srcdir=${srcdir}/gcc . ${lang_frag}
6267 srcdir=${saved_srcdir}
6268 if test x${language} = x; then
6269 echo "${lang_frag} doesn't set \$language." 1>&2
6270 exit 1
6271 fi
6272
6273 if test "$language" = "c++"; then
6274 boot_language=yes
6275 fi
6276
6277 add_this_lang=no
6278 # C is always enabled, so no need to add it again
6279 if test "$language" != "c"; then
6280 case ,${enable_languages}, in
6281 *,${language},*)
6282 # Language was explicitly selected; include it
6283 add_this_lang=yes
6284 ;;
6285 *,all,*)
6286 # All languages are enabled
6287 add_this_lang=all
6288 ;;
6289 *,default,*)
6290 # 'default' was selected, select it if it is a default language
6291 add_this_lang=${build_by_default}
6292 ;;
6293 esac
6294 fi
6295
6296 # Disable languages that need other directories if these aren't available.
6297 for i in $subdir_requires; do
6298 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6299 case ${add_this_lang} in
6300 yes)
6301 # Specifically requested language; tell them.
6302 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6303 ;;
6304 all)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6306 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6307 add_this_lang=unsupported
6308 ;;
6309 *)
6310 # Silently disable.
6311 add_this_lang=unsupported
6312 ;;
6313 esac
6314 done
6315
6316 # Disable Ada if no preexisting GNAT is available.
6317 case ${add_this_lang}:${language}:${have_gnat} in
6318 yes:ada:no)
6319 # Specifically requested language; tell them.
6320 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6321 ;;
6322 all:ada:no)
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6324 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6325 add_this_lang=unsupported
6326 ;;
6327 *:ada:no)
6328 # Silently disable.
6329 add_this_lang=unsupported
6330 ;;
6331 esac
6332
6333 # Disable jit if -enable-host-shared not specified
6334 case ${add_this_lang}:${language}:${host_shared} in
6335 yes:jit:no)
6336 # PR jit/64780: explicitly specify --enable-host-shared
6337 as_fn_error $? "
6338 Enabling language \"jit\" requires --enable-host-shared.
6339
6340 --enable-host-shared typically slows the rest of the compiler down by
6341 a few %, so you must explicitly enable it.
6342
6343 If you want to build both the jit and the regular compiler, it is often
6344 best to do this via two separate configure/builds, in separate
6345 directories, to avoid imposing the performance cost of
6346 --enable-host-shared on the regular compiler." "$LINENO" 5
6347 ;;
6348 all:jit:no)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6350 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6351 add_this_lang=unsupported
6352 ;;
6353 *:jit:no)
6354 # Silently disable.
6355 add_this_lang=unsupported
6356 ;;
6357 esac
6358
6359 # Disable a language that is unsupported by the target.
6360 case "${add_this_lang}: $unsupported_languages " in
6361 no:*) ;;
6362 unsupported:*) ;;
6363 *:*" $language "*)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6365 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6366 add_this_lang=unsupported
6367 ;;
6368 esac
6369
6370 case $add_this_lang in
6371 unsupported)
6372 # Remove language-dependent dirs.
6373 disabled_target_libs="$disabled_target_libs $target_libs"
6374 noconfigdirs="$noconfigdirs $lang_dirs"
6375 ;;
6376 no)
6377 # Remove language-dependent dirs; still show language as supported.
6378 disabled_target_libs="$disabled_target_libs $target_libs"
6379 noconfigdirs="$noconfigdirs $lang_dirs"
6380 potential_languages="${potential_languages}${language},"
6381 ;;
6382 all|yes)
6383 new_enable_languages="${new_enable_languages}${language},"
6384 potential_languages="${potential_languages}${language},"
6385 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6386 enabled_target_libs="$enabled_target_libs $target_libs"
6387 case "${boot_language}:,$enable_stage1_languages," in
6388 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6389 # Add to (comma-separated) list of stage 1 languages.
6390 case ",$stage1_languages," in
6391 *,$language,* | ,yes, | ,all,) ;;
6392 *) stage1_languages="${stage1_languages}${language}," ;;
6393 esac
6394 # We need to bootstrap any supporting libraries.
6395 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6396 ;;
6397 esac
6398 ;;
6399 esac
6400 ;;
6401 esac
6402 done
6403
6404 # Add target libraries which are only needed for disabled languages
6405 # to noconfigdirs.
6406 if test -n "$disabled_target_libs"; then
6407 for dir in $disabled_target_libs; do
6408 case " $enabled_target_libs " in
6409 *" ${dir} "*) ;;
6410 *) noconfigdirs="$noconfigdirs $dir" ;;
6411 esac
6412 done
6413 fi
6414
6415 # Check whether --enable-stage1-languages was given.
6416 if test "${enable_stage1_languages+set}" = set; then :
6417 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6418 ,no,|,,)
6419 # Set it to something that will have no effect in the loop below
6420 enable_stage1_languages=c ;;
6421 ,yes,)
6422 enable_stage1_languages=`echo $new_enable_languages | \
6423 sed -e "s/^,//" -e "s/,$//" ` ;;
6424 *,all,*)
6425 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6426 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6427 esac
6428
6429 # Add "good" languages from enable_stage1_languages to stage1_languages,
6430 # while "bad" languages go in missing_languages. Leave no duplicates.
6431 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6432 case $potential_languages in
6433 *,$i,*)
6434 case $stage1_languages in
6435 *,$i,*) ;;
6436 *) stage1_languages="$stage1_languages$i," ;;
6437 esac ;;
6438 *)
6439 case $missing_languages in
6440 *,$i,*) ;;
6441 *) missing_languages="$missing_languages$i," ;;
6442 esac ;;
6443 esac
6444 done
6445 fi
6446
6447
6448 # Remove leading/trailing commas that were added for simplicity
6449 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6450 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6451 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6452 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6453
6454 if test "x$missing_languages" != x; then
6455 as_fn_error $? "
6456 The following requested languages could not be built: ${missing_languages}
6457 Supported languages are: ${potential_languages}" "$LINENO" 5
6458 fi
6459 if test "x$new_enable_languages" != "x$enable_languages"; then
6460 echo The following languages will be built: ${new_enable_languages}
6461 enable_languages="$new_enable_languages"
6462 fi
6463
6464
6465 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6466 fi
6467
6468 # Handle --disable-<component> generically.
6469 for dir in $configdirs $build_configdirs $target_configdirs ; do
6470 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6471 varname=`echo $dirname | sed -e s/+/_/g`
6472 if eval test x\${enable_${varname}} "=" xno ; then
6473 noconfigdirs="$noconfigdirs $dir"
6474 fi
6475 done
6476
6477 # Check for Boehm's garbage collector
6478 # Check whether --enable-objc-gc was given.
6479 if test "${enable_objc_gc+set}" = set; then :
6480 enableval=$enable_objc_gc;
6481 fi
6482
6483
6484 # Check whether --with-target-bdw-gc was given.
6485 if test "${with_target_bdw_gc+set}" = set; then :
6486 withval=$with_target_bdw_gc;
6487 fi
6488
6489
6490 # Check whether --with-target-bdw-gc-include was given.
6491 if test "${with_target_bdw_gc_include+set}" = set; then :
6492 withval=$with_target_bdw_gc_include;
6493 fi
6494
6495
6496 # Check whether --with-target-bdw-gc-lib was given.
6497 if test "${with_target_bdw_gc_lib+set}" = set; then :
6498 withval=$with_target_bdw_gc_lib;
6499 fi
6500
6501
6502 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6504 $as_echo_n "checking for bdw garbage collector... " >&6; }
6505 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6507 $as_echo "using bdw-gc in default locations" >&6; }
6508 else
6509 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6510 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6511 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6512 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6515 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6516 fi
6517 fi
6518 esac
6519
6520 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6521 case ,${enable_languages}, in
6522 *,c++,*)
6523 # Disable libitm, libsanitizer if we're not building libstdc++
6524 case "${noconfigdirs}" in
6525 *target-libstdc++-v3*)
6526 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6527 ;;
6528 *) ;;
6529 esac
6530 ;;
6531 *)
6532 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6533 ;;
6534 esac
6535
6536 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6537 # $build_configdirs and $target_configdirs.
6538 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6539
6540 notsupp=""
6541 for dir in . $skipdirs $noconfigdirs ; do
6542 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6543 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6544 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6545 if test -r $srcdir/$dirname/configure ; then
6546 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6547 true
6548 else
6549 notsupp="$notsupp $dir"
6550 fi
6551 fi
6552 fi
6553 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6554 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6555 if test -r $srcdir/$dirname/configure ; then
6556 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 true
6558 else
6559 notsupp="$notsupp $dir"
6560 fi
6561 fi
6562 fi
6563 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6565 if test -r $srcdir/$dirname/configure ; then
6566 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 true
6568 else
6569 notsupp="$notsupp $dir"
6570 fi
6571 fi
6572 fi
6573 done
6574
6575 # Quietly strip out all directories which aren't configurable in this tree.
6576 # This relies on all configurable subdirectories being autoconfiscated, which
6577 # is now the case.
6578 build_configdirs_all="$build_configdirs"
6579 build_configdirs=
6580 for i in ${build_configdirs_all} ; do
6581 j=`echo $i | sed -e s/build-//g`
6582 if test -f ${srcdir}/$j/configure ; then
6583 build_configdirs="${build_configdirs} $i"
6584 fi
6585 done
6586
6587 configdirs_all="$configdirs"
6588 configdirs=
6589 for i in ${configdirs_all} ; do
6590 if test -f ${srcdir}/$i/configure ; then
6591 configdirs="${configdirs} $i"
6592 fi
6593 done
6594
6595 target_configdirs_all="$target_configdirs"
6596 target_configdirs=
6597 for i in ${target_configdirs_all} ; do
6598 j=`echo $i | sed -e s/target-//g`
6599 if test -f ${srcdir}/$j/configure ; then
6600 target_configdirs="${target_configdirs} $i"
6601 fi
6602 done
6603
6604 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6605 # so we have to add it after the preceding checks.
6606 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6607 then
6608 case " $configdirs " in
6609 *" libiberty "*)
6610 # If we can build libiberty, we can also build libiberty-linker-plugin.
6611 configdirs="$configdirs libiberty-linker-plugin"
6612 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6613 --with-libiberty=../libiberty-linker-plugin";;
6614 *)
6615 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6616 esac
6617 fi
6618
6619 # Sometimes we have special requirements for the host libiberty.
6620 extra_host_libiberty_configure_flags=
6621 extra_host_zlib_configure_flags=
6622 case " $configdirs " in
6623 *" lto-plugin "* | *" libcc1 "*)
6624 # When these are to be built as shared libraries, the same applies to
6625 # libiberty.
6626 extra_host_libiberty_configure_flags=--enable-shared
6627 ;;
6628 *" bfd "*)
6629 # When bfd is to be built as a shared library, the same applies to
6630 # zlib.
6631 if test "$enable_shared" = "yes"; then
6632 extra_host_zlib_configure_flags=--enable-host-shared
6633 fi
6634 ;;
6635 esac
6636
6637
6638
6639 # Produce a warning message for the subdirs we can't configure.
6640 # This isn't especially interesting in the Cygnus tree, but in the individual
6641 # FSF releases, it's important to let people know when their machine isn't
6642 # supported by the one or two programs in a package.
6643
6644 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6645 # If $appdirs is non-empty, at least one of those directories must still
6646 # be configured, or we error out. (E.g., if the gas release supports a
6647 # specified target in some subdirs but not the gas subdir, we shouldn't
6648 # pretend that all is well.)
6649 if test -n "$appdirs" ; then
6650 for dir in $appdirs ; do
6651 if test -r $dir/Makefile.in ; then
6652 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6653 appdirs=""
6654 break
6655 fi
6656 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6657 appdirs=""
6658 break
6659 fi
6660 fi
6661 done
6662 if test -n "$appdirs" ; then
6663 echo "*** This configuration is not supported by this package." 1>&2
6664 exit 1
6665 fi
6666 fi
6667 # Okay, some application will build, or we don't care to check. Still
6668 # notify of subdirs not getting built.
6669 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6670 echo " ${notsupp}" 1>&2
6671 echo " (Any other directories should still work fine.)" 1>&2
6672 fi
6673
6674 case "$host" in
6675 *msdosdjgpp*)
6676 enable_gdbtk=no ;;
6677 esac
6678
6679 # To find our prefix, in gcc_cv_tool_prefix.
6680
6681 # The user is always right.
6682 if test "${PATH_SEPARATOR+set}" != set; then
6683 echo "#! /bin/sh" >conf$$.sh
6684 echo "exit 0" >>conf$$.sh
6685 chmod +x conf$$.sh
6686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6687 PATH_SEPARATOR=';'
6688 else
6689 PATH_SEPARATOR=:
6690 fi
6691 rm -f conf$$.sh
6692 fi
6693
6694
6695 get_gcc_base_ver="cat"
6696
6697 # Check whether --with-gcc-major-version-only was given.
6698 if test "${with_gcc_major_version_only+set}" = set; then :
6699 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6700 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6701 fi
6702
6703 fi
6704
6705
6706
6707
6708
6709
6710 if test "x$exec_prefix" = xNONE; then
6711 if test "x$prefix" = xNONE; then
6712 gcc_cv_tool_prefix=$ac_default_prefix
6713 else
6714 gcc_cv_tool_prefix=$prefix
6715 fi
6716 else
6717 gcc_cv_tool_prefix=$exec_prefix
6718 fi
6719
6720 # If there is no compiler in the tree, use the PATH only. In any
6721 # case, if there is no compiler in the tree nobody should use
6722 # AS_FOR_TARGET and LD_FOR_TARGET.
6723 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6724 if test x$with_gcc_major_version_only = xyes ; then
6725 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6726 else
6727 gcc_version=`cat $srcdir/gcc/BASE-VER`
6728 fi
6729 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6730 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6731 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6735 else
6736 gcc_cv_tool_dirs=
6737 fi
6738
6739 if test x$build = x$target && test -n "$md_exec_prefix"; then
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6741 fi
6742
6743
6744
6745 copy_dirs=
6746
6747
6748 # Check whether --with-build-sysroot was given.
6749 if test "${with_build_sysroot+set}" = set; then :
6750 withval=$with_build_sysroot; if test x"$withval" != x ; then
6751 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6752 fi
6753 else
6754 SYSROOT_CFLAGS_FOR_TARGET=
6755 fi
6756
6757
6758
6759
6760 # Check whether --with-debug-prefix-map was given.
6761 if test "${with_debug_prefix_map+set}" = set; then :
6762 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6763 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6764 for debug_map in $withval; do
6765 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6766 done
6767 fi
6768 else
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6770 fi
6771
6772
6773
6774 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6775 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6776 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6777 # We want to ensure that TARGET libraries (which we know are built with
6778 # gcc) are built with "-O2 -g", so include those options when setting
6779 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6780 if test "x$CFLAGS_FOR_TARGET" = x; then
6781 if test "x${is_cross_compiler}" = xyes; then
6782 CFLAGS_FOR_TARGET="-g -O2"
6783 else
6784 CFLAGS_FOR_TARGET=$CFLAGS
6785 case " $CFLAGS " in
6786 *" -O2 "*) ;;
6787 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6788 esac
6789 case " $CFLAGS " in
6790 *" -g "* | *" -g3 "*) ;;
6791 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6792 esac
6793 fi
6794 fi
6795
6796
6797 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6798 if test "x${is_cross_compiler}" = xyes; then
6799 CXXFLAGS_FOR_TARGET="-g -O2"
6800 else
6801 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6802 case " $CXXFLAGS " in
6803 *" -O2 "*) ;;
6804 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6805 esac
6806 case " $CXXFLAGS " in
6807 *" -g "* | *" -g3 "*) ;;
6808 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6809 esac
6810 fi
6811 fi
6812
6813
6814
6815
6816 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6817 # the named directory are copied to $(tooldir)/sys-include.
6818 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6819 if test x${is_cross_compiler} = xno ; then
6820 echo 1>&2 '***' --with-headers is only supported when cross compiling
6821 exit 1
6822 fi
6823 if test x"${with_headers}" != xyes ; then
6824 x=${gcc_cv_tool_prefix}
6825 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6826 fi
6827 fi
6828
6829 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6830 # the name directories are copied to $(tooldir)/lib. Multiple directories
6831 # are permitted.
6832 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6833 if test x${is_cross_compiler} = xno ; then
6834 echo 1>&2 '***' --with-libs is only supported when cross compiling
6835 exit 1
6836 fi
6837 if test x"${with_libs}" != xyes ; then
6838 # Copy the libraries in reverse order, so that files in the first named
6839 # library override files in subsequent libraries.
6840 x=${gcc_cv_tool_prefix}
6841 for l in ${with_libs}; do
6842 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6843 done
6844 fi
6845 fi
6846
6847 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6848 #
6849 # This is done by determining whether or not the appropriate directory
6850 # is available, and by checking whether or not specific configurations
6851 # have requested that this magic not happen.
6852 #
6853 # The command line options always override the explicit settings in
6854 # configure.ac, and the settings in configure.ac override this magic.
6855 #
6856 # If the default for a toolchain is to use GNU as and ld, and you don't
6857 # want to do that, then you should use the --without-gnu-as and
6858 # --without-gnu-ld options for the configure script. Similarly, if
6859 # the default is to use the included zlib and you don't want to do that,
6860 # you should use the --with-system-zlib option for the configure script.
6861
6862 if test x${use_gnu_as} = x &&
6863 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6864 with_gnu_as=yes
6865 extra_host_args="$extra_host_args --with-gnu-as"
6866 fi
6867
6868 if test x${use_gnu_ld} = x &&
6869 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6870 with_gnu_ld=yes
6871 extra_host_args="$extra_host_args --with-gnu-ld"
6872 fi
6873
6874 if test x${use_included_zlib} = x &&
6875 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6876 :
6877 else
6878 with_system_zlib=yes
6879 extra_host_args="$extra_host_args --with-system-zlib"
6880 fi
6881
6882 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6883 # can detect this case.
6884
6885 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6886 with_newlib=yes
6887 extra_host_args="$extra_host_args --with-newlib"
6888 fi
6889
6890 # Handle ${copy_dirs}
6891 set fnord ${copy_dirs}
6892 shift
6893 while test $# != 0 ; do
6894 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6895 :
6896 else
6897 echo Copying $1 to $2
6898
6899 # Use the install script to create the directory and all required
6900 # parent directories.
6901 if test -d $2 ; then
6902 :
6903 else
6904 echo >config.temp
6905 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6906 fi
6907
6908 # Copy the directory, assuming we have tar.
6909 # FIXME: Should we use B in the second tar? Not all systems support it.
6910 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6911
6912 # It is the responsibility of the user to correctly adjust all
6913 # symlinks. If somebody can figure out how to handle them correctly
6914 # here, feel free to add the code.
6915
6916 echo $1 > $2/COPIED
6917 fi
6918 shift; shift
6919 done
6920
6921 # Determine a target-dependent exec_prefix that the installed
6922 # gcc will search in. Keep this list sorted by triplet, with
6923 # the *-*-osname triplets last.
6924 md_exec_prefix=
6925 case "${target}" in
6926 i[34567]86-pc-msdosdjgpp*)
6927 md_exec_prefix=/dev/env/DJDIR/bin
6928 ;;
6929 *-*-hpux* | \
6930 *-*-nto-qnx* | \
6931 *-*-solaris2*)
6932 md_exec_prefix=/usr/ccs/bin
6933 ;;
6934 esac
6935
6936 extra_arflags_for_target=
6937 extra_nmflags_for_target=
6938 extra_ranlibflags_for_target=
6939 target_makefile_frag=/dev/null
6940 case "${target}" in
6941 spu-*-*)
6942 target_makefile_frag="config/mt-spu"
6943 ;;
6944 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6945 target_makefile_frag="config/mt-sde"
6946 ;;
6947 mipsisa*-*-elfoabi*)
6948 target_makefile_frag="config/mt-mips-elfoabi"
6949 ;;
6950 mips*-*-*linux* | mips*-*-gnu*)
6951 target_makefile_frag="config/mt-mips-gnu"
6952 ;;
6953 nios2-*-elf*)
6954 target_makefile_frag="config/mt-nios2-elf"
6955 ;;
6956 *-*-linux-android*)
6957 target_makefile_frag="config/mt-android"
6958 ;;
6959 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6960 target_makefile_frag="config/mt-gnu"
6961 ;;
6962 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6963 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6964 # commands to handle both 32-bit and 64-bit objects. These flags are
6965 # harmless if we're using GNU nm or ar.
6966 extra_arflags_for_target=" -X32_64"
6967 extra_nmflags_for_target=" -B -X32_64"
6968 ;;
6969 esac
6970
6971 alphaieee_frag=/dev/null
6972 case $target in
6973 alpha*-*-*)
6974 # This just makes sure to use the -mieee option to build target libs.
6975 # This should probably be set individually by each library.
6976 alphaieee_frag="config/mt-alphaieee"
6977 ;;
6978 esac
6979
6980 # If --enable-target-optspace always use -Os instead of -O2 to build
6981 # the target libraries, similarly if it is not specified, use -Os
6982 # on selected platforms.
6983 ospace_frag=/dev/null
6984 case "${enable_target_optspace}:${target}" in
6985 yes:*)
6986 ospace_frag="config/mt-ospace"
6987 ;;
6988 :d30v-*)
6989 ospace_frag="config/mt-d30v"
6990 ;;
6991 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6992 ospace_frag="config/mt-ospace"
6993 ;;
6994 no:* | :*)
6995 ;;
6996 *)
6997 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6998 ;;
6999 esac
7000
7001 # Some systems (e.g., one of the i386-aix systems the gas testers are
7002 # using) don't handle "\$" correctly, so don't use it here.
7003 tooldir='${exec_prefix}'/${target_noncanonical}
7004 build_tooldir=${tooldir}
7005
7006 # Create a .gdbinit file which runs the one in srcdir
7007 # and tells GDB to look there for source files.
7008
7009 if test -r ${srcdir}/.gdbinit ; then
7010 case ${srcdir} in
7011 .) ;;
7012 *) cat > ./.gdbinit <<EOF
7013 # ${NO_EDIT}
7014 dir ${srcdir}
7015 dir .
7016 source ${srcdir}/.gdbinit
7017 EOF
7018 ;;
7019 esac
7020 fi
7021
7022 # Make sure that the compiler is able to generate an executable. If it
7023 # can't, we are probably in trouble. We don't care whether we can run the
7024 # executable--we might be using a cross compiler--we only care whether it
7025 # can be created. At this point the main configure script has set CC.
7026 we_are_ok=no
7027 echo "int main () { return 0; }" > conftest.c
7028 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7029 if test $? = 0 ; then
7030 if test -s conftest || test -s conftest.exe ; then
7031 we_are_ok=yes
7032 fi
7033 fi
7034 case $we_are_ok in
7035 no)
7036 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7037 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7038 rm -f conftest*
7039 exit 1
7040 ;;
7041 esac
7042 rm -f conftest*
7043
7044 # Decide which environment variable is used to find dynamic libraries.
7045 case "${host}" in
7046 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7047 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7048 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7049 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7050 esac
7051
7052 # On systems where the dynamic library environment variable is PATH,
7053 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7054 # built executables to PATH.
7055 if test "$RPATH_ENVVAR" = PATH; then
7056 GCC_SHLIB_SUBDIR=/shlib
7057 else
7058 GCC_SHLIB_SUBDIR=
7059 fi
7060
7061 # Adjust the toplevel makefile according to whether bootstrap was selected.
7062 case $enable_bootstrap in
7063 yes)
7064 bootstrap_suffix=bootstrap
7065 BUILD_CONFIG=bootstrap-debug
7066 ;;
7067 no)
7068 bootstrap_suffix=no-bootstrap
7069 BUILD_CONFIG=
7070 ;;
7071 esac
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7074 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7075
7076
7077 # Check whether --with-build-config was given.
7078 if test "${with_build_config+set}" = set; then :
7079 withval=$with_build_config; case $with_build_config in
7080 yes) with_build_config= ;;
7081 no) with_build_config= BUILD_CONFIG= ;;
7082 esac
7083 fi
7084
7085
7086 if test "x${with_build_config}" != x; then
7087 BUILD_CONFIG=$with_build_config
7088 else
7089 case $BUILD_CONFIG in
7090 bootstrap-debug)
7091 if echo "int f (void) { return 0; }" > conftest.c &&
7092 ${CC} -c conftest.c &&
7093 mv conftest.o conftest.o.g0 &&
7094 ${CC} -c -g conftest.c &&
7095 mv conftest.o conftest.o.g &&
7096 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7097 :
7098 else
7099 BUILD_CONFIG=
7100 fi
7101 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7102 ;;
7103 esac
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7106 $as_echo "$BUILD_CONFIG" >&6; }
7107
7108
7109 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7111 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7112 # Check whether --enable-vtable-verify was given.
7113 if test "${enable_vtable_verify+set}" = set; then :
7114 enableval=$enable_vtable_verify; case "$enableval" in
7115 yes) enable_vtable_verify=yes ;;
7116 no) enable_vtable_verify=no ;;
7117 *) enable_vtable_verify=no;;
7118 esac
7119 else
7120 enable_vtable_verify=no
7121 fi
7122
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7124 $as_echo "$enable_vtable_verify" >&6; }
7125
7126 # Record target_configdirs and the configure arguments for target and
7127 # build configuration in Makefile.
7128 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7129 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7130 bootstrap_fixincludes=no
7131
7132 # If we are building libgomp, bootstrap it.
7133 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7134 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7135 fi
7136
7137 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7138 # or bootstrap-ubsan, bootstrap it.
7139 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7140 case "$BUILD_CONFIG" in
7141 *bootstrap-asan* | *bootstrap-ubsan* )
7142 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7143 bootstrap_fixincludes=yes
7144 ;;
7145 esac
7146 fi
7147
7148 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7149 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7150 test "$enable_vtable_verify" != no; then
7151 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7152 fi
7153
7154 # Determine whether gdb needs tk/tcl or not.
7155 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7156 # and in that case we want gdb to be built without tk. Ugh!
7157 # In fact I believe gdb is the *only* package directly dependent on tk,
7158 # so we should be able to put the 'maybe's in unconditionally and
7159 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7160 # 100% sure that that's safe though.
7161
7162 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7163 case "$enable_gdbtk" in
7164 no)
7165 GDB_TK="" ;;
7166 yes)
7167 GDB_TK="${gdb_tk}" ;;
7168 *)
7169 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7170 # distro. Eventually someone will fix this and move Insight, nee
7171 # gdbtk to a separate directory.
7172 if test -d ${srcdir}/gdb/gdbtk ; then
7173 GDB_TK="${gdb_tk}"
7174 else
7175 GDB_TK=""
7176 fi
7177 ;;
7178 esac
7179 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7180 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7181
7182 # Strip out unwanted targets.
7183
7184 # While at that, we remove Makefiles if we were started for recursive
7185 # configuration, so that the top-level Makefile reconfigures them,
7186 # like we used to do when configure itself was recursive.
7187
7188 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7189 # but now we're fixing up the Makefile ourselves with the additional
7190 # commands passed to AC_CONFIG_FILES. Use separate variables
7191 # extrasub-{build,host,target} not because there is any reason to split
7192 # the substitutions up that way, but only to remain below the limit of
7193 # 99 commands in a script, for HP-UX sed.
7194 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7195
7196 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7197 yes:yes:*\ gold\ *:*,c++,*) ;;
7198 yes:yes:*\ gold\ *:*)
7199 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7200 ;;
7201 esac
7202
7203 extrasub_build=
7204 for module in ${build_configdirs} ; do
7205 if test -z "${no_recursion}" \
7206 && test -f ${build_subdir}/${module}/Makefile; then
7207 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7208 rm -f ${build_subdir}/${module}/Makefile
7209 fi
7210 extrasub_build="$extrasub_build
7211 /^@if build-$module\$/d
7212 /^@endif build-$module\$/d
7213 /^@if build-$module-$bootstrap_suffix\$/d
7214 /^@endif build-$module-$bootstrap_suffix\$/d"
7215 done
7216 extrasub_host=
7217 for module in ${configdirs} ; do
7218 if test -z "${no_recursion}"; then
7219 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7220 if test -f ${file}; then
7221 echo 1>&2 "*** removing ${file} to force reconfigure"
7222 rm -f ${file}
7223 fi
7224 done
7225 fi
7226 case ${module},${bootstrap_fixincludes} in
7227 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7228 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7229 esac
7230 extrasub_host="$extrasub_host
7231 /^@if $module\$/d
7232 /^@endif $module\$/d
7233 /^@if $module-$host_bootstrap_suffix\$/d
7234 /^@endif $module-$host_bootstrap_suffix\$/d"
7235 done
7236 extrasub_target=
7237 for module in ${target_configdirs} ; do
7238 if test -z "${no_recursion}" \
7239 && test -f ${target_subdir}/${module}/Makefile; then
7240 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7241 rm -f ${target_subdir}/${module}/Makefile
7242 fi
7243
7244 # We only bootstrap target libraries listed in bootstrap_target_libs.
7245 case $bootstrap_target_libs in
7246 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7247 *) target_bootstrap_suffix=no-bootstrap ;;
7248 esac
7249
7250 extrasub_target="$extrasub_target
7251 /^@if target-$module\$/d
7252 /^@endif target-$module\$/d
7253 /^@if target-$module-$target_bootstrap_suffix\$/d
7254 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7255 done
7256
7257 # Do the final fixup along with target modules.
7258 extrasub_target="$extrasub_target
7259 /^@if /,/^@endif /d"
7260
7261 # Create the serialization dependencies. This uses a temporary file.
7262
7263 # Check whether --enable-serial-configure was given.
7264 if test "${enable_serial_configure+set}" = set; then :
7265 enableval=$enable_serial_configure;
7266 fi
7267
7268
7269 case ${enable_serial_configure} in
7270 yes)
7271 enable_serial_build_configure=yes
7272 enable_serial_host_configure=yes
7273 enable_serial_target_configure=yes
7274 ;;
7275 esac
7276
7277 # These force 'configure's to be done one at a time, to avoid problems
7278 # with contention over a shared config.cache.
7279 rm -f serdep.tmp
7280 echo '# serdep.tmp' > serdep.tmp
7281 olditem=
7282 test "x${enable_serial_build_configure}" = xyes &&
7283 for item in ${build_configdirs} ; do
7284 case ${olditem} in
7285 "") ;;
7286 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7287 esac
7288 olditem=${item}
7289 done
7290 olditem=
7291 test "x${enable_serial_host_configure}" = xyes &&
7292 for item in ${configdirs} ; do
7293 case ${olditem} in
7294 "") ;;
7295 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7296 esac
7297 olditem=${item}
7298 done
7299 olditem=
7300 test "x${enable_serial_target_configure}" = xyes &&
7301 for item in ${target_configdirs} ; do
7302 case ${olditem} in
7303 "") ;;
7304 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7305 esac
7306 olditem=${item}
7307 done
7308 serialization_dependencies=serdep.tmp
7309
7310
7311 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7312 # target, nonopt, and variable assignments. These are the ones we
7313 # might not want to pass down to subconfigures. The exception being
7314 # --cache-file=/dev/null, which is used to turn off the use of cache
7315 # files altogether, and which should be passed on to subconfigures.
7316 # Also strip program-prefix, program-suffix, and program-transform-name,
7317 # so that we can pass down a consistent program-transform-name.
7318 baseargs=
7319 tbaseargs=
7320 keep_next=no
7321 skip_next=no
7322 eval "set -- $ac_configure_args"
7323 for ac_arg
7324 do
7325 if test X"$skip_next" = X"yes"; then
7326 skip_next=no
7327 continue
7328 fi
7329 if test X"$keep_next" = X"yes"; then
7330 case $ac_arg in
7331 *\'*)
7332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7333 esac
7334 baseargs="$baseargs '$ac_arg'"
7335 tbaseargs="$tbaseargs '$ac_arg'"
7336 keep_next=no
7337 continue
7338 fi
7339
7340 # Handle separated arguments. Based on the logic generated by
7341 # autoconf 2.59.
7342 case $ac_arg in
7343 *=* | --config-cache | -C | -disable-* | --disable-* \
7344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7346 | -with-* | --with-* | -without-* | --without-* | --x)
7347 separate_arg=no
7348 ;;
7349 -*)
7350 separate_arg=yes
7351 ;;
7352 *)
7353 separate_arg=no
7354 ;;
7355 esac
7356
7357 skip_targ=no
7358 case $ac_arg in
7359
7360 --with-* | --without-*)
7361 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7362
7363 case $libopt in
7364 *[-_]include)
7365 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7366 ;;
7367 *[-_]lib)
7368 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7369 ;;
7370 *)
7371 lib=$libopt
7372 ;;
7373 esac
7374
7375
7376 case $lib in
7377 mpc | mpfr | gmp | isl)
7378 # If we're processing --with-$lib, --with-$lib-include or
7379 # --with-$lib-lib, for one of the libs above, and target is
7380 # different from host, don't pass the current argument to any
7381 # target library's configure.
7382 if test x$is_cross_compiler = xyes; then
7383 skip_targ=yes
7384 fi
7385 ;;
7386 esac
7387 ;;
7388 esac
7389
7390 case "$ac_arg" in
7391 --cache-file=/dev/null | \
7392 -cache-file=/dev/null )
7393 # Handled here to avoid the test to skip args below.
7394 baseargs="$baseargs '$ac_arg'"
7395 tbaseargs="$tbaseargs '$ac_arg'"
7396 # Assert: $separate_arg should always be no.
7397 keep_next=$separate_arg
7398 ;;
7399 --no*)
7400 continue
7401 ;;
7402 --c* | \
7403 --sr* | \
7404 --ho* | \
7405 --bu* | \
7406 --t* | \
7407 --program-* | \
7408 -cache_file* | \
7409 -srcdir* | \
7410 -host* | \
7411 -build* | \
7412 -target* | \
7413 -program-prefix* | \
7414 -program-suffix* | \
7415 -program-transform-name* )
7416 skip_next=$separate_arg
7417 continue
7418 ;;
7419 -*)
7420 # An option. Add it.
7421 case $ac_arg in
7422 *\'*)
7423 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7424 esac
7425 baseargs="$baseargs '$ac_arg'"
7426 if test X"$skip_targ" = Xno; then
7427 tbaseargs="$tbaseargs '$ac_arg'"
7428 fi
7429 keep_next=$separate_arg
7430 ;;
7431 *)
7432 # Either a variable assignment, or a nonopt (triplet). Don't
7433 # pass it down; let the Makefile handle this.
7434 continue
7435 ;;
7436 esac
7437 done
7438 # Remove the initial space we just introduced and, as these will be
7439 # expanded by make, quote '$'.
7440 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7441
7442 # Add in --program-transform-name, after --program-prefix and
7443 # --program-suffix have been applied to it. Autoconf has already
7444 # doubled dollar signs and backslashes in program_transform_name; we want
7445 # the backslashes un-doubled, and then the entire thing wrapped in single
7446 # quotes, because this will be expanded first by make and then by the shell.
7447 # Also, because we want to override the logic in subdir configure scripts to
7448 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7449 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7450 ${program_transform_name}
7451 EOF_SED
7452 gcc_transform_name=`cat conftestsed.out`
7453 rm -f conftestsed.out
7454 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7455 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7456 if test "$silent" = yes; then
7457 baseargs="$baseargs --silent"
7458 tbaseargs="$tbaseargs --silent"
7459 fi
7460 baseargs="$baseargs --disable-option-checking"
7461 tbaseargs="$tbaseargs --disable-option-checking"
7462
7463 # Record and document user additions to sub configure arguments.
7464
7465
7466
7467
7468 # For the build-side libraries, we just need to pretend we're native,
7469 # and not use the same cache file. Multilibs are neither needed nor
7470 # desired. We can't even use the same cache file for all build-side
7471 # libraries, as they're compiled differently; some with C, some with
7472 # C++ or with different feature-enabling options.
7473 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7474
7475 # For host modules, accept cache file option, or specification as blank.
7476 case "${cache_file}" in
7477 "") # empty
7478 cache_file_option="" ;;
7479 /* | [A-Za-z]:[\\/]* ) # absolute path
7480 cache_file_option="--cache-file=${cache_file}" ;;
7481 *) # relative path
7482 cache_file_option="--cache-file=../${cache_file}" ;;
7483 esac
7484
7485 # Host dirs don't like to share a cache file either, horribly enough.
7486 # This seems to be due to autoconf 2.5x stupidity.
7487 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7488
7489 target_configargs="$target_configargs ${tbaseargs}"
7490
7491 # Passing a --with-cross-host argument lets the target libraries know
7492 # whether they are being built with a cross-compiler or being built
7493 # native. However, it would be better to use other mechanisms to make the
7494 # sorts of decisions they want to make on this basis. Please consider
7495 # this option to be deprecated. FIXME.
7496 if test x${is_cross_compiler} = xyes ; then
7497 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7498 fi
7499
7500 # Special user-friendly check for native x86_64-linux build, if
7501 # multilib is not explicitly enabled.
7502 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7503 x86_64-*linux*:yes:$build:$build:)
7504 # Make sure we have a development environment that handles 32-bit
7505 dev64=no
7506 echo "int main () { return 0; }" > conftest.c
7507 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7508 if test $? = 0 ; then
7509 if test -s conftest || test -s conftest.exe ; then
7510 dev64=yes
7511 fi
7512 fi
7513 rm -f conftest*
7514 if test x${dev64} != xyes ; then
7515 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
7516 fi
7517 ;;
7518 esac
7519
7520 # Default to --enable-multilib.
7521 if test x${enable_multilib} = x ; then
7522 target_configargs="--enable-multilib ${target_configargs}"
7523 fi
7524
7525 # Pass --with-newlib if appropriate. Note that target_configdirs has
7526 # changed from the earlier setting of with_newlib.
7527 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7528 target_configargs="--with-newlib ${target_configargs}"
7529 fi
7530
7531 # Different target subdirs use different values of certain variables
7532 # (notably CXX). Worse, multilibs use *lots* of different values.
7533 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7534 # it doesn't automatically accept command-line overrides of them.
7535 # This means it's not safe for target subdirs to share a cache file,
7536 # which is disgusting, but there you have it. Hopefully this can be
7537 # fixed in future. It's still worthwhile to use a cache file for each
7538 # directory. I think.
7539
7540 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7541 # We need to pass --target, as newer autoconf's requires consistency
7542 # for target_alias and gcc doesn't manage it consistently.
7543 target_configargs="--cache-file=./config.cache ${target_configargs}"
7544
7545 FLAGS_FOR_TARGET=
7546 case " $target_configdirs " in
7547 *" newlib "*)
7548 case " $target_configargs " in
7549 *" --with-newlib "*)
7550 case "$target" in
7551 *-cygwin*)
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7553 ;;
7554 esac
7555
7556 # If we're not building GCC, don't discard standard headers.
7557 if test -d ${srcdir}/gcc; then
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7559
7560 if test "${build}" != "${host}"; then
7561 # On Canadian crosses, CC_FOR_TARGET will have already been set
7562 # by `configure', so we won't have an opportunity to add -Bgcc/
7563 # to it. This is right: we don't want to search that directory
7564 # for binaries, but we want the header files in there, so add
7565 # them explicitly.
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7567
7568 # Someone might think of using the pre-installed headers on
7569 # Canadian crosses, in case the installed compiler is not fully
7570 # compatible with the compiler being built. In this case, it
7571 # would be better to flag an error than risking having
7572 # incompatible object files being constructed. We can't
7573 # guarantee that an error will be flagged, but let's hope the
7574 # compiler will do it, when presented with incompatible header
7575 # files.
7576 fi
7577 fi
7578
7579 case "${target}-${is_cross_compiler}" in
7580 i[3456789]86-*-linux*-no)
7581 # Here host == target, so we don't need to build gcc,
7582 # so we don't want to discard standard headers.
7583 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7584 ;;
7585 *)
7586 # If we're building newlib, use its generic headers last, but search
7587 # for any libc-related directories first (so make it the last -B
7588 # switch).
7589 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7590
7591 # If we're building libgloss, find the startup file, simulator library
7592 # and linker script.
7593 case " $target_configdirs " in
7594 *" libgloss "*)
7595 # Look for startup file, simulator library and maybe linker script.
7596 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7597 # Look for libnosys.a in case the target needs it.
7598 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7599 # Most targets have the linker script in the source directory.
7600 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7601 ;;
7602 esac
7603 ;;
7604 esac
7605 ;;
7606 esac
7607 ;;
7608 esac
7609
7610 case "$target" in
7611 x86_64-*mingw* | *-w64-mingw*)
7612 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7613 # however, use a symlink named 'mingw' in ${prefix} .
7614 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7615 ;;
7616 *-mingw*)
7617 # MinGW can't be handled as Cygwin above since it does not use newlib.
7618 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'
7619 ;;
7620 esac
7621
7622 # Allow the user to override the flags for
7623 # our build compiler if desired.
7624 if test x"${build}" = x"${host}" ; then
7625 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7626 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7627 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7628 fi
7629
7630 # On Canadian crosses, we'll be searching the right directories for
7631 # the previously-installed cross compiler, so don't bother to add
7632 # flags for directories within the install tree of the compiler
7633 # being built; programs in there won't even run.
7634 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7635 # Search for pre-installed headers if nothing else fits.
7636 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7637 fi
7638
7639 if test "x${use_gnu_ld}" = x &&
7640 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7641 # Arrange for us to find uninstalled linker scripts.
7642 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7643 fi
7644
7645 # Search for other target-specific linker scripts and such.
7646 case "${target}" in
7647 mep*)
7648 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7649 ;;
7650 esac
7651
7652 # Makefile fragments.
7653 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7654 do
7655 eval fragval=\$$frag
7656 if test $fragval != /dev/null; then
7657 eval $frag=${srcdir}/$fragval
7658 fi
7659 done
7660
7661
7662
7663
7664
7665 # Miscellanea: directories, flags, etc.
7666
7667
7668
7669
7670
7671
7672
7673
7674 # Build module lists & subconfigure args.
7675
7676
7677
7678 # Host module lists & subconfigure args.
7679
7680
7681
7682
7683 # Target module lists & subconfigure args.
7684
7685
7686
7687 # Build tools.
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Generate default definitions for YACC, M4, LEX and other programs that run
7705 # on the build machine. These are used if the Makefile can't locate these
7706 # programs in objdir.
7707 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7708
7709 for ac_prog in 'bison -y' byacc yacc
7710 do
7711 # Extract the first word of "$ac_prog", so it can be a program name with args.
7712 set dummy $ac_prog; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_YACC+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$YACC"; then
7719 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_YACC="$ac_prog"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 YACC=$ac_cv_prog_YACC
7739 if test -n "$YACC"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7741 $as_echo "$YACC" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748 test -n "$YACC" && break
7749 done
7750 test -n "$YACC" || YACC="$MISSING bison -y"
7751
7752 case " $build_configdirs " in
7753 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7754 esac
7755
7756 for ac_prog in bison
7757 do
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_BISON+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$BISON"; then
7766 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_BISON="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 BISON=$ac_cv_prog_BISON
7786 if test -n "$BISON"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7788 $as_echo "$BISON" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 test -n "$BISON" && break
7796 done
7797 test -n "$BISON" || BISON="$MISSING bison"
7798
7799 case " $build_configdirs " in
7800 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7801 esac
7802
7803 for ac_prog in gm4 gnum4 m4
7804 do
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_M4+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$M4"; then
7813 ac_cv_prog_M4="$M4" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_M4="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 M4=$ac_cv_prog_M4
7833 if test -n "$M4"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7835 $as_echo "$M4" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 test -n "$M4" && break
7843 done
7844 test -n "$M4" || M4="$MISSING m4"
7845
7846 case " $build_configdirs " in
7847 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7848 esac
7849
7850 for ac_prog in flex lex
7851 do
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_LEX+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$LEX"; then
7860 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_LEX="$ac_prog"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 LEX=$ac_cv_prog_LEX
7880 if test -n "$LEX"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7882 $as_echo "$LEX" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 test -n "$LEX" && break
7890 done
7891 test -n "$LEX" || LEX="$MISSING flex"
7892
7893 case " $build_configdirs " in
7894 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7895 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7896 esac
7897
7898 for ac_prog in flex
7899 do
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_FLEX+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$FLEX"; then
7908 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_FLEX="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921 done
7922 done
7923 IFS=$as_save_IFS
7924
7925 fi
7926 fi
7927 FLEX=$ac_cv_prog_FLEX
7928 if test -n "$FLEX"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7930 $as_echo "$FLEX" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7934 fi
7935
7936
7937 test -n "$FLEX" && break
7938 done
7939 test -n "$FLEX" || FLEX="$MISSING flex"
7940
7941 case " $build_configdirs " in
7942 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943 esac
7944
7945 for ac_prog in makeinfo
7946 do
7947 # Extract the first word of "$ac_prog", so it can be a program name with args.
7948 set dummy $ac_prog; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_prog_MAKEINFO+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$MAKEINFO"; then
7955 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_MAKEINFO="$ac_prog"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 MAKEINFO=$ac_cv_prog_MAKEINFO
7975 if test -n "$MAKEINFO"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7977 $as_echo "$MAKEINFO" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983
7984 test -n "$MAKEINFO" && break
7985 done
7986 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7987
7988 case " $build_configdirs " in
7989 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7990 *)
7991
7992 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7993 # higher, else we use the "missing" dummy.
7994 if ${MAKEINFO} --version \
7995 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7996 :
7997 else
7998 MAKEINFO="$MISSING makeinfo"
7999 fi
8000 ;;
8001
8002 esac
8003
8004 # FIXME: expect and dejagnu may become build tools?
8005
8006 for ac_prog in expect
8007 do
8008 # Extract the first word of "$ac_prog", so it can be a program name with args.
8009 set dummy $ac_prog; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_EXPECT+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 if test -n "$EXPECT"; then
8016 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8017 else
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_EXPECT="$ac_prog"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029 done
8030 done
8031 IFS=$as_save_IFS
8032
8033 fi
8034 fi
8035 EXPECT=$ac_cv_prog_EXPECT
8036 if test -n "$EXPECT"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8038 $as_echo "$EXPECT" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045 test -n "$EXPECT" && break
8046 done
8047 test -n "$EXPECT" || EXPECT="expect"
8048
8049 case " $configdirs " in
8050 *" expect "*)
8051 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8052 ;;
8053 esac
8054
8055 for ac_prog in runtest
8056 do
8057 # Extract the first word of "$ac_prog", so it can be a program name with args.
8058 set dummy $ac_prog; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_RUNTEST+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$RUNTEST"; then
8065 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_RUNTEST="$ac_prog"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 RUNTEST=$ac_cv_prog_RUNTEST
8085 if test -n "$RUNTEST"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8087 $as_echo "$RUNTEST" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093
8094 test -n "$RUNTEST" && break
8095 done
8096 test -n "$RUNTEST" || RUNTEST="runtest"
8097
8098 case " $configdirs " in
8099 *" dejagnu "*)
8100 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8101 ;;
8102 esac
8103
8104
8105 # Host tools.
8106 ncn_tool_prefix=
8107 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8108 ncn_target_tool_prefix=
8109 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8110
8111
8112
8113 if test -n "$AR"; then
8114 ac_cv_prog_AR=$AR
8115 elif test -n "$ac_cv_prog_AR"; then
8116 AR=$ac_cv_prog_AR
8117 fi
8118
8119 if test -n "$ac_cv_prog_AR"; then
8120 for ncn_progname in ar; do
8121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8122 set dummy ${ncn_progname}; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_AR+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$AR"; then
8129 ac_cv_prog_AR="$AR" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_AR="${ncn_progname}"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 AR=$ac_cv_prog_AR
8149 if test -n "$AR"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8151 $as_echo "$AR" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158 done
8159 fi
8160
8161 for ncn_progname in ar; do
8162 if test -n "$ncn_tool_prefix"; then
8163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8164 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if ${ac_cv_prog_AR+:} false; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 if test -n "$AR"; then
8171 ac_cv_prog_AR="$AR" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184 done
8185 done
8186 IFS=$as_save_IFS
8187
8188 fi
8189 fi
8190 AR=$ac_cv_prog_AR
8191 if test -n "$AR"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8193 $as_echo "$AR" >&6; }
8194 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200 fi
8201 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8203 set dummy ${ncn_progname}; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if ${ac_cv_prog_AR+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$AR"; then
8210 ac_cv_prog_AR="$AR" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8214 do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_AR="${ncn_progname}"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 AR=$ac_cv_prog_AR
8230 if test -n "$AR"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8232 $as_echo "$AR" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8236 fi
8237
8238
8239 fi
8240 test -n "$ac_cv_prog_AR" && break
8241 done
8242
8243 if test -z "$ac_cv_prog_AR" ; then
8244 set dummy ar
8245 if test $build = $host ; then
8246 AR="$2"
8247 else
8248 AR="${ncn_tool_prefix}$2"
8249 fi
8250 fi
8251
8252
8253
8254 if test -n "$AS"; then
8255 ac_cv_prog_AS=$AS
8256 elif test -n "$ac_cv_prog_AS"; then
8257 AS=$ac_cv_prog_AS
8258 fi
8259
8260 if test -n "$ac_cv_prog_AS"; then
8261 for ncn_progname in as; do
8262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8263 set dummy ${ncn_progname}; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if ${ac_cv_prog_AS+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$AS"; then
8270 ac_cv_prog_AS="$AS" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_AS="${ncn_progname}"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287 fi
8288 fi
8289 AS=$ac_cv_prog_AS
8290 if test -n "$AS"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8292 $as_echo "$AS" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 done
8300 fi
8301
8302 for ncn_progname in as; do
8303 if test -n "$ncn_tool_prefix"; then
8304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8305 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_prog_AS+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 if test -n "$AS"; then
8312 ac_cv_prog_AS="$AS" # Let the user override the test.
8313 else
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 for as_dir in $PATH
8316 do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8321 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 fi
8330 fi
8331 AS=$ac_cv_prog_AS
8332 if test -n "$AS"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8334 $as_echo "$AS" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341 fi
8342 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8344 set dummy ${ncn_progname}; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_AS+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$AS"; then
8351 ac_cv_prog_AS="$AS" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_AS="${ncn_progname}"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 AS=$ac_cv_prog_AS
8371 if test -n "$AS"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8373 $as_echo "$AS" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379
8380 fi
8381 test -n "$ac_cv_prog_AS" && break
8382 done
8383
8384 if test -z "$ac_cv_prog_AS" ; then
8385 set dummy as
8386 if test $build = $host ; then
8387 AS="$2"
8388 else
8389 AS="${ncn_tool_prefix}$2"
8390 fi
8391 fi
8392
8393
8394
8395 if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL=$DLLTOOL
8397 elif test -n "$ac_cv_prog_DLLTOOL"; then
8398 DLLTOOL=$ac_cv_prog_DLLTOOL
8399 fi
8400
8401 if test -n "$ac_cv_prog_DLLTOOL"; then
8402 for ncn_progname in dlltool; do
8403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8404 set dummy ${ncn_progname}; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if ${ac_cv_prog_DLLTOOL+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 if test -n "$DLLTOOL"; then
8411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_DLLTOOL="${ncn_progname}"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8423 fi
8424 done
8425 done
8426 IFS=$as_save_IFS
8427
8428 fi
8429 fi
8430 DLLTOOL=$ac_cv_prog_DLLTOOL
8431 if test -n "$DLLTOOL"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8433 $as_echo "$DLLTOOL" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 fi
8438
8439
8440 done
8441 fi
8442
8443 for ncn_progname in dlltool; do
8444 if test -n "$ncn_tool_prefix"; then
8445 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8446 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_DLLTOOL+:} false; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 if test -n "$DLLTOOL"; then
8453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 DLLTOOL=$ac_cv_prog_DLLTOOL
8473 if test -n "$DLLTOOL"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8475 $as_echo "$DLLTOOL" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481
8482 fi
8483 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8485 set dummy ${ncn_progname}; ac_word=$2
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487 $as_echo_n "checking for $ac_word... " >&6; }
8488 if ${ac_cv_prog_DLLTOOL+:} false; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 if test -n "$DLLTOOL"; then
8492 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8493 else
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH
8496 do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8501 ac_cv_prog_DLLTOOL="${ncn_progname}"
8502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 break 2
8504 fi
8505 done
8506 done
8507 IFS=$as_save_IFS
8508
8509 fi
8510 fi
8511 DLLTOOL=$ac_cv_prog_DLLTOOL
8512 if test -n "$DLLTOOL"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8514 $as_echo "$DLLTOOL" >&6; }
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519
8520
8521 fi
8522 test -n "$ac_cv_prog_DLLTOOL" && break
8523 done
8524
8525 if test -z "$ac_cv_prog_DLLTOOL" ; then
8526 set dummy dlltool
8527 if test $build = $host ; then
8528 DLLTOOL="$2"
8529 else
8530 DLLTOOL="${ncn_tool_prefix}$2"
8531 fi
8532 fi
8533
8534
8535
8536 if test -n "$LD"; then
8537 ac_cv_prog_LD=$LD
8538 elif test -n "$ac_cv_prog_LD"; then
8539 LD=$ac_cv_prog_LD
8540 fi
8541
8542 if test -n "$ac_cv_prog_LD"; then
8543 for ncn_progname in ld; do
8544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8545 set dummy ${ncn_progname}; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if ${ac_cv_prog_LD+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 if test -n "$LD"; then
8552 ac_cv_prog_LD="$LD" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8556 do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_LD="${ncn_progname}"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569 fi
8570 fi
8571 LD=$ac_cv_prog_LD
8572 if test -n "$LD"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8574 $as_echo "$LD" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 fi
8579
8580
8581 done
8582 fi
8583
8584 for ncn_progname in ld; do
8585 if test -n "$ncn_tool_prefix"; then
8586 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8587 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8589 $as_echo_n "checking for $ac_word... " >&6; }
8590 if ${ac_cv_prog_LD+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 if test -n "$LD"; then
8594 ac_cv_prog_LD="$LD" # Let the user override the test.
8595 else
8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8598 do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607 done
8608 done
8609 IFS=$as_save_IFS
8610
8611 fi
8612 fi
8613 LD=$ac_cv_prog_LD
8614 if test -n "$LD"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8616 $as_echo "$LD" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 fi
8621
8622
8623 fi
8624 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8626 set dummy ${ncn_progname}; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_prog_LD+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 if test -n "$LD"; then
8633 ac_cv_prog_LD="$LD" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8637 do
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_LD="${ncn_progname}"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8645 fi
8646 done
8647 done
8648 IFS=$as_save_IFS
8649
8650 fi
8651 fi
8652 LD=$ac_cv_prog_LD
8653 if test -n "$LD"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8655 $as_echo "$LD" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8659 fi
8660
8661
8662 fi
8663 test -n "$ac_cv_prog_LD" && break
8664 done
8665
8666 if test -z "$ac_cv_prog_LD" ; then
8667 set dummy ld
8668 if test $build = $host ; then
8669 LD="$2"
8670 else
8671 LD="${ncn_tool_prefix}$2"
8672 fi
8673 fi
8674
8675
8676
8677 if test -n "$LIPO"; then
8678 ac_cv_prog_LIPO=$LIPO
8679 elif test -n "$ac_cv_prog_LIPO"; then
8680 LIPO=$ac_cv_prog_LIPO
8681 fi
8682
8683 if test -n "$ac_cv_prog_LIPO"; then
8684 for ncn_progname in lipo; do
8685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8686 set dummy ${ncn_progname}; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if ${ac_cv_prog_LIPO+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 if test -n "$LIPO"; then
8693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8694 else
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_LIPO="${ncn_progname}"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8705 fi
8706 done
8707 done
8708 IFS=$as_save_IFS
8709
8710 fi
8711 fi
8712 LIPO=$ac_cv_prog_LIPO
8713 if test -n "$LIPO"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8715 $as_echo "$LIPO" >&6; }
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719 fi
8720
8721
8722 done
8723 fi
8724
8725 for ncn_progname in lipo; do
8726 if test -n "$ncn_tool_prefix"; then
8727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8728 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_prog_LIPO+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 if test -n "$LIPO"; then
8735 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748 done
8749 done
8750 IFS=$as_save_IFS
8751
8752 fi
8753 fi
8754 LIPO=$ac_cv_prog_LIPO
8755 if test -n "$LIPO"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8757 $as_echo "$LIPO" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763
8764 fi
8765 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8767 set dummy ${ncn_progname}; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_LIPO+:} false; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 if test -n "$LIPO"; then
8774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_LIPO="${ncn_progname}"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787 done
8788 done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 LIPO=$ac_cv_prog_LIPO
8794 if test -n "$LIPO"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8796 $as_echo "$LIPO" >&6; }
8797 else
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803 fi
8804 test -n "$ac_cv_prog_LIPO" && break
8805 done
8806
8807 if test -z "$ac_cv_prog_LIPO" ; then
8808 set dummy lipo
8809 if test $build = $host ; then
8810 LIPO="$2"
8811 else
8812 LIPO="${ncn_tool_prefix}$2"
8813 fi
8814 fi
8815
8816
8817
8818 if test -n "$NM"; then
8819 ac_cv_prog_NM=$NM
8820 elif test -n "$ac_cv_prog_NM"; then
8821 NM=$ac_cv_prog_NM
8822 fi
8823
8824 if test -n "$ac_cv_prog_NM"; then
8825 for ncn_progname in nm; do
8826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8827 set dummy ${ncn_progname}; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_prog_NM+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 if test -n "$NM"; then
8834 ac_cv_prog_NM="$NM" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_NM="${ncn_progname}"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 NM=$ac_cv_prog_NM
8854 if test -n "$NM"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8856 $as_echo "$NM" >&6; }
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862
8863 done
8864 fi
8865
8866 for ncn_progname in nm; do
8867 if test -n "$ncn_tool_prefix"; then
8868 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8869 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if ${ac_cv_prog_NM+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874 else
8875 if test -n "$NM"; then
8876 ac_cv_prog_NM="$NM" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8880 do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8885 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889 done
8890 done
8891 IFS=$as_save_IFS
8892
8893 fi
8894 fi
8895 NM=$ac_cv_prog_NM
8896 if test -n "$NM"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8898 $as_echo "$NM" >&6; }
8899 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903
8904
8905 fi
8906 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8908 set dummy ${ncn_progname}; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if ${ac_cv_prog_NM+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 if test -n "$NM"; then
8915 ac_cv_prog_NM="$NM" # Let the user override the test.
8916 else
8917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918 for as_dir in $PATH
8919 do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8924 ac_cv_prog_NM="${ncn_progname}"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8927 fi
8928 done
8929 done
8930 IFS=$as_save_IFS
8931
8932 fi
8933 fi
8934 NM=$ac_cv_prog_NM
8935 if test -n "$NM"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8937 $as_echo "$NM" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8941 fi
8942
8943
8944 fi
8945 test -n "$ac_cv_prog_NM" && break
8946 done
8947
8948 if test -z "$ac_cv_prog_NM" ; then
8949 set dummy nm
8950 if test $build = $host ; then
8951 NM="$2"
8952 else
8953 NM="${ncn_tool_prefix}$2"
8954 fi
8955 fi
8956
8957
8958
8959 if test -n "$RANLIB"; then
8960 ac_cv_prog_RANLIB=$RANLIB
8961 elif test -n "$ac_cv_prog_RANLIB"; then
8962 RANLIB=$ac_cv_prog_RANLIB
8963 fi
8964
8965 if test -n "$ac_cv_prog_RANLIB"; then
8966 for ncn_progname in ranlib; do
8967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8968 set dummy ${ncn_progname}; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if ${ac_cv_prog_RANLIB+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 if test -n "$RANLIB"; then
8975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8984 ac_cv_prog_RANLIB="${ncn_progname}"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988 done
8989 done
8990 IFS=$as_save_IFS
8991
8992 fi
8993 fi
8994 RANLIB=$ac_cv_prog_RANLIB
8995 if test -n "$RANLIB"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8997 $as_echo "$RANLIB" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9001 fi
9002
9003
9004 done
9005 fi
9006
9007 for ncn_progname in ranlib; do
9008 if test -n "$ncn_tool_prefix"; then
9009 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9010 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_prog_RANLIB+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 if test -n "$RANLIB"; then
9017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9018 else
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020 for as_dir in $PATH
9021 do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030 done
9031 done
9032 IFS=$as_save_IFS
9033
9034 fi
9035 fi
9036 RANLIB=$ac_cv_prog_RANLIB
9037 if test -n "$RANLIB"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9039 $as_echo "$RANLIB" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9043 fi
9044
9045
9046 fi
9047 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9049 set dummy ${ncn_progname}; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_prog_RANLIB+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 if test -n "$RANLIB"; then
9056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9057 else
9058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 for as_dir in $PATH
9060 do
9061 IFS=$as_save_IFS
9062 test -z "$as_dir" && as_dir=.
9063 for ac_exec_ext in '' $ac_executable_extensions; do
9064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9065 ac_cv_prog_RANLIB="${ncn_progname}"
9066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9067 break 2
9068 fi
9069 done
9070 done
9071 IFS=$as_save_IFS
9072
9073 fi
9074 fi
9075 RANLIB=$ac_cv_prog_RANLIB
9076 if test -n "$RANLIB"; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9078 $as_echo "$RANLIB" >&6; }
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9082 fi
9083
9084
9085 fi
9086 test -n "$ac_cv_prog_RANLIB" && break
9087 done
9088
9089 if test -z "$ac_cv_prog_RANLIB" ; then
9090 RANLIB="true"
9091 fi
9092
9093
9094
9095 if test -n "$STRIP"; then
9096 ac_cv_prog_STRIP=$STRIP
9097 elif test -n "$ac_cv_prog_STRIP"; then
9098 STRIP=$ac_cv_prog_STRIP
9099 fi
9100
9101 if test -n "$ac_cv_prog_STRIP"; then
9102 for ncn_progname in strip; do
9103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9104 set dummy ${ncn_progname}; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if ${ac_cv_prog_STRIP+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 if test -n "$STRIP"; then
9111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9112 else
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9115 do
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9120 ac_cv_prog_STRIP="${ncn_progname}"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9123 fi
9124 done
9125 done
9126 IFS=$as_save_IFS
9127
9128 fi
9129 fi
9130 STRIP=$ac_cv_prog_STRIP
9131 if test -n "$STRIP"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9133 $as_echo "$STRIP" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9137 fi
9138
9139
9140 done
9141 fi
9142
9143 for ncn_progname in strip; do
9144 if test -n "$ncn_tool_prefix"; then
9145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9146 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_prog_STRIP+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 if test -n "$STRIP"; then
9153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9154 else
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in $PATH
9157 do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9165 fi
9166 done
9167 done
9168 IFS=$as_save_IFS
9169
9170 fi
9171 fi
9172 STRIP=$ac_cv_prog_STRIP
9173 if test -n "$STRIP"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9175 $as_echo "$STRIP" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182 fi
9183 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9185 set dummy ${ncn_progname}; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_prog_STRIP+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 if test -n "$STRIP"; then
9192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9193 else
9194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 for as_dir in $PATH
9196 do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9201 ac_cv_prog_STRIP="${ncn_progname}"
9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205 done
9206 done
9207 IFS=$as_save_IFS
9208
9209 fi
9210 fi
9211 STRIP=$ac_cv_prog_STRIP
9212 if test -n "$STRIP"; then
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9214 $as_echo "$STRIP" >&6; }
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 $as_echo "no" >&6; }
9218 fi
9219
9220
9221 fi
9222 test -n "$ac_cv_prog_STRIP" && break
9223 done
9224
9225 if test -z "$ac_cv_prog_STRIP" ; then
9226 STRIP="true"
9227 fi
9228
9229
9230
9231 if test -n "$WINDRES"; then
9232 ac_cv_prog_WINDRES=$WINDRES
9233 elif test -n "$ac_cv_prog_WINDRES"; then
9234 WINDRES=$ac_cv_prog_WINDRES
9235 fi
9236
9237 if test -n "$ac_cv_prog_WINDRES"; then
9238 for ncn_progname in windres; do
9239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9240 set dummy ${ncn_progname}; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_prog_WINDRES+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 if test -n "$WINDRES"; then
9247 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9251 do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_WINDRES="${ncn_progname}"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260 done
9261 done
9262 IFS=$as_save_IFS
9263
9264 fi
9265 fi
9266 WINDRES=$ac_cv_prog_WINDRES
9267 if test -n "$WINDRES"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9269 $as_echo "$WINDRES" >&6; }
9270 else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9273 fi
9274
9275
9276 done
9277 fi
9278
9279 for ncn_progname in windres; do
9280 if test -n "$ncn_tool_prefix"; then
9281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_prog_WINDRES+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 if test -n "$WINDRES"; then
9289 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9290 else
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302 done
9303 done
9304 IFS=$as_save_IFS
9305
9306 fi
9307 fi
9308 WINDRES=$ac_cv_prog_WINDRES
9309 if test -n "$WINDRES"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9311 $as_echo "$WINDRES" >&6; }
9312 else
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9315 fi
9316
9317
9318 fi
9319 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9321 set dummy ${ncn_progname}; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if ${ac_cv_prog_WINDRES+:} false; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 if test -n "$WINDRES"; then
9328 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337 ac_cv_prog_WINDRES="${ncn_progname}"
9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9340 fi
9341 done
9342 done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 WINDRES=$ac_cv_prog_WINDRES
9348 if test -n "$WINDRES"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9350 $as_echo "$WINDRES" >&6; }
9351 else
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9354 fi
9355
9356
9357 fi
9358 test -n "$ac_cv_prog_WINDRES" && break
9359 done
9360
9361 if test -z "$ac_cv_prog_WINDRES" ; then
9362 set dummy windres
9363 if test $build = $host ; then
9364 WINDRES="$2"
9365 else
9366 WINDRES="${ncn_tool_prefix}$2"
9367 fi
9368 fi
9369
9370
9371
9372 if test -n "$WINDMC"; then
9373 ac_cv_prog_WINDMC=$WINDMC
9374 elif test -n "$ac_cv_prog_WINDMC"; then
9375 WINDMC=$ac_cv_prog_WINDMC
9376 fi
9377
9378 if test -n "$ac_cv_prog_WINDMC"; then
9379 for ncn_progname in windmc; do
9380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9381 set dummy ${ncn_progname}; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if ${ac_cv_prog_WINDMC+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 if test -n "$WINDMC"; then
9388 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9389 else
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9392 do
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397 ac_cv_prog_WINDMC="${ncn_progname}"
9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 break 2
9400 fi
9401 done
9402 done
9403 IFS=$as_save_IFS
9404
9405 fi
9406 fi
9407 WINDMC=$ac_cv_prog_WINDMC
9408 if test -n "$WINDMC"; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9410 $as_echo "$WINDMC" >&6; }
9411 else
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415
9416
9417 done
9418 fi
9419
9420 for ncn_progname in windmc; do
9421 if test -n "$ncn_tool_prefix"; then
9422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9423 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_prog_WINDMC+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$WINDMC"; then
9430 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9439 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 fi
9448 fi
9449 WINDMC=$ac_cv_prog_WINDMC
9450 if test -n "$WINDMC"; then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9452 $as_echo "$WINDMC" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 fi
9457
9458
9459 fi
9460 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9462 set dummy ${ncn_progname}; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_prog_WINDMC+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 if test -n "$WINDMC"; then
9469 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9470 else
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in $PATH
9473 do
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9478 ac_cv_prog_WINDMC="${ncn_progname}"
9479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9481 fi
9482 done
9483 done
9484 IFS=$as_save_IFS
9485
9486 fi
9487 fi
9488 WINDMC=$ac_cv_prog_WINDMC
9489 if test -n "$WINDMC"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9491 $as_echo "$WINDMC" >&6; }
9492 else
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496
9497
9498 fi
9499 test -n "$ac_cv_prog_WINDMC" && break
9500 done
9501
9502 if test -z "$ac_cv_prog_WINDMC" ; then
9503 set dummy windmc
9504 if test $build = $host ; then
9505 WINDMC="$2"
9506 else
9507 WINDMC="${ncn_tool_prefix}$2"
9508 fi
9509 fi
9510
9511
9512
9513 if test -n "$OBJCOPY"; then
9514 ac_cv_prog_OBJCOPY=$OBJCOPY
9515 elif test -n "$ac_cv_prog_OBJCOPY"; then
9516 OBJCOPY=$ac_cv_prog_OBJCOPY
9517 fi
9518
9519 if test -n "$ac_cv_prog_OBJCOPY"; then
9520 for ncn_progname in objcopy; do
9521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9522 set dummy ${ncn_progname}; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_prog_OBJCOPY+:} false; then :
9526 $as_echo_n "(cached) " >&6
9527 else
9528 if test -n "$OBJCOPY"; then
9529 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9530 else
9531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 for as_dir in $PATH
9533 do
9534 IFS=$as_save_IFS
9535 test -z "$as_dir" && as_dir=.
9536 for ac_exec_ext in '' $ac_executable_extensions; do
9537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9538 ac_cv_prog_OBJCOPY="${ncn_progname}"
9539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9540 break 2
9541 fi
9542 done
9543 done
9544 IFS=$as_save_IFS
9545
9546 fi
9547 fi
9548 OBJCOPY=$ac_cv_prog_OBJCOPY
9549 if test -n "$OBJCOPY"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9551 $as_echo "$OBJCOPY" >&6; }
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554 $as_echo "no" >&6; }
9555 fi
9556
9557
9558 done
9559 fi
9560
9561 for ncn_progname in objcopy; do
9562 if test -n "$ncn_tool_prefix"; then
9563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9564 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_prog_OBJCOPY+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 if test -n "$OBJCOPY"; then
9571 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9572 else
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 break 2
9583 fi
9584 done
9585 done
9586 IFS=$as_save_IFS
9587
9588 fi
9589 fi
9590 OBJCOPY=$ac_cv_prog_OBJCOPY
9591 if test -n "$OBJCOPY"; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9593 $as_echo "$OBJCOPY" >&6; }
9594 else
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9596 $as_echo "no" >&6; }
9597 fi
9598
9599
9600 fi
9601 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_progname}; ac_word=$2
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605 $as_echo_n "checking for $ac_word... " >&6; }
9606 if ${ac_cv_prog_OBJCOPY+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 if test -n "$OBJCOPY"; then
9610 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_OBJCOPY="${ncn_progname}"
9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623 done
9624 done
9625 IFS=$as_save_IFS
9626
9627 fi
9628 fi
9629 OBJCOPY=$ac_cv_prog_OBJCOPY
9630 if test -n "$OBJCOPY"; then
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9632 $as_echo "$OBJCOPY" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635 $as_echo "no" >&6; }
9636 fi
9637
9638
9639 fi
9640 test -n "$ac_cv_prog_OBJCOPY" && break
9641 done
9642
9643 if test -z "$ac_cv_prog_OBJCOPY" ; then
9644 set dummy objcopy
9645 if test $build = $host ; then
9646 OBJCOPY="$2"
9647 else
9648 OBJCOPY="${ncn_tool_prefix}$2"
9649 fi
9650 fi
9651
9652
9653
9654 if test -n "$OBJDUMP"; then
9655 ac_cv_prog_OBJDUMP=$OBJDUMP
9656 elif test -n "$ac_cv_prog_OBJDUMP"; then
9657 OBJDUMP=$ac_cv_prog_OBJDUMP
9658 fi
9659
9660 if test -n "$ac_cv_prog_OBJDUMP"; then
9661 for ncn_progname in objdump; do
9662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9663 set dummy ${ncn_progname}; ac_word=$2
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 $as_echo_n "checking for $ac_word... " >&6; }
9666 if ${ac_cv_prog_OBJDUMP+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 if test -n "$OBJDUMP"; then
9670 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9671 else
9672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675 IFS=$as_save_IFS
9676 test -z "$as_dir" && as_dir=.
9677 for ac_exec_ext in '' $ac_executable_extensions; do
9678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679 ac_cv_prog_OBJDUMP="${ncn_progname}"
9680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 break 2
9682 fi
9683 done
9684 done
9685 IFS=$as_save_IFS
9686
9687 fi
9688 fi
9689 OBJDUMP=$ac_cv_prog_OBJDUMP
9690 if test -n "$OBJDUMP"; then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9692 $as_echo "$OBJDUMP" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9696 fi
9697
9698
9699 done
9700 fi
9701
9702 for ncn_progname in objdump; do
9703 if test -n "$ncn_tool_prefix"; then
9704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9705 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if ${ac_cv_prog_OBJDUMP+:} false; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 if test -n "$OBJDUMP"; then
9712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9713 else
9714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9715 for as_dir in $PATH
9716 do
9717 IFS=$as_save_IFS
9718 test -z "$as_dir" && as_dir=.
9719 for ac_exec_ext in '' $ac_executable_extensions; do
9720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9721 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9723 break 2
9724 fi
9725 done
9726 done
9727 IFS=$as_save_IFS
9728
9729 fi
9730 fi
9731 OBJDUMP=$ac_cv_prog_OBJDUMP
9732 if test -n "$OBJDUMP"; then
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9734 $as_echo "$OBJDUMP" >&6; }
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9738 fi
9739
9740
9741 fi
9742 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9744 set dummy ${ncn_progname}; ac_word=$2
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9746 $as_echo_n "checking for $ac_word... " >&6; }
9747 if ${ac_cv_prog_OBJDUMP+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 if test -n "$OBJDUMP"; then
9751 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9752 else
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9760 ac_cv_prog_OBJDUMP="${ncn_progname}"
9761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9763 fi
9764 done
9765 done
9766 IFS=$as_save_IFS
9767
9768 fi
9769 fi
9770 OBJDUMP=$ac_cv_prog_OBJDUMP
9771 if test -n "$OBJDUMP"; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9773 $as_echo "$OBJDUMP" >&6; }
9774 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9777 fi
9778
9779
9780 fi
9781 test -n "$ac_cv_prog_OBJDUMP" && break
9782 done
9783
9784 if test -z "$ac_cv_prog_OBJDUMP" ; then
9785 set dummy objdump
9786 if test $build = $host ; then
9787 OBJDUMP="$2"
9788 else
9789 OBJDUMP="${ncn_tool_prefix}$2"
9790 fi
9791 fi
9792
9793
9794
9795 if test -n "$READELF"; then
9796 ac_cv_prog_READELF=$READELF
9797 elif test -n "$ac_cv_prog_READELF"; then
9798 READELF=$ac_cv_prog_READELF
9799 fi
9800
9801 if test -n "$ac_cv_prog_READELF"; then
9802 for ncn_progname in readelf; do
9803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9804 set dummy ${ncn_progname}; ac_word=$2
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806 $as_echo_n "checking for $ac_word... " >&6; }
9807 if ${ac_cv_prog_READELF+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 if test -n "$READELF"; then
9811 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9812 else
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820 ac_cv_prog_READELF="${ncn_progname}"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9827
9828 fi
9829 fi
9830 READELF=$ac_cv_prog_READELF
9831 if test -n "$READELF"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9833 $as_echo "$READELF" >&6; }
9834 else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836 $as_echo "no" >&6; }
9837 fi
9838
9839
9840 done
9841 fi
9842
9843 for ncn_progname in readelf; do
9844 if test -n "$ncn_tool_prefix"; then
9845 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9846 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_prog_READELF+:} false; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 if test -n "$READELF"; then
9853 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 break 2
9865 fi
9866 done
9867 done
9868 IFS=$as_save_IFS
9869
9870 fi
9871 fi
9872 READELF=$ac_cv_prog_READELF
9873 if test -n "$READELF"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9875 $as_echo "$READELF" >&6; }
9876 else
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880
9881
9882 fi
9883 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9885 set dummy ${ncn_progname}; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_prog_READELF+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 if test -n "$READELF"; then
9892 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_READELF="${ncn_progname}"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 fi
9910 fi
9911 READELF=$ac_cv_prog_READELF
9912 if test -n "$READELF"; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9914 $as_echo "$READELF" >&6; }
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 fi
9919
9920
9921 fi
9922 test -n "$ac_cv_prog_READELF" && break
9923 done
9924
9925 if test -z "$ac_cv_prog_READELF" ; then
9926 set dummy readelf
9927 if test $build = $host ; then
9928 READELF="$2"
9929 else
9930 READELF="${ncn_tool_prefix}$2"
9931 fi
9932 fi
9933
9934
9935
9936
9937
9938
9939 # Target tools.
9940
9941 # Check whether --with-build-time-tools was given.
9942 if test "${with_build_time_tools+set}" = set; then :
9943 withval=$with_build_time_tools; case x"$withval" in
9944 x/*) ;;
9945 *)
9946 with_build_time_tools=
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9948 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9949 ;;
9950 esac
9951 else
9952 with_build_time_tools=
9953 fi
9954
9955
9956
9957
9958 if test -n "$CC_FOR_TARGET"; then
9959 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9960 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9961 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9962 fi
9963
9964 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9965 for ncn_progname in cc gcc; do
9966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9967 set dummy ${ncn_progname}; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 if test -n "$CC_FOR_TARGET"; then
9974 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9975 else
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987 done
9988 done
9989 IFS=$as_save_IFS
9990
9991 fi
9992 fi
9993 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9994 if test -n "$CC_FOR_TARGET"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9996 $as_echo "$CC_FOR_TARGET" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002
10003 done
10004 fi
10005
10006 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10007 for ncn_progname in cc gcc; do
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10009 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10010 if test -x $with_build_time_tools/${ncn_progname}; then
10011 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10013 $as_echo "yes" >&6; }
10014 break
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019 done
10020 fi
10021
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10023 for ncn_progname in cc gcc; do
10024 if test -n "$ncn_target_tool_prefix"; then
10025 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10026 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 if test -n "$CC_FOR_TARGET"; then
10033 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10034 else
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10037 do
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10042 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10045 fi
10046 done
10047 done
10048 IFS=$as_save_IFS
10049
10050 fi
10051 fi
10052 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10053 if test -n "$CC_FOR_TARGET"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10055 $as_echo "$CC_FOR_TARGET" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 fi
10060
10061
10062 fi
10063 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10065 set dummy ${ncn_progname}; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 if test -n "$CC_FOR_TARGET"; then
10072 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10073 else
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10076 do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085 done
10086 done
10087 IFS=$as_save_IFS
10088
10089 fi
10090 fi
10091 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10092 if test -n "$CC_FOR_TARGET"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10094 $as_echo "$CC_FOR_TARGET" >&6; }
10095 else
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098 fi
10099
10100
10101 fi
10102 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10103 done
10104 fi
10105
10106 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10107 set dummy cc gcc
10108 if test $build = $target ; then
10109 CC_FOR_TARGET="$2"
10110 else
10111 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10112 fi
10113 else
10114 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10115 fi
10116
10117
10118
10119 if test -n "$CXX_FOR_TARGET"; then
10120 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10121 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10122 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10123 fi
10124
10125 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10126 for ncn_progname in c++ g++ cxx gxx; do
10127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10128 set dummy ${ncn_progname}; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 if test -n "$CXX_FOR_TARGET"; then
10135 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10136 else
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10139 do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10147 fi
10148 done
10149 done
10150 IFS=$as_save_IFS
10151
10152 fi
10153 fi
10154 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10155 if test -n "$CXX_FOR_TARGET"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10157 $as_echo "$CXX_FOR_TARGET" >&6; }
10158 else
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10161 fi
10162
10163
10164 done
10165 fi
10166
10167 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10168 for ncn_progname in c++ g++ cxx gxx; do
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10174 $as_echo "yes" >&6; }
10175 break
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180 done
10181 fi
10182
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10184 for ncn_progname in c++ g++ cxx gxx; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 if test -n "$CXX_FOR_TARGET"; then
10194 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10195 else
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207 done
10208 done
10209 IFS=$as_save_IFS
10210
10211 fi
10212 fi
10213 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10214 if test -n "$CXX_FOR_TARGET"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10216 $as_echo "$CXX_FOR_TARGET" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10220 fi
10221
10222
10223 fi
10224 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10226 set dummy ${ncn_progname}; ac_word=$2
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10228 $as_echo_n "checking for $ac_word... " >&6; }
10229 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 if test -n "$CXX_FOR_TARGET"; then
10233 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10234 else
10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236 for as_dir in $PATH
10237 do
10238 IFS=$as_save_IFS
10239 test -z "$as_dir" && as_dir=.
10240 for ac_exec_ext in '' $ac_executable_extensions; do
10241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 break 2
10245 fi
10246 done
10247 done
10248 IFS=$as_save_IFS
10249
10250 fi
10251 fi
10252 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10253 if test -n "$CXX_FOR_TARGET"; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10255 $as_echo "$CXX_FOR_TARGET" >&6; }
10256 else
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10258 $as_echo "no" >&6; }
10259 fi
10260
10261
10262 fi
10263 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10264 done
10265 fi
10266
10267 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10268 set dummy c++ g++ cxx gxx
10269 if test $build = $target ; then
10270 CXX_FOR_TARGET="$2"
10271 else
10272 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10273 fi
10274 else
10275 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10276 fi
10277
10278
10279
10280 if test -n "$GCC_FOR_TARGET"; then
10281 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10282 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10283 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10284 fi
10285
10286 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10287 for ncn_progname in gcc; do
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289 set dummy ${ncn_progname}; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 if test -n "$GCC_FOR_TARGET"; then
10296 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10297 else
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10300 do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10307 break 2
10308 fi
10309 done
10310 done
10311 IFS=$as_save_IFS
10312
10313 fi
10314 fi
10315 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10316 if test -n "$GCC_FOR_TARGET"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10318 $as_echo "$GCC_FOR_TARGET" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323
10324
10325 done
10326 fi
10327
10328 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10329 for ncn_progname in gcc; do
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10331 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10332 if test -x $with_build_time_tools/${ncn_progname}; then
10333 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10335 $as_echo "yes" >&6; }
10336 break
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341 done
10342 fi
10343
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10345 for ncn_progname in gcc; do
10346 if test -n "$ncn_target_tool_prefix"; then
10347 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10348 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 if test -n "$GCC_FOR_TARGET"; then
10355 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10367 fi
10368 done
10369 done
10370 IFS=$as_save_IFS
10371
10372 fi
10373 fi
10374 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10375 if test -n "$GCC_FOR_TARGET"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10377 $as_echo "$GCC_FOR_TARGET" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382
10383
10384 fi
10385 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10387 set dummy ${ncn_progname}; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test -n "$GCC_FOR_TARGET"; then
10394 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407 done
10408 done
10409 IFS=$as_save_IFS
10410
10411 fi
10412 fi
10413 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10414 if test -n "$GCC_FOR_TARGET"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10416 $as_echo "$GCC_FOR_TARGET" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10420 fi
10421
10422
10423 fi
10424 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10425 done
10426 fi
10427
10428 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10429 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10430 else
10431 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10432 fi
10433
10434
10435
10436 if test -n "$GFORTRAN_FOR_TARGET"; then
10437 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10438 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10439 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10440 fi
10441
10442 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10443 for ncn_progname in gfortran; do
10444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10445 set dummy ${ncn_progname}; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 if test -n "$GFORTRAN_FOR_TARGET"; then
10452 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10453 else
10454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10456 do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465 done
10466 done
10467 IFS=$as_save_IFS
10468
10469 fi
10470 fi
10471 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10472 if test -n "$GFORTRAN_FOR_TARGET"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10474 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 fi
10479
10480
10481 done
10482 fi
10483
10484 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10485 for ncn_progname in gfortran; do
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10487 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10488 if test -x $with_build_time_tools/${ncn_progname}; then
10489 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491 $as_echo "yes" >&6; }
10492 break
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497 done
10498 fi
10499
10500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10501 for ncn_progname in gfortran; do
10502 if test -n "$ncn_target_tool_prefix"; then
10503 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10504 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 if test -n "$GFORTRAN_FOR_TARGET"; then
10511 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524 done
10525 done
10526 IFS=$as_save_IFS
10527
10528 fi
10529 fi
10530 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10531 if test -n "$GFORTRAN_FOR_TARGET"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10533 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539
10540 fi
10541 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10543 set dummy ${ncn_progname}; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 if test -n "$GFORTRAN_FOR_TARGET"; then
10550 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10551 else
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10554 do
10555 IFS=$as_save_IFS
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10561 break 2
10562 fi
10563 done
10564 done
10565 IFS=$as_save_IFS
10566
10567 fi
10568 fi
10569 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10570 if test -n "$GFORTRAN_FOR_TARGET"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10572 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577
10578
10579 fi
10580 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10581 done
10582 fi
10583
10584 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10585 set dummy gfortran
10586 if test $build = $target ; then
10587 GFORTRAN_FOR_TARGET="$2"
10588 else
10589 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10590 fi
10591 else
10592 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10593 fi
10594
10595
10596
10597 if test -n "$GOC_FOR_TARGET"; then
10598 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10599 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10600 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10601 fi
10602
10603 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10604 for ncn_progname in gccgo; do
10605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10606 set dummy ${ncn_progname}; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608 $as_echo_n "checking for $ac_word... " >&6; }
10609 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 if test -n "$GOC_FOR_TARGET"; then
10613 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10614 else
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10617 do
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10622 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10625 fi
10626 done
10627 done
10628 IFS=$as_save_IFS
10629
10630 fi
10631 fi
10632 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10633 if test -n "$GOC_FOR_TARGET"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10635 $as_echo "$GOC_FOR_TARGET" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; }
10639 fi
10640
10641
10642 done
10643 fi
10644
10645 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10646 for ncn_progname in gccgo; do
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10649 if test -x $with_build_time_tools/${ncn_progname}; then
10650 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10652 $as_echo "yes" >&6; }
10653 break
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658 done
10659 fi
10660
10661 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10662 for ncn_progname in gccgo; do
10663 if test -n "$ncn_target_tool_prefix"; then
10664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test -n "$GOC_FOR_TARGET"; then
10672 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10673 else
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10684 fi
10685 done
10686 done
10687 IFS=$as_save_IFS
10688
10689 fi
10690 fi
10691 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10692 if test -n "$GOC_FOR_TARGET"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10694 $as_echo "$GOC_FOR_TARGET" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10698 fi
10699
10700
10701 fi
10702 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10704 set dummy ${ncn_progname}; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$GOC_FOR_TARGET"; then
10711 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10715 do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10723 fi
10724 done
10725 done
10726 IFS=$as_save_IFS
10727
10728 fi
10729 fi
10730 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10731 if test -n "$GOC_FOR_TARGET"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10733 $as_echo "$GOC_FOR_TARGET" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10737 fi
10738
10739
10740 fi
10741 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10742 done
10743 fi
10744
10745 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10746 set dummy gccgo
10747 if test $build = $target ; then
10748 GOC_FOR_TARGET="$2"
10749 else
10750 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10751 fi
10752 else
10753 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10754 fi
10755
10756
10757
10758 cat > conftest.c << \EOF
10759 #ifdef __GNUC__
10760 gcc_yay;
10761 #endif
10762 EOF
10763 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10764 have_gcc_for_target=yes
10765 else
10766 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10767 have_gcc_for_target=no
10768 fi
10769 rm conftest.c
10770
10771
10772
10773
10774 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10775 if test -n "$with_build_time_tools"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10777 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10778 if test -x $with_build_time_tools/ar; then
10779 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10780 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10782 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787 elif test $build != $host && test $have_gcc_for_target = yes; then
10788 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10789 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10790 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10791 fi
10792 fi
10793 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10794 # Extract the first word of "ar", so it can be a program name with args.
10795 set dummy ar; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 case $AR_FOR_TARGET in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10804 ;;
10805 *)
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $gcc_cv_tool_dirs
10808 do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10813 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817 done
10818 done
10819 IFS=$as_save_IFS
10820
10821 ;;
10822 esac
10823 fi
10824 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10825 if test -n "$AR_FOR_TARGET"; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10827 $as_echo "$AR_FOR_TARGET" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10831 fi
10832
10833
10834 fi
10835 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10836
10837
10838 if test -n "$AR_FOR_TARGET"; then
10839 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10840 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10842 fi
10843
10844 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10845 for ncn_progname in ar; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847 set dummy ${ncn_progname}; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 if test -n "$AR_FOR_TARGET"; then
10854 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10855 else
10856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857 for as_dir in $PATH
10858 do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867 done
10868 done
10869 IFS=$as_save_IFS
10870
10871 fi
10872 fi
10873 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10874 if test -n "$AR_FOR_TARGET"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10876 $as_echo "$AR_FOR_TARGET" >&6; }
10877 else
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 $as_echo "no" >&6; }
10880 fi
10881
10882
10883 done
10884 fi
10885
10886 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10887 for ncn_progname in ar; do
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10889 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10890 if test -x $with_build_time_tools/${ncn_progname}; then
10891 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10893 $as_echo "yes" >&6; }
10894 break
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10898 fi
10899 done
10900 fi
10901
10902 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10903 for ncn_progname in ar; do
10904 if test -n "$ncn_target_tool_prefix"; then
10905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10906 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test -n "$AR_FOR_TARGET"; then
10913 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10914 else
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916 for as_dir in $PATH
10917 do
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10922 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10925 fi
10926 done
10927 done
10928 IFS=$as_save_IFS
10929
10930 fi
10931 fi
10932 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10933 if test -n "$AR_FOR_TARGET"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10935 $as_echo "$AR_FOR_TARGET" >&6; }
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10939 fi
10940
10941
10942 fi
10943 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10945 set dummy ${ncn_progname}; ac_word=$2
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test -n "$AR_FOR_TARGET"; then
10952 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10956 do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965 done
10966 done
10967 IFS=$as_save_IFS
10968
10969 fi
10970 fi
10971 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10972 if test -n "$AR_FOR_TARGET"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10974 $as_echo "$AR_FOR_TARGET" >&6; }
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 $as_echo "no" >&6; }
10978 fi
10979
10980
10981 fi
10982 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10983 done
10984 fi
10985
10986 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10987 set dummy ar
10988 if test $build = $target ; then
10989 AR_FOR_TARGET="$2"
10990 else
10991 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10992 fi
10993 else
10994 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10995 fi
10996
10997 else
10998 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10999 fi
11000
11001
11002
11003
11004 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11005 if test -n "$with_build_time_tools"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11007 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11008 if test -x $with_build_time_tools/as; then
11009 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11010 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11012 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017 elif test $build != $host && test $have_gcc_for_target = yes; then
11018 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11019 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11020 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11021 fi
11022 fi
11023 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11024 # Extract the first word of "as", so it can be a program name with args.
11025 set dummy as; ac_word=$2
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027 $as_echo_n "checking for $ac_word... " >&6; }
11028 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 case $AS_FOR_TARGET in
11032 [\\/]* | ?:[\\/]*)
11033 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11034 ;;
11035 *)
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $gcc_cv_tool_dirs
11038 do
11039 IFS=$as_save_IFS
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11043 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11045 break 2
11046 fi
11047 done
11048 done
11049 IFS=$as_save_IFS
11050
11051 ;;
11052 esac
11053 fi
11054 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11055 if test -n "$AS_FOR_TARGET"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11057 $as_echo "$AS_FOR_TARGET" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11061 fi
11062
11063
11064 fi
11065 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11066
11067
11068 if test -n "$AS_FOR_TARGET"; then
11069 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11070 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11071 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11072 fi
11073
11074 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11075 for ncn_progname in as; do
11076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11077 set dummy ${ncn_progname}; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 if test -n "$AS_FOR_TARGET"; then
11084 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11085 else
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097 done
11098 done
11099 IFS=$as_save_IFS
11100
11101 fi
11102 fi
11103 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11104 if test -n "$AS_FOR_TARGET"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11106 $as_echo "$AS_FOR_TARGET" >&6; }
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 fi
11111
11112
11113 done
11114 fi
11115
11116 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11117 for ncn_progname in as; do
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11119 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11120 if test -x $with_build_time_tools/${ncn_progname}; then
11121 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11123 $as_echo "yes" >&6; }
11124 break
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129 done
11130 fi
11131
11132 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11133 for ncn_progname in as; do
11134 if test -n "$ncn_target_tool_prefix"; then
11135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11138 $as_echo_n "checking for $ac_word... " >&6; }
11139 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test -n "$AS_FOR_TARGET"; then
11143 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11144 else
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156 done
11157 done
11158 IFS=$as_save_IFS
11159
11160 fi
11161 fi
11162 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11163 if test -n "$AS_FOR_TARGET"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11165 $as_echo "$AS_FOR_TARGET" >&6; }
11166 else
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11168 $as_echo "no" >&6; }
11169 fi
11170
11171
11172 fi
11173 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11175 set dummy ${ncn_progname}; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177 $as_echo_n "checking for $ac_word... " >&6; }
11178 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 if test -n "$AS_FOR_TARGET"; then
11182 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11183 else
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11186 do
11187 IFS=$as_save_IFS
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 break 2
11194 fi
11195 done
11196 done
11197 IFS=$as_save_IFS
11198
11199 fi
11200 fi
11201 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11202 if test -n "$AS_FOR_TARGET"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11204 $as_echo "$AS_FOR_TARGET" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 $as_echo "no" >&6; }
11208 fi
11209
11210
11211 fi
11212 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11213 done
11214 fi
11215
11216 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11217 set dummy as
11218 if test $build = $target ; then
11219 AS_FOR_TARGET="$2"
11220 else
11221 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11222 fi
11223 else
11224 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11225 fi
11226
11227 else
11228 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11229 fi
11230
11231
11232
11233
11234 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11235 if test -n "$with_build_time_tools"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11237 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11238 if test -x $with_build_time_tools/dlltool; then
11239 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11240 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11242 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247 elif test $build != $host && test $have_gcc_for_target = yes; then
11248 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11249 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11250 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11251 fi
11252 fi
11253 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11254 # Extract the first word of "dlltool", so it can be a program name with args.
11255 set dummy dlltool; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 case $DLLTOOL_FOR_TARGET in
11262 [\\/]* | ?:[\\/]*)
11263 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11264 ;;
11265 *)
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $gcc_cv_tool_dirs
11268 do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277 done
11278 done
11279 IFS=$as_save_IFS
11280
11281 ;;
11282 esac
11283 fi
11284 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11285 if test -n "$DLLTOOL_FOR_TARGET"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11287 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11291 fi
11292
11293
11294 fi
11295 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11296
11297
11298 if test -n "$DLLTOOL_FOR_TARGET"; then
11299 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11300 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11301 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11302 fi
11303
11304 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11305 for ncn_progname in dlltool; do
11306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11307 set dummy ${ncn_progname}; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 if test -n "$DLLTOOL_FOR_TARGET"; then
11314 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11315 else
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11318 do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327 done
11328 done
11329 IFS=$as_save_IFS
11330
11331 fi
11332 fi
11333 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11334 if test -n "$DLLTOOL_FOR_TARGET"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11336 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341
11342
11343 done
11344 fi
11345
11346 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11347 for ncn_progname in dlltool; do
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11349 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11350 if test -x $with_build_time_tools/${ncn_progname}; then
11351 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11353 $as_echo "yes" >&6; }
11354 break
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359 done
11360 fi
11361
11362 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11363 for ncn_progname in dlltool; do
11364 if test -n "$ncn_target_tool_prefix"; then
11365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11366 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 if test -n "$DLLTOOL_FOR_TARGET"; then
11373 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11374 else
11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in $PATH
11377 do
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11382 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 break 2
11385 fi
11386 done
11387 done
11388 IFS=$as_save_IFS
11389
11390 fi
11391 fi
11392 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11393 if test -n "$DLLTOOL_FOR_TARGET"; then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11395 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398 $as_echo "no" >&6; }
11399 fi
11400
11401
11402 fi
11403 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11405 set dummy ${ncn_progname}; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 if test -n "$DLLTOOL_FOR_TARGET"; then
11412 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11413 else
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11424 fi
11425 done
11426 done
11427 IFS=$as_save_IFS
11428
11429 fi
11430 fi
11431 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11432 if test -n "$DLLTOOL_FOR_TARGET"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11434 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 fi
11439
11440
11441 fi
11442 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11443 done
11444 fi
11445
11446 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11447 set dummy dlltool
11448 if test $build = $target ; then
11449 DLLTOOL_FOR_TARGET="$2"
11450 else
11451 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11452 fi
11453 else
11454 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11455 fi
11456
11457 else
11458 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11459 fi
11460
11461
11462
11463
11464 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11465 if test -n "$with_build_time_tools"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11467 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11468 if test -x $with_build_time_tools/ld; then
11469 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11470 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11472 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477 elif test $build != $host && test $have_gcc_for_target = yes; then
11478 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11479 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11480 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11481 fi
11482 fi
11483 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11484 # Extract the first word of "ld", so it can be a program name with args.
11485 set dummy ld; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487 $as_echo_n "checking for $ac_word... " >&6; }
11488 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 case $LD_FOR_TARGET in
11492 [\\/]* | ?:[\\/]*)
11493 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11494 ;;
11495 *)
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $gcc_cv_tool_dirs
11498 do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11506 fi
11507 done
11508 done
11509 IFS=$as_save_IFS
11510
11511 ;;
11512 esac
11513 fi
11514 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11515 if test -n "$LD_FOR_TARGET"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11517 $as_echo "$LD_FOR_TARGET" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523
11524 fi
11525 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11526
11527
11528 if test -n "$LD_FOR_TARGET"; then
11529 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11530 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11531 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11532 fi
11533
11534 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11535 for ncn_progname in ld; do
11536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11537 set dummy ${ncn_progname}; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test -n "$LD_FOR_TARGET"; then
11544 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11545 else
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11548 do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11555 break 2
11556 fi
11557 done
11558 done
11559 IFS=$as_save_IFS
11560
11561 fi
11562 fi
11563 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11564 if test -n "$LD_FOR_TARGET"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11566 $as_echo "$LD_FOR_TARGET" >&6; }
11567 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 fi
11571
11572
11573 done
11574 fi
11575
11576 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11577 for ncn_progname in ld; do
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11579 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11580 if test -x $with_build_time_tools/${ncn_progname}; then
11581 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11583 $as_echo "yes" >&6; }
11584 break
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589 done
11590 fi
11591
11592 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11593 for ncn_progname in ld; do
11594 if test -n "$ncn_target_tool_prefix"; then
11595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 if test -n "$LD_FOR_TARGET"; then
11603 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616 done
11617 done
11618 IFS=$as_save_IFS
11619
11620 fi
11621 fi
11622 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11623 if test -n "$LD_FOR_TARGET"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11625 $as_echo "$LD_FOR_TARGET" >&6; }
11626 else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11629 fi
11630
11631
11632 fi
11633 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11635 set dummy ${ncn_progname}; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 if test -n "$LD_FOR_TARGET"; then
11642 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11643 else
11644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11645 for as_dir in $PATH
11646 do
11647 IFS=$as_save_IFS
11648 test -z "$as_dir" && as_dir=.
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11653 break 2
11654 fi
11655 done
11656 done
11657 IFS=$as_save_IFS
11658
11659 fi
11660 fi
11661 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11662 if test -n "$LD_FOR_TARGET"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11664 $as_echo "$LD_FOR_TARGET" >&6; }
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11668 fi
11669
11670
11671 fi
11672 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11673 done
11674 fi
11675
11676 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11677 set dummy ld
11678 if test $build = $target ; then
11679 LD_FOR_TARGET="$2"
11680 else
11681 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11682 fi
11683 else
11684 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11685 fi
11686
11687 else
11688 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11689 fi
11690
11691
11692
11693
11694 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11695 if test -n "$with_build_time_tools"; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11697 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11698 if test -x $with_build_time_tools/lipo; then
11699 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11700 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11702 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 fi
11707 elif test $build != $host && test $have_gcc_for_target = yes; then
11708 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11709 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11710 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11711 fi
11712 fi
11713 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11714 # Extract the first word of "lipo", so it can be a program name with args.
11715 set dummy lipo; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 case $LIPO_FOR_TARGET in
11722 [\\/]* | ?:[\\/]*)
11723 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11724 ;;
11725 *)
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $gcc_cv_tool_dirs
11728 do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11736 fi
11737 done
11738 done
11739 IFS=$as_save_IFS
11740
11741 ;;
11742 esac
11743 fi
11744 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11745 if test -n "$LIPO_FOR_TARGET"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11747 $as_echo "$LIPO_FOR_TARGET" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11751 fi
11752
11753
11754 fi
11755 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11756
11757
11758 if test -n "$LIPO_FOR_TARGET"; then
11759 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11760 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11761 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11762 fi
11763
11764 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11765 for ncn_progname in lipo; do
11766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11767 set dummy ${ncn_progname}; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 if test -n "$LIPO_FOR_TARGET"; then
11774 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11775 else
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11778 do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11785 break 2
11786 fi
11787 done
11788 done
11789 IFS=$as_save_IFS
11790
11791 fi
11792 fi
11793 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11794 if test -n "$LIPO_FOR_TARGET"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11796 $as_echo "$LIPO_FOR_TARGET" >&6; }
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803 done
11804 fi
11805
11806 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11807 for ncn_progname in lipo; do
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11809 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11810 if test -x $with_build_time_tools/${ncn_progname}; then
11811 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11813 $as_echo "yes" >&6; }
11814 break
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819 done
11820 fi
11821
11822 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11823 for ncn_progname in lipo; do
11824 if test -n "$ncn_target_tool_prefix"; then
11825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 if test -n "$LIPO_FOR_TARGET"; then
11833 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11834 else
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11837 do
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11842 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 break 2
11845 fi
11846 done
11847 done
11848 IFS=$as_save_IFS
11849
11850 fi
11851 fi
11852 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11853 if test -n "$LIPO_FOR_TARGET"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11855 $as_echo "$LIPO_FOR_TARGET" >&6; }
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11859 fi
11860
11861
11862 fi
11863 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11865 set dummy ${ncn_progname}; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$LIPO_FOR_TARGET"; then
11872 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11881 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885 done
11886 done
11887 IFS=$as_save_IFS
11888
11889 fi
11890 fi
11891 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11892 if test -n "$LIPO_FOR_TARGET"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11894 $as_echo "$LIPO_FOR_TARGET" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899
11900
11901 fi
11902 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11903 done
11904 fi
11905
11906 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11907 set dummy lipo
11908 if test $build = $target ; then
11909 LIPO_FOR_TARGET="$2"
11910 else
11911 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11912 fi
11913 else
11914 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11915 fi
11916
11917 else
11918 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11919 fi
11920
11921
11922
11923
11924 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11925 if test -n "$with_build_time_tools"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11927 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11928 if test -x $with_build_time_tools/nm; then
11929 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11930 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11932 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937 elif test $build != $host && test $have_gcc_for_target = yes; then
11938 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11939 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11940 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11941 fi
11942 fi
11943 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11944 # Extract the first word of "nm", so it can be a program name with args.
11945 set dummy nm; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 case $NM_FOR_TARGET in
11952 [\\/]* | ?:[\\/]*)
11953 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11954 ;;
11955 *)
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $gcc_cv_tool_dirs
11958 do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967 done
11968 done
11969 IFS=$as_save_IFS
11970
11971 ;;
11972 esac
11973 fi
11974 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11975 if test -n "$NM_FOR_TARGET"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11977 $as_echo "$NM_FOR_TARGET" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982
11983
11984 fi
11985 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11986
11987
11988 if test -n "$NM_FOR_TARGET"; then
11989 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11990 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11991 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11992 fi
11993
11994 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11995 for ncn_progname in nm; do
11996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11997 set dummy ${ncn_progname}; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 if test -n "$NM_FOR_TARGET"; then
12004 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12005 else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017 done
12018 done
12019 IFS=$as_save_IFS
12020
12021 fi
12022 fi
12023 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12024 if test -n "$NM_FOR_TARGET"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12026 $as_echo "$NM_FOR_TARGET" >&6; }
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 fi
12031
12032
12033 done
12034 fi
12035
12036 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12037 for ncn_progname in nm; do
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12039 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12040 if test -x $with_build_time_tools/${ncn_progname}; then
12041 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; }
12044 break
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049 done
12050 fi
12051
12052 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12053 for ncn_progname in nm; do
12054 if test -n "$ncn_target_tool_prefix"; then
12055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12058 $as_echo_n "checking for $ac_word... " >&6; }
12059 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test -n "$NM_FOR_TARGET"; then
12063 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12064 else
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12067 do
12068 IFS=$as_save_IFS
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12074 break 2
12075 fi
12076 done
12077 done
12078 IFS=$as_save_IFS
12079
12080 fi
12081 fi
12082 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12083 if test -n "$NM_FOR_TARGET"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12085 $as_echo "$NM_FOR_TARGET" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 fi
12090
12091
12092 fi
12093 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12095 set dummy ${ncn_progname}; ac_word=$2
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12097 $as_echo_n "checking for $ac_word... " >&6; }
12098 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 if test -n "$NM_FOR_TARGET"; then
12102 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107 IFS=$as_save_IFS
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 break 2
12114 fi
12115 done
12116 done
12117 IFS=$as_save_IFS
12118
12119 fi
12120 fi
12121 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12122 if test -n "$NM_FOR_TARGET"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12124 $as_echo "$NM_FOR_TARGET" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 fi
12132 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12133 done
12134 fi
12135
12136 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12137 set dummy nm
12138 if test $build = $target ; then
12139 NM_FOR_TARGET="$2"
12140 else
12141 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12142 fi
12143 else
12144 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12145 fi
12146
12147 else
12148 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12149 fi
12150
12151
12152
12153
12154 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12155 if test -n "$with_build_time_tools"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12157 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12158 if test -x $with_build_time_tools/objcopy; then
12159 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12160 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12162 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 fi
12167 elif test $build != $host && test $have_gcc_for_target = yes; then
12168 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12169 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12170 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12171 fi
12172 fi
12173 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12174 # Extract the first word of "objcopy", so it can be a program name with args.
12175 set dummy objcopy; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 case $OBJCOPY_FOR_TARGET in
12182 [\\/]* | ?:[\\/]*)
12183 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12184 ;;
12185 *)
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $gcc_cv_tool_dirs
12188 do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197 done
12198 done
12199 IFS=$as_save_IFS
12200
12201 ;;
12202 esac
12203 fi
12204 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12205 if test -n "$OBJCOPY_FOR_TARGET"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12207 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213
12214 fi
12215 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12216
12217
12218 if test -n "$OBJCOPY_FOR_TARGET"; then
12219 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12220 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12221 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12222 fi
12223
12224 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12225 for ncn_progname in objcopy; do
12226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12227 set dummy ${ncn_progname}; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test -n "$OBJCOPY_FOR_TARGET"; then
12234 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247 done
12248 done
12249 IFS=$as_save_IFS
12250
12251 fi
12252 fi
12253 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12254 if test -n "$OBJCOPY_FOR_TARGET"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12256 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262
12263 done
12264 fi
12265
12266 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12267 for ncn_progname in objcopy; do
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12269 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12270 if test -x $with_build_time_tools/${ncn_progname}; then
12271 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 break
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279 done
12280 fi
12281
12282 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12283 for ncn_progname in objcopy; do
12284 if test -n "$ncn_target_tool_prefix"; then
12285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12286 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 if test -n "$OBJCOPY_FOR_TARGET"; then
12293 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12294 else
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12305 fi
12306 done
12307 done
12308 IFS=$as_save_IFS
12309
12310 fi
12311 fi
12312 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12313 if test -n "$OBJCOPY_FOR_TARGET"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12315 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12316 else
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12319 fi
12320
12321
12322 fi
12323 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12325 set dummy ${ncn_progname}; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$OBJCOPY_FOR_TARGET"; then
12332 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12344 fi
12345 done
12346 done
12347 IFS=$as_save_IFS
12348
12349 fi
12350 fi
12351 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12352 if test -n "$OBJCOPY_FOR_TARGET"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12354 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12358 fi
12359
12360
12361 fi
12362 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12363 done
12364 fi
12365
12366 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12367 set dummy objcopy
12368 if test $build = $target ; then
12369 OBJCOPY_FOR_TARGET="$2"
12370 else
12371 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12372 fi
12373 else
12374 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12375 fi
12376
12377 else
12378 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12379 fi
12380
12381
12382
12383
12384 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12385 if test -n "$with_build_time_tools"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12387 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12388 if test -x $with_build_time_tools/objdump; then
12389 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12390 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12392 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397 elif test $build != $host && test $have_gcc_for_target = yes; then
12398 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12399 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12400 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12401 fi
12402 fi
12403 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12404 # Extract the first word of "objdump", so it can be a program name with args.
12405 set dummy objdump; ac_word=$2
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407 $as_echo_n "checking for $ac_word... " >&6; }
12408 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 case $OBJDUMP_FOR_TARGET in
12412 [\\/]* | ?:[\\/]*)
12413 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12414 ;;
12415 *)
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $gcc_cv_tool_dirs
12418 do
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12426 fi
12427 done
12428 done
12429 IFS=$as_save_IFS
12430
12431 ;;
12432 esac
12433 fi
12434 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12435 if test -n "$OBJDUMP_FOR_TARGET"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12437 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 fi
12442
12443
12444 fi
12445 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12446
12447
12448 if test -n "$OBJDUMP_FOR_TARGET"; then
12449 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12450 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12451 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12452 fi
12453
12454 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12455 for ncn_progname in objdump; do
12456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12457 set dummy ${ncn_progname}; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 if test -n "$OBJDUMP_FOR_TARGET"; then
12464 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12465 else
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477 done
12478 done
12479 IFS=$as_save_IFS
12480
12481 fi
12482 fi
12483 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12484 if test -n "$OBJDUMP_FOR_TARGET"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12486 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12490 fi
12491
12492
12493 done
12494 fi
12495
12496 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12497 for ncn_progname in objdump; do
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12499 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12500 if test -x $with_build_time_tools/${ncn_progname}; then
12501 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12503 $as_echo "yes" >&6; }
12504 break
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509 done
12510 fi
12511
12512 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12513 for ncn_progname in objdump; do
12514 if test -n "$ncn_target_tool_prefix"; then
12515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 if test -n "$OBJDUMP_FOR_TARGET"; then
12523 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12535 fi
12536 done
12537 done
12538 IFS=$as_save_IFS
12539
12540 fi
12541 fi
12542 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12543 if test -n "$OBJDUMP_FOR_TARGET"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12545 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552 fi
12553 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12555 set dummy ${ncn_progname}; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 if test -n "$OBJDUMP_FOR_TARGET"; then
12562 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12563 else
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12566 do
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12571 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12574 fi
12575 done
12576 done
12577 IFS=$as_save_IFS
12578
12579 fi
12580 fi
12581 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12582 if test -n "$OBJDUMP_FOR_TARGET"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12584 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12588 fi
12589
12590
12591 fi
12592 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12593 done
12594 fi
12595
12596 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12597 set dummy objdump
12598 if test $build = $target ; then
12599 OBJDUMP_FOR_TARGET="$2"
12600 else
12601 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12602 fi
12603 else
12604 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12605 fi
12606
12607 else
12608 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12609 fi
12610
12611
12612
12613
12614 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12615 if test -n "$with_build_time_tools"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12617 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12618 if test -x $with_build_time_tools/ranlib; then
12619 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12620 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12622 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627 elif test $build != $host && test $have_gcc_for_target = yes; then
12628 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12629 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12630 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12631 fi
12632 fi
12633 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12634 # Extract the first word of "ranlib", so it can be a program name with args.
12635 set dummy ranlib; ac_word=$2
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 case $RANLIB_FOR_TARGET in
12642 [\\/]* | ?:[\\/]*)
12643 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12644 ;;
12645 *)
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $gcc_cv_tool_dirs
12648 do
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_exec_ext in '' $ac_executable_extensions; do
12652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655 break 2
12656 fi
12657 done
12658 done
12659 IFS=$as_save_IFS
12660
12661 ;;
12662 esac
12663 fi
12664 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12665 if test -n "$RANLIB_FOR_TARGET"; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12667 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12671 fi
12672
12673
12674 fi
12675 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12676
12677
12678 if test -n "$RANLIB_FOR_TARGET"; then
12679 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12680 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12681 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12682 fi
12683
12684 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12685 for ncn_progname in ranlib; do
12686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12687 set dummy ${ncn_progname}; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 if test -n "$RANLIB_FOR_TARGET"; then
12694 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12695 else
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12698 do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12706 fi
12707 done
12708 done
12709 IFS=$as_save_IFS
12710
12711 fi
12712 fi
12713 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12714 if test -n "$RANLIB_FOR_TARGET"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12716 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12717 else
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719 $as_echo "no" >&6; }
12720 fi
12721
12722
12723 done
12724 fi
12725
12726 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12727 for ncn_progname in ranlib; do
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12729 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12730 if test -x $with_build_time_tools/${ncn_progname}; then
12731 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12733 $as_echo "yes" >&6; }
12734 break
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739 done
12740 fi
12741
12742 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12743 for ncn_progname in ranlib; do
12744 if test -n "$ncn_target_tool_prefix"; then
12745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12746 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if test -n "$RANLIB_FOR_TARGET"; then
12753 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12754 else
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12757 do
12758 IFS=$as_save_IFS
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12762 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764 break 2
12765 fi
12766 done
12767 done
12768 IFS=$as_save_IFS
12769
12770 fi
12771 fi
12772 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12773 if test -n "$RANLIB_FOR_TARGET"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12775 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12778 $as_echo "no" >&6; }
12779 fi
12780
12781
12782 fi
12783 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12785 set dummy ${ncn_progname}; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 if test -n "$RANLIB_FOR_TARGET"; then
12792 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12793 else
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12796 do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805 done
12806 done
12807 IFS=$as_save_IFS
12808
12809 fi
12810 fi
12811 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12812 if test -n "$RANLIB_FOR_TARGET"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12814 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12818 fi
12819
12820
12821 fi
12822 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12823 done
12824 fi
12825
12826 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12827 set dummy ranlib
12828 if test $build = $target ; then
12829 RANLIB_FOR_TARGET="$2"
12830 else
12831 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12832 fi
12833 else
12834 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12835 fi
12836
12837 else
12838 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12839 fi
12840
12841
12842
12843
12844 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12845 if test -n "$with_build_time_tools"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12847 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12848 if test -x $with_build_time_tools/readelf; then
12849 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12850 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12852 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 fi
12857 elif test $build != $host && test $have_gcc_for_target = yes; then
12858 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12859 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12860 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12861 fi
12862 fi
12863 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12864 # Extract the first word of "readelf", so it can be a program name with args.
12865 set dummy readelf; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 case $READELF_FOR_TARGET in
12872 [\\/]* | ?:[\\/]*)
12873 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12874 ;;
12875 *)
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $gcc_cv_tool_dirs
12878 do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12886 fi
12887 done
12888 done
12889 IFS=$as_save_IFS
12890
12891 ;;
12892 esac
12893 fi
12894 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12895 if test -n "$READELF_FOR_TARGET"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12897 $as_echo "$READELF_FOR_TARGET" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904 fi
12905 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12906
12907
12908 if test -n "$READELF_FOR_TARGET"; then
12909 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12910 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12911 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12912 fi
12913
12914 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12915 for ncn_progname in readelf; do
12916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12917 set dummy ${ncn_progname}; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 if test -n "$READELF_FOR_TARGET"; then
12924 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12933 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12936 fi
12937 done
12938 done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12944 if test -n "$READELF_FOR_TARGET"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12946 $as_echo "$READELF_FOR_TARGET" >&6; }
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950 fi
12951
12952
12953 done
12954 fi
12955
12956 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12957 for ncn_progname in readelf; do
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12959 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12960 if test -x $with_build_time_tools/${ncn_progname}; then
12961 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12963 $as_echo "yes" >&6; }
12964 break
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969 done
12970 fi
12971
12972 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12973 for ncn_progname in readelf; do
12974 if test -n "$ncn_target_tool_prefix"; then
12975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12976 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 if test -n "$READELF_FOR_TARGET"; then
12983 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12984 else
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12987 do
12988 IFS=$as_save_IFS
12989 test -z "$as_dir" && as_dir=.
12990 for ac_exec_ext in '' $ac_executable_extensions; do
12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 break 2
12995 fi
12996 done
12997 done
12998 IFS=$as_save_IFS
12999
13000 fi
13001 fi
13002 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13003 if test -n "$READELF_FOR_TARGET"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13005 $as_echo "$READELF_FOR_TARGET" >&6; }
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13009 fi
13010
13011
13012 fi
13013 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13015 set dummy ${ncn_progname}; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 if test -n "$READELF_FOR_TARGET"; then
13022 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13026 do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035 done
13036 done
13037 IFS=$as_save_IFS
13038
13039 fi
13040 fi
13041 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13042 if test -n "$READELF_FOR_TARGET"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13044 $as_echo "$READELF_FOR_TARGET" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049
13050
13051 fi
13052 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13053 done
13054 fi
13055
13056 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13057 set dummy readelf
13058 if test $build = $target ; then
13059 READELF_FOR_TARGET="$2"
13060 else
13061 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13062 fi
13063 else
13064 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13065 fi
13066
13067 else
13068 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13069 fi
13070
13071
13072
13073
13074 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13075 if test -n "$with_build_time_tools"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13077 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13078 if test -x $with_build_time_tools/strip; then
13079 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13080 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13082 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087 elif test $build != $host && test $have_gcc_for_target = yes; then
13088 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13089 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13090 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13091 fi
13092 fi
13093 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13094 # Extract the first word of "strip", so it can be a program name with args.
13095 set dummy strip; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 case $STRIP_FOR_TARGET in
13102 [\\/]* | ?:[\\/]*)
13103 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13104 ;;
13105 *)
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $gcc_cv_tool_dirs
13108 do
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13113 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13116 fi
13117 done
13118 done
13119 IFS=$as_save_IFS
13120
13121 ;;
13122 esac
13123 fi
13124 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13125 if test -n "$STRIP_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13127 $as_echo "$STRIP_FOR_TARGET" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 fi
13132
13133
13134 fi
13135 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13136
13137
13138 if test -n "$STRIP_FOR_TARGET"; then
13139 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13140 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13141 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13142 fi
13143
13144 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13145 for ncn_progname in strip; do
13146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13147 set dummy ${ncn_progname}; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test -n "$STRIP_FOR_TARGET"; then
13154 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13155 else
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167 done
13168 done
13169 IFS=$as_save_IFS
13170
13171 fi
13172 fi
13173 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13174 if test -n "$STRIP_FOR_TARGET"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13176 $as_echo "$STRIP_FOR_TARGET" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13180 fi
13181
13182
13183 done
13184 fi
13185
13186 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13187 for ncn_progname in strip; do
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13189 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13190 if test -x $with_build_time_tools/${ncn_progname}; then
13191 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13193 $as_echo "yes" >&6; }
13194 break
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199 done
13200 fi
13201
13202 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13203 for ncn_progname in strip; do
13204 if test -n "$ncn_target_tool_prefix"; then
13205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13208 $as_echo_n "checking for $ac_word... " >&6; }
13209 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 if test -n "$STRIP_FOR_TARGET"; then
13213 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13214 else
13215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13216 for as_dir in $PATH
13217 do
13218 IFS=$as_save_IFS
13219 test -z "$as_dir" && as_dir=.
13220 for ac_exec_ext in '' $ac_executable_extensions; do
13221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13222 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13224 break 2
13225 fi
13226 done
13227 done
13228 IFS=$as_save_IFS
13229
13230 fi
13231 fi
13232 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13233 if test -n "$STRIP_FOR_TARGET"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13235 $as_echo "$STRIP_FOR_TARGET" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241
13242 fi
13243 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13245 set dummy ${ncn_progname}; ac_word=$2
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247 $as_echo_n "checking for $ac_word... " >&6; }
13248 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 if test -n "$STRIP_FOR_TARGET"; then
13252 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13253 else
13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13256 do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
13260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13261 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265 done
13266 done
13267 IFS=$as_save_IFS
13268
13269 fi
13270 fi
13271 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13272 if test -n "$STRIP_FOR_TARGET"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13274 $as_echo "$STRIP_FOR_TARGET" >&6; }
13275 else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278 fi
13279
13280
13281 fi
13282 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13283 done
13284 fi
13285
13286 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13287 set dummy strip
13288 if test $build = $target ; then
13289 STRIP_FOR_TARGET="$2"
13290 else
13291 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13292 fi
13293 else
13294 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13295 fi
13296
13297 else
13298 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13299 fi
13300
13301
13302
13303
13304 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13305 if test -n "$with_build_time_tools"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13307 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13308 if test -x $with_build_time_tools/windres; then
13309 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13310 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13312 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317 elif test $build != $host && test $have_gcc_for_target = yes; then
13318 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13319 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13320 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13321 fi
13322 fi
13323 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13324 # Extract the first word of "windres", so it can be a program name with args.
13325 set dummy windres; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 case $WINDRES_FOR_TARGET in
13332 [\\/]* | ?:[\\/]*)
13333 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13334 ;;
13335 *)
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $gcc_cv_tool_dirs
13338 do
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13343 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13346 fi
13347 done
13348 done
13349 IFS=$as_save_IFS
13350
13351 ;;
13352 esac
13353 fi
13354 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13355 if test -n "$WINDRES_FOR_TARGET"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13357 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361 fi
13362
13363
13364 fi
13365 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13366
13367
13368 if test -n "$WINDRES_FOR_TARGET"; then
13369 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13370 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13371 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13372 fi
13373
13374 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13375 for ncn_progname in windres; do
13376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13377 set dummy ${ncn_progname}; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 if test -n "$WINDRES_FOR_TARGET"; then
13384 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13385 else
13386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387 for as_dir in $PATH
13388 do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
13391 for ac_exec_ext in '' $ac_executable_extensions; do
13392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13393 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397 done
13398 done
13399 IFS=$as_save_IFS
13400
13401 fi
13402 fi
13403 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13404 if test -n "$WINDRES_FOR_TARGET"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13406 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13407 else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409 $as_echo "no" >&6; }
13410 fi
13411
13412
13413 done
13414 fi
13415
13416 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13417 for ncn_progname in windres; do
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13419 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13420 if test -x $with_build_time_tools/${ncn_progname}; then
13421 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13423 $as_echo "yes" >&6; }
13424 break
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429 done
13430 fi
13431
13432 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13433 for ncn_progname in windres; do
13434 if test -n "$ncn_target_tool_prefix"; then
13435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13436 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 if test -n "$WINDRES_FOR_TARGET"; then
13443 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13447 do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13455 fi
13456 done
13457 done
13458 IFS=$as_save_IFS
13459
13460 fi
13461 fi
13462 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13463 if test -n "$WINDRES_FOR_TARGET"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13465 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13466 else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468 $as_echo "no" >&6; }
13469 fi
13470
13471
13472 fi
13473 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13475 set dummy ${ncn_progname}; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13477 $as_echo_n "checking for $ac_word... " >&6; }
13478 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 if test -n "$WINDRES_FOR_TARGET"; then
13482 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13483 else
13484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13485 for as_dir in $PATH
13486 do
13487 IFS=$as_save_IFS
13488 test -z "$as_dir" && as_dir=.
13489 for ac_exec_ext in '' $ac_executable_extensions; do
13490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13491 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13493 break 2
13494 fi
13495 done
13496 done
13497 IFS=$as_save_IFS
13498
13499 fi
13500 fi
13501 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13502 if test -n "$WINDRES_FOR_TARGET"; then
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13504 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509
13510
13511 fi
13512 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13513 done
13514 fi
13515
13516 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13517 set dummy windres
13518 if test $build = $target ; then
13519 WINDRES_FOR_TARGET="$2"
13520 else
13521 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13522 fi
13523 else
13524 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13525 fi
13526
13527 else
13528 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13529 fi
13530
13531
13532
13533
13534 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13535 if test -n "$with_build_time_tools"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13537 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13538 if test -x $with_build_time_tools/windmc; then
13539 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13540 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13542 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13546 fi
13547 elif test $build != $host && test $have_gcc_for_target = yes; then
13548 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13549 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13550 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13551 fi
13552 fi
13553 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13554 # Extract the first word of "windmc", so it can be a program name with args.
13555 set dummy windmc; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 case $WINDMC_FOR_TARGET in
13562 [\\/]* | ?:[\\/]*)
13563 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13564 ;;
13565 *)
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $gcc_cv_tool_dirs
13568 do
13569 IFS=$as_save_IFS
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13575 break 2
13576 fi
13577 done
13578 done
13579 IFS=$as_save_IFS
13580
13581 ;;
13582 esac
13583 fi
13584 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13585 if test -n "$WINDMC_FOR_TARGET"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13587 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13588 else
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13591 fi
13592
13593
13594 fi
13595 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13596
13597
13598 if test -n "$WINDMC_FOR_TARGET"; then
13599 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13600 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13601 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13602 fi
13603
13604 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13605 for ncn_progname in windmc; do
13606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13607 set dummy ${ncn_progname}; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 if test -n "$WINDMC_FOR_TARGET"; then
13614 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13615 else
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627 done
13628 done
13629 IFS=$as_save_IFS
13630
13631 fi
13632 fi
13633 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13634 if test -n "$WINDMC_FOR_TARGET"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13636 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13637 else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13640 fi
13641
13642
13643 done
13644 fi
13645
13646 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13647 for ncn_progname in windmc; do
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13649 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13650 if test -x $with_build_time_tools/${ncn_progname}; then
13651 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653 $as_echo "yes" >&6; }
13654 break
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659 done
13660 fi
13661
13662 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13663 for ncn_progname in windmc; do
13664 if test -n "$ncn_target_tool_prefix"; then
13665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668 $as_echo_n "checking for $ac_word... " >&6; }
13669 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 if test -n "$WINDMC_FOR_TARGET"; then
13673 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13674 else
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13677 do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13685 fi
13686 done
13687 done
13688 IFS=$as_save_IFS
13689
13690 fi
13691 fi
13692 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13693 if test -n "$WINDMC_FOR_TARGET"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13695 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699 fi
13700
13701
13702 fi
13703 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13705 set dummy ${ncn_progname}; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 if test -n "$WINDMC_FOR_TARGET"; then
13712 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723 break 2
13724 fi
13725 done
13726 done
13727 IFS=$as_save_IFS
13728
13729 fi
13730 fi
13731 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13732 if test -n "$WINDMC_FOR_TARGET"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13734 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13739
13740
13741 fi
13742 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13743 done
13744 fi
13745
13746 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13747 set dummy windmc
13748 if test $build = $target ; then
13749 WINDMC_FOR_TARGET="$2"
13750 else
13751 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13752 fi
13753 else
13754 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13755 fi
13756
13757 else
13758 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13759 fi
13760
13761
13762 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13763
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13765 $as_echo_n "checking where to find the target ar... " >&6; }
13766 if test "x${build}" != "x${host}" ; then
13767 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
13769 ac_dir=`dirname $AR_FOR_TARGET`
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771 $as_echo "pre-installed in $ac_dir" >&6; }
13772 else
13773 # Canadian cross, just use what we found
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775 $as_echo "pre-installed" >&6; }
13776 fi
13777 else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" binutils "*) ;;
13781 *) ok=no ;;
13782 esac
13783
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788 $as_echo "just compiled" >&6; }
13789 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
13791 ac_dir=`dirname $AR_FOR_TARGET`
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793 $as_echo "pre-installed in $ac_dir" >&6; }
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 AR_FOR_TARGET='$(AR)'
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798 $as_echo "host tool" >&6; }
13799 else
13800 # We need a cross tool
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13803 fi
13804 fi
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13807 $as_echo_n "checking where to find the target as... " >&6; }
13808 if test "x${build}" != "x${host}" ; then
13809 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
13811 ac_dir=`dirname $AS_FOR_TARGET`
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813 $as_echo "pre-installed in $ac_dir" >&6; }
13814 else
13815 # Canadian cross, just use what we found
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13818 fi
13819 else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gas "*) ;;
13823 *) ok=no ;;
13824 esac
13825
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830 $as_echo "just compiled" >&6; }
13831 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
13833 ac_dir=`dirname $AS_FOR_TARGET`
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835 $as_echo "pre-installed in $ac_dir" >&6; }
13836 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 AS_FOR_TARGET='$(AS)'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840 $as_echo "host tool" >&6; }
13841 else
13842 # We need a cross tool
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844 $as_echo "pre-installed" >&6; }
13845 fi
13846 fi
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13849 $as_echo_n "checking where to find the target cc... " >&6; }
13850 if test "x${build}" != "x${host}" ; then
13851 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $CC_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 else
13857 # Canadian cross, just use what we found
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13860 fi
13861 else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
13867
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872 $as_echo "just compiled" >&6; }
13873 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
13875 ac_dir=`dirname $CC_FOR_TARGET`
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877 $as_echo "pre-installed in $ac_dir" >&6; }
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 CC_FOR_TARGET='$(CC)'
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882 $as_echo "host tool" >&6; }
13883 else
13884 # We need a cross tool
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886 $as_echo "pre-installed" >&6; }
13887 fi
13888 fi
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13891 $as_echo_n "checking where to find the target c++... " >&6; }
13892 if test "x${build}" != "x${host}" ; then
13893 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $CXX_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898 else
13899 # Canadian cross, just use what we found
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13902 fi
13903 else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,c++,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 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'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917 $as_echo "just compiled" >&6; }
13918 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
13920 ac_dir=`dirname $CXX_FOR_TARGET`
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922 $as_echo "pre-installed in $ac_dir" >&6; }
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 CXX_FOR_TARGET='$(CXX)'
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927 $as_echo "host tool" >&6; }
13928 else
13929 # We need a cross tool
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13932 fi
13933 fi
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13936 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13937 if test "x${build}" != "x${host}" ; then
13938 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
13940 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943 else
13944 # Canadian cross, just use what we found
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13947 fi
13948 else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13954 case ,${enable_languages}, in
13955 *,c++,*) ;;
13956 *) ok=no ;;
13957 esac
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 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'
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962 $as_echo "just compiled" >&6; }
13963 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
13965 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967 $as_echo "pre-installed in $ac_dir" >&6; }
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 RAW_CXX_FOR_TARGET='$(CXX)'
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972 $as_echo "host tool" >&6; }
13973 else
13974 # We need a cross tool
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13977 fi
13978 fi
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13981 $as_echo_n "checking where to find the target dlltool... " >&6; }
13982 if test "x${build}" != "x${host}" ; then
13983 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 else
13989 # Canadian cross, just use what we found
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13992 fi
13993 else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" binutils "*) ;;
13997 *) ok=no ;;
13998 esac
13999
14000 if test $ok = yes; then
14001 # An in-tree tool is available and we can use it
14002 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14004 $as_echo "just compiled" >&6; }
14005 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
14007 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14009 $as_echo "pre-installed in $ac_dir" >&6; }
14010 elif test "x$target" = "x$host"; then
14011 # We can use an host tool
14012 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14014 $as_echo "host tool" >&6; }
14015 else
14016 # We need a cross tool
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14018 $as_echo "pre-installed" >&6; }
14019 fi
14020 fi
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14023 $as_echo_n "checking where to find the target gcc... " >&6; }
14024 if test "x${build}" != "x${host}" ; then
14025 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
14027 ac_dir=`dirname $GCC_FOR_TARGET`
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029 $as_echo "pre-installed in $ac_dir" >&6; }
14030 else
14031 # Canadian cross, just use what we found
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033 $as_echo "pre-installed" >&6; }
14034 fi
14035 else
14036 ok=yes
14037 case " ${configdirs} " in
14038 *" gcc "*) ;;
14039 *) ok=no ;;
14040 esac
14041
14042 if test $ok = yes; then
14043 # An in-tree tool is available and we can use it
14044 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14046 $as_echo "just compiled" >&6; }
14047 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14048 # We already found the complete path
14049 ac_dir=`dirname $GCC_FOR_TARGET`
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14051 $as_echo "pre-installed in $ac_dir" >&6; }
14052 elif test "x$target" = "x$host"; then
14053 # We can use an host tool
14054 GCC_FOR_TARGET='$()'
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14056 $as_echo "host tool" >&6; }
14057 else
14058 # We need a cross tool
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060 $as_echo "pre-installed" >&6; }
14061 fi
14062 fi
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14065 $as_echo_n "checking where to find the target gfortran... " >&6; }
14066 if test "x${build}" != "x${host}" ; then
14067 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
14069 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071 $as_echo "pre-installed in $ac_dir" >&6; }
14072 else
14073 # Canadian cross, just use what we found
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14075 $as_echo "pre-installed" >&6; }
14076 fi
14077 else
14078 ok=yes
14079 case " ${configdirs} " in
14080 *" gcc "*) ;;
14081 *) ok=no ;;
14082 esac
14083 case ,${enable_languages}, in
14084 *,fortran,*) ;;
14085 *) ok=no ;;
14086 esac
14087 if test $ok = yes; then
14088 # An in-tree tool is available and we can use it
14089 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14091 $as_echo "just compiled" >&6; }
14092 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14093 # We already found the complete path
14094 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14096 $as_echo "pre-installed in $ac_dir" >&6; }
14097 elif test "x$target" = "x$host"; then
14098 # We can use an host tool
14099 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14101 $as_echo "host tool" >&6; }
14102 else
14103 # We need a cross tool
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105 $as_echo "pre-installed" >&6; }
14106 fi
14107 fi
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14110 $as_echo_n "checking where to find the target gccgo... " >&6; }
14111 if test "x${build}" != "x${host}" ; then
14112 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14113 # We already found the complete path
14114 ac_dir=`dirname $GOC_FOR_TARGET`
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14116 $as_echo "pre-installed in $ac_dir" >&6; }
14117 else
14118 # Canadian cross, just use what we found
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14120 $as_echo "pre-installed" >&6; }
14121 fi
14122 else
14123 ok=yes
14124 case " ${configdirs} " in
14125 *" gcc "*) ;;
14126 *) ok=no ;;
14127 esac
14128 case ,${enable_languages}, in
14129 *,go,*) ;;
14130 *) ok=no ;;
14131 esac
14132 if test $ok = yes; then
14133 # An in-tree tool is available and we can use it
14134 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14136 $as_echo "just compiled" >&6; }
14137 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $GOC_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 elif test "x$target" = "x$host"; then
14143 # We can use an host tool
14144 GOC_FOR_TARGET='$(GOC)'
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14146 $as_echo "host tool" >&6; }
14147 else
14148 # We need a cross tool
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14150 $as_echo "pre-installed" >&6; }
14151 fi
14152 fi
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14155 $as_echo_n "checking where to find the target ld... " >&6; }
14156 if test "x${build}" != "x${host}" ; then
14157 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14158 # We already found the complete path
14159 ac_dir=`dirname $LD_FOR_TARGET`
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14161 $as_echo "pre-installed in $ac_dir" >&6; }
14162 else
14163 # Canadian cross, just use what we found
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14165 $as_echo "pre-installed" >&6; }
14166 fi
14167 else
14168 ok=yes
14169 case " ${configdirs} " in
14170 *" ld "*) ;;
14171 *) ok=no ;;
14172 esac
14173
14174 if test $ok = yes; then
14175 # An in-tree tool is available and we can use it
14176 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14178 $as_echo "just compiled" >&6; }
14179 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
14181 ac_dir=`dirname $LD_FOR_TARGET`
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183 $as_echo "pre-installed in $ac_dir" >&6; }
14184 elif test "x$target" = "x$host"; then
14185 # We can use an host tool
14186 LD_FOR_TARGET='$(LD)'
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14188 $as_echo "host tool" >&6; }
14189 else
14190 # We need a cross tool
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14192 $as_echo "pre-installed" >&6; }
14193 fi
14194 fi
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14197 $as_echo_n "checking where to find the target lipo... " >&6; }
14198 if test "x${build}" != "x${host}" ; then
14199 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $LIPO_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204 else
14205 # Canadian cross, just use what we found
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14207 $as_echo "pre-installed" >&6; }
14208 fi
14209 else
14210 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $LIPO_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214 $as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
14217 LIPO_FOR_TARGET='$(LIPO)'
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219 $as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223 $as_echo "pre-installed" >&6; }
14224 fi
14225 fi
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14228 $as_echo_n "checking where to find the target nm... " >&6; }
14229 if test "x${build}" != "x${host}" ; then
14230 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
14232 ac_dir=`dirname $NM_FOR_TARGET`
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234 $as_echo "pre-installed in $ac_dir" >&6; }
14235 else
14236 # Canadian cross, just use what we found
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14239 fi
14240 else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
14246
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251 $as_echo "just compiled" >&6; }
14252 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
14254 ac_dir=`dirname $NM_FOR_TARGET`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 NM_FOR_TARGET='$(NM)'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261 $as_echo "host tool" >&6; }
14262 else
14263 # We need a cross tool
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265 $as_echo "pre-installed" >&6; }
14266 fi
14267 fi
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14270 $as_echo_n "checking where to find the target objcopy... " >&6; }
14271 if test "x${build}" != "x${host}" ; then
14272 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 else
14278 # Canadian cross, just use what we found
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280 $as_echo "pre-installed" >&6; }
14281 fi
14282 else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
14288
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293 $as_echo "just compiled" >&6; }
14294 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
14296 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298 $as_echo "pre-installed in $ac_dir" >&6; }
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303 $as_echo "host tool" >&6; }
14304 else
14305 # We need a cross tool
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307 $as_echo "pre-installed" >&6; }
14308 fi
14309 fi
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14312 $as_echo_n "checking where to find the target objdump... " >&6; }
14313 if test "x${build}" != "x${host}" ; then
14314 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322 $as_echo "pre-installed" >&6; }
14323 fi
14324 else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14330
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335 $as_echo "just compiled" >&6; }
14336 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340 $as_echo "pre-installed in $ac_dir" >&6; }
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345 $as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349 $as_echo "pre-installed" >&6; }
14350 fi
14351 fi
14352
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14354 $as_echo_n "checking where to find the target ranlib... " >&6; }
14355 if test "x${build}" != "x${host}" ; then
14356 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
14358 ac_dir=`dirname $RANLIB_FOR_TARGET`
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360 $as_echo "pre-installed in $ac_dir" >&6; }
14361 else
14362 # Canadian cross, just use what we found
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364 $as_echo "pre-installed" >&6; }
14365 fi
14366 else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
14372
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
14375 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377 $as_echo "just compiled" >&6; }
14378 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
14380 ac_dir=`dirname $RANLIB_FOR_TARGET`
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382 $as_echo "pre-installed in $ac_dir" >&6; }
14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 RANLIB_FOR_TARGET='$(RANLIB)'
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387 $as_echo "host tool" >&6; }
14388 else
14389 # We need a cross tool
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391 $as_echo "pre-installed" >&6; }
14392 fi
14393 fi
14394
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14396 $as_echo_n "checking where to find the target readelf... " >&6; }
14397 if test "x${build}" != "x${host}" ; then
14398 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
14400 ac_dir=`dirname $READELF_FOR_TARGET`
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402 $as_echo "pre-installed in $ac_dir" >&6; }
14403 else
14404 # Canadian cross, just use what we found
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406 $as_echo "pre-installed" >&6; }
14407 fi
14408 else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
14414
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419 $as_echo "just compiled" >&6; }
14420 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
14422 ac_dir=`dirname $READELF_FOR_TARGET`
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424 $as_echo "pre-installed in $ac_dir" >&6; }
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 READELF_FOR_TARGET='$(READELF)'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429 $as_echo "host tool" >&6; }
14430 else
14431 # We need a cross tool
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433 $as_echo "pre-installed" >&6; }
14434 fi
14435 fi
14436
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14438 $as_echo_n "checking where to find the target strip... " >&6; }
14439 if test "x${build}" != "x${host}" ; then
14440 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $STRIP_FOR_TARGET`
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444 $as_echo "pre-installed in $ac_dir" >&6; }
14445 else
14446 # Canadian cross, just use what we found
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448 $as_echo "pre-installed" >&6; }
14449 fi
14450 else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14456
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461 $as_echo "just compiled" >&6; }
14462 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $STRIP_FOR_TARGET`
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466 $as_echo "pre-installed in $ac_dir" >&6; }
14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 STRIP_FOR_TARGET='$(STRIP)'
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471 $as_echo "host tool" >&6; }
14472 else
14473 # We need a cross tool
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475 $as_echo "pre-installed" >&6; }
14476 fi
14477 fi
14478
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14480 $as_echo_n "checking where to find the target windres... " >&6; }
14481 if test "x${build}" != "x${host}" ; then
14482 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14483 # We already found the complete path
14484 ac_dir=`dirname $WINDRES_FOR_TARGET`
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14486 $as_echo "pre-installed in $ac_dir" >&6; }
14487 else
14488 # Canadian cross, just use what we found
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490 $as_echo "pre-installed" >&6; }
14491 fi
14492 else
14493 ok=yes
14494 case " ${configdirs} " in
14495 *" binutils "*) ;;
14496 *) ok=no ;;
14497 esac
14498
14499 if test $ok = yes; then
14500 # An in-tree tool is available and we can use it
14501 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14503 $as_echo "just compiled" >&6; }
14504 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14505 # We already found the complete path
14506 ac_dir=`dirname $WINDRES_FOR_TARGET`
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14508 $as_echo "pre-installed in $ac_dir" >&6; }
14509 elif test "x$target" = "x$host"; then
14510 # We can use an host tool
14511 WINDRES_FOR_TARGET='$(WINDRES)'
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14513 $as_echo "host tool" >&6; }
14514 else
14515 # We need a cross tool
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14517 $as_echo "pre-installed" >&6; }
14518 fi
14519 fi
14520
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14522 $as_echo_n "checking where to find the target windmc... " >&6; }
14523 if test "x${build}" != "x${host}" ; then
14524 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14525 # We already found the complete path
14526 ac_dir=`dirname $WINDMC_FOR_TARGET`
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14528 $as_echo "pre-installed in $ac_dir" >&6; }
14529 else
14530 # Canadian cross, just use what we found
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14532 $as_echo "pre-installed" >&6; }
14533 fi
14534 else
14535 ok=yes
14536 case " ${configdirs} " in
14537 *" binutils "*) ;;
14538 *) ok=no ;;
14539 esac
14540
14541 if test $ok = yes; then
14542 # An in-tree tool is available and we can use it
14543 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14545 $as_echo "just compiled" >&6; }
14546 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14547 # We already found the complete path
14548 ac_dir=`dirname $WINDMC_FOR_TARGET`
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14550 $as_echo "pre-installed in $ac_dir" >&6; }
14551 elif test "x$target" = "x$host"; then
14552 # We can use an host tool
14553 WINDMC_FOR_TARGET='$(WINDMC)'
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14555 $as_echo "host tool" >&6; }
14556 else
14557 # We need a cross tool
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14559 $as_echo "pre-installed" >&6; }
14560 fi
14561 fi
14562
14563
14564
14565
14566
14567 # Certain tools may need extra flags.
14568 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14569 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14570 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14571
14572 # When building target libraries, except in a Canadian cross, we use
14573 # the same toolchain as the compiler we just built.
14574 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14575 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14576 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14577 if test $host = $build; then
14578 case " $configdirs " in
14579 *" gcc "*)
14580 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14581 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14582 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14583 ;;
14584 esac
14585 fi
14586
14587
14588
14589
14590
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14592 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14593 # Check whether --enable-maintainer-mode was given.
14594 if test "${enable_maintainer_mode+set}" = set; then :
14595 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14596 else
14597 USE_MAINTAINER_MODE=no
14598 fi
14599
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14601 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14602
14603
14604 if test "$USE_MAINTAINER_MODE" = yes; then
14605 MAINTAINER_MODE_TRUE=
14606 MAINTAINER_MODE_FALSE='#'
14607 else
14608 MAINTAINER_MODE_TRUE='#'
14609 MAINTAINER_MODE_FALSE=
14610 fi
14611 MAINT=$MAINTAINER_MODE_TRUE
14612
14613 # ---------------------
14614 # GCC bootstrap support
14615 # ---------------------
14616
14617 # Stage specific cflags for build.
14618 stage1_cflags="-g"
14619 case $build in
14620 vax-*-*)
14621 case ${GCC} in
14622 yes) stage1_cflags="-g -Wa,-J" ;;
14623 *) stage1_cflags="-g -J" ;;
14624 esac ;;
14625 esac
14626
14627
14628
14629 # Enable --enable-checking in stage1 of the compiler.
14630 # Check whether --enable-stage1-checking was given.
14631 if test "${enable_stage1_checking+set}" = set; then :
14632 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14633 else
14634 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14635 # For --disable-checking or implicit --enable-checking=release, avoid
14636 # setting --enable-checking=gc in the default stage1 checking for LTO
14637 # bootstraps. See PR62077.
14638 case $BUILD_CONFIG in
14639 *lto*)
14640 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14641 *)
14642 stage1_checking=--enable-checking=yes,types;;
14643 esac
14644 if test "x$enable_checking" = x && \
14645 test -d ${srcdir}/gcc && \
14646 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14647 stage1_checking=--enable-checking=yes,types,extra
14648 fi
14649 else
14650 stage1_checking=--enable-checking=$enable_checking,types
14651 fi
14652 fi
14653
14654
14655
14656 # Enable -Werror in bootstrap stage2 and later.
14657 # Check whether --enable-werror was given.
14658 if test "${enable_werror+set}" = set; then :
14659 enableval=$enable_werror;
14660 case ${enable_werror} in
14661 yes) stage2_werror_flag="--enable-werror-always" ;;
14662 *) stage2_werror_flag="" ;;
14663 esac
14664
14665 else
14666
14667 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14668 case $BUILD_CONFIG in
14669 bootstrap-debug)
14670 stage2_werror_flag="--enable-werror-always" ;;
14671 "")
14672 stage2_werror_flag="--enable-werror-always" ;;
14673 esac
14674 fi
14675
14676 fi
14677
14678
14679
14680
14681 # Specify what files to not compare during bootstrap.
14682
14683 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14684 case "$target" in
14685 hppa*64*-*-hpux*) ;;
14686 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14687 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14688 esac
14689
14690
14691 ac_config_files="$ac_config_files Makefile"
14692
14693 cat >confcache <<\_ACEOF
14694 # This file is a shell script that caches the results of configure
14695 # tests run on this system so they can be shared between configure
14696 # scripts and configure runs, see configure's option --config-cache.
14697 # It is not useful on other systems. If it contains results you don't
14698 # want to keep, you may remove or edit it.
14699 #
14700 # config.status only pays attention to the cache file if you give it
14701 # the --recheck option to rerun configure.
14702 #
14703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14705 # following values.
14706
14707 _ACEOF
14708
14709 # The following way of writing the cache mishandles newlines in values,
14710 # but we know of no workaround that is simple, portable, and efficient.
14711 # So, we kill variables containing newlines.
14712 # Ultrix sh set writes to stderr and can't be redirected directly,
14713 # and sets the high bit in the cache file unless we assign to the vars.
14714 (
14715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14716 eval ac_val=\$$ac_var
14717 case $ac_val in #(
14718 *${as_nl}*)
14719 case $ac_var in #(
14720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14722 esac
14723 case $ac_var in #(
14724 _ | IFS | as_nl) ;; #(
14725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14726 *) { eval $ac_var=; unset $ac_var;} ;;
14727 esac ;;
14728 esac
14729 done
14730
14731 (set) 2>&1 |
14732 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14733 *${as_nl}ac_space=\ *)
14734 # `set' does not quote correctly, so add quotes: double-quote
14735 # substitution turns \\\\ into \\, and sed turns \\ into \.
14736 sed -n \
14737 "s/'/'\\\\''/g;
14738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14739 ;; #(
14740 *)
14741 # `set' quotes correctly as required by POSIX, so do not add quotes.
14742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14743 ;;
14744 esac |
14745 sort
14746 ) |
14747 sed '
14748 /^ac_cv_env_/b end
14749 t clear
14750 :clear
14751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14752 t end
14753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14754 :end' >>confcache
14755 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14756 if test -w "$cache_file"; then
14757 if test "x$cache_file" != "x/dev/null"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14759 $as_echo "$as_me: updating cache $cache_file" >&6;}
14760 if test ! -f "$cache_file" || test -h "$cache_file"; then
14761 cat confcache >"$cache_file"
14762 else
14763 case $cache_file in #(
14764 */* | ?:*)
14765 mv -f confcache "$cache_file"$$ &&
14766 mv -f "$cache_file"$$ "$cache_file" ;; #(
14767 *)
14768 mv -f confcache "$cache_file" ;;
14769 esac
14770 fi
14771 fi
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14774 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14775 fi
14776 fi
14777 rm -f confcache
14778
14779 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14780 # Let make expand exec_prefix.
14781 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14782
14783 # Transform confdefs.h into DEFS.
14784 # Protect against shell expansion while executing Makefile rules.
14785 # Protect against Makefile macro expansion.
14786 #
14787 # If the first sed substitution is executed (which looks for macros that
14788 # take arguments), then branch to the quote section. Otherwise,
14789 # look for a macro that doesn't take arguments.
14790 ac_script='
14791 :mline
14792 /\\$/{
14793 N
14794 s,\\\n,,
14795 b mline
14796 }
14797 t clear
14798 :clear
14799 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14800 t quote
14801 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14802 t quote
14803 b any
14804 :quote
14805 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14806 s/\[/\\&/g
14807 s/\]/\\&/g
14808 s/\$/$$/g
14809 H
14810 :any
14811 ${
14812 g
14813 s/^\n//
14814 s/\n/ /g
14815 p
14816 }
14817 '
14818 DEFS=`sed -n "$ac_script" confdefs.h`
14819
14820
14821 ac_libobjs=
14822 ac_ltlibobjs=
14823 U=
14824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14825 # 1. Remove the extension, and $U if already installed.
14826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14829 # will be set to the directory where LIBOBJS objects are built.
14830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14832 done
14833 LIBOBJS=$ac_libobjs
14834
14835 LTLIBOBJS=$ac_ltlibobjs
14836
14837
14838
14839 : "${CONFIG_STATUS=./config.status}"
14840 ac_write_fail=0
14841 ac_clean_files_save=$ac_clean_files
14842 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14844 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14845 as_write_fail=0
14846 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14847 #! $SHELL
14848 # Generated by $as_me.
14849 # Run this file to recreate the current configuration.
14850 # Compiler output produced by configure, useful for debugging
14851 # configure, is in config.log if it exists.
14852
14853 debug=false
14854 ac_cs_recheck=false
14855 ac_cs_silent=false
14856
14857 SHELL=\${CONFIG_SHELL-$SHELL}
14858 export SHELL
14859 _ASEOF
14860 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14861 ## -------------------- ##
14862 ## M4sh Initialization. ##
14863 ## -------------------- ##
14864
14865 # Be more Bourne compatible
14866 DUALCASE=1; export DUALCASE # for MKS sh
14867 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14868 emulate sh
14869 NULLCMD=:
14870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14871 # is contrary to our usage. Disable this feature.
14872 alias -g '${1+"$@"}'='"$@"'
14873 setopt NO_GLOB_SUBST
14874 else
14875 case `(set -o) 2>/dev/null` in #(
14876 *posix*) :
14877 set -o posix ;; #(
14878 *) :
14879 ;;
14880 esac
14881 fi
14882
14883
14884 as_nl='
14885 '
14886 export as_nl
14887 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14888 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14891 # Prefer a ksh shell builtin over an external printf program on Solaris,
14892 # but without wasting forks for bash or zsh.
14893 if test -z "$BASH_VERSION$ZSH_VERSION" \
14894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14895 as_echo='print -r --'
14896 as_echo_n='print -rn --'
14897 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14898 as_echo='printf %s\n'
14899 as_echo_n='printf %s'
14900 else
14901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14903 as_echo_n='/usr/ucb/echo -n'
14904 else
14905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14906 as_echo_n_body='eval
14907 arg=$1;
14908 case $arg in #(
14909 *"$as_nl"*)
14910 expr "X$arg" : "X\\(.*\\)$as_nl";
14911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14912 esac;
14913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14914 '
14915 export as_echo_n_body
14916 as_echo_n='sh -c $as_echo_n_body as_echo'
14917 fi
14918 export as_echo_body
14919 as_echo='sh -c $as_echo_body as_echo'
14920 fi
14921
14922 # The user is always right.
14923 if test "${PATH_SEPARATOR+set}" != set; then
14924 PATH_SEPARATOR=:
14925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14927 PATH_SEPARATOR=';'
14928 }
14929 fi
14930
14931
14932 # IFS
14933 # We need space, tab and new line, in precisely that order. Quoting is
14934 # there to prevent editors from complaining about space-tab.
14935 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14936 # splitting by setting IFS to empty value.)
14937 IFS=" "" $as_nl"
14938
14939 # Find who we are. Look in the path if we contain no directory separator.
14940 as_myself=
14941 case $0 in #((
14942 *[\\/]* ) as_myself=$0 ;;
14943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944 for as_dir in $PATH
14945 do
14946 IFS=$as_save_IFS
14947 test -z "$as_dir" && as_dir=.
14948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14949 done
14950 IFS=$as_save_IFS
14951
14952 ;;
14953 esac
14954 # We did not find ourselves, most probably we were run as `sh COMMAND'
14955 # in which case we are not to be found in the path.
14956 if test "x$as_myself" = x; then
14957 as_myself=$0
14958 fi
14959 if test ! -f "$as_myself"; then
14960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14961 exit 1
14962 fi
14963
14964 # Unset variables that we do not need and which cause bugs (e.g. in
14965 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14966 # suppresses any "Segmentation fault" message there. '((' could
14967 # trigger a bug in pdksh 5.2.14.
14968 for as_var in BASH_ENV ENV MAIL MAILPATH
14969 do eval test x\${$as_var+set} = xset \
14970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14971 done
14972 PS1='$ '
14973 PS2='> '
14974 PS4='+ '
14975
14976 # NLS nuisances.
14977 LC_ALL=C
14978 export LC_ALL
14979 LANGUAGE=C
14980 export LANGUAGE
14981
14982 # CDPATH.
14983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14984
14985
14986 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14987 # ----------------------------------------
14988 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14989 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14990 # script with STATUS, using 1 if that was 0.
14991 as_fn_error ()
14992 {
14993 as_status=$1; test $as_status -eq 0 && as_status=1
14994 if test "$4"; then
14995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14997 fi
14998 $as_echo "$as_me: error: $2" >&2
14999 as_fn_exit $as_status
15000 } # as_fn_error
15001
15002
15003 # as_fn_set_status STATUS
15004 # -----------------------
15005 # Set $? to STATUS, without forking.
15006 as_fn_set_status ()
15007 {
15008 return $1
15009 } # as_fn_set_status
15010
15011 # as_fn_exit STATUS
15012 # -----------------
15013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15014 as_fn_exit ()
15015 {
15016 set +e
15017 as_fn_set_status $1
15018 exit $1
15019 } # as_fn_exit
15020
15021 # as_fn_unset VAR
15022 # ---------------
15023 # Portably unset VAR.
15024 as_fn_unset ()
15025 {
15026 { eval $1=; unset $1;}
15027 }
15028 as_unset=as_fn_unset
15029 # as_fn_append VAR VALUE
15030 # ----------------------
15031 # Append the text in VALUE to the end of the definition contained in VAR. Take
15032 # advantage of any shell optimizations that allow amortized linear growth over
15033 # repeated appends, instead of the typical quadratic growth present in naive
15034 # implementations.
15035 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15036 eval 'as_fn_append ()
15037 {
15038 eval $1+=\$2
15039 }'
15040 else
15041 as_fn_append ()
15042 {
15043 eval $1=\$$1\$2
15044 }
15045 fi # as_fn_append
15046
15047 # as_fn_arith ARG...
15048 # ------------------
15049 # Perform arithmetic evaluation on the ARGs, and store the result in the
15050 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15051 # must be portable across $(()) and expr.
15052 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15053 eval 'as_fn_arith ()
15054 {
15055 as_val=$(( $* ))
15056 }'
15057 else
15058 as_fn_arith ()
15059 {
15060 as_val=`expr "$@" || test $? -eq 1`
15061 }
15062 fi # as_fn_arith
15063
15064
15065 if expr a : '\(a\)' >/dev/null 2>&1 &&
15066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15067 as_expr=expr
15068 else
15069 as_expr=false
15070 fi
15071
15072 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15073 as_basename=basename
15074 else
15075 as_basename=false
15076 fi
15077
15078 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15079 as_dirname=dirname
15080 else
15081 as_dirname=false
15082 fi
15083
15084 as_me=`$as_basename -- "$0" ||
15085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15086 X"$0" : 'X\(//\)$' \| \
15087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15088 $as_echo X/"$0" |
15089 sed '/^.*\/\([^/][^/]*\)\/*$/{
15090 s//\1/
15091 q
15092 }
15093 /^X\/\(\/\/\)$/{
15094 s//\1/
15095 q
15096 }
15097 /^X\/\(\/\).*/{
15098 s//\1/
15099 q
15100 }
15101 s/.*/./; q'`
15102
15103 # Avoid depending upon Character Ranges.
15104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15107 as_cr_digits='0123456789'
15108 as_cr_alnum=$as_cr_Letters$as_cr_digits
15109
15110 ECHO_C= ECHO_N= ECHO_T=
15111 case `echo -n x` in #(((((
15112 -n*)
15113 case `echo 'xy\c'` in
15114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15115 xy) ECHO_C='\c';;
15116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15117 ECHO_T=' ';;
15118 esac;;
15119 *)
15120 ECHO_N='-n';;
15121 esac
15122
15123 rm -f conf$$ conf$$.exe conf$$.file
15124 if test -d conf$$.dir; then
15125 rm -f conf$$.dir/conf$$.file
15126 else
15127 rm -f conf$$.dir
15128 mkdir conf$$.dir 2>/dev/null
15129 fi
15130 if (echo >conf$$.file) 2>/dev/null; then
15131 if ln -s conf$$.file conf$$ 2>/dev/null; then
15132 as_ln_s='ln -s'
15133 # ... but there are two gotchas:
15134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15136 # In both cases, we have to default to `cp -pR'.
15137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15138 as_ln_s='cp -pR'
15139 elif ln conf$$.file conf$$ 2>/dev/null; then
15140 as_ln_s=ln
15141 else
15142 as_ln_s='cp -pR'
15143 fi
15144 else
15145 as_ln_s='cp -pR'
15146 fi
15147 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15148 rmdir conf$$.dir 2>/dev/null
15149
15150
15151 # as_fn_mkdir_p
15152 # -------------
15153 # Create "$as_dir" as a directory, including parents if necessary.
15154 as_fn_mkdir_p ()
15155 {
15156
15157 case $as_dir in #(
15158 -*) as_dir=./$as_dir;;
15159 esac
15160 test -d "$as_dir" || eval $as_mkdir_p || {
15161 as_dirs=
15162 while :; do
15163 case $as_dir in #(
15164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15165 *) as_qdir=$as_dir;;
15166 esac
15167 as_dirs="'$as_qdir' $as_dirs"
15168 as_dir=`$as_dirname -- "$as_dir" ||
15169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15170 X"$as_dir" : 'X\(//\)[^/]' \| \
15171 X"$as_dir" : 'X\(//\)$' \| \
15172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15173 $as_echo X"$as_dir" |
15174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15175 s//\1/
15176 q
15177 }
15178 /^X\(\/\/\)[^/].*/{
15179 s//\1/
15180 q
15181 }
15182 /^X\(\/\/\)$/{
15183 s//\1/
15184 q
15185 }
15186 /^X\(\/\).*/{
15187 s//\1/
15188 q
15189 }
15190 s/.*/./; q'`
15191 test -d "$as_dir" && break
15192 done
15193 test -z "$as_dirs" || eval "mkdir $as_dirs"
15194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15195
15196
15197 } # as_fn_mkdir_p
15198 if mkdir -p . 2>/dev/null; then
15199 as_mkdir_p='mkdir -p "$as_dir"'
15200 else
15201 test -d ./-p && rmdir ./-p
15202 as_mkdir_p=false
15203 fi
15204
15205
15206 # as_fn_executable_p FILE
15207 # -----------------------
15208 # Test if FILE is an executable regular file.
15209 as_fn_executable_p ()
15210 {
15211 test -f "$1" && test -x "$1"
15212 } # as_fn_executable_p
15213 as_test_x='test -x'
15214 as_executable_p=as_fn_executable_p
15215
15216 # Sed expression to map a string onto a valid CPP name.
15217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15218
15219 # Sed expression to map a string onto a valid variable name.
15220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15221
15222
15223 exec 6>&1
15224 ## ----------------------------------- ##
15225 ## Main body of $CONFIG_STATUS script. ##
15226 ## ----------------------------------- ##
15227 _ASEOF
15228 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15229
15230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231 # Save the log message, to keep $0 and so on meaningful, and to
15232 # report actual input values of CONFIG_FILES etc. instead of their
15233 # values after options handling.
15234 ac_log="
15235 This file was extended by $as_me, which was
15236 generated by GNU Autoconf 2.69. Invocation command line was
15237
15238 CONFIG_FILES = $CONFIG_FILES
15239 CONFIG_HEADERS = $CONFIG_HEADERS
15240 CONFIG_LINKS = $CONFIG_LINKS
15241 CONFIG_COMMANDS = $CONFIG_COMMANDS
15242 $ $0 $@
15243
15244 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15245 "
15246
15247 _ACEOF
15248
15249 case $ac_config_files in *"
15250 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15251 esac
15252
15253
15254
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 # Files that config.status was made for.
15257 config_files="$ac_config_files"
15258
15259 _ACEOF
15260
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 ac_cs_usage="\
15263 \`$as_me' instantiates files and other configuration actions
15264 from templates according to the current configuration. Unless the files
15265 and actions are specified as TAGs, all are instantiated by default.
15266
15267 Usage: $0 [OPTION]... [TAG]...
15268
15269 -h, --help print this help, then exit
15270 -V, --version print version number and configuration settings, then exit
15271 --config print configuration, then exit
15272 -q, --quiet, --silent
15273 do not print progress messages
15274 -d, --debug don't remove temporary files
15275 --recheck update $as_me by reconfiguring in the same conditions
15276 --file=FILE[:TEMPLATE]
15277 instantiate the configuration file FILE
15278
15279 Configuration files:
15280 $config_files
15281
15282 Report bugs to the package provider."
15283
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15287 ac_cs_version="\\
15288 config.status
15289 configured by $0, generated by GNU Autoconf 2.69,
15290 with options \\"\$ac_cs_config\\"
15291
15292 Copyright (C) 2012 Free Software Foundation, Inc.
15293 This config.status script is free software; the Free Software Foundation
15294 gives unlimited permission to copy, distribute and modify it."
15295
15296 ac_pwd='$ac_pwd'
15297 srcdir='$srcdir'
15298 INSTALL='$INSTALL'
15299 AWK='$AWK'
15300 test -n "\$AWK" || AWK=awk
15301 _ACEOF
15302
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 # The default lists apply if the user does not specify any file.
15305 ac_need_defaults=:
15306 while test $# != 0
15307 do
15308 case $1 in
15309 --*=?*)
15310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15312 ac_shift=:
15313 ;;
15314 --*=)
15315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15316 ac_optarg=
15317 ac_shift=:
15318 ;;
15319 *)
15320 ac_option=$1
15321 ac_optarg=$2
15322 ac_shift=shift
15323 ;;
15324 esac
15325
15326 case $ac_option in
15327 # Handling of the options.
15328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15329 ac_cs_recheck=: ;;
15330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15331 $as_echo "$ac_cs_version"; exit ;;
15332 --config | --confi | --conf | --con | --co | --c )
15333 $as_echo "$ac_cs_config"; exit ;;
15334 --debug | --debu | --deb | --de | --d | -d )
15335 debug=: ;;
15336 --file | --fil | --fi | --f )
15337 $ac_shift
15338 case $ac_optarg in
15339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15340 '') as_fn_error $? "missing file argument" ;;
15341 esac
15342 as_fn_append CONFIG_FILES " '$ac_optarg'"
15343 ac_need_defaults=false;;
15344 --he | --h | --help | --hel | -h )
15345 $as_echo "$ac_cs_usage"; exit ;;
15346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15348 ac_cs_silent=: ;;
15349
15350 # This is an error.
15351 -*) as_fn_error $? "unrecognized option: \`$1'
15352 Try \`$0 --help' for more information." ;;
15353
15354 *) as_fn_append ac_config_targets " $1"
15355 ac_need_defaults=false ;;
15356
15357 esac
15358 shift
15359 done
15360
15361 ac_configure_extra_args=
15362
15363 if $ac_cs_silent; then
15364 exec 6>/dev/null
15365 ac_configure_extra_args="$ac_configure_extra_args --silent"
15366 fi
15367
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15370 if \$ac_cs_recheck; then
15371 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15372 shift
15373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15374 CONFIG_SHELL='$SHELL'
15375 export CONFIG_SHELL
15376 exec "\$@"
15377 fi
15378
15379 _ACEOF
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 exec 5>>config.log
15382 {
15383 echo
15384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15385 ## Running $as_me. ##
15386 _ASBOX
15387 $as_echo "$ac_log"
15388 } >&5
15389
15390 _ACEOF
15391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15392 #
15393 # INIT-COMMANDS
15394 #
15395 extrasub_build="$extrasub_build"
15396 extrasub_host="$extrasub_host"
15397 extrasub_target="$extrasub_target"
15398
15399 _ACEOF
15400
15401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402
15403 # Handling of arguments.
15404 for ac_config_target in $ac_config_targets
15405 do
15406 case $ac_config_target in
15407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15408
15409 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15410 esac
15411 done
15412
15413
15414 # If the user did not use the arguments to specify the items to instantiate,
15415 # then the envvar interface is used. Set only those that are not.
15416 # We use the long form for the default assignment because of an extremely
15417 # bizarre bug on SunOS 4.1.3.
15418 if $ac_need_defaults; then
15419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15420 fi
15421
15422 # Have a temporary directory for convenience. Make it in the build tree
15423 # simply because there is no reason against having it here, and in addition,
15424 # creating and moving files from /tmp can sometimes cause problems.
15425 # Hook for its removal unless debugging.
15426 # Note that there is a small window in which the directory will not be cleaned:
15427 # after its creation but before its name has been assigned to `$tmp'.
15428 $debug ||
15429 {
15430 tmp= ac_tmp=
15431 trap 'exit_status=$?
15432 : "${ac_tmp:=$tmp}"
15433 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15434 ' 0
15435 trap 'as_fn_exit 1' 1 2 13 15
15436 }
15437 # Create a (secure) tmp directory for tmp files.
15438
15439 {
15440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15441 test -d "$tmp"
15442 } ||
15443 {
15444 tmp=./conf$$-$RANDOM
15445 (umask 077 && mkdir "$tmp")
15446 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15447 ac_tmp=$tmp
15448
15449 # Set up the scripts for CONFIG_FILES section.
15450 # No need to generate them if there are no CONFIG_FILES.
15451 # This happens for instance with `./config.status config.h'.
15452 if test -n "$CONFIG_FILES"; then
15453
15454 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15455 ac_cs_awk_getline=:
15456 ac_cs_awk_pipe_init=
15457 ac_cs_awk_read_file='
15458 while ((getline aline < (F[key])) > 0)
15459 print(aline)
15460 close(F[key])'
15461 ac_cs_awk_pipe_fini=
15462 else
15463 ac_cs_awk_getline=false
15464 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15465 ac_cs_awk_read_file='
15466 print "|#_!!_#|"
15467 print "cat " F[key] " &&"
15468 '$ac_cs_awk_pipe_init
15469 # The final `:' finishes the AND list.
15470 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15471 fi
15472 ac_cr=`echo X | tr X '\015'`
15473 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15474 # But we know of no other shell where ac_cr would be empty at this
15475 # point, so we can use a bashism as a fallback.
15476 if test "x$ac_cr" = x; then
15477 eval ac_cr=\$\'\\r\'
15478 fi
15479 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15480 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15481 ac_cs_awk_cr='\\r'
15482 else
15483 ac_cs_awk_cr=$ac_cr
15484 fi
15485
15486 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15487 _ACEOF
15488
15489 # Create commands to substitute file output variables.
15490 {
15491 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15492 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15493 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15494 echo "_ACAWK" &&
15495 echo "_ACEOF"
15496 } >conf$$files.sh &&
15497 . ./conf$$files.sh ||
15498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15499 rm -f conf$$files.sh
15500
15501 {
15502 echo "cat >conf$$subs.awk <<_ACEOF" &&
15503 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15504 echo "_ACEOF"
15505 } >conf$$subs.sh ||
15506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15507 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15508 ac_delim='%!_!# '
15509 for ac_last_try in false false false false false :; do
15510 . ./conf$$subs.sh ||
15511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15512
15513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15514 if test $ac_delim_n = $ac_delim_num; then
15515 break
15516 elif $ac_last_try; then
15517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15518 else
15519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15520 fi
15521 done
15522 rm -f conf$$subs.sh
15523
15524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15526 _ACEOF
15527 sed -n '
15528 h
15529 s/^/S["/; s/!.*/"]=/
15530 p
15531 g
15532 s/^[^!]*!//
15533 :repl
15534 t repl
15535 s/'"$ac_delim"'$//
15536 t delim
15537 :nl
15538 h
15539 s/\(.\{148\}\)..*/\1/
15540 t more1
15541 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15542 p
15543 n
15544 b repl
15545 :more1
15546 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15547 p
15548 g
15549 s/.\{148\}//
15550 t nl
15551 :delim
15552 h
15553 s/\(.\{148\}\)..*/\1/
15554 t more2
15555 s/["\\]/\\&/g; s/^/"/; s/$/"/
15556 p
15557 b
15558 :more2
15559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15560 p
15561 g
15562 s/.\{148\}//
15563 t delim
15564 ' <conf$$subs.awk | sed '
15565 /^[^""]/{
15566 N
15567 s/\n//
15568 }
15569 ' >>$CONFIG_STATUS || ac_write_fail=1
15570 rm -f conf$$subs.awk
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 _ACAWK
15573 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15574 for (key in S) S_is_set[key] = 1
15575 FS = "\a"
15576 \$ac_cs_awk_pipe_init
15577 }
15578 {
15579 line = $ 0
15580 nfields = split(line, field, "@")
15581 substed = 0
15582 len = length(field[1])
15583 for (i = 2; i < nfields; i++) {
15584 key = field[i]
15585 keylen = length(key)
15586 if (S_is_set[key]) {
15587 value = S[key]
15588 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15589 len += length(value) + length(field[++i])
15590 substed = 1
15591 } else
15592 len += 1 + keylen
15593 }
15594 if (nfields == 3 && !substed) {
15595 key = field[2]
15596 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15597 \$ac_cs_awk_read_file
15598 next
15599 }
15600 }
15601 print line
15602 }
15603 \$ac_cs_awk_pipe_fini
15604 _ACAWK
15605 _ACEOF
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15609 else
15610 cat
15611 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15613 _ACEOF
15614
15615 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15616 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15617 # trailing colons and then remove the whole line if VPATH becomes empty
15618 # (actually we leave an empty line to preserve line numbers).
15619 if test "x$srcdir" = x.; then
15620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15621 h
15622 s///
15623 s/^/:/
15624 s/[ ]*$/:/
15625 s/:\$(srcdir):/:/g
15626 s/:\${srcdir}:/:/g
15627 s/:@srcdir@:/:/g
15628 s/^:*//
15629 s/:*$//
15630 x
15631 s/\(=[ ]*\).*/\1/
15632 G
15633 s/\n//
15634 s/^[^=]*=[ ]*$//
15635 }'
15636 fi
15637
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 fi # test -n "$CONFIG_FILES"
15640
15641
15642 eval set X " :F $CONFIG_FILES "
15643 shift
15644 for ac_tag
15645 do
15646 case $ac_tag in
15647 :[FHLC]) ac_mode=$ac_tag; continue;;
15648 esac
15649 case $ac_mode$ac_tag in
15650 :[FHL]*:*);;
15651 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15652 :[FH]-) ac_tag=-:-;;
15653 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15654 esac
15655 ac_save_IFS=$IFS
15656 IFS=:
15657 set x $ac_tag
15658 IFS=$ac_save_IFS
15659 shift
15660 ac_file=$1
15661 shift
15662
15663 case $ac_mode in
15664 :L) ac_source=$1;;
15665 :[FH])
15666 ac_file_inputs=
15667 for ac_f
15668 do
15669 case $ac_f in
15670 -) ac_f="$ac_tmp/stdin";;
15671 *) # Look for the file first in the build tree, then in the source tree
15672 # (if the path is not absolute). The absolute path cannot be DOS-style,
15673 # because $ac_f cannot contain `:'.
15674 test -f "$ac_f" ||
15675 case $ac_f in
15676 [\\/$]*) false;;
15677 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15678 esac ||
15679 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15680 esac
15681 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15682 as_fn_append ac_file_inputs " '$ac_f'"
15683 done
15684
15685 # Let's still pretend it is `configure' which instantiates (i.e., don't
15686 # use $as_me), people would be surprised to read:
15687 # /* config.h. Generated by config.status. */
15688 configure_input='Generated from '`
15689 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15690 `' by configure.'
15691 if test x"$ac_file" != x-; then
15692 configure_input="$ac_file. $configure_input"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15694 $as_echo "$as_me: creating $ac_file" >&6;}
15695 fi
15696 # Neutralize special characters interpreted by sed in replacement strings.
15697 case $configure_input in #(
15698 *\&* | *\|* | *\\* )
15699 ac_sed_conf_input=`$as_echo "$configure_input" |
15700 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15701 *) ac_sed_conf_input=$configure_input;;
15702 esac
15703
15704 case $ac_tag in
15705 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15706 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15707 esac
15708 ;;
15709 esac
15710
15711 ac_dir=`$as_dirname -- "$ac_file" ||
15712 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15713 X"$ac_file" : 'X\(//\)[^/]' \| \
15714 X"$ac_file" : 'X\(//\)$' \| \
15715 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15716 $as_echo X"$ac_file" |
15717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15718 s//\1/
15719 q
15720 }
15721 /^X\(\/\/\)[^/].*/{
15722 s//\1/
15723 q
15724 }
15725 /^X\(\/\/\)$/{
15726 s//\1/
15727 q
15728 }
15729 /^X\(\/\).*/{
15730 s//\1/
15731 q
15732 }
15733 s/.*/./; q'`
15734 as_dir="$ac_dir"; as_fn_mkdir_p
15735 ac_builddir=.
15736
15737 case "$ac_dir" in
15738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15739 *)
15740 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15741 # A ".." for each directory in $ac_dir_suffix.
15742 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15743 case $ac_top_builddir_sub in
15744 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15745 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15746 esac ;;
15747 esac
15748 ac_abs_top_builddir=$ac_pwd
15749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15750 # for backward compatibility:
15751 ac_top_builddir=$ac_top_build_prefix
15752
15753 case $srcdir in
15754 .) # We are building in place.
15755 ac_srcdir=.
15756 ac_top_srcdir=$ac_top_builddir_sub
15757 ac_abs_top_srcdir=$ac_pwd ;;
15758 [\\/]* | ?:[\\/]* ) # Absolute name.
15759 ac_srcdir=$srcdir$ac_dir_suffix;
15760 ac_top_srcdir=$srcdir
15761 ac_abs_top_srcdir=$srcdir ;;
15762 *) # Relative name.
15763 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15764 ac_top_srcdir=$ac_top_build_prefix$srcdir
15765 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15766 esac
15767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15768
15769
15770 case $ac_mode in
15771 :F)
15772 #
15773 # CONFIG_FILE
15774 #
15775
15776 case $INSTALL in
15777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15778 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15779 esac
15780 _ACEOF
15781
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 # If the template does not know about datarootdir, expand it.
15784 # FIXME: This hack should be removed a few years after 2.60.
15785 ac_datarootdir_hack=; ac_datarootdir_seen=
15786 ac_sed_dataroot='
15787 /datarootdir/ {
15788 p
15789 q
15790 }
15791 /@datadir@/p
15792 /@docdir@/p
15793 /@infodir@/p
15794 /@localedir@/p
15795 /@mandir@/p'
15796 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15797 *datarootdir*) ac_datarootdir_seen=yes;;
15798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15800 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15801 _ACEOF
15802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15803 ac_datarootdir_hack='
15804 s&@datadir@&$datadir&g
15805 s&@docdir@&$docdir&g
15806 s&@infodir@&$infodir&g
15807 s&@localedir@&$localedir&g
15808 s&@mandir@&$mandir&g
15809 s&\\\${datarootdir}&$datarootdir&g' ;;
15810 esac
15811 _ACEOF
15812
15813 # Neutralize VPATH when `$srcdir' = `.'.
15814 # Shell code in configure.ac might set extrasub.
15815 # FIXME: do we really want to maintain this feature?
15816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817 ac_sed_extra="$ac_vpsub
15818 $extrasub
15819 _ACEOF
15820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15821 :t
15822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15823 s|@configure_input@|$ac_sed_conf_input|;t t
15824 s&@top_builddir@&$ac_top_builddir_sub&;t t
15825 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15826 s&@srcdir@&$ac_srcdir&;t t
15827 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15828 s&@top_srcdir@&$ac_top_srcdir&;t t
15829 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15830 s&@builddir@&$ac_builddir&;t t
15831 s&@abs_builddir@&$ac_abs_builddir&;t t
15832 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15833 s&@INSTALL@&$ac_INSTALL&;t t
15834 $ac_datarootdir_hack
15835 "
15836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15837 if $ac_cs_awk_getline; then
15838 $AWK -f "$ac_tmp/subs.awk"
15839 else
15840 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15841 fi \
15842 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15843
15844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15845 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15847 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15849 which seems to be undefined. Please make sure it is defined" >&5
15850 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15851 which seems to be undefined. Please make sure it is defined" >&2;}
15852
15853 rm -f "$ac_tmp/stdin"
15854 case $ac_file in
15855 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15856 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15857 esac \
15858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15859 ;;
15860
15861
15862
15863 esac
15864
15865
15866 case $ac_file$ac_mode in
15867 "Makefile":F) sed "$extrasub_build" Makefile |
15868 sed "$extrasub_host" |
15869 sed "$extrasub_target" > mf$$
15870 mv -f mf$$ Makefile ;;
15871
15872 esac
15873 done # for ac_tag
15874
15875
15876 as_fn_exit 0
15877 _ACEOF
15878 ac_clean_files=$ac_clean_files_save
15879
15880 test $ac_write_fail = 0 ||
15881 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15882
15883
15884 # configure is writing to config.log, and then calls config.status.
15885 # config.status does its own redirection, appending to config.log.
15886 # Unfortunately, on DOS this fails, as config.log is still kept open
15887 # by configure, so config.status won't be able to write to it; its
15888 # output is simply discarded. So we exec the FD to /dev/null,
15889 # effectively closing config.log, so it can be properly (re)opened and
15890 # appended to by config.status. When coming back to configure, we
15891 # need to make the FD available again.
15892 if test "$no_create" != yes; then
15893 ac_cs_success=:
15894 ac_config_status_args=
15895 test "$silent" = yes &&
15896 ac_config_status_args="$ac_config_status_args --quiet"
15897 exec 5>/dev/null
15898 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15899 exec 5>>config.log
15900 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15901 # would make configure fail if this is the last instruction.
15902 $ac_cs_success || as_fn_exit 1
15903 fi
15904 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15906 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15907 fi
15908
This page took 0.354565 seconds and 5 git commands to generate.