gdbarch-components.py: Remove spurious space from "frame_info_ptr " params
[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 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 RANLIB_PLUGIN_OPTION
623 AR_PLUGIN_OPTION
624 PKG_CONFIG_PATH
625 GDCFLAGS
626 READELF
627 OTOOL
628 OBJDUMP
629 OBJCOPY
630 WINDMC
631 WINDRES
632 STRIP
633 RANLIB
634 NM
635 LIPO
636 LD
637 DSYMUTIL
638 DLLTOOL
639 AS
640 AR
641 RUNTEST
642 EXPECT
643 MAKEINFO
644 FLEX
645 LEX
646 M4
647 BISON
648 YACC
649 WINDRES_FOR_BUILD
650 WINDMC_FOR_BUILD
651 RANLIB_FOR_BUILD
652 NM_FOR_BUILD
653 LD_FOR_BUILD
654 LDFLAGS_FOR_BUILD
655 GDC_FOR_BUILD
656 GOC_FOR_BUILD
657 GFORTRAN_FOR_BUILD
658 DSYMUTIL_FOR_BUILD
659 DLLTOOL_FOR_BUILD
660 CXX_FOR_BUILD
661 CXXFLAGS_FOR_BUILD
662 CPPFLAGS_FOR_BUILD
663 CPP_FOR_BUILD
664 CFLAGS_FOR_BUILD
665 CC_FOR_BUILD
666 AS_FOR_BUILD
667 AR_FOR_BUILD
668 target_configdirs
669 configdirs
670 build_configdirs
671 INSTALL_GDB_TK
672 GDB_TK
673 CONFIGURE_GDB_TK
674 build_tooldir
675 tooldir
676 GCC_SHLIB_SUBDIR
677 RPATH_ENVVAR
678 target_configargs
679 host_configargs
680 build_configargs
681 BUILD_CONFIG
682 LDFLAGS_FOR_TARGET
683 CXXFLAGS_FOR_TARGET
684 CFLAGS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
687 get_gcc_base_ver
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
690 stage1_languages
691 host_shared
692 extra_linker_plugin_flags
693 extra_linker_plugin_configure_flags
694 islinc
695 isllibs
696 poststage1_ldflags
697 poststage1_libs
698 stage1_ldflags
699 stage1_libs
700 extra_isl_gmp_configure_flags
701 extra_mpc_mpfr_configure_flags
702 extra_mpc_gmp_configure_flags
703 extra_mpfr_configure_flags
704 gmpinc
705 gmplibs
706 PGO_BUILD_LTO_CFLAGS
707 PGO_BUILD_USE_CFLAGS
708 PGO_BUILD_GEN_CFLAGS
709 HAVE_CXX11_FOR_BUILD
710 HAVE_CXX11
711 do_compare
712 GDC
713 GNATMAKE
714 GNATBIND
715 ac_ct_CXX
716 CXXFLAGS
717 CXX
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 extra_liboffloadmic_configure_flags
726 target_subdir
727 host_subdir
728 build_subdir
729 build_libsubdir
730 AWK
731 SED
732 LN_S
733 LN
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 target_noncanonical
746 host_noncanonical
747 build_noncanonical
748 build_os
749 build_vendor
750 build_cpu
751 build
752 TOPLEVEL_CONFIGURE_ARGUMENTS
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='serialization_dependencies
792 host_makefile_frag
793 target_makefile_frag
794 alphaieee_frag
795 ospace_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_build_libsubdir
799 with_system_zlib
800 with_zstd
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
804 enable_gold
805 enable_ld
806 enable_gprofng
807 enable_compressed_debug_sections
808 enable_default_compressed_debug_sections_algorithm
809 enable_year2038
810 enable_libquadmath
811 enable_libquadmath_support
812 enable_libada
813 enable_libssp
814 enable_libstdcxx
815 enable_liboffloadmic
816 enable_bootstrap
817 enable_pgo_build
818 with_mpc
819 with_mpc_include
820 with_mpc_lib
821 with_mpfr
822 with_mpfr_include
823 with_mpfr_lib
824 with_gmp
825 with_gmp_include
826 with_gmp_lib
827 with_stage1_libs
828 with_static_standard_libraries
829 with_stage1_ldflags
830 with_boot_libs
831 with_boot_ldflags
832 with_isl
833 with_isl_include
834 with_isl_lib
835 enable_isl_version_check
836 enable_lto
837 enable_linker_plugin_configure_flags
838 enable_linker_plugin_flags
839 enable_host_shared
840 enable_stage1_languages
841 enable_objc_gc
842 with_target_bdw_gc
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
846 with_build_sysroot
847 with_debug_prefix_map
848 with_build_config
849 enable_vtable_verify
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
854 enable_werror
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CXX
865 CXXFLAGS
866 CCC
867 build_configargs
868 host_configargs
869 target_configargs
870 AR
871 AS
872 DLLTOOL
873 DSYMUTIL
874 LD
875 LIPO
876 NM
877 RANLIB
878 STRIP
879 WINDRES
880 WINDMC
881 OBJCOPY
882 OBJDUMP
883 OTOOL
884 READELF
885 CC_FOR_TARGET
886 CXX_FOR_TARGET
887 GCC_FOR_TARGET
888 GFORTRAN_FOR_TARGET
889 GOC_FOR_TARGET
890 GDC_FOR_TARGET
891 AR_FOR_TARGET
892 AS_FOR_TARGET
893 DLLTOOL_FOR_TARGET
894 DSYMUTIL_FOR_TARGET
895 LD_FOR_TARGET
896 LIPO_FOR_TARGET
897 NM_FOR_TARGET
898 OBJCOPY_FOR_TARGET
899 OBJDUMP_FOR_TARGET
900 OTOOL_FOR_TARGET
901 RANLIB_FOR_TARGET
902 READELF_FOR_TARGET
903 STRIP_FOR_TARGET
904 WINDRES_FOR_TARGET
905 WINDMC_FOR_TARGET'
906
907
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1212
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1222
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1229
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1240
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1256
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1265 *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1272
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1276
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1283
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1290
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1293 ;;
1294
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1304
1305 *)
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 ;;
1312
1313 esac
1314 done
1315
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1319 fi
1320
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1327 fi
1328
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1334 do
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1349
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1356
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1363 fi
1364 fi
1365
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369 test "$silent" = yes && exec 6>/dev/null
1370
1371
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411 else
1412 ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1417 fi
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1425 fi
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 case $srcdir in
1433 *" "*)
1434 as_fn_error $? "path to source, $srcdir, contains spaces"
1435 ;;
1436 esac
1437 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures this package to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523
1524 cat <<\_ACEOF
1525
1526 Optional Features:
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-as-accelerator-for=ARG
1531 build as offload target compiler. Specify offload
1532 host triple by ARG
1533 --enable-offload-targets=LIST
1534 enable offloading to devices from comma-separated
1535 LIST of TARGET[=DIR]. Use optional path to find
1536 offload target compiler during the build
1537 --enable-offload-defaulted
1538 If enabled, configured but not installed offload compilers and
1539 libgomp plugins are silently ignored. Useful for distribution
1540 compilers where those are in separate optional packages.
1541
1542 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1543 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1544 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1545 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1546 Enable compressed debug sections for gas, gold or ld
1547 by default
1548 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1549 Default compression algorithm for
1550 --enable-compressed-debug-sections.
1551 --enable-year2038 enable support for timestamps past the year 2038
1552 --disable-libquadmath do not build libquadmath directory
1553 --disable-libquadmath-support
1554 disable libquadmath support for Fortran
1555 --enable-libada build libada directory
1556 --enable-libssp build libssp directory
1557 --disable-libstdcxx do not build libstdc++-v3 directory
1558 --enable-liboffloadmic=ARG
1559 build liboffloadmic [ARG={no,host,target}]
1560 --enable-bootstrap enable bootstrapping [yes if native build]
1561 --enable-pgo-build[=lto]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check for isl version
1565 --enable-lto enable link time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags for configuring linker plugins
1568 [none]
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags for configuring and building linker
1571 plugins [none]
1572 --enable-host-shared build host code as shared libraries
1573 --enable-stage1-languages[=all]
1574 choose additional languages to build during stage1.
1575 Mostly useful for compiler development
1576 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1577 Objective-C runtime
1578 --enable-vtable-verify Enable vtable verification feature
1579 --enable-serial-[{host,target,build}-]configure
1580 force sequential configuration of sub-packages for
1581 the host, target or build machine, or all
1582 sub-packages
1583 --enable-maintainer-mode
1584 enable make rules and dependencies not useful (and
1585 sometimes confusing) to the casual installer
1586 --enable-stage1-checking[=all]
1587 choose additional checking for stage1 of the
1588 compiler
1589 --enable-werror enable -Werror in bootstrap stage2 and later
1590
1591 Optional Packages:
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-build-libsubdir=DIR Directory where to find libraries for build system
1595 --with-system-zlib use installed libz
1596 --with-zstd Support zstd compressed debug sections
1597 (default=auto)
1598 --with-mpc=PATH specify prefix directory for installed MPC package.
1599 Equivalent to --with-mpc-include=PATH/include plus
1600 --with-mpc-lib=PATH/lib
1601 --with-mpc-include=PATH specify directory for installed MPC include files
1602 --with-mpc-lib=PATH specify directory for the installed MPC library
1603 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1604 Equivalent to --with-mpfr-include=PATH/include plus
1605 --with-mpfr-lib=PATH/lib
1606 --with-mpfr-include=PATH
1607 specify directory for installed MPFR include files
1608 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1609 --with-gmp=PATH specify prefix directory for the installed GMP
1610 package. Equivalent to
1611 --with-gmp-include=PATH/include plus
1612 --with-gmp-lib=PATH/lib
1613 --with-gmp-include=PATH specify directory for installed GMP include files
1614 --with-gmp-lib=PATH specify directory for the installed GMP library
1615 --with-stage1-libs=LIBS libraries for stage1
1616 --with-static-standard-libraries
1617 use -static-libstdc++ and -static-libgcc
1618 (default=auto)
1619 --with-stage1-ldflags=FLAGS
1620 linker flags for stage1
1621 --with-boot-libs=LIBS libraries for stage2 and later
1622 --with-boot-ldflags=FLAGS
1623 linker flags for stage2 and later
1624 --with-isl=PATH Specify prefix directory for the installed isl
1625 package. Equivalent to
1626 --with-isl-include=PATH/include plus
1627 --with-isl-lib=PATH/lib
1628 --with-isl-include=PATH Specify directory for installed isl include files
1629 --with-isl-lib=PATH Specify the directory for the installed isl library
1630 --with-target-bdw-gc=PATHLIST
1631 specify prefix directory for installed bdw-gc
1632 package. Equivalent to
1633 --with-target-bdw-gc-include=PATH/include plus
1634 --with-target-bdw-gc-lib=PATH/lib
1635 --with-target-bdw-gc-include=PATHLIST
1636 specify directories for installed bdw-gc include
1637 files
1638 --with-target-bdw-gc-lib=PATHLIST
1639 specify directories for installed bdw-gc library
1640 --with-gcc-major-version-only
1641 use only GCC major number in filesystem paths
1642 --with-build-sysroot=SYSROOT
1643 use sysroot as the system root during the build
1644 --with-debug-prefix-map='A=B C=D ...'
1645 map A to B, C to D ... in debug information
1646 --with-build-config='NAME NAME2...'
1647 use config/NAME.mk build configuration
1648 --with-build-time-tools=PATH
1649 use given path to find target tools during the build
1650
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1659 CXX C++ compiler command
1660 CXXFLAGS C++ compiler flags
1661 build_configargs
1662 additional configure arguments for build directories
1663 host_configargs
1664 additional configure arguments for host directories
1665 target_configargs
1666 additional configure arguments for target directories
1667 AR AR for the host
1668 AS AS for the host
1669 DLLTOOL DLLTOOL for the host
1670 DSYMUTIL DSYMUTIL for the host
1671 LD LD for the host
1672 LIPO LIPO for the host
1673 NM NM for the host
1674 RANLIB RANLIB for the host
1675 STRIP STRIP for the host
1676 WINDRES WINDRES for the host
1677 WINDMC WINDMC for the host
1678 OBJCOPY OBJCOPY for the host
1679 OBJDUMP OBJDUMP for the host
1680 OTOOL OTOOL for the host
1681 READELF READELF for the host
1682 CC_FOR_TARGET
1683 CC for the target
1684 CXX_FOR_TARGET
1685 CXX for the target
1686 GCC_FOR_TARGET
1687 GCC for the target
1688 GFORTRAN_FOR_TARGET
1689 GFORTRAN for the target
1690 GOC_FOR_TARGET
1691 GOC for the target
1692 GDC_FOR_TARGET
1693 GDC for the target
1694 AR_FOR_TARGET
1695 AR for the target
1696 AS_FOR_TARGET
1697 AS for the target
1698 DLLTOOL_FOR_TARGET
1699 DLLTOOL for the target
1700 DSYMUTIL_FOR_TARGET
1701 DSYMUTIL for the target
1702 LD_FOR_TARGET
1703 LD for the target
1704 LIPO_FOR_TARGET
1705 LIPO for the target
1706 NM_FOR_TARGET
1707 NM for the target
1708 OBJCOPY_FOR_TARGET
1709 OBJCOPY for the target
1710 OBJDUMP_FOR_TARGET
1711 OBJDUMP for the target
1712 OTOOL_FOR_TARGET
1713 OTOOL for the target
1714 RANLIB_FOR_TARGET
1715 RANLIB for the target
1716 READELF_FOR_TARGET
1717 READELF for the target
1718 STRIP_FOR_TARGET
1719 STRIP for the target
1720 WINDRES_FOR_TARGET
1721 WINDRES for the target
1722 WINDMC_FOR_TARGET
1723 WINDMC for the target
1724
1725 Use these variables to override the choices made by `configure' or to help
1726 it to find libraries and programs with nonstandard names/locations.
1727
1728 Report bugs to the package provider.
1729 _ACEOF
1730 ac_status=$?
1731 fi
1732
1733 if test "$ac_init_help" = "recursive"; then
1734 # If there are subdirs, report their specific --help.
1735 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1736 test -d "$ac_dir" ||
1737 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1738 continue
1739 ac_builddir=.
1740
1741 case "$ac_dir" in
1742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *)
1744 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1745 # A ".." for each directory in $ac_dir_suffix.
1746 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1747 case $ac_top_builddir_sub in
1748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1750 esac ;;
1751 esac
1752 ac_abs_top_builddir=$ac_pwd
1753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1754 # for backward compatibility:
1755 ac_top_builddir=$ac_top_build_prefix
1756
1757 case $srcdir in
1758 .) # We are building in place.
1759 ac_srcdir=.
1760 ac_top_srcdir=$ac_top_builddir_sub
1761 ac_abs_top_srcdir=$ac_pwd ;;
1762 [\\/]* | ?:[\\/]* ) # Absolute name.
1763 ac_srcdir=$srcdir$ac_dir_suffix;
1764 ac_top_srcdir=$srcdir
1765 ac_abs_top_srcdir=$srcdir ;;
1766 *) # Relative name.
1767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1768 ac_top_srcdir=$ac_top_build_prefix$srcdir
1769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1770 esac
1771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1772
1773 cd "$ac_dir" || { ac_status=$?; continue; }
1774 # Check for guested configure.
1775 if test -f "$ac_srcdir/configure.gnu"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778 elif test -f "$ac_srcdir/configure"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure" --help=recursive
1781 else
1782 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 fi || ac_status=$?
1784 cd "$ac_pwd" || { ac_status=$?; break; }
1785 done
1786 fi
1787
1788 test -n "$ac_init_help" && exit $ac_status
1789 if $ac_init_version; then
1790 cat <<\_ACEOF
1791 configure
1792 generated by GNU Autoconf 2.69
1793
1794 Copyright (C) 2012 Free Software Foundation, Inc.
1795 This configure script is free software; the Free Software Foundation
1796 gives unlimited permission to copy, distribute and modify it.
1797 _ACEOF
1798 exit
1799 fi
1800
1801 ## ------------------------ ##
1802 ## Autoconf initialization. ##
1803 ## ------------------------ ##
1804
1805 # ac_fn_c_try_compile LINENO
1806 # --------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_compile ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836 ac_retval=1
1837 fi
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_compile
1842
1843 # ac_fn_cxx_try_compile LINENO
1844 # ----------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_compile ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1851 case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1858 ac_status=$?
1859 if test -s conftest.err; then
1860 grep -v '^ *+' conftest.err >conftest.er1
1861 cat conftest.er1 >&5
1862 mv -f conftest.er1 conftest.err
1863 fi
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.$ac_objext; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874 ac_retval=1
1875 fi
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_cxx_try_compile
1880
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_cxx_try_link
1926
1927 # ac_fn_c_try_link LINENO
1928 # -----------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_c_try_link ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1935 case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1942 ac_status=$?
1943 if test -s conftest.err; then
1944 grep -v '^ *+' conftest.err >conftest.er1
1945 cat conftest.er1 >&5
1946 mv -f conftest.er1 conftest.err
1947 fi
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest$ac_exeext
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1960
1961 ac_retval=1
1962 fi
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status $ac_retval
1970
1971 } # ac_fn_c_try_link
1972 cat >config.log <<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1975
1976 It was created by $as_me, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1978
1979 $ $0 $@
1980
1981 _ACEOF
1982 exec 5>>config.log
1983 {
1984 cat <<_ASUNAME
1985 ## --------- ##
1986 ## Platform. ##
1987 ## --------- ##
1988
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2005
2006 _ASUNAME
2007
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 $as_echo "PATH: $as_dir"
2014 done
2015 IFS=$as_save_IFS
2016
2017 } >&5
2018
2019 cat >&5 <<_ACEOF
2020
2021
2022 ## ----------- ##
2023 ## Core tests. ##
2024 ## ----------- ##
2025
2026 _ACEOF
2027
2028
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2034 ac_configure_args=
2035 ac_configure_args0=
2036 ac_configure_args1=
2037 ac_must_keep_next=false
2038 for ac_pass in 1 2
2039 do
2040 for ac_arg
2041 do
2042 case $ac_arg in
2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045 | -silent | --silent | --silen | --sile | --sil)
2046 continue ;;
2047 *\'*)
2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 esac
2050 case $ac_pass in
2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 2)
2053 as_fn_append ac_configure_args1 " '$ac_arg'"
2054 if test $ac_must_keep_next = true; then
2055 ac_must_keep_next=false # Got value, back to normal.
2056 else
2057 case $ac_arg in
2058 *=* | --config-cache | -C | -disable-* | --disable-* \
2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061 | -with-* | --with-* | -without-* | --without-* | --x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 esac
2065 ;;
2066 -* ) ac_must_keep_next=true ;;
2067 esac
2068 fi
2069 as_fn_append ac_configure_args " '$ac_arg'"
2070 ;;
2071 esac
2072 done
2073 done
2074 { ac_configure_args0=; unset ac_configure_args0;}
2075 { ac_configure_args1=; unset ac_configure_args1;}
2076
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2084 {
2085 echo
2086
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2090 echo
2091 # The following way of writing the cache mishandles newlines in values,
2092 (
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in #(
2096 *${as_nl}*)
2097 case $ac_var in #(
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 esac
2101 case $ac_var in #(
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2105 esac ;;
2106 esac
2107 done
2108 (set) 2>&1 |
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2111 sed -n \
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 ;; #(
2115 *)
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 ;;
2118 esac |
2119 sort
2120 )
2121 echo
2122
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2126 echo
2127 for ac_var in $ac_subst_vars
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 $as_echo "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2141 echo
2142 for ac_var in $ac_subst_files
2143 do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 esac
2148 $as_echo "$ac_var='\''$ac_val'\''"
2149 done | sort
2150 echo
2151 fi
2152
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##"
2157 echo
2158 cat confdefs.h
2159 echo
2160 fi
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2164 } >&5
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 exit $exit_status
2168 ' 0
2169 for ac_signal in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 done
2172 ac_signal=0
2173
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest* confdefs.h
2176
2177 $as_echo "/* confdefs.h */" > confdefs.h
2178
2179 # Predefined preprocessor variables.
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 _ACEOF
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 _ACEOF
2188
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 _ACEOF
2192
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 _ACEOF
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2203 _ACEOF
2204
2205
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2208 ac_site_file1=NONE
2209 ac_site_file2=NONE
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1=./$CONFIG_SITE;;
2214 */*) ac_site_file1=$CONFIG_SITE;;
2215 *) ac_site_file1=./$CONFIG_SITE;;
2216 esac
2217 elif test "x$prefix" != xNONE; then
2218 ac_site_file1=$prefix/share/config.site
2219 ac_site_file2=$prefix/etc/config.site
2220 else
2221 ac_site_file1=$ac_default_prefix/share/config.site
2222 ac_site_file2=$ac_default_prefix/etc/config.site
2223 fi
2224 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225 do
2226 test "x$ac_site_file" = xNONE && continue
2227 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2231 . "$ac_site_file" \
2232 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $? "failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2236 fi
2237 done
2238
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 case $cache_file in
2246 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247 *) . "./$cache_file";;
2248 esac
2249 fi
2250 else
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2253 >$cache_file
2254 fi
2255
2256 # Check that the precious variables saved in the cache have kept the same
2257 # value.
2258 ac_cache_corrupted=false
2259 for ac_var in $ac_precious_vars; do
2260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261 eval ac_new_set=\$ac_env_${ac_var}_set
2262 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263 eval ac_new_val=\$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2265 set,)
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted=: ;;
2269 ,set)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,);;
2274 *)
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w=`echo x $ac_old_val`
2278 ac_new_val_w=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted=:
2283 else
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\$ac_old_val
2287 fi
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 fi;;
2293 esac
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2296 case $ac_new_val in
2297 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg=$ac_var=$ac_new_val ;;
2299 esac
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303 esac
2304 fi
2305 done
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 fi
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2316
2317 ac_ext=c
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325
2326
2327
2328
2329
2330 progname=$0
2331 # if PWD already has a value, it is probably wrong.
2332 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2333
2334 # Export original configure arguments for use by sub-configures.
2335 # Quote arguments with shell meta charatcers.
2336 TOPLEVEL_CONFIGURE_ARGUMENTS=
2337 set -- "$progname" "$@"
2338 for ac_arg
2339 do
2340 case "$ac_arg" in
2341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2342 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2343 # if the argument is of the form -foo=baz, quote the baz part only
2344 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2345 *) ;;
2346 esac
2347 # Add the quoted argument to the list.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2349 done
2350 if test "$silent" = yes; then
2351 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2352 fi
2353 # Remove the initial space we just introduced and, as these will be
2354 # expanded by make, quote '$'.
2355 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2356
2357
2358 # Find the build, host, and target systems.
2359 ac_aux_dir=
2360 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
2374 done
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2377 fi
2378
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2391
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 ac_build_alias=$build_alias
2398 test "x$ac_build_alias" = x &&
2399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x &&
2401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2404
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2409 *-*-*) ;;
2410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2411 esac
2412 build=$ac_cv_build
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_build
2415 shift
2416 build_cpu=$1
2417 build_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 build_os=$*
2422 IFS=$ac_save_IFS
2423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424
2425
2426 case ${build_alias} in
2427 "") build_noncanonical=${build} ;;
2428 *) build_noncanonical=${build_alias} ;;
2429 esac
2430
2431
2432
2433 case ${host_alias} in
2434 "") host_noncanonical=${build_noncanonical} ;;
2435 *) host_noncanonical=${host_alias} ;;
2436 esac
2437
2438
2439
2440 case ${target_alias} in
2441 "") target_noncanonical=${host_noncanonical} ;;
2442 *) target_noncanonical=${target_alias} ;;
2443 esac
2444
2445
2446
2447
2448 test "$host_noncanonical" = "$target_noncanonical" &&
2449 test "$program_prefix$program_suffix$program_transform_name" = \
2450 NONENONEs,x,x, &&
2451 program_transform_name=s,y,y,
2452
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2454 $as_echo_n "checking host system type... " >&6; }
2455 if ${ac_cv_host+:} false; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 if test "x$host_alias" = x; then
2459 ac_cv_host=$ac_cv_build
2460 else
2461 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2462 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2463 fi
2464
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2467 $as_echo "$ac_cv_host" >&6; }
2468 case $ac_cv_host in
2469 *-*-*) ;;
2470 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2471 esac
2472 host=$ac_cv_host
2473 ac_save_IFS=$IFS; IFS='-'
2474 set x $ac_cv_host
2475 shift
2476 host_cpu=$1
2477 host_vendor=$2
2478 shift; shift
2479 # Remember, the first character of IFS is used to create $*,
2480 # except with old shells:
2481 host_os=$*
2482 IFS=$ac_save_IFS
2483 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2484
2485
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2487 $as_echo_n "checking target system type... " >&6; }
2488 if ${ac_cv_target+:} false; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 if test "x$target_alias" = x; then
2492 ac_cv_target=$ac_cv_host
2493 else
2494 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2496 fi
2497
2498 fi
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2500 $as_echo "$ac_cv_target" >&6; }
2501 case $ac_cv_target in
2502 *-*-*) ;;
2503 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2504 esac
2505 target=$ac_cv_target
2506 ac_save_IFS=$IFS; IFS='-'
2507 set x $ac_cv_target
2508 shift
2509 target_cpu=$1
2510 target_vendor=$2
2511 shift; shift
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2514 target_os=$*
2515 IFS=$ac_save_IFS
2516 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2517
2518
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522 test "$program_prefix$program_suffix$program_transform_name" = \
2523 NONENONEs,x,x, &&
2524 program_prefix=${target_alias}-
2525
2526 test "$program_prefix" != NONE &&
2527 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE &&
2530 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536
2537
2538 # Get 'install' or 'install-sh' and its variants.
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2545 # AIX /bin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 # Reject install programs that cannot install multiple files.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2554 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2555 if test -z "$INSTALL"; then
2556 if ${ac_cv_path_install+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 # Account for people who put trailing slashes in PATH elements.
2565 case $as_dir/ in #((
2566 ./ | .// | /[cC]/* | \
2567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2568 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2569 /usr/ucb/* ) ;;
2570 *)
2571 # OSF1 and SCO ODT 3.0 have their own names for install.
2572 # Don't use installbsd from OSF since it installs stuff as root
2573 # by default.
2574 for ac_prog in ginstall scoinst install; do
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2577 if test $ac_prog = install &&
2578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2579 # AIX install. It has an incompatible calling convention.
2580 :
2581 elif test $ac_prog = install &&
2582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583 # program-specific install script used by HP pwplus--don't use.
2584 :
2585 else
2586 rm -rf conftest.one conftest.two conftest.dir
2587 echo one > conftest.one
2588 echo two > conftest.two
2589 mkdir conftest.dir
2590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2591 test -s conftest.one && test -s conftest.two &&
2592 test -s conftest.dir/conftest.one &&
2593 test -s conftest.dir/conftest.two
2594 then
2595 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2596 break 3
2597 fi
2598 fi
2599 fi
2600 done
2601 done
2602 ;;
2603 esac
2604
2605 done
2606 IFS=$as_save_IFS
2607
2608 rm -rf conftest.one conftest.two conftest.dir
2609
2610 fi
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL=$ac_cv_path_install
2613 else
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 INSTALL=$ac_install_sh
2619 fi
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2622 $as_echo "$INSTALL" >&6; }
2623
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2627
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2629
2630 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2631
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2633 $as_echo_n "checking whether ln works... " >&6; }
2634 if ${acx_cv_prog_LN+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 rm -f conftestdata_t
2638 echo >conftestdata_f
2639 if ln conftestdata_f conftestdata_t 2>/dev/null
2640 then
2641 acx_cv_prog_LN=ln
2642 else
2643 acx_cv_prog_LN=no
2644 fi
2645 rm -f conftestdata_f conftestdata_t
2646
2647 fi
2648 if test $acx_cv_prog_LN = no; then
2649 LN="cp"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2651 $as_echo "no, using $LN" >&6; }
2652 else
2653 LN="$acx_cv_prog_LN"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2656 fi
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2659 $as_echo_n "checking whether ln -s works... " >&6; }
2660 LN_S=$as_ln_s
2661 if test "$LN_S" = "ln -s"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2666 $as_echo "no, using $LN_S" >&6; }
2667 fi
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2670 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2671 if ${ac_cv_path_SED+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2675 for ac_i in 1 2 3 4 5 6 7; do
2676 ac_script="$ac_script$as_nl$ac_script"
2677 done
2678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2679 { ac_script=; unset ac_script;}
2680 if test -z "$SED"; then
2681 ac_path_SED_found=false
2682 # Loop through the user's path and test for each of PROGNAME-LIST
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_prog in sed gsed; do
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2691 as_fn_executable_p "$ac_path_SED" || continue
2692 # Check for GNU ac_path_SED and select it if it is found.
2693 # Check for GNU $ac_path_SED
2694 case `"$ac_path_SED" --version 2>&1` in
2695 *GNU*)
2696 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2697 *)
2698 ac_count=0
2699 $as_echo_n 0123456789 >"conftest.in"
2700 while :
2701 do
2702 cat "conftest.in" "conftest.in" >"conftest.tmp"
2703 mv "conftest.tmp" "conftest.in"
2704 cp "conftest.in" "conftest.nl"
2705 $as_echo '' >> "conftest.nl"
2706 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2708 as_fn_arith $ac_count + 1 && ac_count=$as_val
2709 if test $ac_count -gt ${ac_path_SED_max-0}; then
2710 # Best one so far, save it but keep looking for a better one
2711 ac_cv_path_SED="$ac_path_SED"
2712 ac_path_SED_max=$ac_count
2713 fi
2714 # 10*(2^10) chars as input seems more than enough
2715 test $ac_count -gt 10 && break
2716 done
2717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2718 esac
2719
2720 $ac_path_SED_found && break 3
2721 done
2722 done
2723 done
2724 IFS=$as_save_IFS
2725 if test -z "$ac_cv_path_SED"; then
2726 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2727 fi
2728 else
2729 ac_cv_path_SED=$SED
2730 fi
2731
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2734 $as_echo "$ac_cv_path_SED" >&6; }
2735 SED="$ac_cv_path_SED"
2736 rm -f conftest.sed
2737
2738 for ac_prog in gawk mawk nawk awk
2739 do
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_AWK+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$AWK"; then
2748 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_AWK="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi
2766 fi
2767 AWK=$ac_cv_prog_AWK
2768 if test -n "$AWK"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770 $as_echo "$AWK" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2774 fi
2775
2776
2777 test -n "$AWK" && break
2778 done
2779
2780
2781 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2782
2783 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2784 # a relative path.
2785 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2786 INSTALL="${srcpwd}/install-sh -c"
2787 fi
2788
2789 # Set srcdir to "." if that's what it is.
2790 # This is important for multilib support.
2791 pwd=`${PWDCMD-pwd}`
2792 if test "${pwd}" = "${srcpwd}" ; then
2793 srcdir=.
2794 fi
2795
2796 topsrcdir=$srcpwd
2797
2798 extra_host_args=
2799
2800 ### To add a new directory to the tree, first choose whether it is a target
2801 ### or a host dependent tool. Then put it into the appropriate list
2802 ### (library or tools, host or target), doing a dependency sort.
2803
2804 # Subdirs will be configured in the order listed in build_configdirs,
2805 # configdirs, or target_configdirs; see the serialization section below.
2806
2807 # Dependency sorting is only needed when *configuration* must be done in
2808 # a particular order. In all cases a dependency should be specified in
2809 # the Makefile, whether or not it's implicitly specified here.
2810
2811 # Double entries in build_configdirs, configdirs, or target_configdirs may
2812 # cause circular dependencies and break everything horribly.
2813
2814 # these library is used by various programs built for the build
2815 # environment
2816 #
2817 build_libs="build-libiberty build-libcpp"
2818
2819 # these tools are built for the build environment
2820 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2821
2822 # these libraries are used by various programs built for the host environment
2823 #f
2824 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2825
2826 # these tools are built for the host environment
2827 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2828 # know that we are building the simulator.
2829 # binutils, gas and ld appear in that order because it makes sense to run
2830 # "make check" in that particular order.
2831 # If --enable-gold is used, "gold" may replace "ld".
2832 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2833
2834 # these libraries are built for the target environment, and are built after
2835 # the host libraries and the host tools (which may be a cross compiler)
2836 # Note that libiberty is not a target library.
2837 target_libraries="target-libgcc \
2838 target-libbacktrace \
2839 target-libgloss \
2840 target-newlib \
2841 target-libgomp \
2842 target-liboffloadmic \
2843 target-libatomic \
2844 target-libitm \
2845 target-libstdc++-v3 \
2846 target-libsanitizer \
2847 target-libvtv \
2848 target-libssp \
2849 target-libquadmath \
2850 target-libgfortran \
2851 target-libffi \
2852 target-libobjc \
2853 target-libada \
2854 target-libgo \
2855 target-libphobos \
2856 target-zlib"
2857
2858 # these tools are built using the target libraries, and are intended to
2859 # run only in the target environment
2860 #
2861 # note: any program that *uses* libraries that are in the "target_libraries"
2862 # list belongs in this list.
2863 #
2864 target_tools="target-rda"
2865
2866 ################################################################################
2867
2868 ## All tools belong in one of the four categories, and are assigned above
2869 ## We assign ${configdirs} this way to remove all embedded newlines. This
2870 ## is important because configure will choke if they ever get through.
2871 ## ${configdirs} is directories we build using the host tools.
2872 ## ${target_configdirs} is directories we build using the target tools.
2873 configdirs=`echo ${host_libs} ${host_tools}`
2874 target_configdirs=`echo ${target_libraries} ${target_tools}`
2875 build_configdirs=`echo ${build_libs} ${build_tools}`
2876
2877
2878
2879 ################################################################################
2880
2881 srcname="gnu development package"
2882
2883 # This gets set non-empty for some net releases of packages.
2884 appdirs=""
2885
2886 # Define is_cross_compiler to save on calls to 'test'.
2887 is_cross_compiler=
2888 if test x"${host}" = x"${target}" ; then
2889 is_cross_compiler=no
2890 else
2891 is_cross_compiler=yes
2892 fi
2893
2894 # Find the build and target subdir names.
2895
2896 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2897 # have matching libraries, they should use host libraries: Makefile.tpl
2898 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2899 # However, they still use the build modules, because the corresponding
2900 # host modules (e.g. bison) are only built for the host when bootstrap
2901 # finishes. So:
2902 # - build_subdir is where we find build modules, and never changes.
2903 # - build_libsubdir is where we find build libraries, and can be overridden.
2904
2905 # Prefix 'build-' so this never conflicts with target_subdir.
2906 build_subdir="build-${build_noncanonical}"
2907
2908 # Check whether --with-build-libsubdir was given.
2909 if test "${with_build_libsubdir+set}" = set; then :
2910 withval=$with_build_libsubdir; build_libsubdir="$withval"
2911 else
2912 build_libsubdir="$build_subdir"
2913 fi
2914
2915 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2916 if ( test $srcdir = . && test -d gcc ) \
2917 || test -d $srcdir/../host-${host_noncanonical}; then
2918 host_subdir="host-${host_noncanonical}"
2919 else
2920 host_subdir=.
2921 fi
2922 # No prefix.
2923 target_subdir=${target_noncanonical}
2924
2925 # Be sure to cover against remnants of an in-tree build.
2926 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2927 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2928 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2929 fi
2930
2931 # Skipdirs are removed silently.
2932 skipdirs=
2933 # Noconfigdirs are removed loudly.
2934 noconfigdirs=""
2935
2936 use_gnu_ld=
2937 # Make sure we don't let GNU ld be added if we didn't want it.
2938 if test x$with_gnu_ld = xno ; then
2939 use_gnu_ld=no
2940 noconfigdirs="$noconfigdirs ld gold"
2941 fi
2942
2943 use_gnu_as=
2944 # Make sure we don't let GNU as be added if we didn't want it.
2945 if test x$with_gnu_as = xno ; then
2946 use_gnu_as=no
2947 noconfigdirs="$noconfigdirs gas"
2948 fi
2949
2950 use_included_zlib=
2951
2952 # Check whether --with-system-zlib was given.
2953 if test "${with_system_zlib+set}" = set; then :
2954 withval=$with_system_zlib;
2955 fi
2956
2957 # Make sure we don't let ZLIB be added if we didn't want it.
2958 if test x$with_system_zlib = xyes ; then
2959 use_included_zlib=no
2960 noconfigdirs="$noconfigdirs zlib"
2961 fi
2962
2963
2964 # Check whether --with-zstd was given.
2965 if test "${with_zstd+set}" = set; then :
2966 withval=$with_zstd;
2967 fi
2968
2969
2970 # some tools are so dependent upon X11 that if we're not building with X,
2971 # it's not even worth trying to configure, much less build, that tool.
2972
2973 case ${with_x} in
2974 yes | "") ;; # the default value for this tree is that X11 is available
2975 no)
2976 skipdirs="${skipdirs} tk itcl libgui"
2977 # We won't be able to build gdbtk without X.
2978 enable_gdbtk=no
2979 ;;
2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2981 esac
2982
2983 # Some are only suitable for cross toolchains.
2984 # Remove these if host=target.
2985 cross_only="target-libgloss target-newlib target-opcodes"
2986
2987 case $is_cross_compiler in
2988 no) skipdirs="${skipdirs} ${cross_only}" ;;
2989 esac
2990
2991 # If both --with-headers and --with-libs are specified, default to
2992 # --without-newlib.
2993 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2994 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2995 if test x"${with_newlib}" = x ; then
2996 with_newlib=no
2997 fi
2998 fi
2999
3000 # Recognize --with-newlib/--without-newlib.
3001 case ${with_newlib} in
3002 no) skipdirs="${skipdirs} target-newlib" ;;
3003 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3004 esac
3005
3006 # Check whether --enable-as-accelerator-for was given.
3007 if test "${enable_as_accelerator_for+set}" = set; then :
3008 enableval=$enable_as_accelerator_for;
3009 fi
3010
3011
3012 # Check whether --enable-offload-targets was given.
3013 if test "${enable_offload_targets+set}" = set; then :
3014 enableval=$enable_offload_targets;
3015 if test x"$enable_offload_targets" = x; then
3016 as_fn_error $? "no offload targets specified" "$LINENO" 5
3017 fi
3018
3019 else
3020 enable_offload_targets=
3021 fi
3022
3023
3024 # Check whether --enable-offload-defaulted was given.
3025 if test "${enable_offload_defaulted+set}" = set; then :
3026 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3027 else
3028 enable_offload_defaulted=
3029 fi
3030
3031
3032 # Handle --enable-gold, --enable-ld.
3033 # --disable-gold [--enable-ld]
3034 # Build only ld. Default option.
3035 # --enable-gold [--enable-ld]
3036 # Build both gold and ld. Install gold as "ld.gold", install ld
3037 # as "ld.bfd" and "ld".
3038 # --enable-gold=default [--enable-ld]
3039 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3040 # install ld as "ld.bfd".
3041 # --enable-gold[=default] --disable-ld
3042 # Build only gold, which is then installed as both "ld.gold" and "ld".
3043 # --enable-gold --enable-ld=default
3044 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3045 # and ld.bfd).
3046 # In other words, ld is default
3047 # --enable-gold=default --enable-ld=default
3048 # Error.
3049
3050 default_ld=
3051 # Check whether --enable-gold was given.
3052 if test "${enable_gold+set}" = set; then :
3053 enableval=$enable_gold; ENABLE_GOLD=$enableval
3054 else
3055 ENABLE_GOLD=no
3056 fi
3057
3058 case "${ENABLE_GOLD}" in
3059 yes|default)
3060 # Check for ELF target.
3061 is_elf=no
3062 case "${target}" in
3063 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3064 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3065 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3066 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3067 case "${target}" in
3068 *-*-linux*aout* | *-*-linux*oldld*)
3069 ;;
3070 *)
3071 is_elf=yes
3072 ;;
3073 esac
3074 esac
3075
3076 if test "$is_elf" = "yes"; then
3077 # Check for target supported by gold.
3078 case "${target}" in
3079 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3080 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3081 configdirs="$configdirs gold"
3082 if test x${ENABLE_GOLD} = xdefault; then
3083 default_ld=gold
3084 fi
3085 ENABLE_GOLD=yes
3086 ;;
3087 esac
3088 fi
3089 ;;
3090 no)
3091 ;;
3092 *)
3093 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3094 ;;
3095 esac
3096
3097 # Check whether --enable-ld was given.
3098 if test "${enable_ld+set}" = set; then :
3099 enableval=$enable_ld; ENABLE_LD=$enableval
3100 else
3101 ENABLE_LD=yes
3102 fi
3103
3104
3105 case "${ENABLE_LD}" in
3106 default)
3107 if test x${default_ld} != x; then
3108 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3109 fi
3110 ;;
3111 yes)
3112 ;;
3113 no)
3114 if test x${ENABLE_GOLD} != xyes; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3116 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3117 fi
3118 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3119 ;;
3120 *)
3121 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3122 ;;
3123 esac
3124
3125 # Check whether --enable-gprofng was given.
3126 if test "${enable_gprofng+set}" = set; then :
3127 enableval=$enable_gprofng; enable_gprofng=$enableval
3128 else
3129 enable_gprofng=yes
3130 fi
3131
3132 if test "$enable_gprofng" = "yes"; then
3133 case "${target}" in
3134 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3135 configdirs="$configdirs gprofng"
3136 ;;
3137 esac
3138 fi
3139
3140
3141 # PR gas/19109
3142 # Decide the default method for compressing debug sections.
3143 # Provide a configure time option to override our default.
3144 # Check whether --enable-compressed_debug_sections was given.
3145 if test "${enable_compressed_debug_sections+set}" = set; then :
3146 enableval=$enable_compressed_debug_sections;
3147 if test x"$enable_compressed_debug_sections" = xyes; then
3148 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3149 fi
3150
3151 else
3152 enable_compressed_debug_sections=
3153 fi
3154
3155
3156 # Select default compression algorithm.
3157 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3158 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3159 enableval=$enable_default_compressed_debug_sections_algorithm;
3160 else
3161 default_compressed_debug_sections_algorithm=
3162 fi
3163
3164
3165 # Configure extra directories which are host specific
3166
3167 case "${host}" in
3168 *-cygwin*)
3169 configdirs="$configdirs libtermcap" ;;
3170 esac
3171
3172 # A target can indicate whether a language isn't supported for some reason.
3173 # Only spaces may be used in this macro; not newlines or tabs.
3174 unsupported_languages=
3175
3176 # Remove more programs from consideration, based on the host or
3177 # target this usually means that a port of the program doesn't
3178 # exist yet.
3179
3180 case "${host}" in
3181 i[3456789]86-*-msdosdjgpp*)
3182 noconfigdirs="$noconfigdirs tcl tk itcl"
3183 ;;
3184 esac
3185
3186 # Default to --disable-year2038 until we can handle differences between
3187 # projects that use gnulib (which understands year 2038) and projects that
3188 # do not (like BFD).
3189 # Check whether --enable-year2038 was given.
3190 if test "${enable_year2038+set}" = set; then :
3191 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3192 else
3193 ENABLE_YEAR2038=no
3194 fi
3195
3196 enable_year2038=
3197 if test "${ENABLE_YEAR2038}" = "no" ; then
3198 enable_year2038=no
3199 fi
3200
3201 # Check whether --enable-libquadmath was given.
3202 if test "${enable_libquadmath+set}" = set; then :
3203 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3204 else
3205 ENABLE_LIBQUADMATH=yes
3206 fi
3207
3208 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3209 noconfigdirs="$noconfigdirs target-libquadmath"
3210 fi
3211
3212
3213 # Check whether --enable-libquadmath-support was given.
3214 if test "${enable_libquadmath_support+set}" = set; then :
3215 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3216 else
3217 ENABLE_LIBQUADMATH_SUPPORT=yes
3218 fi
3219
3220 enable_libquadmath_support=
3221 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3222 enable_libquadmath_support=no
3223 fi
3224
3225
3226 # Check whether --enable-libada was given.
3227 if test "${enable_libada+set}" = set; then :
3228 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3229 else
3230 ENABLE_LIBADA=yes
3231 fi
3232
3233 if test "${ENABLE_LIBADA}" != "yes" ; then
3234 noconfigdirs="$noconfigdirs gnattools"
3235 fi
3236
3237 # Check whether --enable-libssp was given.
3238 if test "${enable_libssp+set}" = set; then :
3239 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3240 else
3241 ENABLE_LIBSSP=yes
3242 fi
3243
3244
3245 # Check whether --enable-libstdcxx was given.
3246 if test "${enable_libstdcxx+set}" = set; then :
3247 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3248 else
3249 ENABLE_LIBSTDCXX=default
3250 fi
3251
3252 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3253 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3254 fi
3255
3256 # If this is accelerator compiler and its target is intelmic we enable
3257 # target liboffloadmic by default. If this is compiler with offloading
3258 # for intelmic we enable host liboffloadmic by default. Otherwise
3259 # liboffloadmic is disabled by default.
3260 # Check whether --enable-liboffloadmic was given.
3261 if test "${enable_liboffloadmic+set}" = set; then :
3262 enableval=$enable_liboffloadmic; case "$enableval" in
3263 no | host | target)
3264 enable_liboffloadmic=$enableval ;;
3265 *)
3266 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3267 esac
3268 else
3269 if test x"$enable_as_accelerator_for" != x; then
3270 case "${target}" in
3271 *-intelmic-* | *-intelmicemul-*)
3272 enable_liboffloadmic=target
3273 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3274 ;;
3275 *)
3276 enable_liboffloadmic=no
3277 ;;
3278 esac
3279 else
3280 case "${enable_offload_targets}" in
3281 *-intelmic-* | *-intelmicemul-*)
3282 enable_liboffloadmic=host
3283 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3284 ;;
3285 *)
3286 enable_liboffloadmic=no
3287 ;;
3288 esac
3289 fi
3290 fi
3291
3292
3293
3294 # Enable libgomp by default on hosted POSIX systems, and a few others.
3295 if test x$enable_libgomp = x ; then
3296 case "${target}" in
3297 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3298 ;;
3299 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3300 ;;
3301 *-*-solaris2* | *-*-hpux11*)
3302 ;;
3303 *-*-darwin* | *-*-aix*)
3304 ;;
3305 nvptx*-*-* | amdgcn*-*-*)
3306 ;;
3307 *)
3308 noconfigdirs="$noconfigdirs target-libgomp"
3309 ;;
3310 esac
3311 fi
3312
3313 # Disable libatomic on unsupported systems.
3314 if test -d ${srcdir}/libatomic; then
3315 if test x$enable_libatomic = x; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3317 $as_echo_n "checking for libatomic support... " >&6; }
3318 if (srcdir=${srcdir}/libatomic; \
3319 . ${srcdir}/configure.tgt; \
3320 test -n "$UNSUPPORTED")
3321 then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 noconfigdirs="$noconfigdirs target-libatomic"
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328 fi
3329 fi
3330 fi
3331
3332 # Disable liboffloadmic on unsupported systems.
3333 if test -d ${srcdir}/liboffloadmic; then
3334 if test x$enable_liboffloadmic != xno; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3336 $as_echo_n "checking for liboffloadmic support... " >&6; }
3337 if (srcdir=${srcdir}/liboffloadmic; \
3338 . ${srcdir}/configure.tgt; \
3339 test -n "$UNSUPPORTED")
3340 then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 noconfigdirs="$noconfigdirs target-liboffloadmic"
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3347 fi
3348 fi
3349 fi
3350
3351 # Disable libitm on unsupported systems.
3352 if test -d ${srcdir}/libitm; then
3353 if test x$enable_libitm = x; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3355 $as_echo_n "checking for libitm support... " >&6; }
3356 if (srcdir=${srcdir}/libitm; \
3357 . ${srcdir}/configure.tgt; \
3358 test -n "$UNSUPPORTED")
3359 then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 noconfigdirs="$noconfigdirs target-libitm"
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3366 fi
3367 fi
3368 fi
3369
3370 # Disable libsanitizer on unsupported systems.
3371 if test -d ${srcdir}/libsanitizer; then
3372 if test x$enable_libsanitizer = x; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3374 $as_echo_n "checking for libsanitizer support... " >&6; }
3375 if (srcdir=${srcdir}/libsanitizer; \
3376 . ${srcdir}/configure.tgt; \
3377 test -n "$UNSUPPORTED")
3378 then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 noconfigdirs="$noconfigdirs target-libsanitizer"
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3385 fi
3386 fi
3387 fi
3388
3389 # Disable libvtv on unsupported systems.
3390 if test -d ${srcdir}/libvtv; then
3391 if test x$enable_libvtv = x; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3393 $as_echo_n "checking for libvtv support... " >&6; }
3394 if (srcdir=${srcdir}/libvtv; \
3395 . ${srcdir}/configure.tgt; \
3396 test "$VTV_SUPPORTED" != "yes")
3397 then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 noconfigdirs="$noconfigdirs target-libvtv"
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3404 fi
3405 fi
3406 fi
3407
3408 # Disable libquadmath for some systems.
3409 case "${target}" in
3410 avr-*-*)
3411 noconfigdirs="$noconfigdirs target-libquadmath"
3412 ;;
3413 # libquadmath is unused on AIX and libquadmath build process use of
3414 # LD_LIBRARY_PATH can break AIX bootstrap.
3415 powerpc-*-aix* | rs6000-*-aix*)
3416 noconfigdirs="$noconfigdirs target-libquadmath"
3417 ;;
3418 esac
3419
3420 # Disable libssp for some systems.
3421 case "${target}" in
3422 avr-*-*)
3423 # No hosted I/O support.
3424 noconfigdirs="$noconfigdirs target-libssp"
3425 ;;
3426 bpf-*-*)
3427 noconfigdirs="$noconfigdirs target-libssp"
3428 ;;
3429 powerpc-*-aix* | rs6000-*-aix*)
3430 noconfigdirs="$noconfigdirs target-libssp"
3431 ;;
3432 pru-*-*)
3433 # No hosted I/O support.
3434 noconfigdirs="$noconfigdirs target-libssp"
3435 ;;
3436 rl78-*-*)
3437 # libssp uses a misaligned load to trigger a fault, but the RL78
3438 # doesn't fault for those - instead, it gives a build-time error
3439 # for explicit misaligned loads.
3440 noconfigdirs="$noconfigdirs target-libssp"
3441 ;;
3442 visium-*-*)
3443 # No hosted I/O support.
3444 noconfigdirs="$noconfigdirs target-libssp"
3445 ;;
3446 esac
3447
3448 # Disable libstdc++-v3 for some systems.
3449 # Allow user to override this if they pass --enable-libstdcxx
3450 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3451 case "${target}" in
3452 *-*-vxworks*)
3453 # VxWorks uses the Dinkumware C++ library.
3454 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3455 ;;
3456 amdgcn*-*-*)
3457 # Not ported/fails to build when using newlib.
3458 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3459 ;;
3460 arm*-wince-pe*)
3461 # the C++ libraries don't build on top of CE's C libraries
3462 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3463 ;;
3464 avr-*-*)
3465 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3466 ;;
3467 bpf-*-*)
3468 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3469 ;;
3470 ft32-*-*)
3471 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3472 ;;
3473 esac
3474 fi
3475
3476 # Disable C++ on systems where it is known to not work.
3477 # For testing, you can override this with --enable-languages=c++.
3478 case ,${enable_languages}, in
3479 *,c++,*)
3480 ;;
3481 *)
3482 case "${target}" in
3483 bpf-*-*)
3484 unsupported_languages="$unsupported_languages c++"
3485 ;;
3486 esac
3487 ;;
3488 esac
3489
3490 # Disable Objc on systems where it is known to not work.
3491 # For testing, you can override this with --enable-languages=objc.
3492 case ,${enable_languages}, in
3493 *,objc,*)
3494 ;;
3495 *)
3496 case "${target}" in
3497 bpf-*-*)
3498 unsupported_languages="$unsupported_languages objc"
3499 ;;
3500 esac
3501 ;;
3502 esac
3503
3504 # Disable D on systems where it is known to not work.
3505 # For testing, you can override this with --enable-languages=d.
3506 case ,${enable_languages}, in
3507 *,d,*)
3508 ;;
3509 *)
3510 case "${target}" in
3511 bpf-*-*)
3512 unsupported_languages="$unsupported_languages d"
3513 ;;
3514 esac
3515 ;;
3516 esac
3517
3518 # Disable libphobos on unsupported systems.
3519 # For testing, you can override this with --enable-libphobos.
3520 if test -d ${srcdir}/libphobos; then
3521 if test x$enable_libphobos = x; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3523 $as_echo_n "checking for libphobos support... " >&6; }
3524 if (srcdir=${srcdir}/libphobos; \
3525 . ${srcdir}/configure.tgt; \
3526 test "$LIBPHOBOS_SUPPORTED" != "yes")
3527 then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 noconfigdirs="$noconfigdirs target-libphobos"
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 fi
3535 fi
3536 fi
3537
3538 # Disable Fortran for some systems.
3539 case "${target}" in
3540 mmix-*-*)
3541 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3542 unsupported_languages="$unsupported_languages fortran"
3543 ;;
3544 bpf-*-*)
3545 unsupported_languages="$unsupported_languages fortran"
3546 ;;
3547 esac
3548
3549 # Disable libffi for some systems.
3550 case "${target}" in
3551 powerpc-*-darwin*)
3552 ;;
3553 i[3456789]86-*-darwin*)
3554 ;;
3555 x86_64-*-darwin[912]*)
3556 ;;
3557 *-*-darwin*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 *-*-netware*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 *-*-phoenix*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 *-*-rtems*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3568 ;;
3569 *-*-tpf*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 *-*-uclinux*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3574 ;;
3575 *-*-vxworks*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3577 ;;
3578 aarch64*-*-freebsd*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3580 ;;
3581 alpha*-*-*vms*)
3582 noconfigdirs="$noconfigdirs target-libffi"
3583 ;;
3584 arm*-*-freebsd*)
3585 noconfigdirs="$noconfigdirs target-libffi"
3586 ;;
3587 arm-wince-pe)
3588 noconfigdirs="$noconfigdirs target-libffi"
3589 ;;
3590 arm*-*-symbianelf*)
3591 noconfigdirs="$noconfigdirs target-libffi"
3592 ;;
3593 bpf-*-*)
3594 noconfigdirs="$noconfigdirs target-libffi"
3595 ;;
3596 cris-*-* | crisv32-*-*)
3597 case "${target}" in
3598 *-*-linux*)
3599 ;;
3600 *) # See PR46792 regarding target-libffi.
3601 noconfigdirs="$noconfigdirs target-libffi";;
3602 esac
3603 ;;
3604 hppa*64*-*-hpux*)
3605 noconfigdirs="$noconfigdirs target-libffi"
3606 ;;
3607 hppa*-hp-hpux11*)
3608 ;;
3609 hppa*-*-hpux*)
3610 noconfigdirs="$noconfigdirs target-libffi"
3611 ;;
3612 ia64*-*-*vms*)
3613 noconfigdirs="$noconfigdirs target-libffi"
3614 ;;
3615 i[3456789]86-w64-mingw*)
3616 noconfigdirs="$noconfigdirs target-libffi"
3617 ;;
3618 i[3456789]86-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libffi"
3620 ;;
3621 x86_64-*-mingw*)
3622 noconfigdirs="$noconfigdirs target-libffi"
3623 ;;
3624 mmix-*-*)
3625 noconfigdirs="$noconfigdirs target-libffi"
3626 ;;
3627 powerpc-*-aix*)
3628 ;;
3629 rs6000-*-aix*)
3630 ;;
3631 ft32-*-*)
3632 noconfigdirs="$noconfigdirs target-libffi"
3633 ;;
3634 *-*-lynxos*)
3635 noconfigdirs="$noconfigdirs target-libffi"
3636 ;;
3637 esac
3638
3639 # Disable the go frontend on systems where it is known to not work. Please keep
3640 # this in sync with contrib/config-list.mk.
3641 case "${target}" in
3642 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3643 unsupported_languages="$unsupported_languages go"
3644 ;;
3645 esac
3646
3647 # Only allow gdbserver on some systems.
3648 if test -d ${srcdir}/gdbserver; then
3649 if test x$enable_gdbserver = x; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3651 $as_echo_n "checking for gdbserver support... " >&6; }
3652 if (srcdir=${srcdir}/gdbserver; \
3653 . ${srcdir}/configure.srv; \
3654 test -n "$UNSUPPORTED")
3655 then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 noconfigdirs="$noconfigdirs gdbserver"
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3662 fi
3663 fi
3664 fi
3665
3666 # Disable libgo for some systems where it is known to not work.
3667 # For testing, you can easily override this with --enable-libgo.
3668 if test x$enable_libgo = x; then
3669 case "${target}" in
3670 *-*-darwin*)
3671 # PR 46986
3672 noconfigdirs="$noconfigdirs target-libgo"
3673 ;;
3674 *-*-cygwin* | *-*-mingw*)
3675 noconfigdirs="$noconfigdirs target-libgo"
3676 ;;
3677 bpf-*-*)
3678 noconfigdirs="$noconfigdirs target-libgo"
3679 ;;
3680 esac
3681 fi
3682
3683 # Default libgloss CPU subdirectory.
3684 libgloss_dir="$target_cpu"
3685
3686 case "${target}" in
3687 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3688 libgloss_dir=wince
3689 ;;
3690 aarch64*-*-* )
3691 libgloss_dir=aarch64
3692 ;;
3693 arm*-*-*)
3694 libgloss_dir=arm
3695 ;;
3696 cris-*-* | crisv32-*-*)
3697 libgloss_dir=cris
3698 ;;
3699 hppa*-*-*)
3700 libgloss_dir=pa
3701 ;;
3702 i[3456789]86-*-*)
3703 libgloss_dir=i386
3704 ;;
3705 loongarch*-*-*)
3706 libgloss_dir=loongarch
3707 ;;
3708 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3709 libgloss_dir=m68hc11
3710 ;;
3711 m68*-*-* | fido-*-*)
3712 libgloss_dir=m68k
3713 ;;
3714 mips*-*-*)
3715 libgloss_dir=mips
3716 ;;
3717 powerpc*-*-*)
3718 libgloss_dir=rs6000
3719 ;;
3720 pru-*-*)
3721 libgloss_dir=pru
3722 ;;
3723 sparc*-*-*)
3724 libgloss_dir=sparc
3725 ;;
3726 esac
3727
3728 # Disable newlib and libgloss for various target OSes.
3729 case "${target}" in
3730 alpha*-dec-osf*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 i[3456789]86-*-linux*)
3734 # This section makes it possible to build newlib natively on linux.
3735 # If we are using a cross compiler then don't configure newlib.
3736 if test x${is_cross_compiler} != xno ; then
3737 noconfigdirs="$noconfigdirs target-newlib"
3738 fi
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 # If we are not using a cross compiler, do configure newlib.
3741 # Note however, that newlib will only be configured in this situation
3742 # if the --with-newlib option has been given, because otherwise
3743 # 'target-newlib' will appear in skipdirs.
3744 ;;
3745 i[3456789]86-*-rdos*)
3746 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3747 ;;
3748 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3750 ;;
3751 sparc-*-sunos4*)
3752 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3753 ;;
3754 bpf-*-*)
3755 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 ;;
3757 *-*-aix*)
3758 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3759 ;;
3760 *-*-beos*)
3761 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3762 ;;
3763 *-*-chorusos)
3764 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3765 ;;
3766 *-*-dragonfly*)
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768 ;;
3769 *-*-freebsd*)
3770 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3771 ;;
3772 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3773 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3774 ;;
3775 *-*-lynxos*)
3776 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3777 ;;
3778 *-*-mingw*)
3779 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3780 ;;
3781 *-*-netbsd*)
3782 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3783 ;;
3784 *-*-netware*)
3785 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3786 ;;
3787 *-*-tpf*)
3788 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3789 ;;
3790 *-*-uclinux*)
3791 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3792 ;;
3793 *-*-vxworks*)
3794 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3795 ;;
3796 esac
3797
3798 case "${target}" in
3799 *-*-chorusos)
3800 ;;
3801 aarch64-*-darwin*)
3802 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3803 noconfigdirs="$noconfigdirs sim target-rda"
3804 ;;
3805 amdgcn*-*-*)
3806 ;;
3807 arm-*-darwin*)
3808 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3809 noconfigdirs="$noconfigdirs sim target-rda"
3810 ;;
3811 powerpc-*-darwin*)
3812 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3813 noconfigdirs="$noconfigdirs sim target-rda"
3814 ;;
3815 i[3456789]86-*-darwin*)
3816 noconfigdirs="$noconfigdirs ld gprof"
3817 noconfigdirs="$noconfigdirs sim target-rda"
3818 ;;
3819 x86_64-*-darwin[912]*)
3820 noconfigdirs="$noconfigdirs ld gas gprof"
3821 noconfigdirs="$noconfigdirs sim target-rda"
3822 ;;
3823 *-*-darwin*)
3824 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3825 noconfigdirs="$noconfigdirs sim target-rda"
3826 ;;
3827 *-*-dragonfly*)
3828 ;;
3829 *-*-freebsd*)
3830 if test "x$with_gmp" = x \
3831 && ! test -d ${srcdir}/gmp \
3832 && test -f /usr/local/include/gmp.h; then
3833 with_gmp=/usr/local
3834 fi
3835 ;;
3836 *-*-kaos*)
3837 # Remove unsupported stuff on all kaOS configurations.
3838 noconfigdirs="$noconfigdirs target-libgloss"
3839 ;;
3840 *-*-netbsd*)
3841 ;;
3842 *-*-netware*)
3843 ;;
3844 *-*-phoenix*)
3845 noconfigdirs="$noconfigdirs target-libgloss"
3846 ;;
3847 *-*-rtems*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 ;;
3850 # The tpf target doesn't support gdb yet.
3851 *-*-tpf*)
3852 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3853 ;;
3854 *-*-uclinux*)
3855 noconfigdirs="$noconfigdirs target-rda"
3856 ;;
3857 *-*-vxworks*)
3858 ;;
3859 alpha*-dec-osf*)
3860 # ld works, but does not support shared libraries.
3861 # gas doesn't generate exception information.
3862 noconfigdirs="$noconfigdirs gas ld"
3863 ;;
3864 alpha*-*-*vms*)
3865 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3866 ;;
3867 alpha*-*-*)
3868 # newlib is not 64 bit ready
3869 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3870 ;;
3871 bpf-*-*)
3872 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3873 ;;
3874 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3875 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3876 ;;
3877 arc*-*-*)
3878 noconfigdirs="$noconfigdirs sim"
3879 ;;
3880 arm-*-pe*)
3881 noconfigdirs="$noconfigdirs target-libgloss"
3882 ;;
3883 arm-*-riscix*)
3884 noconfigdirs="$noconfigdirs ld target-libgloss"
3885 ;;
3886 avr-*-*)
3887 if test x${with_avrlibc} != xno; then
3888 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3889 fi
3890 ;;
3891 c4x-*-* | tic4x-*-*)
3892 noconfigdirs="$noconfigdirs target-libgloss"
3893 ;;
3894 tic54x-*-*)
3895 noconfigdirs="$noconfigdirs target-libgloss gdb"
3896 ;;
3897 d10v-*-*)
3898 noconfigdirs="$noconfigdirs target-libgloss"
3899 ;;
3900 d30v-*-*)
3901 noconfigdirs="$noconfigdirs gdb"
3902 ;;
3903 fr30-*-elf*)
3904 noconfigdirs="$noconfigdirs gdb"
3905 ;;
3906 ft32-*-*)
3907 noconfigdirs="$noconfigdirs target-rda gprof"
3908 ;;
3909 moxie-*-*)
3910 noconfigdirs="$noconfigdirs"
3911 ;;
3912 h8300*-*-*)
3913 noconfigdirs="$noconfigdirs target-libgloss"
3914 ;;
3915 h8500-*-*)
3916 noconfigdirs="$noconfigdirs target-libgloss"
3917 ;;
3918 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3919 ;;
3920 hppa*64*-*-hpux*)
3921 noconfigdirs="$noconfigdirs gdb"
3922 ;;
3923 hppa*-*-hpux11*)
3924 noconfigdirs="$noconfigdirs gdb ld"
3925 ;;
3926 hppa*64*-*-linux*)
3927 ;;
3928 hppa*-*-linux*)
3929 ;;
3930 hppa*-*-*elf* | \
3931 hppa*-*-lites* | \
3932 hppa*-*-openbsd* | \
3933 hppa*64*-*-*)
3934 ;;
3935 hppa*-*-pro*)
3936 ;;
3937 hppa*-*-*)
3938 noconfigdirs="$noconfigdirs ld"
3939 ;;
3940 i960-*-*)
3941 noconfigdirs="$noconfigdirs gdb"
3942 ;;
3943 ia64*-*-elf*)
3944 # No gdb support yet.
3945 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3946 ;;
3947 ia64*-**-hpux*)
3948 # No ld support yet.
3949 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3950 ;;
3951 ia64*-*-*vms*)
3952 # No ld support yet.
3953 noconfigdirs="$noconfigdirs libgui itcl ld"
3954 ;;
3955 i[3456789]86-w64-mingw*)
3956 ;;
3957 i[3456789]86-*-mingw*)
3958 target_configdirs="$target_configdirs target-winsup"
3959 ;;
3960 *-*-cygwin*)
3961 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3962 noconfigdirs="$noconfigdirs target-libgloss"
3963 # always build newlib if winsup directory is present.
3964 if test -d "$srcdir/winsup/cygwin"; then
3965 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3966 elif test -d "$srcdir/newlib"; then
3967 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3968 fi
3969 ;;
3970 i[3456789]86-*-pe)
3971 noconfigdirs="$noconfigdirs target-libgloss"
3972 ;;
3973 i[3456789]86-*-sco3.2v5*)
3974 # The linker does not yet know about weak symbols in COFF,
3975 # and is not configured to handle mixed ELF and COFF.
3976 noconfigdirs="$noconfigdirs ld target-libgloss"
3977 ;;
3978 i[3456789]86-*-sco*)
3979 noconfigdirs="$noconfigdirs gprof target-libgloss"
3980 ;;
3981 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3982 noconfigdirs="$noconfigdirs target-libgloss"
3983 ;;
3984 i[3456789]86-*-sysv4*)
3985 noconfigdirs="$noconfigdirs target-libgloss"
3986 ;;
3987 i[3456789]86-*-beos*)
3988 noconfigdirs="$noconfigdirs gdb"
3989 ;;
3990 i[3456789]86-*-rdos*)
3991 noconfigdirs="$noconfigdirs gdb"
3992 ;;
3993 mmix-*-*)
3994 noconfigdirs="$noconfigdirs gdb"
3995 ;;
3996 mt-*-*)
3997 noconfigdirs="$noconfigdirs sim"
3998 ;;
3999 nfp-*-*)
4000 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4001 noconfigdirs="$noconfigdirs $target_libraries"
4002 ;;
4003 pdp11-*-*)
4004 noconfigdirs="$noconfigdirs gdb gprof"
4005 ;;
4006 powerpc-*-aix*)
4007 # copied from rs6000-*-* entry
4008 noconfigdirs="$noconfigdirs gprof"
4009 ;;
4010 powerpc*-*-winnt* | powerpc*-*-pe*)
4011 target_configdirs="$target_configdirs target-winsup"
4012 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4013 # always build newlib.
4014 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4015 ;;
4016 # This is temporary until we can link against shared libraries
4017 powerpcle-*-solaris*)
4018 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4019 ;;
4020 powerpc-*-beos*)
4021 noconfigdirs="$noconfigdirs gdb"
4022 ;;
4023 rs6000-*-lynxos*)
4024 noconfigdirs="$noconfigdirs gprof"
4025 ;;
4026 rs6000-*-aix*)
4027 noconfigdirs="$noconfigdirs gprof"
4028 ;;
4029 rs6000-*-*)
4030 noconfigdirs="$noconfigdirs gprof"
4031 ;;
4032 m68k-apollo-*)
4033 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4034 ;;
4035 microblaze*)
4036 noconfigdirs="$noconfigdirs gprof"
4037 ;;
4038 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4039 if test x$with_newlib = xyes; then
4040 noconfigdirs="$noconfigdirs gprof"
4041 fi
4042 ;;
4043 mips*-*-irix5*)
4044 noconfigdirs="$noconfigdirs gprof target-libgloss"
4045 ;;
4046 mips*-*-irix6*)
4047 noconfigdirs="$noconfigdirs gprof target-libgloss"
4048 ;;
4049 mips*-*-bsd*)
4050 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4051 ;;
4052 mips*-*-linux*)
4053 ;;
4054 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4055 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4056 noconfigdirs="$noconfigdirs ld gas gprof"
4057 ;;
4058 mips*-*-*)
4059 noconfigdirs="$noconfigdirs gprof"
4060 ;;
4061 nvptx*-*-*)
4062 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4063 ;;
4064 sh-*-*)
4065 case "${target}" in
4066 sh*-*-elf)
4067 ;;
4068 *)
4069 noconfigdirs="$noconfigdirs target-libgloss" ;;
4070 esac
4071 ;;
4072 sparc-*-sunos4*)
4073 if test x${is_cross_compiler} = xno ; then
4074 use_gnu_ld=no
4075 fi
4076 ;;
4077 tic6x-*-*)
4078 noconfigdirs="$noconfigdirs sim"
4079 ;;
4080 tilepro*-*-* | tilegx*-*-*)
4081 noconfigdirs="$noconfigdirs sim"
4082 ;;
4083 v810-*-*)
4084 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4085 ;;
4086 vax-*-*)
4087 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4088 ;;
4089 wasm32-*-*)
4090 noconfigdirs="$noconfigdirs ld"
4091 ;;
4092 loongarch*-*-linux*)
4093 ;;
4094 loongarch*-*-*)
4095 noconfigdirs="$noconfigdirs gprof"
4096 ;;
4097 esac
4098
4099 # If we aren't building newlib, then don't build libgloss, since libgloss
4100 # depends upon some newlib header files.
4101 case "${noconfigdirs}" in
4102 *target-libgloss*) ;;
4103 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4104 esac
4105
4106 # Work in distributions that contain no compiler tools, like Autoconf.
4107 host_makefile_frag=/dev/null
4108 if test -d ${srcdir}/config ; then
4109 case "${host}" in
4110 i[3456789]86-*-msdosdjgpp*)
4111 host_makefile_frag="config/mh-djgpp"
4112 ;;
4113 *-cygwin*)
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4116 $as_echo_n "checking to see if cat works as expected... " >&6; }
4117 echo a >cygwin-cat-check
4118 if test `cat cygwin-cat-check` = a ; then
4119 rm cygwin-cat-check
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4122 else
4123 rm cygwin-cat-check
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 as_fn_error $? "The cat command does not ignore carriage return characters.
4127 Please either mount the build directory in binary mode or run the following
4128 commands before running any configure script:
4129 set -o igncr
4130 export SHELLOPTS
4131 " "$LINENO" 5
4132 fi
4133
4134 host_makefile_frag="config/mh-cygwin"
4135 ;;
4136 *-mingw*)
4137 host_makefile_frag="config/mh-mingw"
4138 ;;
4139 alpha*-linux*)
4140 host_makefile_frag="config/mh-alpha-linux"
4141 ;;
4142 hppa*-hp-hpux10*)
4143 host_makefile_frag="config/mh-pa-hpux10"
4144 ;;
4145 hppa*-hp-hpux*)
4146 host_makefile_frag="config/mh-pa"
4147 ;;
4148 hppa*-*)
4149 host_makefile_frag="config/mh-pa"
4150 ;;
4151 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4152 host_makefile_frag="config/mh-darwin"
4153 ;;
4154 powerpc-*-aix*)
4155 host_makefile_frag="config/mh-ppc-aix"
4156 ;;
4157 rs6000-*-aix*)
4158 host_makefile_frag="config/mh-ppc-aix"
4159 ;;
4160 esac
4161 fi
4162
4163 if test "${build}" != "${host}" ; then
4164 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4165 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4166 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4167 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4168 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4169 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4170 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4171 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4172 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4173 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4174 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4175 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4176 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4177 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4178 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4179 else
4180 AR_FOR_BUILD="\$(AR)"
4181 AS_FOR_BUILD="\$(AS)"
4182 CC_FOR_BUILD="\$(CC)"
4183 CXX_FOR_BUILD="\$(CXX)"
4184 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4185 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4186 GOC_FOR_BUILD="\$(GOC)"
4187 GDC_FOR_BUILD="\$(GDC)"
4188 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4189 LD_FOR_BUILD="\$(LD)"
4190 NM_FOR_BUILD="\$(NM)"
4191 RANLIB_FOR_BUILD="\$(RANLIB)"
4192 WINDRES_FOR_BUILD="\$(WINDRES)"
4193 WINDMC_FOR_BUILD="\$(WINDMC)"
4194 fi
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241 ac_ct_CC=$CC
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267 fi
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 fi
4277
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4288 fi
4289 else
4290 CC="$ac_cv_prog_CC"
4291 fi
4292
4293 if test -z "$CC"; then
4294 if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4296 set dummy ${ac_tool_prefix}cc; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_CC+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_CC="${ac_tool_prefix}cc"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 CC=$ac_cv_prog_CC
4323 if test -n "$CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332 fi
4333 fi
4334 if test -z "$CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC="$CC" # Let the user override the test.
4344 else
4345 ac_prog_rejected=no
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354 ac_prog_rejected=yes
4355 continue
4356 fi
4357 ac_cv_prog_CC="cc"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361 done
4362 done
4363 IFS=$as_save_IFS
4364
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4368 shift
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4373 shift
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375 fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389 fi
4390 if test -z "$CC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in cl.exe
4393 do
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CC=$ac_cv_prog_CC
4422 if test -n "$CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 test -n "$CC" && break
4432 done
4433 fi
4434 if test -z "$CC"; then
4435 ac_ct_CC=$CC
4436 for ac_prog in cl.exe
4437 do
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475 test -n "$ac_ct_CC" && break
4476 done
4477
4478 if test "x$ac_ct_CC" = x; then
4479 CC=""
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CC=$ac_ct_CC
4488 fi
4489 fi
4490
4491 fi
4492
4493
4494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $? "no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details" "$LINENO" 5; }
4498
4499 # Provide some information about the compiler.
4500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4501 set X $ac_compile
4502 ac_compiler=$2
4503 for ac_option in --version -v -V -qversion; do
4504 { { ac_try="$ac_compiler $ac_option >&5"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4512 ac_status=$?
4513 if test -s conftest.err; then
4514 sed '10a\
4515 ... rest of stderr output deleted ...
4516 10q' conftest.err >conftest.er1
4517 cat conftest.er1 >&5
4518 fi
4519 rm -f conftest.er1 conftest.err
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4522 done
4523
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4539 # of exeext.
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4541 $as_echo_n "checking whether the C compiler works... " >&6; }
4542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4543
4544 # The possible output files:
4545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4546
4547 ac_rmfiles=
4548 for ac_file in $ac_files
4549 do
4550 case $ac_file in
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4553 esac
4554 done
4555 rm -f $ac_rmfiles
4556
4557 if { { ac_try="$ac_link_default"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link_default") 2>&5
4565 ac_status=$?
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4571 # so that the user can short-circuit this test for compilers unknown to
4572 # Autoconf.
4573 for ac_file in $ac_files ''
4574 do
4575 test -f "$ac_file" || continue
4576 case $ac_file in
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4578 ;;
4579 [ab].out )
4580 # We found the default executable, but exeext='' is most
4581 # certainly right.
4582 break;;
4583 *.* )
4584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4585 then :; else
4586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587 fi
4588 # We set ac_cv_exeext here because the later test for it is not
4589 # safe: cross compilers may not add the suffix if given an `-o'
4590 # argument, so we may need to know it at that point already.
4591 # Even if this section looks crufty: it has the advantage of
4592 # actually working.
4593 break;;
4594 * )
4595 break;;
4596 esac
4597 done
4598 test "$ac_cv_exeext" = no && ac_cv_exeext=
4599
4600 else
4601 ac_file=''
4602 fi
4603 if test -z "$ac_file"; then :
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 $as_echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4608
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error 77 "C compiler cannot create executables
4612 See \`config.log' for more details" "$LINENO" 5; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4618 $as_echo_n "checking for C compiler default output file name... " >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4620 $as_echo "$ac_file" >&6; }
4621 ac_exeext=$ac_cv_exeext
4622
4623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4624 ac_clean_files=$ac_clean_files_save
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4626 $as_echo_n "checking for suffix of executables... " >&6; }
4627 if { { ac_try="$ac_link"
4628 case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631 esac
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_link") 2>&5
4635 ac_status=$?
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4640 # work properly (i.e., refer to `conftest.exe'), while it won't with
4641 # `rm'.
4642 for ac_file in conftest.exe conftest conftest.*; do
4643 test -f "$ac_file" || continue
4644 case $ac_file in
4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4647 break;;
4648 * ) break;;
4649 esac
4650 done
4651 else
4652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4655 See \`config.log' for more details" "$LINENO" 5; }
4656 fi
4657 rm -f conftest conftest$ac_cv_exeext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4659 $as_echo "$ac_cv_exeext" >&6; }
4660
4661 rm -f conftest.$ac_ext
4662 EXEEXT=$ac_cv_exeext
4663 ac_exeext=$EXEEXT
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <stdio.h>
4667 int
4668 main ()
4669 {
4670 FILE *f = fopen ("conftest.out", "w");
4671 return ferror (f) || fclose (f) != 0;
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 ac_clean_files="$ac_clean_files conftest.out"
4678 # Check that the compiler produces executables we can run. If not, either
4679 # the compiler is broken, or we cross compile.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4681 $as_echo_n "checking whether we are cross compiling... " >&6; }
4682 if test "$cross_compiling" != yes; then
4683 { { ac_try="$ac_link"
4684 case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4687 esac
4688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4689 $as_echo "$ac_try_echo"; } >&5
4690 (eval "$ac_link") 2>&5
4691 ac_status=$?
4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }
4694 if { ac_try='./conftest$ac_cv_exeext'
4695 { { case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_try") 2>&5
4702 ac_status=$?
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }; }; then
4705 cross_compiling=no
4706 else
4707 if test "$cross_compiling" = maybe; then
4708 cross_compiling=yes
4709 else
4710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "cannot run C compiled programs.
4713 If you meant to cross compile, use \`--host'.
4714 See \`config.log' for more details" "$LINENO" 5; }
4715 fi
4716 fi
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4719 $as_echo "$cross_compiling" >&6; }
4720
4721 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4722 ac_clean_files=$ac_clean_files_save
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4724 $as_echo_n "checking for suffix of object files... " >&6; }
4725 if ${ac_cv_objext+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.o conftest.obj
4740 if { { ac_try="$ac_compile"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_compile") 2>&5
4748 ac_status=$?
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }; then :
4751 for ac_file in conftest.o conftest.obj conftest.*; do
4752 test -f "$ac_file" || continue;
4753 case $ac_file in
4754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4756 break;;
4757 esac
4758 done
4759 else
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4765 as_fn_error $? "cannot compute suffix of object files: cannot compile
4766 See \`config.log' for more details" "$LINENO" 5; }
4767 fi
4768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4771 $as_echo "$ac_cv_objext" >&6; }
4772 OBJEXT=$ac_cv_objext
4773 ac_objext=$OBJEXT
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if ${ac_cv_c_compiler_gnu+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781
4782 int
4783 main ()
4784 {
4785 #ifndef __GNUC__
4786 choke me
4787 #endif
4788
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 ac_compiler_gnu=yes
4795 else
4796 ac_compiler_gnu=no
4797 fi
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4804 if test $ac_compiler_gnu = yes; then
4805 GCC=yes
4806 else
4807 GCC=
4808 fi
4809 ac_test_CFLAGS=${CFLAGS+set}
4810 ac_save_CFLAGS=$CFLAGS
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4813 if ${ac_cv_prog_cc_g+:} false; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 ac_save_c_werror_flag=$ac_c_werror_flag
4817 ac_c_werror_flag=yes
4818 ac_cv_prog_cc_g=no
4819 CFLAGS="-g"
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822
4823 int
4824 main ()
4825 {
4826
4827 ;
4828 return 0;
4829 }
4830 _ACEOF
4831 if ac_fn_c_try_compile "$LINENO"; then :
4832 ac_cv_prog_cc_g=yes
4833 else
4834 CFLAGS=""
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847
4848 else
4849 ac_c_werror_flag=$ac_save_c_werror_flag
4850 CFLAGS="-g"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_prog_cc_g=yes
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_c_werror_flag=$ac_save_c_werror_flag
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4873 $as_echo "$ac_cv_prog_cc_g" >&6; }
4874 if test "$ac_test_CFLAGS" = set; then
4875 CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877 if test "$GCC" = yes; then
4878 CFLAGS="-g -O2"
4879 else
4880 CFLAGS="-g"
4881 fi
4882 else
4883 if test "$GCC" = yes; then
4884 CFLAGS="-O2"
4885 else
4886 CFLAGS=
4887 fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4891 if ${ac_cv_prog_cc_c89+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 ac_cv_prog_cc_c89=no
4895 ac_save_CC=$CC
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 #include <stdarg.h>
4899 #include <stdio.h>
4900 struct stat;
4901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4902 struct buf { int x; };
4903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4904 static char *e (p, i)
4905 char **p;
4906 int i;
4907 {
4908 return p[i];
4909 }
4910 static char *f (char * (*g) (char **, int), char **p, ...)
4911 {
4912 char *s;
4913 va_list v;
4914 va_start (v,p);
4915 s = g (p, va_arg (v,int));
4916 va_end (v);
4917 return s;
4918 }
4919
4920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4921 function prototypes and stuff, but not '\xHH' hex character constants.
4922 These don't provoke an error unfortunately, instead are silently treated
4923 as 'x'. The following induces an error, until -std is added to get
4924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4925 array size at least. It's necessary to write '\x00'==0 to get something
4926 that's true only with -std. */
4927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4928
4929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4930 inside strings and character constants. */
4931 #define FOO(x) 'x'
4932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4933
4934 int test (int i, double x);
4935 struct s1 {int (*f) (int a);};
4936 struct s2 {int (*f) (double a);};
4937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4938 int argc;
4939 char **argv;
4940 int
4941 main ()
4942 {
4943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 do
4951 CC="$ac_save_CC $ac_arg"
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_cv_prog_cc_c89=$ac_arg
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext
4956 test "x$ac_cv_prog_cc_c89" != "xno" && break
4957 done
4958 rm -f conftest.$ac_ext
4959 CC=$ac_save_CC
4960
4961 fi
4962 # AC_CACHE_VAL
4963 case "x$ac_cv_prog_cc_c89" in
4964 x)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4966 $as_echo "none needed" >&6; } ;;
4967 xno)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4969 $as_echo "unsupported" >&6; } ;;
4970 *)
4971 CC="$CC $ac_cv_prog_cc_c89"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4974 esac
4975 if test "x$ac_cv_prog_cc_c89" != xno; then :
4976
4977 fi
4978
4979 ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4987 if ${ac_cv_prog_cc_c99+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 ac_cv_prog_cc_c99=no
4991 ac_save_CC=$CC
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <stdarg.h>
4995 #include <stdbool.h>
4996 #include <stdlib.h>
4997 #include <wchar.h>
4998 #include <stdio.h>
4999
5000 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5001 #define debug(...) fprintf (stderr, __VA_ARGS__)
5002 #define showlist(...) puts (#__VA_ARGS__)
5003 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5004 static void
5005 test_varargs_macros (void)
5006 {
5007 int x = 1234;
5008 int y = 5678;
5009 debug ("Flag");
5010 debug ("X = %d\n", x);
5011 showlist (The first, second, and third items.);
5012 report (x>y, "x is %d but y is %d", x, y);
5013 }
5014
5015 // Check long long types.
5016 #define BIG64 18446744073709551615ull
5017 #define BIG32 4294967295ul
5018 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5019 #if !BIG_OK
5020 your preprocessor is broken;
5021 #endif
5022 #if BIG_OK
5023 #else
5024 your preprocessor is broken;
5025 #endif
5026 static long long int bignum = -9223372036854775807LL;
5027 static unsigned long long int ubignum = BIG64;
5028
5029 struct incomplete_array
5030 {
5031 int datasize;
5032 double data[];
5033 };
5034
5035 struct named_init {
5036 int number;
5037 const wchar_t *name;
5038 double average;
5039 };
5040
5041 typedef const char *ccp;
5042
5043 static inline int
5044 test_restrict (ccp restrict text)
5045 {
5046 // See if C++-style comments work.
5047 // Iterate through items via the restricted pointer.
5048 // Also check for declarations in for loops.
5049 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5050 continue;
5051 return 0;
5052 }
5053
5054 // Check varargs and va_copy.
5055 static void
5056 test_varargs (const char *format, ...)
5057 {
5058 va_list args;
5059 va_start (args, format);
5060 va_list args_copy;
5061 va_copy (args_copy, args);
5062
5063 const char *str;
5064 int number;
5065 float fnumber;
5066
5067 while (*format)
5068 {
5069 switch (*format++)
5070 {
5071 case 's': // string
5072 str = va_arg (args_copy, const char *);
5073 break;
5074 case 'd': // int
5075 number = va_arg (args_copy, int);
5076 break;
5077 case 'f': // float
5078 fnumber = va_arg (args_copy, double);
5079 break;
5080 default:
5081 break;
5082 }
5083 }
5084 va_end (args_copy);
5085 va_end (args);
5086 }
5087
5088 int
5089 main ()
5090 {
5091
5092 // Check bool.
5093 _Bool success = false;
5094
5095 // Check restrict.
5096 if (test_restrict ("String literal") == 0)
5097 success = true;
5098 char *restrict newvar = "Another string";
5099
5100 // Check varargs.
5101 test_varargs ("s, d' f .", "string", 65, 34.234);
5102 test_varargs_macros ();
5103
5104 // Check flexible array members.
5105 struct incomplete_array *ia =
5106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5107 ia->datasize = 10;
5108 for (int i = 0; i < ia->datasize; ++i)
5109 ia->data[i] = i * 1.234;
5110
5111 // Check named initializers.
5112 struct named_init ni = {
5113 .number = 34,
5114 .name = L"Test wide string",
5115 .average = 543.34343,
5116 };
5117
5118 ni.number = 58;
5119
5120 int dynamic_array[ni.number];
5121 dynamic_array[ni.number - 1] = 543;
5122
5123 // work around unused variable warnings
5124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5125 || dynamic_array[ni.number - 1] != 543);
5126
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5132 do
5133 CC="$ac_save_CC $ac_arg"
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_prog_cc_c99=$ac_arg
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext
5138 test "x$ac_cv_prog_cc_c99" != "xno" && break
5139 done
5140 rm -f conftest.$ac_ext
5141 CC=$ac_save_CC
5142
5143 fi
5144 # AC_CACHE_VAL
5145 case "x$ac_cv_prog_cc_c99" in
5146 x)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5148 $as_echo "none needed" >&6; } ;;
5149 xno)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5151 $as_echo "unsupported" >&6; } ;;
5152 *)
5153 CC="$CC $ac_cv_prog_cc_c99"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5155 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5156 esac
5157 if test "x$ac_cv_prog_cc_c99" != xno; then :
5158
5159 fi
5160
5161
5162 ac_ext=cpp
5163 ac_cpp='$CXXCPP $CPPFLAGS'
5164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5167 if test -z "$CXX"; then
5168 if test -n "$CCC"; then
5169 CXX=$CCC
5170 else
5171 if test -n "$ac_tool_prefix"; then
5172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5173 do
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_CXX+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$CXX"; then
5182 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 CXX=$ac_cv_prog_CXX
5202 if test -n "$CXX"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5204 $as_echo "$CXX" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210
5211 test -n "$CXX" && break
5212 done
5213 fi
5214 if test -z "$CXX"; then
5215 ac_ct_CXX=$CXX
5216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5217 do
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -n "$ac_ct_CXX"; then
5226 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5227 else
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_ac_ct_CXX="$ac_prog"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239 done
5240 done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5246 if test -n "$ac_ct_CXX"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5248 $as_echo "$ac_ct_CXX" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253
5254
5255 test -n "$ac_ct_CXX" && break
5256 done
5257
5258 if test "x$ac_ct_CXX" = x; then
5259 CXX="g++"
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262 yes:)
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5266 esac
5267 CXX=$ac_ct_CXX
5268 fi
5269 fi
5270
5271 fi
5272 fi
5273 # Provide some information about the compiler.
5274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5275 set X $ac_compile
5276 ac_compiler=$2
5277 for ac_option in --version -v -V -qversion; do
5278 { { ac_try="$ac_compiler $ac_option >&5"
5279 case "(($ac_try" in
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5282 esac
5283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5284 $as_echo "$ac_try_echo"; } >&5
5285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5286 ac_status=$?
5287 if test -s conftest.err; then
5288 sed '10a\
5289 ... rest of stderr output deleted ...
5290 10q' conftest.err >conftest.er1
5291 cat conftest.er1 >&5
5292 fi
5293 rm -f conftest.er1 conftest.err
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }
5296 done
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5300 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305
5306 int
5307 main ()
5308 {
5309 #ifndef __GNUC__
5310 choke me
5311 #endif
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_cxx_try_compile "$LINENO"; then :
5318 ac_compiler_gnu=yes
5319 else
5320 ac_compiler_gnu=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5324
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5328 if test $ac_compiler_gnu = yes; then
5329 GXX=yes
5330 else
5331 GXX=
5332 fi
5333 ac_test_CXXFLAGS=${CXXFLAGS+set}
5334 ac_save_CXXFLAGS=$CXXFLAGS
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5337 if ${ac_cv_prog_cxx_g+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5341 ac_cxx_werror_flag=yes
5342 ac_cv_prog_cxx_g=no
5343 CXXFLAGS="-g"
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346
5347 int
5348 main ()
5349 {
5350
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 if ac_fn_cxx_try_compile "$LINENO"; then :
5356 ac_cv_prog_cxx_g=yes
5357 else
5358 CXXFLAGS=""
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361
5362 int
5363 main ()
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_cxx_try_compile "$LINENO"; then :
5371
5372 else
5373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5374 CXXFLAGS="-g"
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377
5378 int
5379 main ()
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_cxx_try_compile "$LINENO"; then :
5387 ac_cv_prog_cxx_g=yes
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5395 fi
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5398 if test "$ac_test_CXXFLAGS" = set; then
5399 CXXFLAGS=$ac_save_CXXFLAGS
5400 elif test $ac_cv_prog_cxx_g = yes; then
5401 if test "$GXX" = yes; then
5402 CXXFLAGS="-g -O2"
5403 else
5404 CXXFLAGS="-g"
5405 fi
5406 else
5407 if test "$GXX" = yes; then
5408 CXXFLAGS="-O2"
5409 else
5410 CXXFLAGS=
5411 fi
5412 fi
5413 ac_ext=c
5414 ac_cpp='$CPP $CPPFLAGS'
5415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420 # We must set the default linker to the linker used by gcc for the correct
5421 # operation of libtool. If LD is not defined and we are using gcc, try to
5422 # set the LD default to the ld used by gcc.
5423 if test -z "$LD"; then
5424 if test "$GCC" = yes; then
5425 case $build in
5426 *-*-mingw*)
5427 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5428 *)
5429 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5430 esac
5431 case $gcc_prog_ld in
5432 # Accept absolute paths.
5433 [\\/]* | [A-Za-z]:[\\/]*)
5434 LD="$gcc_prog_ld" ;;
5435 esac
5436 fi
5437 fi
5438
5439 # Check whether -static-libstdc++ -static-libgcc is supported.
5440 have_static_libs=no
5441 if test "$GCC" = yes; then
5442 saved_LDFLAGS="$LDFLAGS"
5443
5444 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5446 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5447 ac_ext=cpp
5448 ac_cpp='$CXXCPP $CPPFLAGS'
5449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5452
5453
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5458 #error -static-libstdc++ not implemented
5459 #endif
5460 int main() {}
5461 _ACEOF
5462 if ac_fn_cxx_try_link "$LINENO"; then :
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }; have_static_libs=yes
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476
5477
5478 LDFLAGS="$saved_LDFLAGS"
5479 fi
5480
5481
5482
5483
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5486 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_GNATBIND+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$GNATBIND"; then
5493 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 GNATBIND=$ac_cv_prog_GNATBIND
5513 if test -n "$GNATBIND"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5515 $as_echo "$GNATBIND" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 fi
5523 if test -z "$ac_cv_prog_GNATBIND"; then
5524 ac_ct_GNATBIND=$GNATBIND
5525 # Extract the first word of "gnatbind", so it can be a program name with args.
5526 set dummy gnatbind; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$ac_ct_GNATBIND"; then
5533 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5553 if test -n "$ac_ct_GNATBIND"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5555 $as_echo "$ac_ct_GNATBIND" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561 if test "x$ac_ct_GNATBIND" = x; then
5562 GNATBIND="no"
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565 yes:)
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned=yes ;;
5569 esac
5570 GNATBIND=$ac_ct_GNATBIND
5571 fi
5572 else
5573 GNATBIND="$ac_cv_prog_GNATBIND"
5574 fi
5575
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_GNATMAKE+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if test -n "$GNATMAKE"; then
5585 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598 done
5599 done
5600 IFS=$as_save_IFS
5601
5602 fi
5603 fi
5604 GNATMAKE=$ac_cv_prog_GNATMAKE
5605 if test -n "$GNATMAKE"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5607 $as_echo "$GNATMAKE" >&6; }
5608 else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 fi
5615 if test -z "$ac_cv_prog_GNATMAKE"; then
5616 ac_ct_GNATMAKE=$GNATMAKE
5617 # Extract the first word of "gnatmake", so it can be a program name with args.
5618 set dummy gnatmake; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test -n "$ac_ct_GNATMAKE"; then
5625 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5645 if test -n "$ac_ct_GNATMAKE"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5647 $as_echo "$ac_ct_GNATMAKE" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653 if test "x$ac_ct_GNATMAKE" = x; then
5654 GNATMAKE="no"
5655 else
5656 case $cross_compiling:$ac_tool_warned in
5657 yes:)
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662 GNATMAKE=$ac_ct_GNATMAKE
5663 fi
5664 else
5665 GNATMAKE="$ac_cv_prog_GNATMAKE"
5666 fi
5667
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5669 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5670 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 cat >conftest.adb <<EOF
5674 pragma Warnings (Off);
5675 with System.CRTL;
5676 pragma Warnings (On);
5677 use type System.CRTL.int64;
5678 procedure conftest is begin null; end conftest;
5679 EOF
5680 acx_cv_cc_gcc_supports_ada=no
5681 # There is a bug in old released versions of GCC which causes the
5682 # driver to exit successfully when the appropriate language module
5683 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5684 # Therefore we must check for the error message as well as an
5685 # unsuccessful exit.
5686 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5687 # given a .adb file, but produce no object file. So we must check
5688 # if an object file was really produced to guard against this.
5689 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5690 if test x"$errors" = x && test -f conftest.$ac_objext; then
5691 acx_cv_cc_gcc_supports_ada=yes
5692 fi
5693 rm -f conftest.*
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5696 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5697
5698 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5699 have_gnat=yes
5700 else
5701 have_gnat=no
5702 fi
5703
5704
5705
5706 if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_GDC+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 if test -n "$GDC"; then
5715 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 GDC=$ac_cv_prog_GDC
5735 if test -n "$GDC"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5737 $as_echo "$GDC" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744 fi
5745 if test -z "$ac_cv_prog_GDC"; then
5746 ac_ct_GDC=$GDC
5747 # Extract the first word of "gdc", so it can be a program name with args.
5748 set dummy gdc; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$ac_ct_GDC"; then
5755 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_GDC="gdc"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5775 if test -n "$ac_ct_GDC"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5777 $as_echo "$ac_ct_GDC" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783 if test "x$ac_ct_GDC" = x; then
5784 GDC="no"
5785 else
5786 case $cross_compiling:$ac_tool_warned in
5787 yes:)
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790 ac_tool_warned=yes ;;
5791 esac
5792 GDC=$ac_ct_GDC
5793 fi
5794 else
5795 GDC="$ac_cv_prog_GDC"
5796 fi
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5799 $as_echo_n "checking whether the D compiler works... " >&6; }
5800 if ${acx_cv_d_compiler_works+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat >conftest.d <<EOF
5804 module conftest; int main() { return 0; }
5805 EOF
5806 acx_cv_d_compiler_works=no
5807 if test "x$GDC" != xno; then
5808 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5809 if test x"$errors" = x && test -f conftest.$ac_objext; then
5810 acx_cv_d_compiler_works=yes
5811 fi
5812 rm -f conftest.*
5813 fi
5814 fi
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5816 $as_echo "$acx_cv_d_compiler_works" >&6; }
5817 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5818 have_gdc=yes
5819 else
5820 have_gdc=no
5821 fi
5822
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5824 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5825 if ${gcc_cv_prog_cmp_skip+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 echo abfoo >t1
5829 echo cdfoo >t2
5830 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5831 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5832 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5833 :
5834 else
5835 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5836 fi
5837 fi
5838 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5839 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5840 :
5841 else
5842 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5843 fi
5844 fi
5845 rm t1 t2
5846
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5849 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5850 do_compare="$gcc_cv_prog_cmp_skip"
5851
5852
5853
5854 # Check whether --enable-bootstrap was given.
5855 if test "${enable_bootstrap+set}" = set; then :
5856 enableval=$enable_bootstrap;
5857 else
5858 enable_bootstrap=default
5859 fi
5860
5861
5862 # Issue errors and warnings for invalid/strange bootstrap combinations.
5863 if test -r $srcdir/gcc/configure; then
5864 have_compiler=yes
5865 else
5866 have_compiler=no
5867 fi
5868
5869 case "$have_compiler:$host:$target:$enable_bootstrap" in
5870 *:*:*:no) ;;
5871
5872 # Default behavior. Enable bootstrap if we have a compiler
5873 # and we are in a native configuration.
5874 yes:$build:$build:default)
5875 enable_bootstrap=yes ;;
5876
5877 *:*:*:default)
5878 enable_bootstrap=no ;;
5879
5880 # We have a compiler and we are in a native configuration, bootstrap is ok
5881 yes:$build:$build:yes)
5882 ;;
5883
5884 # Other configurations, but we have a compiler. Assume the user knows
5885 # what he's doing.
5886 yes:*:*:yes)
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5888 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5889 ;;
5890
5891 # No compiler: if they passed --enable-bootstrap explicitly, fail
5892 no:*:*:yes)
5893 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5894
5895 # Fail if wrong command line
5896 *)
5897 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5898 ;;
5899 esac
5900
5901 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5902 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5903 # require C++11 (or higher).
5904 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5905 CXX="$CXX -std=c++11"
5906 elif test "$have_compiler" = yes; then
5907 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5908 ac_ext=cpp
5909 ac_cpp='$CXXCPP $CPPFLAGS'
5910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5913 ac_success=no
5914
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5916 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5917 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922
5923
5924 // If the compiler admits that it is not ready for C++11, why torture it?
5925 // Hopefully, this will speed up the test.
5926
5927 #ifndef __cplusplus
5928
5929 #error "This is not a C++ compiler"
5930
5931 #elif __cplusplus < 201103L
5932
5933 #error "This is not a C++11 compiler"
5934
5935 #else
5936
5937 namespace cxx11
5938 {
5939
5940 namespace test_static_assert
5941 {
5942
5943 template <typename T>
5944 struct check
5945 {
5946 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5947 };
5948
5949 }
5950
5951 namespace test_final_override
5952 {
5953
5954 struct Base
5955 {
5956 virtual ~Base() {}
5957 virtual void f() {}
5958 };
5959
5960 struct Derived : public Base
5961 {
5962 virtual ~Derived() override {}
5963 virtual void f() override {}
5964 };
5965
5966 }
5967
5968 namespace test_double_right_angle_brackets
5969 {
5970
5971 template < typename T >
5972 struct check {};
5973
5974 typedef check<void> single_type;
5975 typedef check<check<void>> double_type;
5976 typedef check<check<check<void>>> triple_type;
5977 typedef check<check<check<check<void>>>> quadruple_type;
5978
5979 }
5980
5981 namespace test_decltype
5982 {
5983
5984 int
5985 f()
5986 {
5987 int a = 1;
5988 decltype(a) b = 2;
5989 return a + b;
5990 }
5991
5992 }
5993
5994 namespace test_type_deduction
5995 {
5996
5997 template < typename T1, typename T2 >
5998 struct is_same
5999 {
6000 static const bool value = false;
6001 };
6002
6003 template < typename T >
6004 struct is_same<T, T>
6005 {
6006 static const bool value = true;
6007 };
6008
6009 template < typename T1, typename T2 >
6010 auto
6011 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6012 {
6013 return a1 + a2;
6014 }
6015
6016 int
6017 test(const int c, volatile int v)
6018 {
6019 static_assert(is_same<int, decltype(0)>::value == true, "");
6020 static_assert(is_same<int, decltype(c)>::value == false, "");
6021 static_assert(is_same<int, decltype(v)>::value == false, "");
6022 auto ac = c;
6023 auto av = v;
6024 auto sumi = ac + av + 'x';
6025 auto sumf = ac + av + 1.0;
6026 static_assert(is_same<int, decltype(ac)>::value == true, "");
6027 static_assert(is_same<int, decltype(av)>::value == true, "");
6028 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6029 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6030 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6031 return (sumf > 0.0) ? sumi : add(c, v);
6032 }
6033
6034 }
6035
6036 namespace test_noexcept
6037 {
6038
6039 int f() { return 0; }
6040 int g() noexcept { return 0; }
6041
6042 static_assert(noexcept(f()) == false, "");
6043 static_assert(noexcept(g()) == true, "");
6044
6045 }
6046
6047 namespace test_constexpr
6048 {
6049
6050 template < typename CharT >
6051 unsigned long constexpr
6052 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6053 {
6054 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6055 }
6056
6057 template < typename CharT >
6058 unsigned long constexpr
6059 strlen_c(const CharT *const s) noexcept
6060 {
6061 return strlen_c_r(s, 0UL);
6062 }
6063
6064 static_assert(strlen_c("") == 0UL, "");
6065 static_assert(strlen_c("1") == 1UL, "");
6066 static_assert(strlen_c("example") == 7UL, "");
6067 static_assert(strlen_c("another\0example") == 7UL, "");
6068
6069 }
6070
6071 namespace test_rvalue_references
6072 {
6073
6074 template < int N >
6075 struct answer
6076 {
6077 static constexpr int value = N;
6078 };
6079
6080 answer<1> f(int&) { return answer<1>(); }
6081 answer<2> f(const int&) { return answer<2>(); }
6082 answer<3> f(int&&) { return answer<3>(); }
6083
6084 void
6085 test()
6086 {
6087 int i = 0;
6088 const int c = 0;
6089 static_assert(decltype(f(i))::value == 1, "");
6090 static_assert(decltype(f(c))::value == 2, "");
6091 static_assert(decltype(f(0))::value == 3, "");
6092 }
6093
6094 }
6095
6096 namespace test_uniform_initialization
6097 {
6098
6099 struct test
6100 {
6101 static const int zero {};
6102 static const int one {1};
6103 };
6104
6105 static_assert(test::zero == 0, "");
6106 static_assert(test::one == 1, "");
6107
6108 }
6109
6110 namespace test_lambdas
6111 {
6112
6113 void
6114 test1()
6115 {
6116 auto lambda1 = [](){};
6117 auto lambda2 = lambda1;
6118 lambda1();
6119 lambda2();
6120 }
6121
6122 int
6123 test2()
6124 {
6125 auto a = [](int i, int j){ return i + j; }(1, 2);
6126 auto b = []() -> int { return '0'; }();
6127 auto c = [=](){ return a + b; }();
6128 auto d = [&](){ return c; }();
6129 auto e = [a, &b](int x) mutable {
6130 const auto identity = [](int y){ return y; };
6131 for (auto i = 0; i < a; ++i)
6132 a += b--;
6133 return x + identity(a + b);
6134 }(0);
6135 return a + b + c + d + e;
6136 }
6137
6138 int
6139 test3()
6140 {
6141 const auto nullary = [](){ return 0; };
6142 const auto unary = [](int x){ return x; };
6143 using nullary_t = decltype(nullary);
6144 using unary_t = decltype(unary);
6145 const auto higher1st = [](nullary_t f){ return f(); };
6146 const auto higher2nd = [unary](nullary_t f1){
6147 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6148 };
6149 return higher1st(nullary) + higher2nd(nullary)(unary);
6150 }
6151
6152 }
6153
6154 namespace test_variadic_templates
6155 {
6156
6157 template <int...>
6158 struct sum;
6159
6160 template <int N0, int... N1toN>
6161 struct sum<N0, N1toN...>
6162 {
6163 static constexpr auto value = N0 + sum<N1toN...>::value;
6164 };
6165
6166 template <>
6167 struct sum<>
6168 {
6169 static constexpr auto value = 0;
6170 };
6171
6172 static_assert(sum<>::value == 0, "");
6173 static_assert(sum<1>::value == 1, "");
6174 static_assert(sum<23>::value == 23, "");
6175 static_assert(sum<1, 2>::value == 3, "");
6176 static_assert(sum<5, 5, 11>::value == 21, "");
6177 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6178
6179 }
6180
6181 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6182 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6183 // because of this.
6184 namespace test_template_alias_sfinae
6185 {
6186
6187 struct foo {};
6188
6189 template<typename T>
6190 using member = typename T::member_type;
6191
6192 template<typename T>
6193 void func(...) {}
6194
6195 template<typename T>
6196 void func(member<T>*) {}
6197
6198 void test();
6199
6200 void test() { func<foo>(0); }
6201
6202 }
6203
6204 } // namespace cxx11
6205
6206 #endif // __cplusplus >= 201103L
6207
6208
6209
6210 _ACEOF
6211 if ac_fn_cxx_try_compile "$LINENO"; then :
6212 ax_cv_cxx_compile_cxx11=yes
6213 else
6214 ax_cv_cxx_compile_cxx11=no
6215 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6219 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6220 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6221 ac_success=yes
6222 fi
6223
6224 if test x$ac_success = xno; then
6225 for alternative in ${ax_cxx_compile_alternatives}; do
6226 switch="-std=gnu++${alternative}"
6227 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6229 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6230 if eval \${$cachevar+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 ac_save_CXX="$CXX"
6234 CXX="$CXX $switch"
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237
6238
6239 // If the compiler admits that it is not ready for C++11, why torture it?
6240 // Hopefully, this will speed up the test.
6241
6242 #ifndef __cplusplus
6243
6244 #error "This is not a C++ compiler"
6245
6246 #elif __cplusplus < 201103L
6247
6248 #error "This is not a C++11 compiler"
6249
6250 #else
6251
6252 namespace cxx11
6253 {
6254
6255 namespace test_static_assert
6256 {
6257
6258 template <typename T>
6259 struct check
6260 {
6261 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6262 };
6263
6264 }
6265
6266 namespace test_final_override
6267 {
6268
6269 struct Base
6270 {
6271 virtual ~Base() {}
6272 virtual void f() {}
6273 };
6274
6275 struct Derived : public Base
6276 {
6277 virtual ~Derived() override {}
6278 virtual void f() override {}
6279 };
6280
6281 }
6282
6283 namespace test_double_right_angle_brackets
6284 {
6285
6286 template < typename T >
6287 struct check {};
6288
6289 typedef check<void> single_type;
6290 typedef check<check<void>> double_type;
6291 typedef check<check<check<void>>> triple_type;
6292 typedef check<check<check<check<void>>>> quadruple_type;
6293
6294 }
6295
6296 namespace test_decltype
6297 {
6298
6299 int
6300 f()
6301 {
6302 int a = 1;
6303 decltype(a) b = 2;
6304 return a + b;
6305 }
6306
6307 }
6308
6309 namespace test_type_deduction
6310 {
6311
6312 template < typename T1, typename T2 >
6313 struct is_same
6314 {
6315 static const bool value = false;
6316 };
6317
6318 template < typename T >
6319 struct is_same<T, T>
6320 {
6321 static const bool value = true;
6322 };
6323
6324 template < typename T1, typename T2 >
6325 auto
6326 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6327 {
6328 return a1 + a2;
6329 }
6330
6331 int
6332 test(const int c, volatile int v)
6333 {
6334 static_assert(is_same<int, decltype(0)>::value == true, "");
6335 static_assert(is_same<int, decltype(c)>::value == false, "");
6336 static_assert(is_same<int, decltype(v)>::value == false, "");
6337 auto ac = c;
6338 auto av = v;
6339 auto sumi = ac + av + 'x';
6340 auto sumf = ac + av + 1.0;
6341 static_assert(is_same<int, decltype(ac)>::value == true, "");
6342 static_assert(is_same<int, decltype(av)>::value == true, "");
6343 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6344 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6345 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6346 return (sumf > 0.0) ? sumi : add(c, v);
6347 }
6348
6349 }
6350
6351 namespace test_noexcept
6352 {
6353
6354 int f() { return 0; }
6355 int g() noexcept { return 0; }
6356
6357 static_assert(noexcept(f()) == false, "");
6358 static_assert(noexcept(g()) == true, "");
6359
6360 }
6361
6362 namespace test_constexpr
6363 {
6364
6365 template < typename CharT >
6366 unsigned long constexpr
6367 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6368 {
6369 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6370 }
6371
6372 template < typename CharT >
6373 unsigned long constexpr
6374 strlen_c(const CharT *const s) noexcept
6375 {
6376 return strlen_c_r(s, 0UL);
6377 }
6378
6379 static_assert(strlen_c("") == 0UL, "");
6380 static_assert(strlen_c("1") == 1UL, "");
6381 static_assert(strlen_c("example") == 7UL, "");
6382 static_assert(strlen_c("another\0example") == 7UL, "");
6383
6384 }
6385
6386 namespace test_rvalue_references
6387 {
6388
6389 template < int N >
6390 struct answer
6391 {
6392 static constexpr int value = N;
6393 };
6394
6395 answer<1> f(int&) { return answer<1>(); }
6396 answer<2> f(const int&) { return answer<2>(); }
6397 answer<3> f(int&&) { return answer<3>(); }
6398
6399 void
6400 test()
6401 {
6402 int i = 0;
6403 const int c = 0;
6404 static_assert(decltype(f(i))::value == 1, "");
6405 static_assert(decltype(f(c))::value == 2, "");
6406 static_assert(decltype(f(0))::value == 3, "");
6407 }
6408
6409 }
6410
6411 namespace test_uniform_initialization
6412 {
6413
6414 struct test
6415 {
6416 static const int zero {};
6417 static const int one {1};
6418 };
6419
6420 static_assert(test::zero == 0, "");
6421 static_assert(test::one == 1, "");
6422
6423 }
6424
6425 namespace test_lambdas
6426 {
6427
6428 void
6429 test1()
6430 {
6431 auto lambda1 = [](){};
6432 auto lambda2 = lambda1;
6433 lambda1();
6434 lambda2();
6435 }
6436
6437 int
6438 test2()
6439 {
6440 auto a = [](int i, int j){ return i + j; }(1, 2);
6441 auto b = []() -> int { return '0'; }();
6442 auto c = [=](){ return a + b; }();
6443 auto d = [&](){ return c; }();
6444 auto e = [a, &b](int x) mutable {
6445 const auto identity = [](int y){ return y; };
6446 for (auto i = 0; i < a; ++i)
6447 a += b--;
6448 return x + identity(a + b);
6449 }(0);
6450 return a + b + c + d + e;
6451 }
6452
6453 int
6454 test3()
6455 {
6456 const auto nullary = [](){ return 0; };
6457 const auto unary = [](int x){ return x; };
6458 using nullary_t = decltype(nullary);
6459 using unary_t = decltype(unary);
6460 const auto higher1st = [](nullary_t f){ return f(); };
6461 const auto higher2nd = [unary](nullary_t f1){
6462 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6463 };
6464 return higher1st(nullary) + higher2nd(nullary)(unary);
6465 }
6466
6467 }
6468
6469 namespace test_variadic_templates
6470 {
6471
6472 template <int...>
6473 struct sum;
6474
6475 template <int N0, int... N1toN>
6476 struct sum<N0, N1toN...>
6477 {
6478 static constexpr auto value = N0 + sum<N1toN...>::value;
6479 };
6480
6481 template <>
6482 struct sum<>
6483 {
6484 static constexpr auto value = 0;
6485 };
6486
6487 static_assert(sum<>::value == 0, "");
6488 static_assert(sum<1>::value == 1, "");
6489 static_assert(sum<23>::value == 23, "");
6490 static_assert(sum<1, 2>::value == 3, "");
6491 static_assert(sum<5, 5, 11>::value == 21, "");
6492 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6493
6494 }
6495
6496 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6497 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6498 // because of this.
6499 namespace test_template_alias_sfinae
6500 {
6501
6502 struct foo {};
6503
6504 template<typename T>
6505 using member = typename T::member_type;
6506
6507 template<typename T>
6508 void func(...) {}
6509
6510 template<typename T>
6511 void func(member<T>*) {}
6512
6513 void test();
6514
6515 void test() { func<foo>(0); }
6516
6517 }
6518
6519 } // namespace cxx11
6520
6521 #endif // __cplusplus >= 201103L
6522
6523
6524
6525 _ACEOF
6526 if ac_fn_cxx_try_compile "$LINENO"; then :
6527 eval $cachevar=yes
6528 else
6529 eval $cachevar=no
6530 fi
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 CXX="$ac_save_CXX"
6533 fi
6534 eval ac_res=\$$cachevar
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6536 $as_echo "$ac_res" >&6; }
6537 if eval test x\$$cachevar = xyes; then
6538 CXX="$CXX $switch"
6539 if test -n "$CXXCPP" ; then
6540 CXXCPP="$CXXCPP $switch"
6541 fi
6542 ac_success=yes
6543 break
6544 fi
6545 done
6546 fi
6547
6548 if test x$ac_success = xno; then
6549 for alternative in ${ax_cxx_compile_alternatives}; do
6550 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6551 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6553 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6554 if eval \${$cachevar+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 ac_save_CXX="$CXX"
6558 CXX="$CXX $switch"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561
6562
6563 // If the compiler admits that it is not ready for C++11, why torture it?
6564 // Hopefully, this will speed up the test.
6565
6566 #ifndef __cplusplus
6567
6568 #error "This is not a C++ compiler"
6569
6570 #elif __cplusplus < 201103L
6571
6572 #error "This is not a C++11 compiler"
6573
6574 #else
6575
6576 namespace cxx11
6577 {
6578
6579 namespace test_static_assert
6580 {
6581
6582 template <typename T>
6583 struct check
6584 {
6585 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6586 };
6587
6588 }
6589
6590 namespace test_final_override
6591 {
6592
6593 struct Base
6594 {
6595 virtual ~Base() {}
6596 virtual void f() {}
6597 };
6598
6599 struct Derived : public Base
6600 {
6601 virtual ~Derived() override {}
6602 virtual void f() override {}
6603 };
6604
6605 }
6606
6607 namespace test_double_right_angle_brackets
6608 {
6609
6610 template < typename T >
6611 struct check {};
6612
6613 typedef check<void> single_type;
6614 typedef check<check<void>> double_type;
6615 typedef check<check<check<void>>> triple_type;
6616 typedef check<check<check<check<void>>>> quadruple_type;
6617
6618 }
6619
6620 namespace test_decltype
6621 {
6622
6623 int
6624 f()
6625 {
6626 int a = 1;
6627 decltype(a) b = 2;
6628 return a + b;
6629 }
6630
6631 }
6632
6633 namespace test_type_deduction
6634 {
6635
6636 template < typename T1, typename T2 >
6637 struct is_same
6638 {
6639 static const bool value = false;
6640 };
6641
6642 template < typename T >
6643 struct is_same<T, T>
6644 {
6645 static const bool value = true;
6646 };
6647
6648 template < typename T1, typename T2 >
6649 auto
6650 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6651 {
6652 return a1 + a2;
6653 }
6654
6655 int
6656 test(const int c, volatile int v)
6657 {
6658 static_assert(is_same<int, decltype(0)>::value == true, "");
6659 static_assert(is_same<int, decltype(c)>::value == false, "");
6660 static_assert(is_same<int, decltype(v)>::value == false, "");
6661 auto ac = c;
6662 auto av = v;
6663 auto sumi = ac + av + 'x';
6664 auto sumf = ac + av + 1.0;
6665 static_assert(is_same<int, decltype(ac)>::value == true, "");
6666 static_assert(is_same<int, decltype(av)>::value == true, "");
6667 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6668 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6669 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6670 return (sumf > 0.0) ? sumi : add(c, v);
6671 }
6672
6673 }
6674
6675 namespace test_noexcept
6676 {
6677
6678 int f() { return 0; }
6679 int g() noexcept { return 0; }
6680
6681 static_assert(noexcept(f()) == false, "");
6682 static_assert(noexcept(g()) == true, "");
6683
6684 }
6685
6686 namespace test_constexpr
6687 {
6688
6689 template < typename CharT >
6690 unsigned long constexpr
6691 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6692 {
6693 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6694 }
6695
6696 template < typename CharT >
6697 unsigned long constexpr
6698 strlen_c(const CharT *const s) noexcept
6699 {
6700 return strlen_c_r(s, 0UL);
6701 }
6702
6703 static_assert(strlen_c("") == 0UL, "");
6704 static_assert(strlen_c("1") == 1UL, "");
6705 static_assert(strlen_c("example") == 7UL, "");
6706 static_assert(strlen_c("another\0example") == 7UL, "");
6707
6708 }
6709
6710 namespace test_rvalue_references
6711 {
6712
6713 template < int N >
6714 struct answer
6715 {
6716 static constexpr int value = N;
6717 };
6718
6719 answer<1> f(int&) { return answer<1>(); }
6720 answer<2> f(const int&) { return answer<2>(); }
6721 answer<3> f(int&&) { return answer<3>(); }
6722
6723 void
6724 test()
6725 {
6726 int i = 0;
6727 const int c = 0;
6728 static_assert(decltype(f(i))::value == 1, "");
6729 static_assert(decltype(f(c))::value == 2, "");
6730 static_assert(decltype(f(0))::value == 3, "");
6731 }
6732
6733 }
6734
6735 namespace test_uniform_initialization
6736 {
6737
6738 struct test
6739 {
6740 static const int zero {};
6741 static const int one {1};
6742 };
6743
6744 static_assert(test::zero == 0, "");
6745 static_assert(test::one == 1, "");
6746
6747 }
6748
6749 namespace test_lambdas
6750 {
6751
6752 void
6753 test1()
6754 {
6755 auto lambda1 = [](){};
6756 auto lambda2 = lambda1;
6757 lambda1();
6758 lambda2();
6759 }
6760
6761 int
6762 test2()
6763 {
6764 auto a = [](int i, int j){ return i + j; }(1, 2);
6765 auto b = []() -> int { return '0'; }();
6766 auto c = [=](){ return a + b; }();
6767 auto d = [&](){ return c; }();
6768 auto e = [a, &b](int x) mutable {
6769 const auto identity = [](int y){ return y; };
6770 for (auto i = 0; i < a; ++i)
6771 a += b--;
6772 return x + identity(a + b);
6773 }(0);
6774 return a + b + c + d + e;
6775 }
6776
6777 int
6778 test3()
6779 {
6780 const auto nullary = [](){ return 0; };
6781 const auto unary = [](int x){ return x; };
6782 using nullary_t = decltype(nullary);
6783 using unary_t = decltype(unary);
6784 const auto higher1st = [](nullary_t f){ return f(); };
6785 const auto higher2nd = [unary](nullary_t f1){
6786 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6787 };
6788 return higher1st(nullary) + higher2nd(nullary)(unary);
6789 }
6790
6791 }
6792
6793 namespace test_variadic_templates
6794 {
6795
6796 template <int...>
6797 struct sum;
6798
6799 template <int N0, int... N1toN>
6800 struct sum<N0, N1toN...>
6801 {
6802 static constexpr auto value = N0 + sum<N1toN...>::value;
6803 };
6804
6805 template <>
6806 struct sum<>
6807 {
6808 static constexpr auto value = 0;
6809 };
6810
6811 static_assert(sum<>::value == 0, "");
6812 static_assert(sum<1>::value == 1, "");
6813 static_assert(sum<23>::value == 23, "");
6814 static_assert(sum<1, 2>::value == 3, "");
6815 static_assert(sum<5, 5, 11>::value == 21, "");
6816 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6817
6818 }
6819
6820 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6821 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6822 // because of this.
6823 namespace test_template_alias_sfinae
6824 {
6825
6826 struct foo {};
6827
6828 template<typename T>
6829 using member = typename T::member_type;
6830
6831 template<typename T>
6832 void func(...) {}
6833
6834 template<typename T>
6835 void func(member<T>*) {}
6836
6837 void test();
6838
6839 void test() { func<foo>(0); }
6840
6841 }
6842
6843 } // namespace cxx11
6844
6845 #endif // __cplusplus >= 201103L
6846
6847
6848
6849 _ACEOF
6850 if ac_fn_cxx_try_compile "$LINENO"; then :
6851 eval $cachevar=yes
6852 else
6853 eval $cachevar=no
6854 fi
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 CXX="$ac_save_CXX"
6857 fi
6858 eval ac_res=\$$cachevar
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6861 if eval test x\$$cachevar = xyes; then
6862 CXX="$CXX $switch"
6863 if test -n "$CXXCPP" ; then
6864 CXXCPP="$CXXCPP $switch"
6865 fi
6866 ac_success=yes
6867 break
6868 fi
6869 done
6870 if test x$ac_success = xyes; then
6871 break
6872 fi
6873 done
6874 fi
6875
6876 ac_ext=c
6877 ac_cpp='$CPP $CPPFLAGS'
6878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881
6882 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6883 if test x$ac_success = xno; then
6884 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6885 fi
6886 fi
6887 if test x$ac_success = xno; then
6888 HAVE_CXX11=0
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6890 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6891 else
6892 HAVE_CXX11=1
6893
6894 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6895
6896 fi
6897
6898
6899
6900 if test "${build}" != "${host}"; then
6901 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6902 ac_ext=cpp
6903 ac_cpp='$CXXCPP $CPPFLAGS'
6904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6907 ac_success=no
6908 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6909 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6910 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6911 CXX="$CXX_FOR_BUILD"
6912 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6913 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6915 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6916 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921
6922
6923 // If the compiler admits that it is not ready for C++11, why torture it?
6924 // Hopefully, this will speed up the test.
6925
6926 #ifndef __cplusplus
6927
6928 #error "This is not a C++ compiler"
6929
6930 #elif __cplusplus < 201103L
6931
6932 #error "This is not a C++11 compiler"
6933
6934 #else
6935
6936 namespace cxx11
6937 {
6938
6939 namespace test_static_assert
6940 {
6941
6942 template <typename T>
6943 struct check
6944 {
6945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6946 };
6947
6948 }
6949
6950 namespace test_final_override
6951 {
6952
6953 struct Base
6954 {
6955 virtual ~Base() {}
6956 virtual void f() {}
6957 };
6958
6959 struct Derived : public Base
6960 {
6961 virtual ~Derived() override {}
6962 virtual void f() override {}
6963 };
6964
6965 }
6966
6967 namespace test_double_right_angle_brackets
6968 {
6969
6970 template < typename T >
6971 struct check {};
6972
6973 typedef check<void> single_type;
6974 typedef check<check<void>> double_type;
6975 typedef check<check<check<void>>> triple_type;
6976 typedef check<check<check<check<void>>>> quadruple_type;
6977
6978 }
6979
6980 namespace test_decltype
6981 {
6982
6983 int
6984 f()
6985 {
6986 int a = 1;
6987 decltype(a) b = 2;
6988 return a + b;
6989 }
6990
6991 }
6992
6993 namespace test_type_deduction
6994 {
6995
6996 template < typename T1, typename T2 >
6997 struct is_same
6998 {
6999 static const bool value = false;
7000 };
7001
7002 template < typename T >
7003 struct is_same<T, T>
7004 {
7005 static const bool value = true;
7006 };
7007
7008 template < typename T1, typename T2 >
7009 auto
7010 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7011 {
7012 return a1 + a2;
7013 }
7014
7015 int
7016 test(const int c, volatile int v)
7017 {
7018 static_assert(is_same<int, decltype(0)>::value == true, "");
7019 static_assert(is_same<int, decltype(c)>::value == false, "");
7020 static_assert(is_same<int, decltype(v)>::value == false, "");
7021 auto ac = c;
7022 auto av = v;
7023 auto sumi = ac + av + 'x';
7024 auto sumf = ac + av + 1.0;
7025 static_assert(is_same<int, decltype(ac)>::value == true, "");
7026 static_assert(is_same<int, decltype(av)>::value == true, "");
7027 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7028 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7029 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7030 return (sumf > 0.0) ? sumi : add(c, v);
7031 }
7032
7033 }
7034
7035 namespace test_noexcept
7036 {
7037
7038 int f() { return 0; }
7039 int g() noexcept { return 0; }
7040
7041 static_assert(noexcept(f()) == false, "");
7042 static_assert(noexcept(g()) == true, "");
7043
7044 }
7045
7046 namespace test_constexpr
7047 {
7048
7049 template < typename CharT >
7050 unsigned long constexpr
7051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7052 {
7053 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7054 }
7055
7056 template < typename CharT >
7057 unsigned long constexpr
7058 strlen_c(const CharT *const s) noexcept
7059 {
7060 return strlen_c_r(s, 0UL);
7061 }
7062
7063 static_assert(strlen_c("") == 0UL, "");
7064 static_assert(strlen_c("1") == 1UL, "");
7065 static_assert(strlen_c("example") == 7UL, "");
7066 static_assert(strlen_c("another\0example") == 7UL, "");
7067
7068 }
7069
7070 namespace test_rvalue_references
7071 {
7072
7073 template < int N >
7074 struct answer
7075 {
7076 static constexpr int value = N;
7077 };
7078
7079 answer<1> f(int&) { return answer<1>(); }
7080 answer<2> f(const int&) { return answer<2>(); }
7081 answer<3> f(int&&) { return answer<3>(); }
7082
7083 void
7084 test()
7085 {
7086 int i = 0;
7087 const int c = 0;
7088 static_assert(decltype(f(i))::value == 1, "");
7089 static_assert(decltype(f(c))::value == 2, "");
7090 static_assert(decltype(f(0))::value == 3, "");
7091 }
7092
7093 }
7094
7095 namespace test_uniform_initialization
7096 {
7097
7098 struct test
7099 {
7100 static const int zero {};
7101 static const int one {1};
7102 };
7103
7104 static_assert(test::zero == 0, "");
7105 static_assert(test::one == 1, "");
7106
7107 }
7108
7109 namespace test_lambdas
7110 {
7111
7112 void
7113 test1()
7114 {
7115 auto lambda1 = [](){};
7116 auto lambda2 = lambda1;
7117 lambda1();
7118 lambda2();
7119 }
7120
7121 int
7122 test2()
7123 {
7124 auto a = [](int i, int j){ return i + j; }(1, 2);
7125 auto b = []() -> int { return '0'; }();
7126 auto c = [=](){ return a + b; }();
7127 auto d = [&](){ return c; }();
7128 auto e = [a, &b](int x) mutable {
7129 const auto identity = [](int y){ return y; };
7130 for (auto i = 0; i < a; ++i)
7131 a += b--;
7132 return x + identity(a + b);
7133 }(0);
7134 return a + b + c + d + e;
7135 }
7136
7137 int
7138 test3()
7139 {
7140 const auto nullary = [](){ return 0; };
7141 const auto unary = [](int x){ return x; };
7142 using nullary_t = decltype(nullary);
7143 using unary_t = decltype(unary);
7144 const auto higher1st = [](nullary_t f){ return f(); };
7145 const auto higher2nd = [unary](nullary_t f1){
7146 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7147 };
7148 return higher1st(nullary) + higher2nd(nullary)(unary);
7149 }
7150
7151 }
7152
7153 namespace test_variadic_templates
7154 {
7155
7156 template <int...>
7157 struct sum;
7158
7159 template <int N0, int... N1toN>
7160 struct sum<N0, N1toN...>
7161 {
7162 static constexpr auto value = N0 + sum<N1toN...>::value;
7163 };
7164
7165 template <>
7166 struct sum<>
7167 {
7168 static constexpr auto value = 0;
7169 };
7170
7171 static_assert(sum<>::value == 0, "");
7172 static_assert(sum<1>::value == 1, "");
7173 static_assert(sum<23>::value == 23, "");
7174 static_assert(sum<1, 2>::value == 3, "");
7175 static_assert(sum<5, 5, 11>::value == 21, "");
7176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7177
7178 }
7179
7180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7182 // because of this.
7183 namespace test_template_alias_sfinae
7184 {
7185
7186 struct foo {};
7187
7188 template<typename T>
7189 using member = typename T::member_type;
7190
7191 template<typename T>
7192 void func(...) {}
7193
7194 template<typename T>
7195 void func(member<T>*) {}
7196
7197 void test();
7198
7199 void test() { func<foo>(0); }
7200
7201 }
7202
7203 } // namespace cxx11
7204
7205 #endif // __cplusplus >= 201103L
7206
7207
7208
7209 _ACEOF
7210 if ac_fn_cxx_try_compile "$LINENO"; then :
7211 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7212 else
7213 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 fi
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7218 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7219 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7220 ac_success=yes
7221 fi
7222
7223 if test x$ac_success = xno; then
7224 for alternative in ${ax_cxx_compile_alternatives}; do
7225 switch="-std=gnu++${alternative}"
7226 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7228 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7229 if eval \${$cachevar+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 ac_save_CXX="$CXX"
7233 CXX="$CXX $switch"
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236
7237
7238 // If the compiler admits that it is not ready for C++11, why torture it?
7239 // Hopefully, this will speed up the test.
7240
7241 #ifndef __cplusplus
7242
7243 #error "This is not a C++ compiler"
7244
7245 #elif __cplusplus < 201103L
7246
7247 #error "This is not a C++11 compiler"
7248
7249 #else
7250
7251 namespace cxx11
7252 {
7253
7254 namespace test_static_assert
7255 {
7256
7257 template <typename T>
7258 struct check
7259 {
7260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7261 };
7262
7263 }
7264
7265 namespace test_final_override
7266 {
7267
7268 struct Base
7269 {
7270 virtual ~Base() {}
7271 virtual void f() {}
7272 };
7273
7274 struct Derived : public Base
7275 {
7276 virtual ~Derived() override {}
7277 virtual void f() override {}
7278 };
7279
7280 }
7281
7282 namespace test_double_right_angle_brackets
7283 {
7284
7285 template < typename T >
7286 struct check {};
7287
7288 typedef check<void> single_type;
7289 typedef check<check<void>> double_type;
7290 typedef check<check<check<void>>> triple_type;
7291 typedef check<check<check<check<void>>>> quadruple_type;
7292
7293 }
7294
7295 namespace test_decltype
7296 {
7297
7298 int
7299 f()
7300 {
7301 int a = 1;
7302 decltype(a) b = 2;
7303 return a + b;
7304 }
7305
7306 }
7307
7308 namespace test_type_deduction
7309 {
7310
7311 template < typename T1, typename T2 >
7312 struct is_same
7313 {
7314 static const bool value = false;
7315 };
7316
7317 template < typename T >
7318 struct is_same<T, T>
7319 {
7320 static const bool value = true;
7321 };
7322
7323 template < typename T1, typename T2 >
7324 auto
7325 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7326 {
7327 return a1 + a2;
7328 }
7329
7330 int
7331 test(const int c, volatile int v)
7332 {
7333 static_assert(is_same<int, decltype(0)>::value == true, "");
7334 static_assert(is_same<int, decltype(c)>::value == false, "");
7335 static_assert(is_same<int, decltype(v)>::value == false, "");
7336 auto ac = c;
7337 auto av = v;
7338 auto sumi = ac + av + 'x';
7339 auto sumf = ac + av + 1.0;
7340 static_assert(is_same<int, decltype(ac)>::value == true, "");
7341 static_assert(is_same<int, decltype(av)>::value == true, "");
7342 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7343 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7344 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7345 return (sumf > 0.0) ? sumi : add(c, v);
7346 }
7347
7348 }
7349
7350 namespace test_noexcept
7351 {
7352
7353 int f() { return 0; }
7354 int g() noexcept { return 0; }
7355
7356 static_assert(noexcept(f()) == false, "");
7357 static_assert(noexcept(g()) == true, "");
7358
7359 }
7360
7361 namespace test_constexpr
7362 {
7363
7364 template < typename CharT >
7365 unsigned long constexpr
7366 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7367 {
7368 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7369 }
7370
7371 template < typename CharT >
7372 unsigned long constexpr
7373 strlen_c(const CharT *const s) noexcept
7374 {
7375 return strlen_c_r(s, 0UL);
7376 }
7377
7378 static_assert(strlen_c("") == 0UL, "");
7379 static_assert(strlen_c("1") == 1UL, "");
7380 static_assert(strlen_c("example") == 7UL, "");
7381 static_assert(strlen_c("another\0example") == 7UL, "");
7382
7383 }
7384
7385 namespace test_rvalue_references
7386 {
7387
7388 template < int N >
7389 struct answer
7390 {
7391 static constexpr int value = N;
7392 };
7393
7394 answer<1> f(int&) { return answer<1>(); }
7395 answer<2> f(const int&) { return answer<2>(); }
7396 answer<3> f(int&&) { return answer<3>(); }
7397
7398 void
7399 test()
7400 {
7401 int i = 0;
7402 const int c = 0;
7403 static_assert(decltype(f(i))::value == 1, "");
7404 static_assert(decltype(f(c))::value == 2, "");
7405 static_assert(decltype(f(0))::value == 3, "");
7406 }
7407
7408 }
7409
7410 namespace test_uniform_initialization
7411 {
7412
7413 struct test
7414 {
7415 static const int zero {};
7416 static const int one {1};
7417 };
7418
7419 static_assert(test::zero == 0, "");
7420 static_assert(test::one == 1, "");
7421
7422 }
7423
7424 namespace test_lambdas
7425 {
7426
7427 void
7428 test1()
7429 {
7430 auto lambda1 = [](){};
7431 auto lambda2 = lambda1;
7432 lambda1();
7433 lambda2();
7434 }
7435
7436 int
7437 test2()
7438 {
7439 auto a = [](int i, int j){ return i + j; }(1, 2);
7440 auto b = []() -> int { return '0'; }();
7441 auto c = [=](){ return a + b; }();
7442 auto d = [&](){ return c; }();
7443 auto e = [a, &b](int x) mutable {
7444 const auto identity = [](int y){ return y; };
7445 for (auto i = 0; i < a; ++i)
7446 a += b--;
7447 return x + identity(a + b);
7448 }(0);
7449 return a + b + c + d + e;
7450 }
7451
7452 int
7453 test3()
7454 {
7455 const auto nullary = [](){ return 0; };
7456 const auto unary = [](int x){ return x; };
7457 using nullary_t = decltype(nullary);
7458 using unary_t = decltype(unary);
7459 const auto higher1st = [](nullary_t f){ return f(); };
7460 const auto higher2nd = [unary](nullary_t f1){
7461 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7462 };
7463 return higher1st(nullary) + higher2nd(nullary)(unary);
7464 }
7465
7466 }
7467
7468 namespace test_variadic_templates
7469 {
7470
7471 template <int...>
7472 struct sum;
7473
7474 template <int N0, int... N1toN>
7475 struct sum<N0, N1toN...>
7476 {
7477 static constexpr auto value = N0 + sum<N1toN...>::value;
7478 };
7479
7480 template <>
7481 struct sum<>
7482 {
7483 static constexpr auto value = 0;
7484 };
7485
7486 static_assert(sum<>::value == 0, "");
7487 static_assert(sum<1>::value == 1, "");
7488 static_assert(sum<23>::value == 23, "");
7489 static_assert(sum<1, 2>::value == 3, "");
7490 static_assert(sum<5, 5, 11>::value == 21, "");
7491 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7492
7493 }
7494
7495 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7496 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7497 // because of this.
7498 namespace test_template_alias_sfinae
7499 {
7500
7501 struct foo {};
7502
7503 template<typename T>
7504 using member = typename T::member_type;
7505
7506 template<typename T>
7507 void func(...) {}
7508
7509 template<typename T>
7510 void func(member<T>*) {}
7511
7512 void test();
7513
7514 void test() { func<foo>(0); }
7515
7516 }
7517
7518 } // namespace cxx11
7519
7520 #endif // __cplusplus >= 201103L
7521
7522
7523
7524 _ACEOF
7525 if ac_fn_cxx_try_compile "$LINENO"; then :
7526 eval $cachevar=yes
7527 else
7528 eval $cachevar=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 CXX="$ac_save_CXX"
7532 fi
7533 eval ac_res=\$$cachevar
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7535 $as_echo "$ac_res" >&6; }
7536 if eval test x\$$cachevar = xyes; then
7537 CXX="$CXX $switch"
7538 if test -n "$CXXCPP" ; then
7539 CXXCPP="$CXXCPP $switch"
7540 fi
7541 ac_success=yes
7542 break
7543 fi
7544 done
7545 fi
7546
7547 if test x$ac_success = xno; then
7548 for alternative in ${ax_cxx_compile_alternatives}; do
7549 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7550 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7552 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7553 if eval \${$cachevar+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 ac_save_CXX="$CXX"
7557 CXX="$CXX $switch"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560
7561
7562 // If the compiler admits that it is not ready for C++11, why torture it?
7563 // Hopefully, this will speed up the test.
7564
7565 #ifndef __cplusplus
7566
7567 #error "This is not a C++ compiler"
7568
7569 #elif __cplusplus < 201103L
7570
7571 #error "This is not a C++11 compiler"
7572
7573 #else
7574
7575 namespace cxx11
7576 {
7577
7578 namespace test_static_assert
7579 {
7580
7581 template <typename T>
7582 struct check
7583 {
7584 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7585 };
7586
7587 }
7588
7589 namespace test_final_override
7590 {
7591
7592 struct Base
7593 {
7594 virtual ~Base() {}
7595 virtual void f() {}
7596 };
7597
7598 struct Derived : public Base
7599 {
7600 virtual ~Derived() override {}
7601 virtual void f() override {}
7602 };
7603
7604 }
7605
7606 namespace test_double_right_angle_brackets
7607 {
7608
7609 template < typename T >
7610 struct check {};
7611
7612 typedef check<void> single_type;
7613 typedef check<check<void>> double_type;
7614 typedef check<check<check<void>>> triple_type;
7615 typedef check<check<check<check<void>>>> quadruple_type;
7616
7617 }
7618
7619 namespace test_decltype
7620 {
7621
7622 int
7623 f()
7624 {
7625 int a = 1;
7626 decltype(a) b = 2;
7627 return a + b;
7628 }
7629
7630 }
7631
7632 namespace test_type_deduction
7633 {
7634
7635 template < typename T1, typename T2 >
7636 struct is_same
7637 {
7638 static const bool value = false;
7639 };
7640
7641 template < typename T >
7642 struct is_same<T, T>
7643 {
7644 static const bool value = true;
7645 };
7646
7647 template < typename T1, typename T2 >
7648 auto
7649 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7650 {
7651 return a1 + a2;
7652 }
7653
7654 int
7655 test(const int c, volatile int v)
7656 {
7657 static_assert(is_same<int, decltype(0)>::value == true, "");
7658 static_assert(is_same<int, decltype(c)>::value == false, "");
7659 static_assert(is_same<int, decltype(v)>::value == false, "");
7660 auto ac = c;
7661 auto av = v;
7662 auto sumi = ac + av + 'x';
7663 auto sumf = ac + av + 1.0;
7664 static_assert(is_same<int, decltype(ac)>::value == true, "");
7665 static_assert(is_same<int, decltype(av)>::value == true, "");
7666 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7667 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7668 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7669 return (sumf > 0.0) ? sumi : add(c, v);
7670 }
7671
7672 }
7673
7674 namespace test_noexcept
7675 {
7676
7677 int f() { return 0; }
7678 int g() noexcept { return 0; }
7679
7680 static_assert(noexcept(f()) == false, "");
7681 static_assert(noexcept(g()) == true, "");
7682
7683 }
7684
7685 namespace test_constexpr
7686 {
7687
7688 template < typename CharT >
7689 unsigned long constexpr
7690 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7691 {
7692 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7693 }
7694
7695 template < typename CharT >
7696 unsigned long constexpr
7697 strlen_c(const CharT *const s) noexcept
7698 {
7699 return strlen_c_r(s, 0UL);
7700 }
7701
7702 static_assert(strlen_c("") == 0UL, "");
7703 static_assert(strlen_c("1") == 1UL, "");
7704 static_assert(strlen_c("example") == 7UL, "");
7705 static_assert(strlen_c("another\0example") == 7UL, "");
7706
7707 }
7708
7709 namespace test_rvalue_references
7710 {
7711
7712 template < int N >
7713 struct answer
7714 {
7715 static constexpr int value = N;
7716 };
7717
7718 answer<1> f(int&) { return answer<1>(); }
7719 answer<2> f(const int&) { return answer<2>(); }
7720 answer<3> f(int&&) { return answer<3>(); }
7721
7722 void
7723 test()
7724 {
7725 int i = 0;
7726 const int c = 0;
7727 static_assert(decltype(f(i))::value == 1, "");
7728 static_assert(decltype(f(c))::value == 2, "");
7729 static_assert(decltype(f(0))::value == 3, "");
7730 }
7731
7732 }
7733
7734 namespace test_uniform_initialization
7735 {
7736
7737 struct test
7738 {
7739 static const int zero {};
7740 static const int one {1};
7741 };
7742
7743 static_assert(test::zero == 0, "");
7744 static_assert(test::one == 1, "");
7745
7746 }
7747
7748 namespace test_lambdas
7749 {
7750
7751 void
7752 test1()
7753 {
7754 auto lambda1 = [](){};
7755 auto lambda2 = lambda1;
7756 lambda1();
7757 lambda2();
7758 }
7759
7760 int
7761 test2()
7762 {
7763 auto a = [](int i, int j){ return i + j; }(1, 2);
7764 auto b = []() -> int { return '0'; }();
7765 auto c = [=](){ return a + b; }();
7766 auto d = [&](){ return c; }();
7767 auto e = [a, &b](int x) mutable {
7768 const auto identity = [](int y){ return y; };
7769 for (auto i = 0; i < a; ++i)
7770 a += b--;
7771 return x + identity(a + b);
7772 }(0);
7773 return a + b + c + d + e;
7774 }
7775
7776 int
7777 test3()
7778 {
7779 const auto nullary = [](){ return 0; };
7780 const auto unary = [](int x){ return x; };
7781 using nullary_t = decltype(nullary);
7782 using unary_t = decltype(unary);
7783 const auto higher1st = [](nullary_t f){ return f(); };
7784 const auto higher2nd = [unary](nullary_t f1){
7785 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7786 };
7787 return higher1st(nullary) + higher2nd(nullary)(unary);
7788 }
7789
7790 }
7791
7792 namespace test_variadic_templates
7793 {
7794
7795 template <int...>
7796 struct sum;
7797
7798 template <int N0, int... N1toN>
7799 struct sum<N0, N1toN...>
7800 {
7801 static constexpr auto value = N0 + sum<N1toN...>::value;
7802 };
7803
7804 template <>
7805 struct sum<>
7806 {
7807 static constexpr auto value = 0;
7808 };
7809
7810 static_assert(sum<>::value == 0, "");
7811 static_assert(sum<1>::value == 1, "");
7812 static_assert(sum<23>::value == 23, "");
7813 static_assert(sum<1, 2>::value == 3, "");
7814 static_assert(sum<5, 5, 11>::value == 21, "");
7815 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7816
7817 }
7818
7819 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7820 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7821 // because of this.
7822 namespace test_template_alias_sfinae
7823 {
7824
7825 struct foo {};
7826
7827 template<typename T>
7828 using member = typename T::member_type;
7829
7830 template<typename T>
7831 void func(...) {}
7832
7833 template<typename T>
7834 void func(member<T>*) {}
7835
7836 void test();
7837
7838 void test() { func<foo>(0); }
7839
7840 }
7841
7842 } // namespace cxx11
7843
7844 #endif // __cplusplus >= 201103L
7845
7846
7847
7848 _ACEOF
7849 if ac_fn_cxx_try_compile "$LINENO"; then :
7850 eval $cachevar=yes
7851 else
7852 eval $cachevar=no
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 CXX="$ac_save_CXX"
7856 fi
7857 eval ac_res=\$$cachevar
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7859 $as_echo "$ac_res" >&6; }
7860 if eval test x\$$cachevar = xyes; then
7861 CXX="$CXX $switch"
7862 if test -n "$CXXCPP" ; then
7863 CXXCPP="$CXXCPP $switch"
7864 fi
7865 ac_success=yes
7866 break
7867 fi
7868 done
7869 if test x$ac_success = xyes; then
7870 break
7871 fi
7872 done
7873 fi
7874 CXX_FOR_BUILD="$CXX"
7875 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7876 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7877 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7878 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7879 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7880 ac_ext=c
7881 ac_cpp='$CPP $CPPFLAGS'
7882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885
7886 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7887 if test x$ac_success = xno; then
7888 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7889 fi
7890 fi
7891 if test x$ac_success = xno; then
7892 HAVE_CXX11_FOR_BUILD=0
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7894 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7895 else
7896 HAVE_CXX11_FOR_BUILD=1
7897
7898 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7899
7900 fi
7901
7902
7903 fi
7904 fi
7905
7906 # Check whether --enable-pgo-build was given.
7907 if test "${enable_pgo_build+set}" = set; then :
7908 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7909 else
7910 enable_pgo_build=no
7911 fi
7912
7913
7914 # Issue errors and warnings for invalid/strange PGO build combinations.
7915 case "$have_compiler:$host:$target:$enable_pgo_build" in
7916 *:*:*:no) ;;
7917
7918 # Allow the PGO build only if we aren't building a compiler and
7919 # we are in a native configuration.
7920 no:$build:$build:yes | no:$build:$build:lto) ;;
7921
7922 # Disallow the PGO bootstrap if we are building a compiler.
7923 yes:*:*:yes | yes:*:*:lto)
7924 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7925
7926 *)
7927 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7928 ;;
7929 esac
7930
7931 if test "$enable_pgo_build" != "no"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7933 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7934 old_CFLAGS="$CFLAGS"
7935 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7936 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7937
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 int foo;
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943
7944 else
7945 PGO_BUILD_GEN_CFLAGS=
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 CFLAGS="$old_CFLAGS"
7949 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7952 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7957 fi
7958
7959 if test "$enable_pgo_build" = "lto"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7961 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7962 old_CFLAGS="$CFLAGS"
7963 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7964 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 int foo;
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"; then :
7970
7971 else
7972 PGO_BUILD_LTO_CFLAGS=
7973 fi
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 CFLAGS="$old_CFLAGS"
7976 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7983 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7984 fi
7985 fi
7986 fi
7987
7988
7989
7990
7991 # Used for setting $lt_cv_objdir
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7993 $as_echo_n "checking for objdir... " >&6; }
7994 if ${lt_cv_objdir+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 rm -f .libs 2>/dev/null
7998 mkdir .libs 2>/dev/null
7999 if test -d .libs; then
8000 lt_cv_objdir=.libs
8001 else
8002 # MS-DOS does not allow filenames that begin with a dot.
8003 lt_cv_objdir=_libs
8004 fi
8005 rmdir .libs 2>/dev/null
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8008 $as_echo "$lt_cv_objdir" >&6; }
8009 objdir=$lt_cv_objdir
8010
8011
8012
8013
8014
8015 cat >>confdefs.h <<_ACEOF
8016 #define LT_OBJDIR "$lt_cv_objdir/"
8017 _ACEOF
8018
8019
8020
8021 # Check for GMP, MPFR and MPC
8022 gmplibs="-lmpc -lmpfr -lgmp"
8023 gmpinc=
8024 have_gmp=no
8025
8026 # Specify a location for mpc
8027 # check for this first so it ends up on the link line before mpfr.
8028
8029 # Check whether --with-mpc was given.
8030 if test "${with_mpc+set}" = set; then :
8031 withval=$with_mpc;
8032 fi
8033
8034
8035 # Check whether --with-mpc-include was given.
8036 if test "${with_mpc_include+set}" = set; then :
8037 withval=$with_mpc_include;
8038 fi
8039
8040
8041 # Check whether --with-mpc-lib was given.
8042 if test "${with_mpc_lib+set}" = set; then :
8043 withval=$with_mpc_lib;
8044 fi
8045
8046
8047 if test "x$with_mpc" != x; then
8048 gmplibs="-L$with_mpc/lib $gmplibs"
8049 gmpinc="-I$with_mpc/include $gmpinc"
8050 fi
8051 if test "x$with_mpc_include" != x; then
8052 gmpinc="-I$with_mpc_include $gmpinc"
8053 fi
8054 if test "x$with_mpc_lib" != x; then
8055 gmplibs="-L$with_mpc_lib $gmplibs"
8056 fi
8057 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8058 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8059 gmpinc='-I$$s/mpc/src '"$gmpinc"
8060 # Do not test the mpc version. Assume that it is sufficient, since
8061 # it is in the source tree, and the library has not been built yet
8062 # but it would be included on the link line in the version check below
8063 # hence making the test fail.
8064 have_gmp=yes
8065 fi
8066
8067 # Specify a location for mpfr
8068 # check for this first so it ends up on the link line before gmp.
8069
8070 # Check whether --with-mpfr was given.
8071 if test "${with_mpfr+set}" = set; then :
8072 withval=$with_mpfr;
8073 fi
8074
8075
8076 # Check whether --with-mpfr-include was given.
8077 if test "${with_mpfr_include+set}" = set; then :
8078 withval=$with_mpfr_include;
8079 fi
8080
8081
8082 # Check whether --with-mpfr-lib was given.
8083 if test "${with_mpfr_lib+set}" = set; then :
8084 withval=$with_mpfr_lib;
8085 fi
8086
8087
8088 if test "x$with_mpfr" != x; then
8089 gmplibs="-L$with_mpfr/lib $gmplibs"
8090 gmpinc="-I$with_mpfr/include $gmpinc"
8091 fi
8092 if test "x$with_mpfr_include" != x; then
8093 gmpinc="-I$with_mpfr_include $gmpinc"
8094 fi
8095 if test "x$with_mpfr_lib" != x; then
8096 gmplibs="-L$with_mpfr_lib $gmplibs"
8097 fi
8098 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8099 # MPFR v3.1.0 moved the sources into a src sub-directory.
8100 if ! test -d ${srcdir}/mpfr/src; then
8101 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8102 fi
8103 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8104 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8105 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8106 # Do not test the mpfr version. Assume that it is sufficient, since
8107 # it is in the source tree, and the library has not been built yet
8108 # but it would be included on the link line in the version check below
8109 # hence making the test fail.
8110 have_gmp=yes
8111 fi
8112
8113 # Specify a location for gmp
8114
8115 # Check whether --with-gmp was given.
8116 if test "${with_gmp+set}" = set; then :
8117 withval=$with_gmp;
8118 fi
8119
8120
8121 # Check whether --with-gmp-include was given.
8122 if test "${with_gmp_include+set}" = set; then :
8123 withval=$with_gmp_include;
8124 fi
8125
8126
8127 # Check whether --with-gmp-lib was given.
8128 if test "${with_gmp_lib+set}" = set; then :
8129 withval=$with_gmp_lib;
8130 fi
8131
8132
8133
8134 if test "x$with_gmp" != x; then
8135 gmplibs="-L$with_gmp/lib $gmplibs"
8136 gmpinc="-I$with_gmp/include $gmpinc"
8137 fi
8138 if test "x$with_gmp_include" != x; then
8139 gmpinc="-I$with_gmp_include $gmpinc"
8140 fi
8141 if test "x$with_gmp_lib" != x; then
8142 gmplibs="-L$with_gmp_lib $gmplibs"
8143 fi
8144 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8145 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8146 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8147 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8148 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8149 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8150 # Do not test the gmp version. Assume that it is sufficient, since
8151 # it is in the source tree, and the library has not been built yet
8152 # but it would be included on the link line in the version check below
8153 # hence making the test fail.
8154 have_gmp=yes
8155 fi
8156
8157 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8158 have_gmp=yes
8159 saved_CFLAGS="$CFLAGS"
8160 CFLAGS="$CFLAGS $gmpinc"
8161 # Check for the recommended and required versions of GMP.
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8163 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include "gmp.h"
8167 int
8168 main ()
8169 {
8170
8171 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8172 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8173 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8174 choke me
8175 #endif
8176
8177 ;
8178 return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <gmp.h>
8185 int
8186 main ()
8187 {
8188
8189 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8190 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8191 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8192 choke me
8193 #endif
8194
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8201 $as_echo "yes" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8204 $as_echo "buggy but acceptable" >&6; }
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }; have_gmp=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212
8213 # If we have GMP, check the MPFR version.
8214 if test x"$have_gmp" = xyes; then
8215 # Check for the recommended and required versions of MPFR.
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8217 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <gmp.h>
8221 #include <mpfr.h>
8222 int
8223 main ()
8224 {
8225
8226 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8227 choke me
8228 #endif
8229
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <gmp.h>
8238 #include <mpfr.h>
8239 int
8240 main ()
8241 {
8242
8243 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8244 choke me
8245 #endif
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8256 $as_echo "buggy but acceptable" >&6; }
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }; have_gmp=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 fi
8265
8266 # Check for the MPC header version.
8267 if test x"$have_gmp" = xyes ; then
8268 # Check for the recommended and required versions of MPC.
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8270 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <mpc.h>
8274 int
8275 main ()
8276 {
8277
8278 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8279 choke me
8280 #endif
8281
8282 ;
8283 return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #include <mpc.h>
8290 int
8291 main ()
8292 {
8293
8294 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8295 choke me
8296 #endif
8297
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304 $as_echo "yes" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8307 $as_echo "buggy but acceptable" >&6; }
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }; have_gmp=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316
8317 # Now check the MPFR library.
8318 if test x"$have_gmp" = xyes; then
8319 saved_LIBS="$LIBS"
8320 LIBS="$LIBS $gmplibs"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8322 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #include <mpc.h>
8326 int
8327 main ()
8328 {
8329
8330 mpfr_t n;
8331 mpfr_t x;
8332 mpc_t c;
8333 int t;
8334 mpfr_init (n);
8335 mpfr_init (x);
8336 mpfr_atan2 (n, n, x, MPFR_RNDN);
8337 mpfr_erfc (n, x, MPFR_RNDN);
8338 mpfr_subnormalize (x, t, MPFR_RNDN);
8339 mpfr_clear(n);
8340 mpfr_clear(x);
8341 mpc_init2 (c, 53);
8342 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8343 mpc_cosh (c, c, MPC_RNDNN);
8344 mpc_pow (c, c, c, MPC_RNDNN);
8345 mpc_acosh (c, c, MPC_RNDNN);
8346 mpc_clear (c);
8347
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8354 $as_echo "yes" >&6; }
8355 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }; have_gmp=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 LIBS="$saved_LIBS"
8362 fi
8363
8364 CFLAGS="$saved_CFLAGS"
8365
8366 # The library versions listed in the error message below should match
8367 # the HARD-minimums enforced above.
8368 if test x$have_gmp != xyes; then
8369 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8370 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8371 their locations. Source code for these libraries can be found at
8372 their respective hosting sites as well as at
8373 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8374 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8375 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8376 make sure that you have installed both the libraries and the header
8377 files. They may be located in separate packages." "$LINENO" 5
8378 fi
8379 fi
8380
8381 # Flags needed for both GMP, MPFR and/or MPC.
8382
8383
8384
8385
8386
8387
8388
8389 # Libraries to use for stage1 or when not bootstrapping.
8390
8391 # Check whether --with-stage1-libs was given.
8392 if test "${with_stage1_libs+set}" = set; then :
8393 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8394 stage1_libs=
8395 else
8396 stage1_libs=$withval
8397 fi
8398 else
8399 stage1_libs=
8400 fi
8401
8402
8403
8404 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8405 # default is yes if gcc is being built; no otherwise. The reason for
8406 # this default is that gdb is sometimes linked against GNU Source
8407 # Highlight, which is a shared library that uses C++ exceptions. In
8408 # this case, -static-libstdc++ will cause crashes.
8409
8410 # Check whether --with-static-standard-libraries was given.
8411 if test "${with_static_standard_libraries+set}" = set; then :
8412 withval=$with_static_standard_libraries;
8413 else
8414 with_static_standard_libraries=auto
8415 fi
8416
8417 if test "$with_static_standard_libraries" = auto; then
8418 with_static_standard_libraries=$have_compiler
8419 fi
8420
8421 # Linker flags to use for stage1 or when not bootstrapping.
8422
8423 # Check whether --with-stage1-ldflags was given.
8424 if test "${with_stage1_ldflags+set}" = set; then :
8425 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8426 stage1_ldflags=
8427 else
8428 stage1_ldflags=$withval
8429 fi
8430 else
8431 stage1_ldflags=
8432 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8433 # if supported. But if the user explicitly specified the libraries to use,
8434 # trust that they are doing what they want.
8435 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8436 -a "$have_static_libs" = yes; then
8437 stage1_ldflags="-static-libstdc++ -static-libgcc"
8438 fi
8439 fi
8440
8441
8442
8443 # Libraries to use for stage2 and later builds.
8444
8445 # Check whether --with-boot-libs was given.
8446 if test "${with_boot_libs+set}" = set; then :
8447 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8448 poststage1_libs=
8449 else
8450 poststage1_libs=$withval
8451 fi
8452 else
8453 poststage1_libs=
8454 fi
8455
8456
8457
8458 # Linker flags to use for stage2 and later builds.
8459
8460 # Check whether --with-boot-ldflags was given.
8461 if test "${with_boot_ldflags+set}" = set; then :
8462 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8463 poststage1_ldflags=
8464 else
8465 poststage1_ldflags=$withval
8466 fi
8467 else
8468 poststage1_ldflags=
8469 # In stages 2 and 3, default to linking libstdc++ and libgcc
8470 # statically. But if the user explicitly specified the libraries to
8471 # use, trust that they are doing what they want.
8472 if test "$poststage1_libs" = ""; then
8473 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8474 fi
8475 fi
8476
8477
8478
8479 # GCC GRAPHITE dependency isl.
8480 # Basic setup is inlined here, actual checks are in config/isl.m4
8481
8482
8483 # Check whether --with-isl was given.
8484 if test "${with_isl+set}" = set; then :
8485 withval=$with_isl;
8486 fi
8487
8488
8489 # Treat --without-isl as a request to disable
8490 # GRAPHITE support and skip all following checks.
8491 if test "x$with_isl" != "xno"; then
8492 # Check for isl
8493
8494
8495 # Check whether --with-isl-include was given.
8496 if test "${with_isl_include+set}" = set; then :
8497 withval=$with_isl_include;
8498 fi
8499
8500
8501 # Check whether --with-isl-lib was given.
8502 if test "${with_isl_lib+set}" = set; then :
8503 withval=$with_isl_lib;
8504 fi
8505
8506
8507 # Check whether --enable-isl-version-check was given.
8508 if test "${enable_isl_version_check+set}" = set; then :
8509 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8510 else
8511 ENABLE_ISL_CHECK=yes
8512 fi
8513
8514
8515 # Initialize isllibs and islinc.
8516 case $with_isl in
8517 no)
8518 isllibs=
8519 islinc=
8520 ;;
8521 "" | yes)
8522 ;;
8523 *)
8524 isllibs="-L$with_isl/lib"
8525 islinc="-I$with_isl/include"
8526 ;;
8527 esac
8528 if test "x${with_isl_include}" != x ; then
8529 islinc="-I$with_isl_include"
8530 fi
8531 if test "x${with_isl_lib}" != x; then
8532 isllibs="-L$with_isl_lib"
8533 fi
8534 if test "x${islinc}" = x && test "x${isllibs}" = x \
8535 && test -d ${srcdir}/isl; then
8536 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8537 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8538 ENABLE_ISL_CHECK=no
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8540 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8541 fi
8542
8543 isllibs="${isllibs} -lisl"
8544
8545
8546
8547 if test "${ENABLE_ISL_CHECK}" = yes ; then
8548 _isl_saved_CFLAGS=$CFLAGS
8549 _isl_saved_LDFLAGS=$LDFLAGS
8550 _isl_saved_LIBS=$LIBS
8551
8552 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8553 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8554 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8557 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <isl/schedule.h>
8561 int
8562 main ()
8563 {
8564 isl_options_set_schedule_serialize_sccs (NULL, 0);
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 gcc_cv_isl=yes
8571 else
8572 gcc_cv_isl=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8577 $as_echo "$gcc_cv_isl" >&6; }
8578
8579 if test "${gcc_cv_isl}" = no ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8581 $as_echo "required isl version is 0.15 or later" >&6; }
8582 fi
8583
8584 CFLAGS=$_isl_saved_CFLAGS
8585 LDFLAGS=$_isl_saved_LDFLAGS
8586 LIBS=$_isl_saved_LIBS
8587 fi
8588
8589
8590
8591
8592
8593
8594 if test "x${with_isl}" = xno; then
8595 graphite_requested=no
8596 elif test "x${with_isl}" != x \
8597 || test "x${with_isl_include}" != x \
8598 || test "x${with_isl_lib}" != x ; then
8599 graphite_requested=yes
8600 else
8601 graphite_requested=no
8602 fi
8603
8604
8605
8606 if test "${gcc_cv_isl}" = no ; then
8607 isllibs=
8608 islinc=
8609 fi
8610
8611 if test "${graphite_requested}" = yes \
8612 && test "x${isllibs}" = x \
8613 && test "x${islinc}" = x ; then
8614
8615 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8616 fi
8617
8618
8619 fi
8620
8621 # If the isl check failed, disable builds of in-tree variant of isl
8622 if test "x$with_isl" = xno ||
8623 test "x$gcc_cv_isl" = xno; then
8624 noconfigdirs="$noconfigdirs isl"
8625 islinc=
8626 fi
8627
8628
8629
8630
8631 # Check for LTO support.
8632 # Check whether --enable-lto was given.
8633 if test "${enable_lto+set}" = set; then :
8634 enableval=$enable_lto; enable_lto=$enableval
8635 else
8636 enable_lto=yes; default_enable_lto=yes
8637 fi
8638
8639
8640
8641
8642
8643 target_elf=no
8644 case $target in
8645 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8646 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8647 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8648 nvptx-*-none)
8649 target_elf=no
8650 ;;
8651 *)
8652 target_elf=yes
8653 ;;
8654 esac
8655
8656 if test $target_elf = yes; then :
8657 # ELF platforms build the lto-plugin always.
8658 build_lto_plugin=yes
8659
8660 else
8661 if test x"$default_enable_lto" = x"yes" ; then
8662 case $target in
8663 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8664 # On other non-ELF platforms, LTO has yet to be validated.
8665 *) enable_lto=no ;;
8666 esac
8667 else
8668 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8669 # It would also be nice to check the binutils support, but we don't
8670 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8671 # warn during gcc/ subconfigure; unless you're bootstrapping with
8672 # -flto it won't be needed until after installation anyway.
8673 case $target in
8674 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8675 *) if test x"$enable_lto" = x"yes"; then
8676 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8677 fi
8678 ;;
8679 esac
8680 fi
8681 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8682 # Build it unless LTO was explicitly disabled.
8683 case $target in
8684 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8685 *) ;;
8686 esac
8687
8688 fi
8689
8690
8691 # Check whether --enable-linker-plugin-configure-flags was given.
8692 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8693 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8694 else
8695 extra_linker_plugin_configure_flags=
8696 fi
8697
8698
8699 # Check whether --enable-linker-plugin-flags was given.
8700 if test "${enable_linker_plugin_flags+set}" = set; then :
8701 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8702 else
8703 extra_linker_plugin_flags=
8704 fi
8705
8706
8707
8708 # Enable --enable-host-shared.
8709 # Checked early to determine whether jit is an 'all' language
8710 # Check whether --enable-host-shared was given.
8711 if test "${enable_host_shared+set}" = set; then :
8712 enableval=$enable_host_shared; host_shared=$enableval
8713 case $host in
8714 x86_64-*-darwin* | aarch64-*-darwin*)
8715 if test x$host_shared != xyes ; then
8716 # PIC is the default, and actually cannot be switched off.
8717 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8718 host_shared=yes
8719 fi ;;
8720 *) ;;
8721 esac
8722 else
8723 case $host in
8724 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8725 *) host_shared=no ;;
8726 esac
8727 fi
8728
8729
8730
8731 # By default, C and C++ are the only stage 1 languages.
8732 stage1_languages=,c,
8733
8734 # Target libraries that we bootstrap.
8735 bootstrap_target_libs=,target-libgcc,
8736
8737 # Figure out what language subdirectories are present.
8738 # Look if the user specified --enable-languages="..."; if not, use
8739 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8740 # go away some day.
8741 # NB: embedded tabs in this IF block -- do not untabify
8742 if test -d ${srcdir}/gcc; then
8743 if test x"${enable_languages+set}" != xset; then
8744 if test x"${LANGUAGES+set}" = xset; then
8745 enable_languages="${LANGUAGES}"
8746 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8747 else
8748 enable_languages=default
8749 fi
8750 else
8751 if test x"${enable_languages}" = x ||
8752 test x"${enable_languages}" = xyes;
8753 then
8754 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8755 exit 1
8756 fi
8757 fi
8758 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8759
8760 # 'f95' is the old name for the 'fortran' language. We issue a warning
8761 # and make the substitution.
8762 case ,${enable_languages}, in
8763 *,f95,*)
8764 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8765 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8766 ;;
8767 esac
8768
8769 # If bootstrapping, C++ must be enabled.
8770 case ",$enable_languages,:$enable_bootstrap" in
8771 *,c++,*:*) ;;
8772 *:yes)
8773 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8774 enable_languages="${enable_languages},c++"
8775 else
8776 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8777 fi
8778 ;;
8779 esac
8780
8781 # First scan to see if an enabled language requires some other language.
8782 # We assume that a given config-lang.in will list all the language
8783 # front ends it requires, even if some are required indirectly.
8784 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8785 case ${lang_frag} in
8786 ..) ;;
8787 # The odd quoting in the next line works around
8788 # an apparent bug in bash 1.12 on linux.
8789 ${srcdir}/gcc/[*]/config-lang.in) ;;
8790 *)
8791 # From the config-lang.in, get $language, $lang_requires, and
8792 # $lang_requires_boot_languages.
8793 language=
8794 lang_requires=
8795 lang_requires_boot_languages=
8796 # set srcdir during sourcing lang_frag to the gcc dir.
8797 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8798 # polutes this shell
8799 saved_srcdir=${srcdir}
8800 srcdir=${srcdir}/gcc . ${lang_frag}
8801 srcdir=${saved_srcdir}
8802 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8803 case ,${enable_languages}, in
8804 *,$other,*) ;;
8805 *,default,*) ;;
8806 *,all,*) ;;
8807 *,$language,*)
8808 echo " \`$other' language required by \`$language'; enabling" 1>&2
8809 enable_languages="${enable_languages},${other}"
8810 ;;
8811 esac
8812 done
8813 for other in ${lang_requires_boot_languages} ; do
8814 if test "$other" != "c"; then
8815 case ,${enable_stage1_languages}, in
8816 *,$other,*) ;;
8817 *,default,*) ;;
8818 *,all,*) ;;
8819 *)
8820 case ,${enable_languages}, in
8821 *,$language,*)
8822 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8823 enable_stage1_languages="$enable_stage1_languages,${other}"
8824 ;;
8825 esac
8826 ;;
8827 esac
8828 fi
8829 done
8830 ;;
8831 esac
8832 done
8833
8834 new_enable_languages=,c,
8835
8836 # If LTO is enabled, add the LTO front end.
8837 if test "$enable_lto" = "yes" ; then
8838 case ,${enable_languages}, in
8839 *,lto,*) ;;
8840 *) enable_languages="${enable_languages},lto" ;;
8841 esac
8842 if test "${build_lto_plugin}" = "yes" ; then
8843 configdirs="$configdirs lto-plugin"
8844 fi
8845 fi
8846
8847 # If we're building an offloading compiler, add the LTO front end.
8848 if test x"$enable_as_accelerator_for" != x ; then
8849 case ,${enable_languages}, in
8850 *,lto,*) ;;
8851 *) enable_languages="${enable_languages},lto" ;;
8852 esac
8853 fi
8854
8855 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8856 potential_languages=,c,
8857
8858 enabled_target_libs=
8859 disabled_target_libs=
8860
8861 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8862 case ${lang_frag} in
8863 ..) ;;
8864 # The odd quoting in the next line works around
8865 # an apparent bug in bash 1.12 on linux.
8866 ${srcdir}/gcc/[*]/config-lang.in) ;;
8867 *)
8868 # From the config-lang.in, get $language, $target_libs,
8869 # $lang_dirs, $boot_language, and $build_by_default
8870 language=
8871 target_libs=
8872 lang_dirs=
8873 subdir_requires=
8874 boot_language=no
8875 build_by_default=yes
8876 # set srcdir during sourcing. See above about save & restore
8877 saved_srcdir=${srcdir}
8878 srcdir=${srcdir}/gcc . ${lang_frag}
8879 srcdir=${saved_srcdir}
8880 if test x${language} = x; then
8881 echo "${lang_frag} doesn't set \$language." 1>&2
8882 exit 1
8883 fi
8884
8885 if test "$language" = "c++"; then
8886 boot_language=yes
8887 fi
8888
8889 add_this_lang=no
8890 # C is always enabled, so no need to add it again
8891 if test "$language" != "c"; then
8892 case ,${enable_languages}, in
8893 *,${language},*)
8894 # Language was explicitly selected; include it
8895 add_this_lang=yes
8896 ;;
8897 *,all,*)
8898 # All languages are enabled
8899 add_this_lang=all
8900 ;;
8901 *,default,*)
8902 # 'default' was selected, select it if it is a default language
8903 add_this_lang=${build_by_default}
8904 ;;
8905 esac
8906 fi
8907
8908 # Disable languages that need other directories if these aren't available.
8909 for i in $subdir_requires; do
8910 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8911 case ${add_this_lang} in
8912 yes)
8913 # Specifically requested language; tell them.
8914 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8915 ;;
8916 all)
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8918 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8919 add_this_lang=unsupported
8920 ;;
8921 *)
8922 # Silently disable.
8923 add_this_lang=unsupported
8924 ;;
8925 esac
8926 done
8927
8928 # Disable Ada if no preexisting GNAT is available.
8929 case ${add_this_lang}:${language}:${have_gnat} in
8930 yes:ada:no)
8931 # Specifically requested language; tell them.
8932 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8933 ;;
8934 all:ada:no)
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8936 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8937 add_this_lang=unsupported
8938 ;;
8939 *:ada:no)
8940 # Silently disable.
8941 add_this_lang=unsupported
8942 ;;
8943 esac
8944
8945 # Disable D if no preexisting GDC is available.
8946 case ${add_this_lang}:${language}:${have_gdc} in
8947 yes:d:no)
8948 # Specifically requested language; tell them.
8949 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8950 ;;
8951 all:d:no)
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8953 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8954 add_this_lang=unsupported
8955 ;;
8956 *:d:no)
8957 # Silently disable.
8958 add_this_lang=unsupported
8959 ;;
8960 esac
8961
8962 # Disable jit if -enable-host-shared not specified
8963 # but not if building for Mingw. All code in Windows
8964 # is position independent code (PIC).
8965 case $target in
8966 *mingw*) ;;
8967 *)
8968 case ${add_this_lang}:${language}:${host_shared} in
8969 yes:jit:no)
8970 # PR jit/64780: explicitly specify --enable-host-shared
8971 as_fn_error $? "
8972 Enabling language \"jit\" requires --enable-host-shared.
8973
8974 --enable-host-shared typically slows the rest of the compiler down by
8975 a few %, so you must explicitly enable it.
8976
8977 If you want to build both the jit and the regular compiler, it is often
8978 best to do this via two separate configure/builds, in separate
8979 directories, to avoid imposing the performance cost of
8980 --enable-host-shared on the regular compiler." "$LINENO" 5
8981 ;;
8982 all:jit:no)
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8984 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8985 add_this_lang=unsupported
8986 ;;
8987 *:jit:no)
8988 # Silently disable.
8989 add_this_lang=unsupported
8990 ;;
8991 esac
8992 ;;
8993 esac
8994
8995 # Disable a language that is unsupported by the target.
8996 case "${add_this_lang}: $unsupported_languages " in
8997 no:*) ;;
8998 unsupported:*) ;;
8999 *:*" $language "*)
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9001 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9002 add_this_lang=unsupported
9003 ;;
9004 esac
9005
9006 case $add_this_lang in
9007 unsupported)
9008 # Remove language-dependent dirs.
9009 disabled_target_libs="$disabled_target_libs $target_libs"
9010 noconfigdirs="$noconfigdirs $lang_dirs"
9011 ;;
9012 no)
9013 # Remove language-dependent dirs; still show language as supported.
9014 disabled_target_libs="$disabled_target_libs $target_libs"
9015 noconfigdirs="$noconfigdirs $lang_dirs"
9016 potential_languages="${potential_languages}${language},"
9017 ;;
9018 all|yes)
9019 new_enable_languages="${new_enable_languages}${language},"
9020 potential_languages="${potential_languages}${language},"
9021 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9022 enabled_target_libs="$enabled_target_libs $target_libs"
9023 case "${boot_language}:,$enable_stage1_languages," in
9024 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9025 # Add to (comma-separated) list of stage 1 languages.
9026 case ",$stage1_languages," in
9027 *,$language,* | ,yes, | ,all,) ;;
9028 *) stage1_languages="${stage1_languages}${language}," ;;
9029 esac
9030 # We need to bootstrap any supporting libraries.
9031 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9032 ;;
9033 esac
9034 ;;
9035 esac
9036 ;;
9037 esac
9038 done
9039
9040 # Add target libraries which are only needed for disabled languages
9041 # to noconfigdirs.
9042 if test -n "$disabled_target_libs"; then
9043 for dir in $disabled_target_libs; do
9044 case " $enabled_target_libs " in
9045 *" ${dir} "*) ;;
9046 *) noconfigdirs="$noconfigdirs $dir" ;;
9047 esac
9048 done
9049 fi
9050
9051 # Check whether --enable-stage1-languages was given.
9052 if test "${enable_stage1_languages+set}" = set; then :
9053 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9054 ,no,|,,)
9055 # Set it to something that will have no effect in the loop below
9056 enable_stage1_languages=c ;;
9057 ,yes,)
9058 enable_stage1_languages=`echo $new_enable_languages | \
9059 sed -e "s/^,//" -e "s/,$//" ` ;;
9060 *,all,*)
9061 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9062 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9063 esac
9064
9065 # Add "good" languages from enable_stage1_languages to stage1_languages,
9066 # while "bad" languages go in missing_languages. Leave no duplicates.
9067 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9068 case $potential_languages in
9069 *,$i,*)
9070 case $stage1_languages in
9071 *,$i,*) ;;
9072 *) stage1_languages="$stage1_languages$i," ;;
9073 esac ;;
9074 *)
9075 case $missing_languages in
9076 *,$i,*) ;;
9077 *) missing_languages="$missing_languages$i," ;;
9078 esac ;;
9079 esac
9080 done
9081 fi
9082
9083
9084 # Remove leading/trailing commas that were added for simplicity
9085 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9086 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9087 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9088 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9089
9090 if test "x$missing_languages" != x; then
9091 as_fn_error $? "
9092 The following requested languages could not be built: ${missing_languages}
9093 Supported languages are: ${potential_languages}" "$LINENO" 5
9094 fi
9095 if test "x$new_enable_languages" != "x$enable_languages"; then
9096 echo The following languages will be built: ${new_enable_languages}
9097 enable_languages="$new_enable_languages"
9098 fi
9099
9100
9101 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9102 fi
9103
9104 # Handle --disable-<component> generically.
9105 for dir in $configdirs $build_configdirs $target_configdirs ; do
9106 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9107 varname=`echo $dirname | sed -e s/+/_/g`
9108 if eval test x\${enable_${varname}} "=" xno ; then
9109 noconfigdirs="$noconfigdirs $dir"
9110 fi
9111 done
9112
9113 # Check for Boehm's garbage collector
9114 # Check whether --enable-objc-gc was given.
9115 if test "${enable_objc_gc+set}" = set; then :
9116 enableval=$enable_objc_gc;
9117 fi
9118
9119
9120 # Check whether --with-target-bdw-gc was given.
9121 if test "${with_target_bdw_gc+set}" = set; then :
9122 withval=$with_target_bdw_gc;
9123 fi
9124
9125
9126 # Check whether --with-target-bdw-gc-include was given.
9127 if test "${with_target_bdw_gc_include+set}" = set; then :
9128 withval=$with_target_bdw_gc_include;
9129 fi
9130
9131
9132 # Check whether --with-target-bdw-gc-lib was given.
9133 if test "${with_target_bdw_gc_lib+set}" = set; then :
9134 withval=$with_target_bdw_gc_lib;
9135 fi
9136
9137
9138 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9140 $as_echo_n "checking for bdw garbage collector... " >&6; }
9141 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9143 $as_echo "using bdw-gc in default locations" >&6; }
9144 else
9145 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9146 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9147 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9148 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9151 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9152 fi
9153 fi
9154 esac
9155
9156 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9157 case ,${enable_languages}, in
9158 *,c++,*)
9159 # Disable libitm, libsanitizer if we're not building libstdc++
9160 case "${noconfigdirs}" in
9161 *target-libstdc++-v3*)
9162 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9163 ;;
9164 *) ;;
9165 esac
9166 ;;
9167 *)
9168 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9169 ;;
9170 esac
9171
9172 # If gcc/ is not in the source tree then we'll not be building a
9173 # target compiler, assume in that case we don't want to build any
9174 # target libraries or tools.
9175 #
9176 # This was added primarily for the benefit for binutils-gdb who reuse
9177 # this configure script, but don't always have target tools available.
9178 if test ! -d ${srcdir}/gcc; then
9179 skipdirs="${skipdirs} ${target_configdirs}"
9180 fi
9181
9182 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9183 # $build_configdirs and $target_configdirs.
9184 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9185
9186 notsupp=""
9187 for dir in . $skipdirs $noconfigdirs ; do
9188 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9189 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9190 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9191 if test -r $srcdir/$dirname/configure ; then
9192 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9193 true
9194 else
9195 notsupp="$notsupp $dir"
9196 fi
9197 fi
9198 fi
9199 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9200 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9201 if test -r $srcdir/$dirname/configure ; then
9202 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9203 true
9204 else
9205 notsupp="$notsupp $dir"
9206 fi
9207 fi
9208 fi
9209 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9210 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9211 if test -r $srcdir/$dirname/configure ; then
9212 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9213 true
9214 else
9215 notsupp="$notsupp $dir"
9216 fi
9217 fi
9218 fi
9219 done
9220
9221 # Quietly strip out all directories which aren't configurable in this tree.
9222 # This relies on all configurable subdirectories being autoconfiscated, which
9223 # is now the case.
9224 build_configdirs_all="$build_configdirs"
9225 build_configdirs=
9226 for i in ${build_configdirs_all} ; do
9227 j=`echo $i | sed -e s/build-//g`
9228 if test -f ${srcdir}/$j/configure ; then
9229 build_configdirs="${build_configdirs} $i"
9230 fi
9231 done
9232
9233 configdirs_all="$configdirs"
9234 configdirs=
9235 for i in ${configdirs_all} ; do
9236 if test -f ${srcdir}/$i/configure ; then
9237 configdirs="${configdirs} $i"
9238 fi
9239 done
9240
9241 target_configdirs_all="$target_configdirs"
9242 target_configdirs=
9243 for i in ${target_configdirs_all} ; do
9244 j=`echo $i | sed -e s/target-//g`
9245 if test -f ${srcdir}/$j/configure ; then
9246 target_configdirs="${target_configdirs} $i"
9247 fi
9248 done
9249
9250 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9251 # so we have to add it after the preceding checks.
9252 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9253 then
9254 case " $configdirs " in
9255 *" libiberty "*)
9256 # If we can build libiberty, we can also build libiberty-linker-plugin.
9257 configdirs="$configdirs libiberty-linker-plugin"
9258 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9259 --with-libiberty=../libiberty-linker-plugin";;
9260 *)
9261 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9262 esac
9263 fi
9264
9265 # Sometimes we have special requirements for the host libiberty.
9266 extra_host_libiberty_configure_flags=
9267 case " $configdirs " in
9268 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9269 # When these are to be built as shared libraries, the same applies to
9270 # libiberty.
9271 extra_host_libiberty_configure_flags=--enable-shared
9272 ;;
9273 esac
9274
9275
9276 # Sometimes we have special requirements for the host zlib.
9277 extra_host_zlib_configure_flags=
9278 case " $configdirs " in
9279 *" bfd "*)
9280 # When bfd is to be built as a shared library, the same applies to
9281 # zlib.
9282 if test "$enable_shared" = "yes"; then
9283 extra_host_zlib_configure_flags=--enable-host-shared
9284 fi
9285 ;;
9286 esac
9287
9288
9289 # Produce a warning message for the subdirs we can't configure.
9290 # This isn't especially interesting in the Cygnus tree, but in the individual
9291 # FSF releases, it's important to let people know when their machine isn't
9292 # supported by the one or two programs in a package.
9293
9294 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9295 # If $appdirs is non-empty, at least one of those directories must still
9296 # be configured, or we error out. (E.g., if the gas release supports a
9297 # specified target in some subdirs but not the gas subdir, we shouldn't
9298 # pretend that all is well.)
9299 if test -n "$appdirs" ; then
9300 for dir in $appdirs ; do
9301 if test -r $dir/Makefile.in ; then
9302 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9303 appdirs=""
9304 break
9305 fi
9306 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9307 appdirs=""
9308 break
9309 fi
9310 fi
9311 done
9312 if test -n "$appdirs" ; then
9313 echo "*** This configuration is not supported by this package." 1>&2
9314 exit 1
9315 fi
9316 fi
9317 # Okay, some application will build, or we don't care to check. Still
9318 # notify of subdirs not getting built.
9319 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9320 echo " ${notsupp}" 1>&2
9321 echo " (Any other directories should still work fine.)" 1>&2
9322 fi
9323
9324 case "$host" in
9325 *msdosdjgpp*)
9326 enable_gdbtk=no ;;
9327 esac
9328
9329 # To find our prefix, in gcc_cv_tool_prefix.
9330
9331 # The user is always right.
9332 if test "${PATH_SEPARATOR+set}" != set; then
9333 echo "#! /bin/sh" >conf$$.sh
9334 echo "exit 0" >>conf$$.sh
9335 chmod +x conf$$.sh
9336 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9337 PATH_SEPARATOR=';'
9338 else
9339 PATH_SEPARATOR=:
9340 fi
9341 rm -f conf$$.sh
9342 fi
9343
9344
9345 get_gcc_base_ver="cat"
9346
9347 # Check whether --with-gcc-major-version-only was given.
9348 if test "${with_gcc_major_version_only+set}" = set; then :
9349 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9350 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9351 fi
9352
9353 fi
9354
9355
9356
9357
9358
9359
9360 if test "x$exec_prefix" = xNONE; then
9361 if test "x$prefix" = xNONE; then
9362 gcc_cv_tool_prefix=$ac_default_prefix
9363 else
9364 gcc_cv_tool_prefix=$prefix
9365 fi
9366 else
9367 gcc_cv_tool_prefix=$exec_prefix
9368 fi
9369
9370 # If there is no compiler in the tree, use the PATH only. In any
9371 # case, if there is no compiler in the tree nobody should use
9372 # AS_FOR_TARGET and LD_FOR_TARGET.
9373 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9374 if test x$with_gcc_major_version_only = xyes ; then
9375 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9376 else
9377 gcc_version=`cat $srcdir/gcc/BASE-VER`
9378 fi
9379 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9380 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9381 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9382 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9383 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9384 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9385 else
9386 gcc_cv_tool_dirs=
9387 fi
9388
9389 if test x$build = x$target && test -n "$md_exec_prefix"; then
9390 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9391 fi
9392
9393
9394
9395 copy_dirs=
9396
9397
9398 # Check whether --with-build-sysroot was given.
9399 if test "${with_build_sysroot+set}" = set; then :
9400 withval=$with_build_sysroot; if test x"$withval" != x ; then
9401 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9402 fi
9403 else
9404 SYSROOT_CFLAGS_FOR_TARGET=
9405 fi
9406
9407
9408
9409
9410 # Check whether --with-debug-prefix-map was given.
9411 if test "${with_debug_prefix_map+set}" = set; then :
9412 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9413 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9414 for debug_map in $withval; do
9415 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9416 done
9417 fi
9418 else
9419 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9420 fi
9421
9422
9423
9424 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9425 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9426 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9427 # We want to ensure that TARGET libraries (which we know are built with
9428 # gcc) are built with "-O2 -g", so include those options when setting
9429 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9430 if test "x$CFLAGS_FOR_TARGET" = x; then
9431 if test "x${is_cross_compiler}" = xyes; then
9432 CFLAGS_FOR_TARGET="-g -O2"
9433 else
9434 CFLAGS_FOR_TARGET=$CFLAGS
9435 case " $CFLAGS " in
9436 *" -O2 "*) ;;
9437 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9438 esac
9439 case " $CFLAGS " in
9440 *" -g "* | *" -g3 "*) ;;
9441 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9442 esac
9443 fi
9444 fi
9445
9446
9447 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9448 if test "x${is_cross_compiler}" = xyes; then
9449 CXXFLAGS_FOR_TARGET="-g -O2"
9450 else
9451 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9452 case " $CXXFLAGS " in
9453 *" -O2 "*) ;;
9454 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9455 esac
9456 case " $CXXFLAGS " in
9457 *" -g "* | *" -g3 "*) ;;
9458 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9459 esac
9460 fi
9461 fi
9462
9463
9464
9465
9466 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9467 # the named directory are copied to $(tooldir)/sys-include.
9468 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9469 if test x${is_cross_compiler} = xno ; then
9470 echo 1>&2 '***' --with-headers is only supported when cross compiling
9471 exit 1
9472 fi
9473 if test x"${with_headers}" != xyes ; then
9474 x=${gcc_cv_tool_prefix}
9475 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9476 fi
9477 fi
9478
9479 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9480 # the name directories are copied to $(tooldir)/lib. Multiple directories
9481 # are permitted.
9482 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9483 if test x${is_cross_compiler} = xno ; then
9484 echo 1>&2 '***' --with-libs is only supported when cross compiling
9485 exit 1
9486 fi
9487 if test x"${with_libs}" != xyes ; then
9488 # Copy the libraries in reverse order, so that files in the first named
9489 # library override files in subsequent libraries.
9490 x=${gcc_cv_tool_prefix}
9491 for l in ${with_libs}; do
9492 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9493 done
9494 fi
9495 fi
9496
9497 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9498 #
9499 # This is done by determining whether or not the appropriate directory
9500 # is available, and by checking whether or not specific configurations
9501 # have requested that this magic not happen.
9502 #
9503 # The command line options always override the explicit settings in
9504 # configure.ac, and the settings in configure.ac override this magic.
9505 #
9506 # If the default for a toolchain is to use GNU as and ld, and you don't
9507 # want to do that, then you should use the --without-gnu-as and
9508 # --without-gnu-ld options for the configure script. Similarly, if
9509 # the default is to use the included zlib and you don't want to do that,
9510 # you should use the --with-system-zlib option for the configure script.
9511
9512 if test x${use_gnu_as} = x &&
9513 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9514 with_gnu_as=yes
9515 extra_host_args="$extra_host_args --with-gnu-as"
9516 fi
9517
9518 if test x${use_gnu_ld} = x &&
9519 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9520 with_gnu_ld=yes
9521 extra_host_args="$extra_host_args --with-gnu-ld"
9522 fi
9523
9524 if test x${use_included_zlib} = x &&
9525 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9526 :
9527 else
9528 with_system_zlib=yes
9529 extra_host_args="$extra_host_args --with-system-zlib"
9530 fi
9531
9532 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9533 # can detect this case.
9534
9535 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9536 with_newlib=yes
9537 extra_host_args="$extra_host_args --with-newlib"
9538 fi
9539
9540 # Handle ${copy_dirs}
9541 set fnord ${copy_dirs}
9542 shift
9543 while test $# != 0 ; do
9544 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9545 :
9546 else
9547 echo Copying $1 to $2
9548
9549 # Use the install script to create the directory and all required
9550 # parent directories.
9551 if test -d $2 ; then
9552 :
9553 else
9554 echo >config.temp
9555 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9556 fi
9557
9558 # Copy the directory, assuming we have tar.
9559 # FIXME: Should we use B in the second tar? Not all systems support it.
9560 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9561
9562 # It is the responsibility of the user to correctly adjust all
9563 # symlinks. If somebody can figure out how to handle them correctly
9564 # here, feel free to add the code.
9565
9566 echo $1 > $2/COPIED
9567 fi
9568 shift; shift
9569 done
9570
9571 # Determine a target-dependent exec_prefix that the installed
9572 # gcc will search in. Keep this list sorted by triplet, with
9573 # the *-*-osname triplets last.
9574 md_exec_prefix=
9575 case "${target}" in
9576 i[34567]86-pc-msdosdjgpp*)
9577 md_exec_prefix=/dev/env/DJDIR/bin
9578 ;;
9579 *-*-hpux* | \
9580 *-*-nto-qnx* | \
9581 *-*-solaris2*)
9582 md_exec_prefix=/usr/ccs/bin
9583 ;;
9584 esac
9585
9586 extra_arflags_for_target=
9587 extra_nmflags_for_target=
9588 extra_ranlibflags_for_target=
9589 target_makefile_frag=/dev/null
9590 case "${target}" in
9591 spu-*-*)
9592 target_makefile_frag="config/mt-spu"
9593 ;;
9594 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9595 target_makefile_frag="config/mt-sde"
9596 ;;
9597 mipsisa*-*-elfoabi*)
9598 target_makefile_frag="config/mt-mips-elfoabi"
9599 ;;
9600 mips*-*-*linux* | mips*-*-gnu*)
9601 target_makefile_frag="config/mt-mips-gnu"
9602 ;;
9603 nios2-*-elf*)
9604 target_makefile_frag="config/mt-nios2-elf"
9605 ;;
9606 *-*-linux-android*)
9607 target_makefile_frag="config/mt-android"
9608 ;;
9609 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9610 target_makefile_frag="config/mt-gnu"
9611 ;;
9612 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9613 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9614 # commands to handle both 32-bit and 64-bit objects. These flags are
9615 # harmless if we're using GNU nm or ar.
9616 extra_arflags_for_target=" -X32_64"
9617 extra_nmflags_for_target=" -B -X32_64"
9618 ;;
9619 esac
9620
9621 alphaieee_frag=/dev/null
9622 case $target in
9623 alpha*-*-*)
9624 # This just makes sure to use the -mieee option to build target libs.
9625 # This should probably be set individually by each library.
9626 alphaieee_frag="config/mt-alphaieee"
9627 ;;
9628 esac
9629
9630 # If --enable-target-optspace always use -Os instead of -O2 to build
9631 # the target libraries, similarly if it is not specified, use -Os
9632 # on selected platforms.
9633 ospace_frag=/dev/null
9634 case "${enable_target_optspace}:${target}" in
9635 yes:*)
9636 ospace_frag="config/mt-ospace"
9637 ;;
9638 :d30v-*)
9639 ospace_frag="config/mt-d30v"
9640 ;;
9641 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9642 ospace_frag="config/mt-ospace"
9643 ;;
9644 no:* | :*)
9645 ;;
9646 *)
9647 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9648 ;;
9649 esac
9650
9651 # Some systems (e.g., one of the i386-aix systems the gas testers are
9652 # using) don't handle "\$" correctly, so don't use it here.
9653 tooldir='${exec_prefix}'/${target_noncanonical}
9654 build_tooldir=${tooldir}
9655
9656 # Create a .gdbinit file which runs the one in srcdir
9657 # and tells GDB to look there for source files.
9658
9659 if test -r ${srcdir}/.gdbinit ; then
9660 case ${srcdir} in
9661 .) ;;
9662 *) cat > ./.gdbinit <<EOF
9663 # ${NO_EDIT}
9664 dir ${srcdir}
9665 dir .
9666 source ${srcdir}/.gdbinit
9667 EOF
9668 ;;
9669 esac
9670 fi
9671
9672 # Make sure that the compiler is able to generate an executable. If it
9673 # can't, we are probably in trouble. We don't care whether we can run the
9674 # executable--we might be using a cross compiler--we only care whether it
9675 # can be created. At this point the main configure script has set CC.
9676 we_are_ok=no
9677 echo "int main () { return 0; }" > conftest.c
9678 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9679 if test $? = 0 ; then
9680 if test -s conftest || test -s conftest.exe ; then
9681 we_are_ok=yes
9682 fi
9683 fi
9684 case $we_are_ok in
9685 no)
9686 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9687 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9688 rm -f conftest*
9689 exit 1
9690 ;;
9691 esac
9692 rm -f conftest*
9693
9694 # Decide which environment variable is used to find dynamic libraries.
9695 case "${host}" in
9696 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9697 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9698 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9699 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9700 esac
9701
9702 # On systems where the dynamic library environment variable is PATH,
9703 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9704 # built executables to PATH.
9705 if test "$RPATH_ENVVAR" = PATH; then
9706 GCC_SHLIB_SUBDIR=/shlib
9707 else
9708 GCC_SHLIB_SUBDIR=
9709 fi
9710
9711 # Adjust the toplevel makefile according to whether bootstrap was selected.
9712 case $enable_bootstrap in
9713 yes)
9714 bootstrap_suffix=bootstrap
9715 BUILD_CONFIG=bootstrap-debug
9716 ;;
9717 no)
9718 bootstrap_suffix=no-bootstrap
9719 BUILD_CONFIG=
9720 ;;
9721 esac
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9724 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9725
9726
9727 # Check whether --with-build-config was given.
9728 if test "${with_build_config+set}" = set; then :
9729 withval=$with_build_config; case $with_build_config in
9730 yes) with_build_config= ;;
9731 no) with_build_config= BUILD_CONFIG= ;;
9732 esac
9733 fi
9734
9735
9736 if test "x${with_build_config}" != x; then
9737 BUILD_CONFIG=$with_build_config
9738 else
9739 case $BUILD_CONFIG in
9740 bootstrap-debug)
9741 if echo "int f (void) { return 0; }" > conftest.c &&
9742 ${CC} -c conftest.c &&
9743 mv conftest.o conftest.o.g0 &&
9744 ${CC} -c -g conftest.c &&
9745 mv conftest.o conftest.o.g &&
9746 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9747 :
9748 else
9749 BUILD_CONFIG=
9750 fi
9751 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9752 ;;
9753 esac
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9756 $as_echo "$BUILD_CONFIG" >&6; }
9757
9758
9759 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9761 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9762 # Check whether --enable-vtable-verify was given.
9763 if test "${enable_vtable_verify+set}" = set; then :
9764 enableval=$enable_vtable_verify; case "$enableval" in
9765 yes) enable_vtable_verify=yes ;;
9766 no) enable_vtable_verify=no ;;
9767 *) enable_vtable_verify=no;;
9768 esac
9769 else
9770 enable_vtable_verify=no
9771 fi
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9774 $as_echo "$enable_vtable_verify" >&6; }
9775
9776 # Record target_configdirs and the configure arguments for target and
9777 # build configuration in Makefile.
9778 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9779 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9780 bootstrap_fixincludes=no
9781
9782 # If we are building libgomp, bootstrap it.
9783 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9784 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9785 fi
9786
9787 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9788 # or bootstrap-ubsan, bootstrap it.
9789 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9790 case "$BUILD_CONFIG" in
9791 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9792 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9793 bootstrap_fixincludes=yes
9794 ;;
9795 esac
9796 fi
9797
9798 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9799 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9800 test "$enable_vtable_verify" != no; then
9801 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9802 fi
9803
9804 # If we are building libatomic and the list of enabled languages includes the
9805 # D frontend, bootstrap it.
9806 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9807 case ,${enable_languages}, in
9808 *,d,*)
9809 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9810 ;;
9811 esac
9812 fi
9813
9814 # Determine whether gdb needs tk/tcl or not.
9815 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9816 # and in that case we want gdb to be built without tk. Ugh!
9817 # In fact I believe gdb is the *only* package directly dependent on tk,
9818 # so we should be able to put the 'maybe's in unconditionally and
9819 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9820 # 100% sure that that's safe though.
9821
9822 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9823 case "$enable_gdbtk" in
9824 no)
9825 GDB_TK="" ;;
9826 yes)
9827 GDB_TK="${gdb_tk}" ;;
9828 *)
9829 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9830 # distro. Eventually someone will fix this and move Insight, nee
9831 # gdbtk to a separate directory.
9832 if test -d ${srcdir}/gdb/gdbtk ; then
9833 GDB_TK="${gdb_tk}"
9834 else
9835 GDB_TK=""
9836 fi
9837 ;;
9838 esac
9839 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9840 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9841
9842 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9843 # else does, only include them if one of these is built. The Makefile
9844 # provides the ordering, so it's enough here to add to the list.
9845 case " ${configdirs} " in
9846 *\ gdb\ *)
9847 configdirs="${configdirs} gnulib gdbsupport"
9848 ;;
9849 *\ gdbserver\ *)
9850 configdirs="${configdirs} gnulib gdbsupport"
9851 ;;
9852 *\ sim\ *)
9853 configdirs="${configdirs} gnulib"
9854 ;;
9855 esac
9856
9857 # Strip out unwanted targets.
9858
9859 # While at that, we remove Makefiles if we were started for recursive
9860 # configuration, so that the top-level Makefile reconfigures them,
9861 # like we used to do when configure itself was recursive.
9862
9863 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9864 # but now we're fixing up the Makefile ourselves with the additional
9865 # commands passed to AC_CONFIG_FILES. Use separate variables
9866 # extrasub-{build,host,target} not because there is any reason to split
9867 # the substitutions up that way, but only to remain below the limit of
9868 # 99 commands in a script, for HP-UX sed.
9869
9870 # Do not nest @if/@endif or @unless/@endunless pairs, because
9871 # configure will not warn you at all.
9872
9873 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9874 yes:yes:*\ gold\ *:*,c++,*) ;;
9875 yes:yes:*\ gold\ *:*)
9876 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9877 ;;
9878 esac
9879
9880 extrasub_build=
9881 for module in ${build_configdirs} ; do
9882 if test -z "${no_recursion}" \
9883 && test -f ${build_subdir}/${module}/Makefile; then
9884 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9885 rm -f ${build_subdir}/${module}/Makefile
9886 fi
9887 extrasub_build="$extrasub_build
9888 /^@if build-$module\$/d
9889 /^@endif build-$module\$/d
9890 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9891 /^@if build-$module-$bootstrap_suffix\$/d
9892 /^@endif build-$module-$bootstrap_suffix\$/d
9893 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9894 done
9895 extrasub_host=
9896 for module in ${configdirs} ; do
9897 if test -z "${no_recursion}"; then
9898 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9899 if test -f ${file}; then
9900 echo 1>&2 "*** removing ${file} to force reconfigure"
9901 rm -f ${file}
9902 fi
9903 done
9904 fi
9905 case ${module},${bootstrap_fixincludes} in
9906 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9907 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9908 esac
9909 extrasub_host="$extrasub_host
9910 /^@if $module\$/d
9911 /^@endif $module\$/d
9912 /^@unless $module\$/,/^@endunless $module\$/d
9913 /^@if $module-$host_bootstrap_suffix\$/d
9914 /^@endif $module-$host_bootstrap_suffix\$/d
9915 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9916 done
9917 extrasub_target=
9918 for module in ${target_configdirs} ; do
9919 if test -z "${no_recursion}" \
9920 && test -f ${target_subdir}/${module}/Makefile; then
9921 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9922 rm -f ${target_subdir}/${module}/Makefile
9923 fi
9924
9925 # We only bootstrap target libraries listed in bootstrap_target_libs.
9926 case $bootstrap_target_libs in
9927 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9928 *) target_bootstrap_suffix=no-bootstrap ;;
9929 esac
9930
9931 extrasub_target="$extrasub_target
9932 /^@if target-$module\$/d
9933 /^@endif target-$module\$/d
9934 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9935 /^@if target-$module-$target_bootstrap_suffix\$/d
9936 /^@endif target-$module-$target_bootstrap_suffix\$/d
9937 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9938 done
9939
9940 # Do the final fixup along with target modules.
9941 extrasub_target="$extrasub_target
9942 /^@if /,/^@endif /d
9943 /^@unless /d
9944 /^@endunless /d"
9945
9946 if test "$enable_pgo_build" != "no"; then
9947 extrasub_build="$extrasub_build
9948 /^@if pgo-build\$/d
9949 /^@endif pgo-build\$/d"
9950 fi
9951
9952 # Create the serialization dependencies. This uses a temporary file.
9953
9954 # Check whether --enable-serial-configure was given.
9955 if test "${enable_serial_configure+set}" = set; then :
9956 enableval=$enable_serial_configure;
9957 fi
9958
9959
9960 case ${enable_serial_configure} in
9961 yes)
9962 enable_serial_build_configure=yes
9963 enable_serial_host_configure=yes
9964 enable_serial_target_configure=yes
9965 ;;
9966 esac
9967
9968 # These force 'configure's to be done one at a time, to avoid problems
9969 # with contention over a shared config.cache.
9970 rm -f serdep.tmp
9971 echo '# serdep.tmp' > serdep.tmp
9972 olditem=
9973 test "x${enable_serial_build_configure}" = xyes &&
9974 for item in ${build_configdirs} ; do
9975 case ${olditem} in
9976 "") ;;
9977 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9978 esac
9979 olditem=${item}
9980 done
9981 olditem=
9982 test "x${enable_serial_host_configure}" = xyes &&
9983 for item in ${configdirs} ; do
9984 case ${olditem} in
9985 "") ;;
9986 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9987 esac
9988 olditem=${item}
9989 done
9990 olditem=
9991 test "x${enable_serial_target_configure}" = xyes &&
9992 for item in ${target_configdirs} ; do
9993 case ${olditem} in
9994 "") ;;
9995 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9996 esac
9997 olditem=${item}
9998 done
9999 serialization_dependencies=serdep.tmp
10000
10001
10002 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10003 # target, nonopt, and variable assignments. These are the ones we
10004 # might not want to pass down to subconfigures. The exception being
10005 # --cache-file=/dev/null, which is used to turn off the use of cache
10006 # files altogether, and which should be passed on to subconfigures.
10007 # Also strip program-prefix, program-suffix, and program-transform-name,
10008 # so that we can pass down a consistent program-transform-name.
10009 baseargs=
10010 tbaseargs=
10011 keep_next=no
10012 skip_next=no
10013 eval "set -- $ac_configure_args"
10014 for ac_arg
10015 do
10016 if test X"$skip_next" = X"yes"; then
10017 skip_next=no
10018 continue
10019 fi
10020 if test X"$keep_next" = X"yes"; then
10021 case $ac_arg in
10022 *\'*)
10023 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10024 esac
10025 baseargs="$baseargs '$ac_arg'"
10026 tbaseargs="$tbaseargs '$ac_arg'"
10027 keep_next=no
10028 continue
10029 fi
10030
10031 # Handle separated arguments. Based on the logic generated by
10032 # autoconf 2.59.
10033 case $ac_arg in
10034 *=* | --config-cache | -C | -disable-* | --disable-* \
10035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10037 | -with-* | --with-* | -without-* | --without-* | --x)
10038 separate_arg=no
10039 ;;
10040 -*)
10041 separate_arg=yes
10042 ;;
10043 *)
10044 separate_arg=no
10045 ;;
10046 esac
10047
10048 skip_targ=no
10049 case $ac_arg in
10050
10051 --with-* | --without-*)
10052 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10053
10054 case $libopt in
10055 *[-_]include)
10056 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10057 ;;
10058 *[-_]lib)
10059 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10060 ;;
10061 *)
10062 lib=$libopt
10063 ;;
10064 esac
10065
10066
10067 case $lib in
10068 mpc | mpfr | gmp | isl)
10069 # If we're processing --with-$lib, --with-$lib-include or
10070 # --with-$lib-lib, for one of the libs above, and target is
10071 # different from host, don't pass the current argument to any
10072 # target library's configure.
10073 if test x$is_cross_compiler = xyes; then
10074 skip_targ=yes
10075 fi
10076 ;;
10077 esac
10078 ;;
10079 esac
10080
10081 case "$ac_arg" in
10082 --cache-file=/dev/null | \
10083 -cache-file=/dev/null )
10084 # Handled here to avoid the test to skip args below.
10085 baseargs="$baseargs '$ac_arg'"
10086 tbaseargs="$tbaseargs '$ac_arg'"
10087 # Assert: $separate_arg should always be no.
10088 keep_next=$separate_arg
10089 ;;
10090 --no*)
10091 continue
10092 ;;
10093 --c* | \
10094 --sr* | \
10095 --ho* | \
10096 --bu* | \
10097 --t* | \
10098 --program-* | \
10099 -cache_file* | \
10100 -srcdir* | \
10101 -host* | \
10102 -build* | \
10103 -target* | \
10104 -program-prefix* | \
10105 -program-suffix* | \
10106 -program-transform-name* )
10107 skip_next=$separate_arg
10108 continue
10109 ;;
10110 -*)
10111 # An option. Add it.
10112 case $ac_arg in
10113 *\'*)
10114 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10115 esac
10116 baseargs="$baseargs '$ac_arg'"
10117 if test X"$skip_targ" = Xno; then
10118 tbaseargs="$tbaseargs '$ac_arg'"
10119 fi
10120 keep_next=$separate_arg
10121 ;;
10122 *)
10123 # Either a variable assignment, or a nonopt (triplet). Don't
10124 # pass it down; let the Makefile handle this.
10125 continue
10126 ;;
10127 esac
10128 done
10129 # Remove the initial space we just introduced and, as these will be
10130 # expanded by make, quote '$'.
10131 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10132
10133 # Add in --program-transform-name, after --program-prefix and
10134 # --program-suffix have been applied to it. Autoconf has already
10135 # doubled dollar signs and backslashes in program_transform_name; we want
10136 # the backslashes un-doubled, and then the entire thing wrapped in single
10137 # quotes, because this will be expanded first by make and then by the shell.
10138 # Also, because we want to override the logic in subdir configure scripts to
10139 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10140 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10141 ${program_transform_name}
10142 EOF_SED
10143 gcc_transform_name=`cat conftestsed.out`
10144 rm -f conftestsed.out
10145 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10146 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10147 if test "$silent" = yes; then
10148 baseargs="$baseargs --silent"
10149 tbaseargs="$tbaseargs --silent"
10150 fi
10151
10152 baseargs="$baseargs --disable-option-checking"
10153 tbaseargs="$tbaseargs --disable-option-checking"
10154
10155 if test "$enable_year2038" = no; then
10156 baseargs="$baseargs --disable-year2038"
10157 tbaseargs="$tbaseargs --disable-year2038"
10158 fi
10159
10160 # Record and document user additions to sub configure arguments.
10161
10162
10163
10164
10165 # For the build-side libraries, we just need to pretend we're native,
10166 # and not use the same cache file. Multilibs are neither needed nor
10167 # desired. We can't even use the same cache file for all build-side
10168 # libraries, as they're compiled differently; some with C, some with
10169 # C++ or with different feature-enabling options.
10170 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10171
10172 # For host modules, accept cache file option, or specification as blank.
10173 case "${cache_file}" in
10174 "") # empty
10175 cache_file_option="" ;;
10176 /* | [A-Za-z]:[\\/]* ) # absolute path
10177 cache_file_option="--cache-file=${cache_file}" ;;
10178 *) # relative path
10179 cache_file_option="--cache-file=../${cache_file}" ;;
10180 esac
10181
10182 # Host dirs don't like to share a cache file either, horribly enough.
10183 # This seems to be due to autoconf 2.5x stupidity.
10184 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10185
10186 target_configargs="$target_configargs ${tbaseargs}"
10187
10188 # Passing a --with-cross-host argument lets the target libraries know
10189 # whether they are being built with a cross-compiler or being built
10190 # native. However, it would be better to use other mechanisms to make the
10191 # sorts of decisions they want to make on this basis. Please consider
10192 # this option to be deprecated. FIXME.
10193 if test x${is_cross_compiler} = xyes ; then
10194 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10195 fi
10196
10197 # Special user-friendly check for native x86_64-linux build, if
10198 # multilib is not explicitly enabled.
10199 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10200 x86_64-*linux*:yes:$build:$build:)
10201 # Make sure we have a development environment that handles 32-bit
10202 dev64=no
10203 echo "int main () { return 0; }" > conftest.c
10204 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10205 if test $? = 0 ; then
10206 if test -s conftest || test -s conftest.exe ; then
10207 dev64=yes
10208 fi
10209 fi
10210 rm -f conftest*
10211 if test x${dev64} != xyes ; then
10212 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
10213 fi
10214 ;;
10215 esac
10216
10217 # Default to --enable-multilib.
10218 if test x${enable_multilib} = x ; then
10219 target_configargs="--enable-multilib ${target_configargs}"
10220 fi
10221
10222 # Pass --with-newlib if appropriate. Note that target_configdirs has
10223 # changed from the earlier setting of with_newlib.
10224 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10225 target_configargs="--with-newlib ${target_configargs}"
10226 fi
10227
10228 # Different target subdirs use different values of certain variables
10229 # (notably CXX). Worse, multilibs use *lots* of different values.
10230 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10231 # it doesn't automatically accept command-line overrides of them.
10232 # This means it's not safe for target subdirs to share a cache file,
10233 # which is disgusting, but there you have it. Hopefully this can be
10234 # fixed in future. It's still worthwhile to use a cache file for each
10235 # directory. I think.
10236
10237 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10238 # We need to pass --target, as newer autoconf's requires consistency
10239 # for target_alias and gcc doesn't manage it consistently.
10240 target_configargs="--cache-file=./config.cache ${target_configargs}"
10241
10242 FLAGS_FOR_TARGET=
10243 case " $target_configdirs " in
10244 *" newlib "*)
10245 case " $target_configargs " in
10246 *" --with-newlib "*)
10247 case "$target" in
10248 *-cygwin*)
10249 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10250 ;;
10251 esac
10252
10253 # If we're not building GCC, don't discard standard headers.
10254 if test -d ${srcdir}/gcc; then
10255 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10256
10257 if test "${build}" != "${host}"; then
10258 # On Canadian crosses, CC_FOR_TARGET will have already been set
10259 # by `configure', so we won't have an opportunity to add -Bgcc/
10260 # to it. This is right: we don't want to search that directory
10261 # for binaries, but we want the header files in there, so add
10262 # them explicitly.
10263 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10264
10265 # Someone might think of using the pre-installed headers on
10266 # Canadian crosses, in case the installed compiler is not fully
10267 # compatible with the compiler being built. In this case, it
10268 # would be better to flag an error than risking having
10269 # incompatible object files being constructed. We can't
10270 # guarantee that an error will be flagged, but let's hope the
10271 # compiler will do it, when presented with incompatible header
10272 # files.
10273 fi
10274 fi
10275
10276 case "${target}-${is_cross_compiler}" in
10277 i[3456789]86-*-linux*-no)
10278 # Here host == target, so we don't need to build gcc,
10279 # so we don't want to discard standard headers.
10280 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10281 ;;
10282 *)
10283 # If we're building newlib, use its generic headers last, but search
10284 # for any libc-related directories first (so make it the last -B
10285 # switch).
10286 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10287
10288 # If we're building libgloss, find the startup file, simulator library
10289 # and linker script.
10290 case " $target_configdirs " in
10291 *" libgloss "*)
10292 # Look for startup file, simulator library and maybe linker script.
10293 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10294 # Look for libnosys.a in case the target needs it.
10295 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10296 # Most targets have the linker script in the source directory.
10297 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10298 ;;
10299 esac
10300 ;;
10301 esac
10302 ;;
10303 esac
10304 ;;
10305 esac
10306
10307 case "$target" in
10308 x86_64-*mingw* | *-w64-mingw*)
10309 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10310 # however, use a symlink named 'mingw' in ${prefix} .
10311 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10312 ;;
10313 *-mingw*)
10314 # MinGW can't be handled as Cygwin above since it does not use newlib.
10315 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'
10316 ;;
10317 esac
10318
10319 # Allow the user to override the flags for
10320 # our build compiler if desired.
10321 if test x"${build}" = x"${host}" ; then
10322 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10323 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10324 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10325 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10326 fi
10327
10328 # On Canadian crosses, we'll be searching the right directories for
10329 # the previously-installed cross compiler, so don't bother to add
10330 # flags for directories within the install tree of the compiler
10331 # being built; programs in there won't even run.
10332 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10333 # Search for pre-installed headers if nothing else fits.
10334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10335 fi
10336
10337 if test "x${use_gnu_ld}" = x &&
10338 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10339 # Arrange for us to find uninstalled linker scripts.
10340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10341 fi
10342
10343 # Search for other target-specific linker scripts and such.
10344 case "${target}" in
10345 mep*)
10346 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10347 ;;
10348 # The VxWorks support for shared libraries is getting in
10349 # incrementally. Make sure it doesn't get activated implicitly:
10350 *vxworks*)
10351 if test "${enable_shared-unset}" = unset ; then
10352 enable_shared=no
10353 # So the build of libraries knows ...
10354 target_configargs="${target_configargs} --disable-shared"
10355 # So gcc knows ...
10356 host_configargs="${host_configargs} --disable-shared"
10357 fi
10358 ;;
10359 esac
10360
10361 # Makefile fragments.
10362 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10363 do
10364 eval fragval=\$$frag
10365 if test $fragval != /dev/null; then
10366 eval $frag=${srcdir}/$fragval
10367 fi
10368 done
10369
10370
10371
10372
10373
10374 # Miscellanea: directories, flags, etc.
10375
10376
10377
10378
10379
10380
10381
10382
10383 # Build module lists & subconfigure args.
10384
10385
10386
10387 # Host module lists & subconfigure args.
10388
10389
10390
10391
10392 # Target module lists & subconfigure args.
10393
10394
10395
10396 # Build tools.
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417 # Generate default definitions for YACC, M4, LEX and other programs that run
10418 # on the build machine. These are used if the Makefile can't locate these
10419 # programs in objdir.
10420 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10421
10422 for ac_prog in 'bison -y' byacc yacc
10423 do
10424 # Extract the first word of "$ac_prog", so it can be a program name with args.
10425 set dummy $ac_prog; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10427 $as_echo_n "checking for $ac_word... " >&6; }
10428 if ${ac_cv_prog_YACC+:} false; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 if test -n "$YACC"; then
10432 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10433 else
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10436 do
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441 ac_cv_prog_YACC="$ac_prog"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10444 fi
10445 done
10446 done
10447 IFS=$as_save_IFS
10448
10449 fi
10450 fi
10451 YACC=$ac_cv_prog_YACC
10452 if test -n "$YACC"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10454 $as_echo "$YACC" >&6; }
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; }
10458 fi
10459
10460
10461 test -n "$YACC" && break
10462 done
10463 test -n "$YACC" || YACC="$MISSING bison -y"
10464
10465 case " $build_configdirs " in
10466 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10467 esac
10468
10469 for ac_prog in bison
10470 do
10471 # Extract the first word of "$ac_prog", so it can be a program name with args.
10472 set dummy $ac_prog; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10474 $as_echo_n "checking for $ac_word... " >&6; }
10475 if ${ac_cv_prog_BISON+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477 else
10478 if test -n "$BISON"; then
10479 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10480 else
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488 ac_cv_prog_BISON="$ac_prog"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10491 fi
10492 done
10493 done
10494 IFS=$as_save_IFS
10495
10496 fi
10497 fi
10498 BISON=$ac_cv_prog_BISON
10499 if test -n "$BISON"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10501 $as_echo "$BISON" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506
10507
10508 test -n "$BISON" && break
10509 done
10510 test -n "$BISON" || BISON="$MISSING bison"
10511
10512 case " $build_configdirs " in
10513 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10514 esac
10515
10516 for ac_prog in gm4 gnum4 m4
10517 do
10518 # Extract the first word of "$ac_prog", so it can be a program name with args.
10519 set dummy $ac_prog; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if ${ac_cv_prog_M4+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -n "$M4"; then
10526 ac_cv_prog_M4="$M4" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10530 do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_M4="$ac_prog"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539 done
10540 done
10541 IFS=$as_save_IFS
10542
10543 fi
10544 fi
10545 M4=$ac_cv_prog_M4
10546 if test -n "$M4"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10548 $as_echo "$M4" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10552 fi
10553
10554
10555 test -n "$M4" && break
10556 done
10557 test -n "$M4" || M4="$MISSING m4"
10558
10559 case " $build_configdirs " in
10560 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10561 esac
10562
10563 for ac_prog in flex lex
10564 do
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if ${ac_cv_prog_LEX+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 if test -n "$LEX"; then
10573 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10574 else
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10577 do
10578 IFS=$as_save_IFS
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_LEX="$ac_prog"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10584 break 2
10585 fi
10586 done
10587 done
10588 IFS=$as_save_IFS
10589
10590 fi
10591 fi
10592 LEX=$ac_cv_prog_LEX
10593 if test -n "$LEX"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10595 $as_echo "$LEX" >&6; }
10596 else
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 fi
10600
10601
10602 test -n "$LEX" && break
10603 done
10604 test -n "$LEX" || LEX="$MISSING flex"
10605
10606 case " $build_configdirs " in
10607 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10608 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10609 esac
10610
10611 for ac_prog in flex
10612 do
10613 # Extract the first word of "$ac_prog", so it can be a program name with args.
10614 set dummy $ac_prog; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_prog_FLEX+:} false; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if test -n "$FLEX"; then
10621 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10625 do
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_FLEX="$ac_prog"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10633 fi
10634 done
10635 done
10636 IFS=$as_save_IFS
10637
10638 fi
10639 fi
10640 FLEX=$ac_cv_prog_FLEX
10641 if test -n "$FLEX"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10643 $as_echo "$FLEX" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 fi
10648
10649
10650 test -n "$FLEX" && break
10651 done
10652 test -n "$FLEX" || FLEX="$MISSING flex"
10653
10654 case " $build_configdirs " in
10655 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10656 esac
10657
10658 for ac_prog in makeinfo
10659 do
10660 # Extract the first word of "$ac_prog", so it can be a program name with args.
10661 set dummy $ac_prog; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_prog_MAKEINFO+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 if test -n "$MAKEINFO"; then
10668 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10669 else
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_MAKEINFO="$ac_prog"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681 done
10682 done
10683 IFS=$as_save_IFS
10684
10685 fi
10686 fi
10687 MAKEINFO=$ac_cv_prog_MAKEINFO
10688 if test -n "$MAKEINFO"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10690 $as_echo "$MAKEINFO" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695
10696
10697 test -n "$MAKEINFO" && break
10698 done
10699 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10700
10701 case " $build_configdirs " in
10702 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10703 *)
10704
10705 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10706 # higher, else we use the "missing" dummy.
10707 if ${MAKEINFO} --version \
10708 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10709 :
10710 else
10711 MAKEINFO="$MISSING makeinfo"
10712 fi
10713 ;;
10714
10715 esac
10716
10717 # FIXME: expect and dejagnu may become build tools?
10718
10719 for ac_prog in expect
10720 do
10721 # Extract the first word of "$ac_prog", so it can be a program name with args.
10722 set dummy $ac_prog; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724 $as_echo_n "checking for $ac_word... " >&6; }
10725 if ${ac_cv_prog_EXPECT+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 if test -n "$EXPECT"; then
10729 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10730 else
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_prog_EXPECT="$ac_prog"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10741 fi
10742 done
10743 done
10744 IFS=$as_save_IFS
10745
10746 fi
10747 fi
10748 EXPECT=$ac_cv_prog_EXPECT
10749 if test -n "$EXPECT"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10751 $as_echo "$EXPECT" >&6; }
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10755 fi
10756
10757
10758 test -n "$EXPECT" && break
10759 done
10760 test -n "$EXPECT" || EXPECT="expect"
10761
10762 case " $configdirs " in
10763 *" expect "*)
10764 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10765 ;;
10766 esac
10767
10768 for ac_prog in runtest
10769 do
10770 # Extract the first word of "$ac_prog", so it can be a program name with args.
10771 set dummy $ac_prog; ac_word=$2
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10773 $as_echo_n "checking for $ac_word... " >&6; }
10774 if ${ac_cv_prog_RUNTEST+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 if test -n "$RUNTEST"; then
10778 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10779 else
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10782 do
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_prog_RUNTEST="$ac_prog"
10788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10790 fi
10791 done
10792 done
10793 IFS=$as_save_IFS
10794
10795 fi
10796 fi
10797 RUNTEST=$ac_cv_prog_RUNTEST
10798 if test -n "$RUNTEST"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10800 $as_echo "$RUNTEST" >&6; }
10801 else
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10804 fi
10805
10806
10807 test -n "$RUNTEST" && break
10808 done
10809 test -n "$RUNTEST" || RUNTEST="runtest"
10810
10811 case " $configdirs " in
10812 *" dejagnu "*)
10813 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10814 ;;
10815 esac
10816
10817
10818 # Host tools.
10819 ncn_tool_prefix=
10820 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10821 ncn_target_tool_prefix=
10822 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10823
10824
10825
10826 if test -n "$AR"; then
10827 ac_cv_prog_AR=$AR
10828 elif test -n "$ac_cv_prog_AR"; then
10829 AR=$ac_cv_prog_AR
10830 fi
10831
10832 if test -n "$ac_cv_prog_AR"; then
10833 for ncn_progname in ar; do
10834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10835 set dummy ${ncn_progname}; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if ${ac_cv_prog_AR+:} false; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 if test -n "$AR"; then
10842 ac_cv_prog_AR="$AR" # Let the user override the test.
10843 else
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10846 do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_AR="${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855 done
10856 done
10857 IFS=$as_save_IFS
10858
10859 fi
10860 fi
10861 AR=$ac_cv_prog_AR
10862 if test -n "$AR"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10864 $as_echo "$AR" >&6; }
10865 else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10868 fi
10869
10870
10871 done
10872 fi
10873
10874 for ncn_progname in ar; do
10875 if test -n "$ncn_tool_prefix"; then
10876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_prog_AR+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 if test -n "$AR"; then
10884 ac_cv_prog_AR="$AR" # Let the user override the test.
10885 else
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10888 do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897 done
10898 done
10899 IFS=$as_save_IFS
10900
10901 fi
10902 fi
10903 AR=$ac_cv_prog_AR
10904 if test -n "$AR"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10906 $as_echo "$AR" >&6; }
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10910 fi
10911
10912
10913 fi
10914 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10916 set dummy ${ncn_progname}; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10918 $as_echo_n "checking for $ac_word... " >&6; }
10919 if ${ac_cv_prog_AR+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 if test -n "$AR"; then
10923 ac_cv_prog_AR="$AR" # Let the user override the test.
10924 else
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928 IFS=$as_save_IFS
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_prog_AR="${ncn_progname}"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934 break 2
10935 fi
10936 done
10937 done
10938 IFS=$as_save_IFS
10939
10940 fi
10941 fi
10942 AR=$ac_cv_prog_AR
10943 if test -n "$AR"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10945 $as_echo "$AR" >&6; }
10946 else
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10949 fi
10950
10951
10952 fi
10953 test -n "$ac_cv_prog_AR" && break
10954 done
10955
10956 if test -z "$ac_cv_prog_AR" ; then
10957 set dummy ar
10958 if test $build = $host ; then
10959 AR="$2"
10960 else
10961 AR="${ncn_tool_prefix}$2"
10962 fi
10963 fi
10964
10965
10966
10967 if test -n "$AS"; then
10968 ac_cv_prog_AS=$AS
10969 elif test -n "$ac_cv_prog_AS"; then
10970 AS=$ac_cv_prog_AS
10971 fi
10972
10973 if test -n "$ac_cv_prog_AS"; then
10974 for ncn_progname in as; do
10975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10976 set dummy ${ncn_progname}; ac_word=$2
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978 $as_echo_n "checking for $ac_word... " >&6; }
10979 if ${ac_cv_prog_AS+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 if test -n "$AS"; then
10983 ac_cv_prog_AS="$AS" # Let the user override the test.
10984 else
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10987 do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_prog_AS="${ncn_progname}"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996 done
10997 done
10998 IFS=$as_save_IFS
10999
11000 fi
11001 fi
11002 AS=$ac_cv_prog_AS
11003 if test -n "$AS"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11005 $as_echo "$AS" >&6; }
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11009 fi
11010
11011
11012 done
11013 fi
11014
11015 for ncn_progname in as; do
11016 if test -n "$ncn_tool_prefix"; then
11017 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11018 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_prog_AS+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 if test -n "$AS"; then
11025 ac_cv_prog_AS="$AS" # Let the user override the test.
11026 else
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11029 do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 break 2
11037 fi
11038 done
11039 done
11040 IFS=$as_save_IFS
11041
11042 fi
11043 fi
11044 AS=$ac_cv_prog_AS
11045 if test -n "$AS"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11047 $as_echo "$AS" >&6; }
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11051 fi
11052
11053
11054 fi
11055 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11057 set dummy ${ncn_progname}; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_prog_AS+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 if test -n "$AS"; then
11064 ac_cv_prog_AS="$AS" # Let the user override the test.
11065 else
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11068 do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073 ac_cv_prog_AS="${ncn_progname}"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 break 2
11076 fi
11077 done
11078 done
11079 IFS=$as_save_IFS
11080
11081 fi
11082 fi
11083 AS=$ac_cv_prog_AS
11084 if test -n "$AS"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11086 $as_echo "$AS" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11090 fi
11091
11092
11093 fi
11094 test -n "$ac_cv_prog_AS" && break
11095 done
11096
11097 if test -z "$ac_cv_prog_AS" ; then
11098 set dummy as
11099 if test $build = $host ; then
11100 AS="$2"
11101 else
11102 AS="${ncn_tool_prefix}$2"
11103 fi
11104 fi
11105
11106
11107
11108 if test -n "$DLLTOOL"; then
11109 ac_cv_prog_DLLTOOL=$DLLTOOL
11110 elif test -n "$ac_cv_prog_DLLTOOL"; then
11111 DLLTOOL=$ac_cv_prog_DLLTOOL
11112 fi
11113
11114 if test -n "$ac_cv_prog_DLLTOOL"; then
11115 for ncn_progname in dlltool; do
11116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11117 set dummy ${ncn_progname}; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if ${ac_cv_prog_DLLTOOL+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11125 else
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129 IFS=$as_save_IFS
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_DLLTOOL="${ncn_progname}"
11134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135 break 2
11136 fi
11137 done
11138 done
11139 IFS=$as_save_IFS
11140
11141 fi
11142 fi
11143 DLLTOOL=$ac_cv_prog_DLLTOOL
11144 if test -n "$DLLTOOL"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11146 $as_echo "$DLLTOOL" >&6; }
11147 else
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 $as_echo "no" >&6; }
11150 fi
11151
11152
11153 done
11154 fi
11155
11156 for ncn_progname in dlltool; do
11157 if test -n "$ncn_tool_prefix"; then
11158 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11159 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if ${ac_cv_prog_DLLTOOL+:} false; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 if test -n "$DLLTOOL"; then
11166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179 done
11180 done
11181 IFS=$as_save_IFS
11182
11183 fi
11184 fi
11185 DLLTOOL=$ac_cv_prog_DLLTOOL
11186 if test -n "$DLLTOOL"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11188 $as_echo "$DLLTOOL" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11192 fi
11193
11194
11195 fi
11196 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198 set dummy ${ncn_progname}; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if ${ac_cv_prog_DLLTOOL+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test -n "$DLLTOOL"; then
11205 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214 ac_cv_prog_DLLTOOL="${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218 done
11219 done
11220 IFS=$as_save_IFS
11221
11222 fi
11223 fi
11224 DLLTOOL=$ac_cv_prog_DLLTOOL
11225 if test -n "$DLLTOOL"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11227 $as_echo "$DLLTOOL" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 fi
11232
11233
11234 fi
11235 test -n "$ac_cv_prog_DLLTOOL" && break
11236 done
11237
11238 if test -z "$ac_cv_prog_DLLTOOL" ; then
11239 set dummy dlltool
11240 if test $build = $host ; then
11241 DLLTOOL="$2"
11242 else
11243 DLLTOOL="${ncn_tool_prefix}$2"
11244 fi
11245 fi
11246
11247
11248
11249 if test -n "$DSYMUTIL"; then
11250 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11251 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11252 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11253 fi
11254
11255 if test -n "$ac_cv_prog_DSYMUTIL"; then
11256 for ncn_progname in dsymutil; do
11257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11258 set dummy ${ncn_progname}; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11266 else
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11269 do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11277 fi
11278 done
11279 done
11280 IFS=$as_save_IFS
11281
11282 fi
11283 fi
11284 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11285 if test -n "$DSYMUTIL"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11287 $as_echo "$DSYMUTIL" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11291 fi
11292
11293
11294 done
11295 fi
11296
11297 for ncn_progname in dsymutil; do
11298 if test -n "$ncn_tool_prefix"; then
11299 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11300 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 if test -n "$DSYMUTIL"; then
11307 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11308 else
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11311 do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320 done
11321 done
11322 IFS=$as_save_IFS
11323
11324 fi
11325 fi
11326 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11327 if test -n "$DSYMUTIL"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11329 $as_echo "$DSYMUTIL" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 fi
11334
11335
11336 fi
11337 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11339 set dummy ${ncn_progname}; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 if test -n "$DSYMUTIL"; then
11346 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11347 else
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11350 do
11351 IFS=$as_save_IFS
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
11354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11355 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11357 break 2
11358 fi
11359 done
11360 done
11361 IFS=$as_save_IFS
11362
11363 fi
11364 fi
11365 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11366 if test -n "$DSYMUTIL"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11368 $as_echo "$DSYMUTIL" >&6; }
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11372 fi
11373
11374
11375 fi
11376 test -n "$ac_cv_prog_DSYMUTIL" && break
11377 done
11378
11379 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11380 set dummy dsymutil
11381 if test $build = $host ; then
11382 DSYMUTIL="$2"
11383 else
11384 DSYMUTIL="${ncn_tool_prefix}$2"
11385 fi
11386 fi
11387
11388
11389
11390 if test -n "$LD"; then
11391 ac_cv_prog_LD=$LD
11392 elif test -n "$ac_cv_prog_LD"; then
11393 LD=$ac_cv_prog_LD
11394 fi
11395
11396 if test -n "$ac_cv_prog_LD"; then
11397 for ncn_progname in ld; do
11398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11399 set dummy ${ncn_progname}; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_prog_LD+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test -n "$LD"; then
11406 ac_cv_prog_LD="$LD" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_prog_LD="${ncn_progname}"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421 IFS=$as_save_IFS
11422
11423 fi
11424 fi
11425 LD=$ac_cv_prog_LD
11426 if test -n "$LD"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11428 $as_echo "$LD" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435 done
11436 fi
11437
11438 for ncn_progname in ld; do
11439 if test -n "$ncn_tool_prefix"; then
11440 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11441 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_prog_LD+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test -n "$LD"; then
11448 ac_cv_prog_LD="$LD" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459 break 2
11460 fi
11461 done
11462 done
11463 IFS=$as_save_IFS
11464
11465 fi
11466 fi
11467 LD=$ac_cv_prog_LD
11468 if test -n "$LD"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11470 $as_echo "$LD" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476
11477 fi
11478 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482 $as_echo_n "checking for $ac_word... " >&6; }
11483 if ${ac_cv_prog_LD+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 if test -n "$LD"; then
11487 ac_cv_prog_LD="$LD" # Let the user override the test.
11488 else
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_LD="${ncn_progname}"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11499 fi
11500 done
11501 done
11502 IFS=$as_save_IFS
11503
11504 fi
11505 fi
11506 LD=$ac_cv_prog_LD
11507 if test -n "$LD"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11509 $as_echo "$LD" >&6; }
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 fi
11514
11515
11516 fi
11517 test -n "$ac_cv_prog_LD" && break
11518 done
11519
11520 if test -z "$ac_cv_prog_LD" ; then
11521 set dummy ld
11522 if test $build = $host ; then
11523 LD="$2"
11524 else
11525 LD="${ncn_tool_prefix}$2"
11526 fi
11527 fi
11528
11529
11530
11531 if test -n "$LIPO"; then
11532 ac_cv_prog_LIPO=$LIPO
11533 elif test -n "$ac_cv_prog_LIPO"; then
11534 LIPO=$ac_cv_prog_LIPO
11535 fi
11536
11537 if test -n "$ac_cv_prog_LIPO"; then
11538 for ncn_progname in lipo; do
11539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11540 set dummy ${ncn_progname}; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if ${ac_cv_prog_LIPO+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11548 else
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11551 do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_LIPO="${ncn_progname}"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560 done
11561 done
11562 IFS=$as_save_IFS
11563
11564 fi
11565 fi
11566 LIPO=$ac_cv_prog_LIPO
11567 if test -n "$LIPO"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11569 $as_echo "$LIPO" >&6; }
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 $as_echo "no" >&6; }
11573 fi
11574
11575
11576 done
11577 fi
11578
11579 for ncn_progname in lipo; do
11580 if test -n "$ncn_tool_prefix"; then
11581 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if ${ac_cv_prog_LIPO+:} false; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$LIPO"; then
11589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602 done
11603 done
11604 IFS=$as_save_IFS
11605
11606 fi
11607 fi
11608 LIPO=$ac_cv_prog_LIPO
11609 if test -n "$LIPO"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11611 $as_echo "$LIPO" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616
11617
11618 fi
11619 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11621 set dummy ${ncn_progname}; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_prog_LIPO+:} false; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 if test -n "$LIPO"; then
11628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11629 else
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633 IFS=$as_save_IFS
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_prog_LIPO="${ncn_progname}"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11639 break 2
11640 fi
11641 done
11642 done
11643 IFS=$as_save_IFS
11644
11645 fi
11646 fi
11647 LIPO=$ac_cv_prog_LIPO
11648 if test -n "$LIPO"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11650 $as_echo "$LIPO" >&6; }
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 fi
11655
11656
11657 fi
11658 test -n "$ac_cv_prog_LIPO" && break
11659 done
11660
11661 if test -z "$ac_cv_prog_LIPO" ; then
11662 set dummy lipo
11663 if test $build = $host ; then
11664 LIPO="$2"
11665 else
11666 LIPO="${ncn_tool_prefix}$2"
11667 fi
11668 fi
11669
11670
11671
11672 if test -n "$NM"; then
11673 ac_cv_prog_NM=$NM
11674 elif test -n "$ac_cv_prog_NM"; then
11675 NM=$ac_cv_prog_NM
11676 fi
11677
11678 if test -n "$ac_cv_prog_NM"; then
11679 for ncn_progname in nm; do
11680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11681 set dummy ${ncn_progname}; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_prog_NM+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test -n "$NM"; then
11688 ac_cv_prog_NM="$NM" # Let the user override the test.
11689 else
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11692 do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_NM="${ncn_progname}"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701 done
11702 done
11703 IFS=$as_save_IFS
11704
11705 fi
11706 fi
11707 NM=$ac_cv_prog_NM
11708 if test -n "$NM"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11710 $as_echo "$NM" >&6; }
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 $as_echo "no" >&6; }
11714 fi
11715
11716
11717 done
11718 fi
11719
11720 for ncn_progname in nm; do
11721 if test -n "$ncn_tool_prefix"; then
11722 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11723 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_prog_NM+:} false; then :
11727 $as_echo_n "(cached) " >&6
11728 else
11729 if test -n "$NM"; then
11730 ac_cv_prog_NM="$NM" # Let the user override the test.
11731 else
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11734 do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 break 2
11742 fi
11743 done
11744 done
11745 IFS=$as_save_IFS
11746
11747 fi
11748 fi
11749 NM=$ac_cv_prog_NM
11750 if test -n "$NM"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11752 $as_echo "$NM" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11756 fi
11757
11758
11759 fi
11760 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11762 set dummy ${ncn_progname}; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_NM+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 if test -n "$NM"; then
11769 ac_cv_prog_NM="$NM" # Let the user override the test.
11770 else
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_NM="${ncn_progname}"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11781 fi
11782 done
11783 done
11784 IFS=$as_save_IFS
11785
11786 fi
11787 fi
11788 NM=$ac_cv_prog_NM
11789 if test -n "$NM"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11791 $as_echo "$NM" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796
11797
11798 fi
11799 test -n "$ac_cv_prog_NM" && break
11800 done
11801
11802 if test -z "$ac_cv_prog_NM" ; then
11803 set dummy nm
11804 if test $build = $host ; then
11805 NM="$2"
11806 else
11807 NM="${ncn_tool_prefix}$2"
11808 fi
11809 fi
11810
11811
11812
11813 if test -n "$RANLIB"; then
11814 ac_cv_prog_RANLIB=$RANLIB
11815 elif test -n "$ac_cv_prog_RANLIB"; then
11816 RANLIB=$ac_cv_prog_RANLIB
11817 fi
11818
11819 if test -n "$ac_cv_prog_RANLIB"; then
11820 for ncn_progname in ranlib; do
11821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11822 set dummy ${ncn_progname}; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824 $as_echo_n "checking for $ac_word... " >&6; }
11825 if ${ac_cv_prog_RANLIB+:} false; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11830 else
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838 ac_cv_prog_RANLIB="${ncn_progname}"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840 break 2
11841 fi
11842 done
11843 done
11844 IFS=$as_save_IFS
11845
11846 fi
11847 fi
11848 RANLIB=$ac_cv_prog_RANLIB
11849 if test -n "$RANLIB"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11851 $as_echo "$RANLIB" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 fi
11856
11857
11858 done
11859 fi
11860
11861 for ncn_progname in ranlib; do
11862 if test -n "$ncn_tool_prefix"; then
11863 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11864 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866 $as_echo_n "checking for $ac_word... " >&6; }
11867 if ${ac_cv_prog_RANLIB+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 if test -n "$RANLIB"; then
11871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11872 else
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 break 2
11883 fi
11884 done
11885 done
11886 IFS=$as_save_IFS
11887
11888 fi
11889 fi
11890 RANLIB=$ac_cv_prog_RANLIB
11891 if test -n "$RANLIB"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11893 $as_echo "$RANLIB" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897 fi
11898
11899
11900 fi
11901 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11903 set dummy ${ncn_progname}; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if ${ac_cv_prog_RANLIB+:} false; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$RANLIB"; then
11910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_RANLIB="${ncn_progname}"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 fi
11928 fi
11929 RANLIB=$ac_cv_prog_RANLIB
11930 if test -n "$RANLIB"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11932 $as_echo "$RANLIB" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938
11939 fi
11940 test -n "$ac_cv_prog_RANLIB" && break
11941 done
11942
11943 if test -z "$ac_cv_prog_RANLIB" ; then
11944 RANLIB="true"
11945 fi
11946
11947
11948
11949 if test -n "$STRIP"; then
11950 ac_cv_prog_STRIP=$STRIP
11951 elif test -n "$ac_cv_prog_STRIP"; then
11952 STRIP=$ac_cv_prog_STRIP
11953 fi
11954
11955 if test -n "$ac_cv_prog_STRIP"; then
11956 for ncn_progname in strip; do
11957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11958 set dummy ${ncn_progname}; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_prog_STRIP+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11966 else
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_STRIP="${ncn_progname}"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 break 2
11977 fi
11978 done
11979 done
11980 IFS=$as_save_IFS
11981
11982 fi
11983 fi
11984 STRIP=$ac_cv_prog_STRIP
11985 if test -n "$STRIP"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11987 $as_echo "$STRIP" >&6; }
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992
11993
11994 done
11995 fi
11996
11997 for ncn_progname in strip; do
11998 if test -n "$ncn_tool_prefix"; then
11999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_prog_STRIP+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 if test -n "$STRIP"; then
12007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12008 else
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 break 2
12019 fi
12020 done
12021 done
12022 IFS=$as_save_IFS
12023
12024 fi
12025 fi
12026 STRIP=$ac_cv_prog_STRIP
12027 if test -n "$STRIP"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12029 $as_echo "$STRIP" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033 fi
12034
12035
12036 fi
12037 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041 $as_echo_n "checking for $ac_word... " >&6; }
12042 if ${ac_cv_prog_STRIP+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 if test -n "$STRIP"; then
12046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12047 else
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_STRIP="${ncn_progname}"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061 IFS=$as_save_IFS
12062
12063 fi
12064 fi
12065 STRIP=$ac_cv_prog_STRIP
12066 if test -n "$STRIP"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12068 $as_echo "$STRIP" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 fi
12073
12074
12075 fi
12076 test -n "$ac_cv_prog_STRIP" && break
12077 done
12078
12079 if test -z "$ac_cv_prog_STRIP" ; then
12080 STRIP="true"
12081 fi
12082
12083
12084
12085 if test -n "$WINDRES"; then
12086 ac_cv_prog_WINDRES=$WINDRES
12087 elif test -n "$ac_cv_prog_WINDRES"; then
12088 WINDRES=$ac_cv_prog_WINDRES
12089 fi
12090
12091 if test -n "$ac_cv_prog_WINDRES"; then
12092 for ncn_progname in windres; do
12093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12094 set dummy ${ncn_progname}; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if ${ac_cv_prog_WINDRES+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12102 else
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_WINDRES="${ncn_progname}"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12117
12118 fi
12119 fi
12120 WINDRES=$ac_cv_prog_WINDRES
12121 if test -n "$WINDRES"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12123 $as_echo "$WINDRES" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129
12130 done
12131 fi
12132
12133 for ncn_progname in windres; do
12134 if test -n "$ncn_tool_prefix"; then
12135 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138 $as_echo_n "checking for $ac_word... " >&6; }
12139 if ${ac_cv_prog_WINDRES+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test -n "$WINDRES"; then
12143 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12144 else
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12147 do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156 done
12157 done
12158 IFS=$as_save_IFS
12159
12160 fi
12161 fi
12162 WINDRES=$ac_cv_prog_WINDRES
12163 if test -n "$WINDRES"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12165 $as_echo "$WINDRES" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12169 fi
12170
12171
12172 fi
12173 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175 set dummy ${ncn_progname}; 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_prog_WINDRES+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test -n "$WINDRES"; then
12182 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12186 do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_prog_WINDRES="${ncn_progname}"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12194 fi
12195 done
12196 done
12197 IFS=$as_save_IFS
12198
12199 fi
12200 fi
12201 WINDRES=$ac_cv_prog_WINDRES
12202 if test -n "$WINDRES"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12204 $as_echo "$WINDRES" >&6; }
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 fi
12209
12210
12211 fi
12212 test -n "$ac_cv_prog_WINDRES" && break
12213 done
12214
12215 if test -z "$ac_cv_prog_WINDRES" ; then
12216 set dummy windres
12217 if test $build = $host ; then
12218 WINDRES="$2"
12219 else
12220 WINDRES="${ncn_tool_prefix}$2"
12221 fi
12222 fi
12223
12224
12225
12226 if test -n "$WINDMC"; then
12227 ac_cv_prog_WINDMC=$WINDMC
12228 elif test -n "$ac_cv_prog_WINDMC"; then
12229 WINDMC=$ac_cv_prog_WINDMC
12230 fi
12231
12232 if test -n "$ac_cv_prog_WINDMC"; then
12233 for ncn_progname in windmc; do
12234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12235 set dummy ${ncn_progname}; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_WINDMC+:} false; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_prog_WINDMC="${ncn_progname}"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12254 fi
12255 done
12256 done
12257 IFS=$as_save_IFS
12258
12259 fi
12260 fi
12261 WINDMC=$ac_cv_prog_WINDMC
12262 if test -n "$WINDMC"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12264 $as_echo "$WINDMC" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12268 fi
12269
12270
12271 done
12272 fi
12273
12274 for ncn_progname in windmc; do
12275 if test -n "$ncn_tool_prefix"; then
12276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12277 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if ${ac_cv_prog_WINDMC+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if test -n "$WINDMC"; then
12284 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12288 do
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12293 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 break 2
12296 fi
12297 done
12298 done
12299 IFS=$as_save_IFS
12300
12301 fi
12302 fi
12303 WINDMC=$ac_cv_prog_WINDMC
12304 if test -n "$WINDMC"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12306 $as_echo "$WINDMC" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 fi
12311
12312
12313 fi
12314 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316 set dummy ${ncn_progname}; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if ${ac_cv_prog_WINDMC+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test -n "$WINDMC"; then
12323 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12324 else
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12327 do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_WINDMC="${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 break 2
12335 fi
12336 done
12337 done
12338 IFS=$as_save_IFS
12339
12340 fi
12341 fi
12342 WINDMC=$ac_cv_prog_WINDMC
12343 if test -n "$WINDMC"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12345 $as_echo "$WINDMC" >&6; }
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12349 fi
12350
12351
12352 fi
12353 test -n "$ac_cv_prog_WINDMC" && break
12354 done
12355
12356 if test -z "$ac_cv_prog_WINDMC" ; then
12357 set dummy windmc
12358 if test $build = $host ; then
12359 WINDMC="$2"
12360 else
12361 WINDMC="${ncn_tool_prefix}$2"
12362 fi
12363 fi
12364
12365
12366
12367 if test -n "$OBJCOPY"; then
12368 ac_cv_prog_OBJCOPY=$OBJCOPY
12369 elif test -n "$ac_cv_prog_OBJCOPY"; then
12370 OBJCOPY=$ac_cv_prog_OBJCOPY
12371 fi
12372
12373 if test -n "$ac_cv_prog_OBJCOPY"; then
12374 for ncn_progname in objcopy; do
12375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12376 set dummy ${ncn_progname}; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if ${ac_cv_prog_OBJCOPY+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12387 do
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 ac_cv_prog_OBJCOPY="${ncn_progname}"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12395 fi
12396 done
12397 done
12398 IFS=$as_save_IFS
12399
12400 fi
12401 fi
12402 OBJCOPY=$ac_cv_prog_OBJCOPY
12403 if test -n "$OBJCOPY"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12405 $as_echo "$OBJCOPY" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12409 fi
12410
12411
12412 done
12413 fi
12414
12415 for ncn_progname in objcopy; do
12416 if test -n "$ncn_tool_prefix"; then
12417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12420 $as_echo_n "checking for $ac_word... " >&6; }
12421 if ${ac_cv_prog_OBJCOPY+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 if test -n "$OBJCOPY"; then
12425 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12426 else
12427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH
12429 do
12430 IFS=$as_save_IFS
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
12433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12434 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 break 2
12437 fi
12438 done
12439 done
12440 IFS=$as_save_IFS
12441
12442 fi
12443 fi
12444 OBJCOPY=$ac_cv_prog_OBJCOPY
12445 if test -n "$OBJCOPY"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12447 $as_echo "$OBJCOPY" >&6; }
12448 else
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12450 $as_echo "no" >&6; }
12451 fi
12452
12453
12454 fi
12455 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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_OBJCOPY+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 if test -n "$OBJCOPY"; then
12464 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
12484 if test -n "$OBJCOPY"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12486 $as_echo "$OBJCOPY" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12490 fi
12491
12492
12493 fi
12494 test -n "$ac_cv_prog_OBJCOPY" && break
12495 done
12496
12497 if test -z "$ac_cv_prog_OBJCOPY" ; then
12498 set dummy objcopy
12499 if test $build = $host ; then
12500 OBJCOPY="$2"
12501 else
12502 OBJCOPY="${ncn_tool_prefix}$2"
12503 fi
12504 fi
12505
12506
12507
12508 if test -n "$OBJDUMP"; then
12509 ac_cv_prog_OBJDUMP=$OBJDUMP
12510 elif test -n "$ac_cv_prog_OBJDUMP"; then
12511 OBJDUMP=$ac_cv_prog_OBJDUMP
12512 fi
12513
12514 if test -n "$ac_cv_prog_OBJDUMP"; then
12515 for ncn_progname in objdump; do
12516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12517 set dummy ${ncn_progname}; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_prog_OBJDUMP+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12525 else
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12528 do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_prog_OBJDUMP="${ncn_progname}"
12534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535 break 2
12536 fi
12537 done
12538 done
12539 IFS=$as_save_IFS
12540
12541 fi
12542 fi
12543 OBJDUMP=$ac_cv_prog_OBJDUMP
12544 if test -n "$OBJDUMP"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12546 $as_echo "$OBJDUMP" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 fi
12551
12552
12553 done
12554 fi
12555
12556 for ncn_progname in objdump; do
12557 if test -n "$ncn_tool_prefix"; then
12558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12559 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if ${ac_cv_prog_OBJDUMP+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 if test -n "$OBJDUMP"; then
12566 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12567 else
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12570 do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12578 fi
12579 done
12580 done
12581 IFS=$as_save_IFS
12582
12583 fi
12584 fi
12585 OBJDUMP=$ac_cv_prog_OBJDUMP
12586 if test -n "$OBJDUMP"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12588 $as_echo "$OBJDUMP" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592 fi
12593
12594
12595 fi
12596 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598 set dummy ${ncn_progname}; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if ${ac_cv_prog_OBJDUMP+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614 ac_cv_prog_OBJDUMP="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618 done
12619 done
12620 IFS=$as_save_IFS
12621
12622 fi
12623 fi
12624 OBJDUMP=$ac_cv_prog_OBJDUMP
12625 if test -n "$OBJDUMP"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12627 $as_echo "$OBJDUMP" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 fi
12632
12633
12634 fi
12635 test -n "$ac_cv_prog_OBJDUMP" && break
12636 done
12637
12638 if test -z "$ac_cv_prog_OBJDUMP" ; then
12639 set dummy objdump
12640 if test $build = $host ; then
12641 OBJDUMP="$2"
12642 else
12643 OBJDUMP="${ncn_tool_prefix}$2"
12644 fi
12645 fi
12646
12647
12648
12649 if test -n "$OTOOL"; then
12650 ac_cv_prog_OTOOL=$OTOOL
12651 elif test -n "$ac_cv_prog_OTOOL"; then
12652 OTOOL=$ac_cv_prog_OTOOL
12653 fi
12654
12655 if test -n "$ac_cv_prog_OTOOL"; then
12656 for ncn_progname in otool; do
12657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12658 set dummy ${ncn_progname}; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if ${ac_cv_prog_OTOOL+:} false; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12666 else
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12669 do
12670 IFS=$as_save_IFS
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674 ac_cv_prog_OTOOL="${ncn_progname}"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676 break 2
12677 fi
12678 done
12679 done
12680 IFS=$as_save_IFS
12681
12682 fi
12683 fi
12684 OTOOL=$ac_cv_prog_OTOOL
12685 if test -n "$OTOOL"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12687 $as_echo "$OTOOL" >&6; }
12688 else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690 $as_echo "no" >&6; }
12691 fi
12692
12693
12694 done
12695 fi
12696
12697 for ncn_progname in otool; do
12698 if test -n "$ncn_tool_prefix"; then
12699 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12700 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if ${ac_cv_prog_OTOOL+:} false; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 if test -n "$OTOOL"; then
12707 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12708 else
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12711 do
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12719 fi
12720 done
12721 done
12722 IFS=$as_save_IFS
12723
12724 fi
12725 fi
12726 OTOOL=$ac_cv_prog_OTOOL
12727 if test -n "$OTOOL"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12729 $as_echo "$OTOOL" >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733 fi
12734
12735
12736 fi
12737 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12739 set dummy ${ncn_progname}; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if ${ac_cv_prog_OTOOL+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 if test -n "$OTOOL"; then
12746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12747 else
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12750 do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755 ac_cv_prog_OTOOL="${ncn_progname}"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759 done
12760 done
12761 IFS=$as_save_IFS
12762
12763 fi
12764 fi
12765 OTOOL=$ac_cv_prog_OTOOL
12766 if test -n "$OTOOL"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12768 $as_echo "$OTOOL" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772 fi
12773
12774
12775 fi
12776 test -n "$ac_cv_prog_OTOOL" && break
12777 done
12778
12779 if test -z "$ac_cv_prog_OTOOL" ; then
12780 set dummy otool
12781 if test $build = $host ; then
12782 OTOOL="$2"
12783 else
12784 OTOOL="${ncn_tool_prefix}$2"
12785 fi
12786 fi
12787
12788
12789
12790 if test -n "$READELF"; then
12791 ac_cv_prog_READELF=$READELF
12792 elif test -n "$ac_cv_prog_READELF"; then
12793 READELF=$ac_cv_prog_READELF
12794 fi
12795
12796 if test -n "$ac_cv_prog_READELF"; then
12797 for ncn_progname in readelf; do
12798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12799 set dummy ${ncn_progname}; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_prog_READELF+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 if test -n "$READELF"; then
12806 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12807 else
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12810 do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_prog_READELF="${ncn_progname}"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819 done
12820 done
12821 IFS=$as_save_IFS
12822
12823 fi
12824 fi
12825 READELF=$ac_cv_prog_READELF
12826 if test -n "$READELF"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12828 $as_echo "$READELF" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833
12834
12835 done
12836 fi
12837
12838 for ncn_progname in readelf; do
12839 if test -n "$ncn_tool_prefix"; then
12840 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12841 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if ${ac_cv_prog_READELF+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test -n "$READELF"; then
12848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 fi
12866 fi
12867 READELF=$ac_cv_prog_READELF
12868 if test -n "$READELF"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12870 $as_echo "$READELF" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875
12876
12877 fi
12878 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12880 set dummy ${ncn_progname}; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_prog_READELF+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 if test -n "$READELF"; then
12887 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12888 else
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12896 ac_cv_prog_READELF="${ncn_progname}"
12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12899 fi
12900 done
12901 done
12902 IFS=$as_save_IFS
12903
12904 fi
12905 fi
12906 READELF=$ac_cv_prog_READELF
12907 if test -n "$READELF"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12909 $as_echo "$READELF" >&6; }
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12913 fi
12914
12915
12916 fi
12917 test -n "$ac_cv_prog_READELF" && break
12918 done
12919
12920 if test -z "$ac_cv_prog_READELF" ; then
12921 set dummy readelf
12922 if test $build = $host ; then
12923 READELF="$2"
12924 else
12925 READELF="${ncn_tool_prefix}$2"
12926 fi
12927 fi
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12938 $as_echo_n "checking for -plugin option... " >&6; }
12939
12940 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12941 plugin_option=
12942 for plugin in $plugin_names; do
12943 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12944 if test x$plugin_so = x$plugin; then
12945 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12946 fi
12947 if test x$plugin_so != x$plugin; then
12948 plugin_option="--plugin $plugin_so"
12949 break
12950 fi
12951 done
12952 if test -n "$ac_tool_prefix"; then
12953 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12954 set dummy ${ac_tool_prefix}ar; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12956 $as_echo_n "checking for $ac_word... " >&6; }
12957 if ${ac_cv_prog_AR+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 if test -n "$AR"; then
12961 ac_cv_prog_AR="$AR" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12965 do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_AR="${ac_tool_prefix}ar"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974 done
12975 done
12976 IFS=$as_save_IFS
12977
12978 fi
12979 fi
12980 AR=$ac_cv_prog_AR
12981 if test -n "$AR"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12983 $as_echo "$AR" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988
12989
12990 fi
12991 if test -z "$ac_cv_prog_AR"; then
12992 ac_ct_AR=$AR
12993 # Extract the first word of "ar", so it can be a program name with args.
12994 set dummy ar; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$ac_ct_AR"; then
13001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13005 do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13010 ac_cv_prog_ac_ct_AR="ar"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014 done
13015 done
13016 IFS=$as_save_IFS
13017
13018 fi
13019 fi
13020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13021 if test -n "$ac_ct_AR"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13023 $as_echo "$ac_ct_AR" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027 fi
13028
13029 if test "x$ac_ct_AR" = x; then
13030 AR=""
13031 else
13032 case $cross_compiling:$ac_tool_warned in
13033 yes:)
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13036 ac_tool_warned=yes ;;
13037 esac
13038 AR=$ac_ct_AR
13039 fi
13040 else
13041 AR="$ac_cv_prog_AR"
13042 fi
13043
13044 if test "${AR}" = "" ; then
13045 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13046 fi
13047 touch conftest.c
13048 ${AR} $plugin_option rc conftest.a conftest.c
13049 if test "$?" != 0; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13051 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13052 plugin_option=
13053 fi
13054 rm -f conftest.*
13055 if test -n "$plugin_option"; then
13056 PLUGIN_OPTION="$plugin_option"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13058 $as_echo "$plugin_option" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13062 fi
13063
13064 AR_PLUGIN_OPTION=
13065 RANLIB_PLUGIN_OPTION=
13066 if test -n "$PLUGIN_OPTION"; then
13067 if $AR --help 2>&1 | grep -q "\--plugin"; then
13068 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13069 fi
13070 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13071 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13072 fi
13073 fi
13074
13075
13076
13077 # Target tools.
13078
13079 # Check whether --with-build-time-tools was given.
13080 if test "${with_build_time_tools+set}" = set; then :
13081 withval=$with_build_time_tools; case x"$withval" in
13082 x/*) ;;
13083 *)
13084 with_build_time_tools=
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13086 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13087 ;;
13088 esac
13089 else
13090 with_build_time_tools=
13091 fi
13092
13093
13094
13095
13096 if test -n "$CC_FOR_TARGET"; then
13097 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13098 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13099 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13100 fi
13101
13102 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13103 for ncn_progname in cc gcc; do
13104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13105 set dummy ${ncn_progname}; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 if test -n "$CC_FOR_TARGET"; then
13112 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13113 else
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13124 fi
13125 done
13126 done
13127 IFS=$as_save_IFS
13128
13129 fi
13130 fi
13131 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13132 if test -n "$CC_FOR_TARGET"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13134 $as_echo "$CC_FOR_TARGET" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139
13140
13141 done
13142 fi
13143
13144 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13145 for ncn_progname in cc gcc; do
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13147 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13148 if test -x $with_build_time_tools/${ncn_progname}; then
13149 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13151 $as_echo "yes" >&6; }
13152 break
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 fi
13157 done
13158 fi
13159
13160 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13161 for ncn_progname in cc gcc; do
13162 if test -n "$ncn_target_tool_prefix"; then
13163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 if test -n "$CC_FOR_TARGET"; then
13171 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13172 else
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13175 do
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13183 fi
13184 done
13185 done
13186 IFS=$as_save_IFS
13187
13188 fi
13189 fi
13190 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13191 if test -n "$CC_FOR_TARGET"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13193 $as_echo "$CC_FOR_TARGET" >&6; }
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197 fi
13198
13199
13200 fi
13201 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203 set dummy ${ncn_progname}; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 if test -n "$CC_FOR_TARGET"; then
13210 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13211 else
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13214 do
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13222 fi
13223 done
13224 done
13225 IFS=$as_save_IFS
13226
13227 fi
13228 fi
13229 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13230 if test -n "$CC_FOR_TARGET"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13232 $as_echo "$CC_FOR_TARGET" >&6; }
13233 else
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13236 fi
13237
13238
13239 fi
13240 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13241 done
13242 fi
13243
13244 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13245 set dummy cc gcc
13246 if test $build = $target ; then
13247 CC_FOR_TARGET="$2"
13248 else
13249 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13250 fi
13251 else
13252 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13253 fi
13254
13255
13256
13257 if test -n "$CXX_FOR_TARGET"; then
13258 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13259 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13260 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13261 fi
13262
13263 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13264 for ncn_progname in c++ g++ cxx gxx; do
13265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13266 set dummy ${ncn_progname}; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 if test -n "$CXX_FOR_TARGET"; then
13273 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13285 fi
13286 done
13287 done
13288 IFS=$as_save_IFS
13289
13290 fi
13291 fi
13292 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13293 if test -n "$CXX_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13295 $as_echo "$CXX_FOR_TARGET" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13299 fi
13300
13301
13302 done
13303 fi
13304
13305 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13306 for ncn_progname in c++ g++ cxx gxx; do
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13308 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13309 if test -x $with_build_time_tools/${ncn_progname}; then
13310 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13313 break
13314 else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317 fi
13318 done
13319 fi
13320
13321 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13322 for ncn_progname in c++ g++ cxx gxx; do
13323 if test -n "$ncn_target_tool_prefix"; then
13324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; 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_prog_CXX_FOR_TARGET+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test -n "$CXX_FOR_TARGET"; then
13332 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13333 else
13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335 for as_dir in $PATH
13336 do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 break 2
13344 fi
13345 done
13346 done
13347 IFS=$as_save_IFS
13348
13349 fi
13350 fi
13351 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13352 if test -n "$CXX_FOR_TARGET"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13354 $as_echo "$CXX_FOR_TARGET" >&6; }
13355 else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359
13360
13361 fi
13362 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13364 set dummy ${ncn_progname}; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test -n "$CXX_FOR_TARGET"; then
13371 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13383 fi
13384 done
13385 done
13386 IFS=$as_save_IFS
13387
13388 fi
13389 fi
13390 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13391 if test -n "$CXX_FOR_TARGET"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13393 $as_echo "$CXX_FOR_TARGET" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 fi
13398
13399
13400 fi
13401 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13402 done
13403 fi
13404
13405 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13406 set dummy c++ g++ cxx gxx
13407 if test $build = $target ; then
13408 CXX_FOR_TARGET="$2"
13409 else
13410 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13411 fi
13412 else
13413 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13414 fi
13415
13416
13417
13418 if test -n "$GCC_FOR_TARGET"; then
13419 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13420 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13421 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13422 fi
13423
13424 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13425 for ncn_progname in gcc; do
13426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427 set dummy ${ncn_progname}; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 if test -n "$GCC_FOR_TARGET"; then
13434 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13438 do
13439 IFS=$as_save_IFS
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 break 2
13446 fi
13447 done
13448 done
13449 IFS=$as_save_IFS
13450
13451 fi
13452 fi
13453 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13454 if test -n "$GCC_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13456 $as_echo "$GCC_FOR_TARGET" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13460 fi
13461
13462
13463 done
13464 fi
13465
13466 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13467 for ncn_progname in gcc; do
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13469 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13470 if test -x $with_build_time_tools/${ncn_progname}; then
13471 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13473 $as_echo "yes" >&6; }
13474 break
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13478 fi
13479 done
13480 fi
13481
13482 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13483 for ncn_progname in gcc; do
13484 if test -n "$ncn_target_tool_prefix"; then
13485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$GCC_FOR_TARGET"; then
13493 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13513 if test -n "$GCC_FOR_TARGET"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13515 $as_echo "$GCC_FOR_TARGET" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 fi
13523 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13525 set dummy ${ncn_progname}; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 if test -n "$GCC_FOR_TARGET"; then
13532 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13533 else
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13536 do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545 done
13546 done
13547 IFS=$as_save_IFS
13548
13549 fi
13550 fi
13551 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13552 if test -n "$GCC_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13554 $as_echo "$GCC_FOR_TARGET" >&6; }
13555 else
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 $as_echo "no" >&6; }
13558 fi
13559
13560
13561 fi
13562 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13563 done
13564 fi
13565
13566 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13567 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13568 else
13569 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13570 fi
13571
13572
13573
13574 if test -n "$GFORTRAN_FOR_TARGET"; then
13575 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13576 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13577 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13578 fi
13579
13580 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13581 for ncn_progname in gfortran; do
13582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13583 set dummy ${ncn_progname}; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13585 $as_echo_n "checking for $ac_word... " >&6; }
13586 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 if test -n "$GFORTRAN_FOR_TARGET"; then
13590 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13591 else
13592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13593 for as_dir in $PATH
13594 do
13595 IFS=$as_save_IFS
13596 test -z "$as_dir" && as_dir=.
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13599 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13601 break 2
13602 fi
13603 done
13604 done
13605 IFS=$as_save_IFS
13606
13607 fi
13608 fi
13609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13610 if test -n "$GFORTRAN_FOR_TARGET"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13612 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13616 fi
13617
13618
13619 done
13620 fi
13621
13622 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13623 for ncn_progname in gfortran; do
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13625 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13626 if test -x $with_build_time_tools/${ncn_progname}; then
13627 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13630 break
13631 else
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; }
13634 fi
13635 done
13636 fi
13637
13638 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13639 for ncn_progname in gfortran; do
13640 if test -n "$ncn_target_tool_prefix"; then
13641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; }
13645 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13646 $as_echo_n "(cached) " >&6
13647 else
13648 if test -n "$GFORTRAN_FOR_TARGET"; then
13649 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13650 else
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13653 do
13654 IFS=$as_save_IFS
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660 break 2
13661 fi
13662 done
13663 done
13664 IFS=$as_save_IFS
13665
13666 fi
13667 fi
13668 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13669 if test -n "$GFORTRAN_FOR_TARGET"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13671 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678 fi
13679 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13681 set dummy ${ncn_progname}; ac_word=$2
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683 $as_echo_n "checking for $ac_word... " >&6; }
13684 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 if test -n "$GFORTRAN_FOR_TARGET"; then
13688 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13689 else
13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in $PATH
13692 do
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13697 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 break 2
13700 fi
13701 done
13702 done
13703 IFS=$as_save_IFS
13704
13705 fi
13706 fi
13707 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13708 if test -n "$GFORTRAN_FOR_TARGET"; then
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13710 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13711 else
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713 $as_echo "no" >&6; }
13714 fi
13715
13716
13717 fi
13718 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13719 done
13720 fi
13721
13722 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13723 set dummy gfortran
13724 if test $build = $target ; then
13725 GFORTRAN_FOR_TARGET="$2"
13726 else
13727 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13728 fi
13729 else
13730 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13731 fi
13732
13733
13734
13735 if test -n "$GOC_FOR_TARGET"; then
13736 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13737 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13738 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13739 fi
13740
13741 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13742 for ncn_progname in gccgo; do
13743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13744 set dummy ${ncn_progname}; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$GOC_FOR_TARGET"; then
13751 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13755 do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764 done
13765 done
13766 IFS=$as_save_IFS
13767
13768 fi
13769 fi
13770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13771 if test -n "$GOC_FOR_TARGET"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13773 $as_echo "$GOC_FOR_TARGET" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13777 fi
13778
13779
13780 done
13781 fi
13782
13783 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13784 for ncn_progname in gccgo; do
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13787 if test -x $with_build_time_tools/${ncn_progname}; then
13788 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790 $as_echo "yes" >&6; }
13791 break
13792 else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13795 fi
13796 done
13797 fi
13798
13799 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13800 for ncn_progname in gccgo; do
13801 if test -n "$ncn_target_tool_prefix"; then
13802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$GOC_FOR_TARGET"; then
13810 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13830 if test -n "$GOC_FOR_TARGET"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13832 $as_echo "$GOC_FOR_TARGET" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838
13839 fi
13840 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13842 set dummy ${ncn_progname}; ac_word=$2
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13844 $as_echo_n "checking for $ac_word... " >&6; }
13845 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848 if test -n "$GOC_FOR_TARGET"; then
13849 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13850 else
13851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 for as_dir in $PATH
13853 do
13854 IFS=$as_save_IFS
13855 test -z "$as_dir" && as_dir=.
13856 for ac_exec_ext in '' $ac_executable_extensions; do
13857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13858 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13860 break 2
13861 fi
13862 done
13863 done
13864 IFS=$as_save_IFS
13865
13866 fi
13867 fi
13868 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13869 if test -n "$GOC_FOR_TARGET"; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13871 $as_echo "$GOC_FOR_TARGET" >&6; }
13872 else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 fi
13876
13877
13878 fi
13879 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13880 done
13881 fi
13882
13883 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13884 set dummy gccgo
13885 if test $build = $target ; then
13886 GOC_FOR_TARGET="$2"
13887 else
13888 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13889 fi
13890 else
13891 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13892 fi
13893
13894
13895
13896 if test -n "$GDC_FOR_TARGET"; then
13897 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13898 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13899 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13900 fi
13901
13902 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13903 for ncn_progname in gdc; do
13904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13905 set dummy ${ncn_progname}; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13907 $as_echo_n "checking for $ac_word... " >&6; }
13908 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 if test -n "$GDC_FOR_TARGET"; then
13912 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13913 else
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13916 do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925 done
13926 done
13927 IFS=$as_save_IFS
13928
13929 fi
13930 fi
13931 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13932 if test -n "$GDC_FOR_TARGET"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13934 $as_echo "$GDC_FOR_TARGET" >&6; }
13935 else
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939
13940
13941 done
13942 fi
13943
13944 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13945 for ncn_progname in gdc; do
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13947 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13948 if test -x $with_build_time_tools/${ncn_progname}; then
13949 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13951 $as_echo "yes" >&6; }
13952 break
13953 else
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13956 fi
13957 done
13958 fi
13959
13960 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13961 for ncn_progname in gdc; do
13962 if test -n "$ncn_target_tool_prefix"; then
13963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13964 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13966 $as_echo_n "checking for $ac_word... " >&6; }
13967 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 if test -n "$GDC_FOR_TARGET"; then
13971 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13972 else
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13975 do
13976 IFS=$as_save_IFS
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13982 break 2
13983 fi
13984 done
13985 done
13986 IFS=$as_save_IFS
13987
13988 fi
13989 fi
13990 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13991 if test -n "$GDC_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13993 $as_echo "$GDC_FOR_TARGET" >&6; }
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996 $as_echo "no" >&6; }
13997 fi
13998
13999
14000 fi
14001 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14003 set dummy ${ncn_progname}; ac_word=$2
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14005 $as_echo_n "checking for $ac_word... " >&6; }
14006 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 if test -n "$GDC_FOR_TARGET"; then
14010 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14011 else
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14014 do
14015 IFS=$as_save_IFS
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14019 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14021 break 2
14022 fi
14023 done
14024 done
14025 IFS=$as_save_IFS
14026
14027 fi
14028 fi
14029 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14030 if test -n "$GDC_FOR_TARGET"; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14032 $as_echo "$GDC_FOR_TARGET" >&6; }
14033 else
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14036 fi
14037
14038
14039 fi
14040 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14041 done
14042 fi
14043
14044 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14045 set dummy gdc
14046 if test $build = $target ; then
14047 GDC_FOR_TARGET="$2"
14048 else
14049 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14050 fi
14051 else
14052 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14053 fi
14054
14055
14056
14057 cat > conftest.c << \EOF
14058 #ifdef __GNUC__
14059 gcc_yay;
14060 #endif
14061 EOF
14062 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14063 have_gcc_for_target=yes
14064 else
14065 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14066 have_gcc_for_target=no
14067 fi
14068 rm conftest.c
14069
14070
14071
14072
14073 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14074 if test -n "$with_build_time_tools"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14076 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14077 if test -x $with_build_time_tools/ar; then
14078 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14079 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14081 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14085 fi
14086 elif test $build != $host && test $have_gcc_for_target = yes; then
14087 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14088 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14089 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14090 fi
14091 fi
14092 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14093 # Extract the first word of "ar", so it can be a program name with args.
14094 set dummy ar; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14096 $as_echo_n "checking for $ac_word... " >&6; }
14097 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 case $AR_FOR_TARGET in
14101 [\\/]* | ?:[\\/]*)
14102 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14103 ;;
14104 *)
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $gcc_cv_tool_dirs
14107 do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116 done
14117 done
14118 IFS=$as_save_IFS
14119
14120 ;;
14121 esac
14122 fi
14123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14124 if test -n "$AR_FOR_TARGET"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14126 $as_echo "$AR_FOR_TARGET" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131
14132
14133 fi
14134 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14135
14136
14137 if test -n "$AR_FOR_TARGET"; then
14138 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14139 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14140 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14141 fi
14142
14143 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14144 for ncn_progname in ar; do
14145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14146 set dummy ${ncn_progname}; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 if test -n "$AR_FOR_TARGET"; then
14153 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14157 do
14158 IFS=$as_save_IFS
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14162 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 break 2
14165 fi
14166 done
14167 done
14168 IFS=$as_save_IFS
14169
14170 fi
14171 fi
14172 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14173 if test -n "$AR_FOR_TARGET"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14175 $as_echo "$AR_FOR_TARGET" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14179 fi
14180
14181
14182 done
14183 fi
14184
14185 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14186 for ncn_progname in ar; do
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14188 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14189 if test -x $with_build_time_tools/${ncn_progname}; then
14190 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14192 $as_echo "yes" >&6; }
14193 break
14194 else
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14197 fi
14198 done
14199 fi
14200
14201 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14202 for ncn_progname in ar; do
14203 if test -n "$ncn_target_tool_prefix"; then
14204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 if test -n "$AR_FOR_TARGET"; then
14212 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14216 do
14217 IFS=$as_save_IFS
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 break 2
14224 fi
14225 done
14226 done
14227 IFS=$as_save_IFS
14228
14229 fi
14230 fi
14231 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14232 if test -n "$AR_FOR_TARGET"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14234 $as_echo "$AR_FOR_TARGET" >&6; }
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239
14240
14241 fi
14242 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14244 set dummy ${ncn_progname}; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$AR_FOR_TARGET"; then
14251 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14255 do
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14263 fi
14264 done
14265 done
14266 IFS=$as_save_IFS
14267
14268 fi
14269 fi
14270 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14271 if test -n "$AR_FOR_TARGET"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14273 $as_echo "$AR_FOR_TARGET" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 fi
14278
14279
14280 fi
14281 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14282 done
14283 fi
14284
14285 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14286 set dummy ar
14287 if test $build = $target ; then
14288 AR_FOR_TARGET="$2"
14289 else
14290 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14291 fi
14292 else
14293 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14294 fi
14295
14296 else
14297 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14298 fi
14299
14300
14301
14302
14303 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14304 if test -n "$with_build_time_tools"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14306 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14307 if test -x $with_build_time_tools/as; then
14308 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14309 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14311 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14312 else
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315 fi
14316 elif test $build != $host && test $have_gcc_for_target = yes; then
14317 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14318 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14319 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14320 fi
14321 fi
14322 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14323 # Extract the first word of "as", so it can be a program name with args.
14324 set dummy as; ac_word=$2
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326 $as_echo_n "checking for $ac_word... " >&6; }
14327 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 case $AS_FOR_TARGET in
14331 [\\/]* | ?:[\\/]*)
14332 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14333 ;;
14334 *)
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $gcc_cv_tool_dirs
14337 do
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14345 fi
14346 done
14347 done
14348 IFS=$as_save_IFS
14349
14350 ;;
14351 esac
14352 fi
14353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14354 if test -n "$AS_FOR_TARGET"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14356 $as_echo "$AS_FOR_TARGET" >&6; }
14357 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361
14362
14363 fi
14364 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14365
14366
14367 if test -n "$AS_FOR_TARGET"; then
14368 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14369 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14370 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14371 fi
14372
14373 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14374 for ncn_progname in as; do
14375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14376 set dummy ${ncn_progname}; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 if test -n "$AS_FOR_TARGET"; then
14383 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14387 do
14388 IFS=$as_save_IFS
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14392 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394 break 2
14395 fi
14396 done
14397 done
14398 IFS=$as_save_IFS
14399
14400 fi
14401 fi
14402 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14403 if test -n "$AS_FOR_TARGET"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14405 $as_echo "$AS_FOR_TARGET" >&6; }
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409 fi
14410
14411
14412 done
14413 fi
14414
14415 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14416 for ncn_progname in as; do
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14418 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14419 if test -x $with_build_time_tools/${ncn_progname}; then
14420 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14422 $as_echo "yes" >&6; }
14423 break
14424 else
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427 fi
14428 done
14429 fi
14430
14431 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14432 for ncn_progname in as; do
14433 if test -n "$ncn_target_tool_prefix"; then
14434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 if test -n "$AS_FOR_TARGET"; then
14442 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14451 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14454 fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14462 if test -n "$AS_FOR_TARGET"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14464 $as_echo "$AS_FOR_TARGET" >&6; }
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14468 fi
14469
14470
14471 fi
14472 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14474 set dummy ${ncn_progname}; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$AS_FOR_TARGET"; then
14481 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14485 do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494 done
14495 done
14496 IFS=$as_save_IFS
14497
14498 fi
14499 fi
14500 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14501 if test -n "$AS_FOR_TARGET"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14503 $as_echo "$AS_FOR_TARGET" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14507 fi
14508
14509
14510 fi
14511 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14512 done
14513 fi
14514
14515 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14516 set dummy as
14517 if test $build = $target ; then
14518 AS_FOR_TARGET="$2"
14519 else
14520 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14521 fi
14522 else
14523 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14524 fi
14525
14526 else
14527 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14528 fi
14529
14530
14531
14532
14533 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14534 if test -n "$with_build_time_tools"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14536 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14537 if test -x $with_build_time_tools/dlltool; then
14538 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14539 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14541 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14542 else
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14545 fi
14546 elif test $build != $host && test $have_gcc_for_target = yes; then
14547 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14548 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14549 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14550 fi
14551 fi
14552 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14553 # Extract the first word of "dlltool", so it can be a program name with args.
14554 set dummy dlltool; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556 $as_echo_n "checking for $ac_word... " >&6; }
14557 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 case $DLLTOOL_FOR_TARGET in
14561 [\\/]* | ?:[\\/]*)
14562 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14563 ;;
14564 *)
14565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14566 for as_dir in $gcc_cv_tool_dirs
14567 do
14568 IFS=$as_save_IFS
14569 test -z "$as_dir" && as_dir=.
14570 for ac_exec_ext in '' $ac_executable_extensions; do
14571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14572 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14574 break 2
14575 fi
14576 done
14577 done
14578 IFS=$as_save_IFS
14579
14580 ;;
14581 esac
14582 fi
14583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14584 if test -n "$DLLTOOL_FOR_TARGET"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14586 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14590 fi
14591
14592
14593 fi
14594 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14595
14596
14597 if test -n "$DLLTOOL_FOR_TARGET"; then
14598 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14599 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14600 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14601 fi
14602
14603 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14604 for ncn_progname in dlltool; do
14605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14606 set dummy ${ncn_progname}; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 if test -n "$DLLTOOL_FOR_TARGET"; then
14613 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14617 do
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626 done
14627 done
14628 IFS=$as_save_IFS
14629
14630 fi
14631 fi
14632 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14635 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14639 fi
14640
14641
14642 done
14643 fi
14644
14645 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14646 for ncn_progname in dlltool; do
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14648 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14649 if test -x $with_build_time_tools/${ncn_progname}; then
14650 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653 break
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657 fi
14658 done
14659 fi
14660
14661 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14662 for ncn_progname in dlltool; do
14663 if test -n "$ncn_target_tool_prefix"; then
14664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14667 $as_echo_n "checking for $ac_word... " >&6; }
14668 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 if test -n "$DLLTOOL_FOR_TARGET"; then
14672 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14673 else
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14676 do
14677 IFS=$as_save_IFS
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683 break 2
14684 fi
14685 done
14686 done
14687 IFS=$as_save_IFS
14688
14689 fi
14690 fi
14691 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14692 if test -n "$DLLTOOL_FOR_TARGET"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14694 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699
14700
14701 fi
14702 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14704 set dummy ${ncn_progname}; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706 $as_echo_n "checking for $ac_word... " >&6; }
14707 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 if test -n "$DLLTOOL_FOR_TARGET"; then
14711 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14712 else
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716 IFS=$as_save_IFS
14717 test -z "$as_dir" && as_dir=.
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14720 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14722 break 2
14723 fi
14724 done
14725 done
14726 IFS=$as_save_IFS
14727
14728 fi
14729 fi
14730 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14731 if test -n "$DLLTOOL_FOR_TARGET"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14733 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14737 fi
14738
14739
14740 fi
14741 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14742 done
14743 fi
14744
14745 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14746 set dummy dlltool
14747 if test $build = $target ; then
14748 DLLTOOL_FOR_TARGET="$2"
14749 else
14750 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14751 fi
14752 else
14753 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14754 fi
14755
14756 else
14757 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14758 fi
14759
14760
14761
14762
14763 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14764 if test -n "$with_build_time_tools"; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14766 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14767 if test -x $with_build_time_tools/dsymutil; then
14768 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14769 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14771 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14775 fi
14776 elif test $build != $host && test $have_gcc_for_target = yes; then
14777 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14778 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14779 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14780 fi
14781 fi
14782 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14783 # Extract the first word of "dsymutil", so it can be a program name with args.
14784 set dummy dsymutil; ac_word=$2
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14786 $as_echo_n "checking for $ac_word... " >&6; }
14787 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 case $DSYMUTIL_FOR_TARGET in
14791 [\\/]* | ?:[\\/]*)
14792 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14793 ;;
14794 *)
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $gcc_cv_tool_dirs
14797 do
14798 IFS=$as_save_IFS
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14804 break 2
14805 fi
14806 done
14807 done
14808 IFS=$as_save_IFS
14809
14810 ;;
14811 esac
14812 fi
14813 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14814 if test -n "$DSYMUTIL_FOR_TARGET"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14816 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14817 else
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14820 fi
14821
14822
14823 fi
14824 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14825
14826
14827 if test -n "$DSYMUTIL_FOR_TARGET"; then
14828 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14829 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14830 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14831 fi
14832
14833 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14834 for ncn_progname in dsymutil; do
14835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14836 set dummy ${ncn_progname}; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 if test -n "$DSYMUTIL_FOR_TARGET"; then
14843 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14844 else
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14847 do
14848 IFS=$as_save_IFS
14849 test -z "$as_dir" && as_dir=.
14850 for ac_exec_ext in '' $ac_executable_extensions; do
14851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854 break 2
14855 fi
14856 done
14857 done
14858 IFS=$as_save_IFS
14859
14860 fi
14861 fi
14862 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14865 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14866 else
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14869 fi
14870
14871
14872 done
14873 fi
14874
14875 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14876 for ncn_progname in dsymutil; do
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14878 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14879 if test -x $with_build_time_tools/${ncn_progname}; then
14880 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14882 $as_echo "yes" >&6; }
14883 break
14884 else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887 fi
14888 done
14889 fi
14890
14891 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14892 for ncn_progname in dsymutil; do
14893 if test -n "$ncn_target_tool_prefix"; then
14894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 $as_echo_n "checking for $ac_word... " >&6; }
14898 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14899 $as_echo_n "(cached) " >&6
14900 else
14901 if test -n "$DSYMUTIL_FOR_TARGET"; then
14902 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14903 else
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14906 do
14907 IFS=$as_save_IFS
14908 test -z "$as_dir" && as_dir=.
14909 for ac_exec_ext in '' $ac_executable_extensions; do
14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14913 break 2
14914 fi
14915 done
14916 done
14917 IFS=$as_save_IFS
14918
14919 fi
14920 fi
14921 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14922 if test -n "$DSYMUTIL_FOR_TARGET"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14924 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14925 else
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14928 fi
14929
14930
14931 fi
14932 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14934 set dummy ${ncn_progname}; ac_word=$2
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14936 $as_echo_n "checking for $ac_word... " >&6; }
14937 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 if test -n "$DSYMUTIL_FOR_TARGET"; then
14941 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14942 else
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 for ac_exec_ext in '' $ac_executable_extensions; do
14949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14950 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14952 break 2
14953 fi
14954 done
14955 done
14956 IFS=$as_save_IFS
14957
14958 fi
14959 fi
14960 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14961 if test -n "$DSYMUTIL_FOR_TARGET"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14963 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14967 fi
14968
14969
14970 fi
14971 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14972 done
14973 fi
14974
14975 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14976 set dummy dsymutil
14977 if test $build = $target ; then
14978 DSYMUTIL_FOR_TARGET="$2"
14979 else
14980 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14981 fi
14982 else
14983 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14984 fi
14985
14986 else
14987 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14988 fi
14989
14990
14991
14992
14993 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14994 if test -n "$with_build_time_tools"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14996 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14997 if test -x $with_build_time_tools/ld; then
14998 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14999 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15001 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15002 else
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15005 fi
15006 elif test $build != $host && test $have_gcc_for_target = yes; then
15007 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15008 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15009 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15010 fi
15011 fi
15012 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15013 # Extract the first word of "ld", so it can be a program name with args.
15014 set dummy ld; ac_word=$2
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15016 $as_echo_n "checking for $ac_word... " >&6; }
15017 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 case $LD_FOR_TARGET in
15021 [\\/]* | ?:[\\/]*)
15022 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15023 ;;
15024 *)
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $gcc_cv_tool_dirs
15027 do
15028 IFS=$as_save_IFS
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15034 break 2
15035 fi
15036 done
15037 done
15038 IFS=$as_save_IFS
15039
15040 ;;
15041 esac
15042 fi
15043 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15044 if test -n "$LD_FOR_TARGET"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15046 $as_echo "$LD_FOR_TARGET" >&6; }
15047 else
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15050 fi
15051
15052
15053 fi
15054 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15055
15056
15057 if test -n "$LD_FOR_TARGET"; then
15058 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15059 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15060 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15061 fi
15062
15063 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15064 for ncn_progname in ld; do
15065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15066 set dummy ${ncn_progname}; ac_word=$2
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15068 $as_echo_n "checking for $ac_word... " >&6; }
15069 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15070 $as_echo_n "(cached) " >&6
15071 else
15072 if test -n "$LD_FOR_TARGET"; then
15073 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15074 else
15075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076 for as_dir in $PATH
15077 do
15078 IFS=$as_save_IFS
15079 test -z "$as_dir" && as_dir=.
15080 for ac_exec_ext in '' $ac_executable_extensions; do
15081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15082 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15084 break 2
15085 fi
15086 done
15087 done
15088 IFS=$as_save_IFS
15089
15090 fi
15091 fi
15092 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15093 if test -n "$LD_FOR_TARGET"; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15095 $as_echo "$LD_FOR_TARGET" >&6; }
15096 else
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15098 $as_echo "no" >&6; }
15099 fi
15100
15101
15102 done
15103 fi
15104
15105 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15106 for ncn_progname in ld; do
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15108 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15109 if test -x $with_build_time_tools/${ncn_progname}; then
15110 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15112 $as_echo "yes" >&6; }
15113 break
15114 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 $as_echo "no" >&6; }
15117 fi
15118 done
15119 fi
15120
15121 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15122 for ncn_progname in ld; do
15123 if test -n "$ncn_target_tool_prefix"; then
15124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 if test -n "$LD_FOR_TARGET"; then
15132 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15136 do
15137 IFS=$as_save_IFS
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15143 break 2
15144 fi
15145 done
15146 done
15147 IFS=$as_save_IFS
15148
15149 fi
15150 fi
15151 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15152 if test -n "$LD_FOR_TARGET"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15154 $as_echo "$LD_FOR_TARGET" >&6; }
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15158 fi
15159
15160
15161 fi
15162 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15164 set dummy ${ncn_progname}; ac_word=$2
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15166 $as_echo_n "checking for $ac_word... " >&6; }
15167 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 if test -n "$LD_FOR_TARGET"; then
15171 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15172 else
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15175 do
15176 IFS=$as_save_IFS
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15182 break 2
15183 fi
15184 done
15185 done
15186 IFS=$as_save_IFS
15187
15188 fi
15189 fi
15190 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15191 if test -n "$LD_FOR_TARGET"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15193 $as_echo "$LD_FOR_TARGET" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15197 fi
15198
15199
15200 fi
15201 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15202 done
15203 fi
15204
15205 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15206 set dummy ld
15207 if test $build = $target ; then
15208 LD_FOR_TARGET="$2"
15209 else
15210 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15211 fi
15212 else
15213 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15214 fi
15215
15216 else
15217 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15218 fi
15219
15220
15221
15222
15223 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15224 if test -n "$with_build_time_tools"; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15226 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15227 if test -x $with_build_time_tools/lipo; then
15228 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15229 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15231 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15232 else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235 fi
15236 elif test $build != $host && test $have_gcc_for_target = yes; then
15237 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15238 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15239 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15240 fi
15241 fi
15242 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15243 # Extract the first word of "lipo", so it can be a program name with args.
15244 set dummy lipo; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15246 $as_echo_n "checking for $ac_word... " >&6; }
15247 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15248 $as_echo_n "(cached) " >&6
15249 else
15250 case $LIPO_FOR_TARGET in
15251 [\\/]* | ?:[\\/]*)
15252 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15253 ;;
15254 *)
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $gcc_cv_tool_dirs
15257 do
15258 IFS=$as_save_IFS
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15264 break 2
15265 fi
15266 done
15267 done
15268 IFS=$as_save_IFS
15269
15270 ;;
15271 esac
15272 fi
15273 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15274 if test -n "$LIPO_FOR_TARGET"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15276 $as_echo "$LIPO_FOR_TARGET" >&6; }
15277 else
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15280 fi
15281
15282
15283 fi
15284 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15285
15286
15287 if test -n "$LIPO_FOR_TARGET"; then
15288 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15289 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15290 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15291 fi
15292
15293 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15294 for ncn_progname in lipo; do
15295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15296 set dummy ${ncn_progname}; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15298 $as_echo_n "checking for $ac_word... " >&6; }
15299 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 if test -n "$LIPO_FOR_TARGET"; then
15303 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15304 else
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15307 do
15308 IFS=$as_save_IFS
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15314 break 2
15315 fi
15316 done
15317 done
15318 IFS=$as_save_IFS
15319
15320 fi
15321 fi
15322 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15325 $as_echo "$LIPO_FOR_TARGET" >&6; }
15326 else
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15328 $as_echo "no" >&6; }
15329 fi
15330
15331
15332 done
15333 fi
15334
15335 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15336 for ncn_progname in lipo; do
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15339 if test -x $with_build_time_tools/${ncn_progname}; then
15340 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15342 $as_echo "yes" >&6; }
15343 break
15344 else
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347 fi
15348 done
15349 fi
15350
15351 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15352 for ncn_progname in lipo; do
15353 if test -n "$ncn_target_tool_prefix"; then
15354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15357 $as_echo_n "checking for $ac_word... " >&6; }
15358 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 if test -n "$LIPO_FOR_TARGET"; then
15362 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15363 else
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15366 do
15367 IFS=$as_save_IFS
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15373 break 2
15374 fi
15375 done
15376 done
15377 IFS=$as_save_IFS
15378
15379 fi
15380 fi
15381 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15382 if test -n "$LIPO_FOR_TARGET"; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15384 $as_echo "$LIPO_FOR_TARGET" >&6; }
15385 else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387 $as_echo "no" >&6; }
15388 fi
15389
15390
15391 fi
15392 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15394 set dummy ${ncn_progname}; ac_word=$2
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396 $as_echo_n "checking for $ac_word... " >&6; }
15397 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 if test -n "$LIPO_FOR_TARGET"; then
15401 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15402 else
15403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404 for as_dir in $PATH
15405 do
15406 IFS=$as_save_IFS
15407 test -z "$as_dir" && as_dir=.
15408 for ac_exec_ext in '' $ac_executable_extensions; do
15409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15410 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412 break 2
15413 fi
15414 done
15415 done
15416 IFS=$as_save_IFS
15417
15418 fi
15419 fi
15420 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15421 if test -n "$LIPO_FOR_TARGET"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15423 $as_echo "$LIPO_FOR_TARGET" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15427 fi
15428
15429
15430 fi
15431 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15432 done
15433 fi
15434
15435 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15436 set dummy lipo
15437 if test $build = $target ; then
15438 LIPO_FOR_TARGET="$2"
15439 else
15440 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15441 fi
15442 else
15443 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15444 fi
15445
15446 else
15447 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15448 fi
15449
15450
15451
15452
15453 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15454 if test -n "$with_build_time_tools"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15456 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15457 if test -x $with_build_time_tools/nm; then
15458 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15461 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15462 else
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464 $as_echo "no" >&6; }
15465 fi
15466 elif test $build != $host && test $have_gcc_for_target = yes; then
15467 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15468 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15469 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15470 fi
15471 fi
15472 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15473 # Extract the first word of "nm", so it can be a program name with args.
15474 set dummy nm; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15476 $as_echo_n "checking for $ac_word... " >&6; }
15477 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 case $NM_FOR_TARGET in
15481 [\\/]* | ?:[\\/]*)
15482 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15483 ;;
15484 *)
15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $gcc_cv_tool_dirs
15487 do
15488 IFS=$as_save_IFS
15489 test -z "$as_dir" && as_dir=.
15490 for ac_exec_ext in '' $ac_executable_extensions; do
15491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15492 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15494 break 2
15495 fi
15496 done
15497 done
15498 IFS=$as_save_IFS
15499
15500 ;;
15501 esac
15502 fi
15503 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15504 if test -n "$NM_FOR_TARGET"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15506 $as_echo "$NM_FOR_TARGET" >&6; }
15507 else
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512
15513 fi
15514 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15515
15516
15517 if test -n "$NM_FOR_TARGET"; then
15518 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15519 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15520 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15521 fi
15522
15523 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15524 for ncn_progname in nm; do
15525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15526 set dummy ${ncn_progname}; ac_word=$2
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15528 $as_echo_n "checking for $ac_word... " >&6; }
15529 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15530 $as_echo_n "(cached) " >&6
15531 else
15532 if test -n "$NM_FOR_TARGET"; then
15533 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15534 else
15535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536 for as_dir in $PATH
15537 do
15538 IFS=$as_save_IFS
15539 test -z "$as_dir" && as_dir=.
15540 for ac_exec_ext in '' $ac_executable_extensions; do
15541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15542 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15544 break 2
15545 fi
15546 done
15547 done
15548 IFS=$as_save_IFS
15549
15550 fi
15551 fi
15552 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15553 if test -n "$NM_FOR_TARGET"; then
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15555 $as_echo "$NM_FOR_TARGET" >&6; }
15556 else
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15558 $as_echo "no" >&6; }
15559 fi
15560
15561
15562 done
15563 fi
15564
15565 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15566 for ncn_progname in nm; do
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15569 if test -x $with_build_time_tools/${ncn_progname}; then
15570 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573 break
15574 else
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15577 fi
15578 done
15579 fi
15580
15581 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15582 for ncn_progname in nm; do
15583 if test -n "$ncn_target_tool_prefix"; then
15584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15587 $as_echo_n "checking for $ac_word... " >&6; }
15588 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if test -n "$NM_FOR_TARGET"; then
15592 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15593 else
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15596 do
15597 IFS=$as_save_IFS
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15603 break 2
15604 fi
15605 done
15606 done
15607 IFS=$as_save_IFS
15608
15609 fi
15610 fi
15611 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15612 if test -n "$NM_FOR_TARGET"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15614 $as_echo "$NM_FOR_TARGET" >&6; }
15615 else
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15618 fi
15619
15620
15621 fi
15622 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15624 set dummy ${ncn_progname}; ac_word=$2
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15626 $as_echo_n "checking for $ac_word... " >&6; }
15627 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 if test -n "$NM_FOR_TARGET"; then
15631 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15632 else
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 for as_dir in $PATH
15635 do
15636 IFS=$as_save_IFS
15637 test -z "$as_dir" && as_dir=.
15638 for ac_exec_ext in '' $ac_executable_extensions; do
15639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15640 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15642 break 2
15643 fi
15644 done
15645 done
15646 IFS=$as_save_IFS
15647
15648 fi
15649 fi
15650 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15651 if test -n "$NM_FOR_TARGET"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15653 $as_echo "$NM_FOR_TARGET" >&6; }
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15657 fi
15658
15659
15660 fi
15661 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15662 done
15663 fi
15664
15665 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15666 set dummy nm
15667 if test $build = $target ; then
15668 NM_FOR_TARGET="$2"
15669 else
15670 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15671 fi
15672 else
15673 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15674 fi
15675
15676 else
15677 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15678 fi
15679
15680
15681
15682
15683 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15684 if test -n "$with_build_time_tools"; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15686 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15687 if test -x $with_build_time_tools/objcopy; then
15688 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15689 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15691 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15692 else
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694 $as_echo "no" >&6; }
15695 fi
15696 elif test $build != $host && test $have_gcc_for_target = yes; then
15697 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15698 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15699 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15700 fi
15701 fi
15702 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15703 # Extract the first word of "objcopy", so it can be a program name with args.
15704 set dummy objcopy; ac_word=$2
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15706 $as_echo_n "checking for $ac_word... " >&6; }
15707 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15708 $as_echo_n "(cached) " >&6
15709 else
15710 case $OBJCOPY_FOR_TARGET in
15711 [\\/]* | ?:[\\/]*)
15712 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15713 ;;
15714 *)
15715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in $gcc_cv_tool_dirs
15717 do
15718 IFS=$as_save_IFS
15719 test -z "$as_dir" && as_dir=.
15720 for ac_exec_ext in '' $ac_executable_extensions; do
15721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15722 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724 break 2
15725 fi
15726 done
15727 done
15728 IFS=$as_save_IFS
15729
15730 ;;
15731 esac
15732 fi
15733 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15734 if test -n "$OBJCOPY_FOR_TARGET"; then
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15736 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15737 else
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15739 $as_echo "no" >&6; }
15740 fi
15741
15742
15743 fi
15744 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15745
15746
15747 if test -n "$OBJCOPY_FOR_TARGET"; then
15748 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15749 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15750 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15751 fi
15752
15753 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15754 for ncn_progname in objcopy; do
15755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15756 set dummy ${ncn_progname}; ac_word=$2
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15758 $as_echo_n "checking for $ac_word... " >&6; }
15759 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15760 $as_echo_n "(cached) " >&6
15761 else
15762 if test -n "$OBJCOPY_FOR_TARGET"; then
15763 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15764 else
15765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15767 do
15768 IFS=$as_save_IFS
15769 test -z "$as_dir" && as_dir=.
15770 for ac_exec_ext in '' $ac_executable_extensions; do
15771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15774 break 2
15775 fi
15776 done
15777 done
15778 IFS=$as_save_IFS
15779
15780 fi
15781 fi
15782 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15785 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15786 else
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15789 fi
15790
15791
15792 done
15793 fi
15794
15795 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15796 for ncn_progname in objcopy; do
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15798 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15799 if test -x $with_build_time_tools/${ncn_progname}; then
15800 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15802 $as_echo "yes" >&6; }
15803 break
15804 else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807 fi
15808 done
15809 fi
15810
15811 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15812 for ncn_progname in objcopy; do
15813 if test -n "$ncn_target_tool_prefix"; then
15814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15817 $as_echo_n "checking for $ac_word... " >&6; }
15818 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 if test -n "$OBJCOPY_FOR_TARGET"; then
15822 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15823 else
15824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15825 for as_dir in $PATH
15826 do
15827 IFS=$as_save_IFS
15828 test -z "$as_dir" && as_dir=.
15829 for ac_exec_ext in '' $ac_executable_extensions; do
15830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15831 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15833 break 2
15834 fi
15835 done
15836 done
15837 IFS=$as_save_IFS
15838
15839 fi
15840 fi
15841 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15842 if test -n "$OBJCOPY_FOR_TARGET"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15844 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15845 else
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 $as_echo "no" >&6; }
15848 fi
15849
15850
15851 fi
15852 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15854 set dummy ${ncn_progname}; ac_word=$2
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15856 $as_echo_n "checking for $ac_word... " >&6; }
15857 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15858 $as_echo_n "(cached) " >&6
15859 else
15860 if test -n "$OBJCOPY_FOR_TARGET"; then
15861 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15862 else
15863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in $PATH
15865 do
15866 IFS=$as_save_IFS
15867 test -z "$as_dir" && as_dir=.
15868 for ac_exec_ext in '' $ac_executable_extensions; do
15869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15870 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15872 break 2
15873 fi
15874 done
15875 done
15876 IFS=$as_save_IFS
15877
15878 fi
15879 fi
15880 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15881 if test -n "$OBJCOPY_FOR_TARGET"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15883 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15884 else
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15887 fi
15888
15889
15890 fi
15891 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15892 done
15893 fi
15894
15895 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15896 set dummy objcopy
15897 if test $build = $target ; then
15898 OBJCOPY_FOR_TARGET="$2"
15899 else
15900 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15901 fi
15902 else
15903 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15904 fi
15905
15906 else
15907 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15908 fi
15909
15910
15911
15912
15913 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15914 if test -n "$with_build_time_tools"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15916 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15917 if test -x $with_build_time_tools/objdump; then
15918 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15919 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15921 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924 $as_echo "no" >&6; }
15925 fi
15926 elif test $build != $host && test $have_gcc_for_target = yes; then
15927 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15928 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15929 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15930 fi
15931 fi
15932 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15933 # Extract the first word of "objdump", so it can be a program name with args.
15934 set dummy objdump; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15936 $as_echo_n "checking for $ac_word... " >&6; }
15937 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 case $OBJDUMP_FOR_TARGET in
15941 [\\/]* | ?:[\\/]*)
15942 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15943 ;;
15944 *)
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $gcc_cv_tool_dirs
15947 do
15948 IFS=$as_save_IFS
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15954 break 2
15955 fi
15956 done
15957 done
15958 IFS=$as_save_IFS
15959
15960 ;;
15961 esac
15962 fi
15963 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15964 if test -n "$OBJDUMP_FOR_TARGET"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15966 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15967 else
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15970 fi
15971
15972
15973 fi
15974 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15975
15976
15977 if test -n "$OBJDUMP_FOR_TARGET"; then
15978 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15979 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15980 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15981 fi
15982
15983 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15984 for ncn_progname in objdump; do
15985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15986 set dummy ${ncn_progname}; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15988 $as_echo_n "checking for $ac_word... " >&6; }
15989 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 if test -n "$OBJDUMP_FOR_TARGET"; then
15993 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15994 else
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15997 do
15998 IFS=$as_save_IFS
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16004 break 2
16005 fi
16006 done
16007 done
16008 IFS=$as_save_IFS
16009
16010 fi
16011 fi
16012 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16015 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16016 else
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16018 $as_echo "no" >&6; }
16019 fi
16020
16021
16022 done
16023 fi
16024
16025 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16026 for ncn_progname in objdump; do
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16028 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16029 if test -x $with_build_time_tools/${ncn_progname}; then
16030 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16032 $as_echo "yes" >&6; }
16033 break
16034 else
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036 $as_echo "no" >&6; }
16037 fi
16038 done
16039 fi
16040
16041 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16042 for ncn_progname in objdump; do
16043 if test -n "$ncn_target_tool_prefix"; then
16044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16047 $as_echo_n "checking for $ac_word... " >&6; }
16048 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16049 $as_echo_n "(cached) " >&6
16050 else
16051 if test -n "$OBJDUMP_FOR_TARGET"; then
16052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16053 else
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16056 do
16057 IFS=$as_save_IFS
16058 test -z "$as_dir" && as_dir=.
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16063 break 2
16064 fi
16065 done
16066 done
16067 IFS=$as_save_IFS
16068
16069 fi
16070 fi
16071 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16072 if test -n "$OBJDUMP_FOR_TARGET"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16074 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16075 else
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16078 fi
16079
16080
16081 fi
16082 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16084 set dummy ${ncn_progname}; ac_word=$2
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086 $as_echo_n "checking for $ac_word... " >&6; }
16087 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16088 $as_echo_n "(cached) " >&6
16089 else
16090 if test -n "$OBJDUMP_FOR_TARGET"; then
16091 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16092 else
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094 for as_dir in $PATH
16095 do
16096 IFS=$as_save_IFS
16097 test -z "$as_dir" && as_dir=.
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16100 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102 break 2
16103 fi
16104 done
16105 done
16106 IFS=$as_save_IFS
16107
16108 fi
16109 fi
16110 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16111 if test -n "$OBJDUMP_FOR_TARGET"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16113 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117 fi
16118
16119
16120 fi
16121 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16122 done
16123 fi
16124
16125 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16126 set dummy objdump
16127 if test $build = $target ; then
16128 OBJDUMP_FOR_TARGET="$2"
16129 else
16130 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16131 fi
16132 else
16133 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16134 fi
16135
16136 else
16137 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16138 fi
16139
16140
16141
16142
16143 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16144 if test -n "$with_build_time_tools"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16146 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16147 if test -x $with_build_time_tools/otool; then
16148 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16149 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16151 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16152 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154 $as_echo "no" >&6; }
16155 fi
16156 elif test $build != $host && test $have_gcc_for_target = yes; then
16157 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16158 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16159 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16160 fi
16161 fi
16162 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16163 # Extract the first word of "otool", so it can be a program name with args.
16164 set dummy otool; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16168 $as_echo_n "(cached) " >&6
16169 else
16170 case $OTOOL_FOR_TARGET in
16171 [\\/]* | ?:[\\/]*)
16172 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16173 ;;
16174 *)
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $gcc_cv_tool_dirs
16177 do
16178 IFS=$as_save_IFS
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16184 break 2
16185 fi
16186 done
16187 done
16188 IFS=$as_save_IFS
16189
16190 ;;
16191 esac
16192 fi
16193 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16194 if test -n "$OTOOL_FOR_TARGET"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16196 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16197 else
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16199 $as_echo "no" >&6; }
16200 fi
16201
16202
16203 fi
16204 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16205
16206
16207 if test -n "$OTOOL_FOR_TARGET"; then
16208 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16209 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16210 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16211 fi
16212
16213 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16214 for ncn_progname in otool; do
16215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16216 set dummy ${ncn_progname}; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16218 $as_echo_n "checking for $ac_word... " >&6; }
16219 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 if test -n "$OTOOL_FOR_TARGET"; then
16223 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16224 else
16225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16227 do
16228 IFS=$as_save_IFS
16229 test -z "$as_dir" && as_dir=.
16230 for ac_exec_ext in '' $ac_executable_extensions; do
16231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16232 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16234 break 2
16235 fi
16236 done
16237 done
16238 IFS=$as_save_IFS
16239
16240 fi
16241 fi
16242 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16245 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16246 else
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16249 fi
16250
16251
16252 done
16253 fi
16254
16255 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16256 for ncn_progname in otool; do
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16258 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16259 if test -x $with_build_time_tools/${ncn_progname}; then
16260 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262 $as_echo "yes" >&6; }
16263 break
16264 else
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16267 fi
16268 done
16269 fi
16270
16271 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16272 for ncn_progname in otool; do
16273 if test -n "$ncn_target_tool_prefix"; then
16274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16277 $as_echo_n "checking for $ac_word... " >&6; }
16278 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 if test -n "$OTOOL_FOR_TARGET"; then
16282 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16283 else
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16286 do
16287 IFS=$as_save_IFS
16288 test -z "$as_dir" && as_dir=.
16289 for ac_exec_ext in '' $ac_executable_extensions; do
16290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16291 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16293 break 2
16294 fi
16295 done
16296 done
16297 IFS=$as_save_IFS
16298
16299 fi
16300 fi
16301 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16302 if test -n "$OTOOL_FOR_TARGET"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16304 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16305 else
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16307 $as_echo "no" >&6; }
16308 fi
16309
16310
16311 fi
16312 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16314 set dummy ${ncn_progname}; ac_word=$2
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16316 $as_echo_n "checking for $ac_word... " >&6; }
16317 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 if test -n "$OTOOL_FOR_TARGET"; then
16321 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16322 else
16323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324 for as_dir in $PATH
16325 do
16326 IFS=$as_save_IFS
16327 test -z "$as_dir" && as_dir=.
16328 for ac_exec_ext in '' $ac_executable_extensions; do
16329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16330 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16332 break 2
16333 fi
16334 done
16335 done
16336 IFS=$as_save_IFS
16337
16338 fi
16339 fi
16340 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16341 if test -n "$OTOOL_FOR_TARGET"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16343 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16347 fi
16348
16349
16350 fi
16351 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16352 done
16353 fi
16354
16355 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16356 set dummy otool
16357 if test $build = $target ; then
16358 OTOOL_FOR_TARGET="$2"
16359 else
16360 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16361 fi
16362 else
16363 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16364 fi
16365
16366 else
16367 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16368 fi
16369
16370
16371
16372
16373 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16374 if test -n "$with_build_time_tools"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16376 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16377 if test -x $with_build_time_tools/ranlib; then
16378 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16379 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16381 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16382 else
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384 $as_echo "no" >&6; }
16385 fi
16386 elif test $build != $host && test $have_gcc_for_target = yes; then
16387 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16388 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16389 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16390 fi
16391 fi
16392 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16393 # Extract the first word of "ranlib", so it can be a program name with args.
16394 set dummy ranlib; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 case $RANLIB_FOR_TARGET in
16401 [\\/]* | ?:[\\/]*)
16402 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16403 ;;
16404 *)
16405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406 for as_dir in $gcc_cv_tool_dirs
16407 do
16408 IFS=$as_save_IFS
16409 test -z "$as_dir" && as_dir=.
16410 for ac_exec_ext in '' $ac_executable_extensions; do
16411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414 break 2
16415 fi
16416 done
16417 done
16418 IFS=$as_save_IFS
16419
16420 ;;
16421 esac
16422 fi
16423 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16424 if test -n "$RANLIB_FOR_TARGET"; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16426 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16427 else
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16429 $as_echo "no" >&6; }
16430 fi
16431
16432
16433 fi
16434 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16435
16436
16437 if test -n "$RANLIB_FOR_TARGET"; then
16438 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16439 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16440 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16441 fi
16442
16443 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16444 for ncn_progname in ranlib; do
16445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16446 set dummy ${ncn_progname}; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448 $as_echo_n "checking for $ac_word... " >&6; }
16449 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16450 $as_echo_n "(cached) " >&6
16451 else
16452 if test -n "$RANLIB_FOR_TARGET"; then
16453 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16454 else
16455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16457 do
16458 IFS=$as_save_IFS
16459 test -z "$as_dir" && as_dir=.
16460 for ac_exec_ext in '' $ac_executable_extensions; do
16461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16462 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16464 break 2
16465 fi
16466 done
16467 done
16468 IFS=$as_save_IFS
16469
16470 fi
16471 fi
16472 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16475 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16476 else
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16479 fi
16480
16481
16482 done
16483 fi
16484
16485 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16486 for ncn_progname in ranlib; do
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16488 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16489 if test -x $with_build_time_tools/${ncn_progname}; then
16490 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16492 $as_echo "yes" >&6; }
16493 break
16494 else
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16496 $as_echo "no" >&6; }
16497 fi
16498 done
16499 fi
16500
16501 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16502 for ncn_progname in ranlib; do
16503 if test -n "$ncn_target_tool_prefix"; then
16504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507 $as_echo_n "checking for $ac_word... " >&6; }
16508 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 if test -n "$RANLIB_FOR_TARGET"; then
16512 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517 IFS=$as_save_IFS
16518 test -z "$as_dir" && as_dir=.
16519 for ac_exec_ext in '' $ac_executable_extensions; do
16520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523 break 2
16524 fi
16525 done
16526 done
16527 IFS=$as_save_IFS
16528
16529 fi
16530 fi
16531 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16532 if test -n "$RANLIB_FOR_TARGET"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16534 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16535 else
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16538 fi
16539
16540
16541 fi
16542 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16544 set dummy ${ncn_progname}; ac_word=$2
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16546 $as_echo_n "checking for $ac_word... " >&6; }
16547 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 if test -n "$RANLIB_FOR_TARGET"; then
16551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16552 else
16553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16555 do
16556 IFS=$as_save_IFS
16557 test -z "$as_dir" && as_dir=.
16558 for ac_exec_ext in '' $ac_executable_extensions; do
16559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16562 break 2
16563 fi
16564 done
16565 done
16566 IFS=$as_save_IFS
16567
16568 fi
16569 fi
16570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16571 if test -n "$RANLIB_FOR_TARGET"; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16574 else
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16577 fi
16578
16579
16580 fi
16581 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16582 done
16583 fi
16584
16585 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16586 set dummy ranlib
16587 if test $build = $target ; then
16588 RANLIB_FOR_TARGET="$2"
16589 else
16590 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16591 fi
16592 else
16593 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16594 fi
16595
16596 else
16597 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16598 fi
16599
16600
16601
16602
16603 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16604 if test -n "$with_build_time_tools"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16606 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16607 if test -x $with_build_time_tools/readelf; then
16608 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16609 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16611 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16612 else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16615 fi
16616 elif test $build != $host && test $have_gcc_for_target = yes; then
16617 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16618 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16619 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16620 fi
16621 fi
16622 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16623 # Extract the first word of "readelf", so it can be a program name with args.
16624 set dummy readelf; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16626 $as_echo_n "checking for $ac_word... " >&6; }
16627 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 case $READELF_FOR_TARGET in
16631 [\\/]* | ?:[\\/]*)
16632 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16633 ;;
16634 *)
16635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16636 for as_dir in $gcc_cv_tool_dirs
16637 do
16638 IFS=$as_save_IFS
16639 test -z "$as_dir" && as_dir=.
16640 for ac_exec_ext in '' $ac_executable_extensions; do
16641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16644 break 2
16645 fi
16646 done
16647 done
16648 IFS=$as_save_IFS
16649
16650 ;;
16651 esac
16652 fi
16653 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16654 if test -n "$READELF_FOR_TARGET"; then
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16656 $as_echo "$READELF_FOR_TARGET" >&6; }
16657 else
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16659 $as_echo "no" >&6; }
16660 fi
16661
16662
16663 fi
16664 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16665
16666
16667 if test -n "$READELF_FOR_TARGET"; then
16668 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16669 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16670 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16671 fi
16672
16673 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16674 for ncn_progname in readelf; do
16675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16676 set dummy ${ncn_progname}; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16678 $as_echo_n "checking for $ac_word... " >&6; }
16679 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16682 if test -n "$READELF_FOR_TARGET"; then
16683 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16684 else
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16687 do
16688 IFS=$as_save_IFS
16689 test -z "$as_dir" && as_dir=.
16690 for ac_exec_ext in '' $ac_executable_extensions; do
16691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16694 break 2
16695 fi
16696 done
16697 done
16698 IFS=$as_save_IFS
16699
16700 fi
16701 fi
16702 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16703 if test -n "$READELF_FOR_TARGET"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16705 $as_echo "$READELF_FOR_TARGET" >&6; }
16706 else
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16708 $as_echo "no" >&6; }
16709 fi
16710
16711
16712 done
16713 fi
16714
16715 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16716 for ncn_progname in readelf; do
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16718 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16719 if test -x $with_build_time_tools/${ncn_progname}; then
16720 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16722 $as_echo "yes" >&6; }
16723 break
16724 else
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727 fi
16728 done
16729 fi
16730
16731 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16732 for ncn_progname in readelf; do
16733 if test -n "$ncn_target_tool_prefix"; then
16734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16737 $as_echo_n "checking for $ac_word... " >&6; }
16738 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 if test -n "$READELF_FOR_TARGET"; then
16742 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16743 else
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16746 do
16747 IFS=$as_save_IFS
16748 test -z "$as_dir" && as_dir=.
16749 for ac_exec_ext in '' $ac_executable_extensions; do
16750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 break 2
16754 fi
16755 done
16756 done
16757 IFS=$as_save_IFS
16758
16759 fi
16760 fi
16761 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16762 if test -n "$READELF_FOR_TARGET"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16764 $as_echo "$READELF_FOR_TARGET" >&6; }
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16768 fi
16769
16770
16771 fi
16772 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16774 set dummy ${ncn_progname}; ac_word=$2
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16776 $as_echo_n "checking for $ac_word... " >&6; }
16777 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16778 $as_echo_n "(cached) " >&6
16779 else
16780 if test -n "$READELF_FOR_TARGET"; then
16781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16782 else
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16785 do
16786 IFS=$as_save_IFS
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16792 break 2
16793 fi
16794 done
16795 done
16796 IFS=$as_save_IFS
16797
16798 fi
16799 fi
16800 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16801 if test -n "$READELF_FOR_TARGET"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16803 $as_echo "$READELF_FOR_TARGET" >&6; }
16804 else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16807 fi
16808
16809
16810 fi
16811 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16812 done
16813 fi
16814
16815 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16816 set dummy readelf
16817 if test $build = $target ; then
16818 READELF_FOR_TARGET="$2"
16819 else
16820 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16821 fi
16822 else
16823 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16824 fi
16825
16826 else
16827 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16828 fi
16829
16830
16831
16832
16833 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16834 if test -n "$with_build_time_tools"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16836 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16837 if test -x $with_build_time_tools/strip; then
16838 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16839 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16841 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16842 else
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16845 fi
16846 elif test $build != $host && test $have_gcc_for_target = yes; then
16847 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16848 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16849 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16850 fi
16851 fi
16852 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16853 # Extract the first word of "strip", so it can be a program name with args.
16854 set dummy strip; ac_word=$2
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16856 $as_echo_n "checking for $ac_word... " >&6; }
16857 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 case $STRIP_FOR_TARGET in
16861 [\\/]* | ?:[\\/]*)
16862 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16863 ;;
16864 *)
16865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 for as_dir in $gcc_cv_tool_dirs
16867 do
16868 IFS=$as_save_IFS
16869 test -z "$as_dir" && as_dir=.
16870 for ac_exec_ext in '' $ac_executable_extensions; do
16871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16872 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16874 break 2
16875 fi
16876 done
16877 done
16878 IFS=$as_save_IFS
16879
16880 ;;
16881 esac
16882 fi
16883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16884 if test -n "$STRIP_FOR_TARGET"; then
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16886 $as_echo "$STRIP_FOR_TARGET" >&6; }
16887 else
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16889 $as_echo "no" >&6; }
16890 fi
16891
16892
16893 fi
16894 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16895
16896
16897 if test -n "$STRIP_FOR_TARGET"; then
16898 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16899 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16900 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16901 fi
16902
16903 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16904 for ncn_progname in strip; do
16905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16906 set dummy ${ncn_progname}; ac_word=$2
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908 $as_echo_n "checking for $ac_word... " >&6; }
16909 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16910 $as_echo_n "(cached) " >&6
16911 else
16912 if test -n "$STRIP_FOR_TARGET"; then
16913 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16914 else
16915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916 for as_dir in $PATH
16917 do
16918 IFS=$as_save_IFS
16919 test -z "$as_dir" && as_dir=.
16920 for ac_exec_ext in '' $ac_executable_extensions; do
16921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16922 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 break 2
16925 fi
16926 done
16927 done
16928 IFS=$as_save_IFS
16929
16930 fi
16931 fi
16932 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16935 $as_echo "$STRIP_FOR_TARGET" >&6; }
16936 else
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939 fi
16940
16941
16942 done
16943 fi
16944
16945 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16946 for ncn_progname in strip; do
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16949 if test -x $with_build_time_tools/${ncn_progname}; then
16950 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16952 $as_echo "yes" >&6; }
16953 break
16954 else
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16956 $as_echo "no" >&6; }
16957 fi
16958 done
16959 fi
16960
16961 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16962 for ncn_progname in strip; do
16963 if test -n "$ncn_target_tool_prefix"; then
16964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16967 $as_echo_n "checking for $ac_word... " >&6; }
16968 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 if test -n "$STRIP_FOR_TARGET"; then
16972 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16973 else
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16976 do
16977 IFS=$as_save_IFS
16978 test -z "$as_dir" && as_dir=.
16979 for ac_exec_ext in '' $ac_executable_extensions; do
16980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16981 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16983 break 2
16984 fi
16985 done
16986 done
16987 IFS=$as_save_IFS
16988
16989 fi
16990 fi
16991 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16992 if test -n "$STRIP_FOR_TARGET"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16994 $as_echo "$STRIP_FOR_TARGET" >&6; }
16995 else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
16998 fi
16999
17000
17001 fi
17002 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17004 set dummy ${ncn_progname}; ac_word=$2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17006 $as_echo_n "checking for $ac_word... " >&6; }
17007 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17008 $as_echo_n "(cached) " >&6
17009 else
17010 if test -n "$STRIP_FOR_TARGET"; then
17011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17012 else
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014 for as_dir in $PATH
17015 do
17016 IFS=$as_save_IFS
17017 test -z "$as_dir" && as_dir=.
17018 for ac_exec_ext in '' $ac_executable_extensions; do
17019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17022 break 2
17023 fi
17024 done
17025 done
17026 IFS=$as_save_IFS
17027
17028 fi
17029 fi
17030 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17031 if test -n "$STRIP_FOR_TARGET"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17033 $as_echo "$STRIP_FOR_TARGET" >&6; }
17034 else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039
17040 fi
17041 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17042 done
17043 fi
17044
17045 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17046 set dummy strip
17047 if test $build = $target ; then
17048 STRIP_FOR_TARGET="$2"
17049 else
17050 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17051 fi
17052 else
17053 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17054 fi
17055
17056 else
17057 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17058 fi
17059
17060
17061
17062
17063 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17064 if test -n "$with_build_time_tools"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17066 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17067 if test -x $with_build_time_tools/windres; then
17068 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17069 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17071 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17072 else
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074 $as_echo "no" >&6; }
17075 fi
17076 elif test $build != $host && test $have_gcc_for_target = yes; then
17077 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17078 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17079 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17080 fi
17081 fi
17082 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17083 # Extract the first word of "windres", so it can be a program name with args.
17084 set dummy windres; ac_word=$2
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17086 $as_echo_n "checking for $ac_word... " >&6; }
17087 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17088 $as_echo_n "(cached) " >&6
17089 else
17090 case $WINDRES_FOR_TARGET in
17091 [\\/]* | ?:[\\/]*)
17092 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17093 ;;
17094 *)
17095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096 for as_dir in $gcc_cv_tool_dirs
17097 do
17098 IFS=$as_save_IFS
17099 test -z "$as_dir" && as_dir=.
17100 for ac_exec_ext in '' $ac_executable_extensions; do
17101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17102 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17104 break 2
17105 fi
17106 done
17107 done
17108 IFS=$as_save_IFS
17109
17110 ;;
17111 esac
17112 fi
17113 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17114 if test -n "$WINDRES_FOR_TARGET"; then
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17116 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17117 else
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17120 fi
17121
17122
17123 fi
17124 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17125
17126
17127 if test -n "$WINDRES_FOR_TARGET"; then
17128 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17129 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17130 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17131 fi
17132
17133 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17134 for ncn_progname in windres; do
17135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17136 set dummy ${ncn_progname}; ac_word=$2
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17138 $as_echo_n "checking for $ac_word... " >&6; }
17139 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142 if test -n "$WINDRES_FOR_TARGET"; then
17143 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17144 else
17145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17146 for as_dir in $PATH
17147 do
17148 IFS=$as_save_IFS
17149 test -z "$as_dir" && as_dir=.
17150 for ac_exec_ext in '' $ac_executable_extensions; do
17151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17152 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17154 break 2
17155 fi
17156 done
17157 done
17158 IFS=$as_save_IFS
17159
17160 fi
17161 fi
17162 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17165 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17166 else
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17168 $as_echo "no" >&6; }
17169 fi
17170
17171
17172 done
17173 fi
17174
17175 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17176 for ncn_progname in windres; do
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17178 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17179 if test -x $with_build_time_tools/${ncn_progname}; then
17180 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17182 $as_echo "yes" >&6; }
17183 break
17184 else
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187 fi
17188 done
17189 fi
17190
17191 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17192 for ncn_progname in windres; do
17193 if test -n "$ncn_target_tool_prefix"; then
17194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 if test -n "$WINDRES_FOR_TARGET"; then
17202 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17203 else
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17206 do
17207 IFS=$as_save_IFS
17208 test -z "$as_dir" && as_dir=.
17209 for ac_exec_ext in '' $ac_executable_extensions; do
17210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17211 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17213 break 2
17214 fi
17215 done
17216 done
17217 IFS=$as_save_IFS
17218
17219 fi
17220 fi
17221 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17222 if test -n "$WINDRES_FOR_TARGET"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17224 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17225 else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227 $as_echo "no" >&6; }
17228 fi
17229
17230
17231 fi
17232 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17234 set dummy ${ncn_progname}; ac_word=$2
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17236 $as_echo_n "checking for $ac_word... " >&6; }
17237 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17238 $as_echo_n "(cached) " >&6
17239 else
17240 if test -n "$WINDRES_FOR_TARGET"; then
17241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17242 else
17243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244 for as_dir in $PATH
17245 do
17246 IFS=$as_save_IFS
17247 test -z "$as_dir" && as_dir=.
17248 for ac_exec_ext in '' $ac_executable_extensions; do
17249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17252 break 2
17253 fi
17254 done
17255 done
17256 IFS=$as_save_IFS
17257
17258 fi
17259 fi
17260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17261 if test -n "$WINDRES_FOR_TARGET"; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17263 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17264 else
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266 $as_echo "no" >&6; }
17267 fi
17268
17269
17270 fi
17271 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17272 done
17273 fi
17274
17275 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17276 set dummy windres
17277 if test $build = $target ; then
17278 WINDRES_FOR_TARGET="$2"
17279 else
17280 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17281 fi
17282 else
17283 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17284 fi
17285
17286 else
17287 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17288 fi
17289
17290
17291
17292
17293 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17294 if test -n "$with_build_time_tools"; then
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17296 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17297 if test -x $with_build_time_tools/windmc; then
17298 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17299 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17301 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17302 else
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17305 fi
17306 elif test $build != $host && test $have_gcc_for_target = yes; then
17307 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17308 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17309 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17310 fi
17311 fi
17312 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17313 # Extract the first word of "windmc", so it can be a program name with args.
17314 set dummy windmc; ac_word=$2
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17316 $as_echo_n "checking for $ac_word... " >&6; }
17317 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17318 $as_echo_n "(cached) " >&6
17319 else
17320 case $WINDMC_FOR_TARGET in
17321 [\\/]* | ?:[\\/]*)
17322 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17323 ;;
17324 *)
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $gcc_cv_tool_dirs
17327 do
17328 IFS=$as_save_IFS
17329 test -z "$as_dir" && as_dir=.
17330 for ac_exec_ext in '' $ac_executable_extensions; do
17331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17334 break 2
17335 fi
17336 done
17337 done
17338 IFS=$as_save_IFS
17339
17340 ;;
17341 esac
17342 fi
17343 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17344 if test -n "$WINDMC_FOR_TARGET"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17346 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17347 else
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 $as_echo "no" >&6; }
17350 fi
17351
17352
17353 fi
17354 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17355
17356
17357 if test -n "$WINDMC_FOR_TARGET"; then
17358 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17359 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17360 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17361 fi
17362
17363 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17364 for ncn_progname in windmc; do
17365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17366 set dummy ${ncn_progname}; ac_word=$2
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17368 $as_echo_n "checking for $ac_word... " >&6; }
17369 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 if test -n "$WINDMC_FOR_TARGET"; then
17373 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17374 else
17375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17376 for as_dir in $PATH
17377 do
17378 IFS=$as_save_IFS
17379 test -z "$as_dir" && as_dir=.
17380 for ac_exec_ext in '' $ac_executable_extensions; do
17381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17382 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17384 break 2
17385 fi
17386 done
17387 done
17388 IFS=$as_save_IFS
17389
17390 fi
17391 fi
17392 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17395 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17396 else
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398 $as_echo "no" >&6; }
17399 fi
17400
17401
17402 done
17403 fi
17404
17405 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17406 for ncn_progname in windmc; do
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17409 if test -x $with_build_time_tools/${ncn_progname}; then
17410 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17412 $as_echo "yes" >&6; }
17413 break
17414 else
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17417 fi
17418 done
17419 fi
17420
17421 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17422 for ncn_progname in windmc; do
17423 if test -n "$ncn_target_tool_prefix"; then
17424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17427 $as_echo_n "checking for $ac_word... " >&6; }
17428 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17429 $as_echo_n "(cached) " >&6
17430 else
17431 if test -n "$WINDMC_FOR_TARGET"; then
17432 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17433 else
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17436 do
17437 IFS=$as_save_IFS
17438 test -z "$as_dir" && as_dir=.
17439 for ac_exec_ext in '' $ac_executable_extensions; do
17440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17443 break 2
17444 fi
17445 done
17446 done
17447 IFS=$as_save_IFS
17448
17449 fi
17450 fi
17451 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17452 if test -n "$WINDMC_FOR_TARGET"; then
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17454 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17455 else
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17457 $as_echo "no" >&6; }
17458 fi
17459
17460
17461 fi
17462 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17464 set dummy ${ncn_progname}; ac_word=$2
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17466 $as_echo_n "checking for $ac_word... " >&6; }
17467 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17468 $as_echo_n "(cached) " >&6
17469 else
17470 if test -n "$WINDMC_FOR_TARGET"; then
17471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17472 else
17473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474 for as_dir in $PATH
17475 do
17476 IFS=$as_save_IFS
17477 test -z "$as_dir" && as_dir=.
17478 for ac_exec_ext in '' $ac_executable_extensions; do
17479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17482 break 2
17483 fi
17484 done
17485 done
17486 IFS=$as_save_IFS
17487
17488 fi
17489 fi
17490 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17491 if test -n "$WINDMC_FOR_TARGET"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17493 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17494 else
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17496 $as_echo "no" >&6; }
17497 fi
17498
17499
17500 fi
17501 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17502 done
17503 fi
17504
17505 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17506 set dummy windmc
17507 if test $build = $target ; then
17508 WINDMC_FOR_TARGET="$2"
17509 else
17510 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17511 fi
17512 else
17513 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17514 fi
17515
17516 else
17517 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17518 fi
17519
17520
17521 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17522
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17524 $as_echo_n "checking where to find the target ar... " >&6; }
17525 if test "x${build}" != "x${host}" ; then
17526 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17527 # We already found the complete path
17528 ac_dir=`dirname $AR_FOR_TARGET`
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17530 $as_echo "pre-installed in $ac_dir" >&6; }
17531 else
17532 # Canadian cross, just use what we found
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17534 $as_echo "pre-installed" >&6; }
17535 fi
17536 else
17537 ok=yes
17538 case " ${configdirs} " in
17539 *" binutils "*) ;;
17540 *) ok=no ;;
17541 esac
17542
17543 if test $ok = yes; then
17544 # An in-tree tool is available and we can use it
17545 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17547 $as_echo "just compiled" >&6; }
17548 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17549 # We already found the complete path
17550 ac_dir=`dirname $AR_FOR_TARGET`
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17552 $as_echo "pre-installed in $ac_dir" >&6; }
17553 elif test "x$target" = "x$host"; then
17554 # We can use an host tool
17555 AR_FOR_TARGET='$(AR)'
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17557 $as_echo "host tool" >&6; }
17558 else
17559 # We need a cross tool
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17561 $as_echo "pre-installed" >&6; }
17562 fi
17563 fi
17564
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17566 $as_echo_n "checking where to find the target as... " >&6; }
17567 if test "x${build}" != "x${host}" ; then
17568 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17569 # We already found the complete path
17570 ac_dir=`dirname $AS_FOR_TARGET`
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17572 $as_echo "pre-installed in $ac_dir" >&6; }
17573 else
17574 # Canadian cross, just use what we found
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17576 $as_echo "pre-installed" >&6; }
17577 fi
17578 else
17579 ok=yes
17580 case " ${configdirs} " in
17581 *" gas "*) ;;
17582 *) ok=no ;;
17583 esac
17584
17585 if test $ok = yes; then
17586 # An in-tree tool is available and we can use it
17587 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17589 $as_echo "just compiled" >&6; }
17590 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17591 # We already found the complete path
17592 ac_dir=`dirname $AS_FOR_TARGET`
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17594 $as_echo "pre-installed in $ac_dir" >&6; }
17595 elif test "x$target" = "x$host"; then
17596 # We can use an host tool
17597 AS_FOR_TARGET='$(AS)'
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17599 $as_echo "host tool" >&6; }
17600 else
17601 # We need a cross tool
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17603 $as_echo "pre-installed" >&6; }
17604 fi
17605 fi
17606
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17608 $as_echo_n "checking where to find the target cc... " >&6; }
17609 if test "x${build}" != "x${host}" ; then
17610 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17611 # We already found the complete path
17612 ac_dir=`dirname $CC_FOR_TARGET`
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17614 $as_echo "pre-installed in $ac_dir" >&6; }
17615 else
17616 # Canadian cross, just use what we found
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17618 $as_echo "pre-installed" >&6; }
17619 fi
17620 else
17621 ok=yes
17622 case " ${configdirs} " in
17623 *" gcc "*) ;;
17624 *) ok=no ;;
17625 esac
17626
17627 if test $ok = yes; then
17628 # An in-tree tool is available and we can use it
17629 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17631 $as_echo "just compiled" >&6; }
17632 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17633 # We already found the complete path
17634 ac_dir=`dirname $CC_FOR_TARGET`
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17636 $as_echo "pre-installed in $ac_dir" >&6; }
17637 elif test "x$target" = "x$host"; then
17638 # We can use an host tool
17639 CC_FOR_TARGET='$(CC)'
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17641 $as_echo "host tool" >&6; }
17642 else
17643 # We need a cross tool
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17645 $as_echo "pre-installed" >&6; }
17646 fi
17647 fi
17648
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17650 $as_echo_n "checking where to find the target c++... " >&6; }
17651 if test "x${build}" != "x${host}" ; then
17652 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17653 # We already found the complete path
17654 ac_dir=`dirname $CXX_FOR_TARGET`
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17656 $as_echo "pre-installed in $ac_dir" >&6; }
17657 else
17658 # Canadian cross, just use what we found
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17660 $as_echo "pre-installed" >&6; }
17661 fi
17662 else
17663 ok=yes
17664 case " ${configdirs} " in
17665 *" gcc "*) ;;
17666 *) ok=no ;;
17667 esac
17668 case ,${enable_languages}, in
17669 *,c++,*) ;;
17670 *) ok=no ;;
17671 esac
17672 if test $ok = yes; then
17673 # An in-tree tool is available and we can use it
17674 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'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17676 $as_echo "just compiled" >&6; }
17677 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17678 # We already found the complete path
17679 ac_dir=`dirname $CXX_FOR_TARGET`
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17681 $as_echo "pre-installed in $ac_dir" >&6; }
17682 elif test "x$target" = "x$host"; then
17683 # We can use an host tool
17684 CXX_FOR_TARGET='$(CXX)'
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17686 $as_echo "host tool" >&6; }
17687 else
17688 # We need a cross tool
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17690 $as_echo "pre-installed" >&6; }
17691 fi
17692 fi
17693
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17695 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17696 if test "x${build}" != "x${host}" ; then
17697 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17698 # We already found the complete path
17699 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17701 $as_echo "pre-installed in $ac_dir" >&6; }
17702 else
17703 # Canadian cross, just use what we found
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17705 $as_echo "pre-installed" >&6; }
17706 fi
17707 else
17708 ok=yes
17709 case " ${configdirs} " in
17710 *" gcc "*) ;;
17711 *) ok=no ;;
17712 esac
17713 case ,${enable_languages}, in
17714 *,c++,*) ;;
17715 *) ok=no ;;
17716 esac
17717 if test $ok = yes; then
17718 # An in-tree tool is available and we can use it
17719 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'
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17721 $as_echo "just compiled" >&6; }
17722 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17723 # We already found the complete path
17724 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17726 $as_echo "pre-installed in $ac_dir" >&6; }
17727 elif test "x$target" = "x$host"; then
17728 # We can use an host tool
17729 RAW_CXX_FOR_TARGET='$(CXX)'
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17731 $as_echo "host tool" >&6; }
17732 else
17733 # We need a cross tool
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17735 $as_echo "pre-installed" >&6; }
17736 fi
17737 fi
17738
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17740 $as_echo_n "checking where to find the target dlltool... " >&6; }
17741 if test "x${build}" != "x${host}" ; then
17742 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17743 # We already found the complete path
17744 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17746 $as_echo "pre-installed in $ac_dir" >&6; }
17747 else
17748 # Canadian cross, just use what we found
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17750 $as_echo "pre-installed" >&6; }
17751 fi
17752 else
17753 ok=yes
17754 case " ${configdirs} " in
17755 *" binutils "*) ;;
17756 *) ok=no ;;
17757 esac
17758
17759 if test $ok = yes; then
17760 # An in-tree tool is available and we can use it
17761 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17763 $as_echo "just compiled" >&6; }
17764 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17765 # We already found the complete path
17766 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17768 $as_echo "pre-installed in $ac_dir" >&6; }
17769 elif test "x$target" = "x$host"; then
17770 # We can use an host tool
17771 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17773 $as_echo "host tool" >&6; }
17774 else
17775 # We need a cross tool
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17777 $as_echo "pre-installed" >&6; }
17778 fi
17779 fi
17780
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17782 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17783 if test "x${build}" != "x${host}" ; then
17784 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17785 # We already found the complete path
17786 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17788 $as_echo "pre-installed in $ac_dir" >&6; }
17789 else
17790 # Canadian cross, just use what we found
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17792 $as_echo "pre-installed" >&6; }
17793 fi
17794 else
17795 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17796 # We already found the complete path
17797 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17799 $as_echo "pre-installed in $ac_dir" >&6; }
17800 elif test "x$target" = "x$host"; then
17801 # We can use an host tool
17802 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17804 $as_echo "host tool" >&6; }
17805 else
17806 # We need a cross tool
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17808 $as_echo "pre-installed" >&6; }
17809 fi
17810 fi
17811
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17813 $as_echo_n "checking where to find the target gcc... " >&6; }
17814 if test "x${build}" != "x${host}" ; then
17815 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17816 # We already found the complete path
17817 ac_dir=`dirname $GCC_FOR_TARGET`
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17819 $as_echo "pre-installed in $ac_dir" >&6; }
17820 else
17821 # Canadian cross, just use what we found
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17823 $as_echo "pre-installed" >&6; }
17824 fi
17825 else
17826 ok=yes
17827 case " ${configdirs} " in
17828 *" gcc "*) ;;
17829 *) ok=no ;;
17830 esac
17831
17832 if test $ok = yes; then
17833 # An in-tree tool is available and we can use it
17834 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17836 $as_echo "just compiled" >&6; }
17837 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17838 # We already found the complete path
17839 ac_dir=`dirname $GCC_FOR_TARGET`
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17841 $as_echo "pre-installed in $ac_dir" >&6; }
17842 elif test "x$target" = "x$host"; then
17843 # We can use an host tool
17844 GCC_FOR_TARGET='$()'
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17846 $as_echo "host tool" >&6; }
17847 else
17848 # We need a cross tool
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17850 $as_echo "pre-installed" >&6; }
17851 fi
17852 fi
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17855 $as_echo_n "checking where to find the target gfortran... " >&6; }
17856 if test "x${build}" != "x${host}" ; then
17857 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17858 # We already found the complete path
17859 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17861 $as_echo "pre-installed in $ac_dir" >&6; }
17862 else
17863 # Canadian cross, just use what we found
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17865 $as_echo "pre-installed" >&6; }
17866 fi
17867 else
17868 ok=yes
17869 case " ${configdirs} " in
17870 *" gcc "*) ;;
17871 *) ok=no ;;
17872 esac
17873 case ,${enable_languages}, in
17874 *,fortran,*) ;;
17875 *) ok=no ;;
17876 esac
17877 if test $ok = yes; then
17878 # An in-tree tool is available and we can use it
17879 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17881 $as_echo "just compiled" >&6; }
17882 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17883 # We already found the complete path
17884 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17886 $as_echo "pre-installed in $ac_dir" >&6; }
17887 elif test "x$target" = "x$host"; then
17888 # We can use an host tool
17889 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17891 $as_echo "host tool" >&6; }
17892 else
17893 # We need a cross tool
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17895 $as_echo "pre-installed" >&6; }
17896 fi
17897 fi
17898
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17900 $as_echo_n "checking where to find the target gccgo... " >&6; }
17901 if test "x${build}" != "x${host}" ; then
17902 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17903 # We already found the complete path
17904 ac_dir=`dirname $GOC_FOR_TARGET`
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17906 $as_echo "pre-installed in $ac_dir" >&6; }
17907 else
17908 # Canadian cross, just use what we found
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17910 $as_echo "pre-installed" >&6; }
17911 fi
17912 else
17913 ok=yes
17914 case " ${configdirs} " in
17915 *" gcc "*) ;;
17916 *) ok=no ;;
17917 esac
17918 case ,${enable_languages}, in
17919 *,go,*) ;;
17920 *) ok=no ;;
17921 esac
17922 if test $ok = yes; then
17923 # An in-tree tool is available and we can use it
17924 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17926 $as_echo "just compiled" >&6; }
17927 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17928 # We already found the complete path
17929 ac_dir=`dirname $GOC_FOR_TARGET`
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17931 $as_echo "pre-installed in $ac_dir" >&6; }
17932 elif test "x$target" = "x$host"; then
17933 # We can use an host tool
17934 GOC_FOR_TARGET='$(GOC)'
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17936 $as_echo "host tool" >&6; }
17937 else
17938 # We need a cross tool
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940 $as_echo "pre-installed" >&6; }
17941 fi
17942 fi
17943
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17945 $as_echo_n "checking where to find the target gdc... " >&6; }
17946 if test "x${build}" != "x${host}" ; then
17947 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17948 # We already found the complete path
17949 ac_dir=`dirname $GDC_FOR_TARGET`
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17951 $as_echo "pre-installed in $ac_dir" >&6; }
17952 else
17953 # Canadian cross, just use what we found
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17955 $as_echo "pre-installed" >&6; }
17956 fi
17957 else
17958 ok=yes
17959 case " ${configdirs} " in
17960 *" gcc "*) ;;
17961 *) ok=no ;;
17962 esac
17963 case ,${enable_languages}, in
17964 *,d,*) ;;
17965 *) ok=no ;;
17966 esac
17967 if test $ok = yes; then
17968 # An in-tree tool is available and we can use it
17969 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17971 $as_echo "just compiled" >&6; }
17972 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17973 # We already found the complete path
17974 ac_dir=`dirname $GDC_FOR_TARGET`
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17976 $as_echo "pre-installed in $ac_dir" >&6; }
17977 elif test "x$target" = "x$host"; then
17978 # We can use an host tool
17979 GDC_FOR_TARGET='$(GDC)'
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17981 $as_echo "host tool" >&6; }
17982 else
17983 # We need a cross tool
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985 $as_echo "pre-installed" >&6; }
17986 fi
17987 fi
17988
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17990 $as_echo_n "checking where to find the target ld... " >&6; }
17991 if test "x${build}" != "x${host}" ; then
17992 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17993 # We already found the complete path
17994 ac_dir=`dirname $LD_FOR_TARGET`
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17996 $as_echo "pre-installed in $ac_dir" >&6; }
17997 else
17998 # Canadian cross, just use what we found
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18000 $as_echo "pre-installed" >&6; }
18001 fi
18002 else
18003 ok=yes
18004 case " ${configdirs} " in
18005 *" ld "*) ;;
18006 *) ok=no ;;
18007 esac
18008
18009 if test $ok = yes; then
18010 # An in-tree tool is available and we can use it
18011 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18013 $as_echo "just compiled" >&6; }
18014 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18015 # We already found the complete path
18016 ac_dir=`dirname $LD_FOR_TARGET`
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18018 $as_echo "pre-installed in $ac_dir" >&6; }
18019 elif test "x$target" = "x$host"; then
18020 # We can use an host tool
18021 LD_FOR_TARGET='$(LD)'
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18023 $as_echo "host tool" >&6; }
18024 else
18025 # We need a cross tool
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18027 $as_echo "pre-installed" >&6; }
18028 fi
18029 fi
18030
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18032 $as_echo_n "checking where to find the target lipo... " >&6; }
18033 if test "x${build}" != "x${host}" ; then
18034 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18035 # We already found the complete path
18036 ac_dir=`dirname $LIPO_FOR_TARGET`
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18038 $as_echo "pre-installed in $ac_dir" >&6; }
18039 else
18040 # Canadian cross, just use what we found
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18042 $as_echo "pre-installed" >&6; }
18043 fi
18044 else
18045 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18046 # We already found the complete path
18047 ac_dir=`dirname $LIPO_FOR_TARGET`
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18049 $as_echo "pre-installed in $ac_dir" >&6; }
18050 elif test "x$target" = "x$host"; then
18051 # We can use an host tool
18052 LIPO_FOR_TARGET='$(LIPO)'
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18054 $as_echo "host tool" >&6; }
18055 else
18056 # We need a cross tool
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18058 $as_echo "pre-installed" >&6; }
18059 fi
18060 fi
18061
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18063 $as_echo_n "checking where to find the target nm... " >&6; }
18064 if test "x${build}" != "x${host}" ; then
18065 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18066 # We already found the complete path
18067 ac_dir=`dirname $NM_FOR_TARGET`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18069 $as_echo "pre-installed in $ac_dir" >&6; }
18070 else
18071 # Canadian cross, just use what we found
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18073 $as_echo "pre-installed" >&6; }
18074 fi
18075 else
18076 ok=yes
18077 case " ${configdirs} " in
18078 *" binutils "*) ;;
18079 *) ok=no ;;
18080 esac
18081
18082 if test $ok = yes; then
18083 # An in-tree tool is available and we can use it
18084 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18086 $as_echo "just compiled" >&6; }
18087 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18088 # We already found the complete path
18089 ac_dir=`dirname $NM_FOR_TARGET`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18091 $as_echo "pre-installed in $ac_dir" >&6; }
18092 elif test "x$target" = "x$host"; then
18093 # We can use an host tool
18094 NM_FOR_TARGET='$(NM)'
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18096 $as_echo "host tool" >&6; }
18097 else
18098 # We need a cross tool
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18100 $as_echo "pre-installed" >&6; }
18101 fi
18102 fi
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18105 $as_echo_n "checking where to find the target objcopy... " >&6; }
18106 if test "x${build}" != "x${host}" ; then
18107 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18108 # We already found the complete path
18109 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18111 $as_echo "pre-installed in $ac_dir" >&6; }
18112 else
18113 # Canadian cross, just use what we found
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18115 $as_echo "pre-installed" >&6; }
18116 fi
18117 else
18118 ok=yes
18119 case " ${configdirs} " in
18120 *" binutils "*) ;;
18121 *) ok=no ;;
18122 esac
18123
18124 if test $ok = yes; then
18125 # An in-tree tool is available and we can use it
18126 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18128 $as_echo "just compiled" >&6; }
18129 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18130 # We already found the complete path
18131 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18133 $as_echo "pre-installed in $ac_dir" >&6; }
18134 elif test "x$target" = "x$host"; then
18135 # We can use an host tool
18136 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18138 $as_echo "host tool" >&6; }
18139 else
18140 # We need a cross tool
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18142 $as_echo "pre-installed" >&6; }
18143 fi
18144 fi
18145
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18147 $as_echo_n "checking where to find the target objdump... " >&6; }
18148 if test "x${build}" != "x${host}" ; then
18149 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18153 $as_echo "pre-installed in $ac_dir" >&6; }
18154 else
18155 # Canadian cross, just use what we found
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18157 $as_echo "pre-installed" >&6; }
18158 fi
18159 else
18160 ok=yes
18161 case " ${configdirs} " in
18162 *" binutils "*) ;;
18163 *) ok=no ;;
18164 esac
18165
18166 if test $ok = yes; then
18167 # An in-tree tool is available and we can use it
18168 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18170 $as_echo "just compiled" >&6; }
18171 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18172 # We already found the complete path
18173 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18175 $as_echo "pre-installed in $ac_dir" >&6; }
18176 elif test "x$target" = "x$host"; then
18177 # We can use an host tool
18178 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18180 $as_echo "host tool" >&6; }
18181 else
18182 # We need a cross tool
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18184 $as_echo "pre-installed" >&6; }
18185 fi
18186 fi
18187
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18189 $as_echo_n "checking where to find the target otool... " >&6; }
18190 if test "x${build}" != "x${host}" ; then
18191 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18192 # We already found the complete path
18193 ac_dir=`dirname $OTOOL_FOR_TARGET`
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18195 $as_echo "pre-installed in $ac_dir" >&6; }
18196 else
18197 # Canadian cross, just use what we found
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18199 $as_echo "pre-installed" >&6; }
18200 fi
18201 else
18202 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18203 # We already found the complete path
18204 ac_dir=`dirname $OTOOL_FOR_TARGET`
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18206 $as_echo "pre-installed in $ac_dir" >&6; }
18207 elif test "x$target" = "x$host"; then
18208 # We can use an host tool
18209 OTOOL_FOR_TARGET='$(OTOOL)'
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18211 $as_echo "host tool" >&6; }
18212 else
18213 # We need a cross tool
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18215 $as_echo "pre-installed" >&6; }
18216 fi
18217 fi
18218
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18220 $as_echo_n "checking where to find the target ranlib... " >&6; }
18221 if test "x${build}" != "x${host}" ; then
18222 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18223 # We already found the complete path
18224 ac_dir=`dirname $RANLIB_FOR_TARGET`
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18226 $as_echo "pre-installed in $ac_dir" >&6; }
18227 else
18228 # Canadian cross, just use what we found
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18230 $as_echo "pre-installed" >&6; }
18231 fi
18232 else
18233 ok=yes
18234 case " ${configdirs} " in
18235 *" binutils "*) ;;
18236 *) ok=no ;;
18237 esac
18238
18239 if test $ok = yes; then
18240 # An in-tree tool is available and we can use it
18241 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18243 $as_echo "just compiled" >&6; }
18244 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18245 # We already found the complete path
18246 ac_dir=`dirname $RANLIB_FOR_TARGET`
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18248 $as_echo "pre-installed in $ac_dir" >&6; }
18249 elif test "x$target" = "x$host"; then
18250 # We can use an host tool
18251 RANLIB_FOR_TARGET='$(RANLIB)'
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18253 $as_echo "host tool" >&6; }
18254 else
18255 # We need a cross tool
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18257 $as_echo "pre-installed" >&6; }
18258 fi
18259 fi
18260
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18262 $as_echo_n "checking where to find the target readelf... " >&6; }
18263 if test "x${build}" != "x${host}" ; then
18264 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18265 # We already found the complete path
18266 ac_dir=`dirname $READELF_FOR_TARGET`
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18268 $as_echo "pre-installed in $ac_dir" >&6; }
18269 else
18270 # Canadian cross, just use what we found
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18272 $as_echo "pre-installed" >&6; }
18273 fi
18274 else
18275 ok=yes
18276 case " ${configdirs} " in
18277 *" binutils "*) ;;
18278 *) ok=no ;;
18279 esac
18280
18281 if test $ok = yes; then
18282 # An in-tree tool is available and we can use it
18283 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18285 $as_echo "just compiled" >&6; }
18286 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18287 # We already found the complete path
18288 ac_dir=`dirname $READELF_FOR_TARGET`
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18290 $as_echo "pre-installed in $ac_dir" >&6; }
18291 elif test "x$target" = "x$host"; then
18292 # We can use an host tool
18293 READELF_FOR_TARGET='$(READELF)'
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18295 $as_echo "host tool" >&6; }
18296 else
18297 # We need a cross tool
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18299 $as_echo "pre-installed" >&6; }
18300 fi
18301 fi
18302
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18304 $as_echo_n "checking where to find the target strip... " >&6; }
18305 if test "x${build}" != "x${host}" ; then
18306 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18307 # We already found the complete path
18308 ac_dir=`dirname $STRIP_FOR_TARGET`
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18310 $as_echo "pre-installed in $ac_dir" >&6; }
18311 else
18312 # Canadian cross, just use what we found
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18314 $as_echo "pre-installed" >&6; }
18315 fi
18316 else
18317 ok=yes
18318 case " ${configdirs} " in
18319 *" binutils "*) ;;
18320 *) ok=no ;;
18321 esac
18322
18323 if test $ok = yes; then
18324 # An in-tree tool is available and we can use it
18325 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18327 $as_echo "just compiled" >&6; }
18328 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18329 # We already found the complete path
18330 ac_dir=`dirname $STRIP_FOR_TARGET`
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18332 $as_echo "pre-installed in $ac_dir" >&6; }
18333 elif test "x$target" = "x$host"; then
18334 # We can use an host tool
18335 STRIP_FOR_TARGET='$(STRIP)'
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18337 $as_echo "host tool" >&6; }
18338 else
18339 # We need a cross tool
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18341 $as_echo "pre-installed" >&6; }
18342 fi
18343 fi
18344
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18346 $as_echo_n "checking where to find the target windres... " >&6; }
18347 if test "x${build}" != "x${host}" ; then
18348 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18349 # We already found the complete path
18350 ac_dir=`dirname $WINDRES_FOR_TARGET`
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18352 $as_echo "pre-installed in $ac_dir" >&6; }
18353 else
18354 # Canadian cross, just use what we found
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18356 $as_echo "pre-installed" >&6; }
18357 fi
18358 else
18359 ok=yes
18360 case " ${configdirs} " in
18361 *" binutils "*) ;;
18362 *) ok=no ;;
18363 esac
18364
18365 if test $ok = yes; then
18366 # An in-tree tool is available and we can use it
18367 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18369 $as_echo "just compiled" >&6; }
18370 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18371 # We already found the complete path
18372 ac_dir=`dirname $WINDRES_FOR_TARGET`
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18374 $as_echo "pre-installed in $ac_dir" >&6; }
18375 elif test "x$target" = "x$host"; then
18376 # We can use an host tool
18377 WINDRES_FOR_TARGET='$(WINDRES)'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18379 $as_echo "host tool" >&6; }
18380 else
18381 # We need a cross tool
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18383 $as_echo "pre-installed" >&6; }
18384 fi
18385 fi
18386
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18388 $as_echo_n "checking where to find the target windmc... " >&6; }
18389 if test "x${build}" != "x${host}" ; then
18390 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18391 # We already found the complete path
18392 ac_dir=`dirname $WINDMC_FOR_TARGET`
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18394 $as_echo "pre-installed in $ac_dir" >&6; }
18395 else
18396 # Canadian cross, just use what we found
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18398 $as_echo "pre-installed" >&6; }
18399 fi
18400 else
18401 ok=yes
18402 case " ${configdirs} " in
18403 *" binutils "*) ;;
18404 *) ok=no ;;
18405 esac
18406
18407 if test $ok = yes; then
18408 # An in-tree tool is available and we can use it
18409 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18411 $as_echo "just compiled" >&6; }
18412 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18413 # We already found the complete path
18414 ac_dir=`dirname $WINDMC_FOR_TARGET`
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18416 $as_echo "pre-installed in $ac_dir" >&6; }
18417 elif test "x$target" = "x$host"; then
18418 # We can use an host tool
18419 WINDMC_FOR_TARGET='$(WINDMC)'
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18421 $as_echo "host tool" >&6; }
18422 else
18423 # We need a cross tool
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18425 $as_echo "pre-installed" >&6; }
18426 fi
18427 fi
18428
18429
18430
18431
18432
18433 # Certain tools may need extra flags.
18434 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18435 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18436 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18437
18438 # When building target libraries, except in a Canadian cross, we use
18439 # the same toolchain as the compiler we just built.
18440 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18441 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18442 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18443 if test $host = $build; then
18444 case " $configdirs " in
18445 *" gcc "*)
18446 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18447 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18448 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18449 ;;
18450 esac
18451 fi
18452
18453
18454
18455
18456
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18458 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18459 # Check whether --enable-maintainer-mode was given.
18460 if test "${enable_maintainer_mode+set}" = set; then :
18461 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18462 else
18463 USE_MAINTAINER_MODE=no
18464 fi
18465
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18467 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18468
18469
18470 if test "$USE_MAINTAINER_MODE" = yes; then
18471 MAINTAINER_MODE_TRUE=
18472 MAINTAINER_MODE_FALSE='#'
18473 else
18474 MAINTAINER_MODE_TRUE='#'
18475 MAINTAINER_MODE_FALSE=
18476 fi
18477 MAINT=$MAINTAINER_MODE_TRUE
18478
18479 # ---------------------
18480 # GCC bootstrap support
18481 # ---------------------
18482
18483 # Stage specific cflags for build.
18484 stage1_cflags="-g"
18485 case $build in
18486 vax-*-*)
18487 case ${GCC} in
18488 yes) stage1_cflags="-g -Wa,-J" ;;
18489 *) stage1_cflags="-g -J" ;;
18490 esac ;;
18491 esac
18492
18493
18494
18495 # Enable --enable-checking in stage1 of the compiler.
18496 # Check whether --enable-stage1-checking was given.
18497 if test "${enable_stage1_checking+set}" = set; then :
18498 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18499 else
18500 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18501 # For --disable-checking or implicit --enable-checking=release, avoid
18502 # setting --enable-checking=gc in the default stage1 checking for LTO
18503 # bootstraps. See PR62077.
18504 case $BUILD_CONFIG in
18505 *lto*)
18506 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18507 *)
18508 stage1_checking=--enable-checking=yes,types;;
18509 esac
18510 if test "x$enable_checking" = x && \
18511 test -d ${srcdir}/gcc && \
18512 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18513 stage1_checking=--enable-checking=yes,types,extra
18514 fi
18515 else
18516 stage1_checking=--enable-checking=$enable_checking,types
18517 fi
18518 fi
18519
18520
18521
18522 # Enable -Werror in bootstrap stage2 and later.
18523 # Check whether --enable-werror was given.
18524 if test "${enable_werror+set}" = set; then :
18525 enableval=$enable_werror;
18526 case ${enable_werror} in
18527 yes) stage2_werror_flag="--enable-werror-always" ;;
18528 *) stage2_werror_flag="" ;;
18529 esac
18530
18531 else
18532
18533 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18534 case $BUILD_CONFIG in
18535 bootstrap-debug)
18536 stage2_werror_flag="--enable-werror-always" ;;
18537 "")
18538 stage2_werror_flag="--enable-werror-always" ;;
18539 esac
18540 fi
18541
18542 fi
18543
18544
18545
18546
18547 # Specify what files to not compare during bootstrap.
18548
18549 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18550 case "$target" in
18551 hppa*64*-*-hpux*) ;;
18552 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18553 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18554 esac
18555
18556
18557 ac_config_files="$ac_config_files Makefile"
18558
18559 cat >confcache <<\_ACEOF
18560 # This file is a shell script that caches the results of configure
18561 # tests run on this system so they can be shared between configure
18562 # scripts and configure runs, see configure's option --config-cache.
18563 # It is not useful on other systems. If it contains results you don't
18564 # want to keep, you may remove or edit it.
18565 #
18566 # config.status only pays attention to the cache file if you give it
18567 # the --recheck option to rerun configure.
18568 #
18569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18571 # following values.
18572
18573 _ACEOF
18574
18575 # The following way of writing the cache mishandles newlines in values,
18576 # but we know of no workaround that is simple, portable, and efficient.
18577 # So, we kill variables containing newlines.
18578 # Ultrix sh set writes to stderr and can't be redirected directly,
18579 # and sets the high bit in the cache file unless we assign to the vars.
18580 (
18581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18582 eval ac_val=\$$ac_var
18583 case $ac_val in #(
18584 *${as_nl}*)
18585 case $ac_var in #(
18586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18588 esac
18589 case $ac_var in #(
18590 _ | IFS | as_nl) ;; #(
18591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18592 *) { eval $ac_var=; unset $ac_var;} ;;
18593 esac ;;
18594 esac
18595 done
18596
18597 (set) 2>&1 |
18598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18599 *${as_nl}ac_space=\ *)
18600 # `set' does not quote correctly, so add quotes: double-quote
18601 # substitution turns \\\\ into \\, and sed turns \\ into \.
18602 sed -n \
18603 "s/'/'\\\\''/g;
18604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18605 ;; #(
18606 *)
18607 # `set' quotes correctly as required by POSIX, so do not add quotes.
18608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18609 ;;
18610 esac |
18611 sort
18612 ) |
18613 sed '
18614 /^ac_cv_env_/b end
18615 t clear
18616 :clear
18617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18618 t end
18619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18620 :end' >>confcache
18621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18622 if test -w "$cache_file"; then
18623 if test "x$cache_file" != "x/dev/null"; then
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18625 $as_echo "$as_me: updating cache $cache_file" >&6;}
18626 if test ! -f "$cache_file" || test -h "$cache_file"; then
18627 cat confcache >"$cache_file"
18628 else
18629 case $cache_file in #(
18630 */* | ?:*)
18631 mv -f confcache "$cache_file"$$ &&
18632 mv -f "$cache_file"$$ "$cache_file" ;; #(
18633 *)
18634 mv -f confcache "$cache_file" ;;
18635 esac
18636 fi
18637 fi
18638 else
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18641 fi
18642 fi
18643 rm -f confcache
18644
18645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18646 # Let make expand exec_prefix.
18647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18648
18649 # Transform confdefs.h into DEFS.
18650 # Protect against shell expansion while executing Makefile rules.
18651 # Protect against Makefile macro expansion.
18652 #
18653 # If the first sed substitution is executed (which looks for macros that
18654 # take arguments), then branch to the quote section. Otherwise,
18655 # look for a macro that doesn't take arguments.
18656 ac_script='
18657 :mline
18658 /\\$/{
18659 N
18660 s,\\\n,,
18661 b mline
18662 }
18663 t clear
18664 :clear
18665 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18666 t quote
18667 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18668 t quote
18669 b any
18670 :quote
18671 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18672 s/\[/\\&/g
18673 s/\]/\\&/g
18674 s/\$/$$/g
18675 H
18676 :any
18677 ${
18678 g
18679 s/^\n//
18680 s/\n/ /g
18681 p
18682 }
18683 '
18684 DEFS=`sed -n "$ac_script" confdefs.h`
18685
18686
18687 ac_libobjs=
18688 ac_ltlibobjs=
18689 U=
18690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18691 # 1. Remove the extension, and $U if already installed.
18692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18695 # will be set to the directory where LIBOBJS objects are built.
18696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18698 done
18699 LIBOBJS=$ac_libobjs
18700
18701 LTLIBOBJS=$ac_ltlibobjs
18702
18703
18704
18705 : "${CONFIG_STATUS=./config.status}"
18706 ac_write_fail=0
18707 ac_clean_files_save=$ac_clean_files
18708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18711 as_write_fail=0
18712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18713 #! $SHELL
18714 # Generated by $as_me.
18715 # Run this file to recreate the current configuration.
18716 # Compiler output produced by configure, useful for debugging
18717 # configure, is in config.log if it exists.
18718
18719 debug=false
18720 ac_cs_recheck=false
18721 ac_cs_silent=false
18722
18723 SHELL=\${CONFIG_SHELL-$SHELL}
18724 export SHELL
18725 _ASEOF
18726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18727 ## -------------------- ##
18728 ## M4sh Initialization. ##
18729 ## -------------------- ##
18730
18731 # Be more Bourne compatible
18732 DUALCASE=1; export DUALCASE # for MKS sh
18733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18734 emulate sh
18735 NULLCMD=:
18736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18737 # is contrary to our usage. Disable this feature.
18738 alias -g '${1+"$@"}'='"$@"'
18739 setopt NO_GLOB_SUBST
18740 else
18741 case `(set -o) 2>/dev/null` in #(
18742 *posix*) :
18743 set -o posix ;; #(
18744 *) :
18745 ;;
18746 esac
18747 fi
18748
18749
18750 as_nl='
18751 '
18752 export as_nl
18753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18757 # Prefer a ksh shell builtin over an external printf program on Solaris,
18758 # but without wasting forks for bash or zsh.
18759 if test -z "$BASH_VERSION$ZSH_VERSION" \
18760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18761 as_echo='print -r --'
18762 as_echo_n='print -rn --'
18763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18764 as_echo='printf %s\n'
18765 as_echo_n='printf %s'
18766 else
18767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18768 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18769 as_echo_n='/usr/ucb/echo -n'
18770 else
18771 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18772 as_echo_n_body='eval
18773 arg=$1;
18774 case $arg in #(
18775 *"$as_nl"*)
18776 expr "X$arg" : "X\\(.*\\)$as_nl";
18777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18778 esac;
18779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18780 '
18781 export as_echo_n_body
18782 as_echo_n='sh -c $as_echo_n_body as_echo'
18783 fi
18784 export as_echo_body
18785 as_echo='sh -c $as_echo_body as_echo'
18786 fi
18787
18788 # The user is always right.
18789 if test "${PATH_SEPARATOR+set}" != set; then
18790 PATH_SEPARATOR=:
18791 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18792 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18793 PATH_SEPARATOR=';'
18794 }
18795 fi
18796
18797
18798 # IFS
18799 # We need space, tab and new line, in precisely that order. Quoting is
18800 # there to prevent editors from complaining about space-tab.
18801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18802 # splitting by setting IFS to empty value.)
18803 IFS=" "" $as_nl"
18804
18805 # Find who we are. Look in the path if we contain no directory separator.
18806 as_myself=
18807 case $0 in #((
18808 *[\\/]* ) as_myself=$0 ;;
18809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18811 do
18812 IFS=$as_save_IFS
18813 test -z "$as_dir" && as_dir=.
18814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18815 done
18816 IFS=$as_save_IFS
18817
18818 ;;
18819 esac
18820 # We did not find ourselves, most probably we were run as `sh COMMAND'
18821 # in which case we are not to be found in the path.
18822 if test "x$as_myself" = x; then
18823 as_myself=$0
18824 fi
18825 if test ! -f "$as_myself"; then
18826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18827 exit 1
18828 fi
18829
18830 # Unset variables that we do not need and which cause bugs (e.g. in
18831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18832 # suppresses any "Segmentation fault" message there. '((' could
18833 # trigger a bug in pdksh 5.2.14.
18834 for as_var in BASH_ENV ENV MAIL MAILPATH
18835 do eval test x\${$as_var+set} = xset \
18836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18837 done
18838 PS1='$ '
18839 PS2='> '
18840 PS4='+ '
18841
18842 # NLS nuisances.
18843 LC_ALL=C
18844 export LC_ALL
18845 LANGUAGE=C
18846 export LANGUAGE
18847
18848 # CDPATH.
18849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18850
18851
18852 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18853 # ----------------------------------------
18854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18856 # script with STATUS, using 1 if that was 0.
18857 as_fn_error ()
18858 {
18859 as_status=$1; test $as_status -eq 0 && as_status=1
18860 if test "$4"; then
18861 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18863 fi
18864 $as_echo "$as_me: error: $2" >&2
18865 as_fn_exit $as_status
18866 } # as_fn_error
18867
18868
18869 # as_fn_set_status STATUS
18870 # -----------------------
18871 # Set $? to STATUS, without forking.
18872 as_fn_set_status ()
18873 {
18874 return $1
18875 } # as_fn_set_status
18876
18877 # as_fn_exit STATUS
18878 # -----------------
18879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18880 as_fn_exit ()
18881 {
18882 set +e
18883 as_fn_set_status $1
18884 exit $1
18885 } # as_fn_exit
18886
18887 # as_fn_unset VAR
18888 # ---------------
18889 # Portably unset VAR.
18890 as_fn_unset ()
18891 {
18892 { eval $1=; unset $1;}
18893 }
18894 as_unset=as_fn_unset
18895 # as_fn_append VAR VALUE
18896 # ----------------------
18897 # Append the text in VALUE to the end of the definition contained in VAR. Take
18898 # advantage of any shell optimizations that allow amortized linear growth over
18899 # repeated appends, instead of the typical quadratic growth present in naive
18900 # implementations.
18901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18902 eval 'as_fn_append ()
18903 {
18904 eval $1+=\$2
18905 }'
18906 else
18907 as_fn_append ()
18908 {
18909 eval $1=\$$1\$2
18910 }
18911 fi # as_fn_append
18912
18913 # as_fn_arith ARG...
18914 # ------------------
18915 # Perform arithmetic evaluation on the ARGs, and store the result in the
18916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18917 # must be portable across $(()) and expr.
18918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18919 eval 'as_fn_arith ()
18920 {
18921 as_val=$(( $* ))
18922 }'
18923 else
18924 as_fn_arith ()
18925 {
18926 as_val=`expr "$@" || test $? -eq 1`
18927 }
18928 fi # as_fn_arith
18929
18930
18931 if expr a : '\(a\)' >/dev/null 2>&1 &&
18932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18933 as_expr=expr
18934 else
18935 as_expr=false
18936 fi
18937
18938 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18939 as_basename=basename
18940 else
18941 as_basename=false
18942 fi
18943
18944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18945 as_dirname=dirname
18946 else
18947 as_dirname=false
18948 fi
18949
18950 as_me=`$as_basename -- "$0" ||
18951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18952 X"$0" : 'X\(//\)$' \| \
18953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18954 $as_echo X/"$0" |
18955 sed '/^.*\/\([^/][^/]*\)\/*$/{
18956 s//\1/
18957 q
18958 }
18959 /^X\/\(\/\/\)$/{
18960 s//\1/
18961 q
18962 }
18963 /^X\/\(\/\).*/{
18964 s//\1/
18965 q
18966 }
18967 s/.*/./; q'`
18968
18969 # Avoid depending upon Character Ranges.
18970 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18971 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18972 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18973 as_cr_digits='0123456789'
18974 as_cr_alnum=$as_cr_Letters$as_cr_digits
18975
18976 ECHO_C= ECHO_N= ECHO_T=
18977 case `echo -n x` in #(((((
18978 -n*)
18979 case `echo 'xy\c'` in
18980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18981 xy) ECHO_C='\c';;
18982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18983 ECHO_T=' ';;
18984 esac;;
18985 *)
18986 ECHO_N='-n';;
18987 esac
18988
18989 rm -f conf$$ conf$$.exe conf$$.file
18990 if test -d conf$$.dir; then
18991 rm -f conf$$.dir/conf$$.file
18992 else
18993 rm -f conf$$.dir
18994 mkdir conf$$.dir 2>/dev/null
18995 fi
18996 if (echo >conf$$.file) 2>/dev/null; then
18997 if ln -s conf$$.file conf$$ 2>/dev/null; then
18998 as_ln_s='ln -s'
18999 # ... but there are two gotchas:
19000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19002 # In both cases, we have to default to `cp -pR'.
19003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19004 as_ln_s='cp -pR'
19005 elif ln conf$$.file conf$$ 2>/dev/null; then
19006 as_ln_s=ln
19007 else
19008 as_ln_s='cp -pR'
19009 fi
19010 else
19011 as_ln_s='cp -pR'
19012 fi
19013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19014 rmdir conf$$.dir 2>/dev/null
19015
19016
19017 # as_fn_mkdir_p
19018 # -------------
19019 # Create "$as_dir" as a directory, including parents if necessary.
19020 as_fn_mkdir_p ()
19021 {
19022
19023 case $as_dir in #(
19024 -*) as_dir=./$as_dir;;
19025 esac
19026 test -d "$as_dir" || eval $as_mkdir_p || {
19027 as_dirs=
19028 while :; do
19029 case $as_dir in #(
19030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19031 *) as_qdir=$as_dir;;
19032 esac
19033 as_dirs="'$as_qdir' $as_dirs"
19034 as_dir=`$as_dirname -- "$as_dir" ||
19035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$as_dir" : 'X\(//\)[^/]' \| \
19037 X"$as_dir" : 'X\(//\)$' \| \
19038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19039 $as_echo X"$as_dir" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 s//\1/
19042 q
19043 }
19044 /^X\(\/\/\)[^/].*/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)$/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\).*/{
19053 s//\1/
19054 q
19055 }
19056 s/.*/./; q'`
19057 test -d "$as_dir" && break
19058 done
19059 test -z "$as_dirs" || eval "mkdir $as_dirs"
19060 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19061
19062
19063 } # as_fn_mkdir_p
19064 if mkdir -p . 2>/dev/null; then
19065 as_mkdir_p='mkdir -p "$as_dir"'
19066 else
19067 test -d ./-p && rmdir ./-p
19068 as_mkdir_p=false
19069 fi
19070
19071
19072 # as_fn_executable_p FILE
19073 # -----------------------
19074 # Test if FILE is an executable regular file.
19075 as_fn_executable_p ()
19076 {
19077 test -f "$1" && test -x "$1"
19078 } # as_fn_executable_p
19079 as_test_x='test -x'
19080 as_executable_p=as_fn_executable_p
19081
19082 # Sed expression to map a string onto a valid CPP name.
19083 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19084
19085 # Sed expression to map a string onto a valid variable name.
19086 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19087
19088
19089 exec 6>&1
19090 ## ----------------------------------- ##
19091 ## Main body of $CONFIG_STATUS script. ##
19092 ## ----------------------------------- ##
19093 _ASEOF
19094 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19095
19096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19097 # Save the log message, to keep $0 and so on meaningful, and to
19098 # report actual input values of CONFIG_FILES etc. instead of their
19099 # values after options handling.
19100 ac_log="
19101 This file was extended by $as_me, which was
19102 generated by GNU Autoconf 2.69. Invocation command line was
19103
19104 CONFIG_FILES = $CONFIG_FILES
19105 CONFIG_HEADERS = $CONFIG_HEADERS
19106 CONFIG_LINKS = $CONFIG_LINKS
19107 CONFIG_COMMANDS = $CONFIG_COMMANDS
19108 $ $0 $@
19109
19110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19111 "
19112
19113 _ACEOF
19114
19115 case $ac_config_files in *"
19116 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19117 esac
19118
19119
19120
19121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19122 # Files that config.status was made for.
19123 config_files="$ac_config_files"
19124
19125 _ACEOF
19126
19127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19128 ac_cs_usage="\
19129 \`$as_me' instantiates files and other configuration actions
19130 from templates according to the current configuration. Unless the files
19131 and actions are specified as TAGs, all are instantiated by default.
19132
19133 Usage: $0 [OPTION]... [TAG]...
19134
19135 -h, --help print this help, then exit
19136 -V, --version print version number and configuration settings, then exit
19137 --config print configuration, then exit
19138 -q, --quiet, --silent
19139 do not print progress messages
19140 -d, --debug don't remove temporary files
19141 --recheck update $as_me by reconfiguring in the same conditions
19142 --file=FILE[:TEMPLATE]
19143 instantiate the configuration file FILE
19144
19145 Configuration files:
19146 $config_files
19147
19148 Report bugs to the package provider."
19149
19150 _ACEOF
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19153 ac_cs_version="\\
19154 config.status
19155 configured by $0, generated by GNU Autoconf 2.69,
19156 with options \\"\$ac_cs_config\\"
19157
19158 Copyright (C) 2012 Free Software Foundation, Inc.
19159 This config.status script is free software; the Free Software Foundation
19160 gives unlimited permission to copy, distribute and modify it."
19161
19162 ac_pwd='$ac_pwd'
19163 srcdir='$srcdir'
19164 INSTALL='$INSTALL'
19165 AWK='$AWK'
19166 test -n "\$AWK" || AWK=awk
19167 _ACEOF
19168
19169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19170 # The default lists apply if the user does not specify any file.
19171 ac_need_defaults=:
19172 while test $# != 0
19173 do
19174 case $1 in
19175 --*=?*)
19176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19178 ac_shift=:
19179 ;;
19180 --*=)
19181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19182 ac_optarg=
19183 ac_shift=:
19184 ;;
19185 *)
19186 ac_option=$1
19187 ac_optarg=$2
19188 ac_shift=shift
19189 ;;
19190 esac
19191
19192 case $ac_option in
19193 # Handling of the options.
19194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19195 ac_cs_recheck=: ;;
19196 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19197 $as_echo "$ac_cs_version"; exit ;;
19198 --config | --confi | --conf | --con | --co | --c )
19199 $as_echo "$ac_cs_config"; exit ;;
19200 --debug | --debu | --deb | --de | --d | -d )
19201 debug=: ;;
19202 --file | --fil | --fi | --f )
19203 $ac_shift
19204 case $ac_optarg in
19205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19206 '') as_fn_error $? "missing file argument" ;;
19207 esac
19208 as_fn_append CONFIG_FILES " '$ac_optarg'"
19209 ac_need_defaults=false;;
19210 --he | --h | --help | --hel | -h )
19211 $as_echo "$ac_cs_usage"; exit ;;
19212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19214 ac_cs_silent=: ;;
19215
19216 # This is an error.
19217 -*) as_fn_error $? "unrecognized option: \`$1'
19218 Try \`$0 --help' for more information." ;;
19219
19220 *) as_fn_append ac_config_targets " $1"
19221 ac_need_defaults=false ;;
19222
19223 esac
19224 shift
19225 done
19226
19227 ac_configure_extra_args=
19228
19229 if $ac_cs_silent; then
19230 exec 6>/dev/null
19231 ac_configure_extra_args="$ac_configure_extra_args --silent"
19232 fi
19233
19234 _ACEOF
19235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19236 if \$ac_cs_recheck; then
19237 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19238 shift
19239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19240 CONFIG_SHELL='$SHELL'
19241 export CONFIG_SHELL
19242 exec "\$@"
19243 fi
19244
19245 _ACEOF
19246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19247 exec 5>>config.log
19248 {
19249 echo
19250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19251 ## Running $as_me. ##
19252 _ASBOX
19253 $as_echo "$ac_log"
19254 } >&5
19255
19256 _ACEOF
19257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19258 #
19259 # INIT-COMMANDS
19260 #
19261 extrasub_build="$extrasub_build"
19262 extrasub_host="$extrasub_host"
19263 extrasub_target="$extrasub_target"
19264
19265 _ACEOF
19266
19267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19268
19269 # Handling of arguments.
19270 for ac_config_target in $ac_config_targets
19271 do
19272 case $ac_config_target in
19273 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19274
19275 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19276 esac
19277 done
19278
19279
19280 # If the user did not use the arguments to specify the items to instantiate,
19281 # then the envvar interface is used. Set only those that are not.
19282 # We use the long form for the default assignment because of an extremely
19283 # bizarre bug on SunOS 4.1.3.
19284 if $ac_need_defaults; then
19285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19286 fi
19287
19288 # Have a temporary directory for convenience. Make it in the build tree
19289 # simply because there is no reason against having it here, and in addition,
19290 # creating and moving files from /tmp can sometimes cause problems.
19291 # Hook for its removal unless debugging.
19292 # Note that there is a small window in which the directory will not be cleaned:
19293 # after its creation but before its name has been assigned to `$tmp'.
19294 $debug ||
19295 {
19296 tmp= ac_tmp=
19297 trap 'exit_status=$?
19298 : "${ac_tmp:=$tmp}"
19299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19300 ' 0
19301 trap 'as_fn_exit 1' 1 2 13 15
19302 }
19303 # Create a (secure) tmp directory for tmp files.
19304
19305 {
19306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19307 test -d "$tmp"
19308 } ||
19309 {
19310 tmp=./conf$$-$RANDOM
19311 (umask 077 && mkdir "$tmp")
19312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19313 ac_tmp=$tmp
19314
19315 # Set up the scripts for CONFIG_FILES section.
19316 # No need to generate them if there are no CONFIG_FILES.
19317 # This happens for instance with `./config.status config.h'.
19318 if test -n "$CONFIG_FILES"; then
19319
19320 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19321 ac_cs_awk_getline=:
19322 ac_cs_awk_pipe_init=
19323 ac_cs_awk_read_file='
19324 while ((getline aline < (F[key])) > 0)
19325 print(aline)
19326 close(F[key])'
19327 ac_cs_awk_pipe_fini=
19328 else
19329 ac_cs_awk_getline=false
19330 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19331 ac_cs_awk_read_file='
19332 print "|#_!!_#|"
19333 print "cat " F[key] " &&"
19334 '$ac_cs_awk_pipe_init
19335 # The final `:' finishes the AND list.
19336 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19337 fi
19338 ac_cr=`echo X | tr X '\015'`
19339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19340 # But we know of no other shell where ac_cr would be empty at this
19341 # point, so we can use a bashism as a fallback.
19342 if test "x$ac_cr" = x; then
19343 eval ac_cr=\$\'\\r\'
19344 fi
19345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19347 ac_cs_awk_cr='\\r'
19348 else
19349 ac_cs_awk_cr=$ac_cr
19350 fi
19351
19352 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19353 _ACEOF
19354
19355 # Create commands to substitute file output variables.
19356 {
19357 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19358 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19359 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19360 echo "_ACAWK" &&
19361 echo "_ACEOF"
19362 } >conf$$files.sh &&
19363 . ./conf$$files.sh ||
19364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19365 rm -f conf$$files.sh
19366
19367 {
19368 echo "cat >conf$$subs.awk <<_ACEOF" &&
19369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19370 echo "_ACEOF"
19371 } >conf$$subs.sh ||
19372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19373 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19374 ac_delim='%!_!# '
19375 for ac_last_try in false false false false false :; do
19376 . ./conf$$subs.sh ||
19377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19378
19379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19380 if test $ac_delim_n = $ac_delim_num; then
19381 break
19382 elif $ac_last_try; then
19383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19384 else
19385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19386 fi
19387 done
19388 rm -f conf$$subs.sh
19389
19390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19391 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19392 _ACEOF
19393 sed -n '
19394 h
19395 s/^/S["/; s/!.*/"]=/
19396 p
19397 g
19398 s/^[^!]*!//
19399 :repl
19400 t repl
19401 s/'"$ac_delim"'$//
19402 t delim
19403 :nl
19404 h
19405 s/\(.\{148\}\)..*/\1/
19406 t more1
19407 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19408 p
19409 n
19410 b repl
19411 :more1
19412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19413 p
19414 g
19415 s/.\{148\}//
19416 t nl
19417 :delim
19418 h
19419 s/\(.\{148\}\)..*/\1/
19420 t more2
19421 s/["\\]/\\&/g; s/^/"/; s/$/"/
19422 p
19423 b
19424 :more2
19425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19426 p
19427 g
19428 s/.\{148\}//
19429 t delim
19430 ' <conf$$subs.awk | sed '
19431 /^[^""]/{
19432 N
19433 s/\n//
19434 }
19435 ' >>$CONFIG_STATUS || ac_write_fail=1
19436 rm -f conf$$subs.awk
19437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19438 _ACAWK
19439 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19440 for (key in S) S_is_set[key] = 1
19441 FS = "\a"
19442 \$ac_cs_awk_pipe_init
19443 }
19444 {
19445 line = $ 0
19446 nfields = split(line, field, "@")
19447 substed = 0
19448 len = length(field[1])
19449 for (i = 2; i < nfields; i++) {
19450 key = field[i]
19451 keylen = length(key)
19452 if (S_is_set[key]) {
19453 value = S[key]
19454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19455 len += length(value) + length(field[++i])
19456 substed = 1
19457 } else
19458 len += 1 + keylen
19459 }
19460 if (nfields == 3 && !substed) {
19461 key = field[2]
19462 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19463 \$ac_cs_awk_read_file
19464 next
19465 }
19466 }
19467 print line
19468 }
19469 \$ac_cs_awk_pipe_fini
19470 _ACAWK
19471 _ACEOF
19472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19475 else
19476 cat
19477 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19478 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19479 _ACEOF
19480
19481 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19482 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19483 # trailing colons and then remove the whole line if VPATH becomes empty
19484 # (actually we leave an empty line to preserve line numbers).
19485 if test "x$srcdir" = x.; then
19486 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19487 h
19488 s///
19489 s/^/:/
19490 s/[ ]*$/:/
19491 s/:\$(srcdir):/:/g
19492 s/:\${srcdir}:/:/g
19493 s/:@srcdir@:/:/g
19494 s/^:*//
19495 s/:*$//
19496 x
19497 s/\(=[ ]*\).*/\1/
19498 G
19499 s/\n//
19500 s/^[^=]*=[ ]*$//
19501 }'
19502 fi
19503
19504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 fi # test -n "$CONFIG_FILES"
19506
19507
19508 eval set X " :F $CONFIG_FILES "
19509 shift
19510 for ac_tag
19511 do
19512 case $ac_tag in
19513 :[FHLC]) ac_mode=$ac_tag; continue;;
19514 esac
19515 case $ac_mode$ac_tag in
19516 :[FHL]*:*);;
19517 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19518 :[FH]-) ac_tag=-:-;;
19519 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19520 esac
19521 ac_save_IFS=$IFS
19522 IFS=:
19523 set x $ac_tag
19524 IFS=$ac_save_IFS
19525 shift
19526 ac_file=$1
19527 shift
19528
19529 case $ac_mode in
19530 :L) ac_source=$1;;
19531 :[FH])
19532 ac_file_inputs=
19533 for ac_f
19534 do
19535 case $ac_f in
19536 -) ac_f="$ac_tmp/stdin";;
19537 *) # Look for the file first in the build tree, then in the source tree
19538 # (if the path is not absolute). The absolute path cannot be DOS-style,
19539 # because $ac_f cannot contain `:'.
19540 test -f "$ac_f" ||
19541 case $ac_f in
19542 [\\/$]*) false;;
19543 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19544 esac ||
19545 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19546 esac
19547 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19548 as_fn_append ac_file_inputs " '$ac_f'"
19549 done
19550
19551 # Let's still pretend it is `configure' which instantiates (i.e., don't
19552 # use $as_me), people would be surprised to read:
19553 # /* config.h. Generated by config.status. */
19554 configure_input='Generated from '`
19555 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19556 `' by configure.'
19557 if test x"$ac_file" != x-; then
19558 configure_input="$ac_file. $configure_input"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19560 $as_echo "$as_me: creating $ac_file" >&6;}
19561 fi
19562 # Neutralize special characters interpreted by sed in replacement strings.
19563 case $configure_input in #(
19564 *\&* | *\|* | *\\* )
19565 ac_sed_conf_input=`$as_echo "$configure_input" |
19566 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19567 *) ac_sed_conf_input=$configure_input;;
19568 esac
19569
19570 case $ac_tag in
19571 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19573 esac
19574 ;;
19575 esac
19576
19577 ac_dir=`$as_dirname -- "$ac_file" ||
19578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19579 X"$ac_file" : 'X\(//\)[^/]' \| \
19580 X"$ac_file" : 'X\(//\)$' \| \
19581 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19582 $as_echo X"$ac_file" |
19583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19584 s//\1/
19585 q
19586 }
19587 /^X\(\/\/\)[^/].*/{
19588 s//\1/
19589 q
19590 }
19591 /^X\(\/\/\)$/{
19592 s//\1/
19593 q
19594 }
19595 /^X\(\/\).*/{
19596 s//\1/
19597 q
19598 }
19599 s/.*/./; q'`
19600 as_dir="$ac_dir"; as_fn_mkdir_p
19601 ac_builddir=.
19602
19603 case "$ac_dir" in
19604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19605 *)
19606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19607 # A ".." for each directory in $ac_dir_suffix.
19608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19609 case $ac_top_builddir_sub in
19610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19612 esac ;;
19613 esac
19614 ac_abs_top_builddir=$ac_pwd
19615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19616 # for backward compatibility:
19617 ac_top_builddir=$ac_top_build_prefix
19618
19619 case $srcdir in
19620 .) # We are building in place.
19621 ac_srcdir=.
19622 ac_top_srcdir=$ac_top_builddir_sub
19623 ac_abs_top_srcdir=$ac_pwd ;;
19624 [\\/]* | ?:[\\/]* ) # Absolute name.
19625 ac_srcdir=$srcdir$ac_dir_suffix;
19626 ac_top_srcdir=$srcdir
19627 ac_abs_top_srcdir=$srcdir ;;
19628 *) # Relative name.
19629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19630 ac_top_srcdir=$ac_top_build_prefix$srcdir
19631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19632 esac
19633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19634
19635
19636 case $ac_mode in
19637 :F)
19638 #
19639 # CONFIG_FILE
19640 #
19641
19642 case $INSTALL in
19643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19645 esac
19646 _ACEOF
19647
19648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19649 # If the template does not know about datarootdir, expand it.
19650 # FIXME: This hack should be removed a few years after 2.60.
19651 ac_datarootdir_hack=; ac_datarootdir_seen=
19652 ac_sed_dataroot='
19653 /datarootdir/ {
19654 p
19655 q
19656 }
19657 /@datadir@/p
19658 /@docdir@/p
19659 /@infodir@/p
19660 /@localedir@/p
19661 /@mandir@/p'
19662 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19663 *datarootdir*) ac_datarootdir_seen=yes;;
19664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19666 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19667 _ACEOF
19668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19669 ac_datarootdir_hack='
19670 s&@datadir@&$datadir&g
19671 s&@docdir@&$docdir&g
19672 s&@infodir@&$infodir&g
19673 s&@localedir@&$localedir&g
19674 s&@mandir@&$mandir&g
19675 s&\\\${datarootdir}&$datarootdir&g' ;;
19676 esac
19677 _ACEOF
19678
19679 # Neutralize VPATH when `$srcdir' = `.'.
19680 # Shell code in configure.ac might set extrasub.
19681 # FIXME: do we really want to maintain this feature?
19682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19683 ac_sed_extra="$ac_vpsub
19684 $extrasub
19685 _ACEOF
19686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19687 :t
19688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19689 s|@configure_input@|$ac_sed_conf_input|;t t
19690 s&@top_builddir@&$ac_top_builddir_sub&;t t
19691 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19692 s&@srcdir@&$ac_srcdir&;t t
19693 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19694 s&@top_srcdir@&$ac_top_srcdir&;t t
19695 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19696 s&@builddir@&$ac_builddir&;t t
19697 s&@abs_builddir@&$ac_abs_builddir&;t t
19698 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19699 s&@INSTALL@&$ac_INSTALL&;t t
19700 $ac_datarootdir_hack
19701 "
19702 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19703 if $ac_cs_awk_getline; then
19704 $AWK -f "$ac_tmp/subs.awk"
19705 else
19706 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19707 fi \
19708 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19709
19710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19711 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19713 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19715 which seems to be undefined. Please make sure it is defined" >&5
19716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19717 which seems to be undefined. Please make sure it is defined" >&2;}
19718
19719 rm -f "$ac_tmp/stdin"
19720 case $ac_file in
19721 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19722 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19723 esac \
19724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19725 ;;
19726
19727
19728
19729 esac
19730
19731
19732 case $ac_file$ac_mode in
19733 "Makefile":F) sed "$extrasub_build" Makefile |
19734 sed "$extrasub_host" |
19735 sed "$extrasub_target" > mf$$
19736 mv -f mf$$ Makefile ;;
19737
19738 esac
19739 done # for ac_tag
19740
19741
19742 as_fn_exit 0
19743 _ACEOF
19744 ac_clean_files=$ac_clean_files_save
19745
19746 test $ac_write_fail = 0 ||
19747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19748
19749
19750 # configure is writing to config.log, and then calls config.status.
19751 # config.status does its own redirection, appending to config.log.
19752 # Unfortunately, on DOS this fails, as config.log is still kept open
19753 # by configure, so config.status won't be able to write to it; its
19754 # output is simply discarded. So we exec the FD to /dev/null,
19755 # effectively closing config.log, so it can be properly (re)opened and
19756 # appended to by config.status. When coming back to configure, we
19757 # need to make the FD available again.
19758 if test "$no_create" != yes; then
19759 ac_cs_success=:
19760 ac_config_status_args=
19761 test "$silent" = yes &&
19762 ac_config_status_args="$ac_config_status_args --quiet"
19763 exec 5>/dev/null
19764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19765 exec 5>>config.log
19766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19767 # would make configure fail if this is the last instruction.
19768 $ac_cs_success || as_fn_exit 1
19769 fi
19770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19773 fi
19774