]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - configure
Re: Merge configure.ac from gcc project
[thirdparty/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 GDCFLAGS
625 READELF
626 OTOOL
627 OBJDUMP
628 OBJCOPY
629 WINDMC
630 WINDRES
631 STRIP
632 RANLIB
633 NM
634 LIPO
635 LD
636 DSYMUTIL
637 DLLTOOL
638 AS
639 AR
640 RUNTEST
641 EXPECT
642 MAKEINFO
643 FLEX
644 LEX
645 M4
646 BISON
647 YACC
648 WINDRES_FOR_BUILD
649 WINDMC_FOR_BUILD
650 RANLIB_FOR_BUILD
651 NM_FOR_BUILD
652 LD_FOR_BUILD
653 LDFLAGS_FOR_BUILD
654 GDC_FOR_BUILD
655 GOC_FOR_BUILD
656 GFORTRAN_FOR_BUILD
657 DSYMUTIL_FOR_BUILD
658 DLLTOOL_FOR_BUILD
659 CXX_FOR_BUILD
660 CXXFLAGS_FOR_BUILD
661 CPPFLAGS_FOR_BUILD
662 CPP_FOR_BUILD
663 CFLAGS_FOR_BUILD
664 CC_FOR_BUILD
665 AS_FOR_BUILD
666 AR_FOR_BUILD
667 target_configdirs
668 configdirs
669 build_configdirs
670 INSTALL_GDB_TK
671 GDB_TK
672 CONFIGURE_GDB_TK
673 build_tooldir
674 tooldir
675 GCC_SHLIB_SUBDIR
676 RPATH_ENVVAR
677 target_configargs
678 host_configargs
679 build_configargs
680 BUILD_CONFIG
681 LDFLAGS_FOR_TARGET
682 CXXFLAGS_FOR_TARGET
683 CFLAGS_FOR_TARGET
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
686 get_gcc_base_ver
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
689 stage1_languages
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 PGO_BUILD_LTO_CFLAGS
706 PGO_BUILD_USE_CFLAGS
707 PGO_BUILD_GEN_CFLAGS
708 HAVE_CXX11_FOR_BUILD
709 HAVE_CXX11
710 do_compare
711 GDC
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 extra_liboffloadmic_configure_flags
725 target_subdir
726 host_subdir
727 build_subdir
728 build_libsubdir
729 AWK
730 SED
731 LN_S
732 LN
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_os
737 target_vendor
738 target_cpu
739 target
740 host_os
741 host_vendor
742 host_cpu
743 host
744 target_noncanonical
745 host_noncanonical
746 build_noncanonical
747 build_os
748 build_vendor
749 build_cpu
750 build
751 TOPLEVEL_CONFIGURE_ARGUMENTS
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='serialization_dependencies
791 host_makefile_frag
792 target_makefile_frag
793 alphaieee_frag
794 ospace_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_build_libsubdir
798 with_system_zlib
799 with_zstd
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
803 enable_gold
804 enable_ld
805 enable_gprofng
806 enable_compressed_debug_sections
807 enable_default_compressed_debug_sections_algorithm
808 enable_year2038
809 enable_libquadmath
810 enable_libquadmath_support
811 enable_libada
812 enable_libssp
813 enable_libstdcxx
814 enable_liboffloadmic
815 enable_bootstrap
816 enable_pgo_build
817 with_mpc
818 with_mpc_include
819 with_mpc_lib
820 with_mpfr
821 with_mpfr_include
822 with_mpfr_lib
823 with_gmp
824 with_gmp_include
825 with_gmp_lib
826 with_stage1_libs
827 with_static_standard_libraries
828 with_stage1_ldflags
829 with_boot_libs
830 with_boot_ldflags
831 with_isl
832 with_isl_include
833 with_isl_lib
834 enable_isl_version_check
835 enable_lto
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
838 enable_host_shared
839 enable_stage1_languages
840 enable_objc_gc
841 with_target_bdw_gc
842 with_target_bdw_gc_include
843 with_target_bdw_gc_lib
844 with_gcc_major_version_only
845 with_build_sysroot
846 with_debug_prefix_map
847 with_build_config
848 enable_vtable_verify
849 enable_serial_configure
850 with_build_time_tools
851 enable_maintainer_mode
852 enable_stage1_checking
853 enable_werror
854 '
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CXX
864 CXXFLAGS
865 CCC
866 build_configargs
867 host_configargs
868 target_configargs
869 AR
870 AS
871 DLLTOOL
872 DSYMUTIL
873 LD
874 LIPO
875 NM
876 RANLIB
877 STRIP
878 WINDRES
879 WINDMC
880 OBJCOPY
881 OBJDUMP
882 OTOOL
883 READELF
884 CC_FOR_TARGET
885 CXX_FOR_TARGET
886 GCC_FOR_TARGET
887 GFORTRAN_FOR_TARGET
888 GOC_FOR_TARGET
889 GDC_FOR_TARGET
890 AR_FOR_TARGET
891 AS_FOR_TARGET
892 DLLTOOL_FOR_TARGET
893 DSYMUTIL_FOR_TARGET
894 LD_FOR_TARGET
895 LIPO_FOR_TARGET
896 NM_FOR_TARGET
897 OBJCOPY_FOR_TARGET
898 OBJDUMP_FOR_TARGET
899 OTOOL_FOR_TARGET
900 RANLIB_FOR_TARGET
901 READELF_FOR_TARGET
902 STRIP_FOR_TARGET
903 WINDRES_FOR_TARGET
904 WINDMC_FOR_TARGET'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1255
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1289
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1292 ;;
1293
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1303
1304 *)
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 ;;
1311
1312 esac
1313 done
1314
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $? "missing argument to $ac_option"
1318 fi
1319
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $? "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1409 fi
1410 else
1411 ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 case $srcdir in
1432 *" "*)
1433 as_fn_error $? "path to source, $srcdir, contains spaces"
1434 ;;
1435 esac
1436 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514 System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1531 host triple by ARG
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET[=DIR]. Use optional path to find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful for distribution
1539 compilers where those are in separate optional packages.
1540
1541 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1542 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1543 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1544 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1545 Enable compressed debug sections for gas, gold or ld
1546 by default
1547 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1548 Default compression algorithm for
1549 --enable-compressed-debug-sections.
1550 --enable-year2038 enable support for timestamps past the year 2038
1551 --disable-libquadmath do not build libquadmath directory
1552 --disable-libquadmath-support
1553 disable libquadmath support for Fortran
1554 --enable-libada build libada directory
1555 --enable-libssp build libssp directory
1556 --disable-libstdcxx do not build libstdc++-v3 directory
1557 --enable-liboffloadmic=ARG
1558 build liboffloadmic [ARG={no,host,target}]
1559 --enable-bootstrap enable bootstrapping [yes if native build]
1560 --enable-pgo-build[=lto]
1561 enable the PGO build
1562 --disable-isl-version-check
1563 disable check for isl version
1564 --enable-lto enable link time optimization support
1565 --enable-linker-plugin-configure-flags=FLAGS
1566 additional flags for configuring linker plugins
1567 [none]
1568 --enable-linker-plugin-flags=FLAGS
1569 additional flags for configuring and building linker
1570 plugins [none]
1571 --enable-host-shared build host code as shared libraries
1572 --enable-stage1-languages[=all]
1573 choose additional languages to build during stage1.
1574 Mostly useful for compiler development
1575 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1576 Objective-C runtime
1577 --enable-vtable-verify Enable vtable verification feature
1578 --enable-serial-[{host,target,build}-]configure
1579 force sequential configuration of sub-packages for
1580 the host, target or build machine, or all
1581 sub-packages
1582 --enable-maintainer-mode
1583 enable make rules and dependencies not useful (and
1584 sometimes confusing) to the casual installer
1585 --enable-stage1-checking[=all]
1586 choose additional checking for stage1 of the
1587 compiler
1588 --enable-werror enable -Werror in bootstrap stage2 and later
1589
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-build-libsubdir=DIR Directory where to find libraries for build system
1594 --with-system-zlib use installed libz
1595 --with-zstd Support zstd compressed debug sections
1596 (default=auto)
1597 --with-mpc=PATH specify prefix directory for installed MPC package.
1598 Equivalent to --with-mpc-include=PATH/include plus
1599 --with-mpc-lib=PATH/lib
1600 --with-mpc-include=PATH specify directory for installed MPC include files
1601 --with-mpc-lib=PATH specify directory for the installed MPC library
1602 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1603 Equivalent to --with-mpfr-include=PATH/include plus
1604 --with-mpfr-lib=PATH/lib
1605 --with-mpfr-include=PATH
1606 specify directory for installed MPFR include files
1607 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1608 --with-gmp=PATH specify prefix directory for the installed GMP
1609 package. Equivalent to
1610 --with-gmp-include=PATH/include plus
1611 --with-gmp-lib=PATH/lib
1612 --with-gmp-include=PATH specify directory for installed GMP include files
1613 --with-gmp-lib=PATH specify directory for the installed GMP library
1614 --with-stage1-libs=LIBS libraries for stage1
1615 --with-static-standard-libraries
1616 use -static-libstdc++ and -static-libgcc
1617 (default=auto)
1618 --with-stage1-ldflags=FLAGS
1619 linker flags for stage1
1620 --with-boot-libs=LIBS libraries for stage2 and later
1621 --with-boot-ldflags=FLAGS
1622 linker flags for stage2 and later
1623 --with-isl=PATH Specify prefix directory for the installed isl
1624 package. Equivalent to
1625 --with-isl-include=PATH/include plus
1626 --with-isl-lib=PATH/lib
1627 --with-isl-include=PATH Specify directory for installed isl include files
1628 --with-isl-lib=PATH Specify the directory for the installed isl library
1629 --with-target-bdw-gc=PATHLIST
1630 specify prefix directory for installed bdw-gc
1631 package. Equivalent to
1632 --with-target-bdw-gc-include=PATH/include plus
1633 --with-target-bdw-gc-lib=PATH/lib
1634 --with-target-bdw-gc-include=PATHLIST
1635 specify directories for installed bdw-gc include
1636 files
1637 --with-target-bdw-gc-lib=PATHLIST
1638 specify directories for installed bdw-gc library
1639 --with-gcc-major-version-only
1640 use only GCC major number in filesystem paths
1641 --with-build-sysroot=SYSROOT
1642 use sysroot as the system root during the build
1643 --with-debug-prefix-map='A=B C=D ...'
1644 map A to B, C to D ... in debug information
1645 --with-build-config='NAME NAME2...'
1646 use config/NAME.mk build configuration
1647 --with-build-time-tools=PATH
1648 use given path to find target tools during the build
1649
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 build_configargs
1661 additional configure arguments for build directories
1662 host_configargs
1663 additional configure arguments for host directories
1664 target_configargs
1665 additional configure arguments for target directories
1666 AR AR for the host
1667 AS AS for the host
1668 DLLTOOL DLLTOOL for the host
1669 DSYMUTIL DSYMUTIL for the host
1670 LD LD for the host
1671 LIPO LIPO for the host
1672 NM NM for the host
1673 RANLIB RANLIB for the host
1674 STRIP STRIP for the host
1675 WINDRES WINDRES for the host
1676 WINDMC WINDMC for the host
1677 OBJCOPY OBJCOPY for the host
1678 OBJDUMP OBJDUMP for the host
1679 OTOOL OTOOL for the host
1680 READELF READELF for the host
1681 CC_FOR_TARGET
1682 CC for the target
1683 CXX_FOR_TARGET
1684 CXX for the target
1685 GCC_FOR_TARGET
1686 GCC for the target
1687 GFORTRAN_FOR_TARGET
1688 GFORTRAN for the target
1689 GOC_FOR_TARGET
1690 GOC for the target
1691 GDC_FOR_TARGET
1692 GDC for the target
1693 AR_FOR_TARGET
1694 AR for the target
1695 AS_FOR_TARGET
1696 AS for the target
1697 DLLTOOL_FOR_TARGET
1698 DLLTOOL for the target
1699 DSYMUTIL_FOR_TARGET
1700 DSYMUTIL for the target
1701 LD_FOR_TARGET
1702 LD for the target
1703 LIPO_FOR_TARGET
1704 LIPO for the target
1705 NM_FOR_TARGET
1706 NM for the target
1707 OBJCOPY_FOR_TARGET
1708 OBJCOPY for the target
1709 OBJDUMP_FOR_TARGET
1710 OBJDUMP for the target
1711 OTOOL_FOR_TARGET
1712 OTOOL for the target
1713 RANLIB_FOR_TARGET
1714 RANLIB for the target
1715 READELF_FOR_TARGET
1716 READELF for the target
1717 STRIP_FOR_TARGET
1718 STRIP for the target
1719 WINDRES_FOR_TARGET
1720 WINDRES for the target
1721 WINDMC_FOR_TARGET
1722 WINDMC for the target
1723
1724 Use these variables to override the choices made by `configure' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1726
1727 Report bugs to the package provider.
1728 _ACEOF
1729 ac_status=$?
1730 fi
1731
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1737 continue
1738 ac_builddir=.
1739
1740 case "$ac_dir" in
1741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *)
1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1749 esac ;;
1750 esac
1751 ac_abs_top_builddir=$ac_pwd
1752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir=$ac_top_build_prefix
1755
1756 case $srcdir in
1757 .) # We are building in place.
1758 ac_srcdir=.
1759 ac_top_srcdir=$ac_top_builddir_sub
1760 ac_abs_top_srcdir=$ac_pwd ;;
1761 [\\/]* | ?:[\\/]* ) # Absolute name.
1762 ac_srcdir=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir=$srcdir
1764 ac_abs_top_srcdir=$srcdir ;;
1765 *) # Relative name.
1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769 esac
1770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771
1772 cd "$ac_dir" || { ac_status=$?; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1775 echo &&
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1778 echo &&
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1780 else
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 fi || ac_status=$?
1783 cd "$ac_pwd" || { ac_status=$?; break; }
1784 done
1785 fi
1786
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1789 cat <<\_ACEOF
1790 configure
1791 generated by GNU Autoconf 2.69
1792
1793 Copyright (C) 2012 Free Software Foundation, Inc.
1794 This configure script is free software; the Free Software Foundation
1795 gives unlimited permission to copy, distribute and modify it.
1796 _ACEOF
1797 exit
1798 fi
1799
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1803
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1824 fi
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1839
1840 } # ac_fn_c_try_compile
1841
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_cxx_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_cxx_try_compile
1879
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 ac_retval=1
1915 fi
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_link
1925
1926 # ac_fn_c_try_link LINENO
1927 # -----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_link ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext conftest$ac_exeext
1933 if { { ac_try="$ac_link"
1934 case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>conftest.err
1941 ac_status=$?
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1946 fi
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_c_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest$ac_exeext && {
1952 test "$cross_compiling" = yes ||
1953 test -x conftest$ac_exeext
1954 }; then :
1955 ac_retval=0
1956 else
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.$ac_ext >&5
1959
1960 ac_retval=1
1961 fi
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_link
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1974
1975 It was created by $as_me, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1977
1978 $ $0 $@
1979
1980 _ACEOF
1981 exec 5>>config.log
1982 {
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1987
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005 _ASUNAME
2006
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2015
2016 } >&5
2017
2018 cat >&5 <<_ACEOF
2019
2020
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2024
2025 _ACEOF
2026
2027
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2038 do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2075
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222 fi
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 # Check that the precious variables saved in the cache have kept the same
2256 # value.
2257 ac_cache_corrupted=false
2258 for ac_var in $ac_precious_vars; do
2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2260 eval ac_new_set=\$ac_env_${ac_var}_set
2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2262 eval ac_new_val=\$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2264 set,)
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted=: ;;
2268 ,set)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,);;
2273 *)
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w=`echo x $ac_old_val`
2277 ac_new_val_w=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted=:
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\$ac_old_val
2286 fi
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2291 fi;;
2292 esac
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2295 case $ac_new_val in
2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg=$ac_var=$ac_new_val ;;
2298 esac
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2302 esac
2303 fi
2304 done
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 fi
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2315
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322
2323
2324
2325
2326
2327
2328
2329 progname=$0
2330 # if PWD already has a value, it is probably wrong.
2331 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2332
2333 # Export original configure arguments for use by sub-configures.
2334 # Quote arguments with shell meta charatcers.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS=
2336 set -- "$progname" "$@"
2337 for ac_arg
2338 do
2339 case "$ac_arg" in
2340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2341 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2342 # if the argument is of the form -foo=baz, quote the baz part only
2343 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2344 *) ;;
2345 esac
2346 # Add the quoted argument to the list.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2348 done
2349 if test "$silent" = yes; then
2350 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2351 fi
2352 # Remove the initial space we just introduced and, as these will be
2353 # expanded by make, quote '$'.
2354 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2355
2356
2357 # Find the build, host, and target systems.
2358 ac_aux_dir=
2359 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2360 if test -f "$ac_dir/install-sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install-sh -c"
2363 break
2364 elif test -f "$ac_dir/install.sh"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/install.sh -c"
2367 break
2368 elif test -f "$ac_dir/shtool"; then
2369 ac_aux_dir=$ac_dir
2370 ac_install_sh="$ac_aux_dir/shtool install -c"
2371 break
2372 fi
2373 done
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2376 fi
2377
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2385
2386
2387 # Make sure we can run config.sub.
2388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2392 $as_echo_n "checking build system type... " >&6; }
2393 if ${ac_cv_build+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 ac_build_alias=$build_alias
2397 test "x$ac_build_alias" = x &&
2398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2399 test "x$ac_build_alias" = x &&
2400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2403
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2406 $as_echo "$ac_cv_build" >&6; }
2407 case $ac_cv_build in
2408 *-*-*) ;;
2409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2410 esac
2411 build=$ac_cv_build
2412 ac_save_IFS=$IFS; IFS='-'
2413 set x $ac_cv_build
2414 shift
2415 build_cpu=$1
2416 build_vendor=$2
2417 shift; shift
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2420 build_os=$*
2421 IFS=$ac_save_IFS
2422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2423
2424
2425 case ${build_alias} in
2426 "") build_noncanonical=${build} ;;
2427 *) build_noncanonical=${build_alias} ;;
2428 esac
2429
2430
2431
2432 case ${host_alias} in
2433 "") host_noncanonical=${build_noncanonical} ;;
2434 *) host_noncanonical=${host_alias} ;;
2435 esac
2436
2437
2438
2439 case ${target_alias} in
2440 "") target_noncanonical=${host_noncanonical} ;;
2441 *) target_noncanonical=${target_alias} ;;
2442 esac
2443
2444
2445
2446
2447 test "$host_noncanonical" = "$target_noncanonical" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2449 NONENONEs,x,x, &&
2450 program_transform_name=s,y,y,
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if ${ac_cv_host+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$host_alias" = x; then
2458 ac_cv_host=$ac_cv_build
2459 else
2460 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2467 case $ac_cv_host in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2470 esac
2471 host=$ac_cv_host
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_host
2474 shift
2475 host_cpu=$1
2476 host_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 host_os=$*
2481 IFS=$ac_save_IFS
2482 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if ${ac_cv_target+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test "x$target_alias" = x; then
2491 ac_cv_target=$ac_cv_host
2492 else
2493 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2495 fi
2496
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2501 *-*-*) ;;
2502 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2503 esac
2504 target=$ac_cv_target
2505 ac_save_IFS=$IFS; IFS='-'
2506 set x $ac_cv_target
2507 shift
2508 target_cpu=$1
2509 target_vendor=$2
2510 shift; shift
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2513 target_os=$*
2514 IFS=$ac_save_IFS
2515 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2516
2517
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2522 NONENONEs,x,x, &&
2523 program_prefix=${target_alias}-
2524
2525 test "$program_prefix" != NONE &&
2526 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE &&
2529 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $.
2531 # By default was `s,x,x', remove it if useless.
2532 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2533 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2534
2535
2536
2537 # Get 'install' or 'install-sh' and its variants.
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2544 # AIX /bin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if ${ac_cv_path_install+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in #((
2565 ./ | .// | /[cC]/* | \
2566 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2567 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2568 /usr/ucb/* ) ;;
2569 *)
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2572 # by default.
2573 for ac_prog in ginstall scoinst install; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2579 :
2580 elif test $ac_prog = install &&
2581 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2583 :
2584 else
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one > conftest.one
2587 echo two > conftest.two
2588 mkdir conftest.dir
2589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2590 test -s conftest.one && test -s conftest.two &&
2591 test -s conftest.dir/conftest.one &&
2592 test -s conftest.dir/conftest.two
2593 then
2594 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2595 break 3
2596 fi
2597 fi
2598 fi
2599 done
2600 done
2601 ;;
2602 esac
2603
2604 done
2605 IFS=$as_save_IFS
2606
2607 rm -rf conftest.one conftest.two conftest.dir
2608
2609 fi
2610 if test "${ac_cv_path_install+set}" = set; then
2611 INSTALL=$ac_cv_path_install
2612 else
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for INSTALL within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 INSTALL=$ac_install_sh
2618 fi
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2621 $as_echo "$INSTALL" >&6; }
2622
2623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2624 # It thinks the first close brace ends the variable substitution.
2625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2626
2627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2628
2629 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2630
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2632 $as_echo_n "checking whether ln works... " >&6; }
2633 if ${acx_cv_prog_LN+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 rm -f conftestdata_t
2637 echo >conftestdata_f
2638 if ln conftestdata_f conftestdata_t 2>/dev/null
2639 then
2640 acx_cv_prog_LN=ln
2641 else
2642 acx_cv_prog_LN=no
2643 fi
2644 rm -f conftestdata_f conftestdata_t
2645
2646 fi
2647 if test $acx_cv_prog_LN = no; then
2648 LN="cp"
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2650 $as_echo "no, using $LN" >&6; }
2651 else
2652 LN="$acx_cv_prog_LN"
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 fi
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2658 $as_echo_n "checking whether ln -s works... " >&6; }
2659 LN_S=$as_ln_s
2660 if test "$LN_S" = "ln -s"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2665 $as_echo "no, using $LN_S" >&6; }
2666 fi
2667
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2670 if ${ac_cv_path_SED+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2674 for ac_i in 1 2 3 4 5 6 7; do
2675 ac_script="$ac_script$as_nl$ac_script"
2676 done
2677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2678 { ac_script=; unset ac_script;}
2679 if test -z "$SED"; then
2680 ac_path_SED_found=false
2681 # Loop through the user's path and test for each of PROGNAME-LIST
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_prog in sed gsed; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2690 as_fn_executable_p "$ac_path_SED" || continue
2691 # Check for GNU ac_path_SED and select it if it is found.
2692 # Check for GNU $ac_path_SED
2693 case `"$ac_path_SED" --version 2>&1` in
2694 *GNU*)
2695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2696 *)
2697 ac_count=0
2698 $as_echo_n 0123456789 >"conftest.in"
2699 while :
2700 do
2701 cat "conftest.in" "conftest.in" >"conftest.tmp"
2702 mv "conftest.tmp" "conftest.in"
2703 cp "conftest.in" "conftest.nl"
2704 $as_echo '' >> "conftest.nl"
2705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2707 as_fn_arith $ac_count + 1 && ac_count=$as_val
2708 if test $ac_count -gt ${ac_path_SED_max-0}; then
2709 # Best one so far, save it but keep looking for a better one
2710 ac_cv_path_SED="$ac_path_SED"
2711 ac_path_SED_max=$ac_count
2712 fi
2713 # 10*(2^10) chars as input seems more than enough
2714 test $ac_count -gt 10 && break
2715 done
2716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2717 esac
2718
2719 $ac_path_SED_found && break 3
2720 done
2721 done
2722 done
2723 IFS=$as_save_IFS
2724 if test -z "$ac_cv_path_SED"; then
2725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2726 fi
2727 else
2728 ac_cv_path_SED=$SED
2729 fi
2730
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2733 $as_echo "$ac_cv_path_SED" >&6; }
2734 SED="$ac_cv_path_SED"
2735 rm -f conftest.sed
2736
2737 for ac_prog in gawk mawk nawk awk
2738 do
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_AWK+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$AWK"; then
2747 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_AWK="$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 AWK=$ac_cv_prog_AWK
2767 if test -n "$AWK"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2769 $as_echo "$AWK" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 test -n "$AWK" && break
2777 done
2778
2779
2780 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2781
2782 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2783 # a relative path.
2784 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2785 INSTALL="${srcpwd}/install-sh -c"
2786 fi
2787
2788 # Set srcdir to "." if that's what it is.
2789 # This is important for multilib support.
2790 pwd=`${PWDCMD-pwd}`
2791 if test "${pwd}" = "${srcpwd}" ; then
2792 srcdir=.
2793 fi
2794
2795 topsrcdir=$srcpwd
2796
2797 extra_host_args=
2798
2799 ### To add a new directory to the tree, first choose whether it is a target
2800 ### or a host dependent tool. Then put it into the appropriate list
2801 ### (library or tools, host or target), doing a dependency sort.
2802
2803 # Subdirs will be configured in the order listed in build_configdirs,
2804 # configdirs, or target_configdirs; see the serialization section below.
2805
2806 # Dependency sorting is only needed when *configuration* must be done in
2807 # a particular order. In all cases a dependency should be specified in
2808 # the Makefile, whether or not it's implicitly specified here.
2809
2810 # Double entries in build_configdirs, configdirs, or target_configdirs may
2811 # cause circular dependencies and break everything horribly.
2812
2813 # these library is used by various programs built for the build
2814 # environment
2815 #
2816 build_libs="build-libiberty build-libcpp"
2817
2818 # these tools are built for the build environment
2819 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2820
2821 # these libraries are used by various programs built for the host environment
2822 #f
2823 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2824
2825 # these tools are built for the host environment
2826 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2827 # know that we are building the simulator.
2828 # binutils, gas and ld appear in that order because it makes sense to run
2829 # "make check" in that particular order.
2830 # If --enable-gold is used, "gold" may replace "ld".
2831 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"
2832
2833 # these libraries are built for the target environment, and are built after
2834 # the host libraries and the host tools (which may be a cross compiler)
2835 # Note that libiberty is not a target library.
2836 target_libraries="target-libgcc \
2837 target-libbacktrace \
2838 target-libgloss \
2839 target-newlib \
2840 target-libgomp \
2841 target-liboffloadmic \
2842 target-libatomic \
2843 target-libitm \
2844 target-libstdc++-v3 \
2845 target-libsanitizer \
2846 target-libvtv \
2847 target-libssp \
2848 target-libquadmath \
2849 target-libgfortran \
2850 target-libffi \
2851 target-libobjc \
2852 target-libada \
2853 target-libgo \
2854 target-libphobos \
2855 target-zlib"
2856
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2859 #
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2862 #
2863 target_tools="target-rda"
2864
2865 ################################################################################
2866
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs=`echo ${host_libs} ${host_tools}`
2873 target_configdirs=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs=`echo ${build_libs} ${build_tools}`
2875
2876
2877
2878 ################################################################################
2879
2880 srcname="gnu development package"
2881
2882 # This gets set non-empty for some net releases of packages.
2883 appdirs=""
2884
2885 # Define is_cross_compiler to save on calls to 'test'.
2886 is_cross_compiler=
2887 if test x"${host}" = x"${target}" ; then
2888 is_cross_compiler=no
2889 else
2890 is_cross_compiler=yes
2891 fi
2892
2893 # Find the build and target subdir names.
2894
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2900 # finishes. So:
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2903
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir="build-${build_noncanonical}"
2906
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval=$with_build_libsubdir; build_libsubdir="$withval"
2910 else
2911 build_libsubdir="$build_subdir"
2912 fi
2913
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = . && test -d gcc ) \
2916 || test -d $srcdir/../host-${host_noncanonical}; then
2917 host_subdir="host-${host_noncanonical}"
2918 else
2919 host_subdir=.
2920 fi
2921 # No prefix.
2922 target_subdir=${target_noncanonical}
2923
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2926 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2928 fi
2929
2930 # Skipdirs are removed silently.
2931 skipdirs=
2932 # Noconfigdirs are removed loudly.
2933 noconfigdirs=""
2934
2935 use_gnu_ld=
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x$with_gnu_ld = xno ; then
2938 use_gnu_ld=no
2939 noconfigdirs="$noconfigdirs ld gold"
2940 fi
2941
2942 use_gnu_as=
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x$with_gnu_as = xno ; then
2945 use_gnu_as=no
2946 noconfigdirs="$noconfigdirs gas"
2947 fi
2948
2949 use_included_zlib=
2950
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval=$with_system_zlib;
2954 fi
2955
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x$with_system_zlib = xyes ; then
2958 use_included_zlib=no
2959 noconfigdirs="$noconfigdirs zlib"
2960 fi
2961
2962
2963 # Check whether --with-zstd was given.
2964 if test "${with_zstd+set}" = set; then :
2965 withval=$with_zstd;
2966 fi
2967
2968
2969 # some tools are so dependent upon X11 that if we're not building with X,
2970 # it's not even worth trying to configure, much less build, that tool.
2971
2972 case ${with_x} in
2973 yes | "") ;; # the default value for this tree is that X11 is available
2974 no)
2975 skipdirs="${skipdirs} tk itcl libgui"
2976 # We won't be able to build gdbtk without X.
2977 enable_gdbtk=no
2978 ;;
2979 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2980 esac
2981
2982 # Some are only suitable for cross toolchains.
2983 # Remove these if host=target.
2984 cross_only="target-libgloss target-newlib target-opcodes"
2985
2986 case $is_cross_compiler in
2987 no) skipdirs="${skipdirs} ${cross_only}" ;;
2988 esac
2989
2990 # If both --with-headers and --with-libs are specified, default to
2991 # --without-newlib.
2992 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2994 if test x"${with_newlib}" = x ; then
2995 with_newlib=no
2996 fi
2997 fi
2998
2999 # Recognize --with-newlib/--without-newlib.
3000 case ${with_newlib} in
3001 no) skipdirs="${skipdirs} target-newlib" ;;
3002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3003 esac
3004
3005 # Check whether --enable-as-accelerator-for was given.
3006 if test "${enable_as_accelerator_for+set}" = set; then :
3007 enableval=$enable_as_accelerator_for;
3008 fi
3009
3010
3011 # Check whether --enable-offload-targets was given.
3012 if test "${enable_offload_targets+set}" = set; then :
3013 enableval=$enable_offload_targets;
3014 if test x"$enable_offload_targets" = x; then
3015 as_fn_error $? "no offload targets specified" "$LINENO" 5
3016 fi
3017
3018 else
3019 enable_offload_targets=
3020 fi
3021
3022
3023 # Check whether --enable-offload-defaulted was given.
3024 if test "${enable_offload_defaulted+set}" = set; then :
3025 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3026 else
3027 enable_offload_defaulted=
3028 fi
3029
3030
3031 # Handle --enable-gold, --enable-ld.
3032 # --disable-gold [--enable-ld]
3033 # Build only ld. Default option.
3034 # --enable-gold [--enable-ld]
3035 # Build both gold and ld. Install gold as "ld.gold", install ld
3036 # as "ld.bfd" and "ld".
3037 # --enable-gold=default [--enable-ld]
3038 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3039 # install ld as "ld.bfd".
3040 # --enable-gold[=default] --disable-ld
3041 # Build only gold, which is then installed as both "ld.gold" and "ld".
3042 # --enable-gold --enable-ld=default
3043 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3044 # and ld.bfd).
3045 # In other words, ld is default
3046 # --enable-gold=default --enable-ld=default
3047 # Error.
3048
3049 default_ld=
3050 # Check whether --enable-gold was given.
3051 if test "${enable_gold+set}" = set; then :
3052 enableval=$enable_gold; ENABLE_GOLD=$enableval
3053 else
3054 ENABLE_GOLD=no
3055 fi
3056
3057 case "${ENABLE_GOLD}" in
3058 yes|default)
3059 # Check for ELF target.
3060 is_elf=no
3061 case "${target}" in
3062 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3063 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3064 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3065 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3066 case "${target}" in
3067 *-*-linux*aout* | *-*-linux*oldld*)
3068 ;;
3069 *)
3070 is_elf=yes
3071 ;;
3072 esac
3073 esac
3074
3075 if test "$is_elf" = "yes"; then
3076 # Check for target supported by gold.
3077 case "${target}" in
3078 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3079 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3080 configdirs="$configdirs gold"
3081 if test x${ENABLE_GOLD} = xdefault; then
3082 default_ld=gold
3083 fi
3084 ENABLE_GOLD=yes
3085 ;;
3086 esac
3087 fi
3088 ;;
3089 no)
3090 ;;
3091 *)
3092 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3093 ;;
3094 esac
3095
3096 # Check whether --enable-ld was given.
3097 if test "${enable_ld+set}" = set; then :
3098 enableval=$enable_ld; ENABLE_LD=$enableval
3099 else
3100 ENABLE_LD=yes
3101 fi
3102
3103
3104 case "${ENABLE_LD}" in
3105 default)
3106 if test x${default_ld} != x; then
3107 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3108 fi
3109 ;;
3110 yes)
3111 ;;
3112 no)
3113 if test x${ENABLE_GOLD} != xyes; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3115 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3116 fi
3117 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3118 ;;
3119 *)
3120 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3121 ;;
3122 esac
3123
3124 # Check whether --enable-gprofng was given.
3125 if test "${enable_gprofng+set}" = set; then :
3126 enableval=$enable_gprofng; enable_gprofng=$enableval
3127 else
3128 enable_gprofng=yes
3129 fi
3130
3131 if test "$enable_gprofng" = "yes"; then
3132 case "${target}" in
3133 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3134 configdirs="$configdirs gprofng"
3135 ;;
3136 esac
3137 fi
3138
3139
3140 # PR gas/19109
3141 # Decide the default method for compressing debug sections.
3142 # Provide a configure time option to override our default.
3143 # Check whether --enable-compressed_debug_sections was given.
3144 if test "${enable_compressed_debug_sections+set}" = set; then :
3145 enableval=$enable_compressed_debug_sections;
3146 if test x"$enable_compressed_debug_sections" = xyes; then
3147 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3148 fi
3149
3150 else
3151 enable_compressed_debug_sections=
3152 fi
3153
3154
3155 # Select default compression algorithm.
3156 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3157 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3158 enableval=$enable_default_compressed_debug_sections_algorithm;
3159 else
3160 default_compressed_debug_sections_algorithm=
3161 fi
3162
3163
3164 # Configure extra directories which are host specific
3165
3166 case "${host}" in
3167 *-cygwin*)
3168 configdirs="$configdirs libtermcap" ;;
3169 esac
3170
3171 # A target can indicate whether a language isn't supported for some reason.
3172 # Only spaces may be used in this macro; not newlines or tabs.
3173 unsupported_languages=
3174
3175 # Remove more programs from consideration, based on the host or
3176 # target this usually means that a port of the program doesn't
3177 # exist yet.
3178
3179 case "${host}" in
3180 i[3456789]86-*-msdosdjgpp*)
3181 noconfigdirs="$noconfigdirs tcl tk itcl"
3182 ;;
3183 esac
3184
3185 # Default to --disable-year2038 until we can handle differences between
3186 # projects that use gnulib (which understands year 2038) and projects that
3187 # do not (like BFD).
3188 # Check whether --enable-year2038 was given.
3189 if test "${enable_year2038+set}" = set; then :
3190 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3191 else
3192 ENABLE_YEAR2038=no
3193 fi
3194
3195 enable_year2038=
3196 if test "${ENABLE_YEAR2038}" = "no" ; then
3197 enable_year2038=no
3198 fi
3199
3200 # Check whether --enable-libquadmath was given.
3201 if test "${enable_libquadmath+set}" = set; then :
3202 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3203 else
3204 ENABLE_LIBQUADMATH=yes
3205 fi
3206
3207 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3208 noconfigdirs="$noconfigdirs target-libquadmath"
3209 fi
3210
3211
3212 # Check whether --enable-libquadmath-support was given.
3213 if test "${enable_libquadmath_support+set}" = set; then :
3214 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3215 else
3216 ENABLE_LIBQUADMATH_SUPPORT=yes
3217 fi
3218
3219 enable_libquadmath_support=
3220 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3221 enable_libquadmath_support=no
3222 fi
3223
3224
3225 # Check whether --enable-libada was given.
3226 if test "${enable_libada+set}" = set; then :
3227 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3228 else
3229 ENABLE_LIBADA=yes
3230 fi
3231
3232 if test "${ENABLE_LIBADA}" != "yes" ; then
3233 noconfigdirs="$noconfigdirs gnattools"
3234 fi
3235
3236 # Check whether --enable-libssp was given.
3237 if test "${enable_libssp+set}" = set; then :
3238 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3239 else
3240 ENABLE_LIBSSP=yes
3241 fi
3242
3243
3244 # Check whether --enable-libstdcxx was given.
3245 if test "${enable_libstdcxx+set}" = set; then :
3246 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3247 else
3248 ENABLE_LIBSTDCXX=default
3249 fi
3250
3251 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3253 fi
3254
3255 # If this is accelerator compiler and its target is intelmic we enable
3256 # target liboffloadmic by default. If this is compiler with offloading
3257 # for intelmic we enable host liboffloadmic by default. Otherwise
3258 # liboffloadmic is disabled by default.
3259 # Check whether --enable-liboffloadmic was given.
3260 if test "${enable_liboffloadmic+set}" = set; then :
3261 enableval=$enable_liboffloadmic; case "$enableval" in
3262 no | host | target)
3263 enable_liboffloadmic=$enableval ;;
3264 *)
3265 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3266 esac
3267 else
3268 if test x"$enable_as_accelerator_for" != x; then
3269 case "${target}" in
3270 *-intelmic-* | *-intelmicemul-*)
3271 enable_liboffloadmic=target
3272 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3273 ;;
3274 *)
3275 enable_liboffloadmic=no
3276 ;;
3277 esac
3278 else
3279 case "${enable_offload_targets}" in
3280 *-intelmic-* | *-intelmicemul-*)
3281 enable_liboffloadmic=host
3282 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3283 ;;
3284 *)
3285 enable_liboffloadmic=no
3286 ;;
3287 esac
3288 fi
3289 fi
3290
3291
3292
3293 # Enable libgomp by default on hosted POSIX systems, and a few others.
3294 if test x$enable_libgomp = x ; then
3295 case "${target}" in
3296 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3297 ;;
3298 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3299 ;;
3300 *-*-solaris2* | *-*-hpux11*)
3301 ;;
3302 *-*-darwin* | *-*-aix*)
3303 ;;
3304 nvptx*-*-* | amdgcn*-*-*)
3305 ;;
3306 *)
3307 noconfigdirs="$noconfigdirs target-libgomp"
3308 ;;
3309 esac
3310 fi
3311
3312 # Disable libatomic on unsupported systems.
3313 if test -d ${srcdir}/libatomic; then
3314 if test x$enable_libatomic = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316 $as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir=${srcdir}/libatomic; \
3318 . ${srcdir}/configure.tgt; \
3319 test -n "$UNSUPPORTED")
3320 then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs="$noconfigdirs target-libatomic"
3324 else
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3327 fi
3328 fi
3329 fi
3330
3331 # Disable liboffloadmic on unsupported systems.
3332 if test -d ${srcdir}/liboffloadmic; then
3333 if test x$enable_liboffloadmic != xno; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3335 $as_echo_n "checking for liboffloadmic support... " >&6; }
3336 if (srcdir=${srcdir}/liboffloadmic; \
3337 . ${srcdir}/configure.tgt; \
3338 test -n "$UNSUPPORTED")
3339 then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs="$noconfigdirs target-liboffloadmic"
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3346 fi
3347 fi
3348 fi
3349
3350 # Disable libitm on unsupported systems.
3351 if test -d ${srcdir}/libitm; then
3352 if test x$enable_libitm = x; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3354 $as_echo_n "checking for libitm support... " >&6; }
3355 if (srcdir=${srcdir}/libitm; \
3356 . ${srcdir}/configure.tgt; \
3357 test -n "$UNSUPPORTED")
3358 then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 noconfigdirs="$noconfigdirs target-libitm"
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3365 fi
3366 fi
3367 fi
3368
3369 # Disable libsanitizer on unsupported systems.
3370 if test -d ${srcdir}/libsanitizer; then
3371 if test x$enable_libsanitizer = x; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3373 $as_echo_n "checking for libsanitizer support... " >&6; }
3374 if (srcdir=${srcdir}/libsanitizer; \
3375 . ${srcdir}/configure.tgt; \
3376 test -n "$UNSUPPORTED")
3377 then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs="$noconfigdirs target-libsanitizer"
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384 fi
3385 fi
3386 fi
3387
3388 # Disable libvtv on unsupported systems.
3389 if test -d ${srcdir}/libvtv; then
3390 if test x$enable_libvtv = x; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3392 $as_echo_n "checking for libvtv support... " >&6; }
3393 if (srcdir=${srcdir}/libvtv; \
3394 . ${srcdir}/configure.tgt; \
3395 test "$VTV_SUPPORTED" != "yes")
3396 then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 noconfigdirs="$noconfigdirs target-libvtv"
3400 else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402 $as_echo "yes" >&6; }
3403 fi
3404 fi
3405 fi
3406
3407 # Disable libquadmath for some systems.
3408 case "${target}" in
3409 avr-*-*)
3410 noconfigdirs="$noconfigdirs target-libquadmath"
3411 ;;
3412 # libquadmath is unused on AIX and libquadmath build process use of
3413 # LD_LIBRARY_PATH can break AIX bootstrap.
3414 powerpc-*-aix* | rs6000-*-aix*)
3415 noconfigdirs="$noconfigdirs target-libquadmath"
3416 ;;
3417 esac
3418
3419 # Disable libssp for some systems.
3420 case "${target}" in
3421 avr-*-*)
3422 # No hosted I/O support.
3423 noconfigdirs="$noconfigdirs target-libssp"
3424 ;;
3425 bpf-*-*)
3426 noconfigdirs="$noconfigdirs target-libssp"
3427 ;;
3428 powerpc-*-aix* | rs6000-*-aix*)
3429 noconfigdirs="$noconfigdirs target-libssp"
3430 ;;
3431 pru-*-*)
3432 # No hosted I/O support.
3433 noconfigdirs="$noconfigdirs target-libssp"
3434 ;;
3435 rl78-*-*)
3436 # libssp uses a misaligned load to trigger a fault, but the RL78
3437 # doesn't fault for those - instead, it gives a build-time error
3438 # for explicit misaligned loads.
3439 noconfigdirs="$noconfigdirs target-libssp"
3440 ;;
3441 visium-*-*)
3442 # No hosted I/O support.
3443 noconfigdirs="$noconfigdirs target-libssp"
3444 ;;
3445 esac
3446
3447 # Disable libstdc++-v3 for some systems.
3448 # Allow user to override this if they pass --enable-libstdcxx
3449 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3450 case "${target}" in
3451 *-*-vxworks*)
3452 # VxWorks uses the Dinkumware C++ library.
3453 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3454 ;;
3455 amdgcn*-*-*)
3456 # Not ported/fails to build when using newlib.
3457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3458 ;;
3459 arm*-wince-pe*)
3460 # the C++ libraries don't build on top of CE's C libraries
3461 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3462 ;;
3463 avr-*-*)
3464 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3465 ;;
3466 bpf-*-*)
3467 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3468 ;;
3469 ft32-*-*)
3470 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3471 ;;
3472 esac
3473 fi
3474
3475 # Disable C++ on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=c++.
3477 case ,${enable_languages}, in
3478 *,c++,*)
3479 ;;
3480 *)
3481 case "${target}" in
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages c++"
3484 ;;
3485 esac
3486 ;;
3487 esac
3488
3489 # Disable Objc on systems where it is known to not work.
3490 # For testing, you can override this with --enable-languages=objc.
3491 case ,${enable_languages}, in
3492 *,objc,*)
3493 ;;
3494 *)
3495 case "${target}" in
3496 bpf-*-*)
3497 unsupported_languages="$unsupported_languages objc"
3498 ;;
3499 esac
3500 ;;
3501 esac
3502
3503 # Disable D on systems where it is known to not work.
3504 # For testing, you can override this with --enable-languages=d.
3505 case ,${enable_languages}, in
3506 *,d,*)
3507 ;;
3508 *)
3509 case "${target}" in
3510 bpf-*-*)
3511 unsupported_languages="$unsupported_languages d"
3512 ;;
3513 esac
3514 ;;
3515 esac
3516
3517 # Disable libphobos on unsupported systems.
3518 # For testing, you can override this with --enable-libphobos.
3519 if test -d ${srcdir}/libphobos; then
3520 if test x$enable_libphobos = x; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3522 $as_echo_n "checking for libphobos support... " >&6; }
3523 if (srcdir=${srcdir}/libphobos; \
3524 . ${srcdir}/configure.tgt; \
3525 test "$LIBPHOBOS_SUPPORTED" != "yes")
3526 then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 noconfigdirs="$noconfigdirs target-libphobos"
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3533 fi
3534 fi
3535 fi
3536
3537 # Disable Fortran for some systems.
3538 case "${target}" in
3539 mmix-*-*)
3540 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3541 unsupported_languages="$unsupported_languages fortran"
3542 ;;
3543 bpf-*-*)
3544 unsupported_languages="$unsupported_languages fortran"
3545 ;;
3546 esac
3547
3548 # Disable libffi for some systems.
3549 case "${target}" in
3550 powerpc-*-darwin*)
3551 ;;
3552 i[3456789]86-*-darwin*)
3553 ;;
3554 x86_64-*-darwin[912]*)
3555 ;;
3556 *-*-darwin*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 *-*-netware*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 *-*-phoenix*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 *-*-rtems*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 *-*-tpf*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 *-*-uclinux*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 *-*-vxworks*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577 aarch64*-*-freebsd*)
3578 noconfigdirs="$noconfigdirs target-libffi"
3579 ;;
3580 alpha*-*-*vms*)
3581 noconfigdirs="$noconfigdirs target-libffi"
3582 ;;
3583 arm*-*-freebsd*)
3584 noconfigdirs="$noconfigdirs target-libffi"
3585 ;;
3586 arm-wince-pe)
3587 noconfigdirs="$noconfigdirs target-libffi"
3588 ;;
3589 arm*-*-symbianelf*)
3590 noconfigdirs="$noconfigdirs target-libffi"
3591 ;;
3592 bpf-*-*)
3593 noconfigdirs="$noconfigdirs target-libffi"
3594 ;;
3595 cris-*-* | crisv32-*-*)
3596 case "${target}" in
3597 *-*-linux*)
3598 ;;
3599 *) # See PR46792 regarding target-libffi.
3600 noconfigdirs="$noconfigdirs target-libffi";;
3601 esac
3602 ;;
3603 hppa*64*-*-hpux*)
3604 noconfigdirs="$noconfigdirs target-libffi"
3605 ;;
3606 hppa*-hp-hpux11*)
3607 ;;
3608 hppa*-*-hpux*)
3609 noconfigdirs="$noconfigdirs target-libffi"
3610 ;;
3611 ia64*-*-*vms*)
3612 noconfigdirs="$noconfigdirs target-libffi"
3613 ;;
3614 i[3456789]86-w64-mingw*)
3615 noconfigdirs="$noconfigdirs target-libffi"
3616 ;;
3617 i[3456789]86-*-mingw*)
3618 noconfigdirs="$noconfigdirs target-libffi"
3619 ;;
3620 x86_64-*-mingw*)
3621 noconfigdirs="$noconfigdirs target-libffi"
3622 ;;
3623 mmix-*-*)
3624 noconfigdirs="$noconfigdirs target-libffi"
3625 ;;
3626 powerpc-*-aix*)
3627 ;;
3628 rs6000-*-aix*)
3629 ;;
3630 ft32-*-*)
3631 noconfigdirs="$noconfigdirs target-libffi"
3632 ;;
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-libffi"
3635 ;;
3636 esac
3637
3638 # Disable the go frontend on systems where it is known to not work. Please keep
3639 # this in sync with contrib/config-list.mk.
3640 case "${target}" in
3641 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3642 unsupported_languages="$unsupported_languages go"
3643 ;;
3644 esac
3645
3646 # Only allow gdbserver on some systems.
3647 if test -d ${srcdir}/gdbserver; then
3648 if test x$enable_gdbserver = x; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3650 $as_echo_n "checking for gdbserver support... " >&6; }
3651 if (srcdir=${srcdir}/gdbserver; \
3652 . ${srcdir}/configure.srv; \
3653 test -n "$UNSUPPORTED")
3654 then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 noconfigdirs="$noconfigdirs gdbserver"
3658 else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661 fi
3662 fi
3663 fi
3664
3665 # Disable libgo for some systems where it is known to not work.
3666 # For testing, you can easily override this with --enable-libgo.
3667 if test x$enable_libgo = x; then
3668 case "${target}" in
3669 *-*-darwin*)
3670 # PR 46986
3671 noconfigdirs="$noconfigdirs target-libgo"
3672 ;;
3673 *-*-cygwin* | *-*-mingw*)
3674 noconfigdirs="$noconfigdirs target-libgo"
3675 ;;
3676 bpf-*-*)
3677 noconfigdirs="$noconfigdirs target-libgo"
3678 ;;
3679 esac
3680 fi
3681
3682 # Default libgloss CPU subdirectory.
3683 libgloss_dir="$target_cpu"
3684
3685 case "${target}" in
3686 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3687 libgloss_dir=wince
3688 ;;
3689 aarch64*-*-* )
3690 libgloss_dir=aarch64
3691 ;;
3692 arm*-*-*)
3693 libgloss_dir=arm
3694 ;;
3695 cris-*-* | crisv32-*-*)
3696 libgloss_dir=cris
3697 ;;
3698 hppa*-*-*)
3699 libgloss_dir=pa
3700 ;;
3701 i[3456789]86-*-*)
3702 libgloss_dir=i386
3703 ;;
3704 loongarch*-*-*)
3705 libgloss_dir=loongarch
3706 ;;
3707 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3708 libgloss_dir=m68hc11
3709 ;;
3710 m68*-*-* | fido-*-*)
3711 libgloss_dir=m68k
3712 ;;
3713 mips*-*-*)
3714 libgloss_dir=mips
3715 ;;
3716 powerpc*-*-*)
3717 libgloss_dir=rs6000
3718 ;;
3719 pru-*-*)
3720 libgloss_dir=pru
3721 ;;
3722 sparc*-*-*)
3723 libgloss_dir=sparc
3724 ;;
3725 esac
3726
3727 # Disable newlib and libgloss for various target OSes.
3728 case "${target}" in
3729 alpha*-dec-osf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 i[3456789]86-*-linux*)
3733 # This section makes it possible to build newlib natively on linux.
3734 # If we are using a cross compiler then don't configure newlib.
3735 if test x${is_cross_compiler} != xno ; then
3736 noconfigdirs="$noconfigdirs target-newlib"
3737 fi
3738 noconfigdirs="$noconfigdirs target-libgloss"
3739 # If we are not using a cross compiler, do configure newlib.
3740 # Note however, that newlib will only be configured in this situation
3741 # if the --with-newlib option has been given, because otherwise
3742 # 'target-newlib' will appear in skipdirs.
3743 ;;
3744 i[3456789]86-*-rdos*)
3745 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3746 ;;
3747 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3748 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3749 ;;
3750 sparc-*-sunos4*)
3751 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3752 ;;
3753 bpf-*-*)
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3755 ;;
3756 *-*-aix*)
3757 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3758 ;;
3759 *-*-beos*)
3760 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3761 ;;
3762 *-*-chorusos)
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 ;;
3765 *-*-dragonfly*)
3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3767 ;;
3768 *-*-freebsd*)
3769 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3770 ;;
3771 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 ;;
3774 *-*-lynxos*)
3775 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3776 ;;
3777 *-*-mingw*)
3778 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3779 ;;
3780 *-*-netbsd*)
3781 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3782 ;;
3783 *-*-netware*)
3784 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3785 ;;
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3788 ;;
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3791 ;;
3792 *-*-vxworks*)
3793 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3794 ;;
3795 esac
3796
3797 case "${target}" in
3798 *-*-chorusos)
3799 ;;
3800 aarch64-*-darwin*)
3801 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs="$noconfigdirs sim target-rda"
3803 ;;
3804 amdgcn*-*-*)
3805 ;;
3806 arm-*-darwin*)
3807 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3808 noconfigdirs="$noconfigdirs sim target-rda"
3809 ;;
3810 powerpc-*-darwin*)
3811 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3812 noconfigdirs="$noconfigdirs sim target-rda"
3813 ;;
3814 i[3456789]86-*-darwin*)
3815 noconfigdirs="$noconfigdirs ld gprof"
3816 noconfigdirs="$noconfigdirs sim target-rda"
3817 ;;
3818 x86_64-*-darwin[912]*)
3819 noconfigdirs="$noconfigdirs ld gas gprof"
3820 noconfigdirs="$noconfigdirs sim target-rda"
3821 ;;
3822 *-*-darwin*)
3823 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3824 noconfigdirs="$noconfigdirs sim target-rda"
3825 ;;
3826 *-*-dragonfly*)
3827 ;;
3828 *-*-freebsd*)
3829 if test "x$with_gmp" = x \
3830 && ! test -d ${srcdir}/gmp \
3831 && test -f /usr/local/include/gmp.h; then
3832 with_gmp=/usr/local
3833 fi
3834 ;;
3835 *-*-kaos*)
3836 # Remove unsupported stuff on all kaOS configurations.
3837 noconfigdirs="$noconfigdirs target-libgloss"
3838 ;;
3839 *-*-netbsd*)
3840 ;;
3841 *-*-netware*)
3842 ;;
3843 *-*-phoenix*)
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 ;;
3846 *-*-rtems*)
3847 noconfigdirs="$noconfigdirs target-libgloss"
3848 ;;
3849 # The tpf target doesn't support gdb yet.
3850 *-*-tpf*)
3851 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3852 ;;
3853 *-*-uclinux*)
3854 noconfigdirs="$noconfigdirs target-rda"
3855 ;;
3856 *-*-vxworks*)
3857 ;;
3858 alpha*-dec-osf*)
3859 # ld works, but does not support shared libraries.
3860 # gas doesn't generate exception information.
3861 noconfigdirs="$noconfigdirs gas ld"
3862 ;;
3863 alpha*-*-*vms*)
3864 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3865 ;;
3866 alpha*-*-*)
3867 # newlib is not 64 bit ready
3868 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3869 ;;
3870 bpf-*-*)
3871 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3872 ;;
3873 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3874 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3875 ;;
3876 arc*-*-*)
3877 noconfigdirs="$noconfigdirs sim"
3878 ;;
3879 arm-*-pe*)
3880 noconfigdirs="$noconfigdirs target-libgloss"
3881 ;;
3882 arm-*-riscix*)
3883 noconfigdirs="$noconfigdirs ld target-libgloss"
3884 ;;
3885 avr-*-*)
3886 if test x${with_avrlibc} != xno; then
3887 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3888 fi
3889 ;;
3890 c4x-*-* | tic4x-*-*)
3891 noconfigdirs="$noconfigdirs target-libgloss"
3892 ;;
3893 tic54x-*-*)
3894 noconfigdirs="$noconfigdirs target-libgloss gdb"
3895 ;;
3896 d10v-*-*)
3897 noconfigdirs="$noconfigdirs target-libgloss"
3898 ;;
3899 d30v-*-*)
3900 noconfigdirs="$noconfigdirs gdb"
3901 ;;
3902 fr30-*-elf*)
3903 noconfigdirs="$noconfigdirs gdb"
3904 ;;
3905 ft32-*-*)
3906 noconfigdirs="$noconfigdirs target-rda gprof"
3907 ;;
3908 moxie-*-*)
3909 noconfigdirs="$noconfigdirs"
3910 ;;
3911 h8300*-*-*)
3912 noconfigdirs="$noconfigdirs target-libgloss"
3913 ;;
3914 h8500-*-*)
3915 noconfigdirs="$noconfigdirs target-libgloss"
3916 ;;
3917 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3918 ;;
3919 hppa*64*-*-hpux*)
3920 noconfigdirs="$noconfigdirs gdb"
3921 ;;
3922 hppa*-*-hpux11*)
3923 noconfigdirs="$noconfigdirs gdb ld"
3924 ;;
3925 hppa*64*-*-linux*)
3926 ;;
3927 hppa*-*-linux*)
3928 ;;
3929 hppa*-*-*elf* | \
3930 hppa*-*-lites* | \
3931 hppa*-*-openbsd* | \
3932 hppa*64*-*-*)
3933 ;;
3934 hppa*-*-pro*)
3935 ;;
3936 hppa*-*-*)
3937 noconfigdirs="$noconfigdirs ld"
3938 ;;
3939 i960-*-*)
3940 noconfigdirs="$noconfigdirs gdb"
3941 ;;
3942 ia64*-*-elf*)
3943 # No gdb support yet.
3944 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3945 ;;
3946 ia64*-**-hpux*)
3947 # No ld support yet.
3948 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3949 ;;
3950 ia64*-*-*vms*)
3951 # No ld support yet.
3952 noconfigdirs="$noconfigdirs libgui itcl ld"
3953 ;;
3954 i[3456789]86-w64-mingw*)
3955 ;;
3956 i[3456789]86-*-mingw*)
3957 target_configdirs="$target_configdirs target-winsup"
3958 ;;
3959 *-*-cygwin*)
3960 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3961 noconfigdirs="$noconfigdirs target-libgloss"
3962 # always build newlib if winsup directory is present.
3963 if test -d "$srcdir/winsup/cygwin"; then
3964 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3965 elif test -d "$srcdir/newlib"; then
3966 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3967 fi
3968 ;;
3969 i[3456789]86-*-pe)
3970 noconfigdirs="$noconfigdirs target-libgloss"
3971 ;;
3972 i[3456789]86-*-sco3.2v5*)
3973 # The linker does not yet know about weak symbols in COFF,
3974 # and is not configured to handle mixed ELF and COFF.
3975 noconfigdirs="$noconfigdirs ld target-libgloss"
3976 ;;
3977 i[3456789]86-*-sco*)
3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
3979 ;;
3980 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3981 noconfigdirs="$noconfigdirs target-libgloss"
3982 ;;
3983 i[3456789]86-*-sysv4*)
3984 noconfigdirs="$noconfigdirs target-libgloss"
3985 ;;
3986 i[3456789]86-*-beos*)
3987 noconfigdirs="$noconfigdirs gdb"
3988 ;;
3989 i[3456789]86-*-rdos*)
3990 noconfigdirs="$noconfigdirs gdb"
3991 ;;
3992 mmix-*-*)
3993 noconfigdirs="$noconfigdirs gdb"
3994 ;;
3995 mt-*-*)
3996 noconfigdirs="$noconfigdirs sim"
3997 ;;
3998 nfp-*-*)
3999 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4000 noconfigdirs="$noconfigdirs $target_libraries"
4001 ;;
4002 pdp11-*-*)
4003 noconfigdirs="$noconfigdirs gdb gprof"
4004 ;;
4005 powerpc-*-aix*)
4006 # copied from rs6000-*-* entry
4007 noconfigdirs="$noconfigdirs gprof"
4008 ;;
4009 powerpc*-*-winnt* | powerpc*-*-pe*)
4010 target_configdirs="$target_configdirs target-winsup"
4011 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4012 # always build newlib.
4013 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4014 ;;
4015 # This is temporary until we can link against shared libraries
4016 powerpcle-*-solaris*)
4017 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4018 ;;
4019 powerpc-*-beos*)
4020 noconfigdirs="$noconfigdirs gdb"
4021 ;;
4022 rs6000-*-lynxos*)
4023 noconfigdirs="$noconfigdirs gprof"
4024 ;;
4025 rs6000-*-aix*)
4026 noconfigdirs="$noconfigdirs gprof"
4027 ;;
4028 rs6000-*-*)
4029 noconfigdirs="$noconfigdirs gprof"
4030 ;;
4031 m68k-apollo-*)
4032 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4033 ;;
4034 microblaze*)
4035 noconfigdirs="$noconfigdirs gprof"
4036 ;;
4037 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4038 if test x$with_newlib = xyes; then
4039 noconfigdirs="$noconfigdirs gprof"
4040 fi
4041 ;;
4042 mips*-*-irix5*)
4043 noconfigdirs="$noconfigdirs gprof target-libgloss"
4044 ;;
4045 mips*-*-irix6*)
4046 noconfigdirs="$noconfigdirs gprof target-libgloss"
4047 ;;
4048 mips*-*-bsd*)
4049 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4050 ;;
4051 mips*-*-linux*)
4052 ;;
4053 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4054 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4055 noconfigdirs="$noconfigdirs ld gas gprof"
4056 ;;
4057 mips*-*-*)
4058 noconfigdirs="$noconfigdirs gprof"
4059 ;;
4060 nvptx*-*-*)
4061 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4062 ;;
4063 sh-*-*)
4064 case "${target}" in
4065 sh*-*-elf)
4066 ;;
4067 *)
4068 noconfigdirs="$noconfigdirs target-libgloss" ;;
4069 esac
4070 ;;
4071 sparc-*-sunos4*)
4072 if test x${is_cross_compiler} = xno ; then
4073 use_gnu_ld=no
4074 fi
4075 ;;
4076 tic6x-*-*)
4077 noconfigdirs="$noconfigdirs sim"
4078 ;;
4079 tilepro*-*-* | tilegx*-*-*)
4080 noconfigdirs="$noconfigdirs sim"
4081 ;;
4082 v810-*-*)
4083 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4084 ;;
4085 vax-*-*)
4086 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4087 ;;
4088 wasm32-*-*)
4089 noconfigdirs="$noconfigdirs ld"
4090 ;;
4091 loongarch*-*-linux*)
4092 ;;
4093 loongarch*-*-*)
4094 noconfigdirs="$noconfigdirs gprof"
4095 ;;
4096 esac
4097
4098 # If we aren't building newlib, then don't build libgloss, since libgloss
4099 # depends upon some newlib header files.
4100 case "${noconfigdirs}" in
4101 *target-libgloss*) ;;
4102 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4103 esac
4104
4105 # Work in distributions that contain no compiler tools, like Autoconf.
4106 host_makefile_frag=/dev/null
4107 if test -d ${srcdir}/config ; then
4108 case "${host}" in
4109 i[3456789]86-*-msdosdjgpp*)
4110 host_makefile_frag="config/mh-djgpp"
4111 ;;
4112 *-cygwin*)
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4115 $as_echo_n "checking to see if cat works as expected... " >&6; }
4116 echo a >cygwin-cat-check
4117 if test `cat cygwin-cat-check` = a ; then
4118 rm cygwin-cat-check
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122 rm cygwin-cat-check
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $? "The cat command does not ignore carriage return characters.
4126 Please either mount the build directory in binary mode or run the following
4127 commands before running any configure script:
4128 set -o igncr
4129 export SHELLOPTS
4130 " "$LINENO" 5
4131 fi
4132
4133 host_makefile_frag="config/mh-cygwin"
4134 ;;
4135 *-mingw*)
4136 host_makefile_frag="config/mh-mingw"
4137 ;;
4138 alpha*-linux*)
4139 host_makefile_frag="config/mh-alpha-linux"
4140 ;;
4141 hppa*-hp-hpux10*)
4142 host_makefile_frag="config/mh-pa-hpux10"
4143 ;;
4144 hppa*-hp-hpux*)
4145 host_makefile_frag="config/mh-pa"
4146 ;;
4147 hppa*-*)
4148 host_makefile_frag="config/mh-pa"
4149 ;;
4150 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4151 host_makefile_frag="config/mh-darwin"
4152 ;;
4153 powerpc-*-aix*)
4154 host_makefile_frag="config/mh-ppc-aix"
4155 ;;
4156 rs6000-*-aix*)
4157 host_makefile_frag="config/mh-ppc-aix"
4158 ;;
4159 esac
4160 fi
4161
4162 if test "${build}" != "${host}" ; then
4163 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4164 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4165 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4166 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4167 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4168 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4169 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4170 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4171 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4172 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4173 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4174 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4175 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4176 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4177 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4178 else
4179 AR_FOR_BUILD="\$(AR)"
4180 AS_FOR_BUILD="\$(AS)"
4181 CC_FOR_BUILD="\$(CC)"
4182 CXX_FOR_BUILD="\$(CXX)"
4183 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4184 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4185 GOC_FOR_BUILD="\$(GOC)"
4186 GDC_FOR_BUILD="\$(GDC)"
4187 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4188 LD_FOR_BUILD="\$(LD)"
4189 NM_FOR_BUILD="\$(NM)"
4190 RANLIB_FOR_BUILD="\$(RANLIB)"
4191 WINDRES_FOR_BUILD="\$(WINDRES)"
4192 WINDMC_FOR_BUILD="\$(WINDMC)"
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 CC=$ac_cv_prog_CC
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236
4237
4238 fi
4239 if test -z "$ac_cv_prog_CC"; then
4240 ac_ct_CC=$CC
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="gcc"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4271 $as_echo "$ac_ct_CC" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276
4277 if test "x$ac_ct_CC" = x; then
4278 CC=""
4279 else
4280 case $cross_compiling:$ac_tool_warned in
4281 yes:)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4284 ac_tool_warned=yes ;;
4285 esac
4286 CC=$ac_ct_CC
4287 fi
4288 else
4289 CC="$ac_cv_prog_CC"
4290 fi
4291
4292 if test -z "$CC"; then
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}cc; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_CC+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC="$CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_CC="${ac_tool_prefix}cc"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 CC=$ac_cv_prog_CC
4322 if test -n "$CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4324 $as_echo "$CC" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331 fi
4332 fi
4333 if test -z "$CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CC+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC="$CC" # Let the user override the test.
4343 else
4344 ac_prog_rejected=no
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected=yes
4354 continue
4355 fi
4356 ac_cv_prog_CC="cc"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy $ac_cv_prog_CC
4367 shift
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set CC to just the basename; use the full file name.
4372 shift
4373 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4374 fi
4375 fi
4376 fi
4377 fi
4378 CC=$ac_cv_prog_CC
4379 if test -n "$CC"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4381 $as_echo "$CC" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 fi
4386
4387
4388 fi
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog in cl.exe
4392 do
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$CC" && break
4431 done
4432 fi
4433 if test -z "$CC"; then
4434 ac_ct_CC=$CC
4435 for ac_prog in cl.exe
4436 do
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473
4474 test -n "$ac_ct_CC" && break
4475 done
4476
4477 if test "x$ac_ct_CC" = x; then
4478 CC=""
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 CC=$ac_ct_CC
4487 fi
4488 fi
4489
4490 fi
4491
4492
4493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "no acceptable C compiler found in \$PATH
4496 See \`config.log' for more details" "$LINENO" 5; }
4497
4498 # Provide some information about the compiler.
4499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4500 set X $ac_compile
4501 ac_compiler=$2
4502 for ac_option in --version -v -V -qversion; do
4503 { { ac_try="$ac_compiler $ac_option >&5"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4511 ac_status=$?
4512 if test -s conftest.err; then
4513 sed '10a\
4514 ... rest of stderr output deleted ...
4515 10q' conftest.err >conftest.er1
4516 cat conftest.er1 >&5
4517 fi
4518 rm -f conftest.er1 conftest.err
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }
4521 done
4522
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4525
4526 int
4527 main ()
4528 {
4529
4530 ;
4531 return 0;
4532 }
4533 _ACEOF
4534 ac_clean_files_save=$ac_clean_files
4535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4536 # Try to create an executable without -o first, disregard a.out.
4537 # It will help us diagnose broken compilers, and finding out an intuition
4538 # of exeext.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4540 $as_echo_n "checking whether the C compiler works... " >&6; }
4541 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4542
4543 # The possible output files:
4544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4545
4546 ac_rmfiles=
4547 for ac_file in $ac_files
4548 do
4549 case $ac_file in
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4552 esac
4553 done
4554 rm -f $ac_rmfiles
4555
4556 if { { ac_try="$ac_link_default"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_link_default") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }; then :
4567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4570 # so that the user can short-circuit this test for compilers unknown to
4571 # Autoconf.
4572 for ac_file in $ac_files ''
4573 do
4574 test -f "$ac_file" || continue
4575 case $ac_file in
4576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4577 ;;
4578 [ab].out )
4579 # We found the default executable, but exeext='' is most
4580 # certainly right.
4581 break;;
4582 *.* )
4583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4584 then :; else
4585 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586 fi
4587 # We set ac_cv_exeext here because the later test for it is not
4588 # safe: cross compilers may not add the suffix if given an `-o'
4589 # argument, so we may need to know it at that point already.
4590 # Even if this section looks crufty: it has the advantage of
4591 # actually working.
4592 break;;
4593 * )
4594 break;;
4595 esac
4596 done
4597 test "$ac_cv_exeext" = no && ac_cv_exeext=
4598
4599 else
4600 ac_file=''
4601 fi
4602 if test -z "$ac_file"; then :
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error 77 "C compiler cannot create executables
4611 See \`config.log' for more details" "$LINENO" 5; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4617 $as_echo_n "checking for C compiler default output file name... " >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4619 $as_echo "$ac_file" >&6; }
4620 ac_exeext=$ac_cv_exeext
4621
4622 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4623 ac_clean_files=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4625 $as_echo_n "checking for suffix of executables... " >&6; }
4626 if { { ac_try="$ac_link"
4627 case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4630 esac
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4634 ac_status=$?
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; then :
4637 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4638 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4639 # work properly (i.e., refer to `conftest.exe'), while it won't with
4640 # `rm'.
4641 for ac_file in conftest.exe conftest conftest.*; do
4642 test -f "$ac_file" || continue
4643 case $ac_file in
4644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4645 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4646 break;;
4647 * ) break;;
4648 esac
4649 done
4650 else
4651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4654 See \`config.log' for more details" "$LINENO" 5; }
4655 fi
4656 rm -f conftest conftest$ac_cv_exeext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4658 $as_echo "$ac_cv_exeext" >&6; }
4659
4660 rm -f conftest.$ac_ext
4661 EXEEXT=$ac_cv_exeext
4662 ac_exeext=$EXEEXT
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <stdio.h>
4666 int
4667 main ()
4668 {
4669 FILE *f = fopen ("conftest.out", "w");
4670 return ferror (f) || fclose (f) != 0;
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 ac_clean_files="$ac_clean_files conftest.out"
4677 # Check that the compiler produces executables we can run. If not, either
4678 # the compiler is broken, or we cross compile.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4680 $as_echo_n "checking whether we are cross compiling... " >&6; }
4681 if test "$cross_compiling" != yes; then
4682 { { ac_try="$ac_link"
4683 case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686 esac
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_link") 2>&5
4690 ac_status=$?
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 if { ac_try='./conftest$ac_cv_exeext'
4694 { { case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_try") 2>&5
4701 ac_status=$?
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; }; then
4704 cross_compiling=no
4705 else
4706 if test "$cross_compiling" = maybe; then
4707 cross_compiling=yes
4708 else
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "cannot run C compiled programs.
4712 If you meant to cross compile, use \`--host'.
4713 See \`config.log' for more details" "$LINENO" 5; }
4714 fi
4715 fi
4716 fi
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4718 $as_echo "$cross_compiling" >&6; }
4719
4720 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4721 ac_clean_files=$ac_clean_files_save
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4723 $as_echo_n "checking for suffix of object files... " >&6; }
4724 if ${ac_cv_objext+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.o conftest.obj
4739 if { { ac_try="$ac_compile"
4740 case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compile") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then :
4750 for ac_file in conftest.o conftest.obj conftest.*; do
4751 test -f "$ac_file" || continue;
4752 case $ac_file in
4753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4755 break;;
4756 esac
4757 done
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 as_fn_error $? "cannot compute suffix of object files: cannot compile
4765 See \`config.log' for more details" "$LINENO" 5; }
4766 fi
4767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4770 $as_echo "$ac_cv_objext" >&6; }
4771 OBJEXT=$ac_cv_objext
4772 ac_objext=$OBJEXT
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main ()
4783 {
4784 #ifndef __GNUC__
4785 choke me
4786 #endif
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_compiler_gnu=yes
4794 else
4795 ac_compiler_gnu=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4804 GCC=yes
4805 else
4806 GCC=
4807 fi
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4817 ac_cv_prog_cc_g=no
4818 CFLAGS="-g"
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821
4822 int
4823 main ()
4824 {
4825
4826 ;
4827 return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_g=yes
4832 else
4833 CFLAGS=""
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836
4837 int
4838 main ()
4839 {
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846
4847 else
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4849 CFLAGS="-g"
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852
4853 int
4854 main ()
4855 {
4856
4857 ;
4858 return 0;
4859 }
4860 _ACEOF
4861 if ac_fn_c_try_compile "$LINENO"; then :
4862 ac_cv_prog_cc_g=yes
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 fi
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4877 CFLAGS="-g -O2"
4878 else
4879 CFLAGS="-g"
4880 fi
4881 else
4882 if test "$GCC" = yes; then
4883 CFLAGS="-O2"
4884 else
4885 CFLAGS=
4886 fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 ac_cv_prog_cc_c89=no
4894 ac_save_CC=$CC
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #include <stdarg.h>
4898 #include <stdio.h>
4899 struct stat;
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4904 char **p;
4905 int i;
4906 {
4907 return p[i];
4908 }
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4910 {
4911 char *s;
4912 va_list v;
4913 va_start (v,p);
4914 s = g (p, va_arg (v,int));
4915 va_end (v);
4916 return s;
4917 }
4918
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4927
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4930 #define FOO(x) 'x'
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4932
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4937 int argc;
4938 char **argv;
4939 int
4940 main ()
4941 {
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4949 do
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4956 done
4957 rm -f conftest.$ac_ext
4958 CC=$ac_save_CC
4959
4960 fi
4961 # AC_CACHE_VAL
4962 case "x$ac_cv_prog_cc_c89" in
4963 x)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4966 xno)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4969 *)
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4973 esac
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4975
4976 fi
4977
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4985 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4986 if ${ac_cv_prog_cc_c99+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 ac_cv_prog_cc_c99=no
4990 ac_save_CC=$CC
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <stdarg.h>
4994 #include <stdbool.h>
4995 #include <stdlib.h>
4996 #include <wchar.h>
4997 #include <stdio.h>
4998
4999 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5000 #define debug(...) fprintf (stderr, __VA_ARGS__)
5001 #define showlist(...) puts (#__VA_ARGS__)
5002 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5003 static void
5004 test_varargs_macros (void)
5005 {
5006 int x = 1234;
5007 int y = 5678;
5008 debug ("Flag");
5009 debug ("X = %d\n", x);
5010 showlist (The first, second, and third items.);
5011 report (x>y, "x is %d but y is %d", x, y);
5012 }
5013
5014 // Check long long types.
5015 #define BIG64 18446744073709551615ull
5016 #define BIG32 4294967295ul
5017 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5018 #if !BIG_OK
5019 your preprocessor is broken;
5020 #endif
5021 #if BIG_OK
5022 #else
5023 your preprocessor is broken;
5024 #endif
5025 static long long int bignum = -9223372036854775807LL;
5026 static unsigned long long int ubignum = BIG64;
5027
5028 struct incomplete_array
5029 {
5030 int datasize;
5031 double data[];
5032 };
5033
5034 struct named_init {
5035 int number;
5036 const wchar_t *name;
5037 double average;
5038 };
5039
5040 typedef const char *ccp;
5041
5042 static inline int
5043 test_restrict (ccp restrict text)
5044 {
5045 // See if C++-style comments work.
5046 // Iterate through items via the restricted pointer.
5047 // Also check for declarations in for loops.
5048 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5049 continue;
5050 return 0;
5051 }
5052
5053 // Check varargs and va_copy.
5054 static void
5055 test_varargs (const char *format, ...)
5056 {
5057 va_list args;
5058 va_start (args, format);
5059 va_list args_copy;
5060 va_copy (args_copy, args);
5061
5062 const char *str;
5063 int number;
5064 float fnumber;
5065
5066 while (*format)
5067 {
5068 switch (*format++)
5069 {
5070 case 's': // string
5071 str = va_arg (args_copy, const char *);
5072 break;
5073 case 'd': // int
5074 number = va_arg (args_copy, int);
5075 break;
5076 case 'f': // float
5077 fnumber = va_arg (args_copy, double);
5078 break;
5079 default:
5080 break;
5081 }
5082 }
5083 va_end (args_copy);
5084 va_end (args);
5085 }
5086
5087 int
5088 main ()
5089 {
5090
5091 // Check bool.
5092 _Bool success = false;
5093
5094 // Check restrict.
5095 if (test_restrict ("String literal") == 0)
5096 success = true;
5097 char *restrict newvar = "Another string";
5098
5099 // Check varargs.
5100 test_varargs ("s, d' f .", "string", 65, 34.234);
5101 test_varargs_macros ();
5102
5103 // Check flexible array members.
5104 struct incomplete_array *ia =
5105 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5106 ia->datasize = 10;
5107 for (int i = 0; i < ia->datasize; ++i)
5108 ia->data[i] = i * 1.234;
5109
5110 // Check named initializers.
5111 struct named_init ni = {
5112 .number = 34,
5113 .name = L"Test wide string",
5114 .average = 543.34343,
5115 };
5116
5117 ni.number = 58;
5118
5119 int dynamic_array[ni.number];
5120 dynamic_array[ni.number - 1] = 543;
5121
5122 // work around unused variable warnings
5123 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5124 || dynamic_array[ni.number - 1] != 543);
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5131 do
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c99=$ac_arg
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c99" != "xno" && break
5138 done
5139 rm -f conftest.$ac_ext
5140 CC=$ac_save_CC
5141
5142 fi
5143 # AC_CACHE_VAL
5144 case "x$ac_cv_prog_cc_c99" in
5145 x)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5148 xno)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5151 *)
5152 CC="$CC $ac_cv_prog_cc_c99"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5154 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5155 esac
5156 if test "x$ac_cv_prog_cc_c99" != xno; then :
5157
5158 fi
5159
5160
5161 ac_ext=cpp
5162 ac_cpp='$CXXCPP $CPPFLAGS'
5163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5166 if test -z "$CXX"; then
5167 if test -n "$CCC"; then
5168 CXX=$CCC
5169 else
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5172 do
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$CXX"; then
5181 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5193 fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 CXX=$ac_cv_prog_CXX
5201 if test -n "$CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5203 $as_echo "$CXX" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5207 fi
5208
5209
5210 test -n "$CXX" && break
5211 done
5212 fi
5213 if test -z "$CXX"; then
5214 ac_ct_CXX=$CXX
5215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5216 do
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$ac_ct_CXX"; then
5225 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_CXX="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5245 if test -n "$ac_ct_CXX"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5247 $as_echo "$ac_ct_CXX" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 test -n "$ac_ct_CXX" && break
5255 done
5256
5257 if test "x$ac_ct_CXX" = x; then
5258 CXX="g++"
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 CXX=$ac_ct_CXX
5267 fi
5268 fi
5269
5270 fi
5271 fi
5272 # Provide some information about the compiler.
5273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5274 set X $ac_compile
5275 ac_compiler=$2
5276 for ac_option in --version -v -V -qversion; do
5277 { { ac_try="$ac_compiler $ac_option >&5"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 $as_echo "$ac_try_echo"; } >&5
5284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5285 ac_status=$?
5286 if test -s conftest.err; then
5287 sed '10a\
5288 ... rest of stderr output deleted ...
5289 10q' conftest.err >conftest.er1
5290 cat conftest.er1 >&5
5291 fi
5292 rm -f conftest.er1 conftest.err
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5295 done
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5298 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5299 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304
5305 int
5306 main ()
5307 {
5308 #ifndef __GNUC__
5309 choke me
5310 #endif
5311
5312 ;
5313 return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_compiler_gnu=yes
5318 else
5319 ac_compiler_gnu=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5323
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5326 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5327 if test $ac_compiler_gnu = yes; then
5328 GXX=yes
5329 else
5330 GXX=
5331 fi
5332 ac_test_CXXFLAGS=${CXXFLAGS+set}
5333 ac_save_CXXFLAGS=$CXXFLAGS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5335 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5336 if ${ac_cv_prog_cxx_g+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5340 ac_cxx_werror_flag=yes
5341 ac_cv_prog_cxx_g=no
5342 CXXFLAGS="-g"
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345
5346 int
5347 main ()
5348 {
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_cxx_try_compile "$LINENO"; then :
5355 ac_cv_prog_cxx_g=yes
5356 else
5357 CXXFLAGS=""
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360
5361 int
5362 main ()
5363 {
5364
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 if ac_fn_cxx_try_compile "$LINENO"; then :
5370
5371 else
5372 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5373 CXXFLAGS="-g"
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376
5377 int
5378 main ()
5379 {
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_cxx_try_compile "$LINENO"; then :
5386 ac_cv_prog_cxx_g=yes
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5396 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5397 if test "$ac_test_CXXFLAGS" = set; then
5398 CXXFLAGS=$ac_save_CXXFLAGS
5399 elif test $ac_cv_prog_cxx_g = yes; then
5400 if test "$GXX" = yes; then
5401 CXXFLAGS="-g -O2"
5402 else
5403 CXXFLAGS="-g"
5404 fi
5405 else
5406 if test "$GXX" = yes; then
5407 CXXFLAGS="-O2"
5408 else
5409 CXXFLAGS=
5410 fi
5411 fi
5412 ac_ext=c
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417
5418
5419 # We must set the default linker to the linker used by gcc for the correct
5420 # operation of libtool. If LD is not defined and we are using gcc, try to
5421 # set the LD default to the ld used by gcc.
5422 if test -z "$LD"; then
5423 if test "$GCC" = yes; then
5424 case $build in
5425 *-*-mingw*)
5426 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5427 *)
5428 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5429 esac
5430 case $gcc_prog_ld in
5431 # Accept absolute paths.
5432 [\\/]* | [A-Za-z]:[\\/]*)
5433 LD="$gcc_prog_ld" ;;
5434 esac
5435 fi
5436 fi
5437
5438 # Check whether -static-libstdc++ -static-libgcc is supported.
5439 have_static_libs=no
5440 if test "$GCC" = yes; then
5441 saved_LDFLAGS="$LDFLAGS"
5442
5443 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5445 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5446 ac_ext=cpp
5447 ac_cpp='$CXXCPP $CPPFLAGS'
5448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5451
5452
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455
5456 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5457 #error -static-libstdc++ not implemented
5458 #endif
5459 int main() {}
5460 _ACEOF
5461 if ac_fn_cxx_try_link "$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }; have_static_libs=yes
5464 else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476
5477 LDFLAGS="$saved_LDFLAGS"
5478 fi
5479
5480
5481
5482
5483 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5485 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_GNATBIND+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$GNATBIND"; then
5492 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 GNATBIND=$ac_cv_prog_GNATBIND
5512 if test -n "$GNATBIND"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5514 $as_echo "$GNATBIND" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 fi
5522 if test -z "$ac_cv_prog_GNATBIND"; then
5523 ac_ct_GNATBIND=$GNATBIND
5524 # Extract the first word of "gnatbind", so it can be a program name with args.
5525 set dummy gnatbind; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$ac_ct_GNATBIND"; then
5532 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5552 if test -n "$ac_ct_GNATBIND"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5554 $as_echo "$ac_ct_GNATBIND" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560 if test "x$ac_ct_GNATBIND" = x; then
5561 GNATBIND="no"
5562 else
5563 case $cross_compiling:$ac_tool_warned in
5564 yes:)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned=yes ;;
5568 esac
5569 GNATBIND=$ac_ct_GNATBIND
5570 fi
5571 else
5572 GNATBIND="$ac_cv_prog_GNATBIND"
5573 fi
5574
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GNATMAKE+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$GNATMAKE"; then
5584 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 GNATMAKE=$ac_cv_prog_GNATMAKE
5604 if test -n "$GNATMAKE"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5606 $as_echo "$GNATMAKE" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613 fi
5614 if test -z "$ac_cv_prog_GNATMAKE"; then
5615 ac_ct_GNATMAKE=$GNATMAKE
5616 # Extract the first word of "gnatmake", so it can be a program name with args.
5617 set dummy gnatmake; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 if test -n "$ac_ct_GNATMAKE"; then
5624 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5644 if test -n "$ac_ct_GNATMAKE"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5646 $as_echo "$ac_ct_GNATMAKE" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651
5652 if test "x$ac_ct_GNATMAKE" = x; then
5653 GNATMAKE="no"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656 yes:)
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned=yes ;;
5660 esac
5661 GNATMAKE=$ac_ct_GNATMAKE
5662 fi
5663 else
5664 GNATMAKE="$ac_cv_prog_GNATMAKE"
5665 fi
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5668 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5669 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat >conftest.adb <<EOF
5673 pragma Warnings (Off);
5674 with System.CRTL;
5675 pragma Warnings (On);
5676 use type System.CRTL.int64;
5677 procedure conftest is begin null; end conftest;
5678 EOF
5679 acx_cv_cc_gcc_supports_ada=no
5680 # There is a bug in old released versions of GCC which causes the
5681 # driver to exit successfully when the appropriate language module
5682 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5683 # Therefore we must check for the error message as well as an
5684 # unsuccessful exit.
5685 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5686 # given a .adb file, but produce no object file. So we must check
5687 # if an object file was really produced to guard against this.
5688 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5689 if test x"$errors" = x && test -f conftest.$ac_objext; then
5690 acx_cv_cc_gcc_supports_ada=yes
5691 fi
5692 rm -f conftest.*
5693 fi
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5695 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5696
5697 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5698 have_gnat=yes
5699 else
5700 have_gnat=no
5701 fi
5702
5703
5704
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_GDC+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$GDC"; then
5714 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731 fi
5732 fi
5733 GDC=$ac_cv_prog_GDC
5734 if test -n "$GDC"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5736 $as_echo "$GDC" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5740 fi
5741
5742
5743 fi
5744 if test -z "$ac_cv_prog_GDC"; then
5745 ac_ct_GDC=$GDC
5746 # Extract the first word of "gdc", so it can be a program name with args.
5747 set dummy gdc; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -n "$ac_ct_GDC"; then
5754 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_ac_ct_GDC="gdc"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5774 if test -n "$ac_ct_GDC"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5776 $as_echo "$ac_ct_GDC" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782 if test "x$ac_ct_GDC" = x; then
5783 GDC="no"
5784 else
5785 case $cross_compiling:$ac_tool_warned in
5786 yes:)
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5790 esac
5791 GDC=$ac_ct_GDC
5792 fi
5793 else
5794 GDC="$ac_cv_prog_GDC"
5795 fi
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5798 $as_echo_n "checking whether the D compiler works... " >&6; }
5799 if ${acx_cv_d_compiler_works+:} false; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 cat >conftest.d <<EOF
5803 module conftest; int main() { return 0; }
5804 EOF
5805 acx_cv_d_compiler_works=no
5806 if test "x$GDC" != xno; then
5807 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5808 if test x"$errors" = x && test -f conftest.$ac_objext; then
5809 acx_cv_d_compiler_works=yes
5810 fi
5811 rm -f conftest.*
5812 fi
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5815 $as_echo "$acx_cv_d_compiler_works" >&6; }
5816 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5817 have_gdc=yes
5818 else
5819 have_gdc=no
5820 fi
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5823 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5824 if ${gcc_cv_prog_cmp_skip+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 echo abfoo >t1
5828 echo cdfoo >t2
5829 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5830 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5831 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5832 :
5833 else
5834 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5835 fi
5836 fi
5837 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5838 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5839 :
5840 else
5841 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5842 fi
5843 fi
5844 rm t1 t2
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5848 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5849 do_compare="$gcc_cv_prog_cmp_skip"
5850
5851
5852
5853 # Check whether --enable-bootstrap was given.
5854 if test "${enable_bootstrap+set}" = set; then :
5855 enableval=$enable_bootstrap;
5856 else
5857 enable_bootstrap=default
5858 fi
5859
5860
5861 # Issue errors and warnings for invalid/strange bootstrap combinations.
5862 if test -r $srcdir/gcc/configure; then
5863 have_compiler=yes
5864 else
5865 have_compiler=no
5866 fi
5867
5868 case "$have_compiler:$host:$target:$enable_bootstrap" in
5869 *:*:*:no) ;;
5870
5871 # Default behavior. Enable bootstrap if we have a compiler
5872 # and we are in a native configuration.
5873 yes:$build:$build:default)
5874 enable_bootstrap=yes ;;
5875
5876 *:*:*:default)
5877 enable_bootstrap=no ;;
5878
5879 # We have a compiler and we are in a native configuration, bootstrap is ok
5880 yes:$build:$build:yes)
5881 ;;
5882
5883 # Other configurations, but we have a compiler. Assume the user knows
5884 # what he's doing.
5885 yes:*:*:yes)
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5887 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5888 ;;
5889
5890 # No compiler: if they passed --enable-bootstrap explicitly, fail
5891 no:*:*:yes)
5892 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5893
5894 # Fail if wrong command line
5895 *)
5896 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5897 ;;
5898 esac
5899
5900 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5901 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5902 # require C++11 (or higher).
5903 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5904 CXX="$CXX -std=c++11"
5905 elif test "$have_compiler" = yes; then
5906 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5907 ac_ext=cpp
5908 ac_cpp='$CXXCPP $CPPFLAGS'
5909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912 ac_success=no
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5915 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5916 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922
5923 // If the compiler admits that it is not ready for C++11, why torture it?
5924 // Hopefully, this will speed up the test.
5925
5926 #ifndef __cplusplus
5927
5928 #error "This is not a C++ compiler"
5929
5930 #elif __cplusplus < 201103L
5931
5932 #error "This is not a C++11 compiler"
5933
5934 #else
5935
5936 namespace cxx11
5937 {
5938
5939 namespace test_static_assert
5940 {
5941
5942 template <typename T>
5943 struct check
5944 {
5945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5946 };
5947
5948 }
5949
5950 namespace test_final_override
5951 {
5952
5953 struct Base
5954 {
5955 virtual ~Base() {}
5956 virtual void f() {}
5957 };
5958
5959 struct Derived : public Base
5960 {
5961 virtual ~Derived() override {}
5962 virtual void f() override {}
5963 };
5964
5965 }
5966
5967 namespace test_double_right_angle_brackets
5968 {
5969
5970 template < typename T >
5971 struct check {};
5972
5973 typedef check<void> single_type;
5974 typedef check<check<void>> double_type;
5975 typedef check<check<check<void>>> triple_type;
5976 typedef check<check<check<check<void>>>> quadruple_type;
5977
5978 }
5979
5980 namespace test_decltype
5981 {
5982
5983 int
5984 f()
5985 {
5986 int a = 1;
5987 decltype(a) b = 2;
5988 return a + b;
5989 }
5990
5991 }
5992
5993 namespace test_type_deduction
5994 {
5995
5996 template < typename T1, typename T2 >
5997 struct is_same
5998 {
5999 static const bool value = false;
6000 };
6001
6002 template < typename T >
6003 struct is_same<T, T>
6004 {
6005 static const bool value = true;
6006 };
6007
6008 template < typename T1, typename T2 >
6009 auto
6010 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6011 {
6012 return a1 + a2;
6013 }
6014
6015 int
6016 test(const int c, volatile int v)
6017 {
6018 static_assert(is_same<int, decltype(0)>::value == true, "");
6019 static_assert(is_same<int, decltype(c)>::value == false, "");
6020 static_assert(is_same<int, decltype(v)>::value == false, "");
6021 auto ac = c;
6022 auto av = v;
6023 auto sumi = ac + av + 'x';
6024 auto sumf = ac + av + 1.0;
6025 static_assert(is_same<int, decltype(ac)>::value == true, "");
6026 static_assert(is_same<int, decltype(av)>::value == true, "");
6027 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6028 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6029 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6030 return (sumf > 0.0) ? sumi : add(c, v);
6031 }
6032
6033 }
6034
6035 namespace test_noexcept
6036 {
6037
6038 int f() { return 0; }
6039 int g() noexcept { return 0; }
6040
6041 static_assert(noexcept(f()) == false, "");
6042 static_assert(noexcept(g()) == true, "");
6043
6044 }
6045
6046 namespace test_constexpr
6047 {
6048
6049 template < typename CharT >
6050 unsigned long constexpr
6051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6052 {
6053 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6054 }
6055
6056 template < typename CharT >
6057 unsigned long constexpr
6058 strlen_c(const CharT *const s) noexcept
6059 {
6060 return strlen_c_r(s, 0UL);
6061 }
6062
6063 static_assert(strlen_c("") == 0UL, "");
6064 static_assert(strlen_c("1") == 1UL, "");
6065 static_assert(strlen_c("example") == 7UL, "");
6066 static_assert(strlen_c("another\0example") == 7UL, "");
6067
6068 }
6069
6070 namespace test_rvalue_references
6071 {
6072
6073 template < int N >
6074 struct answer
6075 {
6076 static constexpr int value = N;
6077 };
6078
6079 answer<1> f(int&) { return answer<1>(); }
6080 answer<2> f(const int&) { return answer<2>(); }
6081 answer<3> f(int&&) { return answer<3>(); }
6082
6083 void
6084 test()
6085 {
6086 int i = 0;
6087 const int c = 0;
6088 static_assert(decltype(f(i))::value == 1, "");
6089 static_assert(decltype(f(c))::value == 2, "");
6090 static_assert(decltype(f(0))::value == 3, "");
6091 }
6092
6093 }
6094
6095 namespace test_uniform_initialization
6096 {
6097
6098 struct test
6099 {
6100 static const int zero {};
6101 static const int one {1};
6102 };
6103
6104 static_assert(test::zero == 0, "");
6105 static_assert(test::one == 1, "");
6106
6107 }
6108
6109 namespace test_lambdas
6110 {
6111
6112 void
6113 test1()
6114 {
6115 auto lambda1 = [](){};
6116 auto lambda2 = lambda1;
6117 lambda1();
6118 lambda2();
6119 }
6120
6121 int
6122 test2()
6123 {
6124 auto a = [](int i, int j){ return i + j; }(1, 2);
6125 auto b = []() -> int { return '0'; }();
6126 auto c = [=](){ return a + b; }();
6127 auto d = [&](){ return c; }();
6128 auto e = [a, &b](int x) mutable {
6129 const auto identity = [](int y){ return y; };
6130 for (auto i = 0; i < a; ++i)
6131 a += b--;
6132 return x + identity(a + b);
6133 }(0);
6134 return a + b + c + d + e;
6135 }
6136
6137 int
6138 test3()
6139 {
6140 const auto nullary = [](){ return 0; };
6141 const auto unary = [](int x){ return x; };
6142 using nullary_t = decltype(nullary);
6143 using unary_t = decltype(unary);
6144 const auto higher1st = [](nullary_t f){ return f(); };
6145 const auto higher2nd = [unary](nullary_t f1){
6146 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6147 };
6148 return higher1st(nullary) + higher2nd(nullary)(unary);
6149 }
6150
6151 }
6152
6153 namespace test_variadic_templates
6154 {
6155
6156 template <int...>
6157 struct sum;
6158
6159 template <int N0, int... N1toN>
6160 struct sum<N0, N1toN...>
6161 {
6162 static constexpr auto value = N0 + sum<N1toN...>::value;
6163 };
6164
6165 template <>
6166 struct sum<>
6167 {
6168 static constexpr auto value = 0;
6169 };
6170
6171 static_assert(sum<>::value == 0, "");
6172 static_assert(sum<1>::value == 1, "");
6173 static_assert(sum<23>::value == 23, "");
6174 static_assert(sum<1, 2>::value == 3, "");
6175 static_assert(sum<5, 5, 11>::value == 21, "");
6176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6177
6178 }
6179
6180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6182 // because of this.
6183 namespace test_template_alias_sfinae
6184 {
6185
6186 struct foo {};
6187
6188 template<typename T>
6189 using member = typename T::member_type;
6190
6191 template<typename T>
6192 void func(...) {}
6193
6194 template<typename T>
6195 void func(member<T>*) {}
6196
6197 void test();
6198
6199 void test() { func<foo>(0); }
6200
6201 }
6202
6203 } // namespace cxx11
6204
6205 #endif // __cplusplus >= 201103L
6206
6207
6208
6209 _ACEOF
6210 if ac_fn_cxx_try_compile "$LINENO"; then :
6211 ax_cv_cxx_compile_cxx11=yes
6212 else
6213 ax_cv_cxx_compile_cxx11=no
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6218 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6219 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6220 ac_success=yes
6221 fi
6222
6223 if test x$ac_success = xno; then
6224 for alternative in ${ax_cxx_compile_alternatives}; do
6225 switch="-std=gnu++${alternative}"
6226 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6228 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6229 if eval \${$cachevar+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 ac_save_CXX="$CXX"
6233 CXX="$CXX $switch"
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236
6237
6238 // If the compiler admits that it is not ready for C++11, why torture it?
6239 // Hopefully, this will speed up the test.
6240
6241 #ifndef __cplusplus
6242
6243 #error "This is not a C++ compiler"
6244
6245 #elif __cplusplus < 201103L
6246
6247 #error "This is not a C++11 compiler"
6248
6249 #else
6250
6251 namespace cxx11
6252 {
6253
6254 namespace test_static_assert
6255 {
6256
6257 template <typename T>
6258 struct check
6259 {
6260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6261 };
6262
6263 }
6264
6265 namespace test_final_override
6266 {
6267
6268 struct Base
6269 {
6270 virtual ~Base() {}
6271 virtual void f() {}
6272 };
6273
6274 struct Derived : public Base
6275 {
6276 virtual ~Derived() override {}
6277 virtual void f() override {}
6278 };
6279
6280 }
6281
6282 namespace test_double_right_angle_brackets
6283 {
6284
6285 template < typename T >
6286 struct check {};
6287
6288 typedef check<void> single_type;
6289 typedef check<check<void>> double_type;
6290 typedef check<check<check<void>>> triple_type;
6291 typedef check<check<check<check<void>>>> quadruple_type;
6292
6293 }
6294
6295 namespace test_decltype
6296 {
6297
6298 int
6299 f()
6300 {
6301 int a = 1;
6302 decltype(a) b = 2;
6303 return a + b;
6304 }
6305
6306 }
6307
6308 namespace test_type_deduction
6309 {
6310
6311 template < typename T1, typename T2 >
6312 struct is_same
6313 {
6314 static const bool value = false;
6315 };
6316
6317 template < typename T >
6318 struct is_same<T, T>
6319 {
6320 static const bool value = true;
6321 };
6322
6323 template < typename T1, typename T2 >
6324 auto
6325 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6326 {
6327 return a1 + a2;
6328 }
6329
6330 int
6331 test(const int c, volatile int v)
6332 {
6333 static_assert(is_same<int, decltype(0)>::value == true, "");
6334 static_assert(is_same<int, decltype(c)>::value == false, "");
6335 static_assert(is_same<int, decltype(v)>::value == false, "");
6336 auto ac = c;
6337 auto av = v;
6338 auto sumi = ac + av + 'x';
6339 auto sumf = ac + av + 1.0;
6340 static_assert(is_same<int, decltype(ac)>::value == true, "");
6341 static_assert(is_same<int, decltype(av)>::value == true, "");
6342 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6343 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6344 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6345 return (sumf > 0.0) ? sumi : add(c, v);
6346 }
6347
6348 }
6349
6350 namespace test_noexcept
6351 {
6352
6353 int f() { return 0; }
6354 int g() noexcept { return 0; }
6355
6356 static_assert(noexcept(f()) == false, "");
6357 static_assert(noexcept(g()) == true, "");
6358
6359 }
6360
6361 namespace test_constexpr
6362 {
6363
6364 template < typename CharT >
6365 unsigned long constexpr
6366 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6367 {
6368 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6369 }
6370
6371 template < typename CharT >
6372 unsigned long constexpr
6373 strlen_c(const CharT *const s) noexcept
6374 {
6375 return strlen_c_r(s, 0UL);
6376 }
6377
6378 static_assert(strlen_c("") == 0UL, "");
6379 static_assert(strlen_c("1") == 1UL, "");
6380 static_assert(strlen_c("example") == 7UL, "");
6381 static_assert(strlen_c("another\0example") == 7UL, "");
6382
6383 }
6384
6385 namespace test_rvalue_references
6386 {
6387
6388 template < int N >
6389 struct answer
6390 {
6391 static constexpr int value = N;
6392 };
6393
6394 answer<1> f(int&) { return answer<1>(); }
6395 answer<2> f(const int&) { return answer<2>(); }
6396 answer<3> f(int&&) { return answer<3>(); }
6397
6398 void
6399 test()
6400 {
6401 int i = 0;
6402 const int c = 0;
6403 static_assert(decltype(f(i))::value == 1, "");
6404 static_assert(decltype(f(c))::value == 2, "");
6405 static_assert(decltype(f(0))::value == 3, "");
6406 }
6407
6408 }
6409
6410 namespace test_uniform_initialization
6411 {
6412
6413 struct test
6414 {
6415 static const int zero {};
6416 static const int one {1};
6417 };
6418
6419 static_assert(test::zero == 0, "");
6420 static_assert(test::one == 1, "");
6421
6422 }
6423
6424 namespace test_lambdas
6425 {
6426
6427 void
6428 test1()
6429 {
6430 auto lambda1 = [](){};
6431 auto lambda2 = lambda1;
6432 lambda1();
6433 lambda2();
6434 }
6435
6436 int
6437 test2()
6438 {
6439 auto a = [](int i, int j){ return i + j; }(1, 2);
6440 auto b = []() -> int { return '0'; }();
6441 auto c = [=](){ return a + b; }();
6442 auto d = [&](){ return c; }();
6443 auto e = [a, &b](int x) mutable {
6444 const auto identity = [](int y){ return y; };
6445 for (auto i = 0; i < a; ++i)
6446 a += b--;
6447 return x + identity(a + b);
6448 }(0);
6449 return a + b + c + d + e;
6450 }
6451
6452 int
6453 test3()
6454 {
6455 const auto nullary = [](){ return 0; };
6456 const auto unary = [](int x){ return x; };
6457 using nullary_t = decltype(nullary);
6458 using unary_t = decltype(unary);
6459 const auto higher1st = [](nullary_t f){ return f(); };
6460 const auto higher2nd = [unary](nullary_t f1){
6461 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6462 };
6463 return higher1st(nullary) + higher2nd(nullary)(unary);
6464 }
6465
6466 }
6467
6468 namespace test_variadic_templates
6469 {
6470
6471 template <int...>
6472 struct sum;
6473
6474 template <int N0, int... N1toN>
6475 struct sum<N0, N1toN...>
6476 {
6477 static constexpr auto value = N0 + sum<N1toN...>::value;
6478 };
6479
6480 template <>
6481 struct sum<>
6482 {
6483 static constexpr auto value = 0;
6484 };
6485
6486 static_assert(sum<>::value == 0, "");
6487 static_assert(sum<1>::value == 1, "");
6488 static_assert(sum<23>::value == 23, "");
6489 static_assert(sum<1, 2>::value == 3, "");
6490 static_assert(sum<5, 5, 11>::value == 21, "");
6491 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6492
6493 }
6494
6495 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6496 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6497 // because of this.
6498 namespace test_template_alias_sfinae
6499 {
6500
6501 struct foo {};
6502
6503 template<typename T>
6504 using member = typename T::member_type;
6505
6506 template<typename T>
6507 void func(...) {}
6508
6509 template<typename T>
6510 void func(member<T>*) {}
6511
6512 void test();
6513
6514 void test() { func<foo>(0); }
6515
6516 }
6517
6518 } // namespace cxx11
6519
6520 #endif // __cplusplus >= 201103L
6521
6522
6523
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526 eval $cachevar=yes
6527 else
6528 eval $cachevar=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 CXX="$ac_save_CXX"
6532 fi
6533 eval ac_res=\$$cachevar
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 if eval test x\$$cachevar = xyes; then
6537 CXX="$CXX $switch"
6538 if test -n "$CXXCPP" ; then
6539 CXXCPP="$CXXCPP $switch"
6540 fi
6541 ac_success=yes
6542 break
6543 fi
6544 done
6545 fi
6546
6547 if test x$ac_success = xno; then
6548 for alternative in ${ax_cxx_compile_alternatives}; do
6549 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6550 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6552 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6553 if eval \${$cachevar+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 ac_save_CXX="$CXX"
6557 CXX="$CXX $switch"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560
6561
6562 // If the compiler admits that it is not ready for C++11, why torture it?
6563 // Hopefully, this will speed up the test.
6564
6565 #ifndef __cplusplus
6566
6567 #error "This is not a C++ compiler"
6568
6569 #elif __cplusplus < 201103L
6570
6571 #error "This is not a C++11 compiler"
6572
6573 #else
6574
6575 namespace cxx11
6576 {
6577
6578 namespace test_static_assert
6579 {
6580
6581 template <typename T>
6582 struct check
6583 {
6584 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6585 };
6586
6587 }
6588
6589 namespace test_final_override
6590 {
6591
6592 struct Base
6593 {
6594 virtual ~Base() {}
6595 virtual void f() {}
6596 };
6597
6598 struct Derived : public Base
6599 {
6600 virtual ~Derived() override {}
6601 virtual void f() override {}
6602 };
6603
6604 }
6605
6606 namespace test_double_right_angle_brackets
6607 {
6608
6609 template < typename T >
6610 struct check {};
6611
6612 typedef check<void> single_type;
6613 typedef check<check<void>> double_type;
6614 typedef check<check<check<void>>> triple_type;
6615 typedef check<check<check<check<void>>>> quadruple_type;
6616
6617 }
6618
6619 namespace test_decltype
6620 {
6621
6622 int
6623 f()
6624 {
6625 int a = 1;
6626 decltype(a) b = 2;
6627 return a + b;
6628 }
6629
6630 }
6631
6632 namespace test_type_deduction
6633 {
6634
6635 template < typename T1, typename T2 >
6636 struct is_same
6637 {
6638 static const bool value = false;
6639 };
6640
6641 template < typename T >
6642 struct is_same<T, T>
6643 {
6644 static const bool value = true;
6645 };
6646
6647 template < typename T1, typename T2 >
6648 auto
6649 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6650 {
6651 return a1 + a2;
6652 }
6653
6654 int
6655 test(const int c, volatile int v)
6656 {
6657 static_assert(is_same<int, decltype(0)>::value == true, "");
6658 static_assert(is_same<int, decltype(c)>::value == false, "");
6659 static_assert(is_same<int, decltype(v)>::value == false, "");
6660 auto ac = c;
6661 auto av = v;
6662 auto sumi = ac + av + 'x';
6663 auto sumf = ac + av + 1.0;
6664 static_assert(is_same<int, decltype(ac)>::value == true, "");
6665 static_assert(is_same<int, decltype(av)>::value == true, "");
6666 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6667 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6668 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6669 return (sumf > 0.0) ? sumi : add(c, v);
6670 }
6671
6672 }
6673
6674 namespace test_noexcept
6675 {
6676
6677 int f() { return 0; }
6678 int g() noexcept { return 0; }
6679
6680 static_assert(noexcept(f()) == false, "");
6681 static_assert(noexcept(g()) == true, "");
6682
6683 }
6684
6685 namespace test_constexpr
6686 {
6687
6688 template < typename CharT >
6689 unsigned long constexpr
6690 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6691 {
6692 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6693 }
6694
6695 template < typename CharT >
6696 unsigned long constexpr
6697 strlen_c(const CharT *const s) noexcept
6698 {
6699 return strlen_c_r(s, 0UL);
6700 }
6701
6702 static_assert(strlen_c("") == 0UL, "");
6703 static_assert(strlen_c("1") == 1UL, "");
6704 static_assert(strlen_c("example") == 7UL, "");
6705 static_assert(strlen_c("another\0example") == 7UL, "");
6706
6707 }
6708
6709 namespace test_rvalue_references
6710 {
6711
6712 template < int N >
6713 struct answer
6714 {
6715 static constexpr int value = N;
6716 };
6717
6718 answer<1> f(int&) { return answer<1>(); }
6719 answer<2> f(const int&) { return answer<2>(); }
6720 answer<3> f(int&&) { return answer<3>(); }
6721
6722 void
6723 test()
6724 {
6725 int i = 0;
6726 const int c = 0;
6727 static_assert(decltype(f(i))::value == 1, "");
6728 static_assert(decltype(f(c))::value == 2, "");
6729 static_assert(decltype(f(0))::value == 3, "");
6730 }
6731
6732 }
6733
6734 namespace test_uniform_initialization
6735 {
6736
6737 struct test
6738 {
6739 static const int zero {};
6740 static const int one {1};
6741 };
6742
6743 static_assert(test::zero == 0, "");
6744 static_assert(test::one == 1, "");
6745
6746 }
6747
6748 namespace test_lambdas
6749 {
6750
6751 void
6752 test1()
6753 {
6754 auto lambda1 = [](){};
6755 auto lambda2 = lambda1;
6756 lambda1();
6757 lambda2();
6758 }
6759
6760 int
6761 test2()
6762 {
6763 auto a = [](int i, int j){ return i + j; }(1, 2);
6764 auto b = []() -> int { return '0'; }();
6765 auto c = [=](){ return a + b; }();
6766 auto d = [&](){ return c; }();
6767 auto e = [a, &b](int x) mutable {
6768 const auto identity = [](int y){ return y; };
6769 for (auto i = 0; i < a; ++i)
6770 a += b--;
6771 return x + identity(a + b);
6772 }(0);
6773 return a + b + c + d + e;
6774 }
6775
6776 int
6777 test3()
6778 {
6779 const auto nullary = [](){ return 0; };
6780 const auto unary = [](int x){ return x; };
6781 using nullary_t = decltype(nullary);
6782 using unary_t = decltype(unary);
6783 const auto higher1st = [](nullary_t f){ return f(); };
6784 const auto higher2nd = [unary](nullary_t f1){
6785 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6786 };
6787 return higher1st(nullary) + higher2nd(nullary)(unary);
6788 }
6789
6790 }
6791
6792 namespace test_variadic_templates
6793 {
6794
6795 template <int...>
6796 struct sum;
6797
6798 template <int N0, int... N1toN>
6799 struct sum<N0, N1toN...>
6800 {
6801 static constexpr auto value = N0 + sum<N1toN...>::value;
6802 };
6803
6804 template <>
6805 struct sum<>
6806 {
6807 static constexpr auto value = 0;
6808 };
6809
6810 static_assert(sum<>::value == 0, "");
6811 static_assert(sum<1>::value == 1, "");
6812 static_assert(sum<23>::value == 23, "");
6813 static_assert(sum<1, 2>::value == 3, "");
6814 static_assert(sum<5, 5, 11>::value == 21, "");
6815 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6816
6817 }
6818
6819 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6820 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6821 // because of this.
6822 namespace test_template_alias_sfinae
6823 {
6824
6825 struct foo {};
6826
6827 template<typename T>
6828 using member = typename T::member_type;
6829
6830 template<typename T>
6831 void func(...) {}
6832
6833 template<typename T>
6834 void func(member<T>*) {}
6835
6836 void test();
6837
6838 void test() { func<foo>(0); }
6839
6840 }
6841
6842 } // namespace cxx11
6843
6844 #endif // __cplusplus >= 201103L
6845
6846
6847
6848 _ACEOF
6849 if ac_fn_cxx_try_compile "$LINENO"; then :
6850 eval $cachevar=yes
6851 else
6852 eval $cachevar=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 CXX="$ac_save_CXX"
6856 fi
6857 eval ac_res=\$$cachevar
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6859 $as_echo "$ac_res" >&6; }
6860 if eval test x\$$cachevar = xyes; then
6861 CXX="$CXX $switch"
6862 if test -n "$CXXCPP" ; then
6863 CXXCPP="$CXXCPP $switch"
6864 fi
6865 ac_success=yes
6866 break
6867 fi
6868 done
6869 if test x$ac_success = xyes; then
6870 break
6871 fi
6872 done
6873 fi
6874
6875 ac_ext=c
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880
6881 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6882 if test x$ac_success = xno; then
6883 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6884 fi
6885 fi
6886 if test x$ac_success = xno; then
6887 HAVE_CXX11=0
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6889 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6890 else
6891 HAVE_CXX11=1
6892
6893 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6894
6895 fi
6896
6897
6898
6899 if test "${build}" != "${host}"; then
6900 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6901 ac_ext=cpp
6902 ac_cpp='$CXXCPP $CPPFLAGS'
6903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6906 ac_success=no
6907 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6908 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6909 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6910 CXX="$CXX_FOR_BUILD"
6911 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6912 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6914 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6915 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920
6921
6922 // If the compiler admits that it is not ready for C++11, why torture it?
6923 // Hopefully, this will speed up the test.
6924
6925 #ifndef __cplusplus
6926
6927 #error "This is not a C++ compiler"
6928
6929 #elif __cplusplus < 201103L
6930
6931 #error "This is not a C++11 compiler"
6932
6933 #else
6934
6935 namespace cxx11
6936 {
6937
6938 namespace test_static_assert
6939 {
6940
6941 template <typename T>
6942 struct check
6943 {
6944 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6945 };
6946
6947 }
6948
6949 namespace test_final_override
6950 {
6951
6952 struct Base
6953 {
6954 virtual ~Base() {}
6955 virtual void f() {}
6956 };
6957
6958 struct Derived : public Base
6959 {
6960 virtual ~Derived() override {}
6961 virtual void f() override {}
6962 };
6963
6964 }
6965
6966 namespace test_double_right_angle_brackets
6967 {
6968
6969 template < typename T >
6970 struct check {};
6971
6972 typedef check<void> single_type;
6973 typedef check<check<void>> double_type;
6974 typedef check<check<check<void>>> triple_type;
6975 typedef check<check<check<check<void>>>> quadruple_type;
6976
6977 }
6978
6979 namespace test_decltype
6980 {
6981
6982 int
6983 f()
6984 {
6985 int a = 1;
6986 decltype(a) b = 2;
6987 return a + b;
6988 }
6989
6990 }
6991
6992 namespace test_type_deduction
6993 {
6994
6995 template < typename T1, typename T2 >
6996 struct is_same
6997 {
6998 static const bool value = false;
6999 };
7000
7001 template < typename T >
7002 struct is_same<T, T>
7003 {
7004 static const bool value = true;
7005 };
7006
7007 template < typename T1, typename T2 >
7008 auto
7009 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7010 {
7011 return a1 + a2;
7012 }
7013
7014 int
7015 test(const int c, volatile int v)
7016 {
7017 static_assert(is_same<int, decltype(0)>::value == true, "");
7018 static_assert(is_same<int, decltype(c)>::value == false, "");
7019 static_assert(is_same<int, decltype(v)>::value == false, "");
7020 auto ac = c;
7021 auto av = v;
7022 auto sumi = ac + av + 'x';
7023 auto sumf = ac + av + 1.0;
7024 static_assert(is_same<int, decltype(ac)>::value == true, "");
7025 static_assert(is_same<int, decltype(av)>::value == true, "");
7026 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7027 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7028 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7029 return (sumf > 0.0) ? sumi : add(c, v);
7030 }
7031
7032 }
7033
7034 namespace test_noexcept
7035 {
7036
7037 int f() { return 0; }
7038 int g() noexcept { return 0; }
7039
7040 static_assert(noexcept(f()) == false, "");
7041 static_assert(noexcept(g()) == true, "");
7042
7043 }
7044
7045 namespace test_constexpr
7046 {
7047
7048 template < typename CharT >
7049 unsigned long constexpr
7050 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7051 {
7052 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7053 }
7054
7055 template < typename CharT >
7056 unsigned long constexpr
7057 strlen_c(const CharT *const s) noexcept
7058 {
7059 return strlen_c_r(s, 0UL);
7060 }
7061
7062 static_assert(strlen_c("") == 0UL, "");
7063 static_assert(strlen_c("1") == 1UL, "");
7064 static_assert(strlen_c("example") == 7UL, "");
7065 static_assert(strlen_c("another\0example") == 7UL, "");
7066
7067 }
7068
7069 namespace test_rvalue_references
7070 {
7071
7072 template < int N >
7073 struct answer
7074 {
7075 static constexpr int value = N;
7076 };
7077
7078 answer<1> f(int&) { return answer<1>(); }
7079 answer<2> f(const int&) { return answer<2>(); }
7080 answer<3> f(int&&) { return answer<3>(); }
7081
7082 void
7083 test()
7084 {
7085 int i = 0;
7086 const int c = 0;
7087 static_assert(decltype(f(i))::value == 1, "");
7088 static_assert(decltype(f(c))::value == 2, "");
7089 static_assert(decltype(f(0))::value == 3, "");
7090 }
7091
7092 }
7093
7094 namespace test_uniform_initialization
7095 {
7096
7097 struct test
7098 {
7099 static const int zero {};
7100 static const int one {1};
7101 };
7102
7103 static_assert(test::zero == 0, "");
7104 static_assert(test::one == 1, "");
7105
7106 }
7107
7108 namespace test_lambdas
7109 {
7110
7111 void
7112 test1()
7113 {
7114 auto lambda1 = [](){};
7115 auto lambda2 = lambda1;
7116 lambda1();
7117 lambda2();
7118 }
7119
7120 int
7121 test2()
7122 {
7123 auto a = [](int i, int j){ return i + j; }(1, 2);
7124 auto b = []() -> int { return '0'; }();
7125 auto c = [=](){ return a + b; }();
7126 auto d = [&](){ return c; }();
7127 auto e = [a, &b](int x) mutable {
7128 const auto identity = [](int y){ return y; };
7129 for (auto i = 0; i < a; ++i)
7130 a += b--;
7131 return x + identity(a + b);
7132 }(0);
7133 return a + b + c + d + e;
7134 }
7135
7136 int
7137 test3()
7138 {
7139 const auto nullary = [](){ return 0; };
7140 const auto unary = [](int x){ return x; };
7141 using nullary_t = decltype(nullary);
7142 using unary_t = decltype(unary);
7143 const auto higher1st = [](nullary_t f){ return f(); };
7144 const auto higher2nd = [unary](nullary_t f1){
7145 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7146 };
7147 return higher1st(nullary) + higher2nd(nullary)(unary);
7148 }
7149
7150 }
7151
7152 namespace test_variadic_templates
7153 {
7154
7155 template <int...>
7156 struct sum;
7157
7158 template <int N0, int... N1toN>
7159 struct sum<N0, N1toN...>
7160 {
7161 static constexpr auto value = N0 + sum<N1toN...>::value;
7162 };
7163
7164 template <>
7165 struct sum<>
7166 {
7167 static constexpr auto value = 0;
7168 };
7169
7170 static_assert(sum<>::value == 0, "");
7171 static_assert(sum<1>::value == 1, "");
7172 static_assert(sum<23>::value == 23, "");
7173 static_assert(sum<1, 2>::value == 3, "");
7174 static_assert(sum<5, 5, 11>::value == 21, "");
7175 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7176
7177 }
7178
7179 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7180 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7181 // because of this.
7182 namespace test_template_alias_sfinae
7183 {
7184
7185 struct foo {};
7186
7187 template<typename T>
7188 using member = typename T::member_type;
7189
7190 template<typename T>
7191 void func(...) {}
7192
7193 template<typename T>
7194 void func(member<T>*) {}
7195
7196 void test();
7197
7198 void test() { func<foo>(0); }
7199
7200 }
7201
7202 } // namespace cxx11
7203
7204 #endif // __cplusplus >= 201103L
7205
7206
7207
7208 _ACEOF
7209 if ac_fn_cxx_try_compile "$LINENO"; then :
7210 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7211 else
7212 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7217 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7218 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7219 ac_success=yes
7220 fi
7221
7222 if test x$ac_success = xno; then
7223 for alternative in ${ax_cxx_compile_alternatives}; do
7224 switch="-std=gnu++${alternative}"
7225 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7227 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7228 if eval \${$cachevar+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 ac_save_CXX="$CXX"
7232 CXX="$CXX $switch"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235
7236
7237 // If the compiler admits that it is not ready for C++11, why torture it?
7238 // Hopefully, this will speed up the test.
7239
7240 #ifndef __cplusplus
7241
7242 #error "This is not a C++ compiler"
7243
7244 #elif __cplusplus < 201103L
7245
7246 #error "This is not a C++11 compiler"
7247
7248 #else
7249
7250 namespace cxx11
7251 {
7252
7253 namespace test_static_assert
7254 {
7255
7256 template <typename T>
7257 struct check
7258 {
7259 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7260 };
7261
7262 }
7263
7264 namespace test_final_override
7265 {
7266
7267 struct Base
7268 {
7269 virtual ~Base() {}
7270 virtual void f() {}
7271 };
7272
7273 struct Derived : public Base
7274 {
7275 virtual ~Derived() override {}
7276 virtual void f() override {}
7277 };
7278
7279 }
7280
7281 namespace test_double_right_angle_brackets
7282 {
7283
7284 template < typename T >
7285 struct check {};
7286
7287 typedef check<void> single_type;
7288 typedef check<check<void>> double_type;
7289 typedef check<check<check<void>>> triple_type;
7290 typedef check<check<check<check<void>>>> quadruple_type;
7291
7292 }
7293
7294 namespace test_decltype
7295 {
7296
7297 int
7298 f()
7299 {
7300 int a = 1;
7301 decltype(a) b = 2;
7302 return a + b;
7303 }
7304
7305 }
7306
7307 namespace test_type_deduction
7308 {
7309
7310 template < typename T1, typename T2 >
7311 struct is_same
7312 {
7313 static const bool value = false;
7314 };
7315
7316 template < typename T >
7317 struct is_same<T, T>
7318 {
7319 static const bool value = true;
7320 };
7321
7322 template < typename T1, typename T2 >
7323 auto
7324 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7325 {
7326 return a1 + a2;
7327 }
7328
7329 int
7330 test(const int c, volatile int v)
7331 {
7332 static_assert(is_same<int, decltype(0)>::value == true, "");
7333 static_assert(is_same<int, decltype(c)>::value == false, "");
7334 static_assert(is_same<int, decltype(v)>::value == false, "");
7335 auto ac = c;
7336 auto av = v;
7337 auto sumi = ac + av + 'x';
7338 auto sumf = ac + av + 1.0;
7339 static_assert(is_same<int, decltype(ac)>::value == true, "");
7340 static_assert(is_same<int, decltype(av)>::value == true, "");
7341 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7342 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7343 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7344 return (sumf > 0.0) ? sumi : add(c, v);
7345 }
7346
7347 }
7348
7349 namespace test_noexcept
7350 {
7351
7352 int f() { return 0; }
7353 int g() noexcept { return 0; }
7354
7355 static_assert(noexcept(f()) == false, "");
7356 static_assert(noexcept(g()) == true, "");
7357
7358 }
7359
7360 namespace test_constexpr
7361 {
7362
7363 template < typename CharT >
7364 unsigned long constexpr
7365 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7366 {
7367 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7368 }
7369
7370 template < typename CharT >
7371 unsigned long constexpr
7372 strlen_c(const CharT *const s) noexcept
7373 {
7374 return strlen_c_r(s, 0UL);
7375 }
7376
7377 static_assert(strlen_c("") == 0UL, "");
7378 static_assert(strlen_c("1") == 1UL, "");
7379 static_assert(strlen_c("example") == 7UL, "");
7380 static_assert(strlen_c("another\0example") == 7UL, "");
7381
7382 }
7383
7384 namespace test_rvalue_references
7385 {
7386
7387 template < int N >
7388 struct answer
7389 {
7390 static constexpr int value = N;
7391 };
7392
7393 answer<1> f(int&) { return answer<1>(); }
7394 answer<2> f(const int&) { return answer<2>(); }
7395 answer<3> f(int&&) { return answer<3>(); }
7396
7397 void
7398 test()
7399 {
7400 int i = 0;
7401 const int c = 0;
7402 static_assert(decltype(f(i))::value == 1, "");
7403 static_assert(decltype(f(c))::value == 2, "");
7404 static_assert(decltype(f(0))::value == 3, "");
7405 }
7406
7407 }
7408
7409 namespace test_uniform_initialization
7410 {
7411
7412 struct test
7413 {
7414 static const int zero {};
7415 static const int one {1};
7416 };
7417
7418 static_assert(test::zero == 0, "");
7419 static_assert(test::one == 1, "");
7420
7421 }
7422
7423 namespace test_lambdas
7424 {
7425
7426 void
7427 test1()
7428 {
7429 auto lambda1 = [](){};
7430 auto lambda2 = lambda1;
7431 lambda1();
7432 lambda2();
7433 }
7434
7435 int
7436 test2()
7437 {
7438 auto a = [](int i, int j){ return i + j; }(1, 2);
7439 auto b = []() -> int { return '0'; }();
7440 auto c = [=](){ return a + b; }();
7441 auto d = [&](){ return c; }();
7442 auto e = [a, &b](int x) mutable {
7443 const auto identity = [](int y){ return y; };
7444 for (auto i = 0; i < a; ++i)
7445 a += b--;
7446 return x + identity(a + b);
7447 }(0);
7448 return a + b + c + d + e;
7449 }
7450
7451 int
7452 test3()
7453 {
7454 const auto nullary = [](){ return 0; };
7455 const auto unary = [](int x){ return x; };
7456 using nullary_t = decltype(nullary);
7457 using unary_t = decltype(unary);
7458 const auto higher1st = [](nullary_t f){ return f(); };
7459 const auto higher2nd = [unary](nullary_t f1){
7460 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7461 };
7462 return higher1st(nullary) + higher2nd(nullary)(unary);
7463 }
7464
7465 }
7466
7467 namespace test_variadic_templates
7468 {
7469
7470 template <int...>
7471 struct sum;
7472
7473 template <int N0, int... N1toN>
7474 struct sum<N0, N1toN...>
7475 {
7476 static constexpr auto value = N0 + sum<N1toN...>::value;
7477 };
7478
7479 template <>
7480 struct sum<>
7481 {
7482 static constexpr auto value = 0;
7483 };
7484
7485 static_assert(sum<>::value == 0, "");
7486 static_assert(sum<1>::value == 1, "");
7487 static_assert(sum<23>::value == 23, "");
7488 static_assert(sum<1, 2>::value == 3, "");
7489 static_assert(sum<5, 5, 11>::value == 21, "");
7490 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7491
7492 }
7493
7494 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7495 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7496 // because of this.
7497 namespace test_template_alias_sfinae
7498 {
7499
7500 struct foo {};
7501
7502 template<typename T>
7503 using member = typename T::member_type;
7504
7505 template<typename T>
7506 void func(...) {}
7507
7508 template<typename T>
7509 void func(member<T>*) {}
7510
7511 void test();
7512
7513 void test() { func<foo>(0); }
7514
7515 }
7516
7517 } // namespace cxx11
7518
7519 #endif // __cplusplus >= 201103L
7520
7521
7522
7523 _ACEOF
7524 if ac_fn_cxx_try_compile "$LINENO"; then :
7525 eval $cachevar=yes
7526 else
7527 eval $cachevar=no
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 CXX="$ac_save_CXX"
7531 fi
7532 eval ac_res=\$$cachevar
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7534 $as_echo "$ac_res" >&6; }
7535 if eval test x\$$cachevar = xyes; then
7536 CXX="$CXX $switch"
7537 if test -n "$CXXCPP" ; then
7538 CXXCPP="$CXXCPP $switch"
7539 fi
7540 ac_success=yes
7541 break
7542 fi
7543 done
7544 fi
7545
7546 if test x$ac_success = xno; then
7547 for alternative in ${ax_cxx_compile_alternatives}; do
7548 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7549 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7551 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7552 if eval \${$cachevar+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 ac_save_CXX="$CXX"
7556 CXX="$CXX $switch"
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559
7560
7561 // If the compiler admits that it is not ready for C++11, why torture it?
7562 // Hopefully, this will speed up the test.
7563
7564 #ifndef __cplusplus
7565
7566 #error "This is not a C++ compiler"
7567
7568 #elif __cplusplus < 201103L
7569
7570 #error "This is not a C++11 compiler"
7571
7572 #else
7573
7574 namespace cxx11
7575 {
7576
7577 namespace test_static_assert
7578 {
7579
7580 template <typename T>
7581 struct check
7582 {
7583 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7584 };
7585
7586 }
7587
7588 namespace test_final_override
7589 {
7590
7591 struct Base
7592 {
7593 virtual ~Base() {}
7594 virtual void f() {}
7595 };
7596
7597 struct Derived : public Base
7598 {
7599 virtual ~Derived() override {}
7600 virtual void f() override {}
7601 };
7602
7603 }
7604
7605 namespace test_double_right_angle_brackets
7606 {
7607
7608 template < typename T >
7609 struct check {};
7610
7611 typedef check<void> single_type;
7612 typedef check<check<void>> double_type;
7613 typedef check<check<check<void>>> triple_type;
7614 typedef check<check<check<check<void>>>> quadruple_type;
7615
7616 }
7617
7618 namespace test_decltype
7619 {
7620
7621 int
7622 f()
7623 {
7624 int a = 1;
7625 decltype(a) b = 2;
7626 return a + b;
7627 }
7628
7629 }
7630
7631 namespace test_type_deduction
7632 {
7633
7634 template < typename T1, typename T2 >
7635 struct is_same
7636 {
7637 static const bool value = false;
7638 };
7639
7640 template < typename T >
7641 struct is_same<T, T>
7642 {
7643 static const bool value = true;
7644 };
7645
7646 template < typename T1, typename T2 >
7647 auto
7648 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7649 {
7650 return a1 + a2;
7651 }
7652
7653 int
7654 test(const int c, volatile int v)
7655 {
7656 static_assert(is_same<int, decltype(0)>::value == true, "");
7657 static_assert(is_same<int, decltype(c)>::value == false, "");
7658 static_assert(is_same<int, decltype(v)>::value == false, "");
7659 auto ac = c;
7660 auto av = v;
7661 auto sumi = ac + av + 'x';
7662 auto sumf = ac + av + 1.0;
7663 static_assert(is_same<int, decltype(ac)>::value == true, "");
7664 static_assert(is_same<int, decltype(av)>::value == true, "");
7665 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7666 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7667 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7668 return (sumf > 0.0) ? sumi : add(c, v);
7669 }
7670
7671 }
7672
7673 namespace test_noexcept
7674 {
7675
7676 int f() { return 0; }
7677 int g() noexcept { return 0; }
7678
7679 static_assert(noexcept(f()) == false, "");
7680 static_assert(noexcept(g()) == true, "");
7681
7682 }
7683
7684 namespace test_constexpr
7685 {
7686
7687 template < typename CharT >
7688 unsigned long constexpr
7689 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7690 {
7691 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7692 }
7693
7694 template < typename CharT >
7695 unsigned long constexpr
7696 strlen_c(const CharT *const s) noexcept
7697 {
7698 return strlen_c_r(s, 0UL);
7699 }
7700
7701 static_assert(strlen_c("") == 0UL, "");
7702 static_assert(strlen_c("1") == 1UL, "");
7703 static_assert(strlen_c("example") == 7UL, "");
7704 static_assert(strlen_c("another\0example") == 7UL, "");
7705
7706 }
7707
7708 namespace test_rvalue_references
7709 {
7710
7711 template < int N >
7712 struct answer
7713 {
7714 static constexpr int value = N;
7715 };
7716
7717 answer<1> f(int&) { return answer<1>(); }
7718 answer<2> f(const int&) { return answer<2>(); }
7719 answer<3> f(int&&) { return answer<3>(); }
7720
7721 void
7722 test()
7723 {
7724 int i = 0;
7725 const int c = 0;
7726 static_assert(decltype(f(i))::value == 1, "");
7727 static_assert(decltype(f(c))::value == 2, "");
7728 static_assert(decltype(f(0))::value == 3, "");
7729 }
7730
7731 }
7732
7733 namespace test_uniform_initialization
7734 {
7735
7736 struct test
7737 {
7738 static const int zero {};
7739 static const int one {1};
7740 };
7741
7742 static_assert(test::zero == 0, "");
7743 static_assert(test::one == 1, "");
7744
7745 }
7746
7747 namespace test_lambdas
7748 {
7749
7750 void
7751 test1()
7752 {
7753 auto lambda1 = [](){};
7754 auto lambda2 = lambda1;
7755 lambda1();
7756 lambda2();
7757 }
7758
7759 int
7760 test2()
7761 {
7762 auto a = [](int i, int j){ return i + j; }(1, 2);
7763 auto b = []() -> int { return '0'; }();
7764 auto c = [=](){ return a + b; }();
7765 auto d = [&](){ return c; }();
7766 auto e = [a, &b](int x) mutable {
7767 const auto identity = [](int y){ return y; };
7768 for (auto i = 0; i < a; ++i)
7769 a += b--;
7770 return x + identity(a + b);
7771 }(0);
7772 return a + b + c + d + e;
7773 }
7774
7775 int
7776 test3()
7777 {
7778 const auto nullary = [](){ return 0; };
7779 const auto unary = [](int x){ return x; };
7780 using nullary_t = decltype(nullary);
7781 using unary_t = decltype(unary);
7782 const auto higher1st = [](nullary_t f){ return f(); };
7783 const auto higher2nd = [unary](nullary_t f1){
7784 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7785 };
7786 return higher1st(nullary) + higher2nd(nullary)(unary);
7787 }
7788
7789 }
7790
7791 namespace test_variadic_templates
7792 {
7793
7794 template <int...>
7795 struct sum;
7796
7797 template <int N0, int... N1toN>
7798 struct sum<N0, N1toN...>
7799 {
7800 static constexpr auto value = N0 + sum<N1toN...>::value;
7801 };
7802
7803 template <>
7804 struct sum<>
7805 {
7806 static constexpr auto value = 0;
7807 };
7808
7809 static_assert(sum<>::value == 0, "");
7810 static_assert(sum<1>::value == 1, "");
7811 static_assert(sum<23>::value == 23, "");
7812 static_assert(sum<1, 2>::value == 3, "");
7813 static_assert(sum<5, 5, 11>::value == 21, "");
7814 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7815
7816 }
7817
7818 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7819 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7820 // because of this.
7821 namespace test_template_alias_sfinae
7822 {
7823
7824 struct foo {};
7825
7826 template<typename T>
7827 using member = typename T::member_type;
7828
7829 template<typename T>
7830 void func(...) {}
7831
7832 template<typename T>
7833 void func(member<T>*) {}
7834
7835 void test();
7836
7837 void test() { func<foo>(0); }
7838
7839 }
7840
7841 } // namespace cxx11
7842
7843 #endif // __cplusplus >= 201103L
7844
7845
7846
7847 _ACEOF
7848 if ac_fn_cxx_try_compile "$LINENO"; then :
7849 eval $cachevar=yes
7850 else
7851 eval $cachevar=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 CXX="$ac_save_CXX"
7855 fi
7856 eval ac_res=\$$cachevar
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7858 $as_echo "$ac_res" >&6; }
7859 if eval test x\$$cachevar = xyes; then
7860 CXX="$CXX $switch"
7861 if test -n "$CXXCPP" ; then
7862 CXXCPP="$CXXCPP $switch"
7863 fi
7864 ac_success=yes
7865 break
7866 fi
7867 done
7868 if test x$ac_success = xyes; then
7869 break
7870 fi
7871 done
7872 fi
7873 CXX_FOR_BUILD="$CXX"
7874 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7875 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7876 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7877 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7878 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7879 ac_ext=c
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884
7885 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7886 if test x$ac_success = xno; then
7887 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7888 fi
7889 fi
7890 if test x$ac_success = xno; then
7891 HAVE_CXX11_FOR_BUILD=0
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7893 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7894 else
7895 HAVE_CXX11_FOR_BUILD=1
7896
7897 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7898
7899 fi
7900
7901
7902 fi
7903 fi
7904
7905 # Check whether --enable-pgo-build was given.
7906 if test "${enable_pgo_build+set}" = set; then :
7907 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7908 else
7909 enable_pgo_build=no
7910 fi
7911
7912
7913 # Issue errors and warnings for invalid/strange PGO build combinations.
7914 case "$have_compiler:$host:$target:$enable_pgo_build" in
7915 *:*:*:no) ;;
7916
7917 # Allow the PGO build only if we aren't building a compiler and
7918 # we are in a native configuration.
7919 no:$build:$build:yes | no:$build:$build:lto) ;;
7920
7921 # Disallow the PGO bootstrap if we are building a compiler.
7922 yes:*:*:yes | yes:*:*:lto)
7923 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7924
7925 *)
7926 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7927 ;;
7928 esac
7929
7930 if test "$enable_pgo_build" != "no"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7932 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7933 old_CFLAGS="$CFLAGS"
7934 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7935 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7936
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int foo;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942
7943 else
7944 PGO_BUILD_GEN_CFLAGS=
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 CFLAGS="$old_CFLAGS"
7948 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950 $as_echo "yes" >&6; }
7951 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7956 fi
7957
7958 if test "$enable_pgo_build" = "lto"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7960 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7961 old_CFLAGS="$CFLAGS"
7962 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7963 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 int foo;
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969
7970 else
7971 PGO_BUILD_LTO_CFLAGS=
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 CFLAGS="$old_CFLAGS"
7975 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977 $as_echo "yes" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7982 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7983 fi
7984 fi
7985 fi
7986
7987
7988
7989
7990 # Used for setting $lt_cv_objdir
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7992 $as_echo_n "checking for objdir... " >&6; }
7993 if ${lt_cv_objdir+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 rm -f .libs 2>/dev/null
7997 mkdir .libs 2>/dev/null
7998 if test -d .libs; then
7999 lt_cv_objdir=.libs
8000 else
8001 # MS-DOS does not allow filenames that begin with a dot.
8002 lt_cv_objdir=_libs
8003 fi
8004 rmdir .libs 2>/dev/null
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8007 $as_echo "$lt_cv_objdir" >&6; }
8008 objdir=$lt_cv_objdir
8009
8010
8011
8012
8013
8014 cat >>confdefs.h <<_ACEOF
8015 #define LT_OBJDIR "$lt_cv_objdir/"
8016 _ACEOF
8017
8018
8019
8020 # Check for GMP, MPFR and MPC
8021 gmplibs="-lmpc -lmpfr -lgmp"
8022 gmpinc=
8023 have_gmp=no
8024
8025 # Specify a location for mpc
8026 # check for this first so it ends up on the link line before mpfr.
8027
8028 # Check whether --with-mpc was given.
8029 if test "${with_mpc+set}" = set; then :
8030 withval=$with_mpc;
8031 fi
8032
8033
8034 # Check whether --with-mpc-include was given.
8035 if test "${with_mpc_include+set}" = set; then :
8036 withval=$with_mpc_include;
8037 fi
8038
8039
8040 # Check whether --with-mpc-lib was given.
8041 if test "${with_mpc_lib+set}" = set; then :
8042 withval=$with_mpc_lib;
8043 fi
8044
8045
8046 if test "x$with_mpc" != x; then
8047 gmplibs="-L$with_mpc/lib $gmplibs"
8048 gmpinc="-I$with_mpc/include $gmpinc"
8049 fi
8050 if test "x$with_mpc_include" != x; then
8051 gmpinc="-I$with_mpc_include $gmpinc"
8052 fi
8053 if test "x$with_mpc_lib" != x; then
8054 gmplibs="-L$with_mpc_lib $gmplibs"
8055 fi
8056 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8057 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8058 gmpinc='-I$$s/mpc/src '"$gmpinc"
8059 # Do not test the mpc version. Assume that it is sufficient, since
8060 # it is in the source tree, and the library has not been built yet
8061 # but it would be included on the link line in the version check below
8062 # hence making the test fail.
8063 have_gmp=yes
8064 fi
8065
8066 # Specify a location for mpfr
8067 # check for this first so it ends up on the link line before gmp.
8068
8069 # Check whether --with-mpfr was given.
8070 if test "${with_mpfr+set}" = set; then :
8071 withval=$with_mpfr;
8072 fi
8073
8074
8075 # Check whether --with-mpfr-include was given.
8076 if test "${with_mpfr_include+set}" = set; then :
8077 withval=$with_mpfr_include;
8078 fi
8079
8080
8081 # Check whether --with-mpfr-lib was given.
8082 if test "${with_mpfr_lib+set}" = set; then :
8083 withval=$with_mpfr_lib;
8084 fi
8085
8086
8087 if test "x$with_mpfr" != x; then
8088 gmplibs="-L$with_mpfr/lib $gmplibs"
8089 gmpinc="-I$with_mpfr/include $gmpinc"
8090 fi
8091 if test "x$with_mpfr_include" != x; then
8092 gmpinc="-I$with_mpfr_include $gmpinc"
8093 fi
8094 if test "x$with_mpfr_lib" != x; then
8095 gmplibs="-L$with_mpfr_lib $gmplibs"
8096 fi
8097 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8098 # MPFR v3.1.0 moved the sources into a src sub-directory.
8099 if ! test -d ${srcdir}/mpfr/src; then
8100 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8101 fi
8102 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8103 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8104 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8105 # Do not test the mpfr version. Assume that it is sufficient, since
8106 # it is in the source tree, and the library has not been built yet
8107 # but it would be included on the link line in the version check below
8108 # hence making the test fail.
8109 have_gmp=yes
8110 fi
8111
8112 # Specify a location for gmp
8113
8114 # Check whether --with-gmp was given.
8115 if test "${with_gmp+set}" = set; then :
8116 withval=$with_gmp;
8117 fi
8118
8119
8120 # Check whether --with-gmp-include was given.
8121 if test "${with_gmp_include+set}" = set; then :
8122 withval=$with_gmp_include;
8123 fi
8124
8125
8126 # Check whether --with-gmp-lib was given.
8127 if test "${with_gmp_lib+set}" = set; then :
8128 withval=$with_gmp_lib;
8129 fi
8130
8131
8132
8133 if test "x$with_gmp" != x; then
8134 gmplibs="-L$with_gmp/lib $gmplibs"
8135 gmpinc="-I$with_gmp/include $gmpinc"
8136 fi
8137 if test "x$with_gmp_include" != x; then
8138 gmpinc="-I$with_gmp_include $gmpinc"
8139 fi
8140 if test "x$with_gmp_lib" != x; then
8141 gmplibs="-L$with_gmp_lib $gmplibs"
8142 fi
8143 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8144 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8145 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8146 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8147 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8148 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8149 # Do not test the gmp version. Assume that it is sufficient, since
8150 # it is in the source tree, and the library has not been built yet
8151 # but it would be included on the link line in the version check below
8152 # hence making the test fail.
8153 have_gmp=yes
8154 fi
8155
8156 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8157 have_gmp=yes
8158 saved_CFLAGS="$CFLAGS"
8159 CFLAGS="$CFLAGS $gmpinc"
8160 # Check for the recommended and required versions of GMP.
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8162 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165 #include "gmp.h"
8166 int
8167 main ()
8168 {
8169
8170 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8171 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8172 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8173 choke me
8174 #endif
8175
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <gmp.h>
8184 int
8185 main ()
8186 {
8187
8188 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8189 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8190 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8191 choke me
8192 #endif
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8200 $as_echo "yes" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8203 $as_echo "buggy but acceptable" >&6; }
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }; have_gmp=no
8209 fi
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211
8212 # If we have GMP, check the MPFR version.
8213 if test x"$have_gmp" = xyes; then
8214 # Check for the recommended and required versions of MPFR.
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8216 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <gmp.h>
8220 #include <mpfr.h>
8221 int
8222 main ()
8223 {
8224
8225 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8226 choke me
8227 #endif
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_compile "$LINENO"; then :
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <gmp.h>
8237 #include <mpfr.h>
8238 int
8239 main ()
8240 {
8241
8242 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8243 choke me
8244 #endif
8245
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252 $as_echo "yes" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8255 $as_echo "buggy but acceptable" >&6; }
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }; have_gmp=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264
8265 # Check for the MPC header version.
8266 if test x"$have_gmp" = xyes ; then
8267 # Check for the recommended and required versions of MPC.
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8269 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 #include <mpc.h>
8273 int
8274 main ()
8275 {
8276
8277 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8278 choke me
8279 #endif
8280
8281 ;
8282 return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_compile "$LINENO"; then :
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 #include <mpc.h>
8289 int
8290 main ()
8291 {
8292
8293 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8294 choke me
8295 #endif
8296
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8303 $as_echo "yes" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8306 $as_echo "buggy but acceptable" >&6; }
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }; have_gmp=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 fi
8315
8316 # Now check the MPFR library.
8317 if test x"$have_gmp" = xyes; then
8318 saved_LIBS="$LIBS"
8319 LIBS="$LIBS $gmplibs"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8321 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <mpc.h>
8325 int
8326 main ()
8327 {
8328
8329 mpfr_t n;
8330 mpfr_t x;
8331 mpc_t c;
8332 int t;
8333 mpfr_init (n);
8334 mpfr_init (x);
8335 mpfr_atan2 (n, n, x, MPFR_RNDN);
8336 mpfr_erfc (n, x, MPFR_RNDN);
8337 mpfr_subnormalize (x, t, MPFR_RNDN);
8338 mpfr_clear(n);
8339 mpfr_clear(x);
8340 mpc_init2 (c, 53);
8341 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8342 mpc_cosh (c, c, MPC_RNDNN);
8343 mpc_pow (c, c, c, MPC_RNDNN);
8344 mpc_acosh (c, c, MPC_RNDNN);
8345 mpc_clear (c);
8346
8347 ;
8348 return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_link "$LINENO"; then :
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }; have_gmp=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext \
8359 conftest$ac_exeext conftest.$ac_ext
8360 LIBS="$saved_LIBS"
8361 fi
8362
8363 CFLAGS="$saved_CFLAGS"
8364
8365 # The library versions listed in the error message below should match
8366 # the HARD-minimums enforced above.
8367 if test x$have_gmp != xyes; then
8368 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8369 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8370 their locations. Source code for these libraries can be found at
8371 their respective hosting sites as well as at
8372 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8373 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8374 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8375 make sure that you have installed both the libraries and the header
8376 files. They may be located in separate packages." "$LINENO" 5
8377 fi
8378 fi
8379
8380 # Flags needed for both GMP, MPFR and/or MPC.
8381
8382
8383
8384
8385
8386
8387
8388 # Libraries to use for stage1 or when not bootstrapping.
8389
8390 # Check whether --with-stage1-libs was given.
8391 if test "${with_stage1_libs+set}" = set; then :
8392 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8393 stage1_libs=
8394 else
8395 stage1_libs=$withval
8396 fi
8397 else
8398 stage1_libs=
8399 fi
8400
8401
8402
8403 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8404 # default is yes if gcc is being built; no otherwise. The reason for
8405 # this default is that gdb is sometimes linked against GNU Source
8406 # Highlight, which is a shared library that uses C++ exceptions. In
8407 # this case, -static-libstdc++ will cause crashes.
8408
8409 # Check whether --with-static-standard-libraries was given.
8410 if test "${with_static_standard_libraries+set}" = set; then :
8411 withval=$with_static_standard_libraries;
8412 else
8413 with_static_standard_libraries=auto
8414 fi
8415
8416 if test "$with_static_standard_libraries" = auto; then
8417 with_static_standard_libraries=$have_compiler
8418 fi
8419
8420 # Linker flags to use for stage1 or when not bootstrapping.
8421
8422 # Check whether --with-stage1-ldflags was given.
8423 if test "${with_stage1_ldflags+set}" = set; then :
8424 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8425 stage1_ldflags=
8426 else
8427 stage1_ldflags=$withval
8428 fi
8429 else
8430 stage1_ldflags=
8431 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8432 # if supported. But if the user explicitly specified the libraries to use,
8433 # trust that they are doing what they want.
8434 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8435 -a "$have_static_libs" = yes; then
8436 stage1_ldflags="-static-libstdc++ -static-libgcc"
8437 fi
8438 fi
8439
8440
8441
8442 # Libraries to use for stage2 and later builds.
8443
8444 # Check whether --with-boot-libs was given.
8445 if test "${with_boot_libs+set}" = set; then :
8446 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8447 poststage1_libs=
8448 else
8449 poststage1_libs=$withval
8450 fi
8451 else
8452 poststage1_libs=
8453 fi
8454
8455
8456
8457 # Linker flags to use for stage2 and later builds.
8458
8459 # Check whether --with-boot-ldflags was given.
8460 if test "${with_boot_ldflags+set}" = set; then :
8461 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8462 poststage1_ldflags=
8463 else
8464 poststage1_ldflags=$withval
8465 fi
8466 else
8467 poststage1_ldflags=
8468 # In stages 2 and 3, default to linking libstdc++ and libgcc
8469 # statically. But if the user explicitly specified the libraries to
8470 # use, trust that they are doing what they want.
8471 if test "$poststage1_libs" = ""; then
8472 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8473 fi
8474 fi
8475
8476
8477
8478 # GCC GRAPHITE dependency isl.
8479 # Basic setup is inlined here, actual checks are in config/isl.m4
8480
8481
8482 # Check whether --with-isl was given.
8483 if test "${with_isl+set}" = set; then :
8484 withval=$with_isl;
8485 fi
8486
8487
8488 # Treat --without-isl as a request to disable
8489 # GRAPHITE support and skip all following checks.
8490 if test "x$with_isl" != "xno"; then
8491 # Check for isl
8492
8493
8494 # Check whether --with-isl-include was given.
8495 if test "${with_isl_include+set}" = set; then :
8496 withval=$with_isl_include;
8497 fi
8498
8499
8500 # Check whether --with-isl-lib was given.
8501 if test "${with_isl_lib+set}" = set; then :
8502 withval=$with_isl_lib;
8503 fi
8504
8505
8506 # Check whether --enable-isl-version-check was given.
8507 if test "${enable_isl_version_check+set}" = set; then :
8508 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8509 else
8510 ENABLE_ISL_CHECK=yes
8511 fi
8512
8513
8514 # Initialize isllibs and islinc.
8515 case $with_isl in
8516 no)
8517 isllibs=
8518 islinc=
8519 ;;
8520 "" | yes)
8521 ;;
8522 *)
8523 isllibs="-L$with_isl/lib"
8524 islinc="-I$with_isl/include"
8525 ;;
8526 esac
8527 if test "x${with_isl_include}" != x ; then
8528 islinc="-I$with_isl_include"
8529 fi
8530 if test "x${with_isl_lib}" != x; then
8531 isllibs="-L$with_isl_lib"
8532 fi
8533 if test "x${islinc}" = x && test "x${isllibs}" = x \
8534 && test -d ${srcdir}/isl; then
8535 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8536 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8537 ENABLE_ISL_CHECK=no
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8539 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8540 fi
8541
8542 isllibs="${isllibs} -lisl"
8543
8544
8545
8546 if test "${ENABLE_ISL_CHECK}" = yes ; then
8547 _isl_saved_CFLAGS=$CFLAGS
8548 _isl_saved_LDFLAGS=$LDFLAGS
8549 _isl_saved_LIBS=$LIBS
8550
8551 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8552 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8553 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8556 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <isl/schedule.h>
8560 int
8561 main ()
8562 {
8563 isl_options_set_schedule_serialize_sccs (NULL, 0);
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 gcc_cv_isl=yes
8570 else
8571 gcc_cv_isl=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8576 $as_echo "$gcc_cv_isl" >&6; }
8577
8578 if test "${gcc_cv_isl}" = no ; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8580 $as_echo "required isl version is 0.15 or later" >&6; }
8581 fi
8582
8583 CFLAGS=$_isl_saved_CFLAGS
8584 LDFLAGS=$_isl_saved_LDFLAGS
8585 LIBS=$_isl_saved_LIBS
8586 fi
8587
8588
8589
8590
8591
8592
8593 if test "x${with_isl}" = xno; then
8594 graphite_requested=no
8595 elif test "x${with_isl}" != x \
8596 || test "x${with_isl_include}" != x \
8597 || test "x${with_isl_lib}" != x ; then
8598 graphite_requested=yes
8599 else
8600 graphite_requested=no
8601 fi
8602
8603
8604
8605 if test "${gcc_cv_isl}" = no ; then
8606 isllibs=
8607 islinc=
8608 fi
8609
8610 if test "${graphite_requested}" = yes \
8611 && test "x${isllibs}" = x \
8612 && test "x${islinc}" = x ; then
8613
8614 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8615 fi
8616
8617
8618 fi
8619
8620 # If the isl check failed, disable builds of in-tree variant of isl
8621 if test "x$with_isl" = xno ||
8622 test "x$gcc_cv_isl" = xno; then
8623 noconfigdirs="$noconfigdirs isl"
8624 islinc=
8625 fi
8626
8627
8628
8629
8630 # Check for LTO support.
8631 # Check whether --enable-lto was given.
8632 if test "${enable_lto+set}" = set; then :
8633 enableval=$enable_lto; enable_lto=$enableval
8634 else
8635 enable_lto=yes; default_enable_lto=yes
8636 fi
8637
8638
8639
8640
8641
8642 target_elf=no
8643 case $target in
8644 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8645 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8646 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8647 nvptx-*-none)
8648 target_elf=no
8649 ;;
8650 *)
8651 target_elf=yes
8652 ;;
8653 esac
8654
8655 if test $target_elf = yes; then :
8656 # ELF platforms build the lto-plugin always.
8657 build_lto_plugin=yes
8658
8659 else
8660 if test x"$default_enable_lto" = x"yes" ; then
8661 case $target in
8662 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8663 # On other non-ELF platforms, LTO has yet to be validated.
8664 *) enable_lto=no ;;
8665 esac
8666 else
8667 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8668 # It would also be nice to check the binutils support, but we don't
8669 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8670 # warn during gcc/ subconfigure; unless you're bootstrapping with
8671 # -flto it won't be needed until after installation anyway.
8672 case $target in
8673 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8674 *) if test x"$enable_lto" = x"yes"; then
8675 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8676 fi
8677 ;;
8678 esac
8679 fi
8680 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8681 # Build it unless LTO was explicitly disabled.
8682 case $target in
8683 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8684 *) ;;
8685 esac
8686
8687 fi
8688
8689
8690 # Check whether --enable-linker-plugin-configure-flags was given.
8691 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8692 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8693 else
8694 extra_linker_plugin_configure_flags=
8695 fi
8696
8697
8698 # Check whether --enable-linker-plugin-flags was given.
8699 if test "${enable_linker_plugin_flags+set}" = set; then :
8700 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8701 else
8702 extra_linker_plugin_flags=
8703 fi
8704
8705
8706
8707 # Enable --enable-host-shared.
8708 # Checked early to determine whether jit is an 'all' language
8709 # Check whether --enable-host-shared was given.
8710 if test "${enable_host_shared+set}" = set; then :
8711 enableval=$enable_host_shared; host_shared=$enableval
8712 case $host in
8713 x86_64-*-darwin* | aarch64-*-darwin*)
8714 if test x$host_shared != xyes ; then
8715 # PIC is the default, and actually cannot be switched off.
8716 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8717 host_shared=yes
8718 fi ;;
8719 *) ;;
8720 esac
8721 else
8722 case $host in
8723 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8724 *) host_shared=no ;;
8725 esac
8726 fi
8727
8728
8729
8730 # By default, C and C++ are the only stage 1 languages.
8731 stage1_languages=,c,
8732
8733 # Target libraries that we bootstrap.
8734 bootstrap_target_libs=,target-libgcc,
8735
8736 # Figure out what language subdirectories are present.
8737 # Look if the user specified --enable-languages="..."; if not, use
8738 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8739 # go away some day.
8740 # NB: embedded tabs in this IF block -- do not untabify
8741 if test -d ${srcdir}/gcc; then
8742 if test x"${enable_languages+set}" != xset; then
8743 if test x"${LANGUAGES+set}" = xset; then
8744 enable_languages="${LANGUAGES}"
8745 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8746 else
8747 enable_languages=default
8748 fi
8749 else
8750 if test x"${enable_languages}" = x ||
8751 test x"${enable_languages}" = xyes;
8752 then
8753 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8754 exit 1
8755 fi
8756 fi
8757 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8758
8759 # 'f95' is the old name for the 'fortran' language. We issue a warning
8760 # and make the substitution.
8761 case ,${enable_languages}, in
8762 *,f95,*)
8763 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8764 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8765 ;;
8766 esac
8767
8768 # If bootstrapping, C++ must be enabled.
8769 case ",$enable_languages,:$enable_bootstrap" in
8770 *,c++,*:*) ;;
8771 *:yes)
8772 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8773 enable_languages="${enable_languages},c++"
8774 else
8775 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8776 fi
8777 ;;
8778 esac
8779
8780 # First scan to see if an enabled language requires some other language.
8781 # We assume that a given config-lang.in will list all the language
8782 # front ends it requires, even if some are required indirectly.
8783 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8784 case ${lang_frag} in
8785 ..) ;;
8786 # The odd quoting in the next line works around
8787 # an apparent bug in bash 1.12 on linux.
8788 ${srcdir}/gcc/[*]/config-lang.in) ;;
8789 *)
8790 # From the config-lang.in, get $language, $lang_requires, and
8791 # $lang_requires_boot_languages.
8792 language=
8793 lang_requires=
8794 lang_requires_boot_languages=
8795 # set srcdir during sourcing lang_frag to the gcc dir.
8796 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8797 # polutes this shell
8798 saved_srcdir=${srcdir}
8799 srcdir=${srcdir}/gcc . ${lang_frag}
8800 srcdir=${saved_srcdir}
8801 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8802 case ,${enable_languages}, in
8803 *,$other,*) ;;
8804 *,default,*) ;;
8805 *,all,*) ;;
8806 *,$language,*)
8807 echo " \`$other' language required by \`$language'; enabling" 1>&2
8808 enable_languages="${enable_languages},${other}"
8809 ;;
8810 esac
8811 done
8812 for other in ${lang_requires_boot_languages} ; do
8813 if test "$other" != "c"; then
8814 case ,${enable_stage1_languages}, in
8815 *,$other,*) ;;
8816 *,default,*) ;;
8817 *,all,*) ;;
8818 *)
8819 case ,${enable_languages}, in
8820 *,$language,*)
8821 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8822 enable_stage1_languages="$enable_stage1_languages,${other}"
8823 ;;
8824 esac
8825 ;;
8826 esac
8827 fi
8828 done
8829 ;;
8830 esac
8831 done
8832
8833 new_enable_languages=,c,
8834
8835 # If LTO is enabled, add the LTO front end.
8836 if test "$enable_lto" = "yes" ; then
8837 case ,${enable_languages}, in
8838 *,lto,*) ;;
8839 *) enable_languages="${enable_languages},lto" ;;
8840 esac
8841 if test "${build_lto_plugin}" = "yes" ; then
8842 configdirs="$configdirs lto-plugin"
8843 fi
8844 fi
8845
8846 # If we're building an offloading compiler, add the LTO front end.
8847 if test x"$enable_as_accelerator_for" != x ; then
8848 case ,${enable_languages}, in
8849 *,lto,*) ;;
8850 *) enable_languages="${enable_languages},lto" ;;
8851 esac
8852 fi
8853
8854 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8855 potential_languages=,c,
8856
8857 enabled_target_libs=
8858 disabled_target_libs=
8859
8860 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8861 case ${lang_frag} in
8862 ..) ;;
8863 # The odd quoting in the next line works around
8864 # an apparent bug in bash 1.12 on linux.
8865 ${srcdir}/gcc/[*]/config-lang.in) ;;
8866 *)
8867 # From the config-lang.in, get $language, $target_libs,
8868 # $lang_dirs, $boot_language, and $build_by_default
8869 language=
8870 target_libs=
8871 lang_dirs=
8872 subdir_requires=
8873 boot_language=no
8874 build_by_default=yes
8875 # set srcdir during sourcing. See above about save & restore
8876 saved_srcdir=${srcdir}
8877 srcdir=${srcdir}/gcc . ${lang_frag}
8878 srcdir=${saved_srcdir}
8879 if test x${language} = x; then
8880 echo "${lang_frag} doesn't set \$language." 1>&2
8881 exit 1
8882 fi
8883
8884 if test "$language" = "c++"; then
8885 boot_language=yes
8886 fi
8887
8888 add_this_lang=no
8889 # C is always enabled, so no need to add it again
8890 if test "$language" != "c"; then
8891 case ,${enable_languages}, in
8892 *,${language},*)
8893 # Language was explicitly selected; include it
8894 add_this_lang=yes
8895 ;;
8896 *,all,*)
8897 # All languages are enabled
8898 add_this_lang=all
8899 ;;
8900 *,default,*)
8901 # 'default' was selected, select it if it is a default language
8902 add_this_lang=${build_by_default}
8903 ;;
8904 esac
8905 fi
8906
8907 # Disable languages that need other directories if these aren't available.
8908 for i in $subdir_requires; do
8909 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8910 case ${add_this_lang} in
8911 yes)
8912 # Specifically requested language; tell them.
8913 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8914 ;;
8915 all)
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8917 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8918 add_this_lang=unsupported
8919 ;;
8920 *)
8921 # Silently disable.
8922 add_this_lang=unsupported
8923 ;;
8924 esac
8925 done
8926
8927 # Disable Ada if no preexisting GNAT is available.
8928 case ${add_this_lang}:${language}:${have_gnat} in
8929 yes:ada:no)
8930 # Specifically requested language; tell them.
8931 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8932 ;;
8933 all:ada:no)
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8935 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8936 add_this_lang=unsupported
8937 ;;
8938 *:ada:no)
8939 # Silently disable.
8940 add_this_lang=unsupported
8941 ;;
8942 esac
8943
8944 # Disable D if no preexisting GDC is available.
8945 case ${add_this_lang}:${language}:${have_gdc} in
8946 yes:d:no)
8947 # Specifically requested language; tell them.
8948 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8949 ;;
8950 all:d:no)
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8952 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8953 add_this_lang=unsupported
8954 ;;
8955 *:d:no)
8956 # Silently disable.
8957 add_this_lang=unsupported
8958 ;;
8959 esac
8960
8961 # Disable jit if -enable-host-shared not specified
8962 # but not if building for Mingw. All code in Windows
8963 # is position independent code (PIC).
8964 case $target in
8965 *mingw*) ;;
8966 *)
8967 case ${add_this_lang}:${language}:${host_shared} in
8968 yes:jit:no)
8969 # PR jit/64780: explicitly specify --enable-host-shared
8970 as_fn_error $? "
8971 Enabling language \"jit\" requires --enable-host-shared.
8972
8973 --enable-host-shared typically slows the rest of the compiler down by
8974 a few %, so you must explicitly enable it.
8975
8976 If you want to build both the jit and the regular compiler, it is often
8977 best to do this via two separate configure/builds, in separate
8978 directories, to avoid imposing the performance cost of
8979 --enable-host-shared on the regular compiler." "$LINENO" 5
8980 ;;
8981 all:jit:no)
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8983 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8984 add_this_lang=unsupported
8985 ;;
8986 *:jit:no)
8987 # Silently disable.
8988 add_this_lang=unsupported
8989 ;;
8990 esac
8991 ;;
8992 esac
8993
8994 # Disable a language that is unsupported by the target.
8995 case "${add_this_lang}: $unsupported_languages " in
8996 no:*) ;;
8997 unsupported:*) ;;
8998 *:*" $language "*)
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9000 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9001 add_this_lang=unsupported
9002 ;;
9003 esac
9004
9005 case $add_this_lang in
9006 unsupported)
9007 # Remove language-dependent dirs.
9008 disabled_target_libs="$disabled_target_libs $target_libs"
9009 noconfigdirs="$noconfigdirs $lang_dirs"
9010 ;;
9011 no)
9012 # Remove language-dependent dirs; still show language as supported.
9013 disabled_target_libs="$disabled_target_libs $target_libs"
9014 noconfigdirs="$noconfigdirs $lang_dirs"
9015 potential_languages="${potential_languages}${language},"
9016 ;;
9017 all|yes)
9018 new_enable_languages="${new_enable_languages}${language},"
9019 potential_languages="${potential_languages}${language},"
9020 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9021 enabled_target_libs="$enabled_target_libs $target_libs"
9022 case "${boot_language}:,$enable_stage1_languages," in
9023 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9024 # Add to (comma-separated) list of stage 1 languages.
9025 case ",$stage1_languages," in
9026 *,$language,* | ,yes, | ,all,) ;;
9027 *) stage1_languages="${stage1_languages}${language}," ;;
9028 esac
9029 # We need to bootstrap any supporting libraries.
9030 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9031 ;;
9032 esac
9033 ;;
9034 esac
9035 ;;
9036 esac
9037 done
9038
9039 # Add target libraries which are only needed for disabled languages
9040 # to noconfigdirs.
9041 if test -n "$disabled_target_libs"; then
9042 for dir in $disabled_target_libs; do
9043 case " $enabled_target_libs " in
9044 *" ${dir} "*) ;;
9045 *) noconfigdirs="$noconfigdirs $dir" ;;
9046 esac
9047 done
9048 fi
9049
9050 # Check whether --enable-stage1-languages was given.
9051 if test "${enable_stage1_languages+set}" = set; then :
9052 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9053 ,no,|,,)
9054 # Set it to something that will have no effect in the loop below
9055 enable_stage1_languages=c ;;
9056 ,yes,)
9057 enable_stage1_languages=`echo $new_enable_languages | \
9058 sed -e "s/^,//" -e "s/,$//" ` ;;
9059 *,all,*)
9060 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9061 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9062 esac
9063
9064 # Add "good" languages from enable_stage1_languages to stage1_languages,
9065 # while "bad" languages go in missing_languages. Leave no duplicates.
9066 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9067 case $potential_languages in
9068 *,$i,*)
9069 case $stage1_languages in
9070 *,$i,*) ;;
9071 *) stage1_languages="$stage1_languages$i," ;;
9072 esac ;;
9073 *)
9074 case $missing_languages in
9075 *,$i,*) ;;
9076 *) missing_languages="$missing_languages$i," ;;
9077 esac ;;
9078 esac
9079 done
9080 fi
9081
9082
9083 # Remove leading/trailing commas that were added for simplicity
9084 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9085 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9086 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9087 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9088
9089 if test "x$missing_languages" != x; then
9090 as_fn_error $? "
9091 The following requested languages could not be built: ${missing_languages}
9092 Supported languages are: ${potential_languages}" "$LINENO" 5
9093 fi
9094 if test "x$new_enable_languages" != "x$enable_languages"; then
9095 echo The following languages will be built: ${new_enable_languages}
9096 enable_languages="$new_enable_languages"
9097 fi
9098
9099
9100 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9101 fi
9102
9103 # Handle --disable-<component> generically.
9104 for dir in $configdirs $build_configdirs $target_configdirs ; do
9105 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9106 varname=`echo $dirname | sed -e s/+/_/g`
9107 if eval test x\${enable_${varname}} "=" xno ; then
9108 noconfigdirs="$noconfigdirs $dir"
9109 fi
9110 done
9111
9112 # Check for Boehm's garbage collector
9113 # Check whether --enable-objc-gc was given.
9114 if test "${enable_objc_gc+set}" = set; then :
9115 enableval=$enable_objc_gc;
9116 fi
9117
9118
9119 # Check whether --with-target-bdw-gc was given.
9120 if test "${with_target_bdw_gc+set}" = set; then :
9121 withval=$with_target_bdw_gc;
9122 fi
9123
9124
9125 # Check whether --with-target-bdw-gc-include was given.
9126 if test "${with_target_bdw_gc_include+set}" = set; then :
9127 withval=$with_target_bdw_gc_include;
9128 fi
9129
9130
9131 # Check whether --with-target-bdw-gc-lib was given.
9132 if test "${with_target_bdw_gc_lib+set}" = set; then :
9133 withval=$with_target_bdw_gc_lib;
9134 fi
9135
9136
9137 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9139 $as_echo_n "checking for bdw garbage collector... " >&6; }
9140 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9142 $as_echo "using bdw-gc in default locations" >&6; }
9143 else
9144 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9145 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9146 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9147 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9150 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9151 fi
9152 fi
9153 esac
9154
9155 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9156 case ,${enable_languages}, in
9157 *,c++,*)
9158 # Disable libitm, libsanitizer if we're not building libstdc++
9159 case "${noconfigdirs}" in
9160 *target-libstdc++-v3*)
9161 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9162 ;;
9163 *) ;;
9164 esac
9165 ;;
9166 *)
9167 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9168 ;;
9169 esac
9170
9171 # If gcc/ is not in the source tree then we'll not be building a
9172 # target compiler, assume in that case we don't want to build any
9173 # target libraries or tools.
9174 #
9175 # This was added primarily for the benefit for binutils-gdb who reuse
9176 # this configure script, but don't always have target tools available.
9177 if test ! -d ${srcdir}/gcc; then
9178 skipdirs="${skipdirs} ${target_configdirs}"
9179 fi
9180
9181 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9182 # $build_configdirs and $target_configdirs.
9183 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9184
9185 notsupp=""
9186 for dir in . $skipdirs $noconfigdirs ; do
9187 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9188 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9189 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9190 if test -r $srcdir/$dirname/configure ; then
9191 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9192 true
9193 else
9194 notsupp="$notsupp $dir"
9195 fi
9196 fi
9197 fi
9198 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9199 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9200 if test -r $srcdir/$dirname/configure ; then
9201 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9202 true
9203 else
9204 notsupp="$notsupp $dir"
9205 fi
9206 fi
9207 fi
9208 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9209 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure ; then
9211 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9212 true
9213 else
9214 notsupp="$notsupp $dir"
9215 fi
9216 fi
9217 fi
9218 done
9219
9220 # Quietly strip out all directories which aren't configurable in this tree.
9221 # This relies on all configurable subdirectories being autoconfiscated, which
9222 # is now the case.
9223 build_configdirs_all="$build_configdirs"
9224 build_configdirs=
9225 for i in ${build_configdirs_all} ; do
9226 j=`echo $i | sed -e s/build-//g`
9227 if test -f ${srcdir}/$j/configure ; then
9228 build_configdirs="${build_configdirs} $i"
9229 fi
9230 done
9231
9232 configdirs_all="$configdirs"
9233 configdirs=
9234 for i in ${configdirs_all} ; do
9235 if test -f ${srcdir}/$i/configure ; then
9236 configdirs="${configdirs} $i"
9237 fi
9238 done
9239
9240 target_configdirs_all="$target_configdirs"
9241 target_configdirs=
9242 for i in ${target_configdirs_all} ; do
9243 j=`echo $i | sed -e s/target-//g`
9244 if test -f ${srcdir}/$j/configure ; then
9245 target_configdirs="${target_configdirs} $i"
9246 fi
9247 done
9248
9249 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9250 # so we have to add it after the preceding checks.
9251 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9252 then
9253 case " $configdirs " in
9254 *" libiberty "*)
9255 # If we can build libiberty, we can also build libiberty-linker-plugin.
9256 configdirs="$configdirs libiberty-linker-plugin"
9257 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9258 --with-libiberty=../libiberty-linker-plugin";;
9259 *)
9260 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9261 esac
9262 fi
9263
9264 # Sometimes we have special requirements for the host libiberty.
9265 extra_host_libiberty_configure_flags=
9266 case " $configdirs " in
9267 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9268 # When these are to be built as shared libraries, the same applies to
9269 # libiberty.
9270 extra_host_libiberty_configure_flags=--enable-shared
9271 ;;
9272 esac
9273
9274
9275 # Sometimes we have special requirements for the host zlib.
9276 extra_host_zlib_configure_flags=
9277 case " $configdirs " in
9278 *" bfd "*)
9279 # When bfd is to be built as a shared library, the same applies to
9280 # zlib.
9281 if test "$enable_shared" = "yes"; then
9282 extra_host_zlib_configure_flags=--enable-host-shared
9283 fi
9284 ;;
9285 esac
9286
9287
9288 # Produce a warning message for the subdirs we can't configure.
9289 # This isn't especially interesting in the Cygnus tree, but in the individual
9290 # FSF releases, it's important to let people know when their machine isn't
9291 # supported by the one or two programs in a package.
9292
9293 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9294 # If $appdirs is non-empty, at least one of those directories must still
9295 # be configured, or we error out. (E.g., if the gas release supports a
9296 # specified target in some subdirs but not the gas subdir, we shouldn't
9297 # pretend that all is well.)
9298 if test -n "$appdirs" ; then
9299 for dir in $appdirs ; do
9300 if test -r $dir/Makefile.in ; then
9301 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9302 appdirs=""
9303 break
9304 fi
9305 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9306 appdirs=""
9307 break
9308 fi
9309 fi
9310 done
9311 if test -n "$appdirs" ; then
9312 echo "*** This configuration is not supported by this package." 1>&2
9313 exit 1
9314 fi
9315 fi
9316 # Okay, some application will build, or we don't care to check. Still
9317 # notify of subdirs not getting built.
9318 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9319 echo " ${notsupp}" 1>&2
9320 echo " (Any other directories should still work fine.)" 1>&2
9321 fi
9322
9323 case "$host" in
9324 *msdosdjgpp*)
9325 enable_gdbtk=no ;;
9326 esac
9327
9328 # To find our prefix, in gcc_cv_tool_prefix.
9329
9330 # The user is always right.
9331 if test "${PATH_SEPARATOR+set}" != set; then
9332 echo "#! /bin/sh" >conf$$.sh
9333 echo "exit 0" >>conf$$.sh
9334 chmod +x conf$$.sh
9335 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9336 PATH_SEPARATOR=';'
9337 else
9338 PATH_SEPARATOR=:
9339 fi
9340 rm -f conf$$.sh
9341 fi
9342
9343
9344 get_gcc_base_ver="cat"
9345
9346 # Check whether --with-gcc-major-version-only was given.
9347 if test "${with_gcc_major_version_only+set}" = set; then :
9348 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9349 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9350 fi
9351
9352 fi
9353
9354
9355
9356
9357
9358
9359 if test "x$exec_prefix" = xNONE; then
9360 if test "x$prefix" = xNONE; then
9361 gcc_cv_tool_prefix=$ac_default_prefix
9362 else
9363 gcc_cv_tool_prefix=$prefix
9364 fi
9365 else
9366 gcc_cv_tool_prefix=$exec_prefix
9367 fi
9368
9369 # If there is no compiler in the tree, use the PATH only. In any
9370 # case, if there is no compiler in the tree nobody should use
9371 # AS_FOR_TARGET and LD_FOR_TARGET.
9372 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9373 if test x$with_gcc_major_version_only = xyes ; then
9374 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9375 else
9376 gcc_version=`cat $srcdir/gcc/BASE-VER`
9377 fi
9378 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9379 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9380 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9381 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9382 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9383 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9384 else
9385 gcc_cv_tool_dirs=
9386 fi
9387
9388 if test x$build = x$target && test -n "$md_exec_prefix"; then
9389 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9390 fi
9391
9392
9393
9394 copy_dirs=
9395
9396
9397 # Check whether --with-build-sysroot was given.
9398 if test "${with_build_sysroot+set}" = set; then :
9399 withval=$with_build_sysroot; if test x"$withval" != x ; then
9400 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9401 fi
9402 else
9403 SYSROOT_CFLAGS_FOR_TARGET=
9404 fi
9405
9406
9407
9408
9409 # Check whether --with-debug-prefix-map was given.
9410 if test "${with_debug_prefix_map+set}" = set; then :
9411 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9412 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9413 for debug_map in $withval; do
9414 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9415 done
9416 fi
9417 else
9418 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9419 fi
9420
9421
9422
9423 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9424 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9425 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9426 # We want to ensure that TARGET libraries (which we know are built with
9427 # gcc) are built with "-O2 -g", so include those options when setting
9428 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9429 if test "x$CFLAGS_FOR_TARGET" = x; then
9430 if test "x${is_cross_compiler}" = xyes; then
9431 CFLAGS_FOR_TARGET="-g -O2"
9432 else
9433 CFLAGS_FOR_TARGET=$CFLAGS
9434 case " $CFLAGS " in
9435 *" -O2 "*) ;;
9436 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9437 esac
9438 case " $CFLAGS " in
9439 *" -g "* | *" -g3 "*) ;;
9440 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9441 esac
9442 fi
9443 fi
9444
9445
9446 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9447 if test "x${is_cross_compiler}" = xyes; then
9448 CXXFLAGS_FOR_TARGET="-g -O2"
9449 else
9450 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9451 case " $CXXFLAGS " in
9452 *" -O2 "*) ;;
9453 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9454 esac
9455 case " $CXXFLAGS " in
9456 *" -g "* | *" -g3 "*) ;;
9457 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9458 esac
9459 fi
9460 fi
9461
9462
9463
9464
9465 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9466 # the named directory are copied to $(tooldir)/sys-include.
9467 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9468 if test x${is_cross_compiler} = xno ; then
9469 echo 1>&2 '***' --with-headers is only supported when cross compiling
9470 exit 1
9471 fi
9472 if test x"${with_headers}" != xyes ; then
9473 x=${gcc_cv_tool_prefix}
9474 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9475 fi
9476 fi
9477
9478 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9479 # the name directories are copied to $(tooldir)/lib. Multiple directories
9480 # are permitted.
9481 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9482 if test x${is_cross_compiler} = xno ; then
9483 echo 1>&2 '***' --with-libs is only supported when cross compiling
9484 exit 1
9485 fi
9486 if test x"${with_libs}" != xyes ; then
9487 # Copy the libraries in reverse order, so that files in the first named
9488 # library override files in subsequent libraries.
9489 x=${gcc_cv_tool_prefix}
9490 for l in ${with_libs}; do
9491 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9492 done
9493 fi
9494 fi
9495
9496 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9497 #
9498 # This is done by determining whether or not the appropriate directory
9499 # is available, and by checking whether or not specific configurations
9500 # have requested that this magic not happen.
9501 #
9502 # The command line options always override the explicit settings in
9503 # configure.ac, and the settings in configure.ac override this magic.
9504 #
9505 # If the default for a toolchain is to use GNU as and ld, and you don't
9506 # want to do that, then you should use the --without-gnu-as and
9507 # --without-gnu-ld options for the configure script. Similarly, if
9508 # the default is to use the included zlib and you don't want to do that,
9509 # you should use the --with-system-zlib option for the configure script.
9510
9511 if test x${use_gnu_as} = x &&
9512 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9513 with_gnu_as=yes
9514 extra_host_args="$extra_host_args --with-gnu-as"
9515 fi
9516
9517 if test x${use_gnu_ld} = x &&
9518 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9519 with_gnu_ld=yes
9520 extra_host_args="$extra_host_args --with-gnu-ld"
9521 fi
9522
9523 if test x${use_included_zlib} = x &&
9524 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9525 :
9526 else
9527 with_system_zlib=yes
9528 extra_host_args="$extra_host_args --with-system-zlib"
9529 fi
9530
9531 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9532 # can detect this case.
9533
9534 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9535 with_newlib=yes
9536 extra_host_args="$extra_host_args --with-newlib"
9537 fi
9538
9539 # Handle ${copy_dirs}
9540 set fnord ${copy_dirs}
9541 shift
9542 while test $# != 0 ; do
9543 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9544 :
9545 else
9546 echo Copying $1 to $2
9547
9548 # Use the install script to create the directory and all required
9549 # parent directories.
9550 if test -d $2 ; then
9551 :
9552 else
9553 echo >config.temp
9554 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9555 fi
9556
9557 # Copy the directory, assuming we have tar.
9558 # FIXME: Should we use B in the second tar? Not all systems support it.
9559 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9560
9561 # It is the responsibility of the user to correctly adjust all
9562 # symlinks. If somebody can figure out how to handle them correctly
9563 # here, feel free to add the code.
9564
9565 echo $1 > $2/COPIED
9566 fi
9567 shift; shift
9568 done
9569
9570 # Determine a target-dependent exec_prefix that the installed
9571 # gcc will search in. Keep this list sorted by triplet, with
9572 # the *-*-osname triplets last.
9573 md_exec_prefix=
9574 case "${target}" in
9575 i[34567]86-pc-msdosdjgpp*)
9576 md_exec_prefix=/dev/env/DJDIR/bin
9577 ;;
9578 *-*-hpux* | \
9579 *-*-nto-qnx* | \
9580 *-*-solaris2*)
9581 md_exec_prefix=/usr/ccs/bin
9582 ;;
9583 esac
9584
9585 extra_arflags_for_target=
9586 extra_nmflags_for_target=
9587 extra_ranlibflags_for_target=
9588 target_makefile_frag=/dev/null
9589 case "${target}" in
9590 spu-*-*)
9591 target_makefile_frag="config/mt-spu"
9592 ;;
9593 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9594 target_makefile_frag="config/mt-sde"
9595 ;;
9596 mipsisa*-*-elfoabi*)
9597 target_makefile_frag="config/mt-mips-elfoabi"
9598 ;;
9599 mips*-*-*linux* | mips*-*-gnu*)
9600 target_makefile_frag="config/mt-mips-gnu"
9601 ;;
9602 nios2-*-elf*)
9603 target_makefile_frag="config/mt-nios2-elf"
9604 ;;
9605 *-*-linux-android*)
9606 target_makefile_frag="config/mt-android"
9607 ;;
9608 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9609 target_makefile_frag="config/mt-gnu"
9610 ;;
9611 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9612 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9613 # commands to handle both 32-bit and 64-bit objects. These flags are
9614 # harmless if we're using GNU nm or ar.
9615 extra_arflags_for_target=" -X32_64"
9616 extra_nmflags_for_target=" -B -X32_64"
9617 ;;
9618 esac
9619
9620 alphaieee_frag=/dev/null
9621 case $target in
9622 alpha*-*-*)
9623 # This just makes sure to use the -mieee option to build target libs.
9624 # This should probably be set individually by each library.
9625 alphaieee_frag="config/mt-alphaieee"
9626 ;;
9627 esac
9628
9629 # If --enable-target-optspace always use -Os instead of -O2 to build
9630 # the target libraries, similarly if it is not specified, use -Os
9631 # on selected platforms.
9632 ospace_frag=/dev/null
9633 case "${enable_target_optspace}:${target}" in
9634 yes:*)
9635 ospace_frag="config/mt-ospace"
9636 ;;
9637 :d30v-*)
9638 ospace_frag="config/mt-d30v"
9639 ;;
9640 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9641 ospace_frag="config/mt-ospace"
9642 ;;
9643 no:* | :*)
9644 ;;
9645 *)
9646 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9647 ;;
9648 esac
9649
9650 # Some systems (e.g., one of the i386-aix systems the gas testers are
9651 # using) don't handle "\$" correctly, so don't use it here.
9652 tooldir='${exec_prefix}'/${target_noncanonical}
9653 build_tooldir=${tooldir}
9654
9655 # Create a .gdbinit file which runs the one in srcdir
9656 # and tells GDB to look there for source files.
9657
9658 if test -r ${srcdir}/.gdbinit ; then
9659 case ${srcdir} in
9660 .) ;;
9661 *) cat > ./.gdbinit <<EOF
9662 # ${NO_EDIT}
9663 dir ${srcdir}
9664 dir .
9665 source ${srcdir}/.gdbinit
9666 EOF
9667 ;;
9668 esac
9669 fi
9670
9671 # Make sure that the compiler is able to generate an executable. If it
9672 # can't, we are probably in trouble. We don't care whether we can run the
9673 # executable--we might be using a cross compiler--we only care whether it
9674 # can be created. At this point the main configure script has set CC.
9675 we_are_ok=no
9676 echo "int main () { return 0; }" > conftest.c
9677 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9678 if test $? = 0 ; then
9679 if test -s conftest || test -s conftest.exe ; then
9680 we_are_ok=yes
9681 fi
9682 fi
9683 case $we_are_ok in
9684 no)
9685 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9686 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9687 rm -f conftest*
9688 exit 1
9689 ;;
9690 esac
9691 rm -f conftest*
9692
9693 # Decide which environment variable is used to find dynamic libraries.
9694 case "${host}" in
9695 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9696 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9697 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9698 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9699 esac
9700
9701 # On systems where the dynamic library environment variable is PATH,
9702 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9703 # built executables to PATH.
9704 if test "$RPATH_ENVVAR" = PATH; then
9705 GCC_SHLIB_SUBDIR=/shlib
9706 else
9707 GCC_SHLIB_SUBDIR=
9708 fi
9709
9710 # Adjust the toplevel makefile according to whether bootstrap was selected.
9711 case $enable_bootstrap in
9712 yes)
9713 bootstrap_suffix=bootstrap
9714 BUILD_CONFIG=bootstrap-debug
9715 ;;
9716 no)
9717 bootstrap_suffix=no-bootstrap
9718 BUILD_CONFIG=
9719 ;;
9720 esac
9721
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9723 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9724
9725
9726 # Check whether --with-build-config was given.
9727 if test "${with_build_config+set}" = set; then :
9728 withval=$with_build_config; case $with_build_config in
9729 yes) with_build_config= ;;
9730 no) with_build_config= BUILD_CONFIG= ;;
9731 esac
9732 fi
9733
9734
9735 if test "x${with_build_config}" != x; then
9736 BUILD_CONFIG=$with_build_config
9737 else
9738 case $BUILD_CONFIG in
9739 bootstrap-debug)
9740 if echo "int f (void) { return 0; }" > conftest.c &&
9741 ${CC} -c conftest.c &&
9742 mv conftest.o conftest.o.g0 &&
9743 ${CC} -c -g conftest.c &&
9744 mv conftest.o conftest.o.g &&
9745 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9746 :
9747 else
9748 BUILD_CONFIG=
9749 fi
9750 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9751 ;;
9752 esac
9753 fi
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9755 $as_echo "$BUILD_CONFIG" >&6; }
9756
9757
9758 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9760 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9761 # Check whether --enable-vtable-verify was given.
9762 if test "${enable_vtable_verify+set}" = set; then :
9763 enableval=$enable_vtable_verify; case "$enableval" in
9764 yes) enable_vtable_verify=yes ;;
9765 no) enable_vtable_verify=no ;;
9766 *) enable_vtable_verify=no;;
9767 esac
9768 else
9769 enable_vtable_verify=no
9770 fi
9771
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9773 $as_echo "$enable_vtable_verify" >&6; }
9774
9775 # Record target_configdirs and the configure arguments for target and
9776 # build configuration in Makefile.
9777 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9778 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9779 bootstrap_fixincludes=no
9780
9781 # If we are building libgomp, bootstrap it.
9782 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9783 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9784 fi
9785
9786 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9787 # or bootstrap-ubsan, bootstrap it.
9788 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9789 case "$BUILD_CONFIG" in
9790 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9791 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9792 bootstrap_fixincludes=yes
9793 ;;
9794 esac
9795 fi
9796
9797 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9798 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9799 test "$enable_vtable_verify" != no; then
9800 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9801 fi
9802
9803 # If we are building libatomic and the list of enabled languages includes the
9804 # D frontend, bootstrap it.
9805 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9806 case ,${enable_languages}, in
9807 *,d,*)
9808 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9809 ;;
9810 esac
9811 fi
9812
9813 # Determine whether gdb needs tk/tcl or not.
9814 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9815 # and in that case we want gdb to be built without tk. Ugh!
9816 # In fact I believe gdb is the *only* package directly dependent on tk,
9817 # so we should be able to put the 'maybe's in unconditionally and
9818 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9819 # 100% sure that that's safe though.
9820
9821 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9822 case "$enable_gdbtk" in
9823 no)
9824 GDB_TK="" ;;
9825 yes)
9826 GDB_TK="${gdb_tk}" ;;
9827 *)
9828 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9829 # distro. Eventually someone will fix this and move Insight, nee
9830 # gdbtk to a separate directory.
9831 if test -d ${srcdir}/gdb/gdbtk ; then
9832 GDB_TK="${gdb_tk}"
9833 else
9834 GDB_TK=""
9835 fi
9836 ;;
9837 esac
9838 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9839 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9840
9841 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9842 # else does, only include them if one of these is built. The Makefile
9843 # provides the ordering, so it's enough here to add to the list.
9844 case " ${configdirs} " in
9845 *\ gdb\ *)
9846 configdirs="${configdirs} gnulib gdbsupport"
9847 ;;
9848 *\ gdbserver\ *)
9849 configdirs="${configdirs} gnulib gdbsupport"
9850 ;;
9851 *\ sim\ *)
9852 configdirs="${configdirs} gnulib"
9853 ;;
9854 esac
9855
9856 # Strip out unwanted targets.
9857
9858 # While at that, we remove Makefiles if we were started for recursive
9859 # configuration, so that the top-level Makefile reconfigures them,
9860 # like we used to do when configure itself was recursive.
9861
9862 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9863 # but now we're fixing up the Makefile ourselves with the additional
9864 # commands passed to AC_CONFIG_FILES. Use separate variables
9865 # extrasub-{build,host,target} not because there is any reason to split
9866 # the substitutions up that way, but only to remain below the limit of
9867 # 99 commands in a script, for HP-UX sed.
9868
9869 # Do not nest @if/@endif or @unless/@endunless pairs, because
9870 # configure will not warn you at all.
9871
9872 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9873 yes:yes:*\ gold\ *:*,c++,*) ;;
9874 yes:yes:*\ gold\ *:*)
9875 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9876 ;;
9877 esac
9878
9879 extrasub_build=
9880 for module in ${build_configdirs} ; do
9881 if test -z "${no_recursion}" \
9882 && test -f ${build_subdir}/${module}/Makefile; then
9883 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9884 rm -f ${build_subdir}/${module}/Makefile
9885 fi
9886 extrasub_build="$extrasub_build
9887 /^@if build-$module\$/d
9888 /^@endif build-$module\$/d
9889 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9890 /^@if build-$module-$bootstrap_suffix\$/d
9891 /^@endif build-$module-$bootstrap_suffix\$/d
9892 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9893 done
9894 extrasub_host=
9895 for module in ${configdirs} ; do
9896 if test -z "${no_recursion}"; then
9897 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9898 if test -f ${file}; then
9899 echo 1>&2 "*** removing ${file} to force reconfigure"
9900 rm -f ${file}
9901 fi
9902 done
9903 fi
9904 case ${module},${bootstrap_fixincludes} in
9905 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9906 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9907 esac
9908 extrasub_host="$extrasub_host
9909 /^@if $module\$/d
9910 /^@endif $module\$/d
9911 /^@unless $module\$/,/^@endunless $module\$/d
9912 /^@if $module-$host_bootstrap_suffix\$/d
9913 /^@endif $module-$host_bootstrap_suffix\$/d
9914 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9915 done
9916 extrasub_target=
9917 for module in ${target_configdirs} ; do
9918 if test -z "${no_recursion}" \
9919 && test -f ${target_subdir}/${module}/Makefile; then
9920 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9921 rm -f ${target_subdir}/${module}/Makefile
9922 fi
9923
9924 # We only bootstrap target libraries listed in bootstrap_target_libs.
9925 case $bootstrap_target_libs in
9926 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9927 *) target_bootstrap_suffix=no-bootstrap ;;
9928 esac
9929
9930 extrasub_target="$extrasub_target
9931 /^@if target-$module\$/d
9932 /^@endif target-$module\$/d
9933 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9934 /^@if target-$module-$target_bootstrap_suffix\$/d
9935 /^@endif target-$module-$target_bootstrap_suffix\$/d
9936 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9937 done
9938
9939 # Do the final fixup along with target modules.
9940 extrasub_target="$extrasub_target
9941 /^@if /,/^@endif /d
9942 /^@unless /d
9943 /^@endunless /d"
9944
9945 if test "$enable_pgo_build" != "no"; then
9946 extrasub_build="$extrasub_build
9947 /^@if pgo-build\$/d
9948 /^@endif pgo-build\$/d"
9949 fi
9950
9951 # Create the serialization dependencies. This uses a temporary file.
9952
9953 # Check whether --enable-serial-configure was given.
9954 if test "${enable_serial_configure+set}" = set; then :
9955 enableval=$enable_serial_configure;
9956 fi
9957
9958
9959 case ${enable_serial_configure} in
9960 yes)
9961 enable_serial_build_configure=yes
9962 enable_serial_host_configure=yes
9963 enable_serial_target_configure=yes
9964 ;;
9965 esac
9966
9967 # These force 'configure's to be done one at a time, to avoid problems
9968 # with contention over a shared config.cache.
9969 rm -f serdep.tmp
9970 echo '# serdep.tmp' > serdep.tmp
9971 olditem=
9972 test "x${enable_serial_build_configure}" = xyes &&
9973 for item in ${build_configdirs} ; do
9974 case ${olditem} in
9975 "") ;;
9976 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9977 esac
9978 olditem=${item}
9979 done
9980 olditem=
9981 test "x${enable_serial_host_configure}" = xyes &&
9982 for item in ${configdirs} ; do
9983 case ${olditem} in
9984 "") ;;
9985 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9986 esac
9987 olditem=${item}
9988 done
9989 olditem=
9990 test "x${enable_serial_target_configure}" = xyes &&
9991 for item in ${target_configdirs} ; do
9992 case ${olditem} in
9993 "") ;;
9994 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9995 esac
9996 olditem=${item}
9997 done
9998 serialization_dependencies=serdep.tmp
9999
10000
10001 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10002 # target, nonopt, and variable assignments. These are the ones we
10003 # might not want to pass down to subconfigures. The exception being
10004 # --cache-file=/dev/null, which is used to turn off the use of cache
10005 # files altogether, and which should be passed on to subconfigures.
10006 # Also strip program-prefix, program-suffix, and program-transform-name,
10007 # so that we can pass down a consistent program-transform-name.
10008 baseargs=
10009 tbaseargs=
10010 keep_next=no
10011 skip_next=no
10012 eval "set -- $ac_configure_args"
10013 for ac_arg
10014 do
10015 if test X"$skip_next" = X"yes"; then
10016 skip_next=no
10017 continue
10018 fi
10019 if test X"$keep_next" = X"yes"; then
10020 case $ac_arg in
10021 *\'*)
10022 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10023 esac
10024 baseargs="$baseargs '$ac_arg'"
10025 tbaseargs="$tbaseargs '$ac_arg'"
10026 keep_next=no
10027 continue
10028 fi
10029
10030 # Handle separated arguments. Based on the logic generated by
10031 # autoconf 2.59.
10032 case $ac_arg in
10033 *=* | --config-cache | -C | -disable-* | --disable-* \
10034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10036 | -with-* | --with-* | -without-* | --without-* | --x)
10037 separate_arg=no
10038 ;;
10039 -*)
10040 separate_arg=yes
10041 ;;
10042 *)
10043 separate_arg=no
10044 ;;
10045 esac
10046
10047 skip_targ=no
10048 case $ac_arg in
10049
10050 --with-* | --without-*)
10051 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10052
10053 case $libopt in
10054 *[-_]include)
10055 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10056 ;;
10057 *[-_]lib)
10058 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10059 ;;
10060 *)
10061 lib=$libopt
10062 ;;
10063 esac
10064
10065
10066 case $lib in
10067 mpc | mpfr | gmp | isl)
10068 # If we're processing --with-$lib, --with-$lib-include or
10069 # --with-$lib-lib, for one of the libs above, and target is
10070 # different from host, don't pass the current argument to any
10071 # target library's configure.
10072 if test x$is_cross_compiler = xyes; then
10073 skip_targ=yes
10074 fi
10075 ;;
10076 esac
10077 ;;
10078 esac
10079
10080 case "$ac_arg" in
10081 --cache-file=/dev/null | \
10082 -cache-file=/dev/null )
10083 # Handled here to avoid the test to skip args below.
10084 baseargs="$baseargs '$ac_arg'"
10085 tbaseargs="$tbaseargs '$ac_arg'"
10086 # Assert: $separate_arg should always be no.
10087 keep_next=$separate_arg
10088 ;;
10089 --no*)
10090 continue
10091 ;;
10092 --c* | \
10093 --sr* | \
10094 --ho* | \
10095 --bu* | \
10096 --t* | \
10097 --program-* | \
10098 -cache_file* | \
10099 -srcdir* | \
10100 -host* | \
10101 -build* | \
10102 -target* | \
10103 -program-prefix* | \
10104 -program-suffix* | \
10105 -program-transform-name* )
10106 skip_next=$separate_arg
10107 continue
10108 ;;
10109 -*)
10110 # An option. Add it.
10111 case $ac_arg in
10112 *\'*)
10113 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10114 esac
10115 baseargs="$baseargs '$ac_arg'"
10116 if test X"$skip_targ" = Xno; then
10117 tbaseargs="$tbaseargs '$ac_arg'"
10118 fi
10119 keep_next=$separate_arg
10120 ;;
10121 *)
10122 # Either a variable assignment, or a nonopt (triplet). Don't
10123 # pass it down; let the Makefile handle this.
10124 continue
10125 ;;
10126 esac
10127 done
10128 # Remove the initial space we just introduced and, as these will be
10129 # expanded by make, quote '$'.
10130 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10131
10132 # Add in --program-transform-name, after --program-prefix and
10133 # --program-suffix have been applied to it. Autoconf has already
10134 # doubled dollar signs and backslashes in program_transform_name; we want
10135 # the backslashes un-doubled, and then the entire thing wrapped in single
10136 # quotes, because this will be expanded first by make and then by the shell.
10137 # Also, because we want to override the logic in subdir configure scripts to
10138 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10139 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10140 ${program_transform_name}
10141 EOF_SED
10142 gcc_transform_name=`cat conftestsed.out`
10143 rm -f conftestsed.out
10144 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10145 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10146 if test "$silent" = yes; then
10147 baseargs="$baseargs --silent"
10148 tbaseargs="$tbaseargs --silent"
10149 fi
10150
10151 baseargs="$baseargs --disable-option-checking"
10152 tbaseargs="$tbaseargs --disable-option-checking"
10153
10154 if test "$enable_year2038" = no; then
10155 baseargs="$baseargs --disable-year2038"
10156 tbaseargs="$tbaseargs --disable-year2038"
10157 fi
10158
10159 # Record and document user additions to sub configure arguments.
10160
10161
10162
10163
10164 # For the build-side libraries, we just need to pretend we're native,
10165 # and not use the same cache file. Multilibs are neither needed nor
10166 # desired. We can't even use the same cache file for all build-side
10167 # libraries, as they're compiled differently; some with C, some with
10168 # C++ or with different feature-enabling options.
10169 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10170
10171 # For host modules, accept cache file option, or specification as blank.
10172 case "${cache_file}" in
10173 "") # empty
10174 cache_file_option="" ;;
10175 /* | [A-Za-z]:[\\/]* ) # absolute path
10176 cache_file_option="--cache-file=${cache_file}" ;;
10177 *) # relative path
10178 cache_file_option="--cache-file=../${cache_file}" ;;
10179 esac
10180
10181 # Host dirs don't like to share a cache file either, horribly enough.
10182 # This seems to be due to autoconf 2.5x stupidity.
10183 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10184
10185 target_configargs="$target_configargs ${tbaseargs}"
10186
10187 # Passing a --with-cross-host argument lets the target libraries know
10188 # whether they are being built with a cross-compiler or being built
10189 # native. However, it would be better to use other mechanisms to make the
10190 # sorts of decisions they want to make on this basis. Please consider
10191 # this option to be deprecated. FIXME.
10192 if test x${is_cross_compiler} = xyes ; then
10193 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10194 fi
10195
10196 # Special user-friendly check for native x86_64-linux build, if
10197 # multilib is not explicitly enabled.
10198 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10199 x86_64-*linux*:yes:$build:$build:)
10200 # Make sure we have a development environment that handles 32-bit
10201 dev64=no
10202 echo "int main () { return 0; }" > conftest.c
10203 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10204 if test $? = 0 ; then
10205 if test -s conftest || test -s conftest.exe ; then
10206 dev64=yes
10207 fi
10208 fi
10209 rm -f conftest*
10210 if test x${dev64} != xyes ; then
10211 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
10212 fi
10213 ;;
10214 esac
10215
10216 # Default to --enable-multilib.
10217 if test x${enable_multilib} = x ; then
10218 target_configargs="--enable-multilib ${target_configargs}"
10219 fi
10220
10221 # Pass --with-newlib if appropriate. Note that target_configdirs has
10222 # changed from the earlier setting of with_newlib.
10223 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10224 target_configargs="--with-newlib ${target_configargs}"
10225 fi
10226
10227 # Different target subdirs use different values of certain variables
10228 # (notably CXX). Worse, multilibs use *lots* of different values.
10229 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10230 # it doesn't automatically accept command-line overrides of them.
10231 # This means it's not safe for target subdirs to share a cache file,
10232 # which is disgusting, but there you have it. Hopefully this can be
10233 # fixed in future. It's still worthwhile to use a cache file for each
10234 # directory. I think.
10235
10236 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10237 # We need to pass --target, as newer autoconf's requires consistency
10238 # for target_alias and gcc doesn't manage it consistently.
10239 target_configargs="--cache-file=./config.cache ${target_configargs}"
10240
10241 FLAGS_FOR_TARGET=
10242 case " $target_configdirs " in
10243 *" newlib "*)
10244 case " $target_configargs " in
10245 *" --with-newlib "*)
10246 case "$target" in
10247 *-cygwin*)
10248 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10249 ;;
10250 esac
10251
10252 # If we're not building GCC, don't discard standard headers.
10253 if test -d ${srcdir}/gcc; then
10254 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10255
10256 if test "${build}" != "${host}"; then
10257 # On Canadian crosses, CC_FOR_TARGET will have already been set
10258 # by `configure', so we won't have an opportunity to add -Bgcc/
10259 # to it. This is right: we don't want to search that directory
10260 # for binaries, but we want the header files in there, so add
10261 # them explicitly.
10262 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10263
10264 # Someone might think of using the pre-installed headers on
10265 # Canadian crosses, in case the installed compiler is not fully
10266 # compatible with the compiler being built. In this case, it
10267 # would be better to flag an error than risking having
10268 # incompatible object files being constructed. We can't
10269 # guarantee that an error will be flagged, but let's hope the
10270 # compiler will do it, when presented with incompatible header
10271 # files.
10272 fi
10273 fi
10274
10275 case "${target}-${is_cross_compiler}" in
10276 i[3456789]86-*-linux*-no)
10277 # Here host == target, so we don't need to build gcc,
10278 # so we don't want to discard standard headers.
10279 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10280 ;;
10281 *)
10282 # If we're building newlib, use its generic headers last, but search
10283 # for any libc-related directories first (so make it the last -B
10284 # switch).
10285 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10286
10287 # If we're building libgloss, find the startup file, simulator library
10288 # and linker script.
10289 case " $target_configdirs " in
10290 *" libgloss "*)
10291 # Look for startup file, simulator library and maybe linker script.
10292 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10293 # Look for libnosys.a in case the target needs it.
10294 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10295 # Most targets have the linker script in the source directory.
10296 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10297 ;;
10298 esac
10299 ;;
10300 esac
10301 ;;
10302 esac
10303 ;;
10304 esac
10305
10306 case "$target" in
10307 x86_64-*mingw* | *-w64-mingw*)
10308 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10309 # however, use a symlink named 'mingw' in ${prefix} .
10310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10311 ;;
10312 *-mingw*)
10313 # MinGW can't be handled as Cygwin above since it does not use newlib.
10314 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'
10315 ;;
10316 esac
10317
10318 # Allow the user to override the flags for
10319 # our build compiler if desired.
10320 if test x"${build}" = x"${host}" ; then
10321 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10322 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10323 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10324 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10325 fi
10326
10327 # On Canadian crosses, we'll be searching the right directories for
10328 # the previously-installed cross compiler, so don't bother to add
10329 # flags for directories within the install tree of the compiler
10330 # being built; programs in there won't even run.
10331 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10332 # Search for pre-installed headers if nothing else fits.
10333 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10334 fi
10335
10336 if test "x${use_gnu_ld}" = x &&
10337 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10338 # Arrange for us to find uninstalled linker scripts.
10339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10340 fi
10341
10342 # Search for other target-specific linker scripts and such.
10343 case "${target}" in
10344 mep*)
10345 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10346 ;;
10347 # The VxWorks support for shared libraries is getting in
10348 # incrementally. Make sure it doesn't get activated implicitly:
10349 *vxworks*)
10350 if test "${enable_shared-unset}" = unset ; then
10351 enable_shared=no
10352 # So the build of libraries knows ...
10353 target_configargs="${target_configargs} --disable-shared"
10354 # So gcc knows ...
10355 host_configargs="${host_configargs} --disable-shared"
10356 fi
10357 ;;
10358 esac
10359
10360 # Makefile fragments.
10361 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10362 do
10363 eval fragval=\$$frag
10364 if test $fragval != /dev/null; then
10365 eval $frag=${srcdir}/$fragval
10366 fi
10367 done
10368
10369
10370
10371
10372
10373 # Miscellanea: directories, flags, etc.
10374
10375
10376
10377
10378
10379
10380
10381
10382 # Build module lists & subconfigure args.
10383
10384
10385
10386 # Host module lists & subconfigure args.
10387
10388
10389
10390
10391 # Target module lists & subconfigure args.
10392
10393
10394
10395 # Build tools.
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416 # Generate default definitions for YACC, M4, LEX and other programs that run
10417 # on the build machine. These are used if the Makefile can't locate these
10418 # programs in objdir.
10419 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10420
10421 for ac_prog in 'bison -y' byacc yacc
10422 do
10423 # Extract the first word of "$ac_prog", so it can be a program name with args.
10424 set dummy $ac_prog; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if ${ac_cv_prog_YACC+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 if test -n "$YACC"; then
10431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10432 else
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10435 do
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_YACC="$ac_prog"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10443 fi
10444 done
10445 done
10446 IFS=$as_save_IFS
10447
10448 fi
10449 fi
10450 YACC=$ac_cv_prog_YACC
10451 if test -n "$YACC"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10453 $as_echo "$YACC" >&6; }
10454 else
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10457 fi
10458
10459
10460 test -n "$YACC" && break
10461 done
10462 test -n "$YACC" || YACC="$MISSING bison -y"
10463
10464 case " $build_configdirs " in
10465 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10466 esac
10467
10468 for ac_prog in bison
10469 do
10470 # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if ${ac_cv_prog_BISON+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 if test -n "$BISON"; then
10478 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487 ac_cv_prog_BISON="$ac_prog"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491 done
10492 done
10493 IFS=$as_save_IFS
10494
10495 fi
10496 fi
10497 BISON=$ac_cv_prog_BISON
10498 if test -n "$BISON"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10500 $as_echo "$BISON" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 fi
10505
10506
10507 test -n "$BISON" && break
10508 done
10509 test -n "$BISON" || BISON="$MISSING bison"
10510
10511 case " $build_configdirs " in
10512 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10513 esac
10514
10515 for ac_prog in gm4 gnum4 m4
10516 do
10517 # Extract the first word of "$ac_prog", so it can be a program name with args.
10518 set dummy $ac_prog; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if ${ac_cv_prog_M4+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$M4"; then
10525 ac_cv_prog_M4="$M4" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10529 do
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_M4="$ac_prog"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10537 fi
10538 done
10539 done
10540 IFS=$as_save_IFS
10541
10542 fi
10543 fi
10544 M4=$ac_cv_prog_M4
10545 if test -n "$M4"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10547 $as_echo "$M4" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10551 fi
10552
10553
10554 test -n "$M4" && break
10555 done
10556 test -n "$M4" || M4="$MISSING m4"
10557
10558 case " $build_configdirs " in
10559 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10560 esac
10561
10562 for ac_prog in flex lex
10563 do
10564 # Extract the first word of "$ac_prog", so it can be a program name with args.
10565 set dummy $ac_prog; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if ${ac_cv_prog_LEX+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 if test -n "$LEX"; then
10572 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581 ac_cv_prog_LEX="$ac_prog"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585 done
10586 done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 LEX=$ac_cv_prog_LEX
10592 if test -n "$LEX"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10594 $as_echo "$LEX" >&6; }
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600
10601 test -n "$LEX" && break
10602 done
10603 test -n "$LEX" || LEX="$MISSING flex"
10604
10605 case " $build_configdirs " in
10606 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10607 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10608 esac
10609
10610 for ac_prog in flex
10611 do
10612 # Extract the first word of "$ac_prog", so it can be a program name with args.
10613 set dummy $ac_prog; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_prog_FLEX+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if test -n "$FLEX"; then
10620 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10621 else
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10624 do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_FLEX="$ac_prog"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10632 fi
10633 done
10634 done
10635 IFS=$as_save_IFS
10636
10637 fi
10638 fi
10639 FLEX=$ac_cv_prog_FLEX
10640 if test -n "$FLEX"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10642 $as_echo "$FLEX" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10646 fi
10647
10648
10649 test -n "$FLEX" && break
10650 done
10651 test -n "$FLEX" || FLEX="$MISSING flex"
10652
10653 case " $build_configdirs " in
10654 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10655 esac
10656
10657 for ac_prog in makeinfo
10658 do
10659 # Extract the first word of "$ac_prog", so it can be a program name with args.
10660 set dummy $ac_prog; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 $as_echo_n "checking for $ac_word... " >&6; }
10663 if ${ac_cv_prog_MAKEINFO+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 if test -n "$MAKEINFO"; then
10667 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10668 else
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10671 do
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_MAKEINFO="$ac_prog"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10679 fi
10680 done
10681 done
10682 IFS=$as_save_IFS
10683
10684 fi
10685 fi
10686 MAKEINFO=$ac_cv_prog_MAKEINFO
10687 if test -n "$MAKEINFO"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10689 $as_echo "$MAKEINFO" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693 fi
10694
10695
10696 test -n "$MAKEINFO" && break
10697 done
10698 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10699
10700 case " $build_configdirs " in
10701 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10702 *)
10703
10704 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10705 # higher, else we use the "missing" dummy.
10706 if ${MAKEINFO} --version \
10707 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10708 :
10709 else
10710 MAKEINFO="$MISSING makeinfo"
10711 fi
10712 ;;
10713
10714 esac
10715
10716 # FIXME: expect and dejagnu may become build tools?
10717
10718 for ac_prog in expect
10719 do
10720 # Extract the first word of "$ac_prog", so it can be a program name with args.
10721 set dummy $ac_prog; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_prog_EXPECT+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 if test -n "$EXPECT"; then
10728 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10729 else
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10732 do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737 ac_cv_prog_EXPECT="$ac_prog"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10740 fi
10741 done
10742 done
10743 IFS=$as_save_IFS
10744
10745 fi
10746 fi
10747 EXPECT=$ac_cv_prog_EXPECT
10748 if test -n "$EXPECT"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10750 $as_echo "$EXPECT" >&6; }
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 fi
10755
10756
10757 test -n "$EXPECT" && break
10758 done
10759 test -n "$EXPECT" || EXPECT="expect"
10760
10761 case " $configdirs " in
10762 *" expect "*)
10763 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10764 ;;
10765 esac
10766
10767 for ac_prog in runtest
10768 do
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772 $as_echo_n "checking for $ac_word... " >&6; }
10773 if ${ac_cv_prog_RUNTEST+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 if test -n "$RUNTEST"; then
10777 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10778 else
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10781 do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_RUNTEST="$ac_prog"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790 done
10791 done
10792 IFS=$as_save_IFS
10793
10794 fi
10795 fi
10796 RUNTEST=$ac_cv_prog_RUNTEST
10797 if test -n "$RUNTEST"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10799 $as_echo "$RUNTEST" >&6; }
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804
10805
10806 test -n "$RUNTEST" && break
10807 done
10808 test -n "$RUNTEST" || RUNTEST="runtest"
10809
10810 case " $configdirs " in
10811 *" dejagnu "*)
10812 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10813 ;;
10814 esac
10815
10816
10817 # Host tools.
10818 ncn_tool_prefix=
10819 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10820 ncn_target_tool_prefix=
10821 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10822
10823
10824
10825 if test -n "$AR"; then
10826 ac_cv_prog_AR=$AR
10827 elif test -n "$ac_cv_prog_AR"; then
10828 AR=$ac_cv_prog_AR
10829 fi
10830
10831 if test -n "$ac_cv_prog_AR"; then
10832 for ncn_progname in ar; do
10833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10834 set dummy ${ncn_progname}; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if ${ac_cv_prog_AR+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 if test -n "$AR"; then
10841 ac_cv_prog_AR="$AR" # Let the user override the test.
10842 else
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10845 do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_AR="${ncn_progname}"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854 done
10855 done
10856 IFS=$as_save_IFS
10857
10858 fi
10859 fi
10860 AR=$ac_cv_prog_AR
10861 if test -n "$AR"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10863 $as_echo "$AR" >&6; }
10864 else
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10867 fi
10868
10869
10870 done
10871 fi
10872
10873 for ncn_progname in ar; do
10874 if test -n "$ncn_tool_prefix"; then
10875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878 $as_echo_n "checking for $ac_word... " >&6; }
10879 if ${ac_cv_prog_AR+:} false; then :
10880 $as_echo_n "(cached) " >&6
10881 else
10882 if test -n "$AR"; then
10883 ac_cv_prog_AR="$AR" # Let the user override the test.
10884 else
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10887 do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896 done
10897 done
10898 IFS=$as_save_IFS
10899
10900 fi
10901 fi
10902 AR=$ac_cv_prog_AR
10903 if test -n "$AR"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10905 $as_echo "$AR" >&6; }
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908 $as_echo "no" >&6; }
10909 fi
10910
10911
10912 fi
10913 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10915 set dummy ${ncn_progname}; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if ${ac_cv_prog_AR+:} false; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 if test -n "$AR"; then
10922 ac_cv_prog_AR="$AR" # Let the user override the test.
10923 else
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927 IFS=$as_save_IFS
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931 ac_cv_prog_AR="${ncn_progname}"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935 done
10936 done
10937 IFS=$as_save_IFS
10938
10939 fi
10940 fi
10941 AR=$ac_cv_prog_AR
10942 if test -n "$AR"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10944 $as_echo "$AR" >&6; }
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10948 fi
10949
10950
10951 fi
10952 test -n "$ac_cv_prog_AR" && break
10953 done
10954
10955 if test -z "$ac_cv_prog_AR" ; then
10956 set dummy ar
10957 if test $build = $host ; then
10958 AR="$2"
10959 else
10960 AR="${ncn_tool_prefix}$2"
10961 fi
10962 fi
10963
10964
10965
10966 if test -n "$AS"; then
10967 ac_cv_prog_AS=$AS
10968 elif test -n "$ac_cv_prog_AS"; then
10969 AS=$ac_cv_prog_AS
10970 fi
10971
10972 if test -n "$ac_cv_prog_AS"; then
10973 for ncn_progname in as; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977 $as_echo_n "checking for $ac_word... " >&6; }
10978 if ${ac_cv_prog_AS+:} false; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 if test -n "$AS"; then
10982 ac_cv_prog_AS="$AS" # Let the user override the test.
10983 else
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10986 do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_AS="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995 done
10996 done
10997 IFS=$as_save_IFS
10998
10999 fi
11000 fi
11001 AS=$ac_cv_prog_AS
11002 if test -n "$AS"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11004 $as_echo "$AS" >&6; }
11005 else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009
11010
11011 done
11012 fi
11013
11014 for ncn_progname in as; do
11015 if test -n "$ncn_tool_prefix"; then
11016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_prog_AS+:} false; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 if test -n "$AS"; then
11024 ac_cv_prog_AS="$AS" # Let the user override the test.
11025 else
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11028 do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11036 fi
11037 done
11038 done
11039 IFS=$as_save_IFS
11040
11041 fi
11042 fi
11043 AS=$ac_cv_prog_AS
11044 if test -n "$AS"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11046 $as_echo "$AS" >&6; }
11047 else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050 fi
11051
11052
11053 fi
11054 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056 set dummy ${ncn_progname}; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if ${ac_cv_prog_AS+:} false; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 if test -n "$AS"; then
11063 ac_cv_prog_AS="$AS" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11067 do
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072 ac_cv_prog_AS="${ncn_progname}"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11075 fi
11076 done
11077 done
11078 IFS=$as_save_IFS
11079
11080 fi
11081 fi
11082 AS=$ac_cv_prog_AS
11083 if test -n "$AS"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11085 $as_echo "$AS" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11089 fi
11090
11091
11092 fi
11093 test -n "$ac_cv_prog_AS" && break
11094 done
11095
11096 if test -z "$ac_cv_prog_AS" ; then
11097 set dummy as
11098 if test $build = $host ; then
11099 AS="$2"
11100 else
11101 AS="${ncn_tool_prefix}$2"
11102 fi
11103 fi
11104
11105
11106
11107 if test -n "$DLLTOOL"; then
11108 ac_cv_prog_DLLTOOL=$DLLTOOL
11109 elif test -n "$ac_cv_prog_DLLTOOL"; then
11110 DLLTOOL=$ac_cv_prog_DLLTOOL
11111 fi
11112
11113 if test -n "$ac_cv_prog_DLLTOOL"; then
11114 for ncn_progname in dlltool; do
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116 set dummy ${ncn_progname}; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_prog_DLLTOOL+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 if test -n "$DLLTOOL"; then
11123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11124 else
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11127 do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_DLLTOOL="${ncn_progname}"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136 done
11137 done
11138 IFS=$as_save_IFS
11139
11140 fi
11141 fi
11142 DLLTOOL=$ac_cv_prog_DLLTOOL
11143 if test -n "$DLLTOOL"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11145 $as_echo "$DLLTOOL" >&6; }
11146 else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148 $as_echo "no" >&6; }
11149 fi
11150
11151
11152 done
11153 fi
11154
11155 for ncn_progname in dlltool; do
11156 if test -n "$ncn_tool_prefix"; then
11157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if ${ac_cv_prog_DLLTOOL+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 if test -n "$DLLTOOL"; then
11165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 break 2
11177 fi
11178 done
11179 done
11180 IFS=$as_save_IFS
11181
11182 fi
11183 fi
11184 DLLTOOL=$ac_cv_prog_DLLTOOL
11185 if test -n "$DLLTOOL"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11187 $as_echo "$DLLTOOL" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194 fi
11195 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_progname}; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11199 $as_echo_n "checking for $ac_word... " >&6; }
11200 if ${ac_cv_prog_DLLTOOL+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test -n "$DLLTOOL"; then
11204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11205 else
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11208 do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11213 ac_cv_prog_DLLTOOL="${ncn_progname}"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 break 2
11216 fi
11217 done
11218 done
11219 IFS=$as_save_IFS
11220
11221 fi
11222 fi
11223 DLLTOOL=$ac_cv_prog_DLLTOOL
11224 if test -n "$DLLTOOL"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11226 $as_echo "$DLLTOOL" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 fi
11231
11232
11233 fi
11234 test -n "$ac_cv_prog_DLLTOOL" && break
11235 done
11236
11237 if test -z "$ac_cv_prog_DLLTOOL" ; then
11238 set dummy dlltool
11239 if test $build = $host ; then
11240 DLLTOOL="$2"
11241 else
11242 DLLTOOL="${ncn_tool_prefix}$2"
11243 fi
11244 fi
11245
11246
11247
11248 if test -n "$DSYMUTIL"; then
11249 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11250 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11251 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11252 fi
11253
11254 if test -n "$ac_cv_prog_DSYMUTIL"; then
11255 for ncn_progname in dsymutil; do
11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11259 $as_echo_n "checking for $ac_word... " >&6; }
11260 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 if test -n "$DSYMUTIL"; then
11264 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11265 else
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11268 do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277 done
11278 done
11279 IFS=$as_save_IFS
11280
11281 fi
11282 fi
11283 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11284 if test -n "$DSYMUTIL"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11286 $as_echo "$DSYMUTIL" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 fi
11291
11292
11293 done
11294 fi
11295
11296 for ncn_progname in dsymutil; do
11297 if test -n "$ncn_tool_prefix"; then
11298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 if test -n "$DSYMUTIL"; then
11306 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11307 else
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11310 do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 break 2
11318 fi
11319 done
11320 done
11321 IFS=$as_save_IFS
11322
11323 fi
11324 fi
11325 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11326 if test -n "$DSYMUTIL"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11328 $as_echo "$DSYMUTIL" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 fi
11333
11334
11335 fi
11336 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11338 set dummy ${ncn_progname}; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -n "$DSYMUTIL"; then
11345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11346 else
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11349 do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 break 2
11357 fi
11358 done
11359 done
11360 IFS=$as_save_IFS
11361
11362 fi
11363 fi
11364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11365 if test -n "$DSYMUTIL"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11367 $as_echo "$DSYMUTIL" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 fi
11372
11373
11374 fi
11375 test -n "$ac_cv_prog_DSYMUTIL" && break
11376 done
11377
11378 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11379 set dummy dsymutil
11380 if test $build = $host ; then
11381 DSYMUTIL="$2"
11382 else
11383 DSYMUTIL="${ncn_tool_prefix}$2"
11384 fi
11385 fi
11386
11387
11388
11389 if test -n "$LD"; then
11390 ac_cv_prog_LD=$LD
11391 elif test -n "$ac_cv_prog_LD"; then
11392 LD=$ac_cv_prog_LD
11393 fi
11394
11395 if test -n "$ac_cv_prog_LD"; then
11396 for ncn_progname in ld; do
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398 set dummy ${ncn_progname}; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11400 $as_echo_n "checking for $ac_word... " >&6; }
11401 if ${ac_cv_prog_LD+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 if test -n "$LD"; then
11405 ac_cv_prog_LD="$LD" # Let the user override the test.
11406 else
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414 ac_cv_prog_LD="${ncn_progname}"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 fi
11423 fi
11424 LD=$ac_cv_prog_LD
11425 if test -n "$LD"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11427 $as_echo "$LD" >&6; }
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430 $as_echo "no" >&6; }
11431 fi
11432
11433
11434 done
11435 fi
11436
11437 for ncn_progname in ld; do
11438 if test -n "$ncn_tool_prefix"; then
11439 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11440 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11442 $as_echo_n "checking for $ac_word... " >&6; }
11443 if ${ac_cv_prog_LD+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 if test -n "$LD"; then
11447 ac_cv_prog_LD="$LD" # Let the user override the test.
11448 else
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452 IFS=$as_save_IFS
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458 break 2
11459 fi
11460 done
11461 done
11462 IFS=$as_save_IFS
11463
11464 fi
11465 fi
11466 LD=$ac_cv_prog_LD
11467 if test -n "$LD"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11469 $as_echo "$LD" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476 fi
11477 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11479 set dummy ${ncn_progname}; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if ${ac_cv_prog_LD+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 if test -n "$LD"; then
11486 ac_cv_prog_LD="$LD" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_prog_LD="${ncn_progname}"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11498 fi
11499 done
11500 done
11501 IFS=$as_save_IFS
11502
11503 fi
11504 fi
11505 LD=$ac_cv_prog_LD
11506 if test -n "$LD"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11508 $as_echo "$LD" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11512 fi
11513
11514
11515 fi
11516 test -n "$ac_cv_prog_LD" && break
11517 done
11518
11519 if test -z "$ac_cv_prog_LD" ; then
11520 set dummy ld
11521 if test $build = $host ; then
11522 LD="$2"
11523 else
11524 LD="${ncn_tool_prefix}$2"
11525 fi
11526 fi
11527
11528
11529
11530 if test -n "$LIPO"; then
11531 ac_cv_prog_LIPO=$LIPO
11532 elif test -n "$ac_cv_prog_LIPO"; then
11533 LIPO=$ac_cv_prog_LIPO
11534 fi
11535
11536 if test -n "$ac_cv_prog_LIPO"; then
11537 for ncn_progname in lipo; do
11538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11539 set dummy ${ncn_progname}; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_prog_LIPO+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 if test -n "$LIPO"; then
11546 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11547 else
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555 ac_cv_prog_LIPO="${ncn_progname}"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11558 fi
11559 done
11560 done
11561 IFS=$as_save_IFS
11562
11563 fi
11564 fi
11565 LIPO=$ac_cv_prog_LIPO
11566 if test -n "$LIPO"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11568 $as_echo "$LIPO" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11572 fi
11573
11574
11575 done
11576 fi
11577
11578 for ncn_progname in lipo; do
11579 if test -n "$ncn_tool_prefix"; then
11580 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11581 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_prog_LIPO+:} false; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 if test -n "$LIPO"; then
11588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11592 do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11600 fi
11601 done
11602 done
11603 IFS=$as_save_IFS
11604
11605 fi
11606 fi
11607 LIPO=$ac_cv_prog_LIPO
11608 if test -n "$LIPO"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11610 $as_echo "$LIPO" >&6; }
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11614 fi
11615
11616
11617 fi
11618 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11620 set dummy ${ncn_progname}; ac_word=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11622 $as_echo_n "checking for $ac_word... " >&6; }
11623 if ${ac_cv_prog_LIPO+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 if test -n "$LIPO"; then
11627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11628 else
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11631 do
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636 ac_cv_prog_LIPO="${ncn_progname}"
11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11638 break 2
11639 fi
11640 done
11641 done
11642 IFS=$as_save_IFS
11643
11644 fi
11645 fi
11646 LIPO=$ac_cv_prog_LIPO
11647 if test -n "$LIPO"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11649 $as_echo "$LIPO" >&6; }
11650 else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; }
11653 fi
11654
11655
11656 fi
11657 test -n "$ac_cv_prog_LIPO" && break
11658 done
11659
11660 if test -z "$ac_cv_prog_LIPO" ; then
11661 set dummy lipo
11662 if test $build = $host ; then
11663 LIPO="$2"
11664 else
11665 LIPO="${ncn_tool_prefix}$2"
11666 fi
11667 fi
11668
11669
11670
11671 if test -n "$NM"; then
11672 ac_cv_prog_NM=$NM
11673 elif test -n "$ac_cv_prog_NM"; then
11674 NM=$ac_cv_prog_NM
11675 fi
11676
11677 if test -n "$ac_cv_prog_NM"; then
11678 for ncn_progname in nm; do
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_prog_NM+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test -n "$NM"; then
11687 ac_cv_prog_NM="$NM" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11691 do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696 ac_cv_prog_NM="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11699 fi
11700 done
11701 done
11702 IFS=$as_save_IFS
11703
11704 fi
11705 fi
11706 NM=$ac_cv_prog_NM
11707 if test -n "$NM"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11709 $as_echo "$NM" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713 fi
11714
11715
11716 done
11717 fi
11718
11719 for ncn_progname in nm; do
11720 if test -n "$ncn_tool_prefix"; then
11721 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_prog_NM+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 if test -n "$NM"; then
11729 ac_cv_prog_NM="$NM" # Let the user override the test.
11730 else
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11733 do
11734 IFS=$as_save_IFS
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11738 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11740 break 2
11741 fi
11742 done
11743 done
11744 IFS=$as_save_IFS
11745
11746 fi
11747 fi
11748 NM=$ac_cv_prog_NM
11749 if test -n "$NM"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11751 $as_echo "$NM" >&6; }
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755 fi
11756
11757
11758 fi
11759 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11761 set dummy ${ncn_progname}; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 $as_echo_n "checking for $ac_word... " >&6; }
11764 if ${ac_cv_prog_NM+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 if test -n "$NM"; then
11768 ac_cv_prog_NM="$NM" # Let the user override the test.
11769 else
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11772 do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 ac_cv_prog_NM="${ncn_progname}"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11780 fi
11781 done
11782 done
11783 IFS=$as_save_IFS
11784
11785 fi
11786 fi
11787 NM=$ac_cv_prog_NM
11788 if test -n "$NM"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11790 $as_echo "$NM" >&6; }
11791 else
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11793 $as_echo "no" >&6; }
11794 fi
11795
11796
11797 fi
11798 test -n "$ac_cv_prog_NM" && break
11799 done
11800
11801 if test -z "$ac_cv_prog_NM" ; then
11802 set dummy nm
11803 if test $build = $host ; then
11804 NM="$2"
11805 else
11806 NM="${ncn_tool_prefix}$2"
11807 fi
11808 fi
11809
11810
11811
11812 if test -n "$RANLIB"; then
11813 ac_cv_prog_RANLIB=$RANLIB
11814 elif test -n "$ac_cv_prog_RANLIB"; then
11815 RANLIB=$ac_cv_prog_RANLIB
11816 fi
11817
11818 if test -n "$ac_cv_prog_RANLIB"; then
11819 for ncn_progname in ranlib; do
11820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11821 set dummy ${ncn_progname}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_RANLIB+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 if test -n "$RANLIB"; then
11828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11829 else
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_RANLIB="${ncn_progname}"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11840 fi
11841 done
11842 done
11843 IFS=$as_save_IFS
11844
11845 fi
11846 fi
11847 RANLIB=$ac_cv_prog_RANLIB
11848 if test -n "$RANLIB"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11850 $as_echo "$RANLIB" >&6; }
11851 else
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854 fi
11855
11856
11857 done
11858 fi
11859
11860 for ncn_progname in ranlib; do
11861 if test -n "$ncn_tool_prefix"; then
11862 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11863 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if ${ac_cv_prog_RANLIB+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 if test -n "$RANLIB"; then
11870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883 done
11884 done
11885 IFS=$as_save_IFS
11886
11887 fi
11888 fi
11889 RANLIB=$ac_cv_prog_RANLIB
11890 if test -n "$RANLIB"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11892 $as_echo "$RANLIB" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897
11898
11899 fi
11900 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11902 set dummy ${ncn_progname}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904 $as_echo_n "checking for $ac_word... " >&6; }
11905 if ${ac_cv_prog_RANLIB+:} false; then :
11906 $as_echo_n "(cached) " >&6
11907 else
11908 if test -n "$RANLIB"; then
11909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11910 else
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11913 do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11918 ac_cv_prog_RANLIB="${ncn_progname}"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 break 2
11921 fi
11922 done
11923 done
11924 IFS=$as_save_IFS
11925
11926 fi
11927 fi
11928 RANLIB=$ac_cv_prog_RANLIB
11929 if test -n "$RANLIB"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11931 $as_echo "$RANLIB" >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936
11937
11938 fi
11939 test -n "$ac_cv_prog_RANLIB" && break
11940 done
11941
11942 if test -z "$ac_cv_prog_RANLIB" ; then
11943 RANLIB="true"
11944 fi
11945
11946
11947
11948 if test -n "$STRIP"; then
11949 ac_cv_prog_STRIP=$STRIP
11950 elif test -n "$ac_cv_prog_STRIP"; then
11951 STRIP=$ac_cv_prog_STRIP
11952 fi
11953
11954 if test -n "$ac_cv_prog_STRIP"; then
11955 for ncn_progname in strip; do
11956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11957 set dummy ${ncn_progname}; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_STRIP+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 if test -n "$STRIP"; then
11964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 ac_cv_prog_STRIP="${ncn_progname}"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977 done
11978 done
11979 IFS=$as_save_IFS
11980
11981 fi
11982 fi
11983 STRIP=$ac_cv_prog_STRIP
11984 if test -n "$STRIP"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11986 $as_echo "$STRIP" >&6; }
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11990 fi
11991
11992
11993 done
11994 fi
11995
11996 for ncn_progname in strip; do
11997 if test -n "$ncn_tool_prefix"; then
11998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12001 $as_echo_n "checking for $ac_word... " >&6; }
12002 if ${ac_cv_prog_STRIP+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 if test -n "$STRIP"; then
12006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12007 else
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12010 do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12018 fi
12019 done
12020 done
12021 IFS=$as_save_IFS
12022
12023 fi
12024 fi
12025 STRIP=$ac_cv_prog_STRIP
12026 if test -n "$STRIP"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12028 $as_echo "$STRIP" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12032 fi
12033
12034
12035 fi
12036 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12038 set dummy ${ncn_progname}; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_prog_STRIP+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -n "$STRIP"; then
12045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054 ac_cv_prog_STRIP="${ncn_progname}"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12057 fi
12058 done
12059 done
12060 IFS=$as_save_IFS
12061
12062 fi
12063 fi
12064 STRIP=$ac_cv_prog_STRIP
12065 if test -n "$STRIP"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12067 $as_echo "$STRIP" >&6; }
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072
12073
12074 fi
12075 test -n "$ac_cv_prog_STRIP" && break
12076 done
12077
12078 if test -z "$ac_cv_prog_STRIP" ; then
12079 STRIP="true"
12080 fi
12081
12082
12083
12084 if test -n "$WINDRES"; then
12085 ac_cv_prog_WINDRES=$WINDRES
12086 elif test -n "$ac_cv_prog_WINDRES"; then
12087 WINDRES=$ac_cv_prog_WINDRES
12088 fi
12089
12090 if test -n "$ac_cv_prog_WINDRES"; then
12091 for ncn_progname in windres; do
12092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12093 set dummy ${ncn_progname}; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_prog_WINDRES+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 if test -n "$WINDRES"; then
12100 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12101 else
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 ac_cv_prog_WINDRES="${ncn_progname}"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113 done
12114 done
12115 IFS=$as_save_IFS
12116
12117 fi
12118 fi
12119 WINDRES=$ac_cv_prog_WINDRES
12120 if test -n "$WINDRES"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12122 $as_echo "$WINDRES" >&6; }
12123 else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12126 fi
12127
12128
12129 done
12130 fi
12131
12132 for ncn_progname in windres; do
12133 if test -n "$ncn_tool_prefix"; then
12134 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12135 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_WINDRES+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 if test -n "$WINDRES"; then
12142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12143 else
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12146 do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 break 2
12154 fi
12155 done
12156 done
12157 IFS=$as_save_IFS
12158
12159 fi
12160 fi
12161 WINDRES=$ac_cv_prog_WINDRES
12162 if test -n "$WINDRES"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12164 $as_echo "$WINDRES" >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171 fi
12172 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12174 set dummy ${ncn_progname}; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_WINDRES+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 if test -n "$WINDRES"; then
12181 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12182 else
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12185 do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_WINDRES="${ncn_progname}"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 break 2
12193 fi
12194 done
12195 done
12196 IFS=$as_save_IFS
12197
12198 fi
12199 fi
12200 WINDRES=$ac_cv_prog_WINDRES
12201 if test -n "$WINDRES"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12203 $as_echo "$WINDRES" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209
12210 fi
12211 test -n "$ac_cv_prog_WINDRES" && break
12212 done
12213
12214 if test -z "$ac_cv_prog_WINDRES" ; then
12215 set dummy windres
12216 if test $build = $host ; then
12217 WINDRES="$2"
12218 else
12219 WINDRES="${ncn_tool_prefix}$2"
12220 fi
12221 fi
12222
12223
12224
12225 if test -n "$WINDMC"; then
12226 ac_cv_prog_WINDMC=$WINDMC
12227 elif test -n "$ac_cv_prog_WINDMC"; then
12228 WINDMC=$ac_cv_prog_WINDMC
12229 fi
12230
12231 if test -n "$ac_cv_prog_WINDMC"; then
12232 for ncn_progname in windmc; do
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_WINDMC+:} false; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 if test -n "$WINDMC"; then
12241 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_WINDMC="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12253 fi
12254 done
12255 done
12256 IFS=$as_save_IFS
12257
12258 fi
12259 fi
12260 WINDMC=$ac_cv_prog_WINDMC
12261 if test -n "$WINDMC"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12263 $as_echo "$WINDMC" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 done
12271 fi
12272
12273 for ncn_progname in windmc; do
12274 if test -n "$ncn_tool_prefix"; then
12275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_WINDMC+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test -n "$WINDMC"; then
12283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12287 do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12295 fi
12296 done
12297 done
12298 IFS=$as_save_IFS
12299
12300 fi
12301 fi
12302 WINDMC=$ac_cv_prog_WINDMC
12303 if test -n "$WINDMC"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12305 $as_echo "$WINDMC" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12309 fi
12310
12311
12312 fi
12313 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_prog_WINDMC+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$WINDMC"; then
12322 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_WINDMC="${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335 done
12336 done
12337 IFS=$as_save_IFS
12338
12339 fi
12340 fi
12341 WINDMC=$ac_cv_prog_WINDMC
12342 if test -n "$WINDMC"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12344 $as_echo "$WINDMC" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349
12350
12351 fi
12352 test -n "$ac_cv_prog_WINDMC" && break
12353 done
12354
12355 if test -z "$ac_cv_prog_WINDMC" ; then
12356 set dummy windmc
12357 if test $build = $host ; then
12358 WINDMC="$2"
12359 else
12360 WINDMC="${ncn_tool_prefix}$2"
12361 fi
12362 fi
12363
12364
12365
12366 if test -n "$OBJCOPY"; then
12367 ac_cv_prog_OBJCOPY=$OBJCOPY
12368 elif test -n "$ac_cv_prog_OBJCOPY"; then
12369 OBJCOPY=$ac_cv_prog_OBJCOPY
12370 fi
12371
12372 if test -n "$ac_cv_prog_OBJCOPY"; then
12373 for ncn_progname in objcopy; do
12374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377 $as_echo_n "checking for $ac_word... " >&6; }
12378 if ${ac_cv_prog_OBJCOPY+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test -n "$OBJCOPY"; then
12382 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_OBJCOPY="${ncn_progname}"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 OBJCOPY=$ac_cv_prog_OBJCOPY
12402 if test -n "$OBJCOPY"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12404 $as_echo "$OBJCOPY" >&6; }
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409
12410
12411 done
12412 fi
12413
12414 for ncn_progname in objcopy; do
12415 if test -n "$ncn_tool_prefix"; then
12416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if ${ac_cv_prog_OBJCOPY+:} false; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 if test -n "$OBJCOPY"; then
12424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12425 else
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $PATH
12428 do
12429 IFS=$as_save_IFS
12430 test -z "$as_dir" && as_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12433 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435 break 2
12436 fi
12437 done
12438 done
12439 IFS=$as_save_IFS
12440
12441 fi
12442 fi
12443 OBJCOPY=$ac_cv_prog_OBJCOPY
12444 if test -n "$OBJCOPY"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12446 $as_echo "$OBJCOPY" >&6; }
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12450 fi
12451
12452
12453 fi
12454 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12456 set dummy ${ncn_progname}; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_OBJCOPY+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 if test -n "$OBJCOPY"; then
12463 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12472 ac_cv_prog_OBJCOPY="${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476 done
12477 done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 OBJCOPY=$ac_cv_prog_OBJCOPY
12483 if test -n "$OBJCOPY"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12485 $as_echo "$OBJCOPY" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12489 fi
12490
12491
12492 fi
12493 test -n "$ac_cv_prog_OBJCOPY" && break
12494 done
12495
12496 if test -z "$ac_cv_prog_OBJCOPY" ; then
12497 set dummy objcopy
12498 if test $build = $host ; then
12499 OBJCOPY="$2"
12500 else
12501 OBJCOPY="${ncn_tool_prefix}$2"
12502 fi
12503 fi
12504
12505
12506
12507 if test -n "$OBJDUMP"; then
12508 ac_cv_prog_OBJDUMP=$OBJDUMP
12509 elif test -n "$ac_cv_prog_OBJDUMP"; then
12510 OBJDUMP=$ac_cv_prog_OBJDUMP
12511 fi
12512
12513 if test -n "$ac_cv_prog_OBJDUMP"; then
12514 for ncn_progname in objdump; do
12515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12516 set dummy ${ncn_progname}; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_prog_OBJDUMP+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 if test -n "$OBJDUMP"; then
12523 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12524 else
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_OBJDUMP="${ncn_progname}"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12535 fi
12536 done
12537 done
12538 IFS=$as_save_IFS
12539
12540 fi
12541 fi
12542 OBJDUMP=$ac_cv_prog_OBJDUMP
12543 if test -n "$OBJDUMP"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12545 $as_echo "$OBJDUMP" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552 done
12553 fi
12554
12555 for ncn_progname in objdump; do
12556 if test -n "$ncn_tool_prefix"; then
12557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_prog_OBJDUMP+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 if test -n "$OBJDUMP"; then
12565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12566 else
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12577 fi
12578 done
12579 done
12580 IFS=$as_save_IFS
12581
12582 fi
12583 fi
12584 OBJDUMP=$ac_cv_prog_OBJDUMP
12585 if test -n "$OBJDUMP"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12587 $as_echo "$OBJDUMP" >&6; }
12588 else
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592
12593
12594 fi
12595 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12597 set dummy ${ncn_progname}; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if ${ac_cv_prog_OBJDUMP+:} false; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 if test -n "$OBJDUMP"; then
12604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12605 else
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12608 do
12609 IFS=$as_save_IFS
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_prog_OBJDUMP="${ncn_progname}"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 break 2
12616 fi
12617 done
12618 done
12619 IFS=$as_save_IFS
12620
12621 fi
12622 fi
12623 OBJDUMP=$ac_cv_prog_OBJDUMP
12624 if test -n "$OBJDUMP"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12626 $as_echo "$OBJDUMP" >&6; }
12627 else
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630 fi
12631
12632
12633 fi
12634 test -n "$ac_cv_prog_OBJDUMP" && break
12635 done
12636
12637 if test -z "$ac_cv_prog_OBJDUMP" ; then
12638 set dummy objdump
12639 if test $build = $host ; then
12640 OBJDUMP="$2"
12641 else
12642 OBJDUMP="${ncn_tool_prefix}$2"
12643 fi
12644 fi
12645
12646
12647
12648 if test -n "$OTOOL"; then
12649 ac_cv_prog_OTOOL=$OTOOL
12650 elif test -n "$ac_cv_prog_OTOOL"; then
12651 OTOOL=$ac_cv_prog_OTOOL
12652 fi
12653
12654 if test -n "$ac_cv_prog_OTOOL"; then
12655 for ncn_progname in otool; do
12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if ${ac_cv_prog_OTOOL+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test -n "$OTOOL"; then
12664 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12668 do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673 ac_cv_prog_OTOOL="${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677 done
12678 done
12679 IFS=$as_save_IFS
12680
12681 fi
12682 fi
12683 OTOOL=$ac_cv_prog_OTOOL
12684 if test -n "$OTOOL"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12686 $as_echo "$OTOOL" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12690 fi
12691
12692
12693 done
12694 fi
12695
12696 for ncn_progname in otool; do
12697 if test -n "$ncn_tool_prefix"; then
12698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12699 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701 $as_echo_n "checking for $ac_word... " >&6; }
12702 if ${ac_cv_prog_OTOOL+:} false; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test -n "$OTOOL"; then
12706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12707 else
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719 done
12720 done
12721 IFS=$as_save_IFS
12722
12723 fi
12724 fi
12725 OTOOL=$ac_cv_prog_OTOOL
12726 if test -n "$OTOOL"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12728 $as_echo "$OTOOL" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 $as_echo "no" >&6; }
12732 fi
12733
12734
12735 fi
12736 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12738 set dummy ${ncn_progname}; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_prog_OTOOL+:} false; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 if test -n "$OTOOL"; then
12745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12746 else
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12749 do
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754 ac_cv_prog_OTOOL="${ncn_progname}"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12757 fi
12758 done
12759 done
12760 IFS=$as_save_IFS
12761
12762 fi
12763 fi
12764 OTOOL=$ac_cv_prog_OTOOL
12765 if test -n "$OTOOL"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12767 $as_echo "$OTOOL" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12771 fi
12772
12773
12774 fi
12775 test -n "$ac_cv_prog_OTOOL" && break
12776 done
12777
12778 if test -z "$ac_cv_prog_OTOOL" ; then
12779 set dummy otool
12780 if test $build = $host ; then
12781 OTOOL="$2"
12782 else
12783 OTOOL="${ncn_tool_prefix}$2"
12784 fi
12785 fi
12786
12787
12788
12789 if test -n "$READELF"; then
12790 ac_cv_prog_READELF=$READELF
12791 elif test -n "$ac_cv_prog_READELF"; then
12792 READELF=$ac_cv_prog_READELF
12793 fi
12794
12795 if test -n "$ac_cv_prog_READELF"; then
12796 for ncn_progname in readelf; do
12797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12798 set dummy ${ncn_progname}; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if ${ac_cv_prog_READELF+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test -n "$READELF"; then
12805 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12806 else
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_READELF="${ncn_progname}"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 READELF=$ac_cv_prog_READELF
12825 if test -n "$READELF"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12827 $as_echo "$READELF" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 fi
12832
12833
12834 done
12835 fi
12836
12837 for ncn_progname in readelf; do
12838 if test -n "$ncn_tool_prefix"; then
12839 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12840 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_prog_READELF+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test -n "$READELF"; then
12847 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12848 else
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12851 do
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12859 fi
12860 done
12861 done
12862 IFS=$as_save_IFS
12863
12864 fi
12865 fi
12866 READELF=$ac_cv_prog_READELF
12867 if test -n "$READELF"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12869 $as_echo "$READELF" >&6; }
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874
12875
12876 fi
12877 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12879 set dummy ${ncn_progname}; ac_word=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 $as_echo_n "checking for $ac_word... " >&6; }
12882 if ${ac_cv_prog_READELF+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 if test -n "$READELF"; then
12886 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12887 else
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12890 do
12891 IFS=$as_save_IFS
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_prog_READELF="${ncn_progname}"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 break 2
12898 fi
12899 done
12900 done
12901 IFS=$as_save_IFS
12902
12903 fi
12904 fi
12905 READELF=$ac_cv_prog_READELF
12906 if test -n "$READELF"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12908 $as_echo "$READELF" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913
12914
12915 fi
12916 test -n "$ac_cv_prog_READELF" && break
12917 done
12918
12919 if test -z "$ac_cv_prog_READELF" ; then
12920 set dummy readelf
12921 if test $build = $host ; then
12922 READELF="$2"
12923 else
12924 READELF="${ncn_tool_prefix}$2"
12925 fi
12926 fi
12927
12928
12929
12930
12931
12932
12933
12934
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12936 $as_echo_n "checking for -plugin option... " >&6; }
12937
12938 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12939 plugin_option=
12940 for plugin in $plugin_names; do
12941 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12942 if test x$plugin_so = x$plugin; then
12943 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12944 fi
12945 if test x$plugin_so != x$plugin; then
12946 plugin_option="--plugin $plugin_so"
12947 break
12948 fi
12949 done
12950 if test -n "$ac_tool_prefix"; then
12951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12952 set dummy ${ac_tool_prefix}ar; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 $as_echo_n "checking for $ac_word... " >&6; }
12955 if ${ac_cv_prog_AR+:} false; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 if test -n "$AR"; then
12959 ac_cv_prog_AR="$AR" # Let the user override the test.
12960 else
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968 ac_cv_prog_AR="${ac_tool_prefix}ar"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972 done
12973 done
12974 IFS=$as_save_IFS
12975
12976 fi
12977 fi
12978 AR=$ac_cv_prog_AR
12979 if test -n "$AR"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12981 $as_echo "$AR" >&6; }
12982 else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985 fi
12986
12987
12988 fi
12989 if test -z "$ac_cv_prog_AR"; then
12990 ac_ct_AR=$AR
12991 # Extract the first word of "ar", so it can be a program name with args.
12992 set dummy ar; ac_word=$2
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994 $as_echo_n "checking for $ac_word... " >&6; }
12995 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 if test -n "$ac_ct_AR"; then
12999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13000 else
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13003 do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13008 ac_cv_prog_ac_ct_AR="ar"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 break 2
13011 fi
13012 done
13013 done
13014 IFS=$as_save_IFS
13015
13016 fi
13017 fi
13018 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13019 if test -n "$ac_ct_AR"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13021 $as_echo "$ac_ct_AR" >&6; }
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13025 fi
13026
13027 if test "x$ac_ct_AR" = x; then
13028 AR=""
13029 else
13030 case $cross_compiling:$ac_tool_warned in
13031 yes:)
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13034 ac_tool_warned=yes ;;
13035 esac
13036 AR=$ac_ct_AR
13037 fi
13038 else
13039 AR="$ac_cv_prog_AR"
13040 fi
13041
13042 if test "${AR}" = "" ; then
13043 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13044 fi
13045 touch conftest.c
13046 ${AR} $plugin_option rc conftest.a conftest.c
13047 if test "$?" != 0; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13049 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13050 plugin_option=
13051 fi
13052 rm -f conftest.*
13053 if test -n "$plugin_option"; then
13054 PLUGIN_OPTION="$plugin_option"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13056 $as_echo "$plugin_option" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062 AR_PLUGIN_OPTION=
13063 RANLIB_PLUGIN_OPTION=
13064 if test -n "$PLUGIN_OPTION"; then
13065 if $AR --help 2>&1 | grep -q "\--plugin"; then
13066 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13067 fi
13068 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13069 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13070 fi
13071 fi
13072
13073
13074
13075 # Target tools.
13076
13077 # Check whether --with-build-time-tools was given.
13078 if test "${with_build_time_tools+set}" = set; then :
13079 withval=$with_build_time_tools; case x"$withval" in
13080 x/*) ;;
13081 *)
13082 with_build_time_tools=
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13084 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
13085 ;;
13086 esac
13087 else
13088 with_build_time_tools=
13089 fi
13090
13091
13092
13093
13094 if test -n "$CC_FOR_TARGET"; then
13095 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13096 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13097 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13098 fi
13099
13100 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13101 for ncn_progname in cc gcc; do
13102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13103 set dummy ${ncn_progname}; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 if test -n "$CC_FOR_TARGET"; then
13110 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13111 else
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13114 do
13115 IFS=$as_save_IFS
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13121 break 2
13122 fi
13123 done
13124 done
13125 IFS=$as_save_IFS
13126
13127 fi
13128 fi
13129 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13130 if test -n "$CC_FOR_TARGET"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13132 $as_echo "$CC_FOR_TARGET" >&6; }
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 fi
13137
13138
13139 done
13140 fi
13141
13142 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13143 for ncn_progname in cc gcc; do
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13145 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13146 if test -x $with_build_time_tools/${ncn_progname}; then
13147 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149 $as_echo "yes" >&6; }
13150 break
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155 done
13156 fi
13157
13158 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13159 for ncn_progname in cc gcc; do
13160 if test -n "$ncn_target_tool_prefix"; then
13161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13162 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 if test -n "$CC_FOR_TARGET"; then
13169 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13170 else
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13178 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13181 fi
13182 done
13183 done
13184 IFS=$as_save_IFS
13185
13186 fi
13187 fi
13188 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13189 if test -n "$CC_FOR_TARGET"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13191 $as_echo "$CC_FOR_TARGET" >&6; }
13192 else
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195 fi
13196
13197
13198 fi
13199 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13201 set dummy ${ncn_progname}; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 if test -n "$CC_FOR_TARGET"; then
13208 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13212 do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221 done
13222 done
13223 IFS=$as_save_IFS
13224
13225 fi
13226 fi
13227 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13228 if test -n "$CC_FOR_TARGET"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13230 $as_echo "$CC_FOR_TARGET" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13234 fi
13235
13236
13237 fi
13238 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13239 done
13240 fi
13241
13242 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13243 set dummy cc gcc
13244 if test $build = $target ; then
13245 CC_FOR_TARGET="$2"
13246 else
13247 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13248 fi
13249 else
13250 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13251 fi
13252
13253
13254
13255 if test -n "$CXX_FOR_TARGET"; then
13256 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13257 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13258 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13259 fi
13260
13261 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13262 for ncn_progname in c++ g++ cxx gxx; do
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 if test -n "$CXX_FOR_TARGET"; then
13271 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13272 else
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13275 do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284 done
13285 done
13286 IFS=$as_save_IFS
13287
13288 fi
13289 fi
13290 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13291 if test -n "$CXX_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13293 $as_echo "$CXX_FOR_TARGET" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298
13299
13300 done
13301 fi
13302
13303 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13304 for ncn_progname in c++ g++ cxx gxx; do
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13306 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13307 if test -x $with_build_time_tools/${ncn_progname}; then
13308 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13310 $as_echo "yes" >&6; }
13311 break
13312 else
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 fi
13316 done
13317 fi
13318
13319 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13320 for ncn_progname in c++ g++ cxx gxx; do
13321 if test -n "$ncn_target_tool_prefix"; then
13322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13323 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325 $as_echo_n "checking for $ac_word... " >&6; }
13326 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test -n "$CXX_FOR_TARGET"; then
13330 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13331 else
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341 break 2
13342 fi
13343 done
13344 done
13345 IFS=$as_save_IFS
13346
13347 fi
13348 fi
13349 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13350 if test -n "$CXX_FOR_TARGET"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13352 $as_echo "$CXX_FOR_TARGET" >&6; }
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356 fi
13357
13358
13359 fi
13360 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$CXX_FOR_TARGET"; then
13369 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13389 if test -n "$CXX_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13391 $as_echo "$CXX_FOR_TARGET" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398 fi
13399 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13400 done
13401 fi
13402
13403 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13404 set dummy c++ g++ cxx gxx
13405 if test $build = $target ; then
13406 CXX_FOR_TARGET="$2"
13407 else
13408 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13409 fi
13410 else
13411 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13412 fi
13413
13414
13415
13416 if test -n "$GCC_FOR_TARGET"; then
13417 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13418 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13419 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13420 fi
13421
13422 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13423 for ncn_progname in gcc; do
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 if test -n "$GCC_FOR_TARGET"; then
13432 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13436 do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13444 fi
13445 done
13446 done
13447 IFS=$as_save_IFS
13448
13449 fi
13450 fi
13451 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13452 if test -n "$GCC_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13454 $as_echo "$GCC_FOR_TARGET" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13458 fi
13459
13460
13461 done
13462 fi
13463
13464 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13465 for ncn_progname in gcc; do
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13467 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13468 if test -x $with_build_time_tools/${ncn_progname}; then
13469 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13471 $as_echo "yes" >&6; }
13472 break
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13476 fi
13477 done
13478 fi
13479
13480 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13481 for ncn_progname in gcc; do
13482 if test -n "$ncn_target_tool_prefix"; then
13483 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13484 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13486 $as_echo_n "checking for $ac_word... " >&6; }
13487 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 if test -n "$GCC_FOR_TARGET"; then
13491 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13492 else
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13495 do
13496 IFS=$as_save_IFS
13497 test -z "$as_dir" && as_dir=.
13498 for ac_exec_ext in '' $ac_executable_extensions; do
13499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13500 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13502 break 2
13503 fi
13504 done
13505 done
13506 IFS=$as_save_IFS
13507
13508 fi
13509 fi
13510 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13511 if test -n "$GCC_FOR_TARGET"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13513 $as_echo "$GCC_FOR_TARGET" >&6; }
13514 else
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 fi
13518
13519
13520 fi
13521 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523 set dummy ${ncn_progname}; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 if test -n "$GCC_FOR_TARGET"; then
13530 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13534 do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13542 fi
13543 done
13544 done
13545 IFS=$as_save_IFS
13546
13547 fi
13548 fi
13549 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13550 if test -n "$GCC_FOR_TARGET"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13552 $as_echo "$GCC_FOR_TARGET" >&6; }
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556 fi
13557
13558
13559 fi
13560 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13561 done
13562 fi
13563
13564 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13565 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13566 else
13567 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13568 fi
13569
13570
13571
13572 if test -n "$GFORTRAN_FOR_TARGET"; then
13573 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13574 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13575 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13576 fi
13577
13578 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13579 for ncn_progname in gfortran; do
13580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13581 set dummy ${ncn_progname}; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583 $as_echo_n "checking for $ac_word... " >&6; }
13584 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 if test -n "$GFORTRAN_FOR_TARGET"; then
13588 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13589 else
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13592 do
13593 IFS=$as_save_IFS
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599 break 2
13600 fi
13601 done
13602 done
13603 IFS=$as_save_IFS
13604
13605 fi
13606 fi
13607 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13608 if test -n "$GFORTRAN_FOR_TARGET"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13610 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13611 else
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613 $as_echo "no" >&6; }
13614 fi
13615
13616
13617 done
13618 fi
13619
13620 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13621 for ncn_progname in gfortran; do
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13623 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13624 if test -x $with_build_time_tools/${ncn_progname}; then
13625 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 break
13629 else
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13632 fi
13633 done
13634 fi
13635
13636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13637 for ncn_progname in gfortran; do
13638 if test -n "$ncn_target_tool_prefix"; then
13639 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 if test -n "$GFORTRAN_FOR_TARGET"; then
13647 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13648 else
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13651 do
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13659 fi
13660 done
13661 done
13662 IFS=$as_save_IFS
13663
13664 fi
13665 fi
13666 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13667 if test -n "$GFORTRAN_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13669 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13670 else
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13672 $as_echo "no" >&6; }
13673 fi
13674
13675
13676 fi
13677 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13679 set dummy ${ncn_progname}; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13681 $as_echo_n "checking for $ac_word... " >&6; }
13682 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 if test -n "$GFORTRAN_FOR_TARGET"; then
13686 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13687 else
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13690 do
13691 IFS=$as_save_IFS
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13697 break 2
13698 fi
13699 done
13700 done
13701 IFS=$as_save_IFS
13702
13703 fi
13704 fi
13705 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13706 if test -n "$GFORTRAN_FOR_TARGET"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13708 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13709 else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 fi
13713
13714
13715 fi
13716 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13717 done
13718 fi
13719
13720 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13721 set dummy gfortran
13722 if test $build = $target ; then
13723 GFORTRAN_FOR_TARGET="$2"
13724 else
13725 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13726 fi
13727 else
13728 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13729 fi
13730
13731
13732
13733 if test -n "$GOC_FOR_TARGET"; then
13734 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13735 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13736 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13737 fi
13738
13739 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13740 for ncn_progname in gccgo; do
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742 set dummy ${ncn_progname}; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 if test -n "$GOC_FOR_TARGET"; then
13749 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13750 else
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13753 do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762 done
13763 done
13764 IFS=$as_save_IFS
13765
13766 fi
13767 fi
13768 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13769 if test -n "$GOC_FOR_TARGET"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13771 $as_echo "$GOC_FOR_TARGET" >&6; }
13772 else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13775 fi
13776
13777
13778 done
13779 fi
13780
13781 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13782 for ncn_progname in gccgo; do
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13784 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13785 if test -x $with_build_time_tools/${ncn_progname}; then
13786 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13788 $as_echo "yes" >&6; }
13789 break
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13793 fi
13794 done
13795 fi
13796
13797 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13798 for ncn_progname in gccgo; do
13799 if test -n "$ncn_target_tool_prefix"; then
13800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13801 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 if test -n "$GOC_FOR_TARGET"; then
13808 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13809 else
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13812 do
13813 IFS=$as_save_IFS
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 break 2
13820 fi
13821 done
13822 done
13823 IFS=$as_save_IFS
13824
13825 fi
13826 fi
13827 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13828 if test -n "$GOC_FOR_TARGET"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13830 $as_echo "$GOC_FOR_TARGET" >&6; }
13831 else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 $as_echo "no" >&6; }
13834 fi
13835
13836
13837 fi
13838 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13840 set dummy ${ncn_progname}; ac_word=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842 $as_echo_n "checking for $ac_word... " >&6; }
13843 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 if test -n "$GOC_FOR_TARGET"; then
13847 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13848 else
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864 fi
13865 fi
13866 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13867 if test -n "$GOC_FOR_TARGET"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13869 $as_echo "$GOC_FOR_TARGET" >&6; }
13870 else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13873 fi
13874
13875
13876 fi
13877 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13878 done
13879 fi
13880
13881 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13882 set dummy gccgo
13883 if test $build = $target ; then
13884 GOC_FOR_TARGET="$2"
13885 else
13886 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13887 fi
13888 else
13889 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13890 fi
13891
13892
13893
13894 if test -n "$GDC_FOR_TARGET"; then
13895 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13896 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13897 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13898 fi
13899
13900 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13901 for ncn_progname in gdc; do
13902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13903 set dummy ${ncn_progname}; ac_word=$2
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13905 $as_echo_n "checking for $ac_word... " >&6; }
13906 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 if test -n "$GDC_FOR_TARGET"; then
13910 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13911 else
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913 for as_dir in $PATH
13914 do
13915 IFS=$as_save_IFS
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13919 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13921 break 2
13922 fi
13923 done
13924 done
13925 IFS=$as_save_IFS
13926
13927 fi
13928 fi
13929 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13930 if test -n "$GDC_FOR_TARGET"; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13932 $as_echo "$GDC_FOR_TARGET" >&6; }
13933 else
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13936 fi
13937
13938
13939 done
13940 fi
13941
13942 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13943 for ncn_progname in gdc; do
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13946 if test -x $with_build_time_tools/${ncn_progname}; then
13947 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13949 $as_echo "yes" >&6; }
13950 break
13951 else
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953 $as_echo "no" >&6; }
13954 fi
13955 done
13956 fi
13957
13958 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13959 for ncn_progname in gdc; do
13960 if test -n "$ncn_target_tool_prefix"; then
13961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964 $as_echo_n "checking for $ac_word... " >&6; }
13965 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test -n "$GDC_FOR_TARGET"; then
13969 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13970 else
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13973 do
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 break 2
13981 fi
13982 done
13983 done
13984 IFS=$as_save_IFS
13985
13986 fi
13987 fi
13988 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13989 if test -n "$GDC_FOR_TARGET"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13991 $as_echo "$GDC_FOR_TARGET" >&6; }
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13995 fi
13996
13997
13998 fi
13999 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14001 set dummy ${ncn_progname}; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 if test -n "$GDC_FOR_TARGET"; then
14008 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14009 else
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14012 do
14013 IFS=$as_save_IFS
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14017 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14019 break 2
14020 fi
14021 done
14022 done
14023 IFS=$as_save_IFS
14024
14025 fi
14026 fi
14027 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14028 if test -n "$GDC_FOR_TARGET"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14030 $as_echo "$GDC_FOR_TARGET" >&6; }
14031 else
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 fi
14035
14036
14037 fi
14038 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14039 done
14040 fi
14041
14042 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14043 set dummy gdc
14044 if test $build = $target ; then
14045 GDC_FOR_TARGET="$2"
14046 else
14047 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14048 fi
14049 else
14050 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14051 fi
14052
14053
14054
14055 cat > conftest.c << \EOF
14056 #ifdef __GNUC__
14057 gcc_yay;
14058 #endif
14059 EOF
14060 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14061 have_gcc_for_target=yes
14062 else
14063 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14064 have_gcc_for_target=no
14065 fi
14066 rm conftest.c
14067
14068
14069
14070
14071 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14072 if test -n "$with_build_time_tools"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14074 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14075 if test -x $with_build_time_tools/ar; then
14076 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14077 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14079 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14083 fi
14084 elif test $build != $host && test $have_gcc_for_target = yes; then
14085 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14086 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14087 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14088 fi
14089 fi
14090 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14091 # Extract the first word of "ar", so it can be a program name with args.
14092 set dummy ar; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 case $AR_FOR_TARGET in
14099 [\\/]* | ?:[\\/]*)
14100 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14101 ;;
14102 *)
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $gcc_cv_tool_dirs
14105 do
14106 IFS=$as_save_IFS
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 break 2
14113 fi
14114 done
14115 done
14116 IFS=$as_save_IFS
14117
14118 ;;
14119 esac
14120 fi
14121 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14122 if test -n "$AR_FOR_TARGET"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14124 $as_echo "$AR_FOR_TARGET" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14128 fi
14129
14130
14131 fi
14132 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14133
14134
14135 if test -n "$AR_FOR_TARGET"; then
14136 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14137 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14138 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14139 fi
14140
14141 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14142 for ncn_progname in ar; do
14143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14144 set dummy ${ncn_progname}; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 $as_echo_n "checking for $ac_word... " >&6; }
14147 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 if test -n "$AR_FOR_TARGET"; then
14151 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14152 else
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14155 do
14156 IFS=$as_save_IFS
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14160 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 break 2
14163 fi
14164 done
14165 done
14166 IFS=$as_save_IFS
14167
14168 fi
14169 fi
14170 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14171 if test -n "$AR_FOR_TARGET"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14173 $as_echo "$AR_FOR_TARGET" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14177 fi
14178
14179
14180 done
14181 fi
14182
14183 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14184 for ncn_progname in ar; do
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14186 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14187 if test -x $with_build_time_tools/${ncn_progname}; then
14188 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190 $as_echo "yes" >&6; }
14191 break
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14195 fi
14196 done
14197 fi
14198
14199 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14200 for ncn_progname in ar; do
14201 if test -n "$ncn_target_tool_prefix"; then
14202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14203 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14205 $as_echo_n "checking for $ac_word... " >&6; }
14206 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 if test -n "$AR_FOR_TARGET"; then
14210 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14211 else
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14214 do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14222 fi
14223 done
14224 done
14225 IFS=$as_save_IFS
14226
14227 fi
14228 fi
14229 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14230 if test -n "$AR_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14232 $as_echo "$AR_FOR_TARGET" >&6; }
14233 else
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14236 fi
14237
14238
14239 fi
14240 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14242 set dummy ${ncn_progname}; ac_word=$2
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14244 $as_echo_n "checking for $ac_word... " >&6; }
14245 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14246 $as_echo_n "(cached) " >&6
14247 else
14248 if test -n "$AR_FOR_TARGET"; then
14249 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14250 else
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14253 do
14254 IFS=$as_save_IFS
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14258 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14260 break 2
14261 fi
14262 done
14263 done
14264 IFS=$as_save_IFS
14265
14266 fi
14267 fi
14268 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14269 if test -n "$AR_FOR_TARGET"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14271 $as_echo "$AR_FOR_TARGET" >&6; }
14272 else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 $as_echo "no" >&6; }
14275 fi
14276
14277
14278 fi
14279 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14280 done
14281 fi
14282
14283 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14284 set dummy ar
14285 if test $build = $target ; then
14286 AR_FOR_TARGET="$2"
14287 else
14288 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14289 fi
14290 else
14291 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14292 fi
14293
14294 else
14295 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14296 fi
14297
14298
14299
14300
14301 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14302 if test -n "$with_build_time_tools"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14304 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14305 if test -x $with_build_time_tools/as; then
14306 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14307 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14309 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314 elif test $build != $host && test $have_gcc_for_target = yes; then
14315 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14316 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14317 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14318 fi
14319 fi
14320 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14321 # Extract the first word of "as", so it can be a program name with args.
14322 set dummy as; ac_word=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14324 $as_echo_n "checking for $ac_word... " >&6; }
14325 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 case $AS_FOR_TARGET in
14329 [\\/]* | ?:[\\/]*)
14330 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14331 ;;
14332 *)
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $gcc_cv_tool_dirs
14335 do
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14340 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 break 2
14343 fi
14344 done
14345 done
14346 IFS=$as_save_IFS
14347
14348 ;;
14349 esac
14350 fi
14351 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14352 if test -n "$AS_FOR_TARGET"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14354 $as_echo "$AS_FOR_TARGET" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14358 fi
14359
14360
14361 fi
14362 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14363
14364
14365 if test -n "$AS_FOR_TARGET"; then
14366 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14367 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14368 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14369 fi
14370
14371 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14372 for ncn_progname in as; do
14373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14374 set dummy ${ncn_progname}; ac_word=$2
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14376 $as_echo_n "checking for $ac_word... " >&6; }
14377 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 if test -n "$AS_FOR_TARGET"; then
14381 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14382 else
14383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14384 for as_dir in $PATH
14385 do
14386 IFS=$as_save_IFS
14387 test -z "$as_dir" && as_dir=.
14388 for ac_exec_ext in '' $ac_executable_extensions; do
14389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14390 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14392 break 2
14393 fi
14394 done
14395 done
14396 IFS=$as_save_IFS
14397
14398 fi
14399 fi
14400 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14401 if test -n "$AS_FOR_TARGET"; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14403 $as_echo "$AS_FOR_TARGET" >&6; }
14404 else
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 $as_echo "no" >&6; }
14407 fi
14408
14409
14410 done
14411 fi
14412
14413 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14414 for ncn_progname in as; do
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14416 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14417 if test -x $with_build_time_tools/${ncn_progname}; then
14418 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14420 $as_echo "yes" >&6; }
14421 break
14422 else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425 fi
14426 done
14427 fi
14428
14429 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14430 for ncn_progname in as; do
14431 if test -n "$ncn_target_tool_prefix"; then
14432 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14433 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14435 $as_echo_n "checking for $ac_word... " >&6; }
14436 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439 if test -n "$AS_FOR_TARGET"; then
14440 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14441 else
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14444 do
14445 IFS=$as_save_IFS
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14451 break 2
14452 fi
14453 done
14454 done
14455 IFS=$as_save_IFS
14456
14457 fi
14458 fi
14459 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14460 if test -n "$AS_FOR_TARGET"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14462 $as_echo "$AS_FOR_TARGET" >&6; }
14463 else
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14466 fi
14467
14468
14469 fi
14470 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14472 set dummy ${ncn_progname}; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 if test -n "$AS_FOR_TARGET"; then
14479 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14480 else
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14483 do
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14488 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14491 fi
14492 done
14493 done
14494 IFS=$as_save_IFS
14495
14496 fi
14497 fi
14498 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14499 if test -n "$AS_FOR_TARGET"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14501 $as_echo "$AS_FOR_TARGET" >&6; }
14502 else
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14505 fi
14506
14507
14508 fi
14509 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14510 done
14511 fi
14512
14513 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14514 set dummy as
14515 if test $build = $target ; then
14516 AS_FOR_TARGET="$2"
14517 else
14518 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14519 fi
14520 else
14521 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14522 fi
14523
14524 else
14525 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14526 fi
14527
14528
14529
14530
14531 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14532 if test -n "$with_build_time_tools"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14534 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14535 if test -x $with_build_time_tools/dlltool; then
14536 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14537 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14539 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544 elif test $build != $host && test $have_gcc_for_target = yes; then
14545 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14546 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14547 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14548 fi
14549 fi
14550 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14551 # Extract the first word of "dlltool", so it can be a program name with args.
14552 set dummy dlltool; ac_word=$2
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14554 $as_echo_n "checking for $ac_word... " >&6; }
14555 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 case $DLLTOOL_FOR_TARGET in
14559 [\\/]* | ?:[\\/]*)
14560 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14561 ;;
14562 *)
14563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14564 for as_dir in $gcc_cv_tool_dirs
14565 do
14566 IFS=$as_save_IFS
14567 test -z "$as_dir" && as_dir=.
14568 for ac_exec_ext in '' $ac_executable_extensions; do
14569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14570 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14572 break 2
14573 fi
14574 done
14575 done
14576 IFS=$as_save_IFS
14577
14578 ;;
14579 esac
14580 fi
14581 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14582 if test -n "$DLLTOOL_FOR_TARGET"; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14584 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14585 else
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14587 $as_echo "no" >&6; }
14588 fi
14589
14590
14591 fi
14592 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14593
14594
14595 if test -n "$DLLTOOL_FOR_TARGET"; then
14596 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14597 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14598 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14599 fi
14600
14601 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14602 for ncn_progname in dlltool; do
14603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14604 set dummy ${ncn_progname}; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 $as_echo_n "checking for $ac_word... " >&6; }
14607 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 if test -n "$DLLTOOL_FOR_TARGET"; then
14611 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14612 else
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14615 do
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14623 fi
14624 done
14625 done
14626 IFS=$as_save_IFS
14627
14628 fi
14629 fi
14630 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14631 if test -n "$DLLTOOL_FOR_TARGET"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14633 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14634 else
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636 $as_echo "no" >&6; }
14637 fi
14638
14639
14640 done
14641 fi
14642
14643 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14644 for ncn_progname in dlltool; do
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14646 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14647 if test -x $with_build_time_tools/${ncn_progname}; then
14648 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 $as_echo "yes" >&6; }
14651 break
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14655 fi
14656 done
14657 fi
14658
14659 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14660 for ncn_progname in dlltool; do
14661 if test -n "$ncn_target_tool_prefix"; then
14662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14663 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14665 $as_echo_n "checking for $ac_word... " >&6; }
14666 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 if test -n "$DLLTOOL_FOR_TARGET"; then
14670 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14671 else
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14674 do
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683 done
14684 done
14685 IFS=$as_save_IFS
14686
14687 fi
14688 fi
14689 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14690 if test -n "$DLLTOOL_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14692 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14693 else
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695 $as_echo "no" >&6; }
14696 fi
14697
14698
14699 fi
14700 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14702 set dummy ${ncn_progname}; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14704 $as_echo_n "checking for $ac_word... " >&6; }
14705 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 if test -n "$DLLTOOL_FOR_TARGET"; then
14709 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14710 else
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14713 do
14714 IFS=$as_save_IFS
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14720 break 2
14721 fi
14722 done
14723 done
14724 IFS=$as_save_IFS
14725
14726 fi
14727 fi
14728 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14729 if test -n "$DLLTOOL_FOR_TARGET"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14731 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14732 else
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14734 $as_echo "no" >&6; }
14735 fi
14736
14737
14738 fi
14739 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14740 done
14741 fi
14742
14743 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14744 set dummy dlltool
14745 if test $build = $target ; then
14746 DLLTOOL_FOR_TARGET="$2"
14747 else
14748 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14749 fi
14750 else
14751 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14752 fi
14753
14754 else
14755 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14756 fi
14757
14758
14759
14760
14761 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14762 if test -n "$with_build_time_tools"; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14764 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14765 if test -x $with_build_time_tools/dsymutil; then
14766 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14767 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14769 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 fi
14774 elif test $build != $host && test $have_gcc_for_target = yes; then
14775 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14776 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14777 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14778 fi
14779 fi
14780 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14781 # Extract the first word of "dsymutil", so it can be a program name with args.
14782 set dummy dsymutil; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14784 $as_echo_n "checking for $ac_word... " >&6; }
14785 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14786 $as_echo_n "(cached) " >&6
14787 else
14788 case $DSYMUTIL_FOR_TARGET in
14789 [\\/]* | ?:[\\/]*)
14790 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14791 ;;
14792 *)
14793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $gcc_cv_tool_dirs
14795 do
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 for ac_exec_ext in '' $ac_executable_extensions; do
14799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14800 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14802 break 2
14803 fi
14804 done
14805 done
14806 IFS=$as_save_IFS
14807
14808 ;;
14809 esac
14810 fi
14811 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14812 if test -n "$DSYMUTIL_FOR_TARGET"; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14814 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14815 else
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14818 fi
14819
14820
14821 fi
14822 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14823
14824
14825 if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14827 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14828 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14829 fi
14830
14831 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14832 for ncn_progname in dsymutil; do
14833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14834 set dummy ${ncn_progname}; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14836 $as_echo_n "checking for $ac_word... " >&6; }
14837 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 if test -n "$DSYMUTIL_FOR_TARGET"; then
14841 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14842 else
14843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844 for as_dir in $PATH
14845 do
14846 IFS=$as_save_IFS
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14852 break 2
14853 fi
14854 done
14855 done
14856 IFS=$as_save_IFS
14857
14858 fi
14859 fi
14860 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14861 if test -n "$DSYMUTIL_FOR_TARGET"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14863 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14864 else
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14866 $as_echo "no" >&6; }
14867 fi
14868
14869
14870 done
14871 fi
14872
14873 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14874 for ncn_progname in dsymutil; do
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14876 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14877 if test -x $with_build_time_tools/${ncn_progname}; then
14878 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14880 $as_echo "yes" >&6; }
14881 break
14882 else
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 $as_echo "no" >&6; }
14885 fi
14886 done
14887 fi
14888
14889 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14890 for ncn_progname in dsymutil; do
14891 if test -n "$ncn_target_tool_prefix"; then
14892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14895 $as_echo_n "checking for $ac_word... " >&6; }
14896 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 if test -n "$DSYMUTIL_FOR_TARGET"; then
14900 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14901 else
14902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14904 do
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14911 break 2
14912 fi
14913 done
14914 done
14915 IFS=$as_save_IFS
14916
14917 fi
14918 fi
14919 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14920 if test -n "$DSYMUTIL_FOR_TARGET"; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14922 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14923 else
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14925 $as_echo "no" >&6; }
14926 fi
14927
14928
14929 fi
14930 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14932 set dummy ${ncn_progname}; ac_word=$2
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14934 $as_echo_n "checking for $ac_word... " >&6; }
14935 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 if test -n "$DSYMUTIL_FOR_TARGET"; then
14939 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14940 else
14941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942 for as_dir in $PATH
14943 do
14944 IFS=$as_save_IFS
14945 test -z "$as_dir" && as_dir=.
14946 for ac_exec_ext in '' $ac_executable_extensions; do
14947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14950 break 2
14951 fi
14952 done
14953 done
14954 IFS=$as_save_IFS
14955
14956 fi
14957 fi
14958 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14959 if test -n "$DSYMUTIL_FOR_TARGET"; then
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14961 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14962 else
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 $as_echo "no" >&6; }
14965 fi
14966
14967
14968 fi
14969 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14970 done
14971 fi
14972
14973 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14974 set dummy dsymutil
14975 if test $build = $target ; then
14976 DSYMUTIL_FOR_TARGET="$2"
14977 else
14978 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14979 fi
14980 else
14981 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14982 fi
14983
14984 else
14985 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14986 fi
14987
14988
14989
14990
14991 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14992 if test -n "$with_build_time_tools"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14994 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14995 if test -x $with_build_time_tools/ld; then
14996 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14997 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14999 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15003 fi
15004 elif test $build != $host && test $have_gcc_for_target = yes; then
15005 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15006 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15007 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15008 fi
15009 fi
15010 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15011 # Extract the first word of "ld", so it can be a program name with args.
15012 set dummy ld; ac_word=$2
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15014 $as_echo_n "checking for $ac_word... " >&6; }
15015 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 case $LD_FOR_TARGET in
15019 [\\/]* | ?:[\\/]*)
15020 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15021 ;;
15022 *)
15023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024 for as_dir in $gcc_cv_tool_dirs
15025 do
15026 IFS=$as_save_IFS
15027 test -z "$as_dir" && as_dir=.
15028 for ac_exec_ext in '' $ac_executable_extensions; do
15029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15030 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15032 break 2
15033 fi
15034 done
15035 done
15036 IFS=$as_save_IFS
15037
15038 ;;
15039 esac
15040 fi
15041 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15042 if test -n "$LD_FOR_TARGET"; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15044 $as_echo "$LD_FOR_TARGET" >&6; }
15045 else
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047 $as_echo "no" >&6; }
15048 fi
15049
15050
15051 fi
15052 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15053
15054
15055 if test -n "$LD_FOR_TARGET"; then
15056 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15057 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15058 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15059 fi
15060
15061 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15062 for ncn_progname in ld; do
15063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15064 set dummy ${ncn_progname}; ac_word=$2
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15066 $as_echo_n "checking for $ac_word... " >&6; }
15067 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 if test -n "$LD_FOR_TARGET"; then
15071 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15072 else
15073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15074 for as_dir in $PATH
15075 do
15076 IFS=$as_save_IFS
15077 test -z "$as_dir" && as_dir=.
15078 for ac_exec_ext in '' $ac_executable_extensions; do
15079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15080 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15082 break 2
15083 fi
15084 done
15085 done
15086 IFS=$as_save_IFS
15087
15088 fi
15089 fi
15090 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15091 if test -n "$LD_FOR_TARGET"; then
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15093 $as_echo "$LD_FOR_TARGET" >&6; }
15094 else
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15096 $as_echo "no" >&6; }
15097 fi
15098
15099
15100 done
15101 fi
15102
15103 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15104 for ncn_progname in ld; do
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15106 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15107 if test -x $with_build_time_tools/${ncn_progname}; then
15108 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15110 $as_echo "yes" >&6; }
15111 break
15112 else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114 $as_echo "no" >&6; }
15115 fi
15116 done
15117 fi
15118
15119 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15120 for ncn_progname in ld; do
15121 if test -n "$ncn_target_tool_prefix"; then
15122 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15123 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15125 $as_echo_n "checking for $ac_word... " >&6; }
15126 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15127 $as_echo_n "(cached) " >&6
15128 else
15129 if test -n "$LD_FOR_TARGET"; then
15130 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15131 else
15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15134 do
15135 IFS=$as_save_IFS
15136 test -z "$as_dir" && as_dir=.
15137 for ac_exec_ext in '' $ac_executable_extensions; do
15138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15139 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15141 break 2
15142 fi
15143 done
15144 done
15145 IFS=$as_save_IFS
15146
15147 fi
15148 fi
15149 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15150 if test -n "$LD_FOR_TARGET"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15152 $as_echo "$LD_FOR_TARGET" >&6; }
15153 else
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15155 $as_echo "no" >&6; }
15156 fi
15157
15158
15159 fi
15160 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15162 set dummy ${ncn_progname}; ac_word=$2
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15164 $as_echo_n "checking for $ac_word... " >&6; }
15165 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 if test -n "$LD_FOR_TARGET"; then
15169 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15170 else
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15173 do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15180 break 2
15181 fi
15182 done
15183 done
15184 IFS=$as_save_IFS
15185
15186 fi
15187 fi
15188 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15189 if test -n "$LD_FOR_TARGET"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15191 $as_echo "$LD_FOR_TARGET" >&6; }
15192 else
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15194 $as_echo "no" >&6; }
15195 fi
15196
15197
15198 fi
15199 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15200 done
15201 fi
15202
15203 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15204 set dummy ld
15205 if test $build = $target ; then
15206 LD_FOR_TARGET="$2"
15207 else
15208 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15209 fi
15210 else
15211 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15212 fi
15213
15214 else
15215 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15216 fi
15217
15218
15219
15220
15221 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15222 if test -n "$with_build_time_tools"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15224 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15225 if test -x $with_build_time_tools/lipo; then
15226 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15227 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15229 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234 elif test $build != $host && test $have_gcc_for_target = yes; then
15235 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15236 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15237 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15238 fi
15239 fi
15240 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15241 # Extract the first word of "lipo", so it can be a program name with args.
15242 set dummy lipo; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 case $LIPO_FOR_TARGET in
15249 [\\/]* | ?:[\\/]*)
15250 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15251 ;;
15252 *)
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $gcc_cv_tool_dirs
15255 do
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15263 fi
15264 done
15265 done
15266 IFS=$as_save_IFS
15267
15268 ;;
15269 esac
15270 fi
15271 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15272 if test -n "$LIPO_FOR_TARGET"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15274 $as_echo "$LIPO_FOR_TARGET" >&6; }
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15278 fi
15279
15280
15281 fi
15282 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15283
15284
15285 if test -n "$LIPO_FOR_TARGET"; then
15286 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15287 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15288 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15289 fi
15290
15291 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15292 for ncn_progname in lipo; do
15293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15294 set dummy ${ncn_progname}; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15296 $as_echo_n "checking for $ac_word... " >&6; }
15297 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 if test -n "$LIPO_FOR_TARGET"; then
15301 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15302 else
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15305 do
15306 IFS=$as_save_IFS
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15312 break 2
15313 fi
15314 done
15315 done
15316 IFS=$as_save_IFS
15317
15318 fi
15319 fi
15320 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15321 if test -n "$LIPO_FOR_TARGET"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15323 $as_echo "$LIPO_FOR_TARGET" >&6; }
15324 else
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15327 fi
15328
15329
15330 done
15331 fi
15332
15333 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15334 for ncn_progname in lipo; do
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15336 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15337 if test -x $with_build_time_tools/${ncn_progname}; then
15338 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15340 $as_echo "yes" >&6; }
15341 break
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15345 fi
15346 done
15347 fi
15348
15349 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15350 for ncn_progname in lipo; do
15351 if test -n "$ncn_target_tool_prefix"; then
15352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15353 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15355 $as_echo_n "checking for $ac_word... " >&6; }
15356 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 if test -n "$LIPO_FOR_TARGET"; then
15360 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15361 else
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15364 do
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15372 fi
15373 done
15374 done
15375 IFS=$as_save_IFS
15376
15377 fi
15378 fi
15379 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15380 if test -n "$LIPO_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15382 $as_echo "$LIPO_FOR_TARGET" >&6; }
15383 else
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15385 $as_echo "no" >&6; }
15386 fi
15387
15388
15389 fi
15390 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15392 set dummy ${ncn_progname}; ac_word=$2
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15394 $as_echo_n "checking for $ac_word... " >&6; }
15395 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15396 $as_echo_n "(cached) " >&6
15397 else
15398 if test -n "$LIPO_FOR_TARGET"; then
15399 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15400 else
15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15403 do
15404 IFS=$as_save_IFS
15405 test -z "$as_dir" && as_dir=.
15406 for ac_exec_ext in '' $ac_executable_extensions; do
15407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15408 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15410 break 2
15411 fi
15412 done
15413 done
15414 IFS=$as_save_IFS
15415
15416 fi
15417 fi
15418 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15419 if test -n "$LIPO_FOR_TARGET"; then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15421 $as_echo "$LIPO_FOR_TARGET" >&6; }
15422 else
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15424 $as_echo "no" >&6; }
15425 fi
15426
15427
15428 fi
15429 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15430 done
15431 fi
15432
15433 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15434 set dummy lipo
15435 if test $build = $target ; then
15436 LIPO_FOR_TARGET="$2"
15437 else
15438 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15439 fi
15440 else
15441 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15442 fi
15443
15444 else
15445 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15446 fi
15447
15448
15449
15450
15451 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15452 if test -n "$with_build_time_tools"; then
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15454 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15455 if test -x $with_build_time_tools/nm; then
15456 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15457 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15459 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15460 else
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463 fi
15464 elif test $build != $host && test $have_gcc_for_target = yes; then
15465 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15466 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15467 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15468 fi
15469 fi
15470 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15471 # Extract the first word of "nm", so it can be a program name with args.
15472 set dummy nm; ac_word=$2
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15474 $as_echo_n "checking for $ac_word... " >&6; }
15475 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 case $NM_FOR_TARGET in
15479 [\\/]* | ?:[\\/]*)
15480 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15481 ;;
15482 *)
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $gcc_cv_tool_dirs
15485 do
15486 IFS=$as_save_IFS
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15490 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 break 2
15493 fi
15494 done
15495 done
15496 IFS=$as_save_IFS
15497
15498 ;;
15499 esac
15500 fi
15501 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15502 if test -n "$NM_FOR_TARGET"; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15504 $as_echo "$NM_FOR_TARGET" >&6; }
15505 else
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507 $as_echo "no" >&6; }
15508 fi
15509
15510
15511 fi
15512 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15513
15514
15515 if test -n "$NM_FOR_TARGET"; then
15516 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15517 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15518 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15519 fi
15520
15521 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15522 for ncn_progname in nm; do
15523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15524 set dummy ${ncn_progname}; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 if test -n "$NM_FOR_TARGET"; then
15531 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15532 else
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15535 do
15536 IFS=$as_save_IFS
15537 test -z "$as_dir" && as_dir=.
15538 for ac_exec_ext in '' $ac_executable_extensions; do
15539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15540 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542 break 2
15543 fi
15544 done
15545 done
15546 IFS=$as_save_IFS
15547
15548 fi
15549 fi
15550 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15551 if test -n "$NM_FOR_TARGET"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15553 $as_echo "$NM_FOR_TARGET" >&6; }
15554 else
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15557 fi
15558
15559
15560 done
15561 fi
15562
15563 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15564 for ncn_progname in nm; do
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15566 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15567 if test -x $with_build_time_tools/${ncn_progname}; then
15568 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15570 $as_echo "yes" >&6; }
15571 break
15572 else
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15575 fi
15576 done
15577 fi
15578
15579 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15580 for ncn_progname in nm; do
15581 if test -n "$ncn_target_tool_prefix"; then
15582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15583 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15585 $as_echo_n "checking for $ac_word... " >&6; }
15586 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15589 if test -n "$NM_FOR_TARGET"; then
15590 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15591 else
15592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15594 do
15595 IFS=$as_save_IFS
15596 test -z "$as_dir" && as_dir=.
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15601 break 2
15602 fi
15603 done
15604 done
15605 IFS=$as_save_IFS
15606
15607 fi
15608 fi
15609 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15610 if test -n "$NM_FOR_TARGET"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15612 $as_echo "$NM_FOR_TARGET" >&6; }
15613 else
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616 fi
15617
15618
15619 fi
15620 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15622 set dummy ${ncn_progname}; ac_word=$2
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15624 $as_echo_n "checking for $ac_word... " >&6; }
15625 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15626 $as_echo_n "(cached) " >&6
15627 else
15628 if test -n "$NM_FOR_TARGET"; then
15629 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15630 else
15631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15632 for as_dir in $PATH
15633 do
15634 IFS=$as_save_IFS
15635 test -z "$as_dir" && as_dir=.
15636 for ac_exec_ext in '' $ac_executable_extensions; do
15637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15638 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15640 break 2
15641 fi
15642 done
15643 done
15644 IFS=$as_save_IFS
15645
15646 fi
15647 fi
15648 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15649 if test -n "$NM_FOR_TARGET"; then
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15651 $as_echo "$NM_FOR_TARGET" >&6; }
15652 else
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15654 $as_echo "no" >&6; }
15655 fi
15656
15657
15658 fi
15659 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15660 done
15661 fi
15662
15663 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15664 set dummy nm
15665 if test $build = $target ; then
15666 NM_FOR_TARGET="$2"
15667 else
15668 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15669 fi
15670 else
15671 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15672 fi
15673
15674 else
15675 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15676 fi
15677
15678
15679
15680
15681 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15682 if test -n "$with_build_time_tools"; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15684 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15685 if test -x $with_build_time_tools/objcopy; then
15686 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15687 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15689 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 fi
15694 elif test $build != $host && test $have_gcc_for_target = yes; then
15695 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15696 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15697 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15698 fi
15699 fi
15700 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15701 # Extract the first word of "objcopy", so it can be a program name with args.
15702 set dummy objcopy; ac_word=$2
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15704 $as_echo_n "checking for $ac_word... " >&6; }
15705 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15706 $as_echo_n "(cached) " >&6
15707 else
15708 case $OBJCOPY_FOR_TARGET in
15709 [\\/]* | ?:[\\/]*)
15710 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15711 ;;
15712 *)
15713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15714 for as_dir in $gcc_cv_tool_dirs
15715 do
15716 IFS=$as_save_IFS
15717 test -z "$as_dir" && as_dir=.
15718 for ac_exec_ext in '' $ac_executable_extensions; do
15719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15720 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15722 break 2
15723 fi
15724 done
15725 done
15726 IFS=$as_save_IFS
15727
15728 ;;
15729 esac
15730 fi
15731 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15732 if test -n "$OBJCOPY_FOR_TARGET"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15734 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15738 fi
15739
15740
15741 fi
15742 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15743
15744
15745 if test -n "$OBJCOPY_FOR_TARGET"; then
15746 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15747 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15748 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15749 fi
15750
15751 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15752 for ncn_progname in objcopy; do
15753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15754 set dummy ${ncn_progname}; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 if test -n "$OBJCOPY_FOR_TARGET"; then
15761 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15762 else
15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764 for as_dir in $PATH
15765 do
15766 IFS=$as_save_IFS
15767 test -z "$as_dir" && as_dir=.
15768 for ac_exec_ext in '' $ac_executable_extensions; do
15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15770 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15772 break 2
15773 fi
15774 done
15775 done
15776 IFS=$as_save_IFS
15777
15778 fi
15779 fi
15780 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15781 if test -n "$OBJCOPY_FOR_TARGET"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15783 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15784 else
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 $as_echo "no" >&6; }
15787 fi
15788
15789
15790 done
15791 fi
15792
15793 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15794 for ncn_progname in objcopy; do
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15796 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15797 if test -x $with_build_time_tools/${ncn_progname}; then
15798 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15801 break
15802 else
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15805 fi
15806 done
15807 fi
15808
15809 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15810 for ncn_progname in objcopy; do
15811 if test -n "$ncn_target_tool_prefix"; then
15812 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15813 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815 $as_echo_n "checking for $ac_word... " >&6; }
15816 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 if test -n "$OBJCOPY_FOR_TARGET"; then
15820 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15821 else
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15824 do
15825 IFS=$as_save_IFS
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15831 break 2
15832 fi
15833 done
15834 done
15835 IFS=$as_save_IFS
15836
15837 fi
15838 fi
15839 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15840 if test -n "$OBJCOPY_FOR_TARGET"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15842 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15843 else
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15846 fi
15847
15848
15849 fi
15850 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15852 set dummy ${ncn_progname}; ac_word=$2
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15854 $as_echo_n "checking for $ac_word... " >&6; }
15855 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15856 $as_echo_n "(cached) " >&6
15857 else
15858 if test -n "$OBJCOPY_FOR_TARGET"; then
15859 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15860 else
15861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15862 for as_dir in $PATH
15863 do
15864 IFS=$as_save_IFS
15865 test -z "$as_dir" && as_dir=.
15866 for ac_exec_ext in '' $ac_executable_extensions; do
15867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15868 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15870 break 2
15871 fi
15872 done
15873 done
15874 IFS=$as_save_IFS
15875
15876 fi
15877 fi
15878 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15879 if test -n "$OBJCOPY_FOR_TARGET"; then
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15881 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15882 else
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15884 $as_echo "no" >&6; }
15885 fi
15886
15887
15888 fi
15889 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15890 done
15891 fi
15892
15893 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15894 set dummy objcopy
15895 if test $build = $target ; then
15896 OBJCOPY_FOR_TARGET="$2"
15897 else
15898 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15899 fi
15900 else
15901 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15902 fi
15903
15904 else
15905 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15906 fi
15907
15908
15909
15910
15911 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15912 if test -n "$with_build_time_tools"; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15914 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15915 if test -x $with_build_time_tools/objdump; then
15916 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15917 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15919 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15920 else
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923 fi
15924 elif test $build != $host && test $have_gcc_for_target = yes; then
15925 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15926 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15927 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15928 fi
15929 fi
15930 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15931 # Extract the first word of "objdump", so it can be a program name with args.
15932 set dummy objdump; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15938 case $OBJDUMP_FOR_TARGET in
15939 [\\/]* | ?:[\\/]*)
15940 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15941 ;;
15942 *)
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $gcc_cv_tool_dirs
15945 do
15946 IFS=$as_save_IFS
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15950 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 break 2
15953 fi
15954 done
15955 done
15956 IFS=$as_save_IFS
15957
15958 ;;
15959 esac
15960 fi
15961 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15962 if test -n "$OBJDUMP_FOR_TARGET"; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15964 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15965 else
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15967 $as_echo "no" >&6; }
15968 fi
15969
15970
15971 fi
15972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15973
15974
15975 if test -n "$OBJDUMP_FOR_TARGET"; then
15976 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15977 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15978 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15979 fi
15980
15981 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15982 for ncn_progname in objdump; do
15983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15984 set dummy ${ncn_progname}; ac_word=$2
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15986 $as_echo_n "checking for $ac_word... " >&6; }
15987 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15988 $as_echo_n "(cached) " >&6
15989 else
15990 if test -n "$OBJDUMP_FOR_TARGET"; then
15991 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15992 else
15993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994 for as_dir in $PATH
15995 do
15996 IFS=$as_save_IFS
15997 test -z "$as_dir" && as_dir=.
15998 for ac_exec_ext in '' $ac_executable_extensions; do
15999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16000 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16002 break 2
16003 fi
16004 done
16005 done
16006 IFS=$as_save_IFS
16007
16008 fi
16009 fi
16010 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16011 if test -n "$OBJDUMP_FOR_TARGET"; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16013 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16014 else
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016 $as_echo "no" >&6; }
16017 fi
16018
16019
16020 done
16021 fi
16022
16023 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16024 for ncn_progname in objdump; do
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16026 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16027 if test -x $with_build_time_tools/${ncn_progname}; then
16028 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16030 $as_echo "yes" >&6; }
16031 break
16032 else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034 $as_echo "no" >&6; }
16035 fi
16036 done
16037 fi
16038
16039 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16040 for ncn_progname in objdump; do
16041 if test -n "$ncn_target_tool_prefix"; then
16042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16045 $as_echo_n "checking for $ac_word... " >&6; }
16046 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 if test -n "$OBJDUMP_FOR_TARGET"; then
16050 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16051 else
16052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16053 for as_dir in $PATH
16054 do
16055 IFS=$as_save_IFS
16056 test -z "$as_dir" && as_dir=.
16057 for ac_exec_ext in '' $ac_executable_extensions; do
16058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16059 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16061 break 2
16062 fi
16063 done
16064 done
16065 IFS=$as_save_IFS
16066
16067 fi
16068 fi
16069 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16070 if test -n "$OBJDUMP_FOR_TARGET"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16072 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16073 else
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16075 $as_echo "no" >&6; }
16076 fi
16077
16078
16079 fi
16080 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16082 set dummy ${ncn_progname}; ac_word=$2
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16084 $as_echo_n "checking for $ac_word... " >&6; }
16085 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 if test -n "$OBJDUMP_FOR_TARGET"; then
16089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16090 else
16091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16092 for as_dir in $PATH
16093 do
16094 IFS=$as_save_IFS
16095 test -z "$as_dir" && as_dir=.
16096 for ac_exec_ext in '' $ac_executable_extensions; do
16097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16098 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16100 break 2
16101 fi
16102 done
16103 done
16104 IFS=$as_save_IFS
16105
16106 fi
16107 fi
16108 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16109 if test -n "$OBJDUMP_FOR_TARGET"; then
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16111 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16112 else
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115 fi
16116
16117
16118 fi
16119 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16120 done
16121 fi
16122
16123 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16124 set dummy objdump
16125 if test $build = $target ; then
16126 OBJDUMP_FOR_TARGET="$2"
16127 else
16128 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16129 fi
16130 else
16131 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16132 fi
16133
16134 else
16135 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16136 fi
16137
16138
16139
16140
16141 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16142 if test -n "$with_build_time_tools"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16144 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16145 if test -x $with_build_time_tools/otool; then
16146 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16147 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16149 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154 elif test $build != $host && test $have_gcc_for_target = yes; then
16155 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16156 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16157 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16158 fi
16159 fi
16160 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16161 # Extract the first word of "otool", so it can be a program name with args.
16162 set dummy otool; ac_word=$2
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16164 $as_echo_n "checking for $ac_word... " >&6; }
16165 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16166 $as_echo_n "(cached) " >&6
16167 else
16168 case $OTOOL_FOR_TARGET in
16169 [\\/]* | ?:[\\/]*)
16170 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16171 ;;
16172 *)
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $gcc_cv_tool_dirs
16175 do
16176 IFS=$as_save_IFS
16177 test -z "$as_dir" && as_dir=.
16178 for ac_exec_ext in '' $ac_executable_extensions; do
16179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16180 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16182 break 2
16183 fi
16184 done
16185 done
16186 IFS=$as_save_IFS
16187
16188 ;;
16189 esac
16190 fi
16191 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16192 if test -n "$OTOOL_FOR_TARGET"; then
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16194 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16195 else
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16197 $as_echo "no" >&6; }
16198 fi
16199
16200
16201 fi
16202 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16203
16204
16205 if test -n "$OTOOL_FOR_TARGET"; then
16206 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16207 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16208 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16209 fi
16210
16211 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16212 for ncn_progname in otool; do
16213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16214 set dummy ${ncn_progname}; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16218 $as_echo_n "(cached) " >&6
16219 else
16220 if test -n "$OTOOL_FOR_TARGET"; then
16221 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16222 else
16223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16224 for as_dir in $PATH
16225 do
16226 IFS=$as_save_IFS
16227 test -z "$as_dir" && as_dir=.
16228 for ac_exec_ext in '' $ac_executable_extensions; do
16229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16230 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16232 break 2
16233 fi
16234 done
16235 done
16236 IFS=$as_save_IFS
16237
16238 fi
16239 fi
16240 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16241 if test -n "$OTOOL_FOR_TARGET"; then
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16243 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16244 else
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16246 $as_echo "no" >&6; }
16247 fi
16248
16249
16250 done
16251 fi
16252
16253 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16254 for ncn_progname in otool; do
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16256 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16257 if test -x $with_build_time_tools/${ncn_progname}; then
16258 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16260 $as_echo "yes" >&6; }
16261 break
16262 else
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16265 fi
16266 done
16267 fi
16268
16269 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16270 for ncn_progname in otool; do
16271 if test -n "$ncn_target_tool_prefix"; then
16272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 if test -n "$OTOOL_FOR_TARGET"; then
16280 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16281 else
16282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283 for as_dir in $PATH
16284 do
16285 IFS=$as_save_IFS
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16289 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16291 break 2
16292 fi
16293 done
16294 done
16295 IFS=$as_save_IFS
16296
16297 fi
16298 fi
16299 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16300 if test -n "$OTOOL_FOR_TARGET"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16302 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16303 else
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306 fi
16307
16308
16309 fi
16310 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16312 set dummy ${ncn_progname}; ac_word=$2
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16314 $as_echo_n "checking for $ac_word... " >&6; }
16315 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 if test -n "$OTOOL_FOR_TARGET"; then
16319 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16320 else
16321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322 for as_dir in $PATH
16323 do
16324 IFS=$as_save_IFS
16325 test -z "$as_dir" && as_dir=.
16326 for ac_exec_ext in '' $ac_executable_extensions; do
16327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16328 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16330 break 2
16331 fi
16332 done
16333 done
16334 IFS=$as_save_IFS
16335
16336 fi
16337 fi
16338 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16339 if test -n "$OTOOL_FOR_TARGET"; then
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16341 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16342 else
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16344 $as_echo "no" >&6; }
16345 fi
16346
16347
16348 fi
16349 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16350 done
16351 fi
16352
16353 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16354 set dummy otool
16355 if test $build = $target ; then
16356 OTOOL_FOR_TARGET="$2"
16357 else
16358 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16359 fi
16360 else
16361 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16362 fi
16363
16364 else
16365 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16366 fi
16367
16368
16369
16370
16371 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16372 if test -n "$with_build_time_tools"; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16374 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16375 if test -x $with_build_time_tools/ranlib; then
16376 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16377 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16379 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16380 else
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383 fi
16384 elif test $build != $host && test $have_gcc_for_target = yes; then
16385 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16386 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16387 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16388 fi
16389 fi
16390 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16391 # Extract the first word of "ranlib", so it can be a program name with args.
16392 set dummy ranlib; ac_word=$2
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16394 $as_echo_n "checking for $ac_word... " >&6; }
16395 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16396 $as_echo_n "(cached) " >&6
16397 else
16398 case $RANLIB_FOR_TARGET in
16399 [\\/]* | ?:[\\/]*)
16400 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16401 ;;
16402 *)
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $gcc_cv_tool_dirs
16405 do
16406 IFS=$as_save_IFS
16407 test -z "$as_dir" && as_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16410 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16412 break 2
16413 fi
16414 done
16415 done
16416 IFS=$as_save_IFS
16417
16418 ;;
16419 esac
16420 fi
16421 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16422 if test -n "$RANLIB_FOR_TARGET"; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16424 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16425 else
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16428 fi
16429
16430
16431 fi
16432 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16433
16434
16435 if test -n "$RANLIB_FOR_TARGET"; then
16436 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16437 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16438 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16439 fi
16440
16441 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16442 for ncn_progname in ranlib; do
16443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16444 set dummy ${ncn_progname}; ac_word=$2
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16446 $as_echo_n "checking for $ac_word... " >&6; }
16447 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16448 $as_echo_n "(cached) " >&6
16449 else
16450 if test -n "$RANLIB_FOR_TARGET"; then
16451 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16452 else
16453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454 for as_dir in $PATH
16455 do
16456 IFS=$as_save_IFS
16457 test -z "$as_dir" && as_dir=.
16458 for ac_exec_ext in '' $ac_executable_extensions; do
16459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16460 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16462 break 2
16463 fi
16464 done
16465 done
16466 IFS=$as_save_IFS
16467
16468 fi
16469 fi
16470 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16471 if test -n "$RANLIB_FOR_TARGET"; then
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16473 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16474 else
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16476 $as_echo "no" >&6; }
16477 fi
16478
16479
16480 done
16481 fi
16482
16483 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16484 for ncn_progname in ranlib; do
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16486 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16487 if test -x $with_build_time_tools/${ncn_progname}; then
16488 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16490 $as_echo "yes" >&6; }
16491 break
16492 else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16495 fi
16496 done
16497 fi
16498
16499 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16500 for ncn_progname in ranlib; do
16501 if test -n "$ncn_target_tool_prefix"; then
16502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16503 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16505 $as_echo_n "checking for $ac_word... " >&6; }
16506 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 if test -n "$RANLIB_FOR_TARGET"; then
16510 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16511 else
16512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16514 do
16515 IFS=$as_save_IFS
16516 test -z "$as_dir" && as_dir=.
16517 for ac_exec_ext in '' $ac_executable_extensions; do
16518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16519 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16521 break 2
16522 fi
16523 done
16524 done
16525 IFS=$as_save_IFS
16526
16527 fi
16528 fi
16529 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16530 if test -n "$RANLIB_FOR_TARGET"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16532 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16533 else
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16535 $as_echo "no" >&6; }
16536 fi
16537
16538
16539 fi
16540 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16542 set dummy ${ncn_progname}; ac_word=$2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16544 $as_echo_n "checking for $ac_word... " >&6; }
16545 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 if test -n "$RANLIB_FOR_TARGET"; then
16549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16550 else
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16553 do
16554 IFS=$as_save_IFS
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16560 break 2
16561 fi
16562 done
16563 done
16564 IFS=$as_save_IFS
16565
16566 fi
16567 fi
16568 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16569 if test -n "$RANLIB_FOR_TARGET"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16571 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16572 else
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16575 fi
16576
16577
16578 fi
16579 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16580 done
16581 fi
16582
16583 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16584 set dummy ranlib
16585 if test $build = $target ; then
16586 RANLIB_FOR_TARGET="$2"
16587 else
16588 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16589 fi
16590 else
16591 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16592 fi
16593
16594 else
16595 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16596 fi
16597
16598
16599
16600
16601 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16602 if test -n "$with_build_time_tools"; then
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16604 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16605 if test -x $with_build_time_tools/readelf; then
16606 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16607 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16609 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16610 else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 fi
16614 elif test $build != $host && test $have_gcc_for_target = yes; then
16615 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16616 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16617 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16618 fi
16619 fi
16620 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16621 # Extract the first word of "readelf", so it can be a program name with args.
16622 set dummy readelf; ac_word=$2
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16626 $as_echo_n "(cached) " >&6
16627 else
16628 case $READELF_FOR_TARGET in
16629 [\\/]* | ?:[\\/]*)
16630 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16631 ;;
16632 *)
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $gcc_cv_tool_dirs
16635 do
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642 break 2
16643 fi
16644 done
16645 done
16646 IFS=$as_save_IFS
16647
16648 ;;
16649 esac
16650 fi
16651 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16652 if test -n "$READELF_FOR_TARGET"; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16654 $as_echo "$READELF_FOR_TARGET" >&6; }
16655 else
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16658 fi
16659
16660
16661 fi
16662 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16663
16664
16665 if test -n "$READELF_FOR_TARGET"; then
16666 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16667 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16668 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16669 fi
16670
16671 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16672 for ncn_progname in readelf; do
16673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16674 set dummy ${ncn_progname}; ac_word=$2
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16676 $as_echo_n "checking for $ac_word... " >&6; }
16677 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16678 $as_echo_n "(cached) " >&6
16679 else
16680 if test -n "$READELF_FOR_TARGET"; then
16681 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16682 else
16683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684 for as_dir in $PATH
16685 do
16686 IFS=$as_save_IFS
16687 test -z "$as_dir" && as_dir=.
16688 for ac_exec_ext in '' $ac_executable_extensions; do
16689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16690 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16692 break 2
16693 fi
16694 done
16695 done
16696 IFS=$as_save_IFS
16697
16698 fi
16699 fi
16700 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16701 if test -n "$READELF_FOR_TARGET"; then
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16703 $as_echo "$READELF_FOR_TARGET" >&6; }
16704 else
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706 $as_echo "no" >&6; }
16707 fi
16708
16709
16710 done
16711 fi
16712
16713 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16714 for ncn_progname in readelf; do
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16716 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16717 if test -x $with_build_time_tools/${ncn_progname}; then
16718 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16720 $as_echo "yes" >&6; }
16721 break
16722 else
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724 $as_echo "no" >&6; }
16725 fi
16726 done
16727 fi
16728
16729 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16730 for ncn_progname in readelf; do
16731 if test -n "$ncn_target_tool_prefix"; then
16732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16733 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16735 $as_echo_n "checking for $ac_word... " >&6; }
16736 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 if test -n "$READELF_FOR_TARGET"; then
16740 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16741 else
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16744 do
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16752 fi
16753 done
16754 done
16755 IFS=$as_save_IFS
16756
16757 fi
16758 fi
16759 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16760 if test -n "$READELF_FOR_TARGET"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16762 $as_echo "$READELF_FOR_TARGET" >&6; }
16763 else
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16766 fi
16767
16768
16769 fi
16770 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16772 set dummy ${ncn_progname}; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 if test -n "$READELF_FOR_TARGET"; then
16779 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16780 else
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16783 do
16784 IFS=$as_save_IFS
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790 break 2
16791 fi
16792 done
16793 done
16794 IFS=$as_save_IFS
16795
16796 fi
16797 fi
16798 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16799 if test -n "$READELF_FOR_TARGET"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16801 $as_echo "$READELF_FOR_TARGET" >&6; }
16802 else
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16805 fi
16806
16807
16808 fi
16809 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16810 done
16811 fi
16812
16813 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16814 set dummy readelf
16815 if test $build = $target ; then
16816 READELF_FOR_TARGET="$2"
16817 else
16818 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16819 fi
16820 else
16821 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16822 fi
16823
16824 else
16825 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16826 fi
16827
16828
16829
16830
16831 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16832 if test -n "$with_build_time_tools"; then
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16834 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16835 if test -x $with_build_time_tools/strip; then
16836 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16837 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16839 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844 elif test $build != $host && test $have_gcc_for_target = yes; then
16845 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16846 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16847 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16848 fi
16849 fi
16850 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16851 # Extract the first word of "strip", so it can be a program name with args.
16852 set dummy strip; ac_word=$2
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16854 $as_echo_n "checking for $ac_word... " >&6; }
16855 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16856 $as_echo_n "(cached) " >&6
16857 else
16858 case $STRIP_FOR_TARGET in
16859 [\\/]* | ?:[\\/]*)
16860 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16861 ;;
16862 *)
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $gcc_cv_tool_dirs
16865 do
16866 IFS=$as_save_IFS
16867 test -z "$as_dir" && as_dir=.
16868 for ac_exec_ext in '' $ac_executable_extensions; do
16869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16872 break 2
16873 fi
16874 done
16875 done
16876 IFS=$as_save_IFS
16877
16878 ;;
16879 esac
16880 fi
16881 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16882 if test -n "$STRIP_FOR_TARGET"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16884 $as_echo "$STRIP_FOR_TARGET" >&6; }
16885 else
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16887 $as_echo "no" >&6; }
16888 fi
16889
16890
16891 fi
16892 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16893
16894
16895 if test -n "$STRIP_FOR_TARGET"; then
16896 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16897 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16898 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16899 fi
16900
16901 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16902 for ncn_progname in strip; do
16903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16904 set dummy ${ncn_progname}; ac_word=$2
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16906 $as_echo_n "checking for $ac_word... " >&6; }
16907 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 if test -n "$STRIP_FOR_TARGET"; then
16911 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16912 else
16913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16914 for as_dir in $PATH
16915 do
16916 IFS=$as_save_IFS
16917 test -z "$as_dir" && as_dir=.
16918 for ac_exec_ext in '' $ac_executable_extensions; do
16919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16920 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16922 break 2
16923 fi
16924 done
16925 done
16926 IFS=$as_save_IFS
16927
16928 fi
16929 fi
16930 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16931 if test -n "$STRIP_FOR_TARGET"; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16933 $as_echo "$STRIP_FOR_TARGET" >&6; }
16934 else
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936 $as_echo "no" >&6; }
16937 fi
16938
16939
16940 done
16941 fi
16942
16943 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16944 for ncn_progname in strip; do
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16946 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16947 if test -x $with_build_time_tools/${ncn_progname}; then
16948 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16950 $as_echo "yes" >&6; }
16951 break
16952 else
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16955 fi
16956 done
16957 fi
16958
16959 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16960 for ncn_progname in strip; do
16961 if test -n "$ncn_target_tool_prefix"; then
16962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16965 $as_echo_n "checking for $ac_word... " >&6; }
16966 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16967 $as_echo_n "(cached) " >&6
16968 else
16969 if test -n "$STRIP_FOR_TARGET"; then
16970 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16971 else
16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in $PATH
16974 do
16975 IFS=$as_save_IFS
16976 test -z "$as_dir" && as_dir=.
16977 for ac_exec_ext in '' $ac_executable_extensions; do
16978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16981 break 2
16982 fi
16983 done
16984 done
16985 IFS=$as_save_IFS
16986
16987 fi
16988 fi
16989 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16990 if test -n "$STRIP_FOR_TARGET"; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16992 $as_echo "$STRIP_FOR_TARGET" >&6; }
16993 else
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995 $as_echo "no" >&6; }
16996 fi
16997
16998
16999 fi
17000 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17002 set dummy ${ncn_progname}; ac_word=$2
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17004 $as_echo_n "checking for $ac_word... " >&6; }
17005 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17006 $as_echo_n "(cached) " >&6
17007 else
17008 if test -n "$STRIP_FOR_TARGET"; then
17009 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17010 else
17011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in $PATH
17013 do
17014 IFS=$as_save_IFS
17015 test -z "$as_dir" && as_dir=.
17016 for ac_exec_ext in '' $ac_executable_extensions; do
17017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17018 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020 break 2
17021 fi
17022 done
17023 done
17024 IFS=$as_save_IFS
17025
17026 fi
17027 fi
17028 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17029 if test -n "$STRIP_FOR_TARGET"; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17031 $as_echo "$STRIP_FOR_TARGET" >&6; }
17032 else
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034 $as_echo "no" >&6; }
17035 fi
17036
17037
17038 fi
17039 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17040 done
17041 fi
17042
17043 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17044 set dummy strip
17045 if test $build = $target ; then
17046 STRIP_FOR_TARGET="$2"
17047 else
17048 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17049 fi
17050 else
17051 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17052 fi
17053
17054 else
17055 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17056 fi
17057
17058
17059
17060
17061 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17062 if test -n "$with_build_time_tools"; then
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17064 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17065 if test -x $with_build_time_tools/windres; then
17066 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17067 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17069 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17070 else
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17073 fi
17074 elif test $build != $host && test $have_gcc_for_target = yes; then
17075 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17076 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17077 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17078 fi
17079 fi
17080 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17081 # Extract the first word of "windres", so it can be a program name with args.
17082 set dummy windres; ac_word=$2
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17084 $as_echo_n "checking for $ac_word... " >&6; }
17085 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17086 $as_echo_n "(cached) " >&6
17087 else
17088 case $WINDRES_FOR_TARGET in
17089 [\\/]* | ?:[\\/]*)
17090 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17091 ;;
17092 *)
17093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $gcc_cv_tool_dirs
17095 do
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 for ac_exec_ext in '' $ac_executable_extensions; do
17099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17100 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17102 break 2
17103 fi
17104 done
17105 done
17106 IFS=$as_save_IFS
17107
17108 ;;
17109 esac
17110 fi
17111 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17112 if test -n "$WINDRES_FOR_TARGET"; then
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17114 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17115 else
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17117 $as_echo "no" >&6; }
17118 fi
17119
17120
17121 fi
17122 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17123
17124
17125 if test -n "$WINDRES_FOR_TARGET"; then
17126 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17127 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17128 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17129 fi
17130
17131 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17132 for ncn_progname in windres; do
17133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17134 set dummy ${ncn_progname}; ac_word=$2
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17136 $as_echo_n "checking for $ac_word... " >&6; }
17137 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 if test -n "$WINDRES_FOR_TARGET"; then
17141 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17142 else
17143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17144 for as_dir in $PATH
17145 do
17146 IFS=$as_save_IFS
17147 test -z "$as_dir" && as_dir=.
17148 for ac_exec_ext in '' $ac_executable_extensions; do
17149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17150 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17152 break 2
17153 fi
17154 done
17155 done
17156 IFS=$as_save_IFS
17157
17158 fi
17159 fi
17160 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17161 if test -n "$WINDRES_FOR_TARGET"; then
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17163 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17164 else
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167 fi
17168
17169
17170 done
17171 fi
17172
17173 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17174 for ncn_progname in windres; do
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17176 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17177 if test -x $with_build_time_tools/${ncn_progname}; then
17178 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17180 $as_echo "yes" >&6; }
17181 break
17182 else
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 $as_echo "no" >&6; }
17185 fi
17186 done
17187 fi
17188
17189 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17190 for ncn_progname in windres; do
17191 if test -n "$ncn_target_tool_prefix"; then
17192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17195 $as_echo_n "checking for $ac_word... " >&6; }
17196 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 if test -n "$WINDRES_FOR_TARGET"; then
17200 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17201 else
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17204 do
17205 IFS=$as_save_IFS
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17209 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17211 break 2
17212 fi
17213 done
17214 done
17215 IFS=$as_save_IFS
17216
17217 fi
17218 fi
17219 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17220 if test -n "$WINDRES_FOR_TARGET"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17222 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17223 else
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17225 $as_echo "no" >&6; }
17226 fi
17227
17228
17229 fi
17230 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17232 set dummy ${ncn_progname}; ac_word=$2
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17234 $as_echo_n "checking for $ac_word... " >&6; }
17235 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17236 $as_echo_n "(cached) " >&6
17237 else
17238 if test -n "$WINDRES_FOR_TARGET"; then
17239 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17240 else
17241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17242 for as_dir in $PATH
17243 do
17244 IFS=$as_save_IFS
17245 test -z "$as_dir" && as_dir=.
17246 for ac_exec_ext in '' $ac_executable_extensions; do
17247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17248 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17250 break 2
17251 fi
17252 done
17253 done
17254 IFS=$as_save_IFS
17255
17256 fi
17257 fi
17258 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17259 if test -n "$WINDRES_FOR_TARGET"; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17261 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17262 else
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17264 $as_echo "no" >&6; }
17265 fi
17266
17267
17268 fi
17269 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17270 done
17271 fi
17272
17273 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17274 set dummy windres
17275 if test $build = $target ; then
17276 WINDRES_FOR_TARGET="$2"
17277 else
17278 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17279 fi
17280 else
17281 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17282 fi
17283
17284 else
17285 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17286 fi
17287
17288
17289
17290
17291 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17292 if test -n "$with_build_time_tools"; then
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17294 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17295 if test -x $with_build_time_tools/windmc; then
17296 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17297 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17299 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17300 else
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 $as_echo "no" >&6; }
17303 fi
17304 elif test $build != $host && test $have_gcc_for_target = yes; then
17305 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17306 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17307 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17308 fi
17309 fi
17310 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17311 # Extract the first word of "windmc", so it can be a program name with args.
17312 set dummy windmc; ac_word=$2
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17314 $as_echo_n "checking for $ac_word... " >&6; }
17315 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 case $WINDMC_FOR_TARGET in
17319 [\\/]* | ?:[\\/]*)
17320 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17321 ;;
17322 *)
17323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17324 for as_dir in $gcc_cv_tool_dirs
17325 do
17326 IFS=$as_save_IFS
17327 test -z "$as_dir" && as_dir=.
17328 for ac_exec_ext in '' $ac_executable_extensions; do
17329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17330 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17332 break 2
17333 fi
17334 done
17335 done
17336 IFS=$as_save_IFS
17337
17338 ;;
17339 esac
17340 fi
17341 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17342 if test -n "$WINDMC_FOR_TARGET"; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17344 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17345 else
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17347 $as_echo "no" >&6; }
17348 fi
17349
17350
17351 fi
17352 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17353
17354
17355 if test -n "$WINDMC_FOR_TARGET"; then
17356 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17357 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17358 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17359 fi
17360
17361 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17362 for ncn_progname in windmc; do
17363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17364 set dummy ${ncn_progname}; ac_word=$2
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17366 $as_echo_n "checking for $ac_word... " >&6; }
17367 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17368 $as_echo_n "(cached) " >&6
17369 else
17370 if test -n "$WINDMC_FOR_TARGET"; then
17371 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17372 else
17373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17374 for as_dir in $PATH
17375 do
17376 IFS=$as_save_IFS
17377 test -z "$as_dir" && as_dir=.
17378 for ac_exec_ext in '' $ac_executable_extensions; do
17379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17380 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17382 break 2
17383 fi
17384 done
17385 done
17386 IFS=$as_save_IFS
17387
17388 fi
17389 fi
17390 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17391 if test -n "$WINDMC_FOR_TARGET"; then
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17393 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17394 else
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17396 $as_echo "no" >&6; }
17397 fi
17398
17399
17400 done
17401 fi
17402
17403 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17404 for ncn_progname in windmc; do
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17406 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17407 if test -x $with_build_time_tools/${ncn_progname}; then
17408 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17410 $as_echo "yes" >&6; }
17411 break
17412 else
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414 $as_echo "no" >&6; }
17415 fi
17416 done
17417 fi
17418
17419 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17420 for ncn_progname in windmc; do
17421 if test -n "$ncn_target_tool_prefix"; then
17422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17423 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17425 $as_echo_n "checking for $ac_word... " >&6; }
17426 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17427 $as_echo_n "(cached) " >&6
17428 else
17429 if test -n "$WINDMC_FOR_TARGET"; then
17430 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17431 else
17432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17434 do
17435 IFS=$as_save_IFS
17436 test -z "$as_dir" && as_dir=.
17437 for ac_exec_ext in '' $ac_executable_extensions; do
17438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17441 break 2
17442 fi
17443 done
17444 done
17445 IFS=$as_save_IFS
17446
17447 fi
17448 fi
17449 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17450 if test -n "$WINDMC_FOR_TARGET"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17452 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17453 else
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17456 fi
17457
17458
17459 fi
17460 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17462 set dummy ${ncn_progname}; ac_word=$2
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17464 $as_echo_n "checking for $ac_word... " >&6; }
17465 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17466 $as_echo_n "(cached) " >&6
17467 else
17468 if test -n "$WINDMC_FOR_TARGET"; then
17469 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17470 else
17471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17473 do
17474 IFS=$as_save_IFS
17475 test -z "$as_dir" && as_dir=.
17476 for ac_exec_ext in '' $ac_executable_extensions; do
17477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17480 break 2
17481 fi
17482 done
17483 done
17484 IFS=$as_save_IFS
17485
17486 fi
17487 fi
17488 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17489 if test -n "$WINDMC_FOR_TARGET"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17491 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17492 else
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17494 $as_echo "no" >&6; }
17495 fi
17496
17497
17498 fi
17499 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17500 done
17501 fi
17502
17503 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17504 set dummy windmc
17505 if test $build = $target ; then
17506 WINDMC_FOR_TARGET="$2"
17507 else
17508 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17509 fi
17510 else
17511 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17512 fi
17513
17514 else
17515 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17516 fi
17517
17518
17519 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17520
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17522 $as_echo_n "checking where to find the target ar... " >&6; }
17523 if test "x${build}" != "x${host}" ; then
17524 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17525 # We already found the complete path
17526 ac_dir=`dirname $AR_FOR_TARGET`
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17528 $as_echo "pre-installed in $ac_dir" >&6; }
17529 else
17530 # Canadian cross, just use what we found
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17532 $as_echo "pre-installed" >&6; }
17533 fi
17534 else
17535 ok=yes
17536 case " ${configdirs} " in
17537 *" binutils "*) ;;
17538 *) ok=no ;;
17539 esac
17540
17541 if test $ok = yes; then
17542 # An in-tree tool is available and we can use it
17543 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17545 $as_echo "just compiled" >&6; }
17546 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17547 # We already found the complete path
17548 ac_dir=`dirname $AR_FOR_TARGET`
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17550 $as_echo "pre-installed in $ac_dir" >&6; }
17551 elif test "x$target" = "x$host"; then
17552 # We can use an host tool
17553 AR_FOR_TARGET='$(AR)'
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17555 $as_echo "host tool" >&6; }
17556 else
17557 # We need a cross tool
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17559 $as_echo "pre-installed" >&6; }
17560 fi
17561 fi
17562
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17564 $as_echo_n "checking where to find the target as... " >&6; }
17565 if test "x${build}" != "x${host}" ; then
17566 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17567 # We already found the complete path
17568 ac_dir=`dirname $AS_FOR_TARGET`
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17570 $as_echo "pre-installed in $ac_dir" >&6; }
17571 else
17572 # Canadian cross, just use what we found
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17574 $as_echo "pre-installed" >&6; }
17575 fi
17576 else
17577 ok=yes
17578 case " ${configdirs} " in
17579 *" gas "*) ;;
17580 *) ok=no ;;
17581 esac
17582
17583 if test $ok = yes; then
17584 # An in-tree tool is available and we can use it
17585 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17587 $as_echo "just compiled" >&6; }
17588 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17589 # We already found the complete path
17590 ac_dir=`dirname $AS_FOR_TARGET`
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17592 $as_echo "pre-installed in $ac_dir" >&6; }
17593 elif test "x$target" = "x$host"; then
17594 # We can use an host tool
17595 AS_FOR_TARGET='$(AS)'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17597 $as_echo "host tool" >&6; }
17598 else
17599 # We need a cross tool
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17601 $as_echo "pre-installed" >&6; }
17602 fi
17603 fi
17604
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17606 $as_echo_n "checking where to find the target cc... " >&6; }
17607 if test "x${build}" != "x${host}" ; then
17608 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17609 # We already found the complete path
17610 ac_dir=`dirname $CC_FOR_TARGET`
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17612 $as_echo "pre-installed in $ac_dir" >&6; }
17613 else
17614 # Canadian cross, just use what we found
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17616 $as_echo "pre-installed" >&6; }
17617 fi
17618 else
17619 ok=yes
17620 case " ${configdirs} " in
17621 *" gcc "*) ;;
17622 *) ok=no ;;
17623 esac
17624
17625 if test $ok = yes; then
17626 # An in-tree tool is available and we can use it
17627 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17629 $as_echo "just compiled" >&6; }
17630 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17631 # We already found the complete path
17632 ac_dir=`dirname $CC_FOR_TARGET`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17634 $as_echo "pre-installed in $ac_dir" >&6; }
17635 elif test "x$target" = "x$host"; then
17636 # We can use an host tool
17637 CC_FOR_TARGET='$(CC)'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17639 $as_echo "host tool" >&6; }
17640 else
17641 # We need a cross tool
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17643 $as_echo "pre-installed" >&6; }
17644 fi
17645 fi
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17648 $as_echo_n "checking where to find the target c++... " >&6; }
17649 if test "x${build}" != "x${host}" ; then
17650 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17651 # We already found the complete path
17652 ac_dir=`dirname $CXX_FOR_TARGET`
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17654 $as_echo "pre-installed in $ac_dir" >&6; }
17655 else
17656 # Canadian cross, just use what we found
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17658 $as_echo "pre-installed" >&6; }
17659 fi
17660 else
17661 ok=yes
17662 case " ${configdirs} " in
17663 *" gcc "*) ;;
17664 *) ok=no ;;
17665 esac
17666 case ,${enable_languages}, in
17667 *,c++,*) ;;
17668 *) ok=no ;;
17669 esac
17670 if test $ok = yes; then
17671 # An in-tree tool is available and we can use it
17672 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'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17674 $as_echo "just compiled" >&6; }
17675 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17676 # We already found the complete path
17677 ac_dir=`dirname $CXX_FOR_TARGET`
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17679 $as_echo "pre-installed in $ac_dir" >&6; }
17680 elif test "x$target" = "x$host"; then
17681 # We can use an host tool
17682 CXX_FOR_TARGET='$(CXX)'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17684 $as_echo "host tool" >&6; }
17685 else
17686 # We need a cross tool
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17688 $as_echo "pre-installed" >&6; }
17689 fi
17690 fi
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17693 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17694 if test "x${build}" != "x${host}" ; then
17695 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17696 # We already found the complete path
17697 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17699 $as_echo "pre-installed in $ac_dir" >&6; }
17700 else
17701 # Canadian cross, just use what we found
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17703 $as_echo "pre-installed" >&6; }
17704 fi
17705 else
17706 ok=yes
17707 case " ${configdirs} " in
17708 *" gcc "*) ;;
17709 *) ok=no ;;
17710 esac
17711 case ,${enable_languages}, in
17712 *,c++,*) ;;
17713 *) ok=no ;;
17714 esac
17715 if test $ok = yes; then
17716 # An in-tree tool is available and we can use it
17717 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'
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17719 $as_echo "just compiled" >&6; }
17720 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17721 # We already found the complete path
17722 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17724 $as_echo "pre-installed in $ac_dir" >&6; }
17725 elif test "x$target" = "x$host"; then
17726 # We can use an host tool
17727 RAW_CXX_FOR_TARGET='$(CXX)'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17729 $as_echo "host tool" >&6; }
17730 else
17731 # We need a cross tool
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17733 $as_echo "pre-installed" >&6; }
17734 fi
17735 fi
17736
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17738 $as_echo_n "checking where to find the target dlltool... " >&6; }
17739 if test "x${build}" != "x${host}" ; then
17740 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17741 # We already found the complete path
17742 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17744 $as_echo "pre-installed in $ac_dir" >&6; }
17745 else
17746 # Canadian cross, just use what we found
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17748 $as_echo "pre-installed" >&6; }
17749 fi
17750 else
17751 ok=yes
17752 case " ${configdirs} " in
17753 *" binutils "*) ;;
17754 *) ok=no ;;
17755 esac
17756
17757 if test $ok = yes; then
17758 # An in-tree tool is available and we can use it
17759 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17761 $as_echo "just compiled" >&6; }
17762 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17763 # We already found the complete path
17764 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17766 $as_echo "pre-installed in $ac_dir" >&6; }
17767 elif test "x$target" = "x$host"; then
17768 # We can use an host tool
17769 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17771 $as_echo "host tool" >&6; }
17772 else
17773 # We need a cross tool
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17775 $as_echo "pre-installed" >&6; }
17776 fi
17777 fi
17778
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17780 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17781 if test "x${build}" != "x${host}" ; then
17782 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17783 # We already found the complete path
17784 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17786 $as_echo "pre-installed in $ac_dir" >&6; }
17787 else
17788 # Canadian cross, just use what we found
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17790 $as_echo "pre-installed" >&6; }
17791 fi
17792 else
17793 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17794 # We already found the complete path
17795 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17797 $as_echo "pre-installed in $ac_dir" >&6; }
17798 elif test "x$target" = "x$host"; then
17799 # We can use an host tool
17800 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17802 $as_echo "host tool" >&6; }
17803 else
17804 # We need a cross tool
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806 $as_echo "pre-installed" >&6; }
17807 fi
17808 fi
17809
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17811 $as_echo_n "checking where to find the target gcc... " >&6; }
17812 if test "x${build}" != "x${host}" ; then
17813 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17814 # We already found the complete path
17815 ac_dir=`dirname $GCC_FOR_TARGET`
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17817 $as_echo "pre-installed in $ac_dir" >&6; }
17818 else
17819 # Canadian cross, just use what we found
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17821 $as_echo "pre-installed" >&6; }
17822 fi
17823 else
17824 ok=yes
17825 case " ${configdirs} " in
17826 *" gcc "*) ;;
17827 *) ok=no ;;
17828 esac
17829
17830 if test $ok = yes; then
17831 # An in-tree tool is available and we can use it
17832 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17834 $as_echo "just compiled" >&6; }
17835 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17836 # We already found the complete path
17837 ac_dir=`dirname $GCC_FOR_TARGET`
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17839 $as_echo "pre-installed in $ac_dir" >&6; }
17840 elif test "x$target" = "x$host"; then
17841 # We can use an host tool
17842 GCC_FOR_TARGET='$()'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17844 $as_echo "host tool" >&6; }
17845 else
17846 # We need a cross tool
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17848 $as_echo "pre-installed" >&6; }
17849 fi
17850 fi
17851
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17853 $as_echo_n "checking where to find the target gfortran... " >&6; }
17854 if test "x${build}" != "x${host}" ; then
17855 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17856 # We already found the complete path
17857 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17859 $as_echo "pre-installed in $ac_dir" >&6; }
17860 else
17861 # Canadian cross, just use what we found
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17863 $as_echo "pre-installed" >&6; }
17864 fi
17865 else
17866 ok=yes
17867 case " ${configdirs} " in
17868 *" gcc "*) ;;
17869 *) ok=no ;;
17870 esac
17871 case ,${enable_languages}, in
17872 *,fortran,*) ;;
17873 *) ok=no ;;
17874 esac
17875 if test $ok = yes; then
17876 # An in-tree tool is available and we can use it
17877 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17879 $as_echo "just compiled" >&6; }
17880 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17881 # We already found the complete path
17882 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17884 $as_echo "pre-installed in $ac_dir" >&6; }
17885 elif test "x$target" = "x$host"; then
17886 # We can use an host tool
17887 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17889 $as_echo "host tool" >&6; }
17890 else
17891 # We need a cross tool
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17893 $as_echo "pre-installed" >&6; }
17894 fi
17895 fi
17896
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17898 $as_echo_n "checking where to find the target gccgo... " >&6; }
17899 if test "x${build}" != "x${host}" ; then
17900 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17901 # We already found the complete path
17902 ac_dir=`dirname $GOC_FOR_TARGET`
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17904 $as_echo "pre-installed in $ac_dir" >&6; }
17905 else
17906 # Canadian cross, just use what we found
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17908 $as_echo "pre-installed" >&6; }
17909 fi
17910 else
17911 ok=yes
17912 case " ${configdirs} " in
17913 *" gcc "*) ;;
17914 *) ok=no ;;
17915 esac
17916 case ,${enable_languages}, in
17917 *,go,*) ;;
17918 *) ok=no ;;
17919 esac
17920 if test $ok = yes; then
17921 # An in-tree tool is available and we can use it
17922 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17924 $as_echo "just compiled" >&6; }
17925 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17926 # We already found the complete path
17927 ac_dir=`dirname $GOC_FOR_TARGET`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17929 $as_echo "pre-installed in $ac_dir" >&6; }
17930 elif test "x$target" = "x$host"; then
17931 # We can use an host tool
17932 GOC_FOR_TARGET='$(GOC)'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17934 $as_echo "host tool" >&6; }
17935 else
17936 # We need a cross tool
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17938 $as_echo "pre-installed" >&6; }
17939 fi
17940 fi
17941
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17943 $as_echo_n "checking where to find the target gdc... " >&6; }
17944 if test "x${build}" != "x${host}" ; then
17945 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $GDC_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17949 $as_echo "pre-installed in $ac_dir" >&6; }
17950 else
17951 # Canadian cross, just use what we found
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17953 $as_echo "pre-installed" >&6; }
17954 fi
17955 else
17956 ok=yes
17957 case " ${configdirs} " in
17958 *" gcc "*) ;;
17959 *) ok=no ;;
17960 esac
17961 case ,${enable_languages}, in
17962 *,d,*) ;;
17963 *) ok=no ;;
17964 esac
17965 if test $ok = yes; then
17966 # An in-tree tool is available and we can use it
17967 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17969 $as_echo "just compiled" >&6; }
17970 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17971 # We already found the complete path
17972 ac_dir=`dirname $GDC_FOR_TARGET`
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17974 $as_echo "pre-installed in $ac_dir" >&6; }
17975 elif test "x$target" = "x$host"; then
17976 # We can use an host tool
17977 GDC_FOR_TARGET='$(GDC)'
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17979 $as_echo "host tool" >&6; }
17980 else
17981 # We need a cross tool
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17983 $as_echo "pre-installed" >&6; }
17984 fi
17985 fi
17986
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17988 $as_echo_n "checking where to find the target ld... " >&6; }
17989 if test "x${build}" != "x${host}" ; then
17990 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17991 # We already found the complete path
17992 ac_dir=`dirname $LD_FOR_TARGET`
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17994 $as_echo "pre-installed in $ac_dir" >&6; }
17995 else
17996 # Canadian cross, just use what we found
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17998 $as_echo "pre-installed" >&6; }
17999 fi
18000 else
18001 ok=yes
18002 case " ${configdirs} " in
18003 *" ld "*) ;;
18004 *) ok=no ;;
18005 esac
18006
18007 if test $ok = yes; then
18008 # An in-tree tool is available and we can use it
18009 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18011 $as_echo "just compiled" >&6; }
18012 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18013 # We already found the complete path
18014 ac_dir=`dirname $LD_FOR_TARGET`
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18016 $as_echo "pre-installed in $ac_dir" >&6; }
18017 elif test "x$target" = "x$host"; then
18018 # We can use an host tool
18019 LD_FOR_TARGET='$(LD)'
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18021 $as_echo "host tool" >&6; }
18022 else
18023 # We need a cross tool
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18025 $as_echo "pre-installed" >&6; }
18026 fi
18027 fi
18028
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18030 $as_echo_n "checking where to find the target lipo... " >&6; }
18031 if test "x${build}" != "x${host}" ; then
18032 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18033 # We already found the complete path
18034 ac_dir=`dirname $LIPO_FOR_TARGET`
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18036 $as_echo "pre-installed in $ac_dir" >&6; }
18037 else
18038 # Canadian cross, just use what we found
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18040 $as_echo "pre-installed" >&6; }
18041 fi
18042 else
18043 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18044 # We already found the complete path
18045 ac_dir=`dirname $LIPO_FOR_TARGET`
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18047 $as_echo "pre-installed in $ac_dir" >&6; }
18048 elif test "x$target" = "x$host"; then
18049 # We can use an host tool
18050 LIPO_FOR_TARGET='$(LIPO)'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18052 $as_echo "host tool" >&6; }
18053 else
18054 # We need a cross tool
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18056 $as_echo "pre-installed" >&6; }
18057 fi
18058 fi
18059
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18061 $as_echo_n "checking where to find the target nm... " >&6; }
18062 if test "x${build}" != "x${host}" ; then
18063 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18064 # We already found the complete path
18065 ac_dir=`dirname $NM_FOR_TARGET`
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18067 $as_echo "pre-installed in $ac_dir" >&6; }
18068 else
18069 # Canadian cross, just use what we found
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18071 $as_echo "pre-installed" >&6; }
18072 fi
18073 else
18074 ok=yes
18075 case " ${configdirs} " in
18076 *" binutils "*) ;;
18077 *) ok=no ;;
18078 esac
18079
18080 if test $ok = yes; then
18081 # An in-tree tool is available and we can use it
18082 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18084 $as_echo "just compiled" >&6; }
18085 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $NM_FOR_TARGET`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18089 $as_echo "pre-installed in $ac_dir" >&6; }
18090 elif test "x$target" = "x$host"; then
18091 # We can use an host tool
18092 NM_FOR_TARGET='$(NM)'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18094 $as_echo "host tool" >&6; }
18095 else
18096 # We need a cross tool
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18098 $as_echo "pre-installed" >&6; }
18099 fi
18100 fi
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18103 $as_echo_n "checking where to find the target objcopy... " >&6; }
18104 if test "x${build}" != "x${host}" ; then
18105 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18106 # We already found the complete path
18107 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18109 $as_echo "pre-installed in $ac_dir" >&6; }
18110 else
18111 # Canadian cross, just use what we found
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18113 $as_echo "pre-installed" >&6; }
18114 fi
18115 else
18116 ok=yes
18117 case " ${configdirs} " in
18118 *" binutils "*) ;;
18119 *) ok=no ;;
18120 esac
18121
18122 if test $ok = yes; then
18123 # An in-tree tool is available and we can use it
18124 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18126 $as_echo "just compiled" >&6; }
18127 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131 $as_echo "pre-installed in $ac_dir" >&6; }
18132 elif test "x$target" = "x$host"; then
18133 # We can use an host tool
18134 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18136 $as_echo "host tool" >&6; }
18137 else
18138 # We need a cross tool
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18140 $as_echo "pre-installed" >&6; }
18141 fi
18142 fi
18143
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18145 $as_echo_n "checking where to find the target objdump... " >&6; }
18146 if test "x${build}" != "x${host}" ; then
18147 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18148 # We already found the complete path
18149 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18151 $as_echo "pre-installed in $ac_dir" >&6; }
18152 else
18153 # Canadian cross, just use what we found
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18155 $as_echo "pre-installed" >&6; }
18156 fi
18157 else
18158 ok=yes
18159 case " ${configdirs} " in
18160 *" binutils "*) ;;
18161 *) ok=no ;;
18162 esac
18163
18164 if test $ok = yes; then
18165 # An in-tree tool is available and we can use it
18166 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18168 $as_echo "just compiled" >&6; }
18169 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173 $as_echo "pre-installed in $ac_dir" >&6; }
18174 elif test "x$target" = "x$host"; then
18175 # We can use an host tool
18176 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18178 $as_echo "host tool" >&6; }
18179 else
18180 # We need a cross tool
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18182 $as_echo "pre-installed" >&6; }
18183 fi
18184 fi
18185
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18187 $as_echo_n "checking where to find the target otool... " >&6; }
18188 if test "x${build}" != "x${host}" ; then
18189 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18190 # We already found the complete path
18191 ac_dir=`dirname $OTOOL_FOR_TARGET`
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18193 $as_echo "pre-installed in $ac_dir" >&6; }
18194 else
18195 # Canadian cross, just use what we found
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18197 $as_echo "pre-installed" >&6; }
18198 fi
18199 else
18200 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18201 # We already found the complete path
18202 ac_dir=`dirname $OTOOL_FOR_TARGET`
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18204 $as_echo "pre-installed in $ac_dir" >&6; }
18205 elif test "x$target" = "x$host"; then
18206 # We can use an host tool
18207 OTOOL_FOR_TARGET='$(OTOOL)'
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18209 $as_echo "host tool" >&6; }
18210 else
18211 # We need a cross tool
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213 $as_echo "pre-installed" >&6; }
18214 fi
18215 fi
18216
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18218 $as_echo_n "checking where to find the target ranlib... " >&6; }
18219 if test "x${build}" != "x${host}" ; then
18220 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18221 # We already found the complete path
18222 ac_dir=`dirname $RANLIB_FOR_TARGET`
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18224 $as_echo "pre-installed in $ac_dir" >&6; }
18225 else
18226 # Canadian cross, just use what we found
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18228 $as_echo "pre-installed" >&6; }
18229 fi
18230 else
18231 ok=yes
18232 case " ${configdirs} " in
18233 *" binutils "*) ;;
18234 *) ok=no ;;
18235 esac
18236
18237 if test $ok = yes; then
18238 # An in-tree tool is available and we can use it
18239 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18241 $as_echo "just compiled" >&6; }
18242 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18243 # We already found the complete path
18244 ac_dir=`dirname $RANLIB_FOR_TARGET`
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18246 $as_echo "pre-installed in $ac_dir" >&6; }
18247 elif test "x$target" = "x$host"; then
18248 # We can use an host tool
18249 RANLIB_FOR_TARGET='$(RANLIB)'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18251 $as_echo "host tool" >&6; }
18252 else
18253 # We need a cross tool
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255 $as_echo "pre-installed" >&6; }
18256 fi
18257 fi
18258
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18260 $as_echo_n "checking where to find the target readelf... " >&6; }
18261 if test "x${build}" != "x${host}" ; then
18262 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18263 # We already found the complete path
18264 ac_dir=`dirname $READELF_FOR_TARGET`
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18266 $as_echo "pre-installed in $ac_dir" >&6; }
18267 else
18268 # Canadian cross, just use what we found
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18270 $as_echo "pre-installed" >&6; }
18271 fi
18272 else
18273 ok=yes
18274 case " ${configdirs} " in
18275 *" binutils "*) ;;
18276 *) ok=no ;;
18277 esac
18278
18279 if test $ok = yes; then
18280 # An in-tree tool is available and we can use it
18281 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18283 $as_echo "just compiled" >&6; }
18284 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18285 # We already found the complete path
18286 ac_dir=`dirname $READELF_FOR_TARGET`
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18288 $as_echo "pre-installed in $ac_dir" >&6; }
18289 elif test "x$target" = "x$host"; then
18290 # We can use an host tool
18291 READELF_FOR_TARGET='$(READELF)'
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18293 $as_echo "host tool" >&6; }
18294 else
18295 # We need a cross tool
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18297 $as_echo "pre-installed" >&6; }
18298 fi
18299 fi
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18302 $as_echo_n "checking where to find the target strip... " >&6; }
18303 if test "x${build}" != "x${host}" ; then
18304 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18305 # We already found the complete path
18306 ac_dir=`dirname $STRIP_FOR_TARGET`
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18308 $as_echo "pre-installed in $ac_dir" >&6; }
18309 else
18310 # Canadian cross, just use what we found
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18312 $as_echo "pre-installed" >&6; }
18313 fi
18314 else
18315 ok=yes
18316 case " ${configdirs} " in
18317 *" binutils "*) ;;
18318 *) ok=no ;;
18319 esac
18320
18321 if test $ok = yes; then
18322 # An in-tree tool is available and we can use it
18323 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18325 $as_echo "just compiled" >&6; }
18326 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18327 # We already found the complete path
18328 ac_dir=`dirname $STRIP_FOR_TARGET`
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18330 $as_echo "pre-installed in $ac_dir" >&6; }
18331 elif test "x$target" = "x$host"; then
18332 # We can use an host tool
18333 STRIP_FOR_TARGET='$(STRIP)'
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18335 $as_echo "host tool" >&6; }
18336 else
18337 # We need a cross tool
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18339 $as_echo "pre-installed" >&6; }
18340 fi
18341 fi
18342
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18344 $as_echo_n "checking where to find the target windres... " >&6; }
18345 if test "x${build}" != "x${host}" ; then
18346 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18347 # We already found the complete path
18348 ac_dir=`dirname $WINDRES_FOR_TARGET`
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18350 $as_echo "pre-installed in $ac_dir" >&6; }
18351 else
18352 # Canadian cross, just use what we found
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18354 $as_echo "pre-installed" >&6; }
18355 fi
18356 else
18357 ok=yes
18358 case " ${configdirs} " in
18359 *" binutils "*) ;;
18360 *) ok=no ;;
18361 esac
18362
18363 if test $ok = yes; then
18364 # An in-tree tool is available and we can use it
18365 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18367 $as_echo "just compiled" >&6; }
18368 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18369 # We already found the complete path
18370 ac_dir=`dirname $WINDRES_FOR_TARGET`
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18372 $as_echo "pre-installed in $ac_dir" >&6; }
18373 elif test "x$target" = "x$host"; then
18374 # We can use an host tool
18375 WINDRES_FOR_TARGET='$(WINDRES)'
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18377 $as_echo "host tool" >&6; }
18378 else
18379 # We need a cross tool
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18381 $as_echo "pre-installed" >&6; }
18382 fi
18383 fi
18384
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18386 $as_echo_n "checking where to find the target windmc... " >&6; }
18387 if test "x${build}" != "x${host}" ; then
18388 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18389 # We already found the complete path
18390 ac_dir=`dirname $WINDMC_FOR_TARGET`
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18392 $as_echo "pre-installed in $ac_dir" >&6; }
18393 else
18394 # Canadian cross, just use what we found
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18396 $as_echo "pre-installed" >&6; }
18397 fi
18398 else
18399 ok=yes
18400 case " ${configdirs} " in
18401 *" binutils "*) ;;
18402 *) ok=no ;;
18403 esac
18404
18405 if test $ok = yes; then
18406 # An in-tree tool is available and we can use it
18407 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18409 $as_echo "just compiled" >&6; }
18410 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18411 # We already found the complete path
18412 ac_dir=`dirname $WINDMC_FOR_TARGET`
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18414 $as_echo "pre-installed in $ac_dir" >&6; }
18415 elif test "x$target" = "x$host"; then
18416 # We can use an host tool
18417 WINDMC_FOR_TARGET='$(WINDMC)'
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18419 $as_echo "host tool" >&6; }
18420 else
18421 # We need a cross tool
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18423 $as_echo "pre-installed" >&6; }
18424 fi
18425 fi
18426
18427
18428
18429
18430
18431 # Certain tools may need extra flags.
18432 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18433 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18434 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18435
18436 # When building target libraries, except in a Canadian cross, we use
18437 # the same toolchain as the compiler we just built.
18438 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18439 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18440 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18441 if test $host = $build; then
18442 case " $configdirs " in
18443 *" gcc "*)
18444 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18445 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18446 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18447 ;;
18448 esac
18449 fi
18450
18451
18452
18453
18454
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18456 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18457 # Check whether --enable-maintainer-mode was given.
18458 if test "${enable_maintainer_mode+set}" = set; then :
18459 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18460 else
18461 USE_MAINTAINER_MODE=no
18462 fi
18463
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18465 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18466
18467
18468 if test "$USE_MAINTAINER_MODE" = yes; then
18469 MAINTAINER_MODE_TRUE=
18470 MAINTAINER_MODE_FALSE='#'
18471 else
18472 MAINTAINER_MODE_TRUE='#'
18473 MAINTAINER_MODE_FALSE=
18474 fi
18475 MAINT=$MAINTAINER_MODE_TRUE
18476
18477 # ---------------------
18478 # GCC bootstrap support
18479 # ---------------------
18480
18481 # Stage specific cflags for build.
18482 stage1_cflags="-g"
18483 case $build in
18484 vax-*-*)
18485 case ${GCC} in
18486 yes) stage1_cflags="-g -Wa,-J" ;;
18487 *) stage1_cflags="-g -J" ;;
18488 esac ;;
18489 esac
18490
18491
18492
18493 # Enable --enable-checking in stage1 of the compiler.
18494 # Check whether --enable-stage1-checking was given.
18495 if test "${enable_stage1_checking+set}" = set; then :
18496 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18497 else
18498 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18499 # For --disable-checking or implicit --enable-checking=release, avoid
18500 # setting --enable-checking=gc in the default stage1 checking for LTO
18501 # bootstraps. See PR62077.
18502 case $BUILD_CONFIG in
18503 *lto*)
18504 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18505 *)
18506 stage1_checking=--enable-checking=yes,types;;
18507 esac
18508 if test "x$enable_checking" = x && \
18509 test -d ${srcdir}/gcc && \
18510 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18511 stage1_checking=--enable-checking=yes,types,extra
18512 fi
18513 else
18514 stage1_checking=--enable-checking=$enable_checking,types
18515 fi
18516 fi
18517
18518
18519
18520 # Enable -Werror in bootstrap stage2 and later.
18521 # Check whether --enable-werror was given.
18522 if test "${enable_werror+set}" = set; then :
18523 enableval=$enable_werror;
18524 case ${enable_werror} in
18525 yes) stage2_werror_flag="--enable-werror-always" ;;
18526 *) stage2_werror_flag="" ;;
18527 esac
18528
18529 else
18530
18531 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18532 case $BUILD_CONFIG in
18533 bootstrap-debug)
18534 stage2_werror_flag="--enable-werror-always" ;;
18535 "")
18536 stage2_werror_flag="--enable-werror-always" ;;
18537 esac
18538 fi
18539
18540 fi
18541
18542
18543
18544
18545 # Specify what files to not compare during bootstrap.
18546
18547 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18548 case "$target" in
18549 hppa*64*-*-hpux*) ;;
18550 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18551 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18552 esac
18553
18554
18555 ac_config_files="$ac_config_files Makefile"
18556
18557 cat >confcache <<\_ACEOF
18558 # This file is a shell script that caches the results of configure
18559 # tests run on this system so they can be shared between configure
18560 # scripts and configure runs, see configure's option --config-cache.
18561 # It is not useful on other systems. If it contains results you don't
18562 # want to keep, you may remove or edit it.
18563 #
18564 # config.status only pays attention to the cache file if you give it
18565 # the --recheck option to rerun configure.
18566 #
18567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18569 # following values.
18570
18571 _ACEOF
18572
18573 # The following way of writing the cache mishandles newlines in values,
18574 # but we know of no workaround that is simple, portable, and efficient.
18575 # So, we kill variables containing newlines.
18576 # Ultrix sh set writes to stderr and can't be redirected directly,
18577 # and sets the high bit in the cache file unless we assign to the vars.
18578 (
18579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18580 eval ac_val=\$$ac_var
18581 case $ac_val in #(
18582 *${as_nl}*)
18583 case $ac_var in #(
18584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18586 esac
18587 case $ac_var in #(
18588 _ | IFS | as_nl) ;; #(
18589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18590 *) { eval $ac_var=; unset $ac_var;} ;;
18591 esac ;;
18592 esac
18593 done
18594
18595 (set) 2>&1 |
18596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18597 *${as_nl}ac_space=\ *)
18598 # `set' does not quote correctly, so add quotes: double-quote
18599 # substitution turns \\\\ into \\, and sed turns \\ into \.
18600 sed -n \
18601 "s/'/'\\\\''/g;
18602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18603 ;; #(
18604 *)
18605 # `set' quotes correctly as required by POSIX, so do not add quotes.
18606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18607 ;;
18608 esac |
18609 sort
18610 ) |
18611 sed '
18612 /^ac_cv_env_/b end
18613 t clear
18614 :clear
18615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18616 t end
18617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18618 :end' >>confcache
18619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18620 if test -w "$cache_file"; then
18621 if test "x$cache_file" != "x/dev/null"; then
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18623 $as_echo "$as_me: updating cache $cache_file" >&6;}
18624 if test ! -f "$cache_file" || test -h "$cache_file"; then
18625 cat confcache >"$cache_file"
18626 else
18627 case $cache_file in #(
18628 */* | ?:*)
18629 mv -f confcache "$cache_file"$$ &&
18630 mv -f "$cache_file"$$ "$cache_file" ;; #(
18631 *)
18632 mv -f confcache "$cache_file" ;;
18633 esac
18634 fi
18635 fi
18636 else
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18639 fi
18640 fi
18641 rm -f confcache
18642
18643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18644 # Let make expand exec_prefix.
18645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18646
18647 # Transform confdefs.h into DEFS.
18648 # Protect against shell expansion while executing Makefile rules.
18649 # Protect against Makefile macro expansion.
18650 #
18651 # If the first sed substitution is executed (which looks for macros that
18652 # take arguments), then branch to the quote section. Otherwise,
18653 # look for a macro that doesn't take arguments.
18654 ac_script='
18655 :mline
18656 /\\$/{
18657 N
18658 s,\\\n,,
18659 b mline
18660 }
18661 t clear
18662 :clear
18663 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18664 t quote
18665 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18666 t quote
18667 b any
18668 :quote
18669 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18670 s/\[/\\&/g
18671 s/\]/\\&/g
18672 s/\$/$$/g
18673 H
18674 :any
18675 ${
18676 g
18677 s/^\n//
18678 s/\n/ /g
18679 p
18680 }
18681 '
18682 DEFS=`sed -n "$ac_script" confdefs.h`
18683
18684
18685 ac_libobjs=
18686 ac_ltlibobjs=
18687 U=
18688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18689 # 1. Remove the extension, and $U if already installed.
18690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18693 # will be set to the directory where LIBOBJS objects are built.
18694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18696 done
18697 LIBOBJS=$ac_libobjs
18698
18699 LTLIBOBJS=$ac_ltlibobjs
18700
18701
18702
18703 : "${CONFIG_STATUS=./config.status}"
18704 ac_write_fail=0
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18709 as_write_fail=0
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18711 #! $SHELL
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18716
18717 debug=false
18718 ac_cs_recheck=false
18719 ac_cs_silent=false
18720
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18722 export SHELL
18723 _ASEOF
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18728
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18732 emulate sh
18733 NULLCMD=:
18734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735 # is contrary to our usage. Disable this feature.
18736 alias -g '${1+"$@"}'='"$@"'
18737 setopt NO_GLOB_SUBST
18738 else
18739 case `(set -o) 2>/dev/null` in #(
18740 *posix*) :
18741 set -o posix ;; #(
18742 *) :
18743 ;;
18744 esac
18745 fi
18746
18747
18748 as_nl='
18749 '
18750 export as_nl
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18759 as_echo='print -r --'
18760 as_echo_n='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18762 as_echo='printf %s\n'
18763 as_echo_n='printf %s'
18764 else
18765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18767 as_echo_n='/usr/ucb/echo -n'
18768 else
18769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18770 as_echo_n_body='eval
18771 arg=$1;
18772 case $arg in #(
18773 *"$as_nl"*)
18774 expr "X$arg" : "X\\(.*\\)$as_nl";
18775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18776 esac;
18777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18778 '
18779 export as_echo_n_body
18780 as_echo_n='sh -c $as_echo_n_body as_echo'
18781 fi
18782 export as_echo_body
18783 as_echo='sh -c $as_echo_body as_echo'
18784 fi
18785
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18788 PATH_SEPARATOR=:
18789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18791 PATH_SEPARATOR=';'
18792 }
18793 fi
18794
18795
18796 # IFS
18797 # We need space, tab and new line, in precisely that order. Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18801 IFS=" "" $as_nl"
18802
18803 # Find who we are. Look in the path if we contain no directory separator.
18804 as_myself=
18805 case $0 in #((
18806 *[\\/]* ) as_myself=$0 ;;
18807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $PATH
18809 do
18810 IFS=$as_save_IFS
18811 test -z "$as_dir" && as_dir=.
18812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18813 done
18814 IFS=$as_save_IFS
18815
18816 ;;
18817 esac
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x; then
18821 as_myself=$0
18822 fi
18823 if test ! -f "$as_myself"; then
18824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18825 exit 1
18826 fi
18827
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there. '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\${$as_var+set} = xset \
18834 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18835 done
18836 PS1='$ '
18837 PS2='> '
18838 PS4='+ '
18839
18840 # NLS nuisances.
18841 LC_ALL=C
18842 export LC_ALL
18843 LANGUAGE=C
18844 export LANGUAGE
18845
18846 # CDPATH.
18847 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18848
18849
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18855 as_fn_error ()
18856 {
18857 as_status=$1; test $as_status -eq 0 && as_status=1
18858 if test "$4"; then
18859 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18861 fi
18862 $as_echo "$as_me: error: $2" >&2
18863 as_fn_exit $as_status
18864 } # as_fn_error
18865
18866
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status ()
18871 {
18872 return $1
18873 } # as_fn_set_status
18874
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18878 as_fn_exit ()
18879 {
18880 set +e
18881 as_fn_set_status $1
18882 exit $1
18883 } # as_fn_exit
18884
18885 # as_fn_unset VAR
18886 # ---------------
18887 # Portably unset VAR.
18888 as_fn_unset ()
18889 {
18890 { eval $1=; unset $1;}
18891 }
18892 as_unset=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18898 # implementations.
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18900 eval 'as_fn_append ()
18901 {
18902 eval $1+=\$2
18903 }'
18904 else
18905 as_fn_append ()
18906 {
18907 eval $1=\$$1\$2
18908 }
18909 fi # as_fn_append
18910
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18917 eval 'as_fn_arith ()
18918 {
18919 as_val=$(( $* ))
18920 }'
18921 else
18922 as_fn_arith ()
18923 {
18924 as_val=`expr "$@" || test $? -eq 1`
18925 }
18926 fi # as_fn_arith
18927
18928
18929 if expr a : '\(a\)' >/dev/null 2>&1 &&
18930 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18931 as_expr=expr
18932 else
18933 as_expr=false
18934 fi
18935
18936 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937 as_basename=basename
18938 else
18939 as_basename=false
18940 fi
18941
18942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18943 as_dirname=dirname
18944 else
18945 as_dirname=false
18946 fi
18947
18948 as_me=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950 X"$0" : 'X\(//\)$' \| \
18951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18952 $as_echo X/"$0" |
18953 sed '/^.*\/\([^/][^/]*\)\/*$/{
18954 s//\1/
18955 q
18956 }
18957 /^X\/\(\/\/\)$/{
18958 s//\1/
18959 q
18960 }
18961 /^X\/\(\/\).*/{
18962 s//\1/
18963 q
18964 }
18965 s/.*/./; q'`
18966
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits='0123456789'
18972 as_cr_alnum=$as_cr_Letters$as_cr_digits
18973
18974 ECHO_C= ECHO_N= ECHO_T=
18975 case `echo -n x` in #(((((
18976 -n*)
18977 case `echo 'xy\c'` in
18978 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18979 xy) ECHO_C='\c';;
18980 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18981 ECHO_T=' ';;
18982 esac;;
18983 *)
18984 ECHO_N='-n';;
18985 esac
18986
18987 rm -f conf$$ conf$$.exe conf$$.file
18988 if test -d conf$$.dir; then
18989 rm -f conf$$.dir/conf$$.file
18990 else
18991 rm -f conf$$.dir
18992 mkdir conf$$.dir 2>/dev/null
18993 fi
18994 if (echo >conf$$.file) 2>/dev/null; then
18995 if ln -s conf$$.file conf$$ 2>/dev/null; then
18996 as_ln_s='ln -s'
18997 # ... but there are two gotchas:
18998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000 # In both cases, we have to default to `cp -pR'.
19001 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19002 as_ln_s='cp -pR'
19003 elif ln conf$$.file conf$$ 2>/dev/null; then
19004 as_ln_s=ln
19005 else
19006 as_ln_s='cp -pR'
19007 fi
19008 else
19009 as_ln_s='cp -pR'
19010 fi
19011 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19012 rmdir conf$$.dir 2>/dev/null
19013
19014
19015 # as_fn_mkdir_p
19016 # -------------
19017 # Create "$as_dir" as a directory, including parents if necessary.
19018 as_fn_mkdir_p ()
19019 {
19020
19021 case $as_dir in #(
19022 -*) as_dir=./$as_dir;;
19023 esac
19024 test -d "$as_dir" || eval $as_mkdir_p || {
19025 as_dirs=
19026 while :; do
19027 case $as_dir in #(
19028 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029 *) as_qdir=$as_dir;;
19030 esac
19031 as_dirs="'$as_qdir' $as_dirs"
19032 as_dir=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034 X"$as_dir" : 'X\(//\)[^/]' \| \
19035 X"$as_dir" : 'X\(//\)$' \| \
19036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19039 s//\1/
19040 q
19041 }
19042 /^X\(\/\/\)[^/].*/{
19043 s//\1/
19044 q
19045 }
19046 /^X\(\/\/\)$/{
19047 s//\1/
19048 q
19049 }
19050 /^X\(\/\).*/{
19051 s//\1/
19052 q
19053 }
19054 s/.*/./; q'`
19055 test -d "$as_dir" && break
19056 done
19057 test -z "$as_dirs" || eval "mkdir $as_dirs"
19058 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19059
19060
19061 } # as_fn_mkdir_p
19062 if mkdir -p . 2>/dev/null; then
19063 as_mkdir_p='mkdir -p "$as_dir"'
19064 else
19065 test -d ./-p && rmdir ./-p
19066 as_mkdir_p=false
19067 fi
19068
19069
19070 # as_fn_executable_p FILE
19071 # -----------------------
19072 # Test if FILE is an executable regular file.
19073 as_fn_executable_p ()
19074 {
19075 test -f "$1" && test -x "$1"
19076 } # as_fn_executable_p
19077 as_test_x='test -x'
19078 as_executable_p=as_fn_executable_p
19079
19080 # Sed expression to map a string onto a valid CPP name.
19081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19082
19083 # Sed expression to map a string onto a valid variable name.
19084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19085
19086
19087 exec 6>&1
19088 ## ----------------------------------- ##
19089 ## Main body of $CONFIG_STATUS script. ##
19090 ## ----------------------------------- ##
19091 _ASEOF
19092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19093
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19095 # Save the log message, to keep $0 and so on meaningful, and to
19096 # report actual input values of CONFIG_FILES etc. instead of their
19097 # values after options handling.
19098 ac_log="
19099 This file was extended by $as_me, which was
19100 generated by GNU Autoconf 2.69. Invocation command line was
19101
19102 CONFIG_FILES = $CONFIG_FILES
19103 CONFIG_HEADERS = $CONFIG_HEADERS
19104 CONFIG_LINKS = $CONFIG_LINKS
19105 CONFIG_COMMANDS = $CONFIG_COMMANDS
19106 $ $0 $@
19107
19108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19109 "
19110
19111 _ACEOF
19112
19113 case $ac_config_files in *"
19114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19115 esac
19116
19117
19118
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 # Files that config.status was made for.
19121 config_files="$ac_config_files"
19122
19123 _ACEOF
19124
19125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19126 ac_cs_usage="\
19127 \`$as_me' instantiates files and other configuration actions
19128 from templates according to the current configuration. Unless the files
19129 and actions are specified as TAGs, all are instantiated by default.
19130
19131 Usage: $0 [OPTION]... [TAG]...
19132
19133 -h, --help print this help, then exit
19134 -V, --version print version number and configuration settings, then exit
19135 --config print configuration, then exit
19136 -q, --quiet, --silent
19137 do not print progress messages
19138 -d, --debug don't remove temporary files
19139 --recheck update $as_me by reconfiguring in the same conditions
19140 --file=FILE[:TEMPLATE]
19141 instantiate the configuration file FILE
19142
19143 Configuration files:
19144 $config_files
19145
19146 Report bugs to the package provider."
19147
19148 _ACEOF
19149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19151 ac_cs_version="\\
19152 config.status
19153 configured by $0, generated by GNU Autoconf 2.69,
19154 with options \\"\$ac_cs_config\\"
19155
19156 Copyright (C) 2012 Free Software Foundation, Inc.
19157 This config.status script is free software; the Free Software Foundation
19158 gives unlimited permission to copy, distribute and modify it."
19159
19160 ac_pwd='$ac_pwd'
19161 srcdir='$srcdir'
19162 INSTALL='$INSTALL'
19163 AWK='$AWK'
19164 test -n "\$AWK" || AWK=awk
19165 _ACEOF
19166
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168 # The default lists apply if the user does not specify any file.
19169 ac_need_defaults=:
19170 while test $# != 0
19171 do
19172 case $1 in
19173 --*=?*)
19174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19176 ac_shift=:
19177 ;;
19178 --*=)
19179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19180 ac_optarg=
19181 ac_shift=:
19182 ;;
19183 *)
19184 ac_option=$1
19185 ac_optarg=$2
19186 ac_shift=shift
19187 ;;
19188 esac
19189
19190 case $ac_option in
19191 # Handling of the options.
19192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19193 ac_cs_recheck=: ;;
19194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19195 $as_echo "$ac_cs_version"; exit ;;
19196 --config | --confi | --conf | --con | --co | --c )
19197 $as_echo "$ac_cs_config"; exit ;;
19198 --debug | --debu | --deb | --de | --d | -d )
19199 debug=: ;;
19200 --file | --fil | --fi | --f )
19201 $ac_shift
19202 case $ac_optarg in
19203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19204 '') as_fn_error $? "missing file argument" ;;
19205 esac
19206 as_fn_append CONFIG_FILES " '$ac_optarg'"
19207 ac_need_defaults=false;;
19208 --he | --h | --help | --hel | -h )
19209 $as_echo "$ac_cs_usage"; exit ;;
19210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19212 ac_cs_silent=: ;;
19213
19214 # This is an error.
19215 -*) as_fn_error $? "unrecognized option: \`$1'
19216 Try \`$0 --help' for more information." ;;
19217
19218 *) as_fn_append ac_config_targets " $1"
19219 ac_need_defaults=false ;;
19220
19221 esac
19222 shift
19223 done
19224
19225 ac_configure_extra_args=
19226
19227 if $ac_cs_silent; then
19228 exec 6>/dev/null
19229 ac_configure_extra_args="$ac_configure_extra_args --silent"
19230 fi
19231
19232 _ACEOF
19233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234 if \$ac_cs_recheck; then
19235 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19236 shift
19237 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19238 CONFIG_SHELL='$SHELL'
19239 export CONFIG_SHELL
19240 exec "\$@"
19241 fi
19242
19243 _ACEOF
19244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19245 exec 5>>config.log
19246 {
19247 echo
19248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19249 ## Running $as_me. ##
19250 _ASBOX
19251 $as_echo "$ac_log"
19252 } >&5
19253
19254 _ACEOF
19255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19256 #
19257 # INIT-COMMANDS
19258 #
19259 extrasub_build="$extrasub_build"
19260 extrasub_host="$extrasub_host"
19261 extrasub_target="$extrasub_target"
19262
19263 _ACEOF
19264
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266
19267 # Handling of arguments.
19268 for ac_config_target in $ac_config_targets
19269 do
19270 case $ac_config_target in
19271 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19272
19273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19274 esac
19275 done
19276
19277
19278 # If the user did not use the arguments to specify the items to instantiate,
19279 # then the envvar interface is used. Set only those that are not.
19280 # We use the long form for the default assignment because of an extremely
19281 # bizarre bug on SunOS 4.1.3.
19282 if $ac_need_defaults; then
19283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19284 fi
19285
19286 # Have a temporary directory for convenience. Make it in the build tree
19287 # simply because there is no reason against having it here, and in addition,
19288 # creating and moving files from /tmp can sometimes cause problems.
19289 # Hook for its removal unless debugging.
19290 # Note that there is a small window in which the directory will not be cleaned:
19291 # after its creation but before its name has been assigned to `$tmp'.
19292 $debug ||
19293 {
19294 tmp= ac_tmp=
19295 trap 'exit_status=$?
19296 : "${ac_tmp:=$tmp}"
19297 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19298 ' 0
19299 trap 'as_fn_exit 1' 1 2 13 15
19300 }
19301 # Create a (secure) tmp directory for tmp files.
19302
19303 {
19304 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19305 test -d "$tmp"
19306 } ||
19307 {
19308 tmp=./conf$$-$RANDOM
19309 (umask 077 && mkdir "$tmp")
19310 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19311 ac_tmp=$tmp
19312
19313 # Set up the scripts for CONFIG_FILES section.
19314 # No need to generate them if there are no CONFIG_FILES.
19315 # This happens for instance with `./config.status config.h'.
19316 if test -n "$CONFIG_FILES"; then
19317
19318 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19319 ac_cs_awk_getline=:
19320 ac_cs_awk_pipe_init=
19321 ac_cs_awk_read_file='
19322 while ((getline aline < (F[key])) > 0)
19323 print(aline)
19324 close(F[key])'
19325 ac_cs_awk_pipe_fini=
19326 else
19327 ac_cs_awk_getline=false
19328 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19329 ac_cs_awk_read_file='
19330 print "|#_!!_#|"
19331 print "cat " F[key] " &&"
19332 '$ac_cs_awk_pipe_init
19333 # The final `:' finishes the AND list.
19334 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19335 fi
19336 ac_cr=`echo X | tr X '\015'`
19337 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19338 # But we know of no other shell where ac_cr would be empty at this
19339 # point, so we can use a bashism as a fallback.
19340 if test "x$ac_cr" = x; then
19341 eval ac_cr=\$\'\\r\'
19342 fi
19343 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19344 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19345 ac_cs_awk_cr='\\r'
19346 else
19347 ac_cs_awk_cr=$ac_cr
19348 fi
19349
19350 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19351 _ACEOF
19352
19353 # Create commands to substitute file output variables.
19354 {
19355 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19356 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19357 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19358 echo "_ACAWK" &&
19359 echo "_ACEOF"
19360 } >conf$$files.sh &&
19361 . ./conf$$files.sh ||
19362 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19363 rm -f conf$$files.sh
19364
19365 {
19366 echo "cat >conf$$subs.awk <<_ACEOF" &&
19367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19368 echo "_ACEOF"
19369 } >conf$$subs.sh ||
19370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19372 ac_delim='%!_!# '
19373 for ac_last_try in false false false false false :; do
19374 . ./conf$$subs.sh ||
19375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19376
19377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19378 if test $ac_delim_n = $ac_delim_num; then
19379 break
19380 elif $ac_last_try; then
19381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19382 else
19383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19384 fi
19385 done
19386 rm -f conf$$subs.sh
19387
19388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19389 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19390 _ACEOF
19391 sed -n '
19392 h
19393 s/^/S["/; s/!.*/"]=/
19394 p
19395 g
19396 s/^[^!]*!//
19397 :repl
19398 t repl
19399 s/'"$ac_delim"'$//
19400 t delim
19401 :nl
19402 h
19403 s/\(.\{148\}\)..*/\1/
19404 t more1
19405 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19406 p
19407 n
19408 b repl
19409 :more1
19410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19411 p
19412 g
19413 s/.\{148\}//
19414 t nl
19415 :delim
19416 h
19417 s/\(.\{148\}\)..*/\1/
19418 t more2
19419 s/["\\]/\\&/g; s/^/"/; s/$/"/
19420 p
19421 b
19422 :more2
19423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19424 p
19425 g
19426 s/.\{148\}//
19427 t delim
19428 ' <conf$$subs.awk | sed '
19429 /^[^""]/{
19430 N
19431 s/\n//
19432 }
19433 ' >>$CONFIG_STATUS || ac_write_fail=1
19434 rm -f conf$$subs.awk
19435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19436 _ACAWK
19437 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19438 for (key in S) S_is_set[key] = 1
19439 FS = "\a"
19440 \$ac_cs_awk_pipe_init
19441 }
19442 {
19443 line = $ 0
19444 nfields = split(line, field, "@")
19445 substed = 0
19446 len = length(field[1])
19447 for (i = 2; i < nfields; i++) {
19448 key = field[i]
19449 keylen = length(key)
19450 if (S_is_set[key]) {
19451 value = S[key]
19452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19453 len += length(value) + length(field[++i])
19454 substed = 1
19455 } else
19456 len += 1 + keylen
19457 }
19458 if (nfields == 3 && !substed) {
19459 key = field[2]
19460 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19461 \$ac_cs_awk_read_file
19462 next
19463 }
19464 }
19465 print line
19466 }
19467 \$ac_cs_awk_pipe_fini
19468 _ACAWK
19469 _ACEOF
19470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19473 else
19474 cat
19475 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19476 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19477 _ACEOF
19478
19479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19481 # trailing colons and then remove the whole line if VPATH becomes empty
19482 # (actually we leave an empty line to preserve line numbers).
19483 if test "x$srcdir" = x.; then
19484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19485 h
19486 s///
19487 s/^/:/
19488 s/[ ]*$/:/
19489 s/:\$(srcdir):/:/g
19490 s/:\${srcdir}:/:/g
19491 s/:@srcdir@:/:/g
19492 s/^:*//
19493 s/:*$//
19494 x
19495 s/\(=[ ]*\).*/\1/
19496 G
19497 s/\n//
19498 s/^[^=]*=[ ]*$//
19499 }'
19500 fi
19501
19502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19503 fi # test -n "$CONFIG_FILES"
19504
19505
19506 eval set X " :F $CONFIG_FILES "
19507 shift
19508 for ac_tag
19509 do
19510 case $ac_tag in
19511 :[FHLC]) ac_mode=$ac_tag; continue;;
19512 esac
19513 case $ac_mode$ac_tag in
19514 :[FHL]*:*);;
19515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19516 :[FH]-) ac_tag=-:-;;
19517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19518 esac
19519 ac_save_IFS=$IFS
19520 IFS=:
19521 set x $ac_tag
19522 IFS=$ac_save_IFS
19523 shift
19524 ac_file=$1
19525 shift
19526
19527 case $ac_mode in
19528 :L) ac_source=$1;;
19529 :[FH])
19530 ac_file_inputs=
19531 for ac_f
19532 do
19533 case $ac_f in
19534 -) ac_f="$ac_tmp/stdin";;
19535 *) # Look for the file first in the build tree, then in the source tree
19536 # (if the path is not absolute). The absolute path cannot be DOS-style,
19537 # because $ac_f cannot contain `:'.
19538 test -f "$ac_f" ||
19539 case $ac_f in
19540 [\\/$]*) false;;
19541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19542 esac ||
19543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19544 esac
19545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19546 as_fn_append ac_file_inputs " '$ac_f'"
19547 done
19548
19549 # Let's still pretend it is `configure' which instantiates (i.e., don't
19550 # use $as_me), people would be surprised to read:
19551 # /* config.h. Generated by config.status. */
19552 configure_input='Generated from '`
19553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19554 `' by configure.'
19555 if test x"$ac_file" != x-; then
19556 configure_input="$ac_file. $configure_input"
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19558 $as_echo "$as_me: creating $ac_file" >&6;}
19559 fi
19560 # Neutralize special characters interpreted by sed in replacement strings.
19561 case $configure_input in #(
19562 *\&* | *\|* | *\\* )
19563 ac_sed_conf_input=`$as_echo "$configure_input" |
19564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19565 *) ac_sed_conf_input=$configure_input;;
19566 esac
19567
19568 case $ac_tag in
19569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19571 esac
19572 ;;
19573 esac
19574
19575 ac_dir=`$as_dirname -- "$ac_file" ||
19576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19577 X"$ac_file" : 'X\(//\)[^/]' \| \
19578 X"$ac_file" : 'X\(//\)$' \| \
19579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19580 $as_echo X"$ac_file" |
19581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19582 s//\1/
19583 q
19584 }
19585 /^X\(\/\/\)[^/].*/{
19586 s//\1/
19587 q
19588 }
19589 /^X\(\/\/\)$/{
19590 s//\1/
19591 q
19592 }
19593 /^X\(\/\).*/{
19594 s//\1/
19595 q
19596 }
19597 s/.*/./; q'`
19598 as_dir="$ac_dir"; as_fn_mkdir_p
19599 ac_builddir=.
19600
19601 case "$ac_dir" in
19602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19603 *)
19604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19605 # A ".." for each directory in $ac_dir_suffix.
19606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19607 case $ac_top_builddir_sub in
19608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19610 esac ;;
19611 esac
19612 ac_abs_top_builddir=$ac_pwd
19613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19614 # for backward compatibility:
19615 ac_top_builddir=$ac_top_build_prefix
19616
19617 case $srcdir in
19618 .) # We are building in place.
19619 ac_srcdir=.
19620 ac_top_srcdir=$ac_top_builddir_sub
19621 ac_abs_top_srcdir=$ac_pwd ;;
19622 [\\/]* | ?:[\\/]* ) # Absolute name.
19623 ac_srcdir=$srcdir$ac_dir_suffix;
19624 ac_top_srcdir=$srcdir
19625 ac_abs_top_srcdir=$srcdir ;;
19626 *) # Relative name.
19627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19628 ac_top_srcdir=$ac_top_build_prefix$srcdir
19629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19630 esac
19631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19632
19633
19634 case $ac_mode in
19635 :F)
19636 #
19637 # CONFIG_FILE
19638 #
19639
19640 case $INSTALL in
19641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19643 esac
19644 _ACEOF
19645
19646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647 # If the template does not know about datarootdir, expand it.
19648 # FIXME: This hack should be removed a few years after 2.60.
19649 ac_datarootdir_hack=; ac_datarootdir_seen=
19650 ac_sed_dataroot='
19651 /datarootdir/ {
19652 p
19653 q
19654 }
19655 /@datadir@/p
19656 /@docdir@/p
19657 /@infodir@/p
19658 /@localedir@/p
19659 /@mandir@/p'
19660 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19661 *datarootdir*) ac_datarootdir_seen=yes;;
19662 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19664 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19665 _ACEOF
19666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19667 ac_datarootdir_hack='
19668 s&@datadir@&$datadir&g
19669 s&@docdir@&$docdir&g
19670 s&@infodir@&$infodir&g
19671 s&@localedir@&$localedir&g
19672 s&@mandir@&$mandir&g
19673 s&\\\${datarootdir}&$datarootdir&g' ;;
19674 esac
19675 _ACEOF
19676
19677 # Neutralize VPATH when `$srcdir' = `.'.
19678 # Shell code in configure.ac might set extrasub.
19679 # FIXME: do we really want to maintain this feature?
19680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19681 ac_sed_extra="$ac_vpsub
19682 $extrasub
19683 _ACEOF
19684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19685 :t
19686 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19687 s|@configure_input@|$ac_sed_conf_input|;t t
19688 s&@top_builddir@&$ac_top_builddir_sub&;t t
19689 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19690 s&@srcdir@&$ac_srcdir&;t t
19691 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19692 s&@top_srcdir@&$ac_top_srcdir&;t t
19693 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19694 s&@builddir@&$ac_builddir&;t t
19695 s&@abs_builddir@&$ac_abs_builddir&;t t
19696 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19697 s&@INSTALL@&$ac_INSTALL&;t t
19698 $ac_datarootdir_hack
19699 "
19700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19701 if $ac_cs_awk_getline; then
19702 $AWK -f "$ac_tmp/subs.awk"
19703 else
19704 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19705 fi \
19706 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19707
19708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19711 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19713 which seems to be undefined. Please make sure it is defined" >&5
19714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19715 which seems to be undefined. Please make sure it is defined" >&2;}
19716
19717 rm -f "$ac_tmp/stdin"
19718 case $ac_file in
19719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19721 esac \
19722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19723 ;;
19724
19725
19726
19727 esac
19728
19729
19730 case $ac_file$ac_mode in
19731 "Makefile":F) sed "$extrasub_build" Makefile |
19732 sed "$extrasub_host" |
19733 sed "$extrasub_target" > mf$$
19734 mv -f mf$$ Makefile ;;
19735
19736 esac
19737 done # for ac_tag
19738
19739
19740 as_fn_exit 0
19741 _ACEOF
19742 ac_clean_files=$ac_clean_files_save
19743
19744 test $ac_write_fail = 0 ||
19745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19746
19747
19748 # configure is writing to config.log, and then calls config.status.
19749 # config.status does its own redirection, appending to config.log.
19750 # Unfortunately, on DOS this fails, as config.log is still kept open
19751 # by configure, so config.status won't be able to write to it; its
19752 # output is simply discarded. So we exec the FD to /dev/null,
19753 # effectively closing config.log, so it can be properly (re)opened and
19754 # appended to by config.status. When coming back to configure, we
19755 # need to make the FD available again.
19756 if test "$no_create" != yes; then
19757 ac_cs_success=:
19758 ac_config_status_args=
19759 test "$silent" = yes &&
19760 ac_config_status_args="$ac_config_status_args --quiet"
19761 exec 5>/dev/null
19762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19763 exec 5>>config.log
19764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19765 # would make configure fail if this is the last instruction.
19766 $ac_cs_success || as_fn_exit 1
19767 fi
19768 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19770 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19771 fi
19772