]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
ccec3f21cd85db0dbe7ffda4fd5f55dda9c1c94e
[thirdparty/gcc.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 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 RANLIB_PLUGIN_OPTION
624 AR_PLUGIN_OPTION
625 PKG_CONFIG_PATH
626 GDCFLAGS
627 READELF
628 OTOOL
629 OBJDUMP
630 OBJCOPY
631 WINDMC
632 WINDRES
633 STRIP
634 RANLIB
635 NM
636 LIPO
637 LD
638 DSYMUTIL
639 DLLTOOL
640 AS
641 AR
642 RUNTEST
643 EXPECT
644 MAKEINFO
645 FLEX
646 LEX
647 M4
648 BISON
649 YACC
650 WINDRES_FOR_BUILD
651 WINDMC_FOR_BUILD
652 RANLIB_FOR_BUILD
653 NM_FOR_BUILD
654 LD_FOR_BUILD
655 LDFLAGS_FOR_BUILD
656 GNATMAKE_FOR_BUILD
657 GDC_FOR_BUILD
658 GOC_FOR_BUILD
659 GFORTRAN_FOR_BUILD
660 DSYMUTIL_FOR_BUILD
661 DLLTOOL_FOR_BUILD
662 CXX_FOR_BUILD
663 CXXFLAGS_FOR_BUILD
664 CPPFLAGS_FOR_BUILD
665 CPP_FOR_BUILD
666 CFLAGS_FOR_BUILD
667 CC_FOR_BUILD
668 AS_FOR_BUILD
669 AR_FOR_BUILD
670 target_configdirs
671 configdirs
672 build_configdirs
673 INSTALL_GDB_TK
674 GDB_TK
675 CONFIGURE_GDB_TK
676 build_tooldir
677 tooldir
678 GCC_SHLIB_SUBDIR
679 RPATH_ENVVAR
680 target_configargs
681 host_configargs
682 build_configargs
683 BUILD_CONFIG
684 LDFLAGS_FOR_TARGET
685 CXXFLAGS_FOR_TARGET
686 CFLAGS_FOR_TARGET
687 DEBUG_PREFIX_CFLAGS_FOR_TARGET
688 SYSROOT_CFLAGS_FOR_TARGET
689 get_gcc_base_ver
690 extra_host_zlib_configure_flags
691 extra_host_libiberty_configure_flags
692 stage1_languages
693 host_libs_picflag
694 CRAB1_LIBS
695 enable_libgdiagnostics
696 PICFLAG
697 host_shared
698 gcc_host_pie
699 host_pie
700 extra_linker_plugin_flags
701 extra_linker_plugin_configure_flags
702 islinc
703 isllibs
704 poststage1_ldflags
705 poststage1_libs
706 stage1_ldflags
707 stage1_libs
708 extra_isl_gmp_configure_flags
709 extra_mpc_mpfr_configure_flags
710 extra_mpc_gmp_configure_flags
711 extra_mpfr_configure_flags
712 gmpinc
713 gmplibs
714 PGO_BUILD_LTO_CFLAGS
715 PGO_BUILD_USE_CFLAGS
716 PGO_BUILD_GEN_CFLAGS
717 HAVE_CXX14_FOR_BUILD
718 HAVE_CXX14
719 do_compare
720 CARGO
721 GDC
722 GNATMAKE
723 GNATBIND
724 ac_ct_CXX
725 CXXFLAGS
726 CXX
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 cpu_type
735 target_subdir
736 host_subdir
737 build_subdir
738 build_libsubdir
739 AWK
740 SED
741 LN_S
742 LN
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 target_noncanonical
755 host_noncanonical
756 build_noncanonical
757 build_os
758 build_vendor
759 build_cpu
760 build
761 TOPLEVEL_CONFIGURE_ARGUMENTS
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files='serialization_dependencies
801 host_makefile_frag
802 target_makefile_frag
803 alphaieee_frag
804 ospace_frag'
805 ac_user_opts='
806 enable_option_checking
807 with_build_libsubdir
808 with_system_zlib
809 with_zstd
810 enable_as_accelerator_for
811 enable_offload_targets
812 enable_offload_defaulted
813 enable_gold
814 enable_ld
815 enable_gprofng
816 enable_compressed_debug_sections
817 enable_default_compressed_debug_sections_algorithm
818 enable_year2038
819 enable_libquadmath
820 enable_libquadmath_support
821 enable_libada
822 enable_libgm2
823 enable_libssp
824 enable_libstdcxx
825 enable_bootstrap
826 enable_pgo_build
827 with_mpc
828 with_mpc_include
829 with_mpc_lib
830 with_mpfr
831 with_mpfr_include
832 with_mpfr_lib
833 with_gmp
834 with_gmp_include
835 with_gmp_lib
836 with_stage1_libs
837 with_static_standard_libraries
838 with_stage1_ldflags
839 with_boot_libs
840 with_boot_ldflags
841 with_isl
842 with_isl_include
843 with_isl_lib
844 enable_isl_version_check
845 enable_lto
846 enable_linker_plugin_configure_flags
847 enable_linker_plugin_flags
848 enable_host_pie
849 enable_host_shared
850 enable_libgdiagnostics
851 enable_stage1_languages
852 enable_objc_gc
853 with_target_bdw_gc
854 with_target_bdw_gc_include
855 with_target_bdw_gc_lib
856 with_gcc_major_version_only
857 with_build_sysroot
858 with_debug_prefix_map
859 with_build_config
860 enable_vtable_verify
861 enable_serial_configure
862 with_build_time_tools
863 enable_maintainer_mode
864 enable_stage1_checking
865 enable_werror
866 '
867 ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 CXX
876 CXXFLAGS
877 CCC
878 build_configargs
879 host_configargs
880 target_configargs
881 AR
882 AS
883 DLLTOOL
884 DSYMUTIL
885 LD
886 LIPO
887 NM
888 RANLIB
889 STRIP
890 WINDRES
891 WINDMC
892 OBJCOPY
893 OBJDUMP
894 OTOOL
895 READELF
896 CC_FOR_TARGET
897 CXX_FOR_TARGET
898 GCC_FOR_TARGET
899 GFORTRAN_FOR_TARGET
900 GOC_FOR_TARGET
901 GDC_FOR_TARGET
902 GM2_FOR_TARGET
903 AR_FOR_TARGET
904 AS_FOR_TARGET
905 DLLTOOL_FOR_TARGET
906 DSYMUTIL_FOR_TARGET
907 LD_FOR_TARGET
908 LIPO_FOR_TARGET
909 NM_FOR_TARGET
910 OBJCOPY_FOR_TARGET
911 OBJDUMP_FOR_TARGET
912 OTOOL_FOR_TARGET
913 RANLIB_FOR_TARGET
914 READELF_FOR_TARGET
915 STRIP_FOR_TARGET
916 WINDRES_FOR_TARGET
917 WINDMC_FOR_TARGET'
918
919
920 # Initialize some variables set by options.
921 ac_init_help=
922 ac_init_version=false
923 ac_unrecognized_opts=
924 ac_unrecognized_sep=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
975 ac_prev=
976 continue
977 fi
978
979 case $ac_option in
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
983 esac
984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
990
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 bindir=$ac_optarg ;;
995
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1010
1011 -datadir | --datadir | --datadi | --datad)
1012 ac_prev=datadir ;;
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1015
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032 "enable_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
1038
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1043
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1048
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1064
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1073
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1077
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1084
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1089
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1095
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1102
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1107
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1112
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1119
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1124
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1131
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1136
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1140
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1143 no_create=yes ;;
1144
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1148
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1157
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1162
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1169
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1176
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1193
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1198
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1203
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1207
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
1212 sbindir=$ac_optarg ;;
1213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
1223 sharedstatedir=$ac_optarg ;;
1224
1225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
1228 site=$ac_optarg ;;
1229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1234
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1241
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1252
1253 -with-* | --with-*)
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262 "with_$ac_useropt"
1263 "*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
1268
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
1284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1302
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1305 ;;
1306
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1313 esac
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1316
1317 *)
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1323 ;;
1324
1325 esac
1326 done
1327
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1331 fi
1332
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339 fi
1340
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1346 do
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
1355 case $ac_val in
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358 esac
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 done
1361
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1365 build=$build_alias
1366 host=$host_alias
1367 target=$target_alias
1368
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376 fi
1377
1378 ac_tool_prefix=
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381 test "$silent" = yes && exec 6>/dev/null
1382
1383
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1390
1391
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
1419 srcdir=$ac_confdir
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 srcdir=..
1422 fi
1423 else
1424 ac_srcdir_defaulted=no
1425 fi
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 pwd)`
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437 fi
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1441 case $srcdir in
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 esac
1444 case $srcdir in
1445 *" "*)
1446 as_fn_error $? "path to source, $srcdir, contains spaces"
1447 ;;
1448 esac
1449 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1450
1451 for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 done
1457
1458 #
1459 # Report the --help message.
1460 #
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
1465 \`configure' configures this package to adapt to many kinds of systems.
1466
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472 Defaults for the options are specified in brackets.
1473
1474 Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 [PREFIX]
1490
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1495
1496 For better control, use the options below.
1497
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1518 _ACEOF
1519
1520 cat <<\_ACEOF
1521
1522 Program names:
1523 --program-prefix=PREFIX prepend PREFIX to installed program names
1524 --program-suffix=SUFFIX append SUFFIX to installed program names
1525 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1526
1527 System types:
1528 --build=BUILD configure for building on BUILD [guessed]
1529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 --target=TARGET configure for building compilers for TARGET [HOST]
1531 _ACEOF
1532 fi
1533
1534 if test -n "$ac_init_help"; then
1535
1536 cat <<\_ACEOF
1537
1538 Optional Features:
1539 --disable-option-checking ignore unrecognized --enable/--with options
1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1542 --enable-as-accelerator-for=ARG
1543 build as offload target compiler. Specify offload
1544 host triple by ARG
1545 --enable-offload-targets=LIST
1546 enable offloading to devices from comma-separated
1547 LIST of TARGET[=DIR]. Use optional path to find
1548 offload target compiler during the build
1549 --enable-offload-defaulted
1550 If enabled, configured but not installed offload compilers and
1551 libgomp plugins are silently ignored. Useful for distribution
1552 compilers where those are in separate optional packages.
1553
1554 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1555 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1556 --disable-gprofng do not build gprofng
1557 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1558 Enable compressed debug sections for gas, gold or ld
1559 by default
1560 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1561 Default compression algorithm for
1562 --enable-compressed-debug-sections.
1563 --enable-year2038 enable support for timestamps past the year 2038
1564 --disable-libquadmath do not build libquadmath directory
1565 --disable-libquadmath-support
1566 disable libquadmath support for Fortran
1567 --enable-libada build libada directory
1568 --enable-libgm2 build libgm2 directory
1569 --enable-libssp build libssp directory
1570 --disable-libstdcxx do not build libstdc++-v3 directory
1571 --enable-bootstrap enable bootstrapping [yes if native build]
1572 --enable-pgo-build[=lto]
1573 enable the PGO build
1574 --disable-isl-version-check
1575 disable check for isl version
1576 --enable-lto enable link time optimization support
1577 --enable-linker-plugin-configure-flags=FLAGS
1578 additional flags for configuring linker plugins
1579 [none]
1580 --enable-linker-plugin-flags=FLAGS
1581 additional flags for configuring and building linker
1582 plugins [none]
1583 --enable-host-pie build position independent host executables
1584 --enable-host-shared build host code as shared libraries
1585 --enable-libgdiagnostics
1586 build libgdiagnostics shared library
1587 --enable-stage1-languages[=all]
1588 choose additional languages to build during stage1.
1589 Mostly useful for compiler development
1590 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1591 Objective-C runtime
1592 --enable-vtable-verify Enable vtable verification feature
1593 --enable-serial-[{host,target,build}-]configure
1594 force sequential configuration of sub-packages for
1595 the host, target or build machine, or all
1596 sub-packages
1597 --enable-maintainer-mode
1598 enable make rules and dependencies not useful (and
1599 sometimes confusing) to the casual installer
1600 --enable-stage1-checking[=all]
1601 choose additional checking for stage1 of the
1602 compiler
1603 --enable-werror enable -Werror in bootstrap stage2 and later
1604
1605 Optional Packages:
1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1608 --with-build-libsubdir=DIR Directory where to find libraries for build system
1609 --with-system-zlib use installed libz
1610 --with-zstd Support zstd compressed debug sections
1611 (default=auto)
1612 --with-mpc=PATH specify prefix directory for installed MPC package.
1613 Equivalent to --with-mpc-include=PATH/include plus
1614 --with-mpc-lib=PATH/lib
1615 --with-mpc-include=PATH specify directory for installed MPC include files
1616 --with-mpc-lib=PATH specify directory for the installed MPC library
1617 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1618 Equivalent to --with-mpfr-include=PATH/include plus
1619 --with-mpfr-lib=PATH/lib
1620 --with-mpfr-include=PATH
1621 specify directory for installed MPFR include files
1622 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1623 --with-gmp=PATH specify prefix directory for the installed GMP
1624 package. Equivalent to
1625 --with-gmp-include=PATH/include plus
1626 --with-gmp-lib=PATH/lib
1627 --with-gmp-include=PATH specify directory for installed GMP include files
1628 --with-gmp-lib=PATH specify directory for the installed GMP library
1629 --with-stage1-libs=LIBS libraries for stage1
1630 --with-static-standard-libraries
1631 use -static-libstdc++ and -static-libgcc
1632 (default=auto)
1633 --with-stage1-ldflags=FLAGS
1634 linker flags for stage1
1635 --with-boot-libs=LIBS libraries for stage2 and later
1636 --with-boot-ldflags=FLAGS
1637 linker flags for stage2 and later
1638 --with-isl=PATH Specify prefix directory for the installed isl
1639 package. Equivalent to
1640 --with-isl-include=PATH/include plus
1641 --with-isl-lib=PATH/lib
1642 --with-isl-include=PATH Specify directory for installed isl include files
1643 --with-isl-lib=PATH Specify the directory for the installed isl library
1644 --with-target-bdw-gc=PATHLIST
1645 specify prefix directory for installed bdw-gc
1646 package. Equivalent to
1647 --with-target-bdw-gc-include=PATH/include plus
1648 --with-target-bdw-gc-lib=PATH/lib
1649 --with-target-bdw-gc-include=PATHLIST
1650 specify directories for installed bdw-gc include
1651 files
1652 --with-target-bdw-gc-lib=PATHLIST
1653 specify directories for installed bdw-gc library
1654 --with-gcc-major-version-only
1655 use only GCC major number in filesystem paths
1656 --with-build-sysroot=SYSROOT
1657 use sysroot as the system root during the build
1658 --with-debug-prefix-map='A=B C=D ...'
1659 map A to B, C to D ... in debug information
1660 --with-build-config='NAME NAME2...'
1661 use config/NAME.mk build configuration
1662 --with-build-time-tools=PATH
1663 use given path to find target tools during the build
1664
1665 Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CXX C++ compiler command
1674 CXXFLAGS C++ compiler flags
1675 build_configargs
1676 additional configure arguments for build directories
1677 host_configargs
1678 additional configure arguments for host directories
1679 target_configargs
1680 additional configure arguments for target directories
1681 AR AR for the host
1682 AS AS for the host
1683 DLLTOOL DLLTOOL for the host
1684 DSYMUTIL DSYMUTIL for the host
1685 LD LD for the host
1686 LIPO LIPO for the host
1687 NM NM for the host
1688 RANLIB RANLIB for the host
1689 STRIP STRIP for the host
1690 WINDRES WINDRES for the host
1691 WINDMC WINDMC for the host
1692 OBJCOPY OBJCOPY for the host
1693 OBJDUMP OBJDUMP for the host
1694 OTOOL OTOOL for the host
1695 READELF READELF for the host
1696 CC_FOR_TARGET
1697 CC for the target
1698 CXX_FOR_TARGET
1699 CXX for the target
1700 GCC_FOR_TARGET
1701 GCC for the target
1702 GFORTRAN_FOR_TARGET
1703 GFORTRAN for the target
1704 GOC_FOR_TARGET
1705 GOC for the target
1706 GDC_FOR_TARGET
1707 GDC for the target
1708 GM2_FOR_TARGET
1709 GM2 for the target
1710 AR_FOR_TARGET
1711 AR for the target
1712 AS_FOR_TARGET
1713 AS for the target
1714 DLLTOOL_FOR_TARGET
1715 DLLTOOL for the target
1716 DSYMUTIL_FOR_TARGET
1717 DSYMUTIL for the target
1718 LD_FOR_TARGET
1719 LD for the target
1720 LIPO_FOR_TARGET
1721 LIPO for the target
1722 NM_FOR_TARGET
1723 NM for the target
1724 OBJCOPY_FOR_TARGET
1725 OBJCOPY for the target
1726 OBJDUMP_FOR_TARGET
1727 OBJDUMP for the target
1728 OTOOL_FOR_TARGET
1729 OTOOL for the target
1730 RANLIB_FOR_TARGET
1731 RANLIB for the target
1732 READELF_FOR_TARGET
1733 READELF for the target
1734 STRIP_FOR_TARGET
1735 STRIP for the target
1736 WINDRES_FOR_TARGET
1737 WINDRES for the target
1738 WINDMC_FOR_TARGET
1739 WINDMC for the target
1740
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1743
1744 Report bugs to the package provider.
1745 _ACEOF
1746 ac_status=$?
1747 fi
1748
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 continue
1755 ac_builddir=.
1756
1757 case "$ac_dir" in
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *)
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766 esac ;;
1767 esac
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1772
1773 case $srcdir in
1774 .) # We are building in place.
1775 ac_srcdir=.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1782 *) # Relative name.
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786 esac
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1797 else
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799 fi || ac_status=$?
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1801 done
1802 fi
1803
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1806 cat <<\_ACEOF
1807 configure
1808 generated by GNU Autoconf 2.69
1809
1810 Copyright (C) 2012 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1813 _ACEOF
1814 exit
1815 fi
1816
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1820
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=1
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_compile
1858
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1879 fi
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=1
1891 fi
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_compile
1896
1897 # ac_fn_cxx_try_link LINENO
1898 # -------------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_link ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1917 fi
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 test -x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941 } # ac_fn_cxx_try_link
1942
1943 # ac_fn_c_try_link LINENO
1944 # -----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_link ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext conftest$ac_exeext
1950 if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest$ac_exeext && {
1969 test "$cross_compiling" = yes ||
1970 test -x conftest$ac_exeext
1971 }; then :
1972 ac_retval=0
1973 else
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=1
1978 fi
1979 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981 # interfere with the next link command; also delete a directory that is
1982 # left behind by Apple's compiler. We do this before executing the actions.
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_link
1988 cat >config.log <<_ACEOF
1989 This file contains any messages produced by compilers while
1990 running configure, to aid debugging if configure makes a mistake.
1991
1992 It was created by $as_me, which was
1993 generated by GNU Autoconf 2.69. Invocation command line was
1994
1995 $ $0 $@
1996
1997 _ACEOF
1998 exec 5>>config.log
1999 {
2000 cat <<_ASUNAME
2001 ## --------- ##
2002 ## Platform. ##
2003 ## --------- ##
2004
2005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2010
2011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2013
2014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2017 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2021
2022 _ASUNAME
2023
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 $as_echo "PATH: $as_dir"
2030 done
2031 IFS=$as_save_IFS
2032
2033 } >&5
2034
2035 cat >&5 <<_ACEOF
2036
2037
2038 ## ----------- ##
2039 ## Core tests. ##
2040 ## ----------- ##
2041
2042 _ACEOF
2043
2044
2045 # Keep a trace of the command line.
2046 # Strip out --no-create and --no-recursion so they do not pile up.
2047 # Strip out --silent because we don't want to record it for future runs.
2048 # Also quote any args containing shell meta-characters.
2049 # Make two passes to allow for proper duplicate-argument suppression.
2050 ac_configure_args=
2051 ac_configure_args0=
2052 ac_configure_args1=
2053 ac_must_keep_next=false
2054 for ac_pass in 1 2
2055 do
2056 for ac_arg
2057 do
2058 case $ac_arg in
2059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2061 | -silent | --silent | --silen | --sile | --sil)
2062 continue ;;
2063 *\'*)
2064 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 esac
2066 case $ac_pass in
2067 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2068 2)
2069 as_fn_append ac_configure_args1 " '$ac_arg'"
2070 if test $ac_must_keep_next = true; then
2071 ac_must_keep_next=false # Got value, back to normal.
2072 else
2073 case $ac_arg in
2074 *=* | --config-cache | -C | -disable-* | --disable-* \
2075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2077 | -with-* | --with-* | -without-* | --without-* | --x)
2078 case "$ac_configure_args0 " in
2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2080 esac
2081 ;;
2082 -* ) ac_must_keep_next=true ;;
2083 esac
2084 fi
2085 as_fn_append ac_configure_args " '$ac_arg'"
2086 ;;
2087 esac
2088 done
2089 done
2090 { ac_configure_args0=; unset ac_configure_args0;}
2091 { ac_configure_args1=; unset ac_configure_args1;}
2092
2093 # When interrupted or exit'd, cleanup temporary files, and complete
2094 # config.log. We remove comments because anyway the quotes in there
2095 # would cause problems or look ugly.
2096 # WARNING: Use '\'' to represent an apostrophe within the trap.
2097 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2098 trap 'exit_status=$?
2099 # Save into config.log some information that might help in debugging.
2100 {
2101 echo
2102
2103 $as_echo "## ---------------- ##
2104 ## Cache variables. ##
2105 ## ---------------- ##"
2106 echo
2107 # The following way of writing the cache mishandles newlines in values,
2108 (
2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in #(
2112 *${as_nl}*)
2113 case $ac_var in #(
2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2116 esac
2117 case $ac_var in #(
2118 _ | IFS | as_nl) ;; #(
2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2120 *) { eval $ac_var=; unset $ac_var;} ;;
2121 esac ;;
2122 esac
2123 done
2124 (set) 2>&1 |
2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2126 *${as_nl}ac_space=\ *)
2127 sed -n \
2128 "s/'\''/'\''\\\\'\'''\''/g;
2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2130 ;; #(
2131 *)
2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2133 ;;
2134 esac |
2135 sort
2136 )
2137 echo
2138
2139 $as_echo "## ----------------- ##
2140 ## Output variables. ##
2141 ## ----------------- ##"
2142 echo
2143 for ac_var in $ac_subst_vars
2144 do
2145 eval ac_val=\$$ac_var
2146 case $ac_val in
2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 esac
2149 $as_echo "$ac_var='\''$ac_val'\''"
2150 done | sort
2151 echo
2152
2153 if test -n "$ac_subst_files"; then
2154 $as_echo "## ------------------- ##
2155 ## File substitutions. ##
2156 ## ------------------- ##"
2157 echo
2158 for ac_var in $ac_subst_files
2159 do
2160 eval ac_val=\$$ac_var
2161 case $ac_val in
2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2163 esac
2164 $as_echo "$ac_var='\''$ac_val'\''"
2165 done | sort
2166 echo
2167 fi
2168
2169 if test -s confdefs.h; then
2170 $as_echo "## ----------- ##
2171 ## confdefs.h. ##
2172 ## ----------- ##"
2173 echo
2174 cat confdefs.h
2175 echo
2176 fi
2177 test "$ac_signal" != 0 &&
2178 $as_echo "$as_me: caught signal $ac_signal"
2179 $as_echo "$as_me: exit $exit_status"
2180 } >&5
2181 rm -f core *.core core.conftest.* &&
2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2183 exit $exit_status
2184 ' 0
2185 for ac_signal in 1 2 13 15; do
2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 done
2188 ac_signal=0
2189
2190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2191 rm -f -r conftest* confdefs.h
2192
2193 $as_echo "/* confdefs.h */" > confdefs.h
2194
2195 # Predefined preprocessor variables.
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_NAME "$PACKAGE_NAME"
2199 _ACEOF
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2203 _ACEOF
2204
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2207 _ACEOF
2208
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_STRING "$PACKAGE_STRING"
2211 _ACEOF
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2215 _ACEOF
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_URL "$PACKAGE_URL"
2219 _ACEOF
2220
2221
2222 # Let the site file select an alternate cache file if it wants to.
2223 # Prefer an explicitly selected file to automatically selected ones.
2224 ac_site_file1=NONE
2225 ac_site_file2=NONE
2226 if test -n "$CONFIG_SITE"; then
2227 # We do not want a PATH search for config.site.
2228 case $CONFIG_SITE in #((
2229 -*) ac_site_file1=./$CONFIG_SITE;;
2230 */*) ac_site_file1=$CONFIG_SITE;;
2231 *) ac_site_file1=./$CONFIG_SITE;;
2232 esac
2233 elif test "x$prefix" != xNONE; then
2234 ac_site_file1=$prefix/share/config.site
2235 ac_site_file2=$prefix/etc/config.site
2236 else
2237 ac_site_file1=$ac_default_prefix/share/config.site
2238 ac_site_file2=$ac_default_prefix/etc/config.site
2239 fi
2240 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2241 do
2242 test "x$ac_site_file" = xNONE && continue
2243 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2245 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2246 sed 's/^/| /' "$ac_site_file" >&5
2247 . "$ac_site_file" \
2248 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2250 as_fn_error $? "failed to load site script $ac_site_file
2251 See \`config.log' for more details" "$LINENO" 5; }
2252 fi
2253 done
2254
2255 if test -r "$cache_file"; then
2256 # Some versions of bash will fail to source /dev/null (special files
2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2258 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2260 $as_echo "$as_me: loading cache $cache_file" >&6;}
2261 case $cache_file in
2262 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2263 *) . "./$cache_file";;
2264 esac
2265 fi
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2268 $as_echo "$as_me: creating cache $cache_file" >&6;}
2269 >$cache_file
2270 fi
2271
2272 # Check that the precious variables saved in the cache have kept the same
2273 # value.
2274 ac_cache_corrupted=false
2275 for ac_var in $ac_precious_vars; do
2276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2277 eval ac_new_set=\$ac_env_${ac_var}_set
2278 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2279 eval ac_new_val=\$ac_env_${ac_var}_value
2280 case $ac_old_set,$ac_new_set in
2281 set,)
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2285 ,set)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,);;
2290 *)
2291 if test "x$ac_old_val" != "x$ac_new_val"; then
2292 # differences in whitespace do not lead to failure.
2293 ac_old_val_w=`echo x $ac_old_val`
2294 ac_new_val_w=`echo x $ac_new_val`
2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2297 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2298 ac_cache_corrupted=:
2299 else
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2301 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2302 eval $ac_var=\$ac_old_val
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2305 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2307 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2308 fi;;
2309 esac
2310 # Pass precious variables to config.status.
2311 if test "$ac_new_set" = set; then
2312 case $ac_new_val in
2313 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 *) ac_arg=$ac_var=$ac_new_val ;;
2315 esac
2316 case " $ac_configure_args " in
2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2318 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2319 esac
2320 fi
2321 done
2322 if $ac_cache_corrupted; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2326 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2327 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2328 fi
2329 ## -------------------- ##
2330 ## Main body of script. ##
2331 ## -------------------- ##
2332
2333 ac_ext=c
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338
2339
2340
2341
2342
2343
2344
2345
2346 progname=$0
2347 # if PWD already has a value, it is probably wrong.
2348 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2349
2350 # Export original configure arguments for use by sub-configures.
2351 # Quote arguments with shell meta charatcers.
2352 TOPLEVEL_CONFIGURE_ARGUMENTS=
2353 set -- "$progname" "$@"
2354 for ac_arg
2355 do
2356 case "$ac_arg" in
2357 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2358 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2359 # if the argument is of the form -foo=baz, quote the baz part only
2360 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2361 *) ;;
2362 esac
2363 # Add the quoted argument to the list.
2364 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2365 done
2366 if test "$silent" = yes; then
2367 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2368 fi
2369 # Remove the initial space we just introduced and, as these will be
2370 # expanded by make, quote '$'.
2371 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2372
2373
2374 # Find the build, host, and target systems.
2375 ac_aux_dir=
2376 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/install-sh -c"
2380 break
2381 elif test -f "$ac_dir/install.sh"; then
2382 ac_aux_dir=$ac_dir
2383 ac_install_sh="$ac_aux_dir/install.sh -c"
2384 break
2385 elif test -f "$ac_dir/shtool"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/shtool install -c"
2388 break
2389 fi
2390 done
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2393 fi
2394
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2402
2403
2404 # Make sure we can run config.sub.
2405 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2406 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2409 $as_echo_n "checking build system type... " >&6; }
2410 if ${ac_cv_build+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 ac_build_alias=$build_alias
2414 test "x$ac_build_alias" = x &&
2415 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2416 test "x$ac_build_alias" = x &&
2417 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2418 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2420
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2423 $as_echo "$ac_cv_build" >&6; }
2424 case $ac_cv_build in
2425 *-*-*) ;;
2426 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2427 esac
2428 build=$ac_cv_build
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_build
2431 shift
2432 build_cpu=$1
2433 build_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 build_os=$*
2438 IFS=$ac_save_IFS
2439 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 case ${build_alias} in
2443 "") build_noncanonical=${build} ;;
2444 *) build_noncanonical=${build_alias} ;;
2445 esac
2446
2447
2448
2449 case ${host_alias} in
2450 "") host_noncanonical=${build_noncanonical} ;;
2451 *) host_noncanonical=${host_alias} ;;
2452 esac
2453
2454
2455
2456 case ${target_alias} in
2457 "") target_noncanonical=${host_noncanonical} ;;
2458 *) target_noncanonical=${target_alias} ;;
2459 esac
2460
2461
2462
2463
2464 test "$host_noncanonical" = "$target_noncanonical" &&
2465 test "$program_prefix$program_suffix$program_transform_name" = \
2466 NONENONEs,x,x, &&
2467 program_transform_name=s,y,y,
2468
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2470 $as_echo_n "checking host system type... " >&6; }
2471 if ${ac_cv_host+:} false; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 if test "x$host_alias" = x; then
2475 ac_cv_host=$ac_cv_build
2476 else
2477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2479 fi
2480
2481 fi
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2483 $as_echo "$ac_cv_host" >&6; }
2484 case $ac_cv_host in
2485 *-*-*) ;;
2486 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2487 esac
2488 host=$ac_cv_host
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_host
2491 shift
2492 host_cpu=$1
2493 host_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 host_os=$*
2498 IFS=$ac_save_IFS
2499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2503 $as_echo_n "checking target system type... " >&6; }
2504 if ${ac_cv_target+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 if test "x$target_alias" = x; then
2508 ac_cv_target=$ac_cv_host
2509 else
2510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2512 fi
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2516 $as_echo "$ac_cv_target" >&6; }
2517 case $ac_cv_target in
2518 *-*-*) ;;
2519 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2520 esac
2521 target=$ac_cv_target
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_target
2524 shift
2525 target_cpu=$1
2526 target_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 target_os=$*
2531 IFS=$ac_save_IFS
2532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533
2534
2535 # The aliases save the names the user supplied, while $host etc.
2536 # will get canonicalized.
2537 test -n "$target_alias" &&
2538 test "$program_prefix$program_suffix$program_transform_name" = \
2539 NONENONEs,x,x, &&
2540 program_prefix=${target_alias}-
2541
2542 test "$program_prefix" != NONE &&
2543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544 # Use a double $ so make ignores it.
2545 test "$program_suffix" != NONE &&
2546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547 # Double any \ or $.
2548 # By default was `s,x,x', remove it if useless.
2549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551
2552
2553
2554 # Get 'install' or 'install-sh' and its variants.
2555 # Find a good install program. We prefer a C program (faster),
2556 # so one script is as good as another. But avoid the broken or
2557 # incompatible versions:
2558 # SysV /etc/install, /usr/sbin/install
2559 # SunOS /usr/etc/install
2560 # IRIX /sbin/install
2561 # AIX /bin/install
2562 # AmigaOS /C/install, which installs bootblocks on floppy discs
2563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2566 # OS/2's system install, which has a completely different semantic
2567 # ./install, which can be erroneously created by make from ./install.sh.
2568 # Reject install programs that cannot install multiple files.
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2570 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2571 if test -z "$INSTALL"; then
2572 if ${ac_cv_path_install+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2577 do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 # Account for people who put trailing slashes in PATH elements.
2581 case $as_dir/ in #((
2582 ./ | .// | /[cC]/* | \
2583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2584 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2585 /usr/ucb/* ) ;;
2586 *)
2587 # OSF1 and SCO ODT 3.0 have their own names for install.
2588 # Don't use installbsd from OSF since it installs stuff as root
2589 # by default.
2590 for ac_prog in ginstall scoinst install; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2593 if test $ac_prog = install &&
2594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595 # AIX install. It has an incompatible calling convention.
2596 :
2597 elif test $ac_prog = install &&
2598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # program-specific install script used by HP pwplus--don't use.
2600 :
2601 else
2602 rm -rf conftest.one conftest.two conftest.dir
2603 echo one > conftest.one
2604 echo two > conftest.two
2605 mkdir conftest.dir
2606 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2607 test -s conftest.one && test -s conftest.two &&
2608 test -s conftest.dir/conftest.one &&
2609 test -s conftest.dir/conftest.two
2610 then
2611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2612 break 3
2613 fi
2614 fi
2615 fi
2616 done
2617 done
2618 ;;
2619 esac
2620
2621 done
2622 IFS=$as_save_IFS
2623
2624 rm -rf conftest.one conftest.two conftest.dir
2625
2626 fi
2627 if test "${ac_cv_path_install+set}" = set; then
2628 INSTALL=$ac_cv_path_install
2629 else
2630 # As a last resort, use the slow shell script. Don't cache a
2631 # value for INSTALL within a source directory, because that will
2632 # break other packages using the cache if that directory is
2633 # removed, or if the value is a relative name.
2634 INSTALL=$ac_install_sh
2635 fi
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2638 $as_echo "$INSTALL" >&6; }
2639
2640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2641 # It thinks the first close brace ends the variable substitution.
2642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2643
2644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2645
2646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2649 $as_echo_n "checking whether ln works... " >&6; }
2650 if ${acx_cv_prog_LN+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 rm -f conftestdata_t
2654 echo >conftestdata_f
2655 if ln conftestdata_f conftestdata_t 2>/dev/null
2656 then
2657 acx_cv_prog_LN=ln
2658 else
2659 acx_cv_prog_LN=no
2660 fi
2661 rm -f conftestdata_f conftestdata_t
2662
2663 fi
2664 if test $acx_cv_prog_LN = no; then
2665 LN="cp"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2667 $as_echo "no, using $LN" >&6; }
2668 else
2669 LN="$acx_cv_prog_LN"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672 fi
2673
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2675 $as_echo_n "checking whether ln -s works... " >&6; }
2676 LN_S=$as_ln_s
2677 if test "$LN_S" = "ln -s"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2679 $as_echo "yes" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2682 $as_echo "no, using $LN_S" >&6; }
2683 fi
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2686 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2687 if ${ac_cv_path_SED+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2691 for ac_i in 1 2 3 4 5 6 7; do
2692 ac_script="$ac_script$as_nl$ac_script"
2693 done
2694 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2695 { ac_script=; unset ac_script;}
2696 if test -z "$SED"; then
2697 ac_path_SED_found=false
2698 # Loop through the user's path and test for each of PROGNAME-LIST
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_prog in sed gsed; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2707 as_fn_executable_p "$ac_path_SED" || continue
2708 # Check for GNU ac_path_SED and select it if it is found.
2709 # Check for GNU $ac_path_SED
2710 case `"$ac_path_SED" --version 2>&1` in
2711 *GNU*)
2712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2713 *)
2714 ac_count=0
2715 $as_echo_n 0123456789 >"conftest.in"
2716 while :
2717 do
2718 cat "conftest.in" "conftest.in" >"conftest.tmp"
2719 mv "conftest.tmp" "conftest.in"
2720 cp "conftest.in" "conftest.nl"
2721 $as_echo '' >> "conftest.nl"
2722 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2724 as_fn_arith $ac_count + 1 && ac_count=$as_val
2725 if test $ac_count -gt ${ac_path_SED_max-0}; then
2726 # Best one so far, save it but keep looking for a better one
2727 ac_cv_path_SED="$ac_path_SED"
2728 ac_path_SED_max=$ac_count
2729 fi
2730 # 10*(2^10) chars as input seems more than enough
2731 test $ac_count -gt 10 && break
2732 done
2733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2734 esac
2735
2736 $ac_path_SED_found && break 3
2737 done
2738 done
2739 done
2740 IFS=$as_save_IFS
2741 if test -z "$ac_cv_path_SED"; then
2742 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2743 fi
2744 else
2745 ac_cv_path_SED=$SED
2746 fi
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2750 $as_echo "$ac_cv_path_SED" >&6; }
2751 SED="$ac_cv_path_SED"
2752 rm -f conftest.sed
2753
2754 for ac_prog in gawk mawk nawk awk
2755 do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757 set dummy $ac_prog; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 AWK=$ac_cv_prog_AWK
2784 if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786 $as_echo "$AWK" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793 test -n "$AWK" && break
2794 done
2795
2796
2797 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2798
2799 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2800 # a relative path.
2801 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2802 INSTALL="${srcpwd}/install-sh -c"
2803 fi
2804
2805 # Set srcdir to "." if that's what it is.
2806 # This is important for multilib support.
2807 pwd=`${PWDCMD-pwd}`
2808 if test "${pwd}" = "${srcpwd}" ; then
2809 srcdir=.
2810 fi
2811
2812 topsrcdir=$srcpwd
2813
2814 extra_host_args=
2815
2816 ### To add a new directory to the tree, first choose whether it is a target
2817 ### or a host dependent tool. Then put it into the appropriate list
2818 ### (library or tools, host or target), doing a dependency sort.
2819
2820 # Subdirs will be configured in the order listed in build_configdirs,
2821 # configdirs, or target_configdirs; see the serialization section below.
2822
2823 # Dependency sorting is only needed when *configuration* must be done in
2824 # a particular order. In all cases a dependency should be specified in
2825 # the Makefile, whether or not it's implicitly specified here.
2826
2827 # Double entries in build_configdirs, configdirs, or target_configdirs may
2828 # cause circular dependencies and break everything horribly.
2829
2830 # these library is used by various programs built for the build
2831 # environment
2832 #
2833 build_libs="build-libiberty build-libcpp"
2834
2835 # these tools are built for the build environment
2836 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2837
2838 # these libraries are used by various programs built for the host environment
2839 #f
2840 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2841
2842 # these tools are built for the host environment
2843 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2844 # know that we are building the simulator.
2845 # binutils, gas and ld appear in that order because it makes sense to run
2846 # "make check" in that particular order.
2847 # If --enable-gold is used, "gold" may replace "ld".
2848 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 gm2tools gotools c++tools"
2849
2850 # these libraries are built for the target environment, and are built after
2851 # the host libraries and the host tools (which may be a cross compiler)
2852 # Note that libiberty is not a target library.
2853 target_libraries="target-libgcc \
2854 target-libbacktrace \
2855 target-libgloss \
2856 target-newlib \
2857 target-libgomp \
2858 target-libatomic \
2859 target-libitm \
2860 target-libstdc++-v3 \
2861 target-libsanitizer \
2862 target-libvtv \
2863 target-libssp \
2864 target-libquadmath \
2865 target-libgfortran \
2866 target-libffi \
2867 target-libobjc \
2868 target-libgcobol \
2869 target-libada \
2870 target-libgm2 \
2871 target-libgo \
2872 target-libgrust \
2873 target-libphobos \
2874 target-zlib"
2875
2876 # these tools are built using the target libraries, and are intended to
2877 # run only in the target environment
2878 #
2879 # note: any program that *uses* libraries that are in the "target_libraries"
2880 # list belongs in this list.
2881 #
2882 target_tools="target-rda"
2883
2884 ################################################################################
2885
2886 ## All tools belong in one of the four categories, and are assigned above
2887 ## We assign ${configdirs} this way to remove all embedded newlines. This
2888 ## is important because configure will choke if they ever get through.
2889 ## ${configdirs} is directories we build using the host tools.
2890 ## ${target_configdirs} is directories we build using the target tools.
2891 configdirs=`echo ${host_libs} ${host_tools}`
2892 target_configdirs=`echo ${target_libraries} ${target_tools}`
2893 build_configdirs=`echo ${build_libs} ${build_tools}`
2894
2895
2896
2897 ################################################################################
2898
2899 srcname="gnu development package"
2900
2901 # This gets set non-empty for some net releases of packages.
2902 appdirs=""
2903
2904 # Define is_cross_compiler to save on calls to 'test'.
2905 is_cross_compiler=
2906 if test x"${host}" = x"${target}" ; then
2907 is_cross_compiler=no
2908 else
2909 is_cross_compiler=yes
2910 fi
2911
2912 # Find the build and target subdir names.
2913
2914 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2915 # have matching libraries, they should use host libraries: Makefile.tpl
2916 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2917 # However, they still use the build modules, because the corresponding
2918 # host modules (e.g. bison) are only built for the host when bootstrap
2919 # finishes. So:
2920 # - build_subdir is where we find build modules, and never changes.
2921 # - build_libsubdir is where we find build libraries, and can be overridden.
2922
2923 # Prefix 'build-' so this never conflicts with target_subdir.
2924 build_subdir="build-${build_noncanonical}"
2925
2926 # Check whether --with-build-libsubdir was given.
2927 if test "${with_build_libsubdir+set}" = set; then :
2928 withval=$with_build_libsubdir; build_libsubdir="$withval"
2929 else
2930 build_libsubdir="$build_subdir"
2931 fi
2932
2933 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2934 if ( test $srcdir = . && test -d gcc ) \
2935 || test -d $srcdir/../host-${host_noncanonical}; then
2936 host_subdir="host-${host_noncanonical}"
2937 else
2938 host_subdir=.
2939 fi
2940 # No prefix.
2941 target_subdir=${target_noncanonical}
2942
2943 # Be sure to cover against remnants of an in-tree build.
2944 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2945 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2946 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2947 fi
2948
2949 # Skipdirs are removed silently.
2950 skipdirs=
2951 # Noconfigdirs are removed loudly.
2952 noconfigdirs=""
2953
2954 use_gnu_ld=
2955 # Make sure we don't let GNU ld be added if we didn't want it.
2956 if test x$with_gnu_ld = xno ; then
2957 use_gnu_ld=no
2958 noconfigdirs="$noconfigdirs ld gold"
2959 fi
2960
2961 use_gnu_as=
2962 # Make sure we don't let GNU as be added if we didn't want it.
2963 if test x$with_gnu_as = xno ; then
2964 use_gnu_as=no
2965 noconfigdirs="$noconfigdirs gas"
2966 fi
2967
2968 use_included_zlib=
2969
2970 # Check whether --with-system-zlib was given.
2971 if test "${with_system_zlib+set}" = set; then :
2972 withval=$with_system_zlib;
2973 fi
2974
2975 # Make sure we don't let ZLIB be added if we didn't want it.
2976 if test x$with_system_zlib = xyes ; then
2977 use_included_zlib=no
2978 noconfigdirs="$noconfigdirs zlib"
2979 fi
2980
2981 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2982 # is provided.
2983 if test x$with_system_readline = xyes ; then
2984 noconfigdirs="$noconfigdirs readline"
2985 fi
2986
2987
2988 # Check whether --with-zstd was given.
2989 if test "${with_zstd+set}" = set; then :
2990 withval=$with_zstd;
2991 fi
2992
2993
2994 # some tools are so dependent upon X11 that if we're not building with X,
2995 # it's not even worth trying to configure, much less build, that tool.
2996
2997 case ${with_x} in
2998 yes | "") ;; # the default value for this tree is that X11 is available
2999 no)
3000 skipdirs="${skipdirs} tk itcl libgui"
3001 # We won't be able to build gdbtk without X.
3002 enable_gdbtk=no
3003 ;;
3004 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3005 esac
3006
3007 # Some are only suitable for cross toolchains.
3008 # Remove these if host=target.
3009 cross_only="target-libgloss target-newlib target-opcodes"
3010
3011 case $is_cross_compiler in
3012 no) skipdirs="${skipdirs} ${cross_only}" ;;
3013 esac
3014
3015 # If both --with-headers and --with-libs are specified, default to
3016 # --without-newlib.
3017 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3018 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3019 if test x"${with_newlib}" = x ; then
3020 with_newlib=no
3021 fi
3022 fi
3023
3024 # Recognize --with-newlib/--without-newlib.
3025 case ${with_newlib} in
3026 no) skipdirs="${skipdirs} target-newlib" ;;
3027 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3028 esac
3029
3030 # Check whether --enable-as-accelerator-for was given.
3031 if test "${enable_as_accelerator_for+set}" = set; then :
3032 enableval=$enable_as_accelerator_for;
3033 fi
3034
3035
3036 # Check whether --enable-offload-targets was given.
3037 if test "${enable_offload_targets+set}" = set; then :
3038 enableval=$enable_offload_targets;
3039 if test x"$enable_offload_targets" = x; then
3040 as_fn_error $? "no offload targets specified" "$LINENO" 5
3041 fi
3042
3043 else
3044 enable_offload_targets=
3045 fi
3046
3047
3048 # Check whether --enable-offload-defaulted was given.
3049 if test "${enable_offload_defaulted+set}" = set; then :
3050 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3051 else
3052 enable_offload_defaulted=
3053 fi
3054
3055
3056 # Handle --enable-gold, --enable-ld.
3057 # --disable-gold [--enable-ld]
3058 # Build only ld. Default option.
3059 # --enable-gold [--enable-ld]
3060 # Build both gold and ld. Install gold as "ld.gold", install ld
3061 # as "ld.bfd" and "ld".
3062 # --enable-gold=default [--enable-ld]
3063 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3064 # install ld as "ld.bfd".
3065 # --enable-gold[=default] --disable-ld
3066 # Build only gold, which is then installed as both "ld.gold" and "ld".
3067 # --enable-gold --enable-ld=default
3068 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3069 # and ld.bfd).
3070 # In other words, ld is default
3071 # --enable-gold=default --enable-ld=default
3072 # Error.
3073
3074 default_ld=
3075 # Check whether --enable-gold was given.
3076 if test "${enable_gold+set}" = set; then :
3077 enableval=$enable_gold; ENABLE_GOLD=$enableval
3078 else
3079 ENABLE_GOLD=no
3080 fi
3081
3082 case "${ENABLE_GOLD}" in
3083 yes|default)
3084 # Check for ELF target.
3085 is_elf=no
3086 case "${target}" in
3087 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3088 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3089 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3090 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3091 case "${target}" in
3092 *-*-linux*aout* | *-*-linux*oldld*)
3093 ;;
3094 *)
3095 is_elf=yes
3096 ;;
3097 esac
3098 esac
3099
3100 if test "$is_elf" = "yes"; then
3101 # Check for target supported by gold.
3102 case "${target}" in
3103 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3104 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3105 configdirs="$configdirs gold"
3106 if test x${ENABLE_GOLD} = xdefault; then
3107 default_ld=gold
3108 fi
3109 ENABLE_GOLD=yes
3110 ;;
3111 esac
3112 fi
3113 ;;
3114 no)
3115 ;;
3116 *)
3117 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3118 ;;
3119 esac
3120
3121 # Check whether --enable-ld was given.
3122 if test "${enable_ld+set}" = set; then :
3123 enableval=$enable_ld; ENABLE_LD=$enableval
3124 else
3125 ENABLE_LD=yes
3126 fi
3127
3128
3129 case "${ENABLE_LD}" in
3130 default)
3131 if test x${default_ld} != x; then
3132 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3133 fi
3134 ;;
3135 yes)
3136 ;;
3137 no)
3138 if test x${ENABLE_GOLD} != xyes; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3140 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3141 fi
3142 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3143 ;;
3144 *)
3145 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3146 ;;
3147 esac
3148
3149 # Check whether --enable-gprofng was given.
3150 if test "${enable_gprofng+set}" = set; then :
3151 enableval=$enable_gprofng; enable_gprofng=$enableval
3152 else
3153 enable_gprofng=yes
3154 fi
3155
3156 if test "$enable_gprofng" = "yes"; then
3157 case "${target}" in
3158 *-musl*)
3159 ;;
3160 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3161 configdirs="$configdirs gprofng"
3162 ;;
3163 esac
3164 fi
3165
3166
3167 # PR gas/19109
3168 # Decide the default method for compressing debug sections.
3169 # Provide a configure time option to override our default.
3170 # Check whether --enable-compressed_debug_sections was given.
3171 if test "${enable_compressed_debug_sections+set}" = set; then :
3172 enableval=$enable_compressed_debug_sections;
3173 if test x"$enable_compressed_debug_sections" = xyes; then
3174 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3175 fi
3176
3177 else
3178 enable_compressed_debug_sections=
3179 fi
3180
3181
3182 # Select default compression algorithm.
3183 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3184 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3185 enableval=$enable_default_compressed_debug_sections_algorithm;
3186 else
3187 default_compressed_debug_sections_algorithm=
3188 fi
3189
3190
3191 # Configure extra directories which are host specific
3192
3193 case "${host}" in
3194 *-cygwin*)
3195 configdirs="$configdirs libtermcap" ;;
3196 esac
3197
3198 # A target can indicate whether a language isn't supported for some reason.
3199 # Only spaces may be used in this macro; not newlines or tabs.
3200 unsupported_languages=
3201
3202 # Remove more programs from consideration, based on the host or
3203 # target this usually means that a port of the program doesn't
3204 # exist yet.
3205
3206 case "${host}" in
3207 i[3456789]86-*-msdosdjgpp*)
3208 noconfigdirs="$noconfigdirs tcl tk itcl"
3209 ;;
3210 esac
3211
3212 # Default to --disable-year2038 until we can handle differences between
3213 # projects that use gnulib (which understands year 2038) and projects that
3214 # do not (like BFD).
3215 # Check whether --enable-year2038 was given.
3216 if test "${enable_year2038+set}" = set; then :
3217 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3218 else
3219 ENABLE_YEAR2038=no
3220 fi
3221
3222 enable_year2038=
3223 if test "${ENABLE_YEAR2038}" = "no" ; then
3224 enable_year2038=no
3225 fi
3226
3227 # Check whether --enable-libquadmath was given.
3228 if test "${enable_libquadmath+set}" = set; then :
3229 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3230 else
3231 ENABLE_LIBQUADMATH=yes
3232 fi
3233
3234 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3235 noconfigdirs="$noconfigdirs target-libquadmath"
3236 fi
3237
3238
3239 # Check whether --enable-libquadmath-support was given.
3240 if test "${enable_libquadmath_support+set}" = set; then :
3241 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3242 else
3243 ENABLE_LIBQUADMATH_SUPPORT=yes
3244 fi
3245
3246 enable_libquadmath_support=
3247 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3248 enable_libquadmath_support=no
3249 fi
3250
3251
3252 # Check whether --enable-libada was given.
3253 if test "${enable_libada+set}" = set; then :
3254 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3255 else
3256 ENABLE_LIBADA=yes
3257 fi
3258
3259 if test "${ENABLE_LIBADA}" != "yes" ; then
3260 noconfigdirs="$noconfigdirs gnattools"
3261 fi
3262
3263 # Check whether --enable-libgm2 was given.
3264 if test "${enable_libgm2+set}" = set; then :
3265 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3266 else
3267 ENABLE_LIBGM2=no
3268 fi
3269
3270 if test "${ENABLE_LIBGM2}" != "yes" ; then
3271 noconfigdirs="$noconfigdirs gm2tools"
3272 fi
3273
3274 # Check whether --enable-libssp was given.
3275 if test "${enable_libssp+set}" = set; then :
3276 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3277 else
3278 ENABLE_LIBSSP=yes
3279 fi
3280
3281
3282 # Check whether --enable-libstdcxx was given.
3283 if test "${enable_libstdcxx+set}" = set; then :
3284 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3285 else
3286 ENABLE_LIBSTDCXX=default
3287 fi
3288
3289 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3291 fi
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 libitm on unsupported systems.
3332 if test -d ${srcdir}/libitm; then
3333 if test x$enable_libitm = x; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3335 $as_echo_n "checking for libitm support... " >&6; }
3336 if (srcdir=${srcdir}/libitm; \
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-libitm"
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 libsanitizer on unsupported systems.
3351 if test -d ${srcdir}/libsanitizer; then
3352 if test x$enable_libsanitizer = x; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3354 $as_echo_n "checking for libsanitizer support... " >&6; }
3355 if (srcdir=${srcdir}/libsanitizer; \
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-libsanitizer"
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 libvtv on unsupported systems.
3370 if test -d ${srcdir}/libvtv; then
3371 if test x$enable_libvtv = x; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3373 $as_echo_n "checking for libvtv support... " >&6; }
3374 if (srcdir=${srcdir}/libvtv; \
3375 . ${srcdir}/configure.tgt; \
3376 test "$VTV_SUPPORTED" != "yes")
3377 then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs="$noconfigdirs target-libvtv"
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 libquadmath for some systems.
3389 case "${target}" in
3390 avr-*-*)
3391 noconfigdirs="$noconfigdirs target-libquadmath"
3392 ;;
3393 # libquadmath is unused on AIX and libquadmath build process use of
3394 # LD_LIBRARY_PATH can break AIX bootstrap.
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libquadmath"
3397 ;;
3398 esac
3399
3400 cpu_type=`echo ${host} | sed 's/-.*$//'`
3401 # Special case cpu_type for x86_64 as it shares AUTO_PROFILE from i386.
3402 if test "${cpu_type}" = "x86_64" ; then
3403 cpu_type="i386"
3404 fi
3405
3406
3407 # Disable libssp for some systems.
3408 case "${target}" in
3409 avr-*-*)
3410 # No hosted I/O support.
3411 noconfigdirs="$noconfigdirs target-libssp"
3412 ;;
3413 bpf-*-*)
3414 noconfigdirs="$noconfigdirs target-libssp"
3415 ;;
3416 powerpc-*-aix* | rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs target-libssp"
3418 ;;
3419 pru-*-*)
3420 # No hosted I/O support.
3421 noconfigdirs="$noconfigdirs target-libssp"
3422 ;;
3423 rl78-*-*)
3424 # libssp uses a misaligned load to trigger a fault, but the RL78
3425 # doesn't fault for those - instead, it gives a build-time error
3426 # for explicit misaligned loads.
3427 noconfigdirs="$noconfigdirs target-libssp"
3428 ;;
3429 visium-*-*)
3430 # No hosted I/O support.
3431 noconfigdirs="$noconfigdirs target-libssp"
3432 ;;
3433 esac
3434
3435 # Disable libstdc++-v3 for some systems.
3436 # Allow user to override this if they pass --enable-libstdcxx
3437 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3438 case "${target}" in
3439 *-*-vxworks*)
3440 # VxWorks uses the Dinkumware C++ library.
3441 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3442 ;;
3443 arm*-wince-pe*)
3444 # the C++ libraries don't build on top of CE's C libraries
3445 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 ;;
3447 avr-*-*)
3448 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3449 ;;
3450 bpf-*-*)
3451 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3452 ;;
3453 ft32-*-*)
3454 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3455 ;;
3456 esac
3457 fi
3458
3459 # Disable Ada/GNAT on systems where it is known to not work.
3460 # For testing, you can override this with --enable-languages=ada.
3461 case ,${enable_languages}, in
3462 *,ada,*)
3463 ;;
3464 *)
3465 case "${target}" in
3466 amdgcn*-*-* \
3467 | nvptx*-*-* )
3468 unsupported_languages="$unsupported_languages ada"
3469 ;;
3470 esac
3471 ;;
3472 esac
3473
3474 # Disable C++ on systems where it is known to not work.
3475 # For testing, you can override this with --enable-languages=c++.
3476 case ,${enable_languages}, in
3477 *,c++,*)
3478 ;;
3479 *)
3480 case "${target}" in
3481 bpf-*-*)
3482 unsupported_languages="$unsupported_languages c++"
3483 ;;
3484 esac
3485 ;;
3486 esac
3487
3488 # Disable Objc on systems where it is known to not work.
3489 # For testing, you can override this with --enable-languages=objc.
3490 case ,${enable_languages}, in
3491 *,objc,*)
3492 ;;
3493 *)
3494 case "${target}" in
3495 bpf-*-*)
3496 unsupported_languages="$unsupported_languages objc"
3497 ;;
3498 esac
3499 ;;
3500 esac
3501
3502 # Disable libobjc for some systems where it is known to not work.
3503 case "${target}" in
3504 amdgcn*-*-*)
3505 noconfigdirs="$noconfigdirs target-libobjc"
3506 ;;
3507 nvptx*-*-*)
3508 noconfigdirs="$noconfigdirs target-libobjc"
3509 ;;
3510 esac
3511
3512 # Disable D on systems where it is known to not work.
3513 # For testing, you can override this with --enable-languages=d.
3514 case ,${enable_languages}, in
3515 *,d,*)
3516 ;;
3517 *)
3518 case "${target}" in
3519 bpf-*-*)
3520 unsupported_languages="$unsupported_languages d"
3521 ;;
3522 esac
3523 ;;
3524 esac
3525
3526 # Disable libphobos on unsupported systems.
3527 # For testing, you can override this with --enable-libphobos.
3528 if test -d ${srcdir}/libphobos; then
3529 if test x$enable_libphobos = x; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3531 $as_echo_n "checking for libphobos support... " >&6; }
3532 if (srcdir=${srcdir}/libphobos; \
3533 . ${srcdir}/configure.tgt; \
3534 test "$LIBPHOBOS_SUPPORTED" != "yes")
3535 then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 noconfigdirs="$noconfigdirs target-libphobos"
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3541 $as_echo "yes" >&6; }
3542 fi
3543 fi
3544 fi
3545
3546 # Disable libgcobol on unsupported systems.
3547 # For testing, you can override this with --enable-libgcobol.
3548 if test -d ${srcdir}/libgcobol; then
3549 if test x$enable_libgcobol = x; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcobol support" >&5
3551 $as_echo_n "checking for libgcobol support... " >&6; }
3552 if (srcdir=${srcdir}/libgcobol; \
3553 . ${srcdir}/configure.tgt; \
3554 test -n "$UNSUPPORTED")
3555 then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 noconfigdirs="$noconfigdirs target-libgcobol"
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3561 $as_echo "yes" >&6; }
3562 fi
3563 fi
3564 fi
3565
3566 # Disable Fortran for some systems.
3567 case "${target}" in
3568 mmix-*-*)
3569 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3570 unsupported_languages="$unsupported_languages fortran"
3571 ;;
3572 bpf-*-*)
3573 unsupported_languages="$unsupported_languages fortran"
3574 ;;
3575 esac
3576
3577 # Always enable COBOL for --enable-languages=*cobol*
3578 # Otherwise, enable COBOL only for known architectures
3579 case ,${enable_languages}, in
3580 *,cobol,*)
3581 case ,${enable_languages}, in
3582 *,c++,*)
3583 ;;
3584 *)
3585 # We have an explicit cobol, but no c++. We need c++, because cobol
3586 # requires libstdc++
3587 enable_languages="$enable_languages,c++"
3588 ;;
3589 esac
3590 ;;
3591 *)
3592 case "${target}" in
3593 aarch64-*-linux*|x86_64-*-linux*)
3594 ;;
3595 *-*-*)
3596 unsupported_languages="$unsupported_languages cobol"
3597 ;;
3598 esac
3599 case "${host}" in
3600 aarch64-*-linux*|x86_64-*-linux*)
3601 ;;
3602 *-*-*)
3603 unsupported_languages="$unsupported_languages cobol"
3604 ;;
3605 esac
3606 ;;
3607 esac
3608
3609 # Disable libffi for some systems.
3610 case "${target}" in
3611 powerpc-*-darwin*)
3612 ;;
3613 i[3456789]86-*-darwin*)
3614 ;;
3615 x86_64-*-darwin[912]*)
3616 ;;
3617 *-*-darwin*)
3618 noconfigdirs="$noconfigdirs target-libffi"
3619 ;;
3620 *-*-netware*)
3621 noconfigdirs="$noconfigdirs target-libffi"
3622 ;;
3623 *-*-phoenix*)
3624 noconfigdirs="$noconfigdirs target-libffi"
3625 ;;
3626 *-*-rtems*)
3627 noconfigdirs="$noconfigdirs target-libffi"
3628 ;;
3629 *-*-tpf*)
3630 noconfigdirs="$noconfigdirs target-libffi"
3631 ;;
3632 *-*-uclinux*)
3633 noconfigdirs="$noconfigdirs target-libffi"
3634 ;;
3635 *-*-vxworks*)
3636 noconfigdirs="$noconfigdirs target-libffi"
3637 ;;
3638 aarch64*-*-freebsd*)
3639 noconfigdirs="$noconfigdirs target-libffi"
3640 ;;
3641 alpha*-*-*vms*)
3642 noconfigdirs="$noconfigdirs target-libffi"
3643 ;;
3644 amdgcn*-*-*)
3645 noconfigdirs="$noconfigdirs target-libffi"
3646 ;;
3647 arm*-*-freebsd*)
3648 noconfigdirs="$noconfigdirs target-libffi"
3649 ;;
3650 arm-wince-pe)
3651 noconfigdirs="$noconfigdirs target-libffi"
3652 ;;
3653 arm*-*-symbianelf*)
3654 noconfigdirs="$noconfigdirs target-libffi"
3655 ;;
3656 bpf-*-*)
3657 noconfigdirs="$noconfigdirs target-libffi"
3658 ;;
3659 cris-*-* | crisv32-*-*)
3660 case "${target}" in
3661 *-*-linux*)
3662 ;;
3663 *) # See PR46792 regarding target-libffi.
3664 noconfigdirs="$noconfigdirs target-libffi";;
3665 esac
3666 ;;
3667 hppa*64*-*-hpux*)
3668 noconfigdirs="$noconfigdirs target-libffi"
3669 ;;
3670 hppa*-hp-hpux11*)
3671 ;;
3672 hppa*-*-hpux*)
3673 noconfigdirs="$noconfigdirs target-libffi"
3674 ;;
3675 ia64*-*-*vms*)
3676 noconfigdirs="$noconfigdirs target-libffi"
3677 ;;
3678 i[3456789]86-w64-mingw*)
3679 noconfigdirs="$noconfigdirs target-libffi"
3680 ;;
3681 i[3456789]86-*-mingw*)
3682 noconfigdirs="$noconfigdirs target-libffi"
3683 ;;
3684 x86_64-*-mingw*)
3685 noconfigdirs="$noconfigdirs target-libffi"
3686 ;;
3687 mmix-*-*)
3688 noconfigdirs="$noconfigdirs target-libffi"
3689 ;;
3690 nvptx*-*-*)
3691 noconfigdirs="$noconfigdirs target-libffi"
3692 ;;
3693 powerpc-*-aix*)
3694 ;;
3695 rs6000-*-aix*)
3696 ;;
3697 ft32-*-*)
3698 noconfigdirs="$noconfigdirs target-libffi"
3699 ;;
3700 *-*-lynxos*)
3701 noconfigdirs="$noconfigdirs target-libffi"
3702 ;;
3703 esac
3704
3705 # Disable the go frontend on systems where it is known to not work. Please keep
3706 # this in sync with contrib/config-list.mk.
3707 case "${target}" in
3708 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3709 unsupported_languages="$unsupported_languages go"
3710 ;;
3711 esac
3712
3713 # Only allow gdbserver on some systems.
3714 if test -d ${srcdir}/gdbserver; then
3715 if test x$enable_gdbserver = x; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3717 $as_echo_n "checking for gdbserver support... " >&6; }
3718 if (srcdir=${srcdir}/gdbserver; \
3719 . ${srcdir}/configure.srv; \
3720 test -n "$UNSUPPORTED")
3721 then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 noconfigdirs="$noconfigdirs gdbserver"
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3727 $as_echo "yes" >&6; }
3728 fi
3729 fi
3730 fi
3731
3732 # Disable libgo for some systems where it is known to not work.
3733 # For testing, you can easily override this with --enable-libgo.
3734 if test x$enable_libgo = x; then
3735 case "${target}" in
3736 *-*-darwin*)
3737 # PR 46986
3738 noconfigdirs="$noconfigdirs target-libgo"
3739 ;;
3740 *-*-cygwin* | *-*-mingw*)
3741 noconfigdirs="$noconfigdirs target-libgo"
3742 ;;
3743 amdgcn*-*-*)
3744 noconfigdirs="$noconfigdirs target-libgo"
3745 ;;
3746 bpf-*-*)
3747 noconfigdirs="$noconfigdirs target-libgo"
3748 ;;
3749 nvptx*-*-*)
3750 noconfigdirs="$noconfigdirs target-libgo"
3751 ;;
3752 esac
3753 fi
3754
3755 # Default libgloss CPU subdirectory.
3756 libgloss_dir="$target_cpu"
3757
3758 case "${target}" in
3759 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3760 libgloss_dir=wince
3761 ;;
3762 aarch64*-*-* )
3763 libgloss_dir=aarch64
3764 ;;
3765 arm*-*-*)
3766 libgloss_dir=arm
3767 ;;
3768 cris-*-* | crisv32-*-*)
3769 libgloss_dir=cris
3770 ;;
3771 kvx-*-elf)
3772 libgloss_dir=kvx-elf
3773 ;;
3774 kvx-*-mbr)
3775 libgloss_dir=kvx-mbr
3776 ;;
3777 kvx-*-cos)
3778 libgloss_dir=kvx-cos
3779 ;;
3780 hppa*-*-*)
3781 libgloss_dir=pa
3782 ;;
3783 i[3456789]86-*-*)
3784 libgloss_dir=i386
3785 ;;
3786 loongarch*-*-*)
3787 libgloss_dir=loongarch
3788 ;;
3789 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3790 libgloss_dir=m68hc11
3791 ;;
3792 m68*-*-* | fido-*-*)
3793 libgloss_dir=m68k
3794 ;;
3795 mips*-*-*)
3796 libgloss_dir=mips
3797 ;;
3798 powerpc*-*-*)
3799 libgloss_dir=rs6000
3800 ;;
3801 pru-*-*)
3802 libgloss_dir=pru
3803 ;;
3804 sparc*-*-*)
3805 libgloss_dir=sparc
3806 ;;
3807 esac
3808
3809 # Disable newlib and libgloss for various target OSes.
3810 case "${target}" in
3811 alpha*-dec-osf*)
3812 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3813 ;;
3814 i[3456789]86-*-linux*)
3815 # This section makes it possible to build newlib natively on linux.
3816 # If we are using a cross compiler then don't configure newlib.
3817 if test x${is_cross_compiler} != xno ; then
3818 noconfigdirs="$noconfigdirs target-newlib"
3819 fi
3820 noconfigdirs="$noconfigdirs target-libgloss"
3821 # If we are not using a cross compiler, do configure newlib.
3822 # Note however, that newlib will only be configured in this situation
3823 # if the --with-newlib option has been given, because otherwise
3824 # 'target-newlib' will appear in skipdirs.
3825 ;;
3826 i[3456789]86-*-rdos*)
3827 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3828 ;;
3829 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 ;;
3832 sparc-*-sunos4*)
3833 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3834 ;;
3835 bpf-*-*)
3836 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3837 ;;
3838 *-*-aix*)
3839 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 ;;
3841 *-*-beos*)
3842 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3843 ;;
3844 *-*-chorusos)
3845 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3846 ;;
3847 *-*-dragonfly*)
3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3849 ;;
3850 *-*-freebsd*)
3851 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3852 ;;
3853 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3854 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3855 ;;
3856 *-*-lynxos*)
3857 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3858 ;;
3859 *-*-mingw*)
3860 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3861 ;;
3862 *-*-netbsd*)
3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 ;;
3865 *-*-netware*)
3866 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3867 ;;
3868 *-*-tpf*)
3869 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3870 ;;
3871 *-*-uclinux*)
3872 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3873 ;;
3874 *-*-vxworks*)
3875 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3876 ;;
3877 esac
3878
3879 # The ARM simulator has been deprecated for all ARM targets.
3880 case "${target}" in
3881 arm*-*-*)
3882 noconfigdirs="$noconfigdirs sim"
3883 ;;
3884 esac
3885
3886 case "${target}" in
3887 *-*-chorusos)
3888 ;;
3889 aarch64-*-darwin*)
3890 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3891 noconfigdirs="$noconfigdirs sim target-rda"
3892 ;;
3893 amdgcn*-*-*)
3894 ;;
3895 arm-*-darwin*)
3896 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3897 noconfigdirs="$noconfigdirs target-rda"
3898 ;;
3899 powerpc-*-darwin*)
3900 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3901 noconfigdirs="$noconfigdirs sim target-rda"
3902 ;;
3903 i[3456789]86-*-darwin*)
3904 noconfigdirs="$noconfigdirs ld gprof"
3905 noconfigdirs="$noconfigdirs sim target-rda"
3906 ;;
3907 x86_64-*-darwin[912]*)
3908 noconfigdirs="$noconfigdirs ld gas gprof"
3909 noconfigdirs="$noconfigdirs sim target-rda"
3910 ;;
3911 *-*-darwin*)
3912 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3913 noconfigdirs="$noconfigdirs sim target-rda"
3914 ;;
3915 *-*-dragonfly*)
3916 ;;
3917 *-*-freebsd*)
3918 if test "x$with_gmp" = x \
3919 && ! test -d ${srcdir}/gmp \
3920 && test -f /usr/local/include/gmp.h; then
3921 with_gmp=/usr/local
3922 fi
3923 ;;
3924 *-*-kaos*)
3925 # Remove unsupported stuff on all kaOS configurations.
3926 noconfigdirs="$noconfigdirs target-libgloss"
3927 ;;
3928 *-*-netbsd*)
3929 ;;
3930 *-*-netware*)
3931 ;;
3932 *-*-phoenix*)
3933 noconfigdirs="$noconfigdirs target-libgloss"
3934 ;;
3935 *-*-rtems*)
3936 noconfigdirs="$noconfigdirs target-libgloss"
3937 ;;
3938 # The tpf target doesn't support gdb yet.
3939 *-*-tpf*)
3940 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3941 ;;
3942 *-*-uclinux*)
3943 noconfigdirs="$noconfigdirs target-rda"
3944 ;;
3945 *-*-vxworks*)
3946 ;;
3947 alpha*-dec-osf*)
3948 # ld works, but does not support shared libraries.
3949 # gas doesn't generate exception information.
3950 noconfigdirs="$noconfigdirs gas ld"
3951 ;;
3952 alpha*-*-*vms*)
3953 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3954 ;;
3955 alpha*-*-*)
3956 # newlib is not 64 bit ready
3957 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3958 ;;
3959 bpf-*-*)
3960 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3961 ;;
3962 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3963 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3964 ;;
3965 arc*-*-*)
3966 noconfigdirs="$noconfigdirs sim"
3967 ;;
3968 arm-*-pe*)
3969 noconfigdirs="$noconfigdirs target-libgloss"
3970 ;;
3971 arm-*-riscix*)
3972 noconfigdirs="$noconfigdirs ld target-libgloss"
3973 ;;
3974 avr-*-*)
3975 if test x${with_avrlibc} != xno; then
3976 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3977 fi
3978 ;;
3979 c4x-*-* | tic4x-*-*)
3980 noconfigdirs="$noconfigdirs target-libgloss"
3981 ;;
3982 tic54x-*-*)
3983 noconfigdirs="$noconfigdirs target-libgloss gdb"
3984 ;;
3985 d10v-*-*)
3986 noconfigdirs="$noconfigdirs target-libgloss"
3987 ;;
3988 d30v-*-*)
3989 noconfigdirs="$noconfigdirs gdb"
3990 ;;
3991 fr30-*-elf*)
3992 noconfigdirs="$noconfigdirs gdb"
3993 ;;
3994 ft32-*-*)
3995 noconfigdirs="$noconfigdirs target-rda gprof"
3996 ;;
3997 moxie-*-*)
3998 noconfigdirs="$noconfigdirs"
3999 ;;
4000 h8300*-*-*)
4001 noconfigdirs="$noconfigdirs target-libgloss"
4002 ;;
4003 h8500-*-*)
4004 noconfigdirs="$noconfigdirs target-libgloss"
4005 ;;
4006 hppa1.1-*-osf* | hppa1.1-*-bsd* )
4007 ;;
4008 hppa*64*-*-hpux*)
4009 noconfigdirs="$noconfigdirs gdb"
4010 ;;
4011 hppa*-*-hpux11*)
4012 noconfigdirs="$noconfigdirs gdb ld"
4013 ;;
4014 hppa*64*-*-linux*)
4015 ;;
4016 hppa*-*-linux*)
4017 ;;
4018 hppa*-*-*elf* | \
4019 hppa*-*-lites* | \
4020 hppa*-*-openbsd* | \
4021 hppa*64*-*-*)
4022 ;;
4023 hppa*-*-pro*)
4024 ;;
4025 hppa*-*-*)
4026 noconfigdirs="$noconfigdirs ld"
4027 ;;
4028 i960-*-*)
4029 noconfigdirs="$noconfigdirs gdb"
4030 ;;
4031 ia64*-*-elf*)
4032 # No gdb support yet.
4033 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
4034 ;;
4035 ia64*-**-hpux*)
4036 # No ld support yet.
4037 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
4038 ;;
4039 ia64*-*-*vms*)
4040 # No ld support yet.
4041 noconfigdirs="$noconfigdirs libgui itcl ld"
4042 ;;
4043 i[3456789]86-w64-mingw*)
4044 ;;
4045 i[3456789]86-*-mingw*)
4046 target_configdirs="$target_configdirs target-winsup"
4047 ;;
4048 *-*-cygwin*)
4049 target_configdirs="$target_configdirs target-libtermcap target-winsup"
4050 noconfigdirs="$noconfigdirs target-libgloss"
4051 # always build newlib if winsup directory is present.
4052 if test -d "$srcdir/winsup/cygwin"; then
4053 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4054 elif test -d "$srcdir/newlib"; then
4055 echo "Warning: winsup/cygwin is missing so newlib can't be built."
4056 fi
4057 ;;
4058 i[3456789]86-*-pe)
4059 noconfigdirs="$noconfigdirs target-libgloss"
4060 ;;
4061 i[3456789]86-*-sco3.2v5*)
4062 # The linker does not yet know about weak symbols in COFF,
4063 # and is not configured to handle mixed ELF and COFF.
4064 noconfigdirs="$noconfigdirs ld target-libgloss"
4065 ;;
4066 i[3456789]86-*-sco*)
4067 noconfigdirs="$noconfigdirs gprof target-libgloss"
4068 ;;
4069 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4070 noconfigdirs="$noconfigdirs target-libgloss"
4071 ;;
4072 i[3456789]86-*-sysv4*)
4073 noconfigdirs="$noconfigdirs target-libgloss"
4074 ;;
4075 i[3456789]86-*-beos*)
4076 noconfigdirs="$noconfigdirs gdb"
4077 ;;
4078 i[3456789]86-*-rdos*)
4079 noconfigdirs="$noconfigdirs gdb"
4080 ;;
4081 kvx-*-*)
4082 noconfigdirs="$noconfigdirs gdb gdbserver sim"
4083 ;;
4084 mmix-*-*)
4085 noconfigdirs="$noconfigdirs gdb"
4086 ;;
4087 mt-*-*)
4088 noconfigdirs="$noconfigdirs sim"
4089 ;;
4090 nfp-*-*)
4091 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4092 noconfigdirs="$noconfigdirs $target_libraries"
4093 ;;
4094 pdp11-*-*)
4095 noconfigdirs="$noconfigdirs gdb gprof"
4096 ;;
4097 powerpc-*-aix*)
4098 # copied from rs6000-*-* entry
4099 noconfigdirs="$noconfigdirs gprof"
4100 ;;
4101 powerpc*-*-winnt* | powerpc*-*-pe*)
4102 target_configdirs="$target_configdirs target-winsup"
4103 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4104 # always build newlib.
4105 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4106 ;;
4107 # This is temporary until we can link against shared libraries
4108 powerpcle-*-solaris*)
4109 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4110 ;;
4111 powerpc-*-beos*)
4112 noconfigdirs="$noconfigdirs gdb"
4113 ;;
4114 rs6000-*-lynxos*)
4115 noconfigdirs="$noconfigdirs gprof"
4116 ;;
4117 rs6000-*-aix*)
4118 noconfigdirs="$noconfigdirs gprof"
4119 ;;
4120 rs6000-*-*)
4121 noconfigdirs="$noconfigdirs gprof"
4122 ;;
4123 m68k-apollo-*)
4124 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4125 ;;
4126 microblaze*)
4127 noconfigdirs="$noconfigdirs gprof"
4128 ;;
4129 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4130 if test x$with_newlib = xyes; then
4131 noconfigdirs="$noconfigdirs gprof"
4132 fi
4133 ;;
4134 mips*-*-irix5*)
4135 noconfigdirs="$noconfigdirs gprof target-libgloss"
4136 ;;
4137 mips*-*-irix6*)
4138 noconfigdirs="$noconfigdirs gprof target-libgloss"
4139 ;;
4140 mips*-*-bsd*)
4141 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4142 ;;
4143 mips*-*-linux*)
4144 ;;
4145 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4146 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4147 noconfigdirs="$noconfigdirs ld gas gprof"
4148 ;;
4149 mips*-*-*)
4150 noconfigdirs="$noconfigdirs gprof"
4151 ;;
4152 nvptx*-*-*)
4153 noconfigdirs="$noconfigdirs target-libssp"
4154 ;;
4155 sh-*-*)
4156 case "${target}" in
4157 sh*-*-elf)
4158 ;;
4159 *)
4160 noconfigdirs="$noconfigdirs target-libgloss" ;;
4161 esac
4162 ;;
4163 sparc-*-sunos4*)
4164 if test x${is_cross_compiler} = xno ; then
4165 use_gnu_ld=no
4166 fi
4167 ;;
4168 tic6x-*-*)
4169 noconfigdirs="$noconfigdirs sim"
4170 ;;
4171 tilepro*-*-* | tilegx*-*-*)
4172 noconfigdirs="$noconfigdirs sim"
4173 ;;
4174 v810-*-*)
4175 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4176 ;;
4177 vax-*-*)
4178 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4179 ;;
4180 wasm32-*-*)
4181 noconfigdirs="$noconfigdirs ld"
4182 ;;
4183 loongarch*-*-linux*)
4184 ;;
4185 loongarch*-*-*)
4186 noconfigdirs="$noconfigdirs gprof"
4187 ;;
4188 esac
4189
4190 # If we aren't building newlib, then don't build libgloss, since libgloss
4191 # depends upon some newlib header files.
4192 case "${noconfigdirs}" in
4193 *target-libgloss*) ;;
4194 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4195 esac
4196
4197 # Work in distributions that contain no compiler tools, like Autoconf.
4198 host_makefile_frag=/dev/null
4199 if test -d ${srcdir}/config ; then
4200 case "${host}" in
4201 i[3456789]86-*-msdosdjgpp*)
4202 host_makefile_frag="config/mh-djgpp"
4203 ;;
4204 *-cygwin*)
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4207 $as_echo_n "checking to see if cat works as expected... " >&6; }
4208 echo a >cygwin-cat-check
4209 if test `cat cygwin-cat-check` = a ; then
4210 rm cygwin-cat-check
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4213 else
4214 rm cygwin-cat-check
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 as_fn_error $? "The cat command does not ignore carriage return characters.
4218 Please either mount the build directory in binary mode or run the following
4219 commands before running any configure script:
4220 set -o igncr
4221 export SHELLOPTS
4222 " "$LINENO" 5
4223 fi
4224
4225 host_makefile_frag="config/mh-cygwin"
4226 ;;
4227 *-mingw*)
4228 host_makefile_frag="config/mh-mingw"
4229 ;;
4230 alpha*-linux*)
4231 host_makefile_frag="config/mh-alpha-linux"
4232 ;;
4233 hppa*-hp-hpux*)
4234 host_makefile_frag="config/mh-pa"
4235 ;;
4236 hppa*-*)
4237 host_makefile_frag="config/mh-pa"
4238 ;;
4239 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4240 host_makefile_frag="config/mh-darwin"
4241 ;;
4242 powerpc-*-aix*)
4243 host_makefile_frag="config/mh-ppc-aix"
4244 ;;
4245 rs6000-*-aix*)
4246 host_makefile_frag="config/mh-ppc-aix"
4247 ;;
4248 esac
4249 fi
4250
4251 if test "${build}" != "${host}" ; then
4252 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4253 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4254 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4255 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4256 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4257 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4258 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4259 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4260 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4261 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4262 GNATMAKE_FOR_BUILD=${GNATMAKE_FOR_BUILD-gnatmake}
4263 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4264 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4265 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4266 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4267 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4268 else
4269 AR_FOR_BUILD="\$(AR)"
4270 AS_FOR_BUILD="\$(AS)"
4271 CC_FOR_BUILD="\$(CC)"
4272 CXX_FOR_BUILD="\$(CXX)"
4273 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4274 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4275 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4276 GOC_FOR_BUILD="\$(GOC)"
4277 GDC_FOR_BUILD="\$(GDC)"
4278 GNATMAKE_FOR_BUILD="\$(GNATMAKE)"
4279 LD_FOR_BUILD="\$(LD)"
4280 NM_FOR_BUILD="\$(NM)"
4281 RANLIB_FOR_BUILD="\$(RANLIB)"
4282 WINDRES_FOR_BUILD="\$(WINDRES)"
4283 WINDMC_FOR_BUILD="\$(WINDMC)"
4284 fi
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_prog_CC+:} false; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if test -n "$CC"; then
4300 ac_cv_prog_CC="$CC" # Let the user override the test.
4301 else
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313 done
4314 done
4315 IFS=$as_save_IFS
4316
4317 fi
4318 fi
4319 CC=$ac_cv_prog_CC
4320 if test -n "$CC"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4322 $as_echo "$CC" >&6; }
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327
4328
4329 fi
4330 if test -z "$ac_cv_prog_CC"; then
4331 ac_ct_CC=$CC
4332 # Extract the first word of "gcc", so it can be a program name with args.
4333 set dummy gcc; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -n "$ac_ct_CC"; then
4340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_CC="gcc"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353 done
4354 done
4355 IFS=$as_save_IFS
4356
4357 fi
4358 fi
4359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4360 if test -n "$ac_ct_CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4362 $as_echo "$ac_ct_CC" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367
4368 if test "x$ac_ct_CC" = x; then
4369 CC=""
4370 else
4371 case $cross_compiling:$ac_tool_warned in
4372 yes:)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4375 ac_tool_warned=yes ;;
4376 esac
4377 CC=$ac_ct_CC
4378 fi
4379 else
4380 CC="$ac_cv_prog_CC"
4381 fi
4382
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}cc; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_CC+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$CC"; then
4393 ac_cv_prog_CC="$CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_CC="${ac_tool_prefix}cc"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 CC=$ac_cv_prog_CC
4413 if test -n "$CC"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4415 $as_echo "$CC" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422 fi
4423 fi
4424 if test -z "$CC"; then
4425 # Extract the first word of "cc", so it can be a program name with args.
4426 set dummy cc; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_CC+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$CC"; then
4433 ac_cv_prog_CC="$CC" # Let the user override the test.
4434 else
4435 ac_prog_rejected=no
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4444 ac_prog_rejected=yes
4445 continue
4446 fi
4447 ac_cv_prog_CC="cc"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 if test $ac_prog_rejected = yes; then
4456 # We found a bogon in the path, so make sure we never use it.
4457 set dummy $ac_cv_prog_CC
4458 shift
4459 if test $# != 0; then
4460 # We chose a different compiler from the bogus one.
4461 # However, it has the same basename, so the bogon will be chosen
4462 # first if we set CC to just the basename; use the full file name.
4463 shift
4464 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4465 fi
4466 fi
4467 fi
4468 fi
4469 CC=$ac_cv_prog_CC
4470 if test -n "$CC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4472 $as_echo "$CC" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478
4479 fi
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 for ac_prog in cl.exe
4483 do
4484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if ${ac_cv_prog_CC+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$CC"; then
4492 ac_cv_prog_CC="$CC" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4504 fi
4505 done
4506 done
4507 IFS=$as_save_IFS
4508
4509 fi
4510 fi
4511 CC=$ac_cv_prog_CC
4512 if test -n "$CC"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4514 $as_echo "$CC" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4518 fi
4519
4520
4521 test -n "$CC" && break
4522 done
4523 fi
4524 if test -z "$CC"; then
4525 ac_ct_CC=$CC
4526 for ac_prog in cl.exe
4527 do
4528 # Extract the first word of "$ac_prog", so it can be a program name with args.
4529 set dummy $ac_prog; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_prog_ac_ct_CC="$ac_prog"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 fi
4554 fi
4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556 if test -n "$ac_ct_CC"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4558 $as_echo "$ac_ct_CC" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4562 fi
4563
4564
4565 test -n "$ac_ct_CC" && break
4566 done
4567
4568 if test "x$ac_ct_CC" = x; then
4569 CC=""
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572 yes:)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575 ac_tool_warned=yes ;;
4576 esac
4577 CC=$ac_ct_CC
4578 fi
4579 fi
4580
4581 fi
4582
4583
4584 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "no acceptable C compiler found in \$PATH
4587 See \`config.log' for more details" "$LINENO" 5; }
4588
4589 # Provide some information about the compiler.
4590 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4591 set X $ac_compile
4592 ac_compiler=$2
4593 for ac_option in --version -v -V -qversion; do
4594 { { ac_try="$ac_compiler $ac_option >&5"
4595 case "(($ac_try" in
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4600 $as_echo "$ac_try_echo"; } >&5
4601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4602 ac_status=$?
4603 if test -s conftest.err; then
4604 sed '10a\
4605 ... rest of stderr output deleted ...
4606 10q' conftest.err >conftest.er1
4607 cat conftest.er1 >&5
4608 fi
4609 rm -f conftest.er1 conftest.err
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 done
4613
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main ()
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 ac_clean_files_save=$ac_clean_files
4626 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4627 # Try to create an executable without -o first, disregard a.out.
4628 # It will help us diagnose broken compilers, and finding out an intuition
4629 # of exeext.
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4631 $as_echo_n "checking whether the C compiler works... " >&6; }
4632 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4633
4634 # The possible output files:
4635 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4636
4637 ac_rmfiles=
4638 for ac_file in $ac_files
4639 do
4640 case $ac_file in
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4642 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4643 esac
4644 done
4645 rm -f $ac_rmfiles
4646
4647 if { { ac_try="$ac_link_default"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653 $as_echo "$ac_try_echo"; } >&5
4654 (eval "$ac_link_default") 2>&5
4655 ac_status=$?
4656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657 test $ac_status = 0; }; then :
4658 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4659 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4660 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4661 # so that the user can short-circuit this test for compilers unknown to
4662 # Autoconf.
4663 for ac_file in $ac_files ''
4664 do
4665 test -f "$ac_file" || continue
4666 case $ac_file in
4667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4668 ;;
4669 [ab].out )
4670 # We found the default executable, but exeext='' is most
4671 # certainly right.
4672 break;;
4673 *.* )
4674 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4675 then :; else
4676 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4677 fi
4678 # We set ac_cv_exeext here because the later test for it is not
4679 # safe: cross compilers may not add the suffix if given an `-o'
4680 # argument, so we may need to know it at that point already.
4681 # Even if this section looks crufty: it has the advantage of
4682 # actually working.
4683 break;;
4684 * )
4685 break;;
4686 esac
4687 done
4688 test "$ac_cv_exeext" = no && ac_cv_exeext=
4689
4690 else
4691 ac_file=''
4692 fi
4693 if test -z "$ac_file"; then :
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error 77 "C compiler cannot create executables
4702 See \`config.log' for more details" "$LINENO" 5; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4708 $as_echo_n "checking for C compiler default output file name... " >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4710 $as_echo "$ac_file" >&6; }
4711 ac_exeext=$ac_cv_exeext
4712
4713 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4714 ac_clean_files=$ac_clean_files_save
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4716 $as_echo_n "checking for suffix of executables... " >&6; }
4717 if { { ac_try="$ac_link"
4718 case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 $as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_link") 2>&5
4725 ac_status=$?
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; then :
4728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4730 # work properly (i.e., refer to `conftest.exe'), while it won't with
4731 # `rm'.
4732 for ac_file in conftest.exe conftest conftest.*; do
4733 test -f "$ac_file" || continue
4734 case $ac_file in
4735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4737 break;;
4738 * ) break;;
4739 esac
4740 done
4741 else
4742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4745 See \`config.log' for more details" "$LINENO" 5; }
4746 fi
4747 rm -f conftest conftest$ac_cv_exeext
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4749 $as_echo "$ac_cv_exeext" >&6; }
4750
4751 rm -f conftest.$ac_ext
4752 EXEEXT=$ac_cv_exeext
4753 ac_exeext=$EXEEXT
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #include <stdio.h>
4757 int
4758 main ()
4759 {
4760 FILE *f = fopen ("conftest.out", "w");
4761 return ferror (f) || fclose (f) != 0;
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 ac_clean_files="$ac_clean_files conftest.out"
4768 # Check that the compiler produces executables we can run. If not, either
4769 # the compiler is broken, or we cross compile.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4771 $as_echo_n "checking whether we are cross compiling... " >&6; }
4772 if test "$cross_compiling" != yes; then
4773 { { ac_try="$ac_link"
4774 case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 $as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_link") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784 if { ac_try='./conftest$ac_cv_exeext'
4785 { { case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_try") 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then
4795 cross_compiling=no
4796 else
4797 if test "$cross_compiling" = maybe; then
4798 cross_compiling=yes
4799 else
4800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4802 as_fn_error $? "cannot run C compiled programs.
4803 If you meant to cross compile, use \`--host'.
4804 See \`config.log' for more details" "$LINENO" 5; }
4805 fi
4806 fi
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4809 $as_echo "$cross_compiling" >&6; }
4810
4811 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4812 ac_clean_files=$ac_clean_files_save
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4814 $as_echo_n "checking for suffix of object files... " >&6; }
4815 if ${ac_cv_objext+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main ()
4823 {
4824
4825 ;
4826 return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.o conftest.obj
4830 if { { ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_compile") 2>&5
4838 ac_status=$?
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; }; then :
4841 for ac_file in conftest.o conftest.obj conftest.*; do
4842 test -f "$ac_file" || continue;
4843 case $ac_file in
4844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4846 break;;
4847 esac
4848 done
4849 else
4850 $as_echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855 as_fn_error $? "cannot compute suffix of object files: cannot compile
4856 See \`config.log' for more details" "$LINENO" 5; }
4857 fi
4858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4861 $as_echo "$ac_cv_objext" >&6; }
4862 OBJEXT=$ac_cv_objext
4863 ac_objext=$OBJEXT
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4866 if ${ac_cv_c_compiler_gnu+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871
4872 int
4873 main ()
4874 {
4875 #ifndef __GNUC__
4876 choke me
4877 #endif
4878
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_compiler_gnu=yes
4885 else
4886 ac_compiler_gnu=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4890
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4894 if test $ac_compiler_gnu = yes; then
4895 GCC=yes
4896 else
4897 GCC=
4898 fi
4899 ac_test_CFLAGS=${CFLAGS+set}
4900 ac_save_CFLAGS=$CFLAGS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4903 if ${ac_cv_prog_cc_g+:} false; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 ac_save_c_werror_flag=$ac_c_werror_flag
4907 ac_c_werror_flag=yes
4908 ac_cv_prog_cc_g=no
4909 CFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 ac_cv_prog_cc_g=yes
4923 else
4924 CFLAGS=""
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927
4928 int
4929 main ()
4930 {
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937
4938 else
4939 ac_c_werror_flag=$ac_save_c_werror_flag
4940 CFLAGS="-g"
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_cv_prog_cc_g=yes
4954 fi
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 ac_c_werror_flag=$ac_save_c_werror_flag
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4963 $as_echo "$ac_cv_prog_cc_g" >&6; }
4964 if test "$ac_test_CFLAGS" = set; then
4965 CFLAGS=$ac_save_CFLAGS
4966 elif test $ac_cv_prog_cc_g = yes; then
4967 if test "$GCC" = yes; then
4968 CFLAGS="-g -O2"
4969 else
4970 CFLAGS="-g"
4971 fi
4972 else
4973 if test "$GCC" = yes; then
4974 CFLAGS="-O2"
4975 else
4976 CFLAGS=
4977 fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4981 if ${ac_cv_prog_cc_c89+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 ac_cv_prog_cc_c89=no
4985 ac_save_CC=$CC
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <stdarg.h>
4989 #include <stdio.h>
4990 struct stat;
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
4995 char **p;
4996 int i;
4997 {
4998 return p[i];
4999 }
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5001 {
5002 char *s;
5003 va_list v;
5004 va_start (v,p);
5005 s = g (p, va_arg (v,int));
5006 va_end (v);
5007 return s;
5008 }
5009
5010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5011 function prototypes and stuff, but not '\xHH' hex character constants.
5012 These don't provoke an error unfortunately, instead are silently treated
5013 as 'x'. The following induces an error, until -std is added to get
5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5015 array size at least. It's necessary to write '\x00'==0 to get something
5016 that's true only with -std. */
5017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5018
5019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020 inside strings and character constants. */
5021 #define FOO(x) 'x'
5022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5023
5024 int test (int i, double x);
5025 struct s1 {int (*f) (int a);};
5026 struct s2 {int (*f) (double a);};
5027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5028 int argc;
5029 char **argv;
5030 int
5031 main ()
5032 {
5033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5040 do
5041 CC="$ac_save_CC $ac_arg"
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_c89=$ac_arg
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5047 done
5048 rm -f conftest.$ac_ext
5049 CC=$ac_save_CC
5050
5051 fi
5052 # AC_CACHE_VAL
5053 case "x$ac_cv_prog_cc_c89" in
5054 x)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056 $as_echo "none needed" >&6; } ;;
5057 xno)
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5059 $as_echo "unsupported" >&6; } ;;
5060 *)
5061 CC="$CC $ac_cv_prog_cc_c89"
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5064 esac
5065 if test "x$ac_cv_prog_cc_c89" != xno; then :
5066
5067 fi
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5076 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5077 if ${ac_cv_prog_cc_c99+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 ac_cv_prog_cc_c99=no
5081 ac_save_CC=$CC
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <stdarg.h>
5085 #include <stdbool.h>
5086 #include <stdlib.h>
5087 #include <wchar.h>
5088 #include <stdio.h>
5089
5090 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5091 #define debug(...) fprintf (stderr, __VA_ARGS__)
5092 #define showlist(...) puts (#__VA_ARGS__)
5093 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5094 static void
5095 test_varargs_macros (void)
5096 {
5097 int x = 1234;
5098 int y = 5678;
5099 debug ("Flag");
5100 debug ("X = %d\n", x);
5101 showlist (The first, second, and third items.);
5102 report (x>y, "x is %d but y is %d", x, y);
5103 }
5104
5105 // Check long long types.
5106 #define BIG64 18446744073709551615ull
5107 #define BIG32 4294967295ul
5108 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5109 #if !BIG_OK
5110 your preprocessor is broken;
5111 #endif
5112 #if BIG_OK
5113 #else
5114 your preprocessor is broken;
5115 #endif
5116 static long long int bignum = -9223372036854775807LL;
5117 static unsigned long long int ubignum = BIG64;
5118
5119 struct incomplete_array
5120 {
5121 int datasize;
5122 double data[];
5123 };
5124
5125 struct named_init {
5126 int number;
5127 const wchar_t *name;
5128 double average;
5129 };
5130
5131 typedef const char *ccp;
5132
5133 static inline int
5134 test_restrict (ccp restrict text)
5135 {
5136 // See if C++-style comments work.
5137 // Iterate through items via the restricted pointer.
5138 // Also check for declarations in for loops.
5139 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5140 continue;
5141 return 0;
5142 }
5143
5144 // Check varargs and va_copy.
5145 static void
5146 test_varargs (const char *format, ...)
5147 {
5148 va_list args;
5149 va_start (args, format);
5150 va_list args_copy;
5151 va_copy (args_copy, args);
5152
5153 const char *str;
5154 int number;
5155 float fnumber;
5156
5157 while (*format)
5158 {
5159 switch (*format++)
5160 {
5161 case 's': // string
5162 str = va_arg (args_copy, const char *);
5163 break;
5164 case 'd': // int
5165 number = va_arg (args_copy, int);
5166 break;
5167 case 'f': // float
5168 fnumber = va_arg (args_copy, double);
5169 break;
5170 default:
5171 break;
5172 }
5173 }
5174 va_end (args_copy);
5175 va_end (args);
5176 }
5177
5178 int
5179 main ()
5180 {
5181
5182 // Check bool.
5183 _Bool success = false;
5184
5185 // Check restrict.
5186 if (test_restrict ("String literal") == 0)
5187 success = true;
5188 char *restrict newvar = "Another string";
5189
5190 // Check varargs.
5191 test_varargs ("s, d' f .", "string", 65, 34.234);
5192 test_varargs_macros ();
5193
5194 // Check flexible array members.
5195 struct incomplete_array *ia =
5196 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5197 ia->datasize = 10;
5198 for (int i = 0; i < ia->datasize; ++i)
5199 ia->data[i] = i * 1.234;
5200
5201 // Check named initializers.
5202 struct named_init ni = {
5203 .number = 34,
5204 .name = L"Test wide string",
5205 .average = 543.34343,
5206 };
5207
5208 ni.number = 58;
5209
5210 int dynamic_array[ni.number];
5211 dynamic_array[ni.number - 1] = 543;
5212
5213 // work around unused variable warnings
5214 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5215 || dynamic_array[ni.number - 1] != 543);
5216
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5222 do
5223 CC="$ac_save_CC $ac_arg"
5224 if ac_fn_c_try_compile "$LINENO"; then :
5225 ac_cv_prog_cc_c99=$ac_arg
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext
5228 test "x$ac_cv_prog_cc_c99" != "xno" && break
5229 done
5230 rm -f conftest.$ac_ext
5231 CC=$ac_save_CC
5232
5233 fi
5234 # AC_CACHE_VAL
5235 case "x$ac_cv_prog_cc_c99" in
5236 x)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5238 $as_echo "none needed" >&6; } ;;
5239 xno)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 $as_echo "unsupported" >&6; } ;;
5242 *)
5243 CC="$CC $ac_cv_prog_cc_c99"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5245 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5246 esac
5247 if test "x$ac_cv_prog_cc_c99" != xno; then :
5248
5249 fi
5250
5251
5252 ac_ext=cpp
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257 if test -z "$CXX"; then
5258 if test -n "$CCC"; then
5259 CXX=$CCC
5260 else
5261 if test -n "$ac_tool_prefix"; then
5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5263 do
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_CXX+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$CXX"; then
5272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 CXX=$ac_cv_prog_CXX
5292 if test -n "$CXX"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5294 $as_echo "$CXX" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 test -n "$CXX" && break
5302 done
5303 fi
5304 if test -z "$CXX"; then
5305 ac_ct_CXX=$CXX
5306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5307 do
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_CXX"; then
5316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_CXX="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336 if test -n "$ac_ct_CXX"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5338 $as_echo "$ac_ct_CXX" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345 test -n "$ac_ct_CXX" && break
5346 done
5347
5348 if test "x$ac_ct_CXX" = x; then
5349 CXX="g++"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 CXX=$ac_ct_CXX
5358 fi
5359 fi
5360
5361 fi
5362 fi
5363 # Provide some information about the compiler.
5364 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5365 set X $ac_compile
5366 ac_compiler=$2
5367 for ac_option in --version -v -V -qversion; do
5368 { { ac_try="$ac_compiler $ac_option >&5"
5369 case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372 esac
5373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374 $as_echo "$ac_try_echo"; } >&5
5375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5376 ac_status=$?
5377 if test -s conftest.err; then
5378 sed '10a\
5379 ... rest of stderr output deleted ...
5380 10q' conftest.err >conftest.er1
5381 cat conftest.er1 >&5
5382 fi
5383 rm -f conftest.er1 conftest.err
5384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5385 test $ac_status = 0; }
5386 done
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5389 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5390 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395
5396 int
5397 main ()
5398 {
5399 #ifndef __GNUC__
5400 choke me
5401 #endif
5402
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_cxx_try_compile "$LINENO"; then :
5408 ac_compiler_gnu=yes
5409 else
5410 ac_compiler_gnu=no
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5414
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5417 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5418 if test $ac_compiler_gnu = yes; then
5419 GXX=yes
5420 else
5421 GXX=
5422 fi
5423 ac_test_CXXFLAGS=${CXXFLAGS+set}
5424 ac_save_CXXFLAGS=$CXXFLAGS
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5426 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5427 if ${ac_cv_prog_cxx_g+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5431 ac_cxx_werror_flag=yes
5432 ac_cv_prog_cxx_g=no
5433 CXXFLAGS="-g"
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436
5437 int
5438 main ()
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_cxx_try_compile "$LINENO"; then :
5446 ac_cv_prog_cxx_g=yes
5447 else
5448 CXXFLAGS=""
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451
5452 int
5453 main ()
5454 {
5455
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_cxx_try_compile "$LINENO"; then :
5461
5462 else
5463 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5464 CXXFLAGS="-g"
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467
5468 int
5469 main ()
5470 {
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_cxx_try_compile "$LINENO"; then :
5477 ac_cv_prog_cxx_g=yes
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5487 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5488 if test "$ac_test_CXXFLAGS" = set; then
5489 CXXFLAGS=$ac_save_CXXFLAGS
5490 elif test $ac_cv_prog_cxx_g = yes; then
5491 if test "$GXX" = yes; then
5492 CXXFLAGS="-g -O2"
5493 else
5494 CXXFLAGS="-g"
5495 fi
5496 else
5497 if test "$GXX" = yes; then
5498 CXXFLAGS="-O2"
5499 else
5500 CXXFLAGS=
5501 fi
5502 fi
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509
5510 # We must set the default linker to the linker used by gcc for the correct
5511 # operation of libtool. If LD is not defined and we are using gcc, try to
5512 # set the LD default to the ld used by gcc.
5513 if test -z "$LD"; then
5514 if test "$GCC" = yes; then
5515 case $build in
5516 *-*-mingw*)
5517 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5518 *)
5519 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5520 esac
5521 case $gcc_prog_ld in
5522 # Accept absolute paths.
5523 [\\/]* | [A-Za-z]:[\\/]*)
5524 LD="$gcc_prog_ld" ;;
5525 esac
5526 fi
5527 fi
5528
5529 # Check whether -static-libstdc++ -static-libgcc is supported.
5530 have_static_libs=no
5531 if test "$GCC" = yes; then
5532 saved_LDFLAGS="$LDFLAGS"
5533
5534 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5536 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5537 ac_ext=cpp
5538 ac_cpp='$CXXCPP $CPPFLAGS'
5539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5542
5543
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546
5547 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5548 #error -static-libstdc++ not implemented
5549 #endif
5550 int main() {}
5551 _ACEOF
5552 if ac_fn_cxx_try_link "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }; have_static_libs=yes
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561 ac_ext=c
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566
5567
5568 LDFLAGS="$saved_LDFLAGS"
5569 fi
5570
5571
5572
5573
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_GNATBIND+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$GNATBIND"; then
5583 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 GNATBIND=$ac_cv_prog_GNATBIND
5603 if test -n "$GNATBIND"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5605 $as_echo "$GNATBIND" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_GNATBIND"; then
5614 ac_ct_GNATBIND=$GNATBIND
5615 # Extract the first word of "gnatbind", so it can be a program name with args.
5616 set dummy gnatbind; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$ac_ct_GNATBIND"; then
5623 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5643 if test -n "$ac_ct_GNATBIND"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5645 $as_echo "$ac_ct_GNATBIND" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651 if test "x$ac_ct_GNATBIND" = x; then
5652 GNATBIND="no"
5653 else
5654 case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5658 ac_tool_warned=yes ;;
5659 esac
5660 GNATBIND=$ac_ct_GNATBIND
5661 fi
5662 else
5663 GNATBIND="$ac_cv_prog_GNATBIND"
5664 fi
5665
5666 if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_GNATMAKE+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -n "$GNATMAKE"; then
5675 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 GNATMAKE=$ac_cv_prog_GNATMAKE
5695 if test -n "$GNATMAKE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5697 $as_echo "$GNATMAKE" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704 fi
5705 if test -z "$ac_cv_prog_GNATMAKE"; then
5706 ac_ct_GNATMAKE=$GNATMAKE
5707 # Extract the first word of "gnatmake", so it can be a program name with args.
5708 set dummy gnatmake; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 if test -n "$ac_ct_GNATMAKE"; then
5715 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5735 if test -n "$ac_ct_GNATMAKE"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5737 $as_echo "$ac_ct_GNATMAKE" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743 if test "x$ac_ct_GNATMAKE" = x; then
5744 GNATMAKE="no"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752 GNATMAKE=$ac_ct_GNATMAKE
5753 fi
5754 else
5755 GNATMAKE="$ac_cv_prog_GNATMAKE"
5756 fi
5757
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5759 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5760 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 cat >conftest.adb <<EOF
5764 pragma Warnings (Off);
5765 with System.CRTL;
5766 pragma Warnings (On);
5767 use type System.CRTL.int64;
5768 procedure conftest is begin null; end conftest;
5769 EOF
5770 acx_cv_cc_gcc_supports_ada=no
5771 # There is a bug in old released versions of GCC which causes the
5772 # driver to exit successfully when the appropriate language module
5773 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5774 # Therefore we must check for the error message as well as an
5775 # unsuccessful exit.
5776 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5777 # given a .adb file, but produce no object file. So we must check
5778 # if an object file was really produced to guard against this.
5779 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5780 if test x"$errors" = x && test -f conftest.$ac_objext; then
5781 acx_cv_cc_gcc_supports_ada=yes
5782 fi
5783 rm -f conftest.*
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5786 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5787
5788 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5789 have_gnat=yes
5790 else
5791 have_gnat=no
5792 fi
5793
5794
5795
5796 if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5798 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800 $as_echo_n "checking for $ac_word... " >&6; }
5801 if ${ac_cv_prog_GDC+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if test -n "$GDC"; then
5805 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 GDC=$ac_cv_prog_GDC
5825 if test -n "$GDC"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5827 $as_echo "$GDC" >&6; }
5828 else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832
5833
5834 fi
5835 if test -z "$ac_cv_prog_GDC"; then
5836 ac_ct_GDC=$GDC
5837 # Extract the first word of "gdc", so it can be a program name with args.
5838 set dummy gdc; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$ac_ct_GDC"; then
5845 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_ac_ct_GDC="gdc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5865 if test -n "$ac_ct_GDC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5867 $as_echo "$ac_ct_GDC" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873 if test "x$ac_ct_GDC" = x; then
5874 GDC="no"
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5881 esac
5882 GDC=$ac_ct_GDC
5883 fi
5884 else
5885 GDC="$ac_cv_prog_GDC"
5886 fi
5887
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5889 $as_echo_n "checking whether the D compiler works... " >&6; }
5890 if ${acx_cv_d_compiler_works+:} false; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 cat >conftest.d <<EOF
5894 module conftest; int main() { return 0; }
5895 EOF
5896 acx_cv_d_compiler_works=no
5897 if test "x$GDC" != xno; then
5898 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5899 if test x"$errors" = x && test -f conftest.$ac_objext; then
5900 acx_cv_d_compiler_works=yes
5901 fi
5902 rm -f conftest.*
5903 fi
5904 fi
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5906 $as_echo "$acx_cv_d_compiler_works" >&6; }
5907 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5908 have_gdc=yes
5909 else
5910 have_gdc=no
5911 fi
5912
5913 for ac_prog in cargo
5914 do
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_CARGO+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$CARGO"; then
5923 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_CARGO="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 CARGO=$ac_cv_prog_CARGO
5943 if test -n "$CARGO"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5945 $as_echo "$CARGO" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 test -n "$CARGO" && break
5953 done
5954 test -n "$CARGO" || CARGO="no"
5955
5956 if test "x$CARGO" != xno; then
5957 have_cargo=yes
5958 else
5959 have_cargo=no
5960 fi
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5962 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5963 if ${gcc_cv_prog_cmp_skip+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 echo abfoo >t1
5967 echo cdfoo >t2
5968 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5969 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5970 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5971 :
5972 else
5973 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5974 fi
5975 fi
5976 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5977 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5978 :
5979 else
5980 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5981 fi
5982 fi
5983 rm t1 t2
5984
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5987 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5988 do_compare="$gcc_cv_prog_cmp_skip"
5989
5990
5991
5992 # Check whether --enable-bootstrap was given.
5993 if test "${enable_bootstrap+set}" = set; then :
5994 enableval=$enable_bootstrap;
5995 else
5996 enable_bootstrap=default
5997 fi
5998
5999
6000 # Issue errors and warnings for invalid/strange bootstrap combinations.
6001 if test -r $srcdir/gcc/configure; then
6002 have_compiler=yes
6003 else
6004 have_compiler=no
6005 fi
6006
6007 case "$have_compiler:$host:$target:$enable_bootstrap" in
6008 *:*:*:no) ;;
6009
6010 # Default behavior. Enable bootstrap if we have a compiler
6011 # and we are in a native configuration.
6012 yes:$build:$build:default)
6013 enable_bootstrap=yes ;;
6014
6015 *:*:*:default)
6016 enable_bootstrap=no ;;
6017
6018 # We have a compiler and we are in a native configuration, bootstrap is ok
6019 yes:$build:$build:yes)
6020 ;;
6021
6022 # Other configurations, but we have a compiler. Assume the user knows
6023 # what he's doing.
6024 yes:*:*:yes)
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6026 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6027 ;;
6028
6029 # No compiler: if they passed --enable-bootstrap explicitly, fail
6030 no:*:*:yes)
6031 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6032
6033 # Fail if wrong command line
6034 *)
6035 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6036 ;;
6037 esac
6038
6039 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
6040 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
6041 # require C++14 (or higher).
6042 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
6043 CXX="$CXX -std=c++14"
6044 elif test "$have_compiler" = yes; then
6045 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
6046 ac_ext=cpp
6047 ac_cpp='$CXXCPP $CPPFLAGS'
6048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051 ac_success=no
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
6054 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
6055 if ${ax_cv_cxx_compile_cxx14+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060
6061
6062 // If the compiler admits that it is not ready for C++11, why torture it?
6063 // Hopefully, this will speed up the test.
6064
6065 #ifndef __cplusplus
6066
6067 #error "This is not a C++ compiler"
6068
6069 #elif __cplusplus < 201103L
6070
6071 #error "This is not a C++11 compiler"
6072
6073 #else
6074
6075 namespace cxx11
6076 {
6077
6078 namespace test_static_assert
6079 {
6080
6081 template <typename T>
6082 struct check
6083 {
6084 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6085 };
6086
6087 }
6088
6089 namespace test_final_override
6090 {
6091
6092 struct Base
6093 {
6094 virtual ~Base() {}
6095 virtual void f() {}
6096 };
6097
6098 struct Derived : public Base
6099 {
6100 virtual ~Derived() override {}
6101 virtual void f() override {}
6102 };
6103
6104 }
6105
6106 namespace test_double_right_angle_brackets
6107 {
6108
6109 template < typename T >
6110 struct check {};
6111
6112 typedef check<void> single_type;
6113 typedef check<check<void>> double_type;
6114 typedef check<check<check<void>>> triple_type;
6115 typedef check<check<check<check<void>>>> quadruple_type;
6116
6117 }
6118
6119 namespace test_decltype
6120 {
6121
6122 int
6123 f()
6124 {
6125 int a = 1;
6126 decltype(a) b = 2;
6127 return a + b;
6128 }
6129
6130 }
6131
6132 namespace test_type_deduction
6133 {
6134
6135 template < typename T1, typename T2 >
6136 struct is_same
6137 {
6138 static const bool value = false;
6139 };
6140
6141 template < typename T >
6142 struct is_same<T, T>
6143 {
6144 static const bool value = true;
6145 };
6146
6147 template < typename T1, typename T2 >
6148 auto
6149 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6150 {
6151 return a1 + a2;
6152 }
6153
6154 int
6155 test(const int c, volatile int v)
6156 {
6157 static_assert(is_same<int, decltype(0)>::value == true, "");
6158 static_assert(is_same<int, decltype(c)>::value == false, "");
6159 static_assert(is_same<int, decltype(v)>::value == false, "");
6160 auto ac = c;
6161 auto av = v;
6162 auto sumi = ac + av + 'x';
6163 auto sumf = ac + av + 1.0;
6164 static_assert(is_same<int, decltype(ac)>::value == true, "");
6165 static_assert(is_same<int, decltype(av)>::value == true, "");
6166 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6167 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6168 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6169 return (sumf > 0.0) ? sumi : add(c, v);
6170 }
6171
6172 }
6173
6174 namespace test_noexcept
6175 {
6176
6177 int f() { return 0; }
6178 int g() noexcept { return 0; }
6179
6180 static_assert(noexcept(f()) == false, "");
6181 static_assert(noexcept(g()) == true, "");
6182
6183 }
6184
6185 namespace test_constexpr
6186 {
6187
6188 template < typename CharT >
6189 unsigned long constexpr
6190 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6191 {
6192 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6193 }
6194
6195 template < typename CharT >
6196 unsigned long constexpr
6197 strlen_c(const CharT *const s) noexcept
6198 {
6199 return strlen_c_r(s, 0UL);
6200 }
6201
6202 static_assert(strlen_c("") == 0UL, "");
6203 static_assert(strlen_c("1") == 1UL, "");
6204 static_assert(strlen_c("example") == 7UL, "");
6205 static_assert(strlen_c("another\0example") == 7UL, "");
6206
6207 }
6208
6209 namespace test_rvalue_references
6210 {
6211
6212 template < int N >
6213 struct answer
6214 {
6215 static constexpr int value = N;
6216 };
6217
6218 answer<1> f(int&) { return answer<1>(); }
6219 answer<2> f(const int&) { return answer<2>(); }
6220 answer<3> f(int&&) { return answer<3>(); }
6221
6222 void
6223 test()
6224 {
6225 int i = 0;
6226 const int c = 0;
6227 static_assert(decltype(f(i))::value == 1, "");
6228 static_assert(decltype(f(c))::value == 2, "");
6229 static_assert(decltype(f(0))::value == 3, "");
6230 }
6231
6232 }
6233
6234 namespace test_uniform_initialization
6235 {
6236
6237 struct test
6238 {
6239 static const int zero {};
6240 static const int one {1};
6241 };
6242
6243 static_assert(test::zero == 0, "");
6244 static_assert(test::one == 1, "");
6245
6246 }
6247
6248 namespace test_lambdas
6249 {
6250
6251 void
6252 test1()
6253 {
6254 auto lambda1 = [](){};
6255 auto lambda2 = lambda1;
6256 lambda1();
6257 lambda2();
6258 }
6259
6260 int
6261 test2()
6262 {
6263 auto a = [](int i, int j){ return i + j; }(1, 2);
6264 auto b = []() -> int { return '0'; }();
6265 auto c = [=](){ return a + b; }();
6266 auto d = [&](){ return c; }();
6267 auto e = [a, &b](int x) mutable {
6268 const auto identity = [](int y){ return y; };
6269 for (auto i = 0; i < a; ++i)
6270 a += b--;
6271 return x + identity(a + b);
6272 }(0);
6273 return a + b + c + d + e;
6274 }
6275
6276 int
6277 test3()
6278 {
6279 const auto nullary = [](){ return 0; };
6280 const auto unary = [](int x){ return x; };
6281 using nullary_t = decltype(nullary);
6282 using unary_t = decltype(unary);
6283 const auto higher1st = [](nullary_t f){ return f(); };
6284 const auto higher2nd = [unary](nullary_t f1){
6285 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6286 };
6287 return higher1st(nullary) + higher2nd(nullary)(unary);
6288 }
6289
6290 }
6291
6292 namespace test_variadic_templates
6293 {
6294
6295 template <int...>
6296 struct sum;
6297
6298 template <int N0, int... N1toN>
6299 struct sum<N0, N1toN...>
6300 {
6301 static constexpr auto value = N0 + sum<N1toN...>::value;
6302 };
6303
6304 template <>
6305 struct sum<>
6306 {
6307 static constexpr auto value = 0;
6308 };
6309
6310 static_assert(sum<>::value == 0, "");
6311 static_assert(sum<1>::value == 1, "");
6312 static_assert(sum<23>::value == 23, "");
6313 static_assert(sum<1, 2>::value == 3, "");
6314 static_assert(sum<5, 5, 11>::value == 21, "");
6315 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6316
6317 }
6318
6319 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6320 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6321 // because of this.
6322 namespace test_template_alias_sfinae
6323 {
6324
6325 struct foo {};
6326
6327 template<typename T>
6328 using member = typename T::member_type;
6329
6330 template<typename T>
6331 void func(...) {}
6332
6333 template<typename T>
6334 void func(member<T>*) {}
6335
6336 void test();
6337
6338 void test() { func<foo>(0); }
6339
6340 }
6341
6342 } // namespace cxx11
6343
6344 #endif // __cplusplus >= 201103L
6345
6346
6347
6348
6349 // If the compiler admits that it is not ready for C++14, why torture it?
6350 // Hopefully, this will speed up the test.
6351
6352 #ifndef __cplusplus
6353
6354 #error "This is not a C++ compiler"
6355
6356 #elif __cplusplus < 201402L
6357
6358 #error "This is not a C++14 compiler"
6359
6360 #else
6361
6362 namespace cxx14
6363 {
6364
6365 namespace test_polymorphic_lambdas
6366 {
6367
6368 int
6369 test()
6370 {
6371 const auto lambda = [](auto&&... args){
6372 const auto istiny = [](auto x){
6373 return (sizeof(x) == 1UL) ? 1 : 0;
6374 };
6375 const int aretiny[] = { istiny(args)... };
6376 return aretiny[0];
6377 };
6378 return lambda(1, 1L, 1.0f, '1');
6379 }
6380
6381 }
6382
6383 namespace test_binary_literals
6384 {
6385
6386 constexpr auto ivii = 0b0000000000101010;
6387 static_assert(ivii == 42, "wrong value");
6388
6389 }
6390
6391 namespace test_generalized_constexpr
6392 {
6393
6394 template < typename CharT >
6395 constexpr unsigned long
6396 strlen_c(const CharT *const s) noexcept
6397 {
6398 auto length = 0UL;
6399 for (auto p = s; *p; ++p)
6400 ++length;
6401 return length;
6402 }
6403
6404 static_assert(strlen_c("") == 0UL, "");
6405 static_assert(strlen_c("x") == 1UL, "");
6406 static_assert(strlen_c("test") == 4UL, "");
6407 static_assert(strlen_c("another\0test") == 7UL, "");
6408
6409 }
6410
6411 namespace test_lambda_init_capture
6412 {
6413
6414 int
6415 test()
6416 {
6417 auto x = 0;
6418 const auto lambda1 = [a = x](int b){ return a + b; };
6419 const auto lambda2 = [a = lambda1(x)](){ return a; };
6420 return lambda2();
6421 }
6422
6423 }
6424
6425 namespace test_digit_separators
6426 {
6427
6428 constexpr auto ten_million = 100'000'000;
6429 static_assert(ten_million == 100000000, "");
6430
6431 }
6432
6433 namespace test_return_type_deduction
6434 {
6435
6436 auto f(int& x) { return x; }
6437 decltype(auto) g(int& x) { return x; }
6438
6439 template < typename T1, typename T2 >
6440 struct is_same
6441 {
6442 static constexpr auto value = false;
6443 };
6444
6445 template < typename T >
6446 struct is_same<T, T>
6447 {
6448 static constexpr auto value = true;
6449 };
6450
6451 int
6452 test()
6453 {
6454 auto x = 0;
6455 static_assert(is_same<int, decltype(f(x))>::value, "");
6456 static_assert(is_same<int&, decltype(g(x))>::value, "");
6457 return x;
6458 }
6459
6460 }
6461
6462 } // namespace cxx14
6463
6464 #endif // __cplusplus >= 201402L
6465
6466
6467
6468 _ACEOF
6469 if ac_fn_cxx_try_compile "$LINENO"; then :
6470 ax_cv_cxx_compile_cxx14=yes
6471 else
6472 ax_cv_cxx_compile_cxx14=no
6473 fi
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6477 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6478 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6479 ac_success=yes
6480 fi
6481
6482 if test x$ac_success = xno; then
6483 for alternative in ${ax_cxx_compile_alternatives}; do
6484 switch="-std=gnu++${alternative}"
6485 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6487 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6488 if eval \${$cachevar+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 ac_save_CXX="$CXX"
6492 CXX="$CXX $switch"
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495
6496
6497 // If the compiler admits that it is not ready for C++11, why torture it?
6498 // Hopefully, this will speed up the test.
6499
6500 #ifndef __cplusplus
6501
6502 #error "This is not a C++ compiler"
6503
6504 #elif __cplusplus < 201103L
6505
6506 #error "This is not a C++11 compiler"
6507
6508 #else
6509
6510 namespace cxx11
6511 {
6512
6513 namespace test_static_assert
6514 {
6515
6516 template <typename T>
6517 struct check
6518 {
6519 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6520 };
6521
6522 }
6523
6524 namespace test_final_override
6525 {
6526
6527 struct Base
6528 {
6529 virtual ~Base() {}
6530 virtual void f() {}
6531 };
6532
6533 struct Derived : public Base
6534 {
6535 virtual ~Derived() override {}
6536 virtual void f() override {}
6537 };
6538
6539 }
6540
6541 namespace test_double_right_angle_brackets
6542 {
6543
6544 template < typename T >
6545 struct check {};
6546
6547 typedef check<void> single_type;
6548 typedef check<check<void>> double_type;
6549 typedef check<check<check<void>>> triple_type;
6550 typedef check<check<check<check<void>>>> quadruple_type;
6551
6552 }
6553
6554 namespace test_decltype
6555 {
6556
6557 int
6558 f()
6559 {
6560 int a = 1;
6561 decltype(a) b = 2;
6562 return a + b;
6563 }
6564
6565 }
6566
6567 namespace test_type_deduction
6568 {
6569
6570 template < typename T1, typename T2 >
6571 struct is_same
6572 {
6573 static const bool value = false;
6574 };
6575
6576 template < typename T >
6577 struct is_same<T, T>
6578 {
6579 static const bool value = true;
6580 };
6581
6582 template < typename T1, typename T2 >
6583 auto
6584 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6585 {
6586 return a1 + a2;
6587 }
6588
6589 int
6590 test(const int c, volatile int v)
6591 {
6592 static_assert(is_same<int, decltype(0)>::value == true, "");
6593 static_assert(is_same<int, decltype(c)>::value == false, "");
6594 static_assert(is_same<int, decltype(v)>::value == false, "");
6595 auto ac = c;
6596 auto av = v;
6597 auto sumi = ac + av + 'x';
6598 auto sumf = ac + av + 1.0;
6599 static_assert(is_same<int, decltype(ac)>::value == true, "");
6600 static_assert(is_same<int, decltype(av)>::value == true, "");
6601 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6602 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6603 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6604 return (sumf > 0.0) ? sumi : add(c, v);
6605 }
6606
6607 }
6608
6609 namespace test_noexcept
6610 {
6611
6612 int f() { return 0; }
6613 int g() noexcept { return 0; }
6614
6615 static_assert(noexcept(f()) == false, "");
6616 static_assert(noexcept(g()) == true, "");
6617
6618 }
6619
6620 namespace test_constexpr
6621 {
6622
6623 template < typename CharT >
6624 unsigned long constexpr
6625 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6626 {
6627 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6628 }
6629
6630 template < typename CharT >
6631 unsigned long constexpr
6632 strlen_c(const CharT *const s) noexcept
6633 {
6634 return strlen_c_r(s, 0UL);
6635 }
6636
6637 static_assert(strlen_c("") == 0UL, "");
6638 static_assert(strlen_c("1") == 1UL, "");
6639 static_assert(strlen_c("example") == 7UL, "");
6640 static_assert(strlen_c("another\0example") == 7UL, "");
6641
6642 }
6643
6644 namespace test_rvalue_references
6645 {
6646
6647 template < int N >
6648 struct answer
6649 {
6650 static constexpr int value = N;
6651 };
6652
6653 answer<1> f(int&) { return answer<1>(); }
6654 answer<2> f(const int&) { return answer<2>(); }
6655 answer<3> f(int&&) { return answer<3>(); }
6656
6657 void
6658 test()
6659 {
6660 int i = 0;
6661 const int c = 0;
6662 static_assert(decltype(f(i))::value == 1, "");
6663 static_assert(decltype(f(c))::value == 2, "");
6664 static_assert(decltype(f(0))::value == 3, "");
6665 }
6666
6667 }
6668
6669 namespace test_uniform_initialization
6670 {
6671
6672 struct test
6673 {
6674 static const int zero {};
6675 static const int one {1};
6676 };
6677
6678 static_assert(test::zero == 0, "");
6679 static_assert(test::one == 1, "");
6680
6681 }
6682
6683 namespace test_lambdas
6684 {
6685
6686 void
6687 test1()
6688 {
6689 auto lambda1 = [](){};
6690 auto lambda2 = lambda1;
6691 lambda1();
6692 lambda2();
6693 }
6694
6695 int
6696 test2()
6697 {
6698 auto a = [](int i, int j){ return i + j; }(1, 2);
6699 auto b = []() -> int { return '0'; }();
6700 auto c = [=](){ return a + b; }();
6701 auto d = [&](){ return c; }();
6702 auto e = [a, &b](int x) mutable {
6703 const auto identity = [](int y){ return y; };
6704 for (auto i = 0; i < a; ++i)
6705 a += b--;
6706 return x + identity(a + b);
6707 }(0);
6708 return a + b + c + d + e;
6709 }
6710
6711 int
6712 test3()
6713 {
6714 const auto nullary = [](){ return 0; };
6715 const auto unary = [](int x){ return x; };
6716 using nullary_t = decltype(nullary);
6717 using unary_t = decltype(unary);
6718 const auto higher1st = [](nullary_t f){ return f(); };
6719 const auto higher2nd = [unary](nullary_t f1){
6720 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6721 };
6722 return higher1st(nullary) + higher2nd(nullary)(unary);
6723 }
6724
6725 }
6726
6727 namespace test_variadic_templates
6728 {
6729
6730 template <int...>
6731 struct sum;
6732
6733 template <int N0, int... N1toN>
6734 struct sum<N0, N1toN...>
6735 {
6736 static constexpr auto value = N0 + sum<N1toN...>::value;
6737 };
6738
6739 template <>
6740 struct sum<>
6741 {
6742 static constexpr auto value = 0;
6743 };
6744
6745 static_assert(sum<>::value == 0, "");
6746 static_assert(sum<1>::value == 1, "");
6747 static_assert(sum<23>::value == 23, "");
6748 static_assert(sum<1, 2>::value == 3, "");
6749 static_assert(sum<5, 5, 11>::value == 21, "");
6750 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6751
6752 }
6753
6754 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6755 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6756 // because of this.
6757 namespace test_template_alias_sfinae
6758 {
6759
6760 struct foo {};
6761
6762 template<typename T>
6763 using member = typename T::member_type;
6764
6765 template<typename T>
6766 void func(...) {}
6767
6768 template<typename T>
6769 void func(member<T>*) {}
6770
6771 void test();
6772
6773 void test() { func<foo>(0); }
6774
6775 }
6776
6777 } // namespace cxx11
6778
6779 #endif // __cplusplus >= 201103L
6780
6781
6782
6783
6784 // If the compiler admits that it is not ready for C++14, why torture it?
6785 // Hopefully, this will speed up the test.
6786
6787 #ifndef __cplusplus
6788
6789 #error "This is not a C++ compiler"
6790
6791 #elif __cplusplus < 201402L
6792
6793 #error "This is not a C++14 compiler"
6794
6795 #else
6796
6797 namespace cxx14
6798 {
6799
6800 namespace test_polymorphic_lambdas
6801 {
6802
6803 int
6804 test()
6805 {
6806 const auto lambda = [](auto&&... args){
6807 const auto istiny = [](auto x){
6808 return (sizeof(x) == 1UL) ? 1 : 0;
6809 };
6810 const int aretiny[] = { istiny(args)... };
6811 return aretiny[0];
6812 };
6813 return lambda(1, 1L, 1.0f, '1');
6814 }
6815
6816 }
6817
6818 namespace test_binary_literals
6819 {
6820
6821 constexpr auto ivii = 0b0000000000101010;
6822 static_assert(ivii == 42, "wrong value");
6823
6824 }
6825
6826 namespace test_generalized_constexpr
6827 {
6828
6829 template < typename CharT >
6830 constexpr unsigned long
6831 strlen_c(const CharT *const s) noexcept
6832 {
6833 auto length = 0UL;
6834 for (auto p = s; *p; ++p)
6835 ++length;
6836 return length;
6837 }
6838
6839 static_assert(strlen_c("") == 0UL, "");
6840 static_assert(strlen_c("x") == 1UL, "");
6841 static_assert(strlen_c("test") == 4UL, "");
6842 static_assert(strlen_c("another\0test") == 7UL, "");
6843
6844 }
6845
6846 namespace test_lambda_init_capture
6847 {
6848
6849 int
6850 test()
6851 {
6852 auto x = 0;
6853 const auto lambda1 = [a = x](int b){ return a + b; };
6854 const auto lambda2 = [a = lambda1(x)](){ return a; };
6855 return lambda2();
6856 }
6857
6858 }
6859
6860 namespace test_digit_separators
6861 {
6862
6863 constexpr auto ten_million = 100'000'000;
6864 static_assert(ten_million == 100000000, "");
6865
6866 }
6867
6868 namespace test_return_type_deduction
6869 {
6870
6871 auto f(int& x) { return x; }
6872 decltype(auto) g(int& x) { return x; }
6873
6874 template < typename T1, typename T2 >
6875 struct is_same
6876 {
6877 static constexpr auto value = false;
6878 };
6879
6880 template < typename T >
6881 struct is_same<T, T>
6882 {
6883 static constexpr auto value = true;
6884 };
6885
6886 int
6887 test()
6888 {
6889 auto x = 0;
6890 static_assert(is_same<int, decltype(f(x))>::value, "");
6891 static_assert(is_same<int&, decltype(g(x))>::value, "");
6892 return x;
6893 }
6894
6895 }
6896
6897 } // namespace cxx14
6898
6899 #endif // __cplusplus >= 201402L
6900
6901
6902
6903 _ACEOF
6904 if ac_fn_cxx_try_compile "$LINENO"; then :
6905 eval $cachevar=yes
6906 else
6907 eval $cachevar=no
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 CXX="$ac_save_CXX"
6911 fi
6912 eval ac_res=\$$cachevar
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 if eval test x\$$cachevar = xyes; then
6916 CXX="$CXX $switch"
6917 if test -n "$CXXCPP" ; then
6918 CXXCPP="$CXXCPP $switch"
6919 fi
6920 ac_success=yes
6921 break
6922 fi
6923 done
6924 fi
6925
6926 if test x$ac_success = xno; then
6927 for alternative in ${ax_cxx_compile_alternatives}; do
6928 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6929 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6931 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6932 if eval \${$cachevar+:} false; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 ac_save_CXX="$CXX"
6936 CXX="$CXX $switch"
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939
6940
6941 // If the compiler admits that it is not ready for C++11, why torture it?
6942 // Hopefully, this will speed up the test.
6943
6944 #ifndef __cplusplus
6945
6946 #error "This is not a C++ compiler"
6947
6948 #elif __cplusplus < 201103L
6949
6950 #error "This is not a C++11 compiler"
6951
6952 #else
6953
6954 namespace cxx11
6955 {
6956
6957 namespace test_static_assert
6958 {
6959
6960 template <typename T>
6961 struct check
6962 {
6963 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6964 };
6965
6966 }
6967
6968 namespace test_final_override
6969 {
6970
6971 struct Base
6972 {
6973 virtual ~Base() {}
6974 virtual void f() {}
6975 };
6976
6977 struct Derived : public Base
6978 {
6979 virtual ~Derived() override {}
6980 virtual void f() override {}
6981 };
6982
6983 }
6984
6985 namespace test_double_right_angle_brackets
6986 {
6987
6988 template < typename T >
6989 struct check {};
6990
6991 typedef check<void> single_type;
6992 typedef check<check<void>> double_type;
6993 typedef check<check<check<void>>> triple_type;
6994 typedef check<check<check<check<void>>>> quadruple_type;
6995
6996 }
6997
6998 namespace test_decltype
6999 {
7000
7001 int
7002 f()
7003 {
7004 int a = 1;
7005 decltype(a) b = 2;
7006 return a + b;
7007 }
7008
7009 }
7010
7011 namespace test_type_deduction
7012 {
7013
7014 template < typename T1, typename T2 >
7015 struct is_same
7016 {
7017 static const bool value = false;
7018 };
7019
7020 template < typename T >
7021 struct is_same<T, T>
7022 {
7023 static const bool value = true;
7024 };
7025
7026 template < typename T1, typename T2 >
7027 auto
7028 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7029 {
7030 return a1 + a2;
7031 }
7032
7033 int
7034 test(const int c, volatile int v)
7035 {
7036 static_assert(is_same<int, decltype(0)>::value == true, "");
7037 static_assert(is_same<int, decltype(c)>::value == false, "");
7038 static_assert(is_same<int, decltype(v)>::value == false, "");
7039 auto ac = c;
7040 auto av = v;
7041 auto sumi = ac + av + 'x';
7042 auto sumf = ac + av + 1.0;
7043 static_assert(is_same<int, decltype(ac)>::value == true, "");
7044 static_assert(is_same<int, decltype(av)>::value == true, "");
7045 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7046 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7047 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7048 return (sumf > 0.0) ? sumi : add(c, v);
7049 }
7050
7051 }
7052
7053 namespace test_noexcept
7054 {
7055
7056 int f() { return 0; }
7057 int g() noexcept { return 0; }
7058
7059 static_assert(noexcept(f()) == false, "");
7060 static_assert(noexcept(g()) == true, "");
7061
7062 }
7063
7064 namespace test_constexpr
7065 {
7066
7067 template < typename CharT >
7068 unsigned long constexpr
7069 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7070 {
7071 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7072 }
7073
7074 template < typename CharT >
7075 unsigned long constexpr
7076 strlen_c(const CharT *const s) noexcept
7077 {
7078 return strlen_c_r(s, 0UL);
7079 }
7080
7081 static_assert(strlen_c("") == 0UL, "");
7082 static_assert(strlen_c("1") == 1UL, "");
7083 static_assert(strlen_c("example") == 7UL, "");
7084 static_assert(strlen_c("another\0example") == 7UL, "");
7085
7086 }
7087
7088 namespace test_rvalue_references
7089 {
7090
7091 template < int N >
7092 struct answer
7093 {
7094 static constexpr int value = N;
7095 };
7096
7097 answer<1> f(int&) { return answer<1>(); }
7098 answer<2> f(const int&) { return answer<2>(); }
7099 answer<3> f(int&&) { return answer<3>(); }
7100
7101 void
7102 test()
7103 {
7104 int i = 0;
7105 const int c = 0;
7106 static_assert(decltype(f(i))::value == 1, "");
7107 static_assert(decltype(f(c))::value == 2, "");
7108 static_assert(decltype(f(0))::value == 3, "");
7109 }
7110
7111 }
7112
7113 namespace test_uniform_initialization
7114 {
7115
7116 struct test
7117 {
7118 static const int zero {};
7119 static const int one {1};
7120 };
7121
7122 static_assert(test::zero == 0, "");
7123 static_assert(test::one == 1, "");
7124
7125 }
7126
7127 namespace test_lambdas
7128 {
7129
7130 void
7131 test1()
7132 {
7133 auto lambda1 = [](){};
7134 auto lambda2 = lambda1;
7135 lambda1();
7136 lambda2();
7137 }
7138
7139 int
7140 test2()
7141 {
7142 auto a = [](int i, int j){ return i + j; }(1, 2);
7143 auto b = []() -> int { return '0'; }();
7144 auto c = [=](){ return a + b; }();
7145 auto d = [&](){ return c; }();
7146 auto e = [a, &b](int x) mutable {
7147 const auto identity = [](int y){ return y; };
7148 for (auto i = 0; i < a; ++i)
7149 a += b--;
7150 return x + identity(a + b);
7151 }(0);
7152 return a + b + c + d + e;
7153 }
7154
7155 int
7156 test3()
7157 {
7158 const auto nullary = [](){ return 0; };
7159 const auto unary = [](int x){ return x; };
7160 using nullary_t = decltype(nullary);
7161 using unary_t = decltype(unary);
7162 const auto higher1st = [](nullary_t f){ return f(); };
7163 const auto higher2nd = [unary](nullary_t f1){
7164 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7165 };
7166 return higher1st(nullary) + higher2nd(nullary)(unary);
7167 }
7168
7169 }
7170
7171 namespace test_variadic_templates
7172 {
7173
7174 template <int...>
7175 struct sum;
7176
7177 template <int N0, int... N1toN>
7178 struct sum<N0, N1toN...>
7179 {
7180 static constexpr auto value = N0 + sum<N1toN...>::value;
7181 };
7182
7183 template <>
7184 struct sum<>
7185 {
7186 static constexpr auto value = 0;
7187 };
7188
7189 static_assert(sum<>::value == 0, "");
7190 static_assert(sum<1>::value == 1, "");
7191 static_assert(sum<23>::value == 23, "");
7192 static_assert(sum<1, 2>::value == 3, "");
7193 static_assert(sum<5, 5, 11>::value == 21, "");
7194 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7195
7196 }
7197
7198 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7199 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7200 // because of this.
7201 namespace test_template_alias_sfinae
7202 {
7203
7204 struct foo {};
7205
7206 template<typename T>
7207 using member = typename T::member_type;
7208
7209 template<typename T>
7210 void func(...) {}
7211
7212 template<typename T>
7213 void func(member<T>*) {}
7214
7215 void test();
7216
7217 void test() { func<foo>(0); }
7218
7219 }
7220
7221 } // namespace cxx11
7222
7223 #endif // __cplusplus >= 201103L
7224
7225
7226
7227
7228 // If the compiler admits that it is not ready for C++14, why torture it?
7229 // Hopefully, this will speed up the test.
7230
7231 #ifndef __cplusplus
7232
7233 #error "This is not a C++ compiler"
7234
7235 #elif __cplusplus < 201402L
7236
7237 #error "This is not a C++14 compiler"
7238
7239 #else
7240
7241 namespace cxx14
7242 {
7243
7244 namespace test_polymorphic_lambdas
7245 {
7246
7247 int
7248 test()
7249 {
7250 const auto lambda = [](auto&&... args){
7251 const auto istiny = [](auto x){
7252 return (sizeof(x) == 1UL) ? 1 : 0;
7253 };
7254 const int aretiny[] = { istiny(args)... };
7255 return aretiny[0];
7256 };
7257 return lambda(1, 1L, 1.0f, '1');
7258 }
7259
7260 }
7261
7262 namespace test_binary_literals
7263 {
7264
7265 constexpr auto ivii = 0b0000000000101010;
7266 static_assert(ivii == 42, "wrong value");
7267
7268 }
7269
7270 namespace test_generalized_constexpr
7271 {
7272
7273 template < typename CharT >
7274 constexpr unsigned long
7275 strlen_c(const CharT *const s) noexcept
7276 {
7277 auto length = 0UL;
7278 for (auto p = s; *p; ++p)
7279 ++length;
7280 return length;
7281 }
7282
7283 static_assert(strlen_c("") == 0UL, "");
7284 static_assert(strlen_c("x") == 1UL, "");
7285 static_assert(strlen_c("test") == 4UL, "");
7286 static_assert(strlen_c("another\0test") == 7UL, "");
7287
7288 }
7289
7290 namespace test_lambda_init_capture
7291 {
7292
7293 int
7294 test()
7295 {
7296 auto x = 0;
7297 const auto lambda1 = [a = x](int b){ return a + b; };
7298 const auto lambda2 = [a = lambda1(x)](){ return a; };
7299 return lambda2();
7300 }
7301
7302 }
7303
7304 namespace test_digit_separators
7305 {
7306
7307 constexpr auto ten_million = 100'000'000;
7308 static_assert(ten_million == 100000000, "");
7309
7310 }
7311
7312 namespace test_return_type_deduction
7313 {
7314
7315 auto f(int& x) { return x; }
7316 decltype(auto) g(int& x) { return x; }
7317
7318 template < typename T1, typename T2 >
7319 struct is_same
7320 {
7321 static constexpr auto value = false;
7322 };
7323
7324 template < typename T >
7325 struct is_same<T, T>
7326 {
7327 static constexpr auto value = true;
7328 };
7329
7330 int
7331 test()
7332 {
7333 auto x = 0;
7334 static_assert(is_same<int, decltype(f(x))>::value, "");
7335 static_assert(is_same<int&, decltype(g(x))>::value, "");
7336 return x;
7337 }
7338
7339 }
7340
7341 } // namespace cxx14
7342
7343 #endif // __cplusplus >= 201402L
7344
7345
7346
7347 _ACEOF
7348 if ac_fn_cxx_try_compile "$LINENO"; then :
7349 eval $cachevar=yes
7350 else
7351 eval $cachevar=no
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354 CXX="$ac_save_CXX"
7355 fi
7356 eval ac_res=\$$cachevar
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7358 $as_echo "$ac_res" >&6; }
7359 if eval test x\$$cachevar = xyes; then
7360 CXX="$CXX $switch"
7361 if test -n "$CXXCPP" ; then
7362 CXXCPP="$CXXCPP $switch"
7363 fi
7364 ac_success=yes
7365 break
7366 fi
7367 done
7368 if test x$ac_success = xyes; then
7369 break
7370 fi
7371 done
7372 fi
7373
7374 ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7381 if test x$ac_success = xno; then
7382 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7383 fi
7384 fi
7385 if test x$ac_success = xno; then
7386 HAVE_CXX14=0
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7388 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7389 else
7390 HAVE_CXX14=1
7391
7392 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7393
7394 fi
7395
7396
7397
7398 if test "${build}" != "${host}"; then
7399 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7400 ac_ext=cpp
7401 ac_cpp='$CXXCPP $CPPFLAGS'
7402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 ac_success=no
7406 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7407 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7408 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7409 CXX="$CXX_FOR_BUILD"
7410 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7411 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7413 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7414 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419
7420
7421 // If the compiler admits that it is not ready for C++11, why torture it?
7422 // Hopefully, this will speed up the test.
7423
7424 #ifndef __cplusplus
7425
7426 #error "This is not a C++ compiler"
7427
7428 #elif __cplusplus < 201103L
7429
7430 #error "This is not a C++11 compiler"
7431
7432 #else
7433
7434 namespace cxx11
7435 {
7436
7437 namespace test_static_assert
7438 {
7439
7440 template <typename T>
7441 struct check
7442 {
7443 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7444 };
7445
7446 }
7447
7448 namespace test_final_override
7449 {
7450
7451 struct Base
7452 {
7453 virtual ~Base() {}
7454 virtual void f() {}
7455 };
7456
7457 struct Derived : public Base
7458 {
7459 virtual ~Derived() override {}
7460 virtual void f() override {}
7461 };
7462
7463 }
7464
7465 namespace test_double_right_angle_brackets
7466 {
7467
7468 template < typename T >
7469 struct check {};
7470
7471 typedef check<void> single_type;
7472 typedef check<check<void>> double_type;
7473 typedef check<check<check<void>>> triple_type;
7474 typedef check<check<check<check<void>>>> quadruple_type;
7475
7476 }
7477
7478 namespace test_decltype
7479 {
7480
7481 int
7482 f()
7483 {
7484 int a = 1;
7485 decltype(a) b = 2;
7486 return a + b;
7487 }
7488
7489 }
7490
7491 namespace test_type_deduction
7492 {
7493
7494 template < typename T1, typename T2 >
7495 struct is_same
7496 {
7497 static const bool value = false;
7498 };
7499
7500 template < typename T >
7501 struct is_same<T, T>
7502 {
7503 static const bool value = true;
7504 };
7505
7506 template < typename T1, typename T2 >
7507 auto
7508 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7509 {
7510 return a1 + a2;
7511 }
7512
7513 int
7514 test(const int c, volatile int v)
7515 {
7516 static_assert(is_same<int, decltype(0)>::value == true, "");
7517 static_assert(is_same<int, decltype(c)>::value == false, "");
7518 static_assert(is_same<int, decltype(v)>::value == false, "");
7519 auto ac = c;
7520 auto av = v;
7521 auto sumi = ac + av + 'x';
7522 auto sumf = ac + av + 1.0;
7523 static_assert(is_same<int, decltype(ac)>::value == true, "");
7524 static_assert(is_same<int, decltype(av)>::value == true, "");
7525 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7526 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7527 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7528 return (sumf > 0.0) ? sumi : add(c, v);
7529 }
7530
7531 }
7532
7533 namespace test_noexcept
7534 {
7535
7536 int f() { return 0; }
7537 int g() noexcept { return 0; }
7538
7539 static_assert(noexcept(f()) == false, "");
7540 static_assert(noexcept(g()) == true, "");
7541
7542 }
7543
7544 namespace test_constexpr
7545 {
7546
7547 template < typename CharT >
7548 unsigned long constexpr
7549 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7550 {
7551 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7552 }
7553
7554 template < typename CharT >
7555 unsigned long constexpr
7556 strlen_c(const CharT *const s) noexcept
7557 {
7558 return strlen_c_r(s, 0UL);
7559 }
7560
7561 static_assert(strlen_c("") == 0UL, "");
7562 static_assert(strlen_c("1") == 1UL, "");
7563 static_assert(strlen_c("example") == 7UL, "");
7564 static_assert(strlen_c("another\0example") == 7UL, "");
7565
7566 }
7567
7568 namespace test_rvalue_references
7569 {
7570
7571 template < int N >
7572 struct answer
7573 {
7574 static constexpr int value = N;
7575 };
7576
7577 answer<1> f(int&) { return answer<1>(); }
7578 answer<2> f(const int&) { return answer<2>(); }
7579 answer<3> f(int&&) { return answer<3>(); }
7580
7581 void
7582 test()
7583 {
7584 int i = 0;
7585 const int c = 0;
7586 static_assert(decltype(f(i))::value == 1, "");
7587 static_assert(decltype(f(c))::value == 2, "");
7588 static_assert(decltype(f(0))::value == 3, "");
7589 }
7590
7591 }
7592
7593 namespace test_uniform_initialization
7594 {
7595
7596 struct test
7597 {
7598 static const int zero {};
7599 static const int one {1};
7600 };
7601
7602 static_assert(test::zero == 0, "");
7603 static_assert(test::one == 1, "");
7604
7605 }
7606
7607 namespace test_lambdas
7608 {
7609
7610 void
7611 test1()
7612 {
7613 auto lambda1 = [](){};
7614 auto lambda2 = lambda1;
7615 lambda1();
7616 lambda2();
7617 }
7618
7619 int
7620 test2()
7621 {
7622 auto a = [](int i, int j){ return i + j; }(1, 2);
7623 auto b = []() -> int { return '0'; }();
7624 auto c = [=](){ return a + b; }();
7625 auto d = [&](){ return c; }();
7626 auto e = [a, &b](int x) mutable {
7627 const auto identity = [](int y){ return y; };
7628 for (auto i = 0; i < a; ++i)
7629 a += b--;
7630 return x + identity(a + b);
7631 }(0);
7632 return a + b + c + d + e;
7633 }
7634
7635 int
7636 test3()
7637 {
7638 const auto nullary = [](){ return 0; };
7639 const auto unary = [](int x){ return x; };
7640 using nullary_t = decltype(nullary);
7641 using unary_t = decltype(unary);
7642 const auto higher1st = [](nullary_t f){ return f(); };
7643 const auto higher2nd = [unary](nullary_t f1){
7644 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7645 };
7646 return higher1st(nullary) + higher2nd(nullary)(unary);
7647 }
7648
7649 }
7650
7651 namespace test_variadic_templates
7652 {
7653
7654 template <int...>
7655 struct sum;
7656
7657 template <int N0, int... N1toN>
7658 struct sum<N0, N1toN...>
7659 {
7660 static constexpr auto value = N0 + sum<N1toN...>::value;
7661 };
7662
7663 template <>
7664 struct sum<>
7665 {
7666 static constexpr auto value = 0;
7667 };
7668
7669 static_assert(sum<>::value == 0, "");
7670 static_assert(sum<1>::value == 1, "");
7671 static_assert(sum<23>::value == 23, "");
7672 static_assert(sum<1, 2>::value == 3, "");
7673 static_assert(sum<5, 5, 11>::value == 21, "");
7674 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7675
7676 }
7677
7678 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7679 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7680 // because of this.
7681 namespace test_template_alias_sfinae
7682 {
7683
7684 struct foo {};
7685
7686 template<typename T>
7687 using member = typename T::member_type;
7688
7689 template<typename T>
7690 void func(...) {}
7691
7692 template<typename T>
7693 void func(member<T>*) {}
7694
7695 void test();
7696
7697 void test() { func<foo>(0); }
7698
7699 }
7700
7701 } // namespace cxx11
7702
7703 #endif // __cplusplus >= 201103L
7704
7705
7706
7707
7708 // If the compiler admits that it is not ready for C++14, why torture it?
7709 // Hopefully, this will speed up the test.
7710
7711 #ifndef __cplusplus
7712
7713 #error "This is not a C++ compiler"
7714
7715 #elif __cplusplus < 201402L
7716
7717 #error "This is not a C++14 compiler"
7718
7719 #else
7720
7721 namespace cxx14
7722 {
7723
7724 namespace test_polymorphic_lambdas
7725 {
7726
7727 int
7728 test()
7729 {
7730 const auto lambda = [](auto&&... args){
7731 const auto istiny = [](auto x){
7732 return (sizeof(x) == 1UL) ? 1 : 0;
7733 };
7734 const int aretiny[] = { istiny(args)... };
7735 return aretiny[0];
7736 };
7737 return lambda(1, 1L, 1.0f, '1');
7738 }
7739
7740 }
7741
7742 namespace test_binary_literals
7743 {
7744
7745 constexpr auto ivii = 0b0000000000101010;
7746 static_assert(ivii == 42, "wrong value");
7747
7748 }
7749
7750 namespace test_generalized_constexpr
7751 {
7752
7753 template < typename CharT >
7754 constexpr unsigned long
7755 strlen_c(const CharT *const s) noexcept
7756 {
7757 auto length = 0UL;
7758 for (auto p = s; *p; ++p)
7759 ++length;
7760 return length;
7761 }
7762
7763 static_assert(strlen_c("") == 0UL, "");
7764 static_assert(strlen_c("x") == 1UL, "");
7765 static_assert(strlen_c("test") == 4UL, "");
7766 static_assert(strlen_c("another\0test") == 7UL, "");
7767
7768 }
7769
7770 namespace test_lambda_init_capture
7771 {
7772
7773 int
7774 test()
7775 {
7776 auto x = 0;
7777 const auto lambda1 = [a = x](int b){ return a + b; };
7778 const auto lambda2 = [a = lambda1(x)](){ return a; };
7779 return lambda2();
7780 }
7781
7782 }
7783
7784 namespace test_digit_separators
7785 {
7786
7787 constexpr auto ten_million = 100'000'000;
7788 static_assert(ten_million == 100000000, "");
7789
7790 }
7791
7792 namespace test_return_type_deduction
7793 {
7794
7795 auto f(int& x) { return x; }
7796 decltype(auto) g(int& x) { return x; }
7797
7798 template < typename T1, typename T2 >
7799 struct is_same
7800 {
7801 static constexpr auto value = false;
7802 };
7803
7804 template < typename T >
7805 struct is_same<T, T>
7806 {
7807 static constexpr auto value = true;
7808 };
7809
7810 int
7811 test()
7812 {
7813 auto x = 0;
7814 static_assert(is_same<int, decltype(f(x))>::value, "");
7815 static_assert(is_same<int&, decltype(g(x))>::value, "");
7816 return x;
7817 }
7818
7819 }
7820
7821 } // namespace cxx14
7822
7823 #endif // __cplusplus >= 201402L
7824
7825
7826
7827 _ACEOF
7828 if ac_fn_cxx_try_compile "$LINENO"; then :
7829 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7830 else
7831 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7836 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7837 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7838 ac_success=yes
7839 fi
7840
7841 if test x$ac_success = xno; then
7842 for alternative in ${ax_cxx_compile_alternatives}; do
7843 switch="-std=gnu++${alternative}"
7844 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7846 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7847 if eval \${$cachevar+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 ac_save_CXX="$CXX"
7851 CXX="$CXX $switch"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854
7855
7856 // If the compiler admits that it is not ready for C++11, why torture it?
7857 // Hopefully, this will speed up the test.
7858
7859 #ifndef __cplusplus
7860
7861 #error "This is not a C++ compiler"
7862
7863 #elif __cplusplus < 201103L
7864
7865 #error "This is not a C++11 compiler"
7866
7867 #else
7868
7869 namespace cxx11
7870 {
7871
7872 namespace test_static_assert
7873 {
7874
7875 template <typename T>
7876 struct check
7877 {
7878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7879 };
7880
7881 }
7882
7883 namespace test_final_override
7884 {
7885
7886 struct Base
7887 {
7888 virtual ~Base() {}
7889 virtual void f() {}
7890 };
7891
7892 struct Derived : public Base
7893 {
7894 virtual ~Derived() override {}
7895 virtual void f() override {}
7896 };
7897
7898 }
7899
7900 namespace test_double_right_angle_brackets
7901 {
7902
7903 template < typename T >
7904 struct check {};
7905
7906 typedef check<void> single_type;
7907 typedef check<check<void>> double_type;
7908 typedef check<check<check<void>>> triple_type;
7909 typedef check<check<check<check<void>>>> quadruple_type;
7910
7911 }
7912
7913 namespace test_decltype
7914 {
7915
7916 int
7917 f()
7918 {
7919 int a = 1;
7920 decltype(a) b = 2;
7921 return a + b;
7922 }
7923
7924 }
7925
7926 namespace test_type_deduction
7927 {
7928
7929 template < typename T1, typename T2 >
7930 struct is_same
7931 {
7932 static const bool value = false;
7933 };
7934
7935 template < typename T >
7936 struct is_same<T, T>
7937 {
7938 static const bool value = true;
7939 };
7940
7941 template < typename T1, typename T2 >
7942 auto
7943 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7944 {
7945 return a1 + a2;
7946 }
7947
7948 int
7949 test(const int c, volatile int v)
7950 {
7951 static_assert(is_same<int, decltype(0)>::value == true, "");
7952 static_assert(is_same<int, decltype(c)>::value == false, "");
7953 static_assert(is_same<int, decltype(v)>::value == false, "");
7954 auto ac = c;
7955 auto av = v;
7956 auto sumi = ac + av + 'x';
7957 auto sumf = ac + av + 1.0;
7958 static_assert(is_same<int, decltype(ac)>::value == true, "");
7959 static_assert(is_same<int, decltype(av)>::value == true, "");
7960 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7961 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7962 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7963 return (sumf > 0.0) ? sumi : add(c, v);
7964 }
7965
7966 }
7967
7968 namespace test_noexcept
7969 {
7970
7971 int f() { return 0; }
7972 int g() noexcept { return 0; }
7973
7974 static_assert(noexcept(f()) == false, "");
7975 static_assert(noexcept(g()) == true, "");
7976
7977 }
7978
7979 namespace test_constexpr
7980 {
7981
7982 template < typename CharT >
7983 unsigned long constexpr
7984 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7985 {
7986 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7987 }
7988
7989 template < typename CharT >
7990 unsigned long constexpr
7991 strlen_c(const CharT *const s) noexcept
7992 {
7993 return strlen_c_r(s, 0UL);
7994 }
7995
7996 static_assert(strlen_c("") == 0UL, "");
7997 static_assert(strlen_c("1") == 1UL, "");
7998 static_assert(strlen_c("example") == 7UL, "");
7999 static_assert(strlen_c("another\0example") == 7UL, "");
8000
8001 }
8002
8003 namespace test_rvalue_references
8004 {
8005
8006 template < int N >
8007 struct answer
8008 {
8009 static constexpr int value = N;
8010 };
8011
8012 answer<1> f(int&) { return answer<1>(); }
8013 answer<2> f(const int&) { return answer<2>(); }
8014 answer<3> f(int&&) { return answer<3>(); }
8015
8016 void
8017 test()
8018 {
8019 int i = 0;
8020 const int c = 0;
8021 static_assert(decltype(f(i))::value == 1, "");
8022 static_assert(decltype(f(c))::value == 2, "");
8023 static_assert(decltype(f(0))::value == 3, "");
8024 }
8025
8026 }
8027
8028 namespace test_uniform_initialization
8029 {
8030
8031 struct test
8032 {
8033 static const int zero {};
8034 static const int one {1};
8035 };
8036
8037 static_assert(test::zero == 0, "");
8038 static_assert(test::one == 1, "");
8039
8040 }
8041
8042 namespace test_lambdas
8043 {
8044
8045 void
8046 test1()
8047 {
8048 auto lambda1 = [](){};
8049 auto lambda2 = lambda1;
8050 lambda1();
8051 lambda2();
8052 }
8053
8054 int
8055 test2()
8056 {
8057 auto a = [](int i, int j){ return i + j; }(1, 2);
8058 auto b = []() -> int { return '0'; }();
8059 auto c = [=](){ return a + b; }();
8060 auto d = [&](){ return c; }();
8061 auto e = [a, &b](int x) mutable {
8062 const auto identity = [](int y){ return y; };
8063 for (auto i = 0; i < a; ++i)
8064 a += b--;
8065 return x + identity(a + b);
8066 }(0);
8067 return a + b + c + d + e;
8068 }
8069
8070 int
8071 test3()
8072 {
8073 const auto nullary = [](){ return 0; };
8074 const auto unary = [](int x){ return x; };
8075 using nullary_t = decltype(nullary);
8076 using unary_t = decltype(unary);
8077 const auto higher1st = [](nullary_t f){ return f(); };
8078 const auto higher2nd = [unary](nullary_t f1){
8079 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8080 };
8081 return higher1st(nullary) + higher2nd(nullary)(unary);
8082 }
8083
8084 }
8085
8086 namespace test_variadic_templates
8087 {
8088
8089 template <int...>
8090 struct sum;
8091
8092 template <int N0, int... N1toN>
8093 struct sum<N0, N1toN...>
8094 {
8095 static constexpr auto value = N0 + sum<N1toN...>::value;
8096 };
8097
8098 template <>
8099 struct sum<>
8100 {
8101 static constexpr auto value = 0;
8102 };
8103
8104 static_assert(sum<>::value == 0, "");
8105 static_assert(sum<1>::value == 1, "");
8106 static_assert(sum<23>::value == 23, "");
8107 static_assert(sum<1, 2>::value == 3, "");
8108 static_assert(sum<5, 5, 11>::value == 21, "");
8109 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8110
8111 }
8112
8113 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8114 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8115 // because of this.
8116 namespace test_template_alias_sfinae
8117 {
8118
8119 struct foo {};
8120
8121 template<typename T>
8122 using member = typename T::member_type;
8123
8124 template<typename T>
8125 void func(...) {}
8126
8127 template<typename T>
8128 void func(member<T>*) {}
8129
8130 void test();
8131
8132 void test() { func<foo>(0); }
8133
8134 }
8135
8136 } // namespace cxx11
8137
8138 #endif // __cplusplus >= 201103L
8139
8140
8141
8142
8143 // If the compiler admits that it is not ready for C++14, why torture it?
8144 // Hopefully, this will speed up the test.
8145
8146 #ifndef __cplusplus
8147
8148 #error "This is not a C++ compiler"
8149
8150 #elif __cplusplus < 201402L
8151
8152 #error "This is not a C++14 compiler"
8153
8154 #else
8155
8156 namespace cxx14
8157 {
8158
8159 namespace test_polymorphic_lambdas
8160 {
8161
8162 int
8163 test()
8164 {
8165 const auto lambda = [](auto&&... args){
8166 const auto istiny = [](auto x){
8167 return (sizeof(x) == 1UL) ? 1 : 0;
8168 };
8169 const int aretiny[] = { istiny(args)... };
8170 return aretiny[0];
8171 };
8172 return lambda(1, 1L, 1.0f, '1');
8173 }
8174
8175 }
8176
8177 namespace test_binary_literals
8178 {
8179
8180 constexpr auto ivii = 0b0000000000101010;
8181 static_assert(ivii == 42, "wrong value");
8182
8183 }
8184
8185 namespace test_generalized_constexpr
8186 {
8187
8188 template < typename CharT >
8189 constexpr unsigned long
8190 strlen_c(const CharT *const s) noexcept
8191 {
8192 auto length = 0UL;
8193 for (auto p = s; *p; ++p)
8194 ++length;
8195 return length;
8196 }
8197
8198 static_assert(strlen_c("") == 0UL, "");
8199 static_assert(strlen_c("x") == 1UL, "");
8200 static_assert(strlen_c("test") == 4UL, "");
8201 static_assert(strlen_c("another\0test") == 7UL, "");
8202
8203 }
8204
8205 namespace test_lambda_init_capture
8206 {
8207
8208 int
8209 test()
8210 {
8211 auto x = 0;
8212 const auto lambda1 = [a = x](int b){ return a + b; };
8213 const auto lambda2 = [a = lambda1(x)](){ return a; };
8214 return lambda2();
8215 }
8216
8217 }
8218
8219 namespace test_digit_separators
8220 {
8221
8222 constexpr auto ten_million = 100'000'000;
8223 static_assert(ten_million == 100000000, "");
8224
8225 }
8226
8227 namespace test_return_type_deduction
8228 {
8229
8230 auto f(int& x) { return x; }
8231 decltype(auto) g(int& x) { return x; }
8232
8233 template < typename T1, typename T2 >
8234 struct is_same
8235 {
8236 static constexpr auto value = false;
8237 };
8238
8239 template < typename T >
8240 struct is_same<T, T>
8241 {
8242 static constexpr auto value = true;
8243 };
8244
8245 int
8246 test()
8247 {
8248 auto x = 0;
8249 static_assert(is_same<int, decltype(f(x))>::value, "");
8250 static_assert(is_same<int&, decltype(g(x))>::value, "");
8251 return x;
8252 }
8253
8254 }
8255
8256 } // namespace cxx14
8257
8258 #endif // __cplusplus >= 201402L
8259
8260
8261
8262 _ACEOF
8263 if ac_fn_cxx_try_compile "$LINENO"; then :
8264 eval $cachevar=yes
8265 else
8266 eval $cachevar=no
8267 fi
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 CXX="$ac_save_CXX"
8270 fi
8271 eval ac_res=\$$cachevar
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8273 $as_echo "$ac_res" >&6; }
8274 if eval test x\$$cachevar = xyes; then
8275 CXX="$CXX $switch"
8276 if test -n "$CXXCPP" ; then
8277 CXXCPP="$CXXCPP $switch"
8278 fi
8279 ac_success=yes
8280 break
8281 fi
8282 done
8283 fi
8284
8285 if test x$ac_success = xno; then
8286 for alternative in ${ax_cxx_compile_alternatives}; do
8287 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8288 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8290 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8291 if eval \${$cachevar+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 ac_save_CXX="$CXX"
8295 CXX="$CXX $switch"
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298
8299
8300 // If the compiler admits that it is not ready for C++11, why torture it?
8301 // Hopefully, this will speed up the test.
8302
8303 #ifndef __cplusplus
8304
8305 #error "This is not a C++ compiler"
8306
8307 #elif __cplusplus < 201103L
8308
8309 #error "This is not a C++11 compiler"
8310
8311 #else
8312
8313 namespace cxx11
8314 {
8315
8316 namespace test_static_assert
8317 {
8318
8319 template <typename T>
8320 struct check
8321 {
8322 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8323 };
8324
8325 }
8326
8327 namespace test_final_override
8328 {
8329
8330 struct Base
8331 {
8332 virtual ~Base() {}
8333 virtual void f() {}
8334 };
8335
8336 struct Derived : public Base
8337 {
8338 virtual ~Derived() override {}
8339 virtual void f() override {}
8340 };
8341
8342 }
8343
8344 namespace test_double_right_angle_brackets
8345 {
8346
8347 template < typename T >
8348 struct check {};
8349
8350 typedef check<void> single_type;
8351 typedef check<check<void>> double_type;
8352 typedef check<check<check<void>>> triple_type;
8353 typedef check<check<check<check<void>>>> quadruple_type;
8354
8355 }
8356
8357 namespace test_decltype
8358 {
8359
8360 int
8361 f()
8362 {
8363 int a = 1;
8364 decltype(a) b = 2;
8365 return a + b;
8366 }
8367
8368 }
8369
8370 namespace test_type_deduction
8371 {
8372
8373 template < typename T1, typename T2 >
8374 struct is_same
8375 {
8376 static const bool value = false;
8377 };
8378
8379 template < typename T >
8380 struct is_same<T, T>
8381 {
8382 static const bool value = true;
8383 };
8384
8385 template < typename T1, typename T2 >
8386 auto
8387 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8388 {
8389 return a1 + a2;
8390 }
8391
8392 int
8393 test(const int c, volatile int v)
8394 {
8395 static_assert(is_same<int, decltype(0)>::value == true, "");
8396 static_assert(is_same<int, decltype(c)>::value == false, "");
8397 static_assert(is_same<int, decltype(v)>::value == false, "");
8398 auto ac = c;
8399 auto av = v;
8400 auto sumi = ac + av + 'x';
8401 auto sumf = ac + av + 1.0;
8402 static_assert(is_same<int, decltype(ac)>::value == true, "");
8403 static_assert(is_same<int, decltype(av)>::value == true, "");
8404 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8405 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8406 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8407 return (sumf > 0.0) ? sumi : add(c, v);
8408 }
8409
8410 }
8411
8412 namespace test_noexcept
8413 {
8414
8415 int f() { return 0; }
8416 int g() noexcept { return 0; }
8417
8418 static_assert(noexcept(f()) == false, "");
8419 static_assert(noexcept(g()) == true, "");
8420
8421 }
8422
8423 namespace test_constexpr
8424 {
8425
8426 template < typename CharT >
8427 unsigned long constexpr
8428 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8429 {
8430 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8431 }
8432
8433 template < typename CharT >
8434 unsigned long constexpr
8435 strlen_c(const CharT *const s) noexcept
8436 {
8437 return strlen_c_r(s, 0UL);
8438 }
8439
8440 static_assert(strlen_c("") == 0UL, "");
8441 static_assert(strlen_c("1") == 1UL, "");
8442 static_assert(strlen_c("example") == 7UL, "");
8443 static_assert(strlen_c("another\0example") == 7UL, "");
8444
8445 }
8446
8447 namespace test_rvalue_references
8448 {
8449
8450 template < int N >
8451 struct answer
8452 {
8453 static constexpr int value = N;
8454 };
8455
8456 answer<1> f(int&) { return answer<1>(); }
8457 answer<2> f(const int&) { return answer<2>(); }
8458 answer<3> f(int&&) { return answer<3>(); }
8459
8460 void
8461 test()
8462 {
8463 int i = 0;
8464 const int c = 0;
8465 static_assert(decltype(f(i))::value == 1, "");
8466 static_assert(decltype(f(c))::value == 2, "");
8467 static_assert(decltype(f(0))::value == 3, "");
8468 }
8469
8470 }
8471
8472 namespace test_uniform_initialization
8473 {
8474
8475 struct test
8476 {
8477 static const int zero {};
8478 static const int one {1};
8479 };
8480
8481 static_assert(test::zero == 0, "");
8482 static_assert(test::one == 1, "");
8483
8484 }
8485
8486 namespace test_lambdas
8487 {
8488
8489 void
8490 test1()
8491 {
8492 auto lambda1 = [](){};
8493 auto lambda2 = lambda1;
8494 lambda1();
8495 lambda2();
8496 }
8497
8498 int
8499 test2()
8500 {
8501 auto a = [](int i, int j){ return i + j; }(1, 2);
8502 auto b = []() -> int { return '0'; }();
8503 auto c = [=](){ return a + b; }();
8504 auto d = [&](){ return c; }();
8505 auto e = [a, &b](int x) mutable {
8506 const auto identity = [](int y){ return y; };
8507 for (auto i = 0; i < a; ++i)
8508 a += b--;
8509 return x + identity(a + b);
8510 }(0);
8511 return a + b + c + d + e;
8512 }
8513
8514 int
8515 test3()
8516 {
8517 const auto nullary = [](){ return 0; };
8518 const auto unary = [](int x){ return x; };
8519 using nullary_t = decltype(nullary);
8520 using unary_t = decltype(unary);
8521 const auto higher1st = [](nullary_t f){ return f(); };
8522 const auto higher2nd = [unary](nullary_t f1){
8523 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8524 };
8525 return higher1st(nullary) + higher2nd(nullary)(unary);
8526 }
8527
8528 }
8529
8530 namespace test_variadic_templates
8531 {
8532
8533 template <int...>
8534 struct sum;
8535
8536 template <int N0, int... N1toN>
8537 struct sum<N0, N1toN...>
8538 {
8539 static constexpr auto value = N0 + sum<N1toN...>::value;
8540 };
8541
8542 template <>
8543 struct sum<>
8544 {
8545 static constexpr auto value = 0;
8546 };
8547
8548 static_assert(sum<>::value == 0, "");
8549 static_assert(sum<1>::value == 1, "");
8550 static_assert(sum<23>::value == 23, "");
8551 static_assert(sum<1, 2>::value == 3, "");
8552 static_assert(sum<5, 5, 11>::value == 21, "");
8553 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8554
8555 }
8556
8557 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8558 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8559 // because of this.
8560 namespace test_template_alias_sfinae
8561 {
8562
8563 struct foo {};
8564
8565 template<typename T>
8566 using member = typename T::member_type;
8567
8568 template<typename T>
8569 void func(...) {}
8570
8571 template<typename T>
8572 void func(member<T>*) {}
8573
8574 void test();
8575
8576 void test() { func<foo>(0); }
8577
8578 }
8579
8580 } // namespace cxx11
8581
8582 #endif // __cplusplus >= 201103L
8583
8584
8585
8586
8587 // If the compiler admits that it is not ready for C++14, why torture it?
8588 // Hopefully, this will speed up the test.
8589
8590 #ifndef __cplusplus
8591
8592 #error "This is not a C++ compiler"
8593
8594 #elif __cplusplus < 201402L
8595
8596 #error "This is not a C++14 compiler"
8597
8598 #else
8599
8600 namespace cxx14
8601 {
8602
8603 namespace test_polymorphic_lambdas
8604 {
8605
8606 int
8607 test()
8608 {
8609 const auto lambda = [](auto&&... args){
8610 const auto istiny = [](auto x){
8611 return (sizeof(x) == 1UL) ? 1 : 0;
8612 };
8613 const int aretiny[] = { istiny(args)... };
8614 return aretiny[0];
8615 };
8616 return lambda(1, 1L, 1.0f, '1');
8617 }
8618
8619 }
8620
8621 namespace test_binary_literals
8622 {
8623
8624 constexpr auto ivii = 0b0000000000101010;
8625 static_assert(ivii == 42, "wrong value");
8626
8627 }
8628
8629 namespace test_generalized_constexpr
8630 {
8631
8632 template < typename CharT >
8633 constexpr unsigned long
8634 strlen_c(const CharT *const s) noexcept
8635 {
8636 auto length = 0UL;
8637 for (auto p = s; *p; ++p)
8638 ++length;
8639 return length;
8640 }
8641
8642 static_assert(strlen_c("") == 0UL, "");
8643 static_assert(strlen_c("x") == 1UL, "");
8644 static_assert(strlen_c("test") == 4UL, "");
8645 static_assert(strlen_c("another\0test") == 7UL, "");
8646
8647 }
8648
8649 namespace test_lambda_init_capture
8650 {
8651
8652 int
8653 test()
8654 {
8655 auto x = 0;
8656 const auto lambda1 = [a = x](int b){ return a + b; };
8657 const auto lambda2 = [a = lambda1(x)](){ return a; };
8658 return lambda2();
8659 }
8660
8661 }
8662
8663 namespace test_digit_separators
8664 {
8665
8666 constexpr auto ten_million = 100'000'000;
8667 static_assert(ten_million == 100000000, "");
8668
8669 }
8670
8671 namespace test_return_type_deduction
8672 {
8673
8674 auto f(int& x) { return x; }
8675 decltype(auto) g(int& x) { return x; }
8676
8677 template < typename T1, typename T2 >
8678 struct is_same
8679 {
8680 static constexpr auto value = false;
8681 };
8682
8683 template < typename T >
8684 struct is_same<T, T>
8685 {
8686 static constexpr auto value = true;
8687 };
8688
8689 int
8690 test()
8691 {
8692 auto x = 0;
8693 static_assert(is_same<int, decltype(f(x))>::value, "");
8694 static_assert(is_same<int&, decltype(g(x))>::value, "");
8695 return x;
8696 }
8697
8698 }
8699
8700 } // namespace cxx14
8701
8702 #endif // __cplusplus >= 201402L
8703
8704
8705
8706 _ACEOF
8707 if ac_fn_cxx_try_compile "$LINENO"; then :
8708 eval $cachevar=yes
8709 else
8710 eval $cachevar=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 CXX="$ac_save_CXX"
8714 fi
8715 eval ac_res=\$$cachevar
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8717 $as_echo "$ac_res" >&6; }
8718 if eval test x\$$cachevar = xyes; then
8719 CXX="$CXX $switch"
8720 if test -n "$CXXCPP" ; then
8721 CXXCPP="$CXXCPP $switch"
8722 fi
8723 ac_success=yes
8724 break
8725 fi
8726 done
8727 if test x$ac_success = xyes; then
8728 break
8729 fi
8730 done
8731 fi
8732 CXX_FOR_BUILD="$CXX"
8733 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8734 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8735 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8736 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8737 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8738 ac_ext=c
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8745 if test x$ac_success = xno; then
8746 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8747 fi
8748 fi
8749 if test x$ac_success = xno; then
8750 HAVE_CXX14_FOR_BUILD=0
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8752 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8753 else
8754 HAVE_CXX14_FOR_BUILD=1
8755
8756 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8757
8758 fi
8759
8760
8761 fi
8762 fi
8763
8764 # Check whether --enable-pgo-build was given.
8765 if test "${enable_pgo_build+set}" = set; then :
8766 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8767 else
8768 enable_pgo_build=no
8769 fi
8770
8771
8772 # Issue errors and warnings for invalid/strange PGO build combinations.
8773 case "$have_compiler:$host:$target:$enable_pgo_build" in
8774 *:*:*:no) ;;
8775
8776 # Allow the PGO build only if we aren't building a compiler and
8777 # we are in a native configuration.
8778 no:$build:$build:yes | no:$build:$build:lto) ;;
8779
8780 # Disallow the PGO bootstrap if we are building a compiler.
8781 yes:*:*:yes | yes:*:*:lto)
8782 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8783
8784 *)
8785 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8786 ;;
8787 esac
8788
8789 if test "$enable_pgo_build" != "no"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8791 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8792 old_CFLAGS="$CFLAGS"
8793 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8794 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8795
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 int foo;
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801
8802 else
8803 PGO_BUILD_GEN_CFLAGS=
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 CFLAGS="$old_CFLAGS"
8807 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8809 $as_echo "yes" >&6; }
8810 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8815 fi
8816
8817 if test "$enable_pgo_build" = "lto"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8819 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8820 old_CFLAGS="$CFLAGS"
8821 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8822 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 int foo;
8826 _ACEOF
8827 if ac_fn_c_try_compile "$LINENO"; then :
8828
8829 else
8830 PGO_BUILD_LTO_CFLAGS=
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 CFLAGS="$old_CFLAGS"
8834 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8836 $as_echo "yes" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8841 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8842 fi
8843 fi
8844 fi
8845
8846
8847
8848
8849 # Used for setting $lt_cv_objdir
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8851 $as_echo_n "checking for objdir... " >&6; }
8852 if ${lt_cv_objdir+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 rm -f .libs 2>/dev/null
8856 mkdir .libs 2>/dev/null
8857 if test -d .libs; then
8858 lt_cv_objdir=.libs
8859 else
8860 # MS-DOS does not allow filenames that begin with a dot.
8861 lt_cv_objdir=_libs
8862 fi
8863 rmdir .libs 2>/dev/null
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8866 $as_echo "$lt_cv_objdir" >&6; }
8867 objdir=$lt_cv_objdir
8868
8869
8870
8871
8872
8873 cat >>confdefs.h <<_ACEOF
8874 #define LT_OBJDIR "$lt_cv_objdir/"
8875 _ACEOF
8876
8877
8878
8879 # Check for GMP, MPFR and MPC
8880 require_gmp=no
8881 require_mpc=no
8882 if test -d ${srcdir}/gcc ; then
8883 require_gmp=yes
8884 require_mpc=yes
8885 fi
8886 if test -d ${srcdir}/gdb ; then
8887 if test "x$enable_gdb" != xno; then
8888 require_gmp=yes
8889 fi
8890 fi
8891
8892 gmplibs="-lmpfr -lgmp"
8893 if test x"$require_mpc" = "xyes" ; then
8894 gmplibs="-lmpc $gmplibs"
8895 fi
8896 gmpinc=
8897 have_gmp=no
8898
8899 # Specify a location for mpc
8900 # check for this first so it ends up on the link line before mpfr.
8901
8902 # Check whether --with-mpc was given.
8903 if test "${with_mpc+set}" = set; then :
8904 withval=$with_mpc;
8905 fi
8906
8907
8908 # Check whether --with-mpc-include was given.
8909 if test "${with_mpc_include+set}" = set; then :
8910 withval=$with_mpc_include;
8911 fi
8912
8913
8914 # Check whether --with-mpc-lib was given.
8915 if test "${with_mpc_lib+set}" = set; then :
8916 withval=$with_mpc_lib;
8917 fi
8918
8919
8920 if test "x$with_mpc" != x; then
8921 gmplibs="-L$with_mpc/lib $gmplibs"
8922 gmpinc="-I$with_mpc/include $gmpinc"
8923 fi
8924 if test "x$with_mpc_include" != x; then
8925 gmpinc="-I$with_mpc_include $gmpinc"
8926 fi
8927 if test "x$with_mpc_lib" != x; then
8928 gmplibs="-L$with_mpc_lib $gmplibs"
8929 fi
8930 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8931 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8932 gmpinc='-I$$s/mpc/src '"$gmpinc"
8933 # Do not test the mpc version. Assume that it is sufficient, since
8934 # it is in the source tree, and the library has not been built yet
8935 # but it would be included on the link line in the version check below
8936 # hence making the test fail.
8937 have_gmp=yes
8938 fi
8939
8940 # Specify a location for mpfr
8941 # check for this first so it ends up on the link line before gmp.
8942
8943 # Check whether --with-mpfr was given.
8944 if test "${with_mpfr+set}" = set; then :
8945 withval=$with_mpfr;
8946 fi
8947
8948
8949 # Check whether --with-mpfr-include was given.
8950 if test "${with_mpfr_include+set}" = set; then :
8951 withval=$with_mpfr_include;
8952 fi
8953
8954
8955 # Check whether --with-mpfr-lib was given.
8956 if test "${with_mpfr_lib+set}" = set; then :
8957 withval=$with_mpfr_lib;
8958 fi
8959
8960
8961 if test "x$with_mpfr" != x; then
8962 gmplibs="-L$with_mpfr/lib $gmplibs"
8963 gmpinc="-I$with_mpfr/include $gmpinc"
8964 fi
8965 if test "x$with_mpfr_include" != x; then
8966 gmpinc="-I$with_mpfr_include $gmpinc"
8967 fi
8968 if test "x$with_mpfr_lib" != x; then
8969 gmplibs="-L$with_mpfr_lib $gmplibs"
8970 fi
8971 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8972 # MPFR v3.1.0 moved the sources into a src sub-directory.
8973 if ! test -d ${srcdir}/mpfr/src; then
8974 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8975 fi
8976 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8977 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8978 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8979 # Do not test the mpfr version. Assume that it is sufficient, since
8980 # it is in the source tree, and the library has not been built yet
8981 # but it would be included on the link line in the version check below
8982 # hence making the test fail.
8983 have_gmp=yes
8984 fi
8985
8986 # Specify a location for gmp
8987
8988 # Check whether --with-gmp was given.
8989 if test "${with_gmp+set}" = set; then :
8990 withval=$with_gmp;
8991 fi
8992
8993
8994 # Check whether --with-gmp-include was given.
8995 if test "${with_gmp_include+set}" = set; then :
8996 withval=$with_gmp_include;
8997 fi
8998
8999
9000 # Check whether --with-gmp-lib was given.
9001 if test "${with_gmp_lib+set}" = set; then :
9002 withval=$with_gmp_lib;
9003 fi
9004
9005
9006
9007 if test "x$with_gmp" != x; then
9008 gmplibs="-L$with_gmp/lib $gmplibs"
9009 gmpinc="-I$with_gmp/include $gmpinc"
9010 fi
9011 if test "x$with_gmp_include" != x; then
9012 gmpinc="-I$with_gmp_include $gmpinc"
9013 fi
9014 if test "x$with_gmp_lib" != x; then
9015 gmplibs="-L$with_gmp_lib $gmplibs"
9016 fi
9017 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
9018 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
9019 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9020 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9021 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9022 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
9023 # Do not test the gmp version. Assume that it is sufficient, since
9024 # it is in the source tree, and the library has not been built yet
9025 # but it would be included on the link line in the version check below
9026 # hence making the test fail.
9027 have_gmp=yes
9028 fi
9029
9030 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
9031 have_gmp=yes
9032 saved_CFLAGS="$CFLAGS"
9033 CFLAGS="$CFLAGS $gmpinc"
9034 # Check for the recommended and required versions of GMP.
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
9036 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 #include "gmp.h"
9040 int
9041 main ()
9042 {
9043
9044 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9045 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9046 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
9047 choke me
9048 #endif
9049
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 if ac_fn_c_try_compile "$LINENO"; then :
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <gmp.h>
9058 int
9059 main ()
9060 {
9061
9062 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9063 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9064 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
9065 choke me
9066 #endif
9067
9068 ;
9069 return 0;
9070 }
9071 _ACEOF
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9074 $as_echo "yes" >&6; }
9075 else
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9077 $as_echo "buggy but acceptable" >&6; }
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }; have_gmp=no
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085
9086 # If we have GMP, check the MPFR version.
9087 if test x"$have_gmp" = xyes; then
9088 # Check for the recommended and required versions of MPFR.
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
9090 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <gmp.h>
9094 #include <mpfr.h>
9095 int
9096 main ()
9097 {
9098
9099 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9100 choke me
9101 #endif
9102
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 if ac_fn_c_try_compile "$LINENO"; then :
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9110 #include <gmp.h>
9111 #include <mpfr.h>
9112 int
9113 main ()
9114 {
9115
9116 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9117 choke me
9118 #endif
9119
9120 ;
9121 return 0;
9122 }
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"; then :
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126 $as_echo "yes" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9129 $as_echo "buggy but acceptable" >&6; }
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }; have_gmp=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 fi
9138
9139 # Check for the MPC header version.
9140 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9141 # Check for the recommended and required versions of MPC.
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9143 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <mpc.h>
9147 int
9148 main ()
9149 {
9150
9151 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9152 choke me
9153 #endif
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <mpc.h>
9163 int
9164 main ()
9165 {
9166
9167 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9168 choke me
9169 #endif
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_compile "$LINENO"; then :
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9177 $as_echo "yes" >&6; }
9178 else
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9180 $as_echo "buggy but acceptable" >&6; }
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 else
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }; have_gmp=no
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189
9190 # Now check the MPFR library.
9191 if test x"$have_gmp" = xyes; then
9192 saved_LIBS="$LIBS"
9193 LIBS="$LIBS $gmplibs"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9195 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <mpfr.h>
9199 int
9200 main ()
9201 {
9202
9203 mpfr_t n;
9204 mpfr_t x;
9205 int t;
9206 mpfr_init (n);
9207 mpfr_init (x);
9208 mpfr_atan2 (n, n, x, MPFR_RNDN);
9209 mpfr_erfc (n, x, MPFR_RNDN);
9210 mpfr_subnormalize (x, t, MPFR_RNDN);
9211 mpfr_clear(n);
9212 mpfr_clear(x);
9213
9214 ;
9215 return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9220 $as_echo "yes" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }; have_gmp=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LIBS="$saved_LIBS"
9228 fi
9229
9230 # Now check the MPC library
9231 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9232 saved_LIBS="$LIBS"
9233 LIBS="$LIBS $gmplibs"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9235 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include <mpc.h>
9239 int
9240 main ()
9241 {
9242
9243 mpc_t c;
9244 mpc_init2 (c, 53);
9245 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9246 mpc_cosh (c, c, MPC_RNDNN);
9247 mpc_pow (c, c, c, MPC_RNDNN);
9248 mpc_acosh (c, c, MPC_RNDNN);
9249 mpc_clear (c);
9250
9251 ;
9252 return 0;
9253 }
9254 _ACEOF
9255 if ac_fn_c_try_link "$LINENO"; then :
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9257 $as_echo "yes" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }; have_gmp=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 LIBS="$saved_LIBS"
9265 fi
9266
9267 CFLAGS="$saved_CFLAGS"
9268
9269 # The library versions listed in the error message below should match
9270 # the HARD-minimums enforced above.
9271 if test x$have_gmp != xyes; then
9272 if test -d ${srcdir}/gcc ; then
9273 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9274 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9275 their locations. Source code for these libraries can be found at
9276 their respective hosting sites as well as at
9277 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9278 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9279 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9280 make sure that you have installed both the libraries and the header
9281 files. They may be located in separate packages." "$LINENO" 5
9282 else
9283 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9284 Try the --with-gmp and/or --with-mpfr options to specify
9285 their locations. If you obtained GMP and/or MPFR from a vendor
9286 distribution package, make sure that you have installed both the libraries
9287 and the header files. They may be located in separate packages." "$LINENO" 5
9288 fi
9289 fi
9290 fi
9291
9292 # Flags needed for both GMP, MPFR and/or MPC.
9293
9294
9295
9296
9297
9298
9299
9300 # Libraries to use for stage1 or when not bootstrapping.
9301
9302 # Check whether --with-stage1-libs was given.
9303 if test "${with_stage1_libs+set}" = set; then :
9304 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9305 stage1_libs=
9306 else
9307 stage1_libs=$withval
9308 fi
9309 else
9310 stage1_libs=
9311 fi
9312
9313
9314
9315 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9316 # default is yes if gcc is being built; no otherwise. The reason for
9317 # this default is that gdb is sometimes linked against GNU Source
9318 # Highlight, which is a shared library that uses C++ exceptions. In
9319 # this case, -static-libstdc++ will cause crashes.
9320
9321 # Check whether --with-static-standard-libraries was given.
9322 if test "${with_static_standard_libraries+set}" = set; then :
9323 withval=$with_static_standard_libraries;
9324 else
9325 with_static_standard_libraries=auto
9326 fi
9327
9328 if test "$with_static_standard_libraries" = auto; then
9329 with_static_standard_libraries=$have_compiler
9330 fi
9331
9332 # Linker flags to use for stage1 or when not bootstrapping.
9333
9334 # Check whether --with-stage1-ldflags was given.
9335 if test "${with_stage1_ldflags+set}" = set; then :
9336 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9337 stage1_ldflags=
9338 else
9339 stage1_ldflags=$withval
9340 fi
9341 else
9342 stage1_ldflags=
9343 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9344 # if supported. But if the user explicitly specified the libraries to use,
9345 # trust that they are doing what they want.
9346 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9347 -a "$have_static_libs" = yes; then
9348 stage1_ldflags="-static-libstdc++ -static-libgcc"
9349 fi
9350 fi
9351
9352
9353
9354 # Libraries to use for stage2 and later builds.
9355
9356 # Check whether --with-boot-libs was given.
9357 if test "${with_boot_libs+set}" = set; then :
9358 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9359 poststage1_libs=
9360 else
9361 poststage1_libs=$withval
9362 fi
9363 else
9364 poststage1_libs=
9365 fi
9366
9367
9368
9369 # Linker flags to use for stage2 and later builds.
9370
9371 # Check whether --with-boot-ldflags was given.
9372 if test "${with_boot_ldflags+set}" = set; then :
9373 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9374 poststage1_ldflags=
9375 else
9376 poststage1_ldflags=$withval
9377 fi
9378 else
9379 poststage1_ldflags=
9380 # In stages 2 and 3, default to linking libstdc++ and libgcc
9381 # statically. But if the user explicitly specified the libraries to
9382 # use, trust that they are doing what they want.
9383 if test "$poststage1_libs" = ""; then
9384 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9385 fi
9386 fi
9387
9388 case $target in
9389 *-darwin2* | *-darwin1[56789]*)
9390 # For these versions, we default to using embedded rpaths.
9391 if test "x$enable_darwin_at_rpath" != "xno"; then
9392 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9393 fi
9394 ;;
9395 *-darwin*)
9396 # For these versions, we only use embedded rpaths on demand.
9397 if test "x$enable_darwin_at_rpath" = "xyes"; then
9398 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9399 fi
9400 ;;
9401 esac
9402
9403
9404 # GCC GRAPHITE dependency isl.
9405 # Basic setup is inlined here, actual checks are in config/isl.m4
9406
9407
9408 # Check whether --with-isl was given.
9409 if test "${with_isl+set}" = set; then :
9410 withval=$with_isl;
9411 fi
9412
9413
9414 # Treat --without-isl as a request to disable
9415 # GRAPHITE support and skip all following checks.
9416 if test "x$with_isl" != "xno"; then
9417 # Check for isl
9418
9419
9420 # Check whether --with-isl-include was given.
9421 if test "${with_isl_include+set}" = set; then :
9422 withval=$with_isl_include;
9423 fi
9424
9425
9426 # Check whether --with-isl-lib was given.
9427 if test "${with_isl_lib+set}" = set; then :
9428 withval=$with_isl_lib;
9429 fi
9430
9431
9432 # Check whether --enable-isl-version-check was given.
9433 if test "${enable_isl_version_check+set}" = set; then :
9434 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9435 else
9436 ENABLE_ISL_CHECK=yes
9437 fi
9438
9439
9440 # Initialize isllibs and islinc.
9441 case $with_isl in
9442 no)
9443 isllibs=
9444 islinc=
9445 ;;
9446 "" | yes)
9447 ;;
9448 *)
9449 isllibs="-L$with_isl/lib"
9450 islinc="-I$with_isl/include"
9451 ;;
9452 esac
9453 if test "x${with_isl_include}" != x ; then
9454 islinc="-I$with_isl_include"
9455 fi
9456 if test "x${with_isl_lib}" != x; then
9457 isllibs="-L$with_isl_lib"
9458 fi
9459 if test "x${islinc}" = x && test "x${isllibs}" = x \
9460 && test -d ${srcdir}/isl; then
9461 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9462 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9463 ENABLE_ISL_CHECK=no
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9465 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9466 fi
9467
9468 isllibs="${isllibs} -lisl"
9469
9470
9471
9472 if test "${ENABLE_ISL_CHECK}" = yes ; then
9473 _isl_saved_CFLAGS=$CFLAGS
9474 _isl_saved_LDFLAGS=$LDFLAGS
9475 _isl_saved_LIBS=$LIBS
9476
9477 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9478 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9479 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9480
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9482 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 #include <isl/schedule.h>
9486 int
9487 main ()
9488 {
9489 isl_options_set_schedule_serialize_sccs (NULL, 0);
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495 gcc_cv_isl=yes
9496 else
9497 gcc_cv_isl=no
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9502 $as_echo "$gcc_cv_isl" >&6; }
9503
9504 if test "${gcc_cv_isl}" = no ; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9506 $as_echo "required isl version is 0.15 or later" >&6; }
9507 fi
9508
9509 CFLAGS=$_isl_saved_CFLAGS
9510 LDFLAGS=$_isl_saved_LDFLAGS
9511 LIBS=$_isl_saved_LIBS
9512 fi
9513
9514
9515
9516
9517
9518
9519 if test "x${with_isl}" = xno; then
9520 graphite_requested=no
9521 elif test "x${with_isl}" != x \
9522 || test "x${with_isl_include}" != x \
9523 || test "x${with_isl_lib}" != x ; then
9524 graphite_requested=yes
9525 else
9526 graphite_requested=no
9527 fi
9528
9529
9530
9531 if test "${gcc_cv_isl}" = no ; then
9532 isllibs=
9533 islinc=
9534 fi
9535
9536 if test "${graphite_requested}" = yes \
9537 && test "x${isllibs}" = x \
9538 && test "x${islinc}" = x ; then
9539
9540 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9541 fi
9542
9543
9544 fi
9545
9546 # If the isl check failed, disable builds of in-tree variant of isl
9547 if test "x$with_isl" = xno ||
9548 test "x$gcc_cv_isl" = xno; then
9549 noconfigdirs="$noconfigdirs isl"
9550 islinc=
9551 fi
9552
9553
9554
9555
9556 # Check for LTO support.
9557 # Check whether --enable-lto was given.
9558 if test "${enable_lto+set}" = set; then :
9559 enableval=$enable_lto; enable_lto=$enableval
9560 else
9561 enable_lto=yes; default_enable_lto=yes
9562 fi
9563
9564
9565
9566
9567
9568 target_elf=no
9569 case $target in
9570 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9571 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9572 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9573 nvptx-*-none)
9574 target_elf=no
9575 ;;
9576 *)
9577 target_elf=yes
9578 ;;
9579 esac
9580
9581 if test $target_elf = yes; then :
9582 # ELF platforms build the lto-plugin always.
9583 build_lto_plugin=yes
9584
9585 else
9586 if test x"$default_enable_lto" = x"yes" ; then
9587 case $target in
9588 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9589 # On other non-ELF platforms, LTO has yet to be validated.
9590 *) enable_lto=no ;;
9591 esac
9592 else
9593 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9594 # It would also be nice to check the binutils support, but we don't
9595 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9596 # warn during gcc/ subconfigure; unless you're bootstrapping with
9597 # -flto it won't be needed until after installation anyway.
9598 case $target in
9599 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9600 *) if test x"$enable_lto" = x"yes"; then
9601 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9602 fi
9603 ;;
9604 esac
9605 fi
9606 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9607 # Build it unless LTO was explicitly disabled.
9608 case $target in
9609 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9610 *) ;;
9611 esac
9612
9613 fi
9614
9615
9616 # Check whether --enable-linker-plugin-configure-flags was given.
9617 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9618 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9619 else
9620 extra_linker_plugin_configure_flags=
9621 fi
9622
9623
9624 # Check whether --enable-linker-plugin-flags was given.
9625 if test "${enable_linker_plugin_flags+set}" = set; then :
9626 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9627 else
9628 extra_linker_plugin_flags=
9629 fi
9630
9631
9632
9633 # Handle --enable-host-pie
9634 # If host PIE executables are the default (or must be forced on) for some host,
9635 # we must pass that configuration to the gcc directory.
9636 gcc_host_pie=
9637 # Check whether --enable-host-pie was given.
9638 if test "${enable_host_pie+set}" = set; then :
9639 enableval=$enable_host_pie; host_pie=$enableval
9640 case $host in
9641 *-*-darwin2*)
9642 if test x$host_pie != xyes ; then
9643 # for Darwin20+ this is required.
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9645 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9646 host_pie=yes
9647 gcc_host_pie=--enable-host-pie
9648 fi ;;
9649 *) ;;
9650 esac
9651 else
9652 case $host in
9653 *-*-darwin2*)
9654 # Default to PIE (mandatory for aarch64).
9655 host_pie=yes
9656 gcc_host_pie=--enable-host-pie
9657 ;;
9658 *) host_pie=no ;;
9659 esac
9660 fi
9661
9662
9663
9664
9665
9666 # Enable --enable-host-shared.
9667 # Checked early to determine whether jit is an 'all' language
9668 # Check whether --enable-host-shared was given.
9669 if test "${enable_host_shared+set}" = set; then :
9670 enableval=$enable_host_shared; host_shared=$enableval
9671 case $host in
9672 x86_64-*-darwin* | aarch64-*-darwin*)
9673 if test x$host_shared != xyes ; then
9674 # PIC is the default, and actually cannot be switched off.
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9676 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9677 host_shared=yes
9678 fi ;;
9679 *-*-darwin*)
9680 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9682 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9683 host_shared=yes
9684 fi ;;
9685 *) ;;
9686 esac
9687 else
9688 case $host in
9689 # 64B x86_64 and Aarch64 Darwin default to PIC.
9690 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9691 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9692 *-*-darwin*) host_shared=$host_pie ;;
9693 *) host_shared=no;;
9694 esac
9695 fi
9696
9697
9698
9699
9700 if test x$host_shared = xyes; then
9701 case $host in
9702 *-*-darwin*)
9703 # Since host shared is the default for 64b Darwin, and also enabled for
9704 # host_pie, ensure that we present the PIE flag when host_pie is active.
9705 if test x$host_pie = xyes; then
9706 PICFLAG=-fPIE
9707 fi
9708 ;;
9709 *)
9710 PICFLAG=-fPIC
9711 ;;
9712 esac
9713 elif test x$host_pie = xyes; then
9714 PICFLAG=-fPIE
9715 else
9716 PICFLAG=
9717 fi
9718
9719
9720
9721
9722 # Check for libgdiagnostics support.
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9724 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9725 # Check whether --enable-libgdiagnostics was given.
9726 if test "${enable_libgdiagnostics+set}" = set; then :
9727 enableval=$enable_libgdiagnostics; enable_libgdiagnostics=$enableval
9728 else
9729 enable_libgdiagnostics=no
9730 fi
9731
9732
9733 if test x$enable_libgdiagnostics = xyes; then
9734 # Disable libgdiagnostics if -enable-host-shared not specified
9735 # but not if building for Mingw. All code in Windows
9736 # is position independent code (PIC).
9737 case $target in
9738 *mingw*) ;;
9739 *)
9740 if test x$host_shared != xyes; then
9741 as_fn_error $? "
9742 Enabling libgdiagnostics requires --enable-host-shared.
9743
9744 --enable-host-shared typically slows the rest of the compiler down by
9745 a few %, so you must explicitly enable it.
9746
9747 If you want to build both libgdiagnostics and the regular compiler, it is often
9748 best to do this via two separate configure/builds, in separate
9749 directories, to avoid imposing the performance cost of
9750 --enable-host-shared on the regular compiler." "$LINENO" 5
9751 fi
9752 ;;
9753 esac
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9756 $as_echo "$enable_libgdiagnostics" >&6; }
9757
9758
9759
9760 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9761 # default, so we check for them here
9762 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9763 # build of the Rust frontend in case a dep is missing.
9764 missing_rust_dynlibs=none
9765
9766 save_LIBS="$LIBS"
9767 LIBS=
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9769 $as_echo_n "checking for library containing dlopen... " >&6; }
9770 if ${ac_cv_search_dlopen+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 ac_func_search_save_LIBS=$LIBS
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9780 #ifdef __cplusplus
9781 extern "C"
9782 #endif
9783 char dlopen ();
9784 int
9785 main ()
9786 {
9787 return dlopen ();
9788 ;
9789 return 0;
9790 }
9791 _ACEOF
9792 for ac_lib in '' dl; do
9793 if test -z "$ac_lib"; then
9794 ac_res="none required"
9795 else
9796 ac_res=-l$ac_lib
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 fi
9799 if ac_fn_c_try_link "$LINENO"; then :
9800 ac_cv_search_dlopen=$ac_res
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext
9804 if ${ac_cv_search_dlopen+:} false; then :
9805 break
9806 fi
9807 done
9808 if ${ac_cv_search_dlopen+:} false; then :
9809
9810 else
9811 ac_cv_search_dlopen=no
9812 fi
9813 rm conftest.$ac_ext
9814 LIBS=$ac_func_search_save_LIBS
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9817 $as_echo "$ac_cv_search_dlopen" >&6; }
9818 ac_res=$ac_cv_search_dlopen
9819 if test "$ac_res" != no; then :
9820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9821
9822 fi
9823
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9825 $as_echo_n "checking for library containing pthread_create... " >&6; }
9826 if ${ac_cv_search_pthread_create+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 ac_func_search_save_LIBS=$LIBS
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836 #ifdef __cplusplus
9837 extern "C"
9838 #endif
9839 char pthread_create ();
9840 int
9841 main ()
9842 {
9843 return pthread_create ();
9844 ;
9845 return 0;
9846 }
9847 _ACEOF
9848 for ac_lib in '' pthread; do
9849 if test -z "$ac_lib"; then
9850 ac_res="none required"
9851 else
9852 ac_res=-l$ac_lib
9853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9854 fi
9855 if ac_fn_c_try_link "$LINENO"; then :
9856 ac_cv_search_pthread_create=$ac_res
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext
9860 if ${ac_cv_search_pthread_create+:} false; then :
9861 break
9862 fi
9863 done
9864 if ${ac_cv_search_pthread_create+:} false; then :
9865
9866 else
9867 ac_cv_search_pthread_create=no
9868 fi
9869 rm conftest.$ac_ext
9870 LIBS=$ac_func_search_save_LIBS
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9873 $as_echo "$ac_cv_search_pthread_create" >&6; }
9874 ac_res=$ac_cv_search_pthread_create
9875 if test "$ac_res" != no; then :
9876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9877
9878 fi
9879
9880 CRAB1_LIBS="$LIBS"
9881 LIBS="$save_LIBS"
9882
9883 if test "$ac_cv_search_dlopen" = no; then
9884 missing_rust_dynlibs="libdl"
9885 fi
9886
9887 if test "$ac_cv_search_pthread_create" = no; then
9888 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9889 fi
9890
9891 CRAB1_LIBS="$CRAB1_LIBS"
9892
9893
9894 # If we are building PIC/PIE host executables, and we are building dependent
9895 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9896 # code.
9897 host_libs_picflag=
9898 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9899 host_libs_picflag='--with-pic'
9900 fi
9901
9902
9903 # By default, C and C++ are the only stage 1 languages.
9904 stage1_languages=,c,
9905
9906 # Target libraries that we bootstrap.
9907 bootstrap_target_libs=,target-libgcc,
9908
9909 # Figure out what language subdirectories are present.
9910 # Look if the user specified --enable-languages="..."; if not, use
9911 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9912 # go away some day.
9913 # NB: embedded tabs in this IF block -- do not untabify
9914 if test -d ${srcdir}/gcc; then
9915 if test x"${enable_languages+set}" != xset; then
9916 if test x"${LANGUAGES+set}" = xset; then
9917 enable_languages="${LANGUAGES}"
9918 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9919 else
9920 enable_languages=default
9921 fi
9922 else
9923 if test x"${enable_languages}" = x ||
9924 test x"${enable_languages}" = xyes;
9925 then
9926 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9927 exit 1
9928 fi
9929 fi
9930 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9931
9932 # 'f95' is the old name for the 'fortran' language. We issue a warning
9933 # and make the substitution.
9934 case ,${enable_languages}, in
9935 *,f95,*)
9936 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9937 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9938 ;;
9939 esac
9940
9941 # If bootstrapping, C++ must be enabled.
9942 case ",$enable_languages,:$enable_bootstrap" in
9943 *,c++,*:*) ;;
9944 *:yes)
9945 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9946 enable_languages="${enable_languages},c++"
9947 else
9948 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9949 fi
9950 ;;
9951 esac
9952
9953 # First scan to see if an enabled language requires some other language.
9954 # We assume that a given config-lang.in will list all the language
9955 # front ends it requires, even if some are required indirectly.
9956 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9957 case ${lang_frag} in
9958 ..) ;;
9959 # The odd quoting in the next line works around
9960 # an apparent bug in bash 1.12 on linux.
9961 ${srcdir}/gcc/[*]/config-lang.in) ;;
9962 *)
9963 # From the config-lang.in, get $language, $lang_requires, and
9964 # $lang_requires_boot_languages.
9965 language=
9966 lang_requires=
9967 lang_requires_boot_languages=
9968 # set srcdir during sourcing lang_frag to the gcc dir.
9969 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9970 # pollutes this shell
9971 saved_srcdir=${srcdir}
9972 srcdir=${srcdir}/gcc . ${lang_frag}
9973 srcdir=${saved_srcdir}
9974 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9975 case ,${enable_languages}, in
9976 *,$other,*) ;;
9977 *,default,*) ;;
9978 *,all,*) ;;
9979 *,$language,*)
9980 echo " \`$other' language required by \`$language'; enabling" 1>&2
9981 enable_languages="${enable_languages},${other}"
9982 ;;
9983 esac
9984 done
9985 for other in ${lang_requires_boot_languages} ; do
9986 if test "$other" != "c"; then
9987 case ,${enable_stage1_languages}, in
9988 *,$other,*) ;;
9989 *,default,*) ;;
9990 *,all,*) ;;
9991 *)
9992 case ,${enable_languages}, in
9993 *,$language,*)
9994 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9995 enable_stage1_languages="$enable_stage1_languages,${other}"
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001 done
10002 ;;
10003 esac
10004 done
10005
10006 new_enable_languages=,c,
10007
10008 # If LTO is enabled, add the LTO front end.
10009 if test "$enable_lto" = "yes" ; then
10010 case ,${enable_languages}, in
10011 *,lto,*) ;;
10012 *) enable_languages="${enable_languages},lto" ;;
10013 esac
10014 if test "${build_lto_plugin}" = "yes" ; then
10015 configdirs="$configdirs lto-plugin"
10016 fi
10017 fi
10018
10019 # If we're building an offloading compiler, add the LTO front end.
10020 if test x"$enable_as_accelerator_for" != x ; then
10021 case ,${enable_languages}, in
10022 *,lto,*) ;;
10023 *) enable_languages="${enable_languages},lto" ;;
10024 esac
10025 fi
10026
10027 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
10028 potential_languages=,c,
10029
10030 enabled_target_libs=
10031 disabled_target_libs=
10032
10033 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
10034 case ${lang_frag} in
10035 ..) ;;
10036 # The odd quoting in the next line works around
10037 # an apparent bug in bash 1.12 on linux.
10038 ${srcdir}/gcc/[*]/config-lang.in) ;;
10039 *)
10040 # From the config-lang.in, get $language, $target_libs,
10041 # $lang_dirs, $boot_language, and $build_by_default
10042 language=
10043 target_libs=
10044 lang_dirs=
10045 subdir_requires=
10046 boot_language=no
10047 build_by_default=yes
10048 # set srcdir during sourcing. See above about save & restore
10049 saved_srcdir=${srcdir}
10050 srcdir=${srcdir}/gcc . ${lang_frag}
10051 srcdir=${saved_srcdir}
10052 if test x${language} = x; then
10053 echo "${lang_frag} doesn't set \$language." 1>&2
10054 exit 1
10055 fi
10056
10057 if test "$language" = "c++"; then
10058 boot_language=yes
10059 fi
10060
10061 add_this_lang=no
10062 # C is always enabled, so no need to add it again
10063 if test "$language" != "c"; then
10064 case ,${enable_languages}, in
10065 *,${language},*)
10066 # Language was explicitly selected; include it
10067 add_this_lang=yes
10068 ;;
10069 *,all,*)
10070 # All languages are enabled
10071 add_this_lang=all
10072 ;;
10073 *,default,*)
10074 # 'default' was selected, select it if it is a default language
10075 add_this_lang=${build_by_default}
10076 ;;
10077 esac
10078 fi
10079
10080 # Disable languages that need other directories if these aren't available.
10081 for i in $subdir_requires; do
10082 test -f "$srcdir/gcc/$i/config-lang.in" && continue
10083 case ${add_this_lang} in
10084 yes)
10085 # Specifically requested language; tell them.
10086 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
10087 ;;
10088 all)
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
10090 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
10091 add_this_lang=unsupported
10092 ;;
10093 *)
10094 # Silently disable.
10095 add_this_lang=unsupported
10096 ;;
10097 esac
10098 done
10099
10100 # Disable Ada if no preexisting GNAT is available.
10101 case ${add_this_lang}:${language}:${have_gnat} in
10102 yes:ada:no)
10103 # Specifically requested language; tell them.
10104 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10105 ;;
10106 all:ada:no)
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10108 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10109 add_this_lang=unsupported
10110 ;;
10111 *:ada:no)
10112 # Silently disable.
10113 add_this_lang=unsupported
10114 ;;
10115 esac
10116
10117 # Disable D if no preexisting GDC is available.
10118 case ${add_this_lang}:${language}:${have_gdc} in
10119 yes:d:no)
10120 # Specifically requested language; tell them.
10121 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10122 ;;
10123 all:d:no)
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10125 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10126 add_this_lang=unsupported
10127 ;;
10128 *:d:no)
10129 # Silently disable.
10130 add_this_lang=unsupported
10131 ;;
10132 esac
10133
10134 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10135 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10136 *:rust:none)
10137 # Nothing to do - we're not missing any C libraries
10138 ;;
10139 yes:rust:*)
10140 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10141 add_this_lang=unsupported
10142 ;;
10143 all:rust:*)
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10145 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10146 add_this_lang=unsupported
10147 ;;
10148 *:rust:*)
10149 # Silently disable.
10150 add_this_lang=unsupported
10151 ;;
10152 esac
10153
10154 # Disable jit if -enable-host-shared not specified
10155 # but not if building for Mingw. All code in Windows
10156 # is position independent code (PIC).
10157 case $target in
10158 *mingw*) ;;
10159 *)
10160 case ${add_this_lang}:${language}:${host_shared} in
10161 yes:jit:no)
10162 # PR jit/64780: explicitly specify --enable-host-shared
10163 as_fn_error $? "
10164 Enabling language \"jit\" requires --enable-host-shared.
10165
10166 --enable-host-shared typically slows the rest of the compiler down by
10167 a few %, so you must explicitly enable it.
10168
10169 If you want to build both the jit and the regular compiler, it is often
10170 best to do this via two separate configure/builds, in separate
10171 directories, to avoid imposing the performance cost of
10172 --enable-host-shared on the regular compiler." "$LINENO" 5
10173 ;;
10174 all:jit:no)
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10176 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10177 add_this_lang=unsupported
10178 ;;
10179 *:jit:no)
10180 # Silently disable.
10181 add_this_lang=unsupported
10182 ;;
10183 esac
10184 ;;
10185 esac
10186
10187 # Pre-conditions to consider whether cargo being supported.
10188 if test x"$have_cargo" = xyes \
10189 && test x"$build" != x"$host"; then
10190 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10191 # "'cargo' should build for the host system" is resolved:
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10193 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10194 have_cargo=no
10195 else
10196 # Assume that cargo-produced object files are compatible with what
10197 # we're going to build here.
10198 :
10199 fi
10200 # Disable Rust if cargo is unavailable.
10201 case ${add_this_lang}:${language}:${have_cargo} in
10202 yes:rust:no)
10203 # Specifically requested language; tell them.
10204 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10205 ;;
10206 all:rust:no)
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10208 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10209 add_this_lang=unsupported
10210 ;;
10211 *:rust:no)
10212 # Silently disable.
10213 add_this_lang=unsupported
10214 ;;
10215 esac
10216
10217
10218 # Disable a language that is unsupported by the target.
10219 case "${add_this_lang}: $unsupported_languages " in
10220 no:*) ;;
10221 unsupported:*) ;;
10222 *:*" $language "*)
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10224 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10225 add_this_lang=unsupported
10226 ;;
10227 esac
10228
10229 case $add_this_lang in
10230 unsupported)
10231 # Remove language-dependent dirs.
10232 disabled_target_libs="$disabled_target_libs $target_libs"
10233 noconfigdirs="$noconfigdirs $lang_dirs"
10234 ;;
10235 no)
10236 # Remove language-dependent dirs; still show language as supported.
10237 disabled_target_libs="$disabled_target_libs $target_libs"
10238 noconfigdirs="$noconfigdirs $lang_dirs"
10239 potential_languages="${potential_languages}${language},"
10240 ;;
10241 all|yes)
10242 new_enable_languages="${new_enable_languages}${language},"
10243 potential_languages="${potential_languages}${language},"
10244 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10245 enabled_target_libs="$enabled_target_libs $target_libs"
10246 case "${boot_language}:,$enable_stage1_languages," in
10247 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10248 # Add to (comma-separated) list of stage 1 languages.
10249 case ",$stage1_languages," in
10250 *,$language,* | ,yes, | ,all,) ;;
10251 *) stage1_languages="${stage1_languages}${language}," ;;
10252 esac
10253 # We need to bootstrap any supporting libraries.
10254 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10255 ;;
10256 esac
10257 ;;
10258 esac
10259 ;;
10260 esac
10261 done
10262
10263 # Add target libraries which are only needed for disabled languages
10264 # to noconfigdirs.
10265 if test -n "$disabled_target_libs"; then
10266 for dir in $disabled_target_libs; do
10267 case " $enabled_target_libs " in
10268 *" ${dir} "*) ;;
10269 *) noconfigdirs="$noconfigdirs $dir" ;;
10270 esac
10271 done
10272 fi
10273
10274 # Check whether --enable-stage1-languages was given.
10275 if test "${enable_stage1_languages+set}" = set; then :
10276 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10277 ,no,|,,)
10278 # Set it to something that will have no effect in the loop below
10279 enable_stage1_languages=c ;;
10280 ,yes,)
10281 enable_stage1_languages=`echo $new_enable_languages | \
10282 sed -e "s/^,//" -e "s/,$//" ` ;;
10283 *,all,*)
10284 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10285 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10286 esac
10287
10288 # Add "good" languages from enable_stage1_languages to stage1_languages,
10289 # while "bad" languages go in missing_languages. Leave no duplicates.
10290 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10291 case $potential_languages in
10292 *,$i,*)
10293 case $stage1_languages in
10294 *,$i,*) ;;
10295 *) stage1_languages="$stage1_languages$i," ;;
10296 esac ;;
10297 *)
10298 case $missing_languages in
10299 *,$i,*) ;;
10300 *) missing_languages="$missing_languages$i," ;;
10301 esac ;;
10302 esac
10303 done
10304 fi
10305
10306
10307 # Remove leading/trailing commas that were added for simplicity
10308 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10309 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10310 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10311 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10312
10313 if test "x$missing_languages" != x; then
10314 as_fn_error $? "
10315 The following requested languages could not be built: ${missing_languages}
10316 Supported languages are: ${potential_languages}" "$LINENO" 5
10317 fi
10318 if test "x$new_enable_languages" != "x$enable_languages"; then
10319 echo The following languages will be built: ${new_enable_languages}
10320 enable_languages="$new_enable_languages"
10321 fi
10322
10323
10324 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10325 fi
10326
10327 # Handle --disable-<component> generically.
10328 for dir in $configdirs $build_configdirs $target_configdirs ; do
10329 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10330 varname=`echo $dirname | sed -e s/+/_/g`
10331 if eval test x\${enable_${varname}} "=" xno ; then
10332 noconfigdirs="$noconfigdirs $dir"
10333 fi
10334 done
10335
10336 # Check for Boehm's garbage collector
10337 # Check whether --enable-objc-gc was given.
10338 if test "${enable_objc_gc+set}" = set; then :
10339 enableval=$enable_objc_gc;
10340 fi
10341
10342
10343 # Check whether --with-target-bdw-gc was given.
10344 if test "${with_target_bdw_gc+set}" = set; then :
10345 withval=$with_target_bdw_gc;
10346 fi
10347
10348
10349 # Check whether --with-target-bdw-gc-include was given.
10350 if test "${with_target_bdw_gc_include+set}" = set; then :
10351 withval=$with_target_bdw_gc_include;
10352 fi
10353
10354
10355 # Check whether --with-target-bdw-gc-lib was given.
10356 if test "${with_target_bdw_gc_lib+set}" = set; then :
10357 withval=$with_target_bdw_gc_lib;
10358 fi
10359
10360
10361 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10363 $as_echo_n "checking for bdw garbage collector... " >&6; }
10364 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10366 $as_echo "using bdw-gc in default locations" >&6; }
10367 else
10368 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10369 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10370 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10371 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10372 else
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10374 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10375 fi
10376 fi
10377 esac
10378
10379 # Disable libitm, libsanitizer, libvtv if we're not building C++
10380 case ,${enable_languages}, in
10381 *,c++,*)
10382 # Disable libitm, libsanitizer if we're not building libstdc++
10383 case "${noconfigdirs}" in
10384 *target-libstdc++-v3*)
10385 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10386 ;;
10387 *) ;;
10388 esac
10389 ;;
10390 *)
10391 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10392 ;;
10393 esac
10394
10395 case ,${enable_languages}, in
10396 *,rust,*)
10397 case " ${noconfigdirs} " in
10398 *\ target-libstdc++-v3\ *)
10399 # Disable target libgrust if we're not building target libstdc++.
10400 noconfigdirs="$noconfigdirs target-libgrust"
10401 ;;
10402 *)
10403 case "${target}" in
10404 amdgcn*-*-* \
10405 | nvptx*-*-* )
10406 # Build fails in 'libgrust/libproc_macro_internal/':
10407 # sorry, unimplemented: exception handling not supported
10408 noconfigdirs="$noconfigdirs target-libgrust"
10409 ;;
10410 esac
10411 ;;
10412 esac
10413 ;;
10414 esac
10415
10416 # If gcc/ is not in the source tree then we'll not be building a
10417 # target compiler, assume in that case we don't want to build any
10418 # target libraries or tools.
10419 #
10420 # This was added primarily for the benefit for binutils-gdb who reuse
10421 # this configure script, but don't always have target tools available.
10422 if test ! -d ${srcdir}/gcc; then
10423 skipdirs="${skipdirs} ${target_configdirs}"
10424 fi
10425
10426 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10427 # $build_configdirs and $target_configdirs.
10428 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10429
10430 notsupp=""
10431 for dir in . $skipdirs $noconfigdirs ; do
10432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10433 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10434 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10435 if test -r $srcdir/$dirname/configure ; then
10436 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10437 true
10438 else
10439 notsupp="$notsupp $dir"
10440 fi
10441 fi
10442 fi
10443 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10444 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10445 if test -r $srcdir/$dirname/configure ; then
10446 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10447 true
10448 else
10449 notsupp="$notsupp $dir"
10450 fi
10451 fi
10452 fi
10453 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10454 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10455 if test -r $srcdir/$dirname/configure ; then
10456 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10457 true
10458 else
10459 notsupp="$notsupp $dir"
10460 fi
10461 fi
10462 fi
10463 done
10464
10465 # Quietly strip out all directories which aren't configurable in this tree.
10466 # This relies on all configurable subdirectories being autoconfiscated, which
10467 # is now the case.
10468 build_configdirs_all="$build_configdirs"
10469 build_configdirs=
10470 for i in ${build_configdirs_all} ; do
10471 j=`echo $i | sed -e s/build-//g`
10472 if test -f ${srcdir}/$j/configure ; then
10473 build_configdirs="${build_configdirs} $i"
10474 fi
10475 done
10476
10477 configdirs_all="$configdirs"
10478 configdirs=
10479 for i in ${configdirs_all} ; do
10480 if test -f ${srcdir}/$i/configure ; then
10481 configdirs="${configdirs} $i"
10482 fi
10483 done
10484
10485 target_configdirs_all="$target_configdirs"
10486 target_configdirs=
10487 for i in ${target_configdirs_all} ; do
10488 j=`echo $i | sed -e s/target-//g`
10489 if test -f ${srcdir}/$j/configure ; then
10490 target_configdirs="${target_configdirs} $i"
10491 fi
10492 done
10493
10494 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10495 # so we have to add it after the preceding checks.
10496 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10497 then
10498 case " $configdirs " in
10499 *" libiberty "*)
10500 # If we can build libiberty, we can also build libiberty-linker-plugin.
10501 configdirs="$configdirs libiberty-linker-plugin"
10502 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10503 --with-libiberty=../libiberty-linker-plugin";;
10504 *)
10505 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10506 esac
10507 fi
10508
10509 # Sometimes we have special requirements for the host libiberty.
10510 extra_host_libiberty_configure_flags=
10511 case " $configdirs " in
10512 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10513 # When these are to be built as shared libraries, the same applies to
10514 # libiberty.
10515 extra_host_libiberty_configure_flags=--enable-shared
10516 ;;
10517 esac
10518
10519
10520 # Sometimes we have special requirements for the host zlib.
10521 extra_host_zlib_configure_flags=
10522 case " $configdirs " in
10523 *" bfd "*)
10524 # When bfd is to be built as a shared library, the same applies to
10525 # zlib.
10526 if test "$enable_shared" = "yes"; then
10527 extra_host_zlib_configure_flags=--enable-host-shared
10528 fi
10529 ;;
10530 esac
10531
10532
10533 # Produce a warning message for the subdirs we can't configure.
10534 # This isn't especially interesting in the Cygnus tree, but in the individual
10535 # FSF releases, it's important to let people know when their machine isn't
10536 # supported by the one or two programs in a package.
10537
10538 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10539 # If $appdirs is non-empty, at least one of those directories must still
10540 # be configured, or we error out. (E.g., if the gas release supports a
10541 # specified target in some subdirs but not the gas subdir, we shouldn't
10542 # pretend that all is well.)
10543 if test -n "$appdirs" ; then
10544 for dir in $appdirs ; do
10545 if test -r $dir/Makefile.in ; then
10546 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10547 appdirs=""
10548 break
10549 fi
10550 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10551 appdirs=""
10552 break
10553 fi
10554 fi
10555 done
10556 if test -n "$appdirs" ; then
10557 echo "*** This configuration is not supported by this package." 1>&2
10558 exit 1
10559 fi
10560 fi
10561 # Okay, some application will build, or we don't care to check. Still
10562 # notify of subdirs not getting built.
10563 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10564 echo " ${notsupp}" 1>&2
10565 echo " (Any other directories should still work fine.)" 1>&2
10566 fi
10567
10568 case "$host" in
10569 *msdosdjgpp*)
10570 enable_gdbtk=no ;;
10571 esac
10572
10573 # To find our prefix, in gcc_cv_tool_prefix.
10574
10575 # The user is always right.
10576 if test "${PATH_SEPARATOR+set}" != set; then
10577 echo "#! /bin/sh" >conf$$.sh
10578 echo "exit 0" >>conf$$.sh
10579 chmod +x conf$$.sh
10580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10581 PATH_SEPARATOR=';'
10582 else
10583 PATH_SEPARATOR=:
10584 fi
10585 rm -f conf$$.sh
10586 fi
10587
10588
10589 get_gcc_base_ver="cat"
10590
10591 # Check whether --with-gcc-major-version-only was given.
10592 if test "${with_gcc_major_version_only+set}" = set; then :
10593 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10594 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10595 fi
10596
10597 fi
10598
10599
10600
10601
10602
10603
10604 if test "x$exec_prefix" = xNONE; then
10605 if test "x$prefix" = xNONE; then
10606 gcc_cv_tool_prefix=$ac_default_prefix
10607 else
10608 gcc_cv_tool_prefix=$prefix
10609 fi
10610 else
10611 gcc_cv_tool_prefix=$exec_prefix
10612 fi
10613
10614 # If there is no compiler in the tree, use the PATH only. In any
10615 # case, if there is no compiler in the tree nobody should use
10616 # AS_FOR_TARGET and LD_FOR_TARGET.
10617 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10618 if test x$with_gcc_major_version_only = xyes ; then
10619 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10620 else
10621 gcc_version=`cat $srcdir/gcc/BASE-VER`
10622 fi
10623 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10627 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10628 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10629 else
10630 gcc_cv_tool_dirs=
10631 fi
10632
10633 if test x$build = x$target && test -n "$md_exec_prefix"; then
10634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10635 fi
10636
10637
10638
10639 copy_dirs=
10640
10641
10642 # Check whether --with-build-sysroot was given.
10643 if test "${with_build_sysroot+set}" = set; then :
10644 withval=$with_build_sysroot; if test x"$withval" != x ; then
10645 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10646 fi
10647 else
10648 SYSROOT_CFLAGS_FOR_TARGET=
10649 fi
10650
10651
10652
10653
10654 # Check whether --with-debug-prefix-map was given.
10655 if test "${with_debug_prefix_map+set}" = set; then :
10656 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10657 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10658 for debug_map in $withval; do
10659 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10660 done
10661 fi
10662 else
10663 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10664 fi
10665
10666
10667
10668 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10669 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10670 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10671 # We want to ensure that TARGET libraries (which we know are built with
10672 # gcc) are built with "-O2 -g", so include those options when setting
10673 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10674 if test "x$CFLAGS_FOR_TARGET" = x; then
10675 if test "x${is_cross_compiler}" = xyes; then
10676 CFLAGS_FOR_TARGET="-g -O2"
10677 else
10678 CFLAGS_FOR_TARGET=$CFLAGS
10679 case " $CFLAGS " in
10680 *" -O2 "*) ;;
10681 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10682 esac
10683 case " $CFLAGS " in
10684 *" -g "* | *" -g3 "*) ;;
10685 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10686 esac
10687 fi
10688 fi
10689
10690
10691 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10692 if test "x${is_cross_compiler}" = xyes; then
10693 CXXFLAGS_FOR_TARGET="-g -O2"
10694 else
10695 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10696 case " $CXXFLAGS " in
10697 *" -O2 "*) ;;
10698 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10699 esac
10700 case " $CXXFLAGS " in
10701 *" -g "* | *" -g3 "*) ;;
10702 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10703 esac
10704 fi
10705 fi
10706
10707
10708
10709
10710 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10711 # the named directory are copied to $(tooldir)/sys-include.
10712 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10713 if test x${is_cross_compiler} = xno ; then
10714 echo 1>&2 '***' --with-headers is only supported when cross compiling
10715 exit 1
10716 fi
10717 if test x"${with_headers}" != xyes ; then
10718 x=${gcc_cv_tool_prefix}
10719 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10720 fi
10721 fi
10722
10723 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10724 # the name directories are copied to $(tooldir)/lib. Multiple directories
10725 # are permitted.
10726 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10727 if test x${is_cross_compiler} = xno ; then
10728 echo 1>&2 '***' --with-libs is only supported when cross compiling
10729 exit 1
10730 fi
10731 if test x"${with_libs}" != xyes ; then
10732 # Copy the libraries in reverse order, so that files in the first named
10733 # library override files in subsequent libraries.
10734 x=${gcc_cv_tool_prefix}
10735 for l in ${with_libs}; do
10736 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10737 done
10738 fi
10739 fi
10740
10741 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10742 #
10743 # This is done by determining whether or not the appropriate directory
10744 # is available, and by checking whether or not specific configurations
10745 # have requested that this magic not happen.
10746 #
10747 # The command line options always override the explicit settings in
10748 # configure.ac, and the settings in configure.ac override this magic.
10749 #
10750 # If the default for a toolchain is to use GNU as and ld, and you don't
10751 # want to do that, then you should use the --without-gnu-as and
10752 # --without-gnu-ld options for the configure script. Similarly, if
10753 # the default is to use the included zlib and you don't want to do that,
10754 # you should use the --with-system-zlib option for the configure script.
10755
10756 if test x${use_gnu_as} = x &&
10757 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10758 with_gnu_as=yes
10759 extra_host_args="$extra_host_args --with-gnu-as"
10760 fi
10761
10762 if test x${use_gnu_ld} = x &&
10763 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10764 with_gnu_ld=yes
10765 extra_host_args="$extra_host_args --with-gnu-ld"
10766 fi
10767
10768 if test x${use_included_zlib} = x &&
10769 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10770 :
10771 else
10772 with_system_zlib=yes
10773 extra_host_args="$extra_host_args --with-system-zlib"
10774 fi
10775
10776 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10777 # can detect this case.
10778
10779 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10780 with_newlib=yes
10781 extra_host_args="$extra_host_args --with-newlib"
10782 fi
10783
10784 # Handle ${copy_dirs}
10785 set fnord ${copy_dirs}
10786 shift
10787 while test $# != 0 ; do
10788 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10789 :
10790 else
10791 echo Copying $1 to $2
10792
10793 # Use the install script to create the directory and all required
10794 # parent directories.
10795 if test -d $2 ; then
10796 :
10797 else
10798 echo >config.temp
10799 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10800 fi
10801
10802 # Copy the directory, assuming we have tar.
10803 # FIXME: Should we use B in the second tar? Not all systems support it.
10804 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10805
10806 # It is the responsibility of the user to correctly adjust all
10807 # symlinks. If somebody can figure out how to handle them correctly
10808 # here, feel free to add the code.
10809
10810 echo $1 > $2/COPIED
10811 fi
10812 shift; shift
10813 done
10814
10815 # Determine a target-dependent exec_prefix that the installed
10816 # gcc will search in. Keep this list sorted by triplet, with
10817 # the *-*-osname triplets last.
10818 md_exec_prefix=
10819 case "${target}" in
10820 i[34567]86-pc-msdosdjgpp*)
10821 md_exec_prefix=/dev/env/DJDIR/bin
10822 ;;
10823 *-*-hpux* | \
10824 *-*-nto-qnx* | \
10825 *-*-solaris2*)
10826 md_exec_prefix=/usr/ccs/bin
10827 ;;
10828 esac
10829
10830 extra_arflags_for_target=
10831 extra_nmflags_for_target=
10832 extra_ranlibflags_for_target=
10833 target_makefile_frag=/dev/null
10834 case "${target}" in
10835 spu-*-*)
10836 target_makefile_frag="config/mt-spu"
10837 ;;
10838 loongarch*-*linux* | loongarch*-*gnu*)
10839 target_makefile_frag="config/mt-loongarch-gnu"
10840 ;;
10841 loongarch*-*elf*)
10842 target_makefile_frag="config/mt-loongarch-elf"
10843 ;;
10844 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10845 target_makefile_frag="config/mt-sde"
10846 ;;
10847 mipsisa*-*-elfoabi*)
10848 target_makefile_frag="config/mt-mips-elfoabi"
10849 ;;
10850 mips*-*-*linux* | mips*-*-gnu*)
10851 target_makefile_frag="config/mt-mips-gnu"
10852 ;;
10853 *-*-linux-android*)
10854 target_makefile_frag="config/mt-android"
10855 ;;
10856 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10857 target_makefile_frag="config/mt-gnu"
10858 ;;
10859 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10860 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10861 # commands to handle both 32-bit and 64-bit objects. These flags are
10862 # harmless if we're using GNU nm or ar.
10863 extra_arflags_for_target=" -X32_64"
10864 extra_nmflags_for_target=" -B -X32_64"
10865 ;;
10866 esac
10867
10868 alphaieee_frag=/dev/null
10869 case $target in
10870 alpha*-*-*)
10871 # This just makes sure to use the -mieee option to build target libs.
10872 # This should probably be set individually by each library.
10873 alphaieee_frag="config/mt-alphaieee"
10874 ;;
10875 esac
10876
10877 # If --enable-target-optspace always use -Os instead of -O2 to build
10878 # the target libraries, similarly if it is not specified, use -Os
10879 # on selected platforms.
10880 ospace_frag=/dev/null
10881 case "${enable_target_optspace}:${target}" in
10882 yes:*)
10883 ospace_frag="config/mt-ospace"
10884 ;;
10885 :d30v-*)
10886 ospace_frag="config/mt-d30v"
10887 ;;
10888 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10889 ospace_frag="config/mt-ospace"
10890 ;;
10891 no:* | :*)
10892 ;;
10893 *)
10894 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10895 ;;
10896 esac
10897
10898 # Some systems (e.g., one of the i386-aix systems the gas testers are
10899 # using) don't handle "\$" correctly, so don't use it here.
10900 tooldir='${exec_prefix}'/${target_noncanonical}
10901 build_tooldir=${tooldir}
10902
10903 # Create a .gdbinit file which runs the one in srcdir
10904 # and tells GDB to look there for source files.
10905
10906 if test -r ${srcdir}/.gdbinit ; then
10907 case ${srcdir} in
10908 .) ;;
10909 *) cat > ./.gdbinit <<EOF
10910 # ${NO_EDIT}
10911 dir ${srcdir}
10912 dir .
10913 source ${srcdir}/.gdbinit
10914 EOF
10915 ;;
10916 esac
10917 fi
10918
10919 # Make sure that the compiler is able to generate an executable. If it
10920 # can't, we are probably in trouble. We don't care whether we can run the
10921 # executable--we might be using a cross compiler--we only care whether it
10922 # can be created. At this point the main configure script has set CC.
10923 we_are_ok=no
10924 echo "int main () { return 0; }" > conftest.c
10925 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10926 if test $? = 0 ; then
10927 if test -s conftest || test -s conftest.exe ; then
10928 we_are_ok=yes
10929 fi
10930 fi
10931 case $we_are_ok in
10932 no)
10933 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10934 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10935 rm -f conftest*
10936 exit 1
10937 ;;
10938 esac
10939 rm -f conftest*
10940
10941 # Decide which environment variable is used to find dynamic libraries.
10942 case "${host}" in
10943 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10944 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10945 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10946 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10947 esac
10948
10949 # On systems where the dynamic library environment variable is PATH,
10950 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10951 # built executables to PATH.
10952 if test "$RPATH_ENVVAR" = PATH; then
10953 GCC_SHLIB_SUBDIR=/shlib
10954 else
10955 GCC_SHLIB_SUBDIR=
10956 fi
10957
10958 # Adjust the toplevel makefile according to whether bootstrap was selected.
10959 case $enable_bootstrap in
10960 yes)
10961 bootstrap_suffix=bootstrap
10962 BUILD_CONFIG=bootstrap-debug
10963 ;;
10964 no)
10965 bootstrap_suffix=no-bootstrap
10966 BUILD_CONFIG=
10967 ;;
10968 esac
10969
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10971 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10972
10973
10974 # Check whether --with-build-config was given.
10975 if test "${with_build_config+set}" = set; then :
10976 withval=$with_build_config; case $with_build_config in
10977 yes) with_build_config= ;;
10978 no) with_build_config= BUILD_CONFIG= ;;
10979 esac
10980 fi
10981
10982
10983 if test "x${with_build_config}" != x; then
10984 BUILD_CONFIG=$with_build_config
10985 else
10986 case $BUILD_CONFIG in
10987 bootstrap-debug)
10988 if echo "int f (void) { return 0; }" > conftest.c &&
10989 ${CC} -c conftest.c &&
10990 mv conftest.o conftest.o.g0 &&
10991 ${CC} -c -g conftest.c &&
10992 mv conftest.o conftest.o.g &&
10993 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10994 :
10995 else
10996 BUILD_CONFIG=
10997 fi
10998 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10999 ;;
11000 esac
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
11003 $as_echo "$BUILD_CONFIG" >&6; }
11004
11005
11006 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
11008 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
11009 # Check whether --enable-vtable-verify was given.
11010 if test "${enable_vtable_verify+set}" = set; then :
11011 enableval=$enable_vtable_verify; case "$enableval" in
11012 yes) enable_vtable_verify=yes ;;
11013 no) enable_vtable_verify=no ;;
11014 *) enable_vtable_verify=no;;
11015 esac
11016 else
11017 enable_vtable_verify=no
11018 fi
11019
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
11021 $as_echo "$enable_vtable_verify" >&6; }
11022
11023 # Record target_configdirs and the configure arguments for target and
11024 # build configuration in Makefile.
11025 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
11026 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
11027 bootstrap_fixincludes=no
11028
11029 # If we are building libgomp, bootstrap it.
11030 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
11031 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
11032 fi
11033
11034 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
11035 # or bootstrap-ubsan, bootstrap it.
11036 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
11037 case "$BUILD_CONFIG" in
11038 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
11039 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
11040 bootstrap_fixincludes=yes
11041 ;;
11042 esac
11043 fi
11044
11045 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
11046 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
11047 test "$enable_vtable_verify" != no; then
11048 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
11049 fi
11050
11051 # If we are building libatomic and the list of enabled languages includes the
11052 # D frontend, bootstrap it.
11053 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
11054 case ,${enable_languages}, in
11055 *,d,*)
11056 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
11057 ;;
11058 esac
11059 fi
11060
11061 # Determine whether gdb needs tk/tcl or not.
11062 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
11063 # and in that case we want gdb to be built without tk. Ugh!
11064 # In fact I believe gdb is the *only* package directly dependent on tk,
11065 # so we should be able to put the 'maybe's in unconditionally and
11066 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
11067 # 100% sure that that's safe though.
11068
11069 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
11070 case "$enable_gdbtk" in
11071 no)
11072 GDB_TK="" ;;
11073 yes)
11074 GDB_TK="${gdb_tk}" ;;
11075 *)
11076 # Only add the dependency on gdbtk when GDBtk is part of the gdb
11077 # distro. Eventually someone will fix this and move Insight, nee
11078 # gdbtk to a separate directory.
11079 if test -d ${srcdir}/gdb/gdbtk ; then
11080 GDB_TK="${gdb_tk}"
11081 else
11082 GDB_TK=""
11083 fi
11084 ;;
11085 esac
11086 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
11087 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
11088
11089 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
11090 # else does, only include them if one of these is built. The Makefile
11091 # provides the ordering, so it's enough here to add to the list.
11092 case " ${configdirs} " in
11093 *\ gdb\ *)
11094 configdirs="${configdirs} gnulib gdbsupport"
11095 ;;
11096 *\ gdbserver\ *)
11097 configdirs="${configdirs} gnulib gdbsupport"
11098 ;;
11099 *\ sim\ *)
11100 configdirs="${configdirs} gnulib"
11101 ;;
11102 esac
11103
11104 # Strip out unwanted targets.
11105
11106 # While at that, we remove Makefiles if we were started for recursive
11107 # configuration, so that the top-level Makefile reconfigures them,
11108 # like we used to do when configure itself was recursive.
11109
11110 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11111 # but now we're fixing up the Makefile ourselves with the additional
11112 # commands passed to AC_CONFIG_FILES. Use separate variables
11113 # extrasub-{build,host,target} not because there is any reason to split
11114 # the substitutions up that way, but only to remain below the limit of
11115 # 99 commands in a script, for HP-UX sed.
11116
11117 # Do not nest @if/@endif or @unless/@endunless pairs, because
11118 # configure will not warn you at all.
11119
11120 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11121 yes:yes:*\ gold\ *:*,c++,*) ;;
11122 yes:yes:*\ gold\ *:*)
11123 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11124 ;;
11125 esac
11126
11127 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11128 # Note C++ is always enabled for stage1 now.
11129 case "$enable_bootstrap:${noconfigdirs}" in
11130 yes:*target-libstdc++-v3*)
11131 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11132 ;;
11133 esac
11134
11135
11136 extrasub_build=
11137 for module in ${build_configdirs} ; do
11138 if test -z "${no_recursion}" \
11139 && test -f ${build_subdir}/${module}/Makefile; then
11140 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11141 rm -f ${build_subdir}/${module}/Makefile
11142 fi
11143 extrasub_build="$extrasub_build
11144 /^@if build-$module\$/d
11145 /^@endif build-$module\$/d
11146 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11147 /^@if build-$module-$bootstrap_suffix\$/d
11148 /^@endif build-$module-$bootstrap_suffix\$/d
11149 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11150 done
11151 extrasub_host=
11152 for module in ${configdirs} ; do
11153 if test -z "${no_recursion}"; then
11154 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11155 if test -f ${file}; then
11156 echo 1>&2 "*** removing ${file} to force reconfigure"
11157 rm -f ${file}
11158 fi
11159 done
11160 fi
11161 case ${module},${bootstrap_fixincludes} in
11162 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11163 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11164 esac
11165 extrasub_host="$extrasub_host
11166 /^@if $module\$/d
11167 /^@endif $module\$/d
11168 /^@unless $module\$/,/^@endunless $module\$/d
11169 /^@if $module-$host_bootstrap_suffix\$/d
11170 /^@endif $module-$host_bootstrap_suffix\$/d
11171 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11172 done
11173 extrasub_target=
11174 for module in ${target_configdirs} ; do
11175 if test -z "${no_recursion}" \
11176 && test -f ${target_subdir}/${module}/Makefile; then
11177 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11178 rm -f ${target_subdir}/${module}/Makefile
11179 fi
11180
11181 # We only bootstrap target libraries listed in bootstrap_target_libs.
11182 case $bootstrap_target_libs in
11183 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11184 *) target_bootstrap_suffix=no-bootstrap ;;
11185 esac
11186
11187 extrasub_target="$extrasub_target
11188 /^@if target-$module\$/d
11189 /^@endif target-$module\$/d
11190 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11191 /^@if target-$module-$target_bootstrap_suffix\$/d
11192 /^@endif target-$module-$target_bootstrap_suffix\$/d
11193 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11194 done
11195
11196 # Do the final fixup along with target modules.
11197 extrasub_target="$extrasub_target
11198 /^@if /,/^@endif /d
11199 /^@unless /d
11200 /^@endunless /d"
11201
11202 if test "$enable_pgo_build" != "no"; then
11203 extrasub_build="$extrasub_build
11204 /^@if pgo-build\$/d
11205 /^@endif pgo-build\$/d"
11206 fi
11207
11208 # Create the serialization dependencies. This uses a temporary file.
11209
11210 # Check whether --enable-serial-configure was given.
11211 if test "${enable_serial_configure+set}" = set; then :
11212 enableval=$enable_serial_configure;
11213 fi
11214
11215
11216 case ${enable_serial_configure} in
11217 yes)
11218 enable_serial_build_configure=yes
11219 enable_serial_host_configure=yes
11220 enable_serial_target_configure=yes
11221 ;;
11222 esac
11223
11224 # These force 'configure's to be done one at a time, to avoid problems
11225 # with contention over a shared config.cache.
11226 rm -f serdep.tmp
11227 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11228 echo '# serdep.tmp' > serdep.tmp
11229 fi
11230 olditem=
11231 test "x${enable_serial_build_configure}" = xyes &&
11232 for item in ${build_configdirs} ; do
11233 case ${olditem} in
11234 "") ;;
11235 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11236 esac
11237 olditem=${item}
11238 done
11239 olditem=
11240 test "x${enable_serial_host_configure}" = xyes &&
11241 for item in ${configdirs} ; do
11242 case ${olditem} in
11243 "") ;;
11244 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11245 esac
11246 olditem=${item}
11247 done
11248 olditem=
11249 test "x${enable_serial_target_configure}" = xyes &&
11250 for item in ${target_configdirs} ; do
11251 case ${olditem} in
11252 "") ;;
11253 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11254 esac
11255 olditem=${item}
11256 done
11257 serialization_dependencies=serdep.tmp
11258
11259
11260 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11261 # target, nonopt, and variable assignments. These are the ones we
11262 # might not want to pass down to subconfigures. The exception being
11263 # --cache-file=/dev/null, which is used to turn off the use of cache
11264 # files altogether, and which should be passed on to subconfigures.
11265 # Also strip program-prefix, program-suffix, and program-transform-name,
11266 # so that we can pass down a consistent program-transform-name.
11267 hbaseargs=
11268 bbaseargs=
11269 tbaseargs=
11270 keep_next=no
11271 skip_next=no
11272 eval "set -- $ac_configure_args"
11273 for ac_arg
11274 do
11275 if test X"$skip_next" = X"yes"; then
11276 skip_next=no
11277 continue
11278 fi
11279 if test X"$keep_next" = X"yes"; then
11280 case $ac_arg in
11281 *\'*)
11282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283 esac
11284 hbaseargs="$hbaseargs '$ac_arg'"
11285 bbaseargs="$bbaseargs '$ac_arg'"
11286 tbaseargs="$tbaseargs '$ac_arg'"
11287 keep_next=no
11288 continue
11289 fi
11290
11291 # Handle separated arguments. Based on the logic generated by
11292 # autoconf 2.59.
11293 case $ac_arg in
11294 *=* | --config-cache | -C | -disable-* | --disable-* \
11295 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11296 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11297 | -with-* | --with-* | -without-* | --without-* | --x)
11298 separate_arg=no
11299 ;;
11300 -*)
11301 separate_arg=yes
11302 ;;
11303 *)
11304 separate_arg=no
11305 ;;
11306 esac
11307
11308 skip_targ=no
11309 skip_barg=no
11310 case $ac_arg in
11311
11312 --with-* | --without-*)
11313 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11314
11315 case $libopt in
11316 *[-_]include)
11317 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11318 ;;
11319 *[-_]lib)
11320 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11321 ;;
11322 *[-_]prefix)
11323 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11324 ;;
11325 *[-_]type)
11326 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11327 ;;
11328 *)
11329 lib=$libopt
11330 ;;
11331 esac
11332
11333
11334 case $lib in
11335 mpc | mpfr | gmp | isl)
11336 # If we're processing --with-$lib, --with-$lib-include or
11337 # --with-$lib-lib, for one of the libs above, and target is
11338 # different from host, don't pass the current argument to any
11339 # target library's configure.
11340 if test x$is_cross_compiler = xyes; then
11341 skip_targ=yes
11342 fi
11343 ;;
11344 libintl | libiconv)
11345 # We don't want libintl (and co.) in anything but the host arguments.
11346 skip_targ=yes
11347 skip_barg=yes
11348 ;;
11349 esac
11350 ;;
11351 esac
11352
11353 case "$ac_arg" in
11354 --cache-file=/dev/null | \
11355 -cache-file=/dev/null )
11356 # Handled here to avoid the test to skip args below.
11357 hbaseargs="$hbaseargs '$ac_arg'"
11358 bbaseargs="$bbaseargs '$ac_arg'"
11359 tbaseargs="$tbaseargs '$ac_arg'"
11360 # Assert: $separate_arg should always be no.
11361 keep_next=$separate_arg
11362 ;;
11363 --no*)
11364 continue
11365 ;;
11366 --c* | \
11367 --sr* | \
11368 --ho* | \
11369 --bu* | \
11370 --t* | \
11371 --program-* | \
11372 -cache_file* | \
11373 -srcdir* | \
11374 -host* | \
11375 -build* | \
11376 -target* | \
11377 -program-prefix* | \
11378 -program-suffix* | \
11379 -program-transform-name* )
11380 skip_next=$separate_arg
11381 continue
11382 ;;
11383 -*)
11384 # An option. Add it.
11385 case $ac_arg in
11386 *\'*)
11387 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11388 esac
11389 hbaseargs="$hbaseargs '$ac_arg'"
11390 if test X"$skip_barg" = Xno; then
11391 bbaseargs="$bbaseargs '$ac_arg'"
11392 fi
11393 if test X"$skip_targ" = Xno; then
11394 tbaseargs="$tbaseargs '$ac_arg'"
11395 fi
11396 keep_next=$separate_arg
11397 ;;
11398 *)
11399 # Either a variable assignment, or a nonopt (triplet). Don't
11400 # pass it down; let the Makefile handle this.
11401 continue
11402 ;;
11403 esac
11404 done
11405 # Remove the initial space we just introduced and, as these will be
11406 # expanded by make, quote '$'.
11407 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11408 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11409
11410 # Add in --program-transform-name, after --program-prefix and
11411 # --program-suffix have been applied to it. Autoconf has already
11412 # doubled dollar signs and backslashes in program_transform_name; we want
11413 # the backslashes un-doubled, and then the entire thing wrapped in single
11414 # quotes, because this will be expanded first by make and then by the shell.
11415 # Also, because we want to override the logic in subdir configure scripts to
11416 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11417 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11418 ${program_transform_name}
11419 EOF_SED
11420 gcc_transform_name=`cat conftestsed.out`
11421 rm -f conftestsed.out
11422 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11423 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11424 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11425 if test "$silent" = yes; then
11426 bbaseargs="$bbaseargs --silent"
11427 hbaseargs="$hbaseargs --silent"
11428 tbaseargs="$tbaseargs --silent"
11429 fi
11430
11431 bbaseargs="$bbaseargs --disable-option-checking"
11432 hbaseargs="$hbaseargs --disable-option-checking"
11433 tbaseargs="$tbaseargs --disable-option-checking"
11434
11435 if test "$enable_year2038" = no; then
11436 bbaseargs="$bbaseargs --disable-year2038"
11437 hbaseargs="$hbaseargs --disable-year2038"
11438 tbaseargs="$tbaseargs --disable-year2038"
11439 fi
11440
11441 # Record and document user additions to sub configure arguments.
11442
11443
11444
11445
11446 # For the build-side libraries, we just need to pretend we're native,
11447 # and not use the same cache file. Multilibs are neither needed nor
11448 # desired. We can't even use the same cache file for all build-side
11449 # libraries, as they're compiled differently; some with C, some with
11450 # C++ or with different feature-enabling options.
11451 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11452
11453 # For host modules, accept cache file option, or specification as blank.
11454 case "${cache_file}" in
11455 "") # empty
11456 cache_file_option="" ;;
11457 /* | [A-Za-z]:[\\/]* ) # absolute path
11458 cache_file_option="--cache-file=${cache_file}" ;;
11459 *) # relative path
11460 cache_file_option="--cache-file=../${cache_file}" ;;
11461 esac
11462
11463 # Host dirs don't like to share a cache file either, horribly enough.
11464 # This seems to be due to autoconf 2.5x stupidity.
11465 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11466
11467 target_configargs="$target_configargs ${tbaseargs}"
11468
11469 # Passing a --with-cross-host argument lets the target libraries know
11470 # whether they are being built with a cross-compiler or being built
11471 # native. However, it would be better to use other mechanisms to make the
11472 # sorts of decisions they want to make on this basis. Please consider
11473 # this option to be deprecated. FIXME.
11474 if test x${is_cross_compiler} = xyes ; then
11475 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11476 fi
11477
11478 # Special user-friendly check for native x86_64-linux build, if
11479 # multilib is not explicitly enabled.
11480 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11481 x86_64-*linux*:yes:$build:$build:)
11482 # Make sure we have a development environment that handles 32-bit
11483 dev64=no
11484 echo "int main () { return 0; }" > conftest.c
11485 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11486 if test $? = 0 ; then
11487 if test -s conftest || test -s conftest.exe ; then
11488 dev64=yes
11489 fi
11490 fi
11491 rm -f conftest*
11492 if test x${dev64} != xyes ; then
11493 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
11494 fi
11495 ;;
11496 esac
11497
11498 # Default to --enable-multilib.
11499 if test x${enable_multilib} = x ; then
11500 target_configargs="--enable-multilib ${target_configargs}"
11501 fi
11502
11503 # Pass --with-newlib if appropriate. Note that target_configdirs has
11504 # changed from the earlier setting of with_newlib.
11505 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11506 target_configargs="--with-newlib ${target_configargs}"
11507 fi
11508
11509 # Different target subdirs use different values of certain variables
11510 # (notably CXX). Worse, multilibs use *lots* of different values.
11511 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11512 # it doesn't automatically accept command-line overrides of them.
11513 # This means it's not safe for target subdirs to share a cache file,
11514 # which is disgusting, but there you have it. Hopefully this can be
11515 # fixed in future. It's still worthwhile to use a cache file for each
11516 # directory. I think.
11517
11518 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11519 # We need to pass --target, as newer autoconf's requires consistency
11520 # for target_alias and gcc doesn't manage it consistently.
11521 target_configargs="--cache-file=./config.cache ${target_configargs}"
11522
11523 FLAGS_FOR_TARGET=
11524 case " $target_configdirs " in
11525 *" newlib "*)
11526 case " $target_configargs " in
11527 *" --with-newlib "*)
11528 case "$target" in
11529 *-cygwin*)
11530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11531 ;;
11532 esac
11533
11534 # If we're not building GCC, don't discard standard headers.
11535 if test -d ${srcdir}/gcc; then
11536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11537
11538 if test "${build}" != "${host}"; then
11539 # On Canadian crosses, CC_FOR_TARGET will have already been set
11540 # by `configure', so we won't have an opportunity to add -Bgcc/
11541 # to it. This is right: we don't want to search that directory
11542 # for binaries, but we want the header files in there, so add
11543 # them explicitly.
11544 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11545
11546 # Someone might think of using the pre-installed headers on
11547 # Canadian crosses, in case the installed compiler is not fully
11548 # compatible with the compiler being built. In this case, it
11549 # would be better to flag an error than risking having
11550 # incompatible object files being constructed. We can't
11551 # guarantee that an error will be flagged, but let's hope the
11552 # compiler will do it, when presented with incompatible header
11553 # files.
11554 fi
11555 fi
11556
11557 case "${target}-${is_cross_compiler}" in
11558 i[3456789]86-*-linux*-no)
11559 # Here host == target, so we don't need to build gcc,
11560 # so we don't want to discard standard headers.
11561 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11562 ;;
11563 *)
11564 # If we're building newlib, use its generic headers last, but search
11565 # for any libc-related directories first (so make it the last -B
11566 # switch).
11567 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11568
11569 # If we're building libgloss, find the startup file, simulator library
11570 # and linker script.
11571 case " $target_configdirs " in
11572 *" libgloss "*)
11573 # Look for startup file, simulator library and maybe linker script.
11574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11575 # Look for libnosys.a in case the target needs it.
11576 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11577 # Most targets have the linker script in the source directory.
11578 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11579 ;;
11580 esac
11581 ;;
11582 esac
11583 ;;
11584 esac
11585 ;;
11586 esac
11587
11588 case "$target" in
11589 x86_64-*mingw* | *-w64-mingw*)
11590 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11591 # however, use a symlink named 'mingw' in ${prefix} .
11592 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11593 ;;
11594 *-mingw*)
11595 # MinGW can't be handled as Cygwin above since it does not use newlib.
11596 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'
11597 ;;
11598 esac
11599
11600 # Allow the user to override the flags for
11601 # our build compiler if desired.
11602 if test x"${build}" = x"${host}" ; then
11603 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11604 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11605 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11606 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11607 fi
11608
11609 if test -d ${srcdir}/gcc; then
11610 # On Canadian crosses, we'll be searching the right directories for the
11611 # previously-installed cross compiler, so don't bother to add flags for
11612 # executable directories within the install tree of the compiler being built;
11613 # programs in there won't even run.
11614 if test "${build}" = "${host}"; then
11615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/'
11616 fi
11617
11618 # Search for pre-installed headers if nothing else fits.
11619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11620 fi
11621
11622 if test "x${use_gnu_ld}" = x &&
11623 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11624 # Arrange for us to find uninstalled linker scripts.
11625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11626 fi
11627
11628 # Search for other target-specific linker scripts and such.
11629 case "${target}" in
11630 mep*)
11631 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11632 ;;
11633 # The VxWorks support for shared libraries is getting in
11634 # incrementally. Make sure it doesn't get activated implicitly:
11635 *vxworks*)
11636 if test "${enable_shared-unset}" = unset ; then
11637 enable_shared=no
11638 # So the build of libraries knows ...
11639 target_configargs="${target_configargs} --disable-shared"
11640 # So gcc knows ...
11641 host_configargs="${host_configargs} --disable-shared"
11642 fi
11643 ;;
11644 esac
11645
11646 # Makefile fragments.
11647 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11648 do
11649 eval fragval=\$$frag
11650 if test $fragval != /dev/null; then
11651 eval $frag=${srcdir}/$fragval
11652 fi
11653 done
11654
11655
11656
11657
11658
11659 # Miscellanea: directories, flags, etc.
11660
11661
11662
11663
11664
11665
11666
11667
11668 # Build module lists & subconfigure args.
11669
11670
11671
11672 # Host module lists & subconfigure args.
11673
11674
11675
11676
11677 # Target module lists & subconfigure args.
11678
11679
11680
11681 # Build tools.
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703 # Generate default definitions for YACC, M4, LEX and other programs that run
11704 # on the build machine. These are used if the Makefile can't locate these
11705 # programs in objdir.
11706 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11707
11708 for ac_prog in 'bison -y' byacc yacc
11709 do
11710 # Extract the first word of "$ac_prog", so it can be a program name with args.
11711 set dummy $ac_prog; ac_word=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if ${ac_cv_prog_YACC+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test -n "$YACC"; then
11718 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11719 else
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_prog_YACC="$ac_prog"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731 done
11732 done
11733 IFS=$as_save_IFS
11734
11735 fi
11736 fi
11737 YACC=$ac_cv_prog_YACC
11738 if test -n "$YACC"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11740 $as_echo "$YACC" >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745
11746
11747 test -n "$YACC" && break
11748 done
11749 test -n "$YACC" || YACC="$MISSING bison -y"
11750
11751 case " $build_configdirs " in
11752 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11753 esac
11754
11755 for ac_prog in bison
11756 do
11757 # Extract the first word of "$ac_prog", so it can be a program name with args.
11758 set dummy $ac_prog; ac_word=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if ${ac_cv_prog_BISON+:} false; then :
11762 $as_echo_n "(cached) " >&6
11763 else
11764 if test -n "$BISON"; then
11765 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11766 else
11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $PATH
11769 do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11774 ac_cv_prog_BISON="$ac_prog"
11775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11776 break 2
11777 fi
11778 done
11779 done
11780 IFS=$as_save_IFS
11781
11782 fi
11783 fi
11784 BISON=$ac_cv_prog_BISON
11785 if test -n "$BISON"; then
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11787 $as_echo "$BISON" >&6; }
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11791 fi
11792
11793
11794 test -n "$BISON" && break
11795 done
11796 test -n "$BISON" || BISON="$MISSING bison"
11797
11798 case " $build_configdirs " in
11799 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11800 esac
11801
11802 for ac_prog in gm4 gnum4 m4
11803 do
11804 # Extract the first word of "$ac_prog", so it can be a program name with args.
11805 set dummy $ac_prog; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if ${ac_cv_prog_M4+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 if test -n "$M4"; then
11812 ac_cv_prog_M4="$M4" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11816 do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821 ac_cv_prog_M4="$ac_prog"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11824 fi
11825 done
11826 done
11827 IFS=$as_save_IFS
11828
11829 fi
11830 fi
11831 M4=$ac_cv_prog_M4
11832 if test -n "$M4"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11834 $as_echo "$M4" >&6; }
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 fi
11839
11840
11841 test -n "$M4" && break
11842 done
11843 test -n "$M4" || M4="$MISSING m4"
11844
11845 case " $build_configdirs " in
11846 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11847 esac
11848
11849 for ac_prog in flex lex
11850 do
11851 # Extract the first word of "$ac_prog", so it can be a program name with args.
11852 set dummy $ac_prog; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_LEX+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$LEX"; then
11859 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11863 do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_LEX="$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872 done
11873 done
11874 IFS=$as_save_IFS
11875
11876 fi
11877 fi
11878 LEX=$ac_cv_prog_LEX
11879 if test -n "$LEX"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11881 $as_echo "$LEX" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11885 fi
11886
11887
11888 test -n "$LEX" && break
11889 done
11890 test -n "$LEX" || LEX="$MISSING flex"
11891
11892 case " $build_configdirs " in
11893 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11894 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11895 esac
11896
11897 for ac_prog in flex
11898 do
11899 # Extract the first word of "$ac_prog", so it can be a program name with args.
11900 set dummy $ac_prog; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_FLEX+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 if test -n "$FLEX"; then
11907 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_FLEX="$ac_prog"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920 done
11921 done
11922 IFS=$as_save_IFS
11923
11924 fi
11925 fi
11926 FLEX=$ac_cv_prog_FLEX
11927 if test -n "$FLEX"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11929 $as_echo "$FLEX" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933 fi
11934
11935
11936 test -n "$FLEX" && break
11937 done
11938 test -n "$FLEX" || FLEX="$MISSING flex"
11939
11940 case " $build_configdirs " in
11941 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11942 esac
11943
11944 for ac_prog in makeinfo
11945 do
11946 # Extract the first word of "$ac_prog", so it can be a program name with args.
11947 set dummy $ac_prog; ac_word=$2
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949 $as_echo_n "checking for $ac_word... " >&6; }
11950 if ${ac_cv_prog_MAKEINFO+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 if test -n "$MAKEINFO"; then
11954 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11955 else
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_MAKEINFO="$ac_prog"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967 done
11968 done
11969 IFS=$as_save_IFS
11970
11971 fi
11972 fi
11973 MAKEINFO=$ac_cv_prog_MAKEINFO
11974 if test -n "$MAKEINFO"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11976 $as_echo "$MAKEINFO" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 fi
11981
11982
11983 test -n "$MAKEINFO" && break
11984 done
11985 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11986
11987 case " $build_configdirs " in
11988 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11989 *)
11990
11991 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11992 # higher, else we use the "missing" dummy.
11993 if ${MAKEINFO} --version \
11994 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11995 :
11996 else
11997 MAKEINFO="$MISSING makeinfo"
11998 fi
11999 ;;
12000
12001 esac
12002
12003 # FIXME: expect and dejagnu may become build tools?
12004
12005 for ac_prog in expect
12006 do
12007 # Extract the first word of "$ac_prog", so it can be a program name with args.
12008 set dummy $ac_prog; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_prog_EXPECT+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 if test -n "$EXPECT"; then
12015 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
12016 else
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12019 do
12020 IFS=$as_save_IFS
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_prog_EXPECT="$ac_prog"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 break 2
12027 fi
12028 done
12029 done
12030 IFS=$as_save_IFS
12031
12032 fi
12033 fi
12034 EXPECT=$ac_cv_prog_EXPECT
12035 if test -n "$EXPECT"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12037 $as_echo "$EXPECT" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 fi
12042
12043
12044 test -n "$EXPECT" && break
12045 done
12046 test -n "$EXPECT" || EXPECT="expect"
12047
12048 case " $configdirs " in
12049 *" expect "*)
12050 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
12051 ;;
12052 esac
12053
12054 for ac_prog in runtest
12055 do
12056 # Extract the first word of "$ac_prog", so it can be a program name with args.
12057 set dummy $ac_prog; ac_word=$2
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12059 $as_echo_n "checking for $ac_word... " >&6; }
12060 if ${ac_cv_prog_RUNTEST+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 if test -n "$RUNTEST"; then
12064 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
12065 else
12066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12067 for as_dir in $PATH
12068 do
12069 IFS=$as_save_IFS
12070 test -z "$as_dir" && as_dir=.
12071 for ac_exec_ext in '' $ac_executable_extensions; do
12072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12073 ac_cv_prog_RUNTEST="$ac_prog"
12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 break 2
12076 fi
12077 done
12078 done
12079 IFS=$as_save_IFS
12080
12081 fi
12082 fi
12083 RUNTEST=$ac_cv_prog_RUNTEST
12084 if test -n "$RUNTEST"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
12086 $as_echo "$RUNTEST" >&6; }
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12090 fi
12091
12092
12093 test -n "$RUNTEST" && break
12094 done
12095 test -n "$RUNTEST" || RUNTEST="runtest"
12096
12097 case " $configdirs " in
12098 *" dejagnu "*)
12099 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
12100 ;;
12101 esac
12102
12103
12104 # Host tools.
12105 ncn_tool_prefix=
12106 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
12107 ncn_target_tool_prefix=
12108 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12109
12110
12111
12112 if test -n "$AR"; then
12113 ac_cv_prog_AR=$AR
12114 elif test -n "$ac_cv_prog_AR"; then
12115 AR=$ac_cv_prog_AR
12116 fi
12117
12118 if test -n "$ac_cv_prog_AR"; then
12119 for ncn_progname in ar; do
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12121 set dummy ${ncn_progname}; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if ${ac_cv_prog_AR+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 if test -n "$AR"; then
12128 ac_cv_prog_AR="$AR" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_AR="${ncn_progname}"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12140 fi
12141 done
12142 done
12143 IFS=$as_save_IFS
12144
12145 fi
12146 fi
12147 AR=$ac_cv_prog_AR
12148 if test -n "$AR"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12150 $as_echo "$AR" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155
12156
12157 done
12158 fi
12159
12160 for ncn_progname in ar; do
12161 if test -n "$ncn_tool_prefix"; then
12162 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12163 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_AR+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 if test -n "$AR"; then
12170 ac_cv_prog_AR="$AR" # Let the user override the test.
12171 else
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12174 do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12179 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181 break 2
12182 fi
12183 done
12184 done
12185 IFS=$as_save_IFS
12186
12187 fi
12188 fi
12189 AR=$ac_cv_prog_AR
12190 if test -n "$AR"; then
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12192 $as_echo "$AR" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197
12198
12199 fi
12200 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12202 set dummy ${ncn_progname}; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_AR+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$AR"; then
12209 ac_cv_prog_AR="$AR" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_AR="${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222 done
12223 done
12224 IFS=$as_save_IFS
12225
12226 fi
12227 fi
12228 AR=$ac_cv_prog_AR
12229 if test -n "$AR"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12231 $as_echo "$AR" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236
12237
12238 fi
12239 test -n "$ac_cv_prog_AR" && break
12240 done
12241
12242 if test -z "$ac_cv_prog_AR" ; then
12243 set dummy ar
12244 if test $build = $host ; then
12245 AR="$2"
12246 else
12247 AR="${ncn_tool_prefix}$2"
12248 fi
12249 fi
12250
12251
12252
12253 if test -n "$AS"; then
12254 ac_cv_prog_AS=$AS
12255 elif test -n "$ac_cv_prog_AS"; then
12256 AS=$ac_cv_prog_AS
12257 fi
12258
12259 if test -n "$ac_cv_prog_AS"; then
12260 for ncn_progname in as; do
12261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12262 set dummy ${ncn_progname}; ac_word=$2
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12264 $as_echo_n "checking for $ac_word... " >&6; }
12265 if ${ac_cv_prog_AS+:} false; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 if test -n "$AS"; then
12269 ac_cv_prog_AS="$AS" # Let the user override the test.
12270 else
12271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272 for as_dir in $PATH
12273 do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
12276 for ac_exec_ext in '' $ac_executable_extensions; do
12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12278 ac_cv_prog_AS="${ncn_progname}"
12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12280 break 2
12281 fi
12282 done
12283 done
12284 IFS=$as_save_IFS
12285
12286 fi
12287 fi
12288 AS=$ac_cv_prog_AS
12289 if test -n "$AS"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12291 $as_echo "$AS" >&6; }
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294 $as_echo "no" >&6; }
12295 fi
12296
12297
12298 done
12299 fi
12300
12301 for ncn_progname in as; do
12302 if test -n "$ncn_tool_prefix"; then
12303 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12304 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_prog_AS+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 if test -n "$AS"; then
12311 ac_cv_prog_AS="$AS" # Let the user override the test.
12312 else
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH
12315 do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12320 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324 done
12325 done
12326 IFS=$as_save_IFS
12327
12328 fi
12329 fi
12330 AS=$ac_cv_prog_AS
12331 if test -n "$AS"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12333 $as_echo "$AS" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12337 fi
12338
12339
12340 fi
12341 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343 set dummy ${ncn_progname}; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if ${ac_cv_prog_AS+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 if test -n "$AS"; then
12350 ac_cv_prog_AS="$AS" # Let the user override the test.
12351 else
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359 ac_cv_prog_AS="${ncn_progname}"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363 done
12364 done
12365 IFS=$as_save_IFS
12366
12367 fi
12368 fi
12369 AS=$ac_cv_prog_AS
12370 if test -n "$AS"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12372 $as_echo "$AS" >&6; }
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376 fi
12377
12378
12379 fi
12380 test -n "$ac_cv_prog_AS" && break
12381 done
12382
12383 if test -z "$ac_cv_prog_AS" ; then
12384 set dummy as
12385 if test $build = $host ; then
12386 AS="$2"
12387 else
12388 AS="${ncn_tool_prefix}$2"
12389 fi
12390 fi
12391
12392
12393
12394 if test -n "$DLLTOOL"; then
12395 ac_cv_prog_DLLTOOL=$DLLTOOL
12396 elif test -n "$ac_cv_prog_DLLTOOL"; then
12397 DLLTOOL=$ac_cv_prog_DLLTOOL
12398 fi
12399
12400 if test -n "$ac_cv_prog_DLLTOOL"; then
12401 for ncn_progname in dlltool; do
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403 set dummy ${ncn_progname}; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_DLLTOOL+:} false; then :
12407 $as_echo_n "(cached) " >&6
12408 else
12409 if test -n "$DLLTOOL"; then
12410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12411 else
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12414 do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 ac_cv_prog_DLLTOOL="${ncn_progname}"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423 done
12424 done
12425 IFS=$as_save_IFS
12426
12427 fi
12428 fi
12429 DLLTOOL=$ac_cv_prog_DLLTOOL
12430 if test -n "$DLLTOOL"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12432 $as_echo "$DLLTOOL" >&6; }
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12436 fi
12437
12438
12439 done
12440 fi
12441
12442 for ncn_progname in dlltool; do
12443 if test -n "$ncn_tool_prefix"; then
12444 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12445 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_prog_DLLTOOL+:} false; then :
12449 $as_echo_n "(cached) " >&6
12450 else
12451 if test -n "$DLLTOOL"; then
12452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12453 else
12454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12455 for as_dir in $PATH
12456 do
12457 IFS=$as_save_IFS
12458 test -z "$as_dir" && as_dir=.
12459 for ac_exec_ext in '' $ac_executable_extensions; do
12460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12461 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 break 2
12464 fi
12465 done
12466 done
12467 IFS=$as_save_IFS
12468
12469 fi
12470 fi
12471 DLLTOOL=$ac_cv_prog_DLLTOOL
12472 if test -n "$DLLTOOL"; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12474 $as_echo "$DLLTOOL" >&6; }
12475 else
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478 fi
12479
12480
12481 fi
12482 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12484 set dummy ${ncn_progname}; ac_word=$2
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486 $as_echo_n "checking for $ac_word... " >&6; }
12487 if ${ac_cv_prog_DLLTOOL+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if test -n "$DLLTOOL"; then
12491 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12492 else
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500 ac_cv_prog_DLLTOOL="${ncn_progname}"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504 done
12505 done
12506 IFS=$as_save_IFS
12507
12508 fi
12509 fi
12510 DLLTOOL=$ac_cv_prog_DLLTOOL
12511 if test -n "$DLLTOOL"; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12513 $as_echo "$DLLTOOL" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518
12519
12520 fi
12521 test -n "$ac_cv_prog_DLLTOOL" && break
12522 done
12523
12524 if test -z "$ac_cv_prog_DLLTOOL" ; then
12525 set dummy dlltool
12526 if test $build = $host ; then
12527 DLLTOOL="$2"
12528 else
12529 DLLTOOL="${ncn_tool_prefix}$2"
12530 fi
12531 fi
12532
12533
12534
12535 if test -n "$DSYMUTIL"; then
12536 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12537 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12538 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12539 fi
12540
12541 if test -n "$ac_cv_prog_DSYMUTIL"; then
12542 for ncn_progname in dsymutil; do
12543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12544 set dummy ${ncn_progname}; ac_word=$2
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546 $as_echo_n "checking for $ac_word... " >&6; }
12547 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 if test -n "$DSYMUTIL"; then
12551 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12552 else
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554 for as_dir in $PATH
12555 do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12560 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564 done
12565 done
12566 IFS=$as_save_IFS
12567
12568 fi
12569 fi
12570 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12571 if test -n "$DSYMUTIL"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12573 $as_echo "$DSYMUTIL" >&6; }
12574 else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 fi
12578
12579
12580 done
12581 fi
12582
12583 for ncn_progname in dsymutil; do
12584 if test -n "$ncn_tool_prefix"; then
12585 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12586 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 if test -n "$DSYMUTIL"; then
12593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12594 else
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12597 do
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12602 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12605 fi
12606 done
12607 done
12608 IFS=$as_save_IFS
12609
12610 fi
12611 fi
12612 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12613 if test -n "$DSYMUTIL"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12615 $as_echo "$DSYMUTIL" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 fi
12620
12621
12622 fi
12623 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625 set dummy ${ncn_progname}; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 if test -n "$DSYMUTIL"; then
12632 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12636 do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12644 fi
12645 done
12646 done
12647 IFS=$as_save_IFS
12648
12649 fi
12650 fi
12651 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12652 if test -n "$DSYMUTIL"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12654 $as_echo "$DSYMUTIL" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12658 fi
12659
12660
12661 fi
12662 test -n "$ac_cv_prog_DSYMUTIL" && break
12663 done
12664
12665 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12666 set dummy dsymutil
12667 if test $build = $host ; then
12668 DSYMUTIL="$2"
12669 else
12670 DSYMUTIL="${ncn_tool_prefix}$2"
12671 fi
12672 fi
12673
12674
12675
12676 if test -n "$LD"; then
12677 ac_cv_prog_LD=$LD
12678 elif test -n "$ac_cv_prog_LD"; then
12679 LD=$ac_cv_prog_LD
12680 fi
12681
12682 if test -n "$ac_cv_prog_LD"; then
12683 for ncn_progname in ld; do
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_prog_LD+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 if test -n "$LD"; then
12692 ac_cv_prog_LD="$LD" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_LD="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 fi
12710 fi
12711 LD=$ac_cv_prog_LD
12712 if test -n "$LD"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12714 $as_echo "$LD" >&6; }
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721 done
12722 fi
12723
12724 for ncn_progname in ld; do
12725 if test -n "$ncn_tool_prefix"; then
12726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12727 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if ${ac_cv_prog_LD+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 if test -n "$LD"; then
12734 ac_cv_prog_LD="$LD" # Let the user override the test.
12735 else
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737 for as_dir in $PATH
12738 do
12739 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12743 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2
12746 fi
12747 done
12748 done
12749 IFS=$as_save_IFS
12750
12751 fi
12752 fi
12753 LD=$ac_cv_prog_LD
12754 if test -n "$LD"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12756 $as_echo "$LD" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12760 fi
12761
12762
12763 fi
12764 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12766 set dummy ${ncn_progname}; ac_word=$2
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768 $as_echo_n "checking for $ac_word... " >&6; }
12769 if ${ac_cv_prog_LD+:} false; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 if test -n "$LD"; then
12773 ac_cv_prog_LD="$LD" # Let the user override the test.
12774 else
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782 ac_cv_prog_LD="${ncn_progname}"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784 break 2
12785 fi
12786 done
12787 done
12788 IFS=$as_save_IFS
12789
12790 fi
12791 fi
12792 LD=$ac_cv_prog_LD
12793 if test -n "$LD"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12795 $as_echo "$LD" >&6; }
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799 fi
12800
12801
12802 fi
12803 test -n "$ac_cv_prog_LD" && break
12804 done
12805
12806 if test -z "$ac_cv_prog_LD" ; then
12807 set dummy ld
12808 if test $build = $host ; then
12809 LD="$2"
12810 else
12811 LD="${ncn_tool_prefix}$2"
12812 fi
12813 fi
12814
12815
12816
12817 if test -n "$LIPO"; then
12818 ac_cv_prog_LIPO=$LIPO
12819 elif test -n "$ac_cv_prog_LIPO"; then
12820 LIPO=$ac_cv_prog_LIPO
12821 fi
12822
12823 if test -n "$ac_cv_prog_LIPO"; then
12824 for ncn_progname in lipo; do
12825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12826 set dummy ${ncn_progname}; ac_word=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if ${ac_cv_prog_LIPO+:} false; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12832 if test -n "$LIPO"; then
12833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12834 else
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12837 do
12838 IFS=$as_save_IFS
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12842 ac_cv_prog_LIPO="${ncn_progname}"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 break 2
12845 fi
12846 done
12847 done
12848 IFS=$as_save_IFS
12849
12850 fi
12851 fi
12852 LIPO=$ac_cv_prog_LIPO
12853 if test -n "$LIPO"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12855 $as_echo "$LIPO" >&6; }
12856 else
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859 fi
12860
12861
12862 done
12863 fi
12864
12865 for ncn_progname in lipo; do
12866 if test -n "$ncn_tool_prefix"; then
12867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12868 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_prog_LIPO+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 if test -n "$LIPO"; then
12875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12876 else
12877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12878 for as_dir in $PATH
12879 do
12880 IFS=$as_save_IFS
12881 test -z "$as_dir" && as_dir=.
12882 for ac_exec_ext in '' $ac_executable_extensions; do
12883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12884 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 break 2
12887 fi
12888 done
12889 done
12890 IFS=$as_save_IFS
12891
12892 fi
12893 fi
12894 LIPO=$ac_cv_prog_LIPO
12895 if test -n "$LIPO"; then
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12897 $as_echo "$LIPO" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12901 fi
12902
12903
12904 fi
12905 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12907 set dummy ${ncn_progname}; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_prog_LIPO+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$LIPO"; then
12914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_LIPO="${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12926 fi
12927 done
12928 done
12929 IFS=$as_save_IFS
12930
12931 fi
12932 fi
12933 LIPO=$ac_cv_prog_LIPO
12934 if test -n "$LIPO"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12936 $as_echo "$LIPO" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941
12942
12943 fi
12944 test -n "$ac_cv_prog_LIPO" && break
12945 done
12946
12947 if test -z "$ac_cv_prog_LIPO" ; then
12948 set dummy lipo
12949 if test $build = $host ; then
12950 LIPO="$2"
12951 else
12952 LIPO="${ncn_tool_prefix}$2"
12953 fi
12954 fi
12955
12956
12957
12958 if test -n "$NM"; then
12959 ac_cv_prog_NM=$NM
12960 elif test -n "$ac_cv_prog_NM"; then
12961 NM=$ac_cv_prog_NM
12962 fi
12963
12964 if test -n "$ac_cv_prog_NM"; then
12965 for ncn_progname in nm; do
12966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12967 set dummy ${ncn_progname}; ac_word=$2
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969 $as_echo_n "checking for $ac_word... " >&6; }
12970 if ${ac_cv_prog_NM+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 if test -n "$NM"; then
12974 ac_cv_prog_NM="$NM" # Let the user override the test.
12975 else
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_prog_NM="${ncn_progname}"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12986 fi
12987 done
12988 done
12989 IFS=$as_save_IFS
12990
12991 fi
12992 fi
12993 NM=$ac_cv_prog_NM
12994 if test -n "$NM"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12996 $as_echo "$NM" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13000 fi
13001
13002
13003 done
13004 fi
13005
13006 for ncn_progname in nm; do
13007 if test -n "$ncn_tool_prefix"; then
13008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_NM+:} false; then :
13013 $as_echo_n "(cached) " >&6
13014 else
13015 if test -n "$NM"; then
13016 ac_cv_prog_NM="$NM" # Let the user override the test.
13017 else
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13020 do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029 done
13030 done
13031 IFS=$as_save_IFS
13032
13033 fi
13034 fi
13035 NM=$ac_cv_prog_NM
13036 if test -n "$NM"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13038 $as_echo "$NM" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13042 fi
13043
13044
13045 fi
13046 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
13047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13048 set dummy ${ncn_progname}; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if ${ac_cv_prog_NM+:} false; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 if test -n "$NM"; then
13055 ac_cv_prog_NM="$NM" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13059 do
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13064 ac_cv_prog_NM="${ncn_progname}"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13067 fi
13068 done
13069 done
13070 IFS=$as_save_IFS
13071
13072 fi
13073 fi
13074 NM=$ac_cv_prog_NM
13075 if test -n "$NM"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13077 $as_echo "$NM" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13081 fi
13082
13083
13084 fi
13085 test -n "$ac_cv_prog_NM" && break
13086 done
13087
13088 if test -z "$ac_cv_prog_NM" ; then
13089 set dummy nm
13090 if test $build = $host ; then
13091 NM="$2"
13092 else
13093 NM="${ncn_tool_prefix}$2"
13094 fi
13095 fi
13096
13097
13098
13099 if test -n "$RANLIB"; then
13100 ac_cv_prog_RANLIB=$RANLIB
13101 elif test -n "$ac_cv_prog_RANLIB"; then
13102 RANLIB=$ac_cv_prog_RANLIB
13103 fi
13104
13105 if test -n "$ac_cv_prog_RANLIB"; then
13106 for ncn_progname in ranlib; do
13107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13108 set dummy ${ncn_progname}; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_prog_RANLIB+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 if test -n "$RANLIB"; then
13115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13116 else
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13119 do
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_RANLIB="${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13127 fi
13128 done
13129 done
13130 IFS=$as_save_IFS
13131
13132 fi
13133 fi
13134 RANLIB=$ac_cv_prog_RANLIB
13135 if test -n "$RANLIB"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13137 $as_echo "$RANLIB" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13141 fi
13142
13143
13144 done
13145 fi
13146
13147 for ncn_progname in ranlib; do
13148 if test -n "$ncn_tool_prefix"; then
13149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_prog_RANLIB+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 if test -n "$RANLIB"; then
13157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13158 else
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13166 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13169 fi
13170 done
13171 done
13172 IFS=$as_save_IFS
13173
13174 fi
13175 fi
13176 RANLIB=$ac_cv_prog_RANLIB
13177 if test -n "$RANLIB"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13179 $as_echo "$RANLIB" >&6; }
13180 else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13183 fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13189 set dummy ${ncn_progname}; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if ${ac_cv_prog_RANLIB+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 if test -n "$RANLIB"; then
13196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13200 do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13205 ac_cv_prog_RANLIB="${ncn_progname}"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13208 fi
13209 done
13210 done
13211 IFS=$as_save_IFS
13212
13213 fi
13214 fi
13215 RANLIB=$ac_cv_prog_RANLIB
13216 if test -n "$RANLIB"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13218 $as_echo "$RANLIB" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222 fi
13223
13224
13225 fi
13226 test -n "$ac_cv_prog_RANLIB" && break
13227 done
13228
13229 if test -z "$ac_cv_prog_RANLIB" ; then
13230 RANLIB="true"
13231 fi
13232
13233
13234
13235 if test -n "$STRIP"; then
13236 ac_cv_prog_STRIP=$STRIP
13237 elif test -n "$ac_cv_prog_STRIP"; then
13238 STRIP=$ac_cv_prog_STRIP
13239 fi
13240
13241 if test -n "$ac_cv_prog_STRIP"; then
13242 for ncn_progname in strip; do
13243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13244 set dummy ${ncn_progname}; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if ${ac_cv_prog_STRIP+:} false; then :
13248 $as_echo_n "(cached) " >&6
13249 else
13250 if test -n "$STRIP"; then
13251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13252 else
13253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13255 do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
13259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13260 ac_cv_prog_STRIP="${ncn_progname}"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264 done
13265 done
13266 IFS=$as_save_IFS
13267
13268 fi
13269 fi
13270 STRIP=$ac_cv_prog_STRIP
13271 if test -n "$STRIP"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13273 $as_echo "$STRIP" >&6; }
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278
13279
13280 done
13281 fi
13282
13283 for ncn_progname in strip; do
13284 if test -n "$ncn_tool_prefix"; then
13285 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_prog_STRIP+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 if test -n "$STRIP"; then
13293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13294 else
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13297 do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306 done
13307 done
13308 IFS=$as_save_IFS
13309
13310 fi
13311 fi
13312 STRIP=$ac_cv_prog_STRIP
13313 if test -n "$STRIP"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13315 $as_echo "$STRIP" >&6; }
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318 $as_echo "no" >&6; }
13319 fi
13320
13321
13322 fi
13323 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13325 set dummy ${ncn_progname}; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_prog_STRIP+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test -n "$STRIP"; then
13332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13333 else
13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335 for as_dir in $PATH
13336 do
13337 IFS=$as_save_IFS
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_STRIP="${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13343 break 2
13344 fi
13345 done
13346 done
13347 IFS=$as_save_IFS
13348
13349 fi
13350 fi
13351 STRIP=$ac_cv_prog_STRIP
13352 if test -n "$STRIP"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13354 $as_echo "$STRIP" >&6; }
13355 else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359
13360
13361 fi
13362 test -n "$ac_cv_prog_STRIP" && break
13363 done
13364
13365 if test -z "$ac_cv_prog_STRIP" ; then
13366 STRIP="true"
13367 fi
13368
13369
13370
13371 if test -n "$WINDRES"; then
13372 ac_cv_prog_WINDRES=$WINDRES
13373 elif test -n "$ac_cv_prog_WINDRES"; then
13374 WINDRES=$ac_cv_prog_WINDRES
13375 fi
13376
13377 if test -n "$ac_cv_prog_WINDRES"; then
13378 for ncn_progname in windres; do
13379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13380 set dummy ${ncn_progname}; ac_word=$2
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382 $as_echo_n "checking for $ac_word... " >&6; }
13383 if ${ac_cv_prog_WINDRES+:} false; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 if test -n "$WINDRES"; then
13387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13388 else
13389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390 for as_dir in $PATH
13391 do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396 ac_cv_prog_WINDRES="${ncn_progname}"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400 done
13401 done
13402 IFS=$as_save_IFS
13403
13404 fi
13405 fi
13406 WINDRES=$ac_cv_prog_WINDRES
13407 if test -n "$WINDRES"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13409 $as_echo "$WINDRES" >&6; }
13410 else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414
13415
13416 done
13417 fi
13418
13419 for ncn_progname in windres; do
13420 if test -n "$ncn_tool_prefix"; then
13421 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13422 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_prog_WINDRES+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 if test -n "$WINDRES"; then
13429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13430 else
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440 break 2
13441 fi
13442 done
13443 done
13444 IFS=$as_save_IFS
13445
13446 fi
13447 fi
13448 WINDRES=$ac_cv_prog_WINDRES
13449 if test -n "$WINDRES"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13451 $as_echo "$WINDRES" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456
13457
13458 fi
13459 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13461 set dummy ${ncn_progname}; ac_word=$2
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13463 $as_echo_n "checking for $ac_word... " >&6; }
13464 if ${ac_cv_prog_WINDRES+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 if test -n "$WINDRES"; then
13468 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13469 else
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13477 ac_cv_prog_WINDRES="${ncn_progname}"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481 done
13482 done
13483 IFS=$as_save_IFS
13484
13485 fi
13486 fi
13487 WINDRES=$ac_cv_prog_WINDRES
13488 if test -n "$WINDRES"; then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13490 $as_echo "$WINDRES" >&6; }
13491 else
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13494 fi
13495
13496
13497 fi
13498 test -n "$ac_cv_prog_WINDRES" && break
13499 done
13500
13501 if test -z "$ac_cv_prog_WINDRES" ; then
13502 set dummy windres
13503 if test $build = $host ; then
13504 WINDRES="$2"
13505 else
13506 WINDRES="${ncn_tool_prefix}$2"
13507 fi
13508 fi
13509
13510
13511
13512 if test -n "$WINDMC"; then
13513 ac_cv_prog_WINDMC=$WINDMC
13514 elif test -n "$ac_cv_prog_WINDMC"; then
13515 WINDMC=$ac_cv_prog_WINDMC
13516 fi
13517
13518 if test -n "$ac_cv_prog_WINDMC"; then
13519 for ncn_progname in windmc; do
13520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13521 set dummy ${ncn_progname}; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if ${ac_cv_prog_WINDMC+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 if test -n "$WINDMC"; then
13528 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13529 else
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13532 do
13533 IFS=$as_save_IFS
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_prog_WINDMC="${ncn_progname}"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 break 2
13540 fi
13541 done
13542 done
13543 IFS=$as_save_IFS
13544
13545 fi
13546 fi
13547 WINDMC=$ac_cv_prog_WINDMC
13548 if test -n "$WINDMC"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13550 $as_echo "$WINDMC" >&6; }
13551 else
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13554 fi
13555
13556
13557 done
13558 fi
13559
13560 for ncn_progname in windmc; do
13561 if test -n "$ncn_tool_prefix"; then
13562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13563 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if ${ac_cv_prog_WINDMC+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 if test -n "$WINDMC"; then
13570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13571 else
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13574 do
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13579 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 break 2
13582 fi
13583 done
13584 done
13585 IFS=$as_save_IFS
13586
13587 fi
13588 fi
13589 WINDMC=$ac_cv_prog_WINDMC
13590 if test -n "$WINDMC"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13592 $as_echo "$WINDMC" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13596 fi
13597
13598
13599 fi
13600 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13602 set dummy ${ncn_progname}; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if ${ac_cv_prog_WINDMC+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 if test -n "$WINDMC"; then
13609 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13610 else
13611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612 for as_dir in $PATH
13613 do
13614 IFS=$as_save_IFS
13615 test -z "$as_dir" && as_dir=.
13616 for ac_exec_ext in '' $ac_executable_extensions; do
13617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13618 ac_cv_prog_WINDMC="${ncn_progname}"
13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13620 break 2
13621 fi
13622 done
13623 done
13624 IFS=$as_save_IFS
13625
13626 fi
13627 fi
13628 WINDMC=$ac_cv_prog_WINDMC
13629 if test -n "$WINDMC"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13631 $as_echo "$WINDMC" >&6; }
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13635 fi
13636
13637
13638 fi
13639 test -n "$ac_cv_prog_WINDMC" && break
13640 done
13641
13642 if test -z "$ac_cv_prog_WINDMC" ; then
13643 set dummy windmc
13644 if test $build = $host ; then
13645 WINDMC="$2"
13646 else
13647 WINDMC="${ncn_tool_prefix}$2"
13648 fi
13649 fi
13650
13651
13652
13653 if test -n "$OBJCOPY"; then
13654 ac_cv_prog_OBJCOPY=$OBJCOPY
13655 elif test -n "$ac_cv_prog_OBJCOPY"; then
13656 OBJCOPY=$ac_cv_prog_OBJCOPY
13657 fi
13658
13659 if test -n "$ac_cv_prog_OBJCOPY"; then
13660 for ncn_progname in objcopy; do
13661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13662 set dummy ${ncn_progname}; ac_word=$2
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664 $as_echo_n "checking for $ac_word... " >&6; }
13665 if ${ac_cv_prog_OBJCOPY+:} false; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 if test -n "$OBJCOPY"; then
13669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13670 else
13671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672 for as_dir in $PATH
13673 do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_OBJCOPY="${ncn_progname}"
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682 done
13683 done
13684 IFS=$as_save_IFS
13685
13686 fi
13687 fi
13688 OBJCOPY=$ac_cv_prog_OBJCOPY
13689 if test -n "$OBJCOPY"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13691 $as_echo "$OBJCOPY" >&6; }
13692 else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13695 fi
13696
13697
13698 done
13699 fi
13700
13701 for ncn_progname in objcopy; do
13702 if test -n "$ncn_tool_prefix"; then
13703 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13704 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706 $as_echo_n "checking for $ac_word... " >&6; }
13707 if ${ac_cv_prog_OBJCOPY+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 if test -n "$OBJCOPY"; then
13711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13712 else
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13715 do
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13720 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13723 fi
13724 done
13725 done
13726 IFS=$as_save_IFS
13727
13728 fi
13729 fi
13730 OBJCOPY=$ac_cv_prog_OBJCOPY
13731 if test -n "$OBJCOPY"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13733 $as_echo "$OBJCOPY" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13737 fi
13738
13739
13740 fi
13741 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13743 set dummy ${ncn_progname}; ac_word=$2
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if ${ac_cv_prog_OBJCOPY+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13749 if test -n "$OBJCOPY"; then
13750 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13751 else
13752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755 IFS=$as_save_IFS
13756 test -z "$as_dir" && as_dir=.
13757 for ac_exec_ext in '' $ac_executable_extensions; do
13758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759 ac_cv_prog_OBJCOPY="${ncn_progname}"
13760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 break 2
13762 fi
13763 done
13764 done
13765 IFS=$as_save_IFS
13766
13767 fi
13768 fi
13769 OBJCOPY=$ac_cv_prog_OBJCOPY
13770 if test -n "$OBJCOPY"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13772 $as_echo "$OBJCOPY" >&6; }
13773 else
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13776 fi
13777
13778
13779 fi
13780 test -n "$ac_cv_prog_OBJCOPY" && break
13781 done
13782
13783 if test -z "$ac_cv_prog_OBJCOPY" ; then
13784 set dummy objcopy
13785 if test $build = $host ; then
13786 OBJCOPY="$2"
13787 else
13788 OBJCOPY="${ncn_tool_prefix}$2"
13789 fi
13790 fi
13791
13792
13793
13794 if test -n "$OBJDUMP"; then
13795 ac_cv_prog_OBJDUMP=$OBJDUMP
13796 elif test -n "$ac_cv_prog_OBJDUMP"; then
13797 OBJDUMP=$ac_cv_prog_OBJDUMP
13798 fi
13799
13800 if test -n "$ac_cv_prog_OBJDUMP"; then
13801 for ncn_progname in objdump; do
13802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13803 set dummy ${ncn_progname}; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if ${ac_cv_prog_OBJDUMP+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$OBJDUMP"; then
13810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_OBJDUMP="${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13822 fi
13823 done
13824 done
13825 IFS=$as_save_IFS
13826
13827 fi
13828 fi
13829 OBJDUMP=$ac_cv_prog_OBJDUMP
13830 if test -n "$OBJDUMP"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13832 $as_echo "$OBJDUMP" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13836 fi
13837
13838
13839 done
13840 fi
13841
13842 for ncn_progname in objdump; do
13843 if test -n "$ncn_tool_prefix"; then
13844 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13845 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_prog_OBJDUMP+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 if test -n "$OBJDUMP"; then
13852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13853 else
13854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855 for as_dir in $PATH
13856 do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
13860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13861 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865 done
13866 done
13867 IFS=$as_save_IFS
13868
13869 fi
13870 fi
13871 OBJDUMP=$ac_cv_prog_OBJDUMP
13872 if test -n "$OBJDUMP"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13874 $as_echo "$OBJDUMP" >&6; }
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13878 fi
13879
13880
13881 fi
13882 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13884 set dummy ${ncn_progname}; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_prog_OBJDUMP+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 if test -n "$OBJDUMP"; then
13891 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13892 else
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13895 do
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_prog_OBJDUMP="${ncn_progname}"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13903 fi
13904 done
13905 done
13906 IFS=$as_save_IFS
13907
13908 fi
13909 fi
13910 OBJDUMP=$ac_cv_prog_OBJDUMP
13911 if test -n "$OBJDUMP"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13913 $as_echo "$OBJDUMP" >&6; }
13914 else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13917 fi
13918
13919
13920 fi
13921 test -n "$ac_cv_prog_OBJDUMP" && break
13922 done
13923
13924 if test -z "$ac_cv_prog_OBJDUMP" ; then
13925 set dummy objdump
13926 if test $build = $host ; then
13927 OBJDUMP="$2"
13928 else
13929 OBJDUMP="${ncn_tool_prefix}$2"
13930 fi
13931 fi
13932
13933
13934
13935 if test -n "$OTOOL"; then
13936 ac_cv_prog_OTOOL=$OTOOL
13937 elif test -n "$ac_cv_prog_OTOOL"; then
13938 OTOOL=$ac_cv_prog_OTOOL
13939 fi
13940
13941 if test -n "$ac_cv_prog_OTOOL"; then
13942 for ncn_progname in otool; do
13943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13944 set dummy ${ncn_progname}; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if ${ac_cv_prog_OTOOL+:} false; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test -n "$OTOOL"; then
13951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13955 do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13960 ac_cv_prog_OTOOL="${ncn_progname}"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964 done
13965 done
13966 IFS=$as_save_IFS
13967
13968 fi
13969 fi
13970 OTOOL=$ac_cv_prog_OTOOL
13971 if test -n "$OTOOL"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13973 $as_echo "$OTOOL" >&6; }
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977 fi
13978
13979
13980 done
13981 fi
13982
13983 for ncn_progname in otool; do
13984 if test -n "$ncn_tool_prefix"; then
13985 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13986 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if ${ac_cv_prog_OTOOL+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 if test -n "$OTOOL"; then
13993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13994 else
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13997 do
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14005 fi
14006 done
14007 done
14008 IFS=$as_save_IFS
14009
14010 fi
14011 fi
14012 OTOOL=$ac_cv_prog_OTOOL
14013 if test -n "$OTOOL"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14015 $as_echo "$OTOOL" >&6; }
14016 else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14019 fi
14020
14021
14022 fi
14023 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
14024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14025 set dummy ${ncn_progname}; ac_word=$2
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14027 $as_echo_n "checking for $ac_word... " >&6; }
14028 if ${ac_cv_prog_OTOOL+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 if test -n "$OTOOL"; then
14032 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14036 do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
14040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041 ac_cv_prog_OTOOL="${ncn_progname}"
14042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045 done
14046 done
14047 IFS=$as_save_IFS
14048
14049 fi
14050 fi
14051 OTOOL=$ac_cv_prog_OTOOL
14052 if test -n "$OTOOL"; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14054 $as_echo "$OTOOL" >&6; }
14055 else
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14057 $as_echo "no" >&6; }
14058 fi
14059
14060
14061 fi
14062 test -n "$ac_cv_prog_OTOOL" && break
14063 done
14064
14065 if test -z "$ac_cv_prog_OTOOL" ; then
14066 set dummy otool
14067 if test $build = $host ; then
14068 OTOOL="$2"
14069 else
14070 OTOOL="${ncn_tool_prefix}$2"
14071 fi
14072 fi
14073
14074
14075
14076 if test -n "$READELF"; then
14077 ac_cv_prog_READELF=$READELF
14078 elif test -n "$ac_cv_prog_READELF"; then
14079 READELF=$ac_cv_prog_READELF
14080 fi
14081
14082 if test -n "$ac_cv_prog_READELF"; then
14083 for ncn_progname in readelf; do
14084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14085 set dummy ${ncn_progname}; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if ${ac_cv_prog_READELF+:} false; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -n "$READELF"; then
14092 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14096 do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_READELF="${ncn_progname}"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105 done
14106 done
14107 IFS=$as_save_IFS
14108
14109 fi
14110 fi
14111 READELF=$ac_cv_prog_READELF
14112 if test -n "$READELF"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14114 $as_echo "$READELF" >&6; }
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14118 fi
14119
14120
14121 done
14122 fi
14123
14124 for ncn_progname in readelf; do
14125 if test -n "$ncn_tool_prefix"; then
14126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14127 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_prog_READELF+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 if test -n "$READELF"; then
14134 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14135 else
14136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137 for as_dir in $PATH
14138 do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
14141 for ac_exec_ext in '' $ac_executable_extensions; do
14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14143 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14145 break 2
14146 fi
14147 done
14148 done
14149 IFS=$as_save_IFS
14150
14151 fi
14152 fi
14153 READELF=$ac_cv_prog_READELF
14154 if test -n "$READELF"; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14156 $as_echo "$READELF" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14160 fi
14161
14162
14163 fi
14164 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14166 set dummy ${ncn_progname}; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_READELF+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 if test -n "$READELF"; then
14173 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_READELF="${ncn_progname}"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186 done
14187 done
14188 IFS=$as_save_IFS
14189
14190 fi
14191 fi
14192 READELF=$ac_cv_prog_READELF
14193 if test -n "$READELF"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14195 $as_echo "$READELF" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
14200
14201
14202 fi
14203 test -n "$ac_cv_prog_READELF" && break
14204 done
14205
14206 if test -z "$ac_cv_prog_READELF" ; then
14207 set dummy readelf
14208 if test $build = $host ; then
14209 READELF="$2"
14210 else
14211 READELF="${ncn_tool_prefix}$2"
14212 fi
14213 fi
14214
14215
14216
14217
14218
14219
14220
14221 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14222
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14225 $as_echo_n "checking for -plugin option... " >&6; }
14226
14227 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14228 plugin_option=
14229 for plugin in $plugin_names; do
14230 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14231 if test x$plugin_so = x$plugin; then
14232 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14233 fi
14234 if test x$plugin_so != x$plugin; then
14235 plugin_option="--plugin $plugin_so"
14236 break
14237 fi
14238 done
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14241 set dummy ${ac_tool_prefix}ar; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AR+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$AR"; then
14248 ac_cv_prog_AR="$AR" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AR="${ac_tool_prefix}ar"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265 fi
14266 fi
14267 AR=$ac_cv_prog_AR
14268 if test -n "$AR"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14270 $as_echo "$AR" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277 fi
14278 if test -z "$ac_cv_prog_AR"; then
14279 ac_ct_AR=$AR
14280 # Extract the first word of "ar", so it can be a program name with args.
14281 set dummy ar; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$ac_ct_AR"; then
14288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14292 do
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14297 ac_cv_prog_ac_ct_AR="ar"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14300 fi
14301 done
14302 done
14303 IFS=$as_save_IFS
14304
14305 fi
14306 fi
14307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14308 if test -n "$ac_ct_AR"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14310 $as_echo "$ac_ct_AR" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14314 fi
14315
14316 if test "x$ac_ct_AR" = x; then
14317 AR=""
14318 else
14319 case $cross_compiling:$ac_tool_warned in
14320 yes:)
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323 ac_tool_warned=yes ;;
14324 esac
14325 AR=$ac_ct_AR
14326 fi
14327 else
14328 AR="$ac_cv_prog_AR"
14329 fi
14330
14331 if test "${AR}" = "" ; then
14332 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14333 fi
14334 touch conftest.c
14335 ${AR} $plugin_option rc conftest.a conftest.c
14336 if test "$?" != 0; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14338 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14339 plugin_option=
14340 fi
14341 rm -f conftest.*
14342 if test -n "$plugin_option"; then
14343 PLUGIN_OPTION="$plugin_option"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14345 $as_echo "$plugin_option" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 fi
14350
14351 AR_PLUGIN_OPTION=
14352 RANLIB_PLUGIN_OPTION=
14353 if test -n "$PLUGIN_OPTION"; then
14354 if $AR --help 2>&1 | grep -q "\--plugin"; then
14355 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14356 fi
14357 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14358 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14359 fi
14360 fi
14361
14362
14363
14364 # Target tools.
14365
14366 # Check whether --with-build-time-tools was given.
14367 if test "${with_build_time_tools+set}" = set; then :
14368 withval=$with_build_time_tools; case x"$withval" in
14369 x/*) ;;
14370 *)
14371 with_build_time_tools=
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14373 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14374 ;;
14375 esac
14376 else
14377 with_build_time_tools=
14378 fi
14379
14380
14381
14382
14383 if test -n "$CC_FOR_TARGET"; then
14384 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14385 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14386 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14387 fi
14388
14389 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14390 for ncn_progname in cc gcc; do
14391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14392 set dummy ${ncn_progname}; ac_word=$2
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394 $as_echo_n "checking for $ac_word... " >&6; }
14395 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 if test -n "$CC_FOR_TARGET"; then
14399 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14400 else
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14403 do
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14411 fi
14412 done
14413 done
14414 IFS=$as_save_IFS
14415
14416 fi
14417 fi
14418 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14419 if test -n "$CC_FOR_TARGET"; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14421 $as_echo "$CC_FOR_TARGET" >&6; }
14422 else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425 fi
14426
14427
14428 done
14429 fi
14430
14431 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14432 for ncn_progname in cc gcc; do
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14435 if test -x $with_build_time_tools/${ncn_progname}; then
14436 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438 $as_echo "yes" >&6; }
14439 break
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14443 fi
14444 done
14445 fi
14446
14447 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14448 for ncn_progname in cc gcc; do
14449 if test -n "$ncn_target_tool_prefix"; then
14450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 if test -n "$CC_FOR_TARGET"; then
14458 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14462 do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14470 fi
14471 done
14472 done
14473 IFS=$as_save_IFS
14474
14475 fi
14476 fi
14477 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14478 if test -n "$CC_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14480 $as_echo "$CC_FOR_TARGET" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484 fi
14485
14486
14487 fi
14488 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14490 set dummy ${ncn_progname}; ac_word=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492 $as_echo_n "checking for $ac_word... " >&6; }
14493 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 if test -n "$CC_FOR_TARGET"; then
14497 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14498 else
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14501 do
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14506 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 break 2
14509 fi
14510 done
14511 done
14512 IFS=$as_save_IFS
14513
14514 fi
14515 fi
14516 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14517 if test -n "$CC_FOR_TARGET"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14519 $as_echo "$CC_FOR_TARGET" >&6; }
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14523 fi
14524
14525
14526 fi
14527 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14528 done
14529 fi
14530
14531 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14532 set dummy cc gcc
14533 if test $build = $target ; then
14534 CC_FOR_TARGET="$2"
14535 else
14536 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14537 fi
14538 else
14539 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14540 fi
14541
14542
14543
14544 if test -n "$CXX_FOR_TARGET"; then
14545 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14546 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14547 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14548 fi
14549
14550 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14551 for ncn_progname in c++ g++ cxx gxx; do
14552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14553 set dummy ${ncn_progname}; ac_word=$2
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14555 $as_echo_n "checking for $ac_word... " >&6; }
14556 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14557 $as_echo_n "(cached) " >&6
14558 else
14559 if test -n "$CXX_FOR_TARGET"; then
14560 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14561 else
14562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14564 do
14565 IFS=$as_save_IFS
14566 test -z "$as_dir" && as_dir=.
14567 for ac_exec_ext in '' $ac_executable_extensions; do
14568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14569 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14571 break 2
14572 fi
14573 done
14574 done
14575 IFS=$as_save_IFS
14576
14577 fi
14578 fi
14579 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14580 if test -n "$CXX_FOR_TARGET"; then
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14582 $as_echo "$CXX_FOR_TARGET" >&6; }
14583 else
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14585 $as_echo "no" >&6; }
14586 fi
14587
14588
14589 done
14590 fi
14591
14592 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14593 for ncn_progname in c++ g++ cxx gxx; do
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14595 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14596 if test -x $with_build_time_tools/${ncn_progname}; then
14597 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14599 $as_echo "yes" >&6; }
14600 break
14601 else
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 $as_echo "no" >&6; }
14604 fi
14605 done
14606 fi
14607
14608 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14609 for ncn_progname in c++ g++ cxx gxx; do
14610 if test -n "$ncn_target_tool_prefix"; then
14611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14612 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 if test -n "$CXX_FOR_TARGET"; then
14619 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14623 do
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14628 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14631 fi
14632 done
14633 done
14634 IFS=$as_save_IFS
14635
14636 fi
14637 fi
14638 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14639 if test -n "$CXX_FOR_TARGET"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14641 $as_echo "$CXX_FOR_TARGET" >&6; }
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14645 fi
14646
14647
14648 fi
14649 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14651 set dummy ${ncn_progname}; ac_word=$2
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653 $as_echo_n "checking for $ac_word... " >&6; }
14654 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14655 $as_echo_n "(cached) " >&6
14656 else
14657 if test -n "$CXX_FOR_TARGET"; then
14658 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14659 else
14660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14661 for as_dir in $PATH
14662 do
14663 IFS=$as_save_IFS
14664 test -z "$as_dir" && as_dir=.
14665 for ac_exec_ext in '' $ac_executable_extensions; do
14666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14667 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14669 break 2
14670 fi
14671 done
14672 done
14673 IFS=$as_save_IFS
14674
14675 fi
14676 fi
14677 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14678 if test -n "$CXX_FOR_TARGET"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14680 $as_echo "$CXX_FOR_TARGET" >&6; }
14681 else
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683 $as_echo "no" >&6; }
14684 fi
14685
14686
14687 fi
14688 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14689 done
14690 fi
14691
14692 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14693 set dummy c++ g++ cxx gxx
14694 if test $build = $target ; then
14695 CXX_FOR_TARGET="$2"
14696 else
14697 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14698 fi
14699 else
14700 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14701 fi
14702
14703
14704
14705 if test -n "$GCC_FOR_TARGET"; then
14706 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14707 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14708 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14709 fi
14710
14711 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14712 for ncn_progname in gcc; do
14713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14714 set dummy ${ncn_progname}; ac_word=$2
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 $as_echo_n "checking for $ac_word... " >&6; }
14717 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14718 $as_echo_n "(cached) " >&6
14719 else
14720 if test -n "$GCC_FOR_TARGET"; then
14721 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14722 else
14723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14724 for as_dir in $PATH
14725 do
14726 IFS=$as_save_IFS
14727 test -z "$as_dir" && as_dir=.
14728 for ac_exec_ext in '' $ac_executable_extensions; do
14729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14730 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14732 break 2
14733 fi
14734 done
14735 done
14736 IFS=$as_save_IFS
14737
14738 fi
14739 fi
14740 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14741 if test -n "$GCC_FOR_TARGET"; then
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14743 $as_echo "$GCC_FOR_TARGET" >&6; }
14744 else
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746 $as_echo "no" >&6; }
14747 fi
14748
14749
14750 done
14751 fi
14752
14753 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14754 for ncn_progname in gcc; do
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14756 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14757 if test -x $with_build_time_tools/${ncn_progname}; then
14758 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14760 $as_echo "yes" >&6; }
14761 break
14762 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14765 fi
14766 done
14767 fi
14768
14769 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14770 for ncn_progname in gcc; do
14771 if test -n "$ncn_target_tool_prefix"; then
14772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14773 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14775 $as_echo_n "checking for $ac_word... " >&6; }
14776 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 if test -n "$GCC_FOR_TARGET"; then
14780 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14781 else
14782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14783 for as_dir in $PATH
14784 do
14785 IFS=$as_save_IFS
14786 test -z "$as_dir" && as_dir=.
14787 for ac_exec_ext in '' $ac_executable_extensions; do
14788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14789 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14791 break 2
14792 fi
14793 done
14794 done
14795 IFS=$as_save_IFS
14796
14797 fi
14798 fi
14799 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14800 if test -n "$GCC_FOR_TARGET"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14802 $as_echo "$GCC_FOR_TARGET" >&6; }
14803 else
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14806 fi
14807
14808
14809 fi
14810 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14812 set dummy ${ncn_progname}; ac_word=$2
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14814 $as_echo_n "checking for $ac_word... " >&6; }
14815 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 if test -n "$GCC_FOR_TARGET"; then
14819 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14820 else
14821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822 for as_dir in $PATH
14823 do
14824 IFS=$as_save_IFS
14825 test -z "$as_dir" && as_dir=.
14826 for ac_exec_ext in '' $ac_executable_extensions; do
14827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14830 break 2
14831 fi
14832 done
14833 done
14834 IFS=$as_save_IFS
14835
14836 fi
14837 fi
14838 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14839 if test -n "$GCC_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14841 $as_echo "$GCC_FOR_TARGET" >&6; }
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14845 fi
14846
14847
14848 fi
14849 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14850 done
14851 fi
14852
14853 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14854 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14855 else
14856 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14857 fi
14858
14859
14860
14861 if test -n "$GFORTRAN_FOR_TARGET"; then
14862 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14863 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14864 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14865 fi
14866
14867 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14868 for ncn_progname in gfortran; do
14869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14870 set dummy ${ncn_progname}; ac_word=$2
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14872 $as_echo_n "checking for $ac_word... " >&6; }
14873 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 if test -n "$GFORTRAN_FOR_TARGET"; then
14877 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14878 else
14879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880 for as_dir in $PATH
14881 do
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 for ac_exec_ext in '' $ac_executable_extensions; do
14885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14886 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14888 break 2
14889 fi
14890 done
14891 done
14892 IFS=$as_save_IFS
14893
14894 fi
14895 fi
14896 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14897 if test -n "$GFORTRAN_FOR_TARGET"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14899 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14903 fi
14904
14905
14906 done
14907 fi
14908
14909 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14910 for ncn_progname in gfortran; do
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14912 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14913 if test -x $with_build_time_tools/${ncn_progname}; then
14914 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14916 $as_echo "yes" >&6; }
14917 break
14918 else
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14920 $as_echo "no" >&6; }
14921 fi
14922 done
14923 fi
14924
14925 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14926 for ncn_progname in gfortran; do
14927 if test -n "$ncn_target_tool_prefix"; then
14928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14929 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14931 $as_echo_n "checking for $ac_word... " >&6; }
14932 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934 else
14935 if test -n "$GFORTRAN_FOR_TARGET"; then
14936 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14937 else
14938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939 for as_dir in $PATH
14940 do
14941 IFS=$as_save_IFS
14942 test -z "$as_dir" && as_dir=.
14943 for ac_exec_ext in '' $ac_executable_extensions; do
14944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14945 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14947 break 2
14948 fi
14949 done
14950 done
14951 IFS=$as_save_IFS
14952
14953 fi
14954 fi
14955 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14956 if test -n "$GFORTRAN_FOR_TARGET"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14958 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14962 fi
14963
14964
14965 fi
14966 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14968 set dummy ${ncn_progname}; ac_word=$2
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14970 $as_echo_n "checking for $ac_word... " >&6; }
14971 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 if test -n "$GFORTRAN_FOR_TARGET"; then
14975 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14976 else
14977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14978 for as_dir in $PATH
14979 do
14980 IFS=$as_save_IFS
14981 test -z "$as_dir" && as_dir=.
14982 for ac_exec_ext in '' $ac_executable_extensions; do
14983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14984 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14986 break 2
14987 fi
14988 done
14989 done
14990 IFS=$as_save_IFS
14991
14992 fi
14993 fi
14994 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14995 if test -n "$GFORTRAN_FOR_TARGET"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14997 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003
15004 fi
15005 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
15006 done
15007 fi
15008
15009 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
15010 set dummy gfortran
15011 if test $build = $target ; then
15012 GFORTRAN_FOR_TARGET="$2"
15013 else
15014 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
15015 fi
15016 else
15017 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
15018 fi
15019
15020
15021
15022 if test -n "$GOC_FOR_TARGET"; then
15023 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
15024 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15025 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15026 fi
15027
15028 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15029 for ncn_progname in gccgo; do
15030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15031 set dummy ${ncn_progname}; ac_word=$2
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15033 $as_echo_n "checking for $ac_word... " >&6; }
15034 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036 else
15037 if test -n "$GOC_FOR_TARGET"; then
15038 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15039 else
15040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15041 for as_dir in $PATH
15042 do
15043 IFS=$as_save_IFS
15044 test -z "$as_dir" && as_dir=.
15045 for ac_exec_ext in '' $ac_executable_extensions; do
15046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15047 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15049 break 2
15050 fi
15051 done
15052 done
15053 IFS=$as_save_IFS
15054
15055 fi
15056 fi
15057 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15058 if test -n "$GOC_FOR_TARGET"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15060 $as_echo "$GOC_FOR_TARGET" >&6; }
15061 else
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15064 fi
15065
15066
15067 done
15068 fi
15069
15070 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15071 for ncn_progname in gccgo; do
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15073 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15074 if test -x $with_build_time_tools/${ncn_progname}; then
15075 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15078 break
15079 else
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081 $as_echo "no" >&6; }
15082 fi
15083 done
15084 fi
15085
15086 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
15087 for ncn_progname in gccgo; do
15088 if test -n "$ncn_target_tool_prefix"; then
15089 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15090 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15092 $as_echo_n "checking for $ac_word... " >&6; }
15093 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 if test -n "$GOC_FOR_TARGET"; then
15097 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15098 else
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 for as_dir in $PATH
15101 do
15102 IFS=$as_save_IFS
15103 test -z "$as_dir" && as_dir=.
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15108 break 2
15109 fi
15110 done
15111 done
15112 IFS=$as_save_IFS
15113
15114 fi
15115 fi
15116 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15117 if test -n "$GOC_FOR_TARGET"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15119 $as_echo "$GOC_FOR_TARGET" >&6; }
15120 else
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15122 $as_echo "no" >&6; }
15123 fi
15124
15125
15126 fi
15127 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15129 set dummy ${ncn_progname}; ac_word=$2
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15131 $as_echo_n "checking for $ac_word... " >&6; }
15132 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if test -n "$GOC_FOR_TARGET"; then
15136 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15137 else
15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139 for as_dir in $PATH
15140 do
15141 IFS=$as_save_IFS
15142 test -z "$as_dir" && as_dir=.
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15147 break 2
15148 fi
15149 done
15150 done
15151 IFS=$as_save_IFS
15152
15153 fi
15154 fi
15155 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15156 if test -n "$GOC_FOR_TARGET"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15158 $as_echo "$GOC_FOR_TARGET" >&6; }
15159 else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15162 fi
15163
15164
15165 fi
15166 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15167 done
15168 fi
15169
15170 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15171 set dummy gccgo
15172 if test $build = $target ; then
15173 GOC_FOR_TARGET="$2"
15174 else
15175 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15176 fi
15177 else
15178 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15179 fi
15180
15181
15182
15183 if test -n "$GDC_FOR_TARGET"; then
15184 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15185 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15186 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15187 fi
15188
15189 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15190 for ncn_progname in gdc; do
15191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15192 set dummy ${ncn_progname}; ac_word=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 $as_echo_n "checking for $ac_word... " >&6; }
15195 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15196 $as_echo_n "(cached) " >&6
15197 else
15198 if test -n "$GDC_FOR_TARGET"; then
15199 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15200 else
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15211 fi
15212 done
15213 done
15214 IFS=$as_save_IFS
15215
15216 fi
15217 fi
15218 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15219 if test -n "$GDC_FOR_TARGET"; then
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15221 $as_echo "$GDC_FOR_TARGET" >&6; }
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15225 fi
15226
15227
15228 done
15229 fi
15230
15231 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15232 for ncn_progname in gdc; do
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15234 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15235 if test -x $with_build_time_tools/${ncn_progname}; then
15236 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15238 $as_echo "yes" >&6; }
15239 break
15240 else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15243 fi
15244 done
15245 fi
15246
15247 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15248 for ncn_progname in gdc; do
15249 if test -n "$ncn_target_tool_prefix"; then
15250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15251 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15253 $as_echo_n "checking for $ac_word... " >&6; }
15254 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257 if test -n "$GDC_FOR_TARGET"; then
15258 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15259 else
15260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261 for as_dir in $PATH
15262 do
15263 IFS=$as_save_IFS
15264 test -z "$as_dir" && as_dir=.
15265 for ac_exec_ext in '' $ac_executable_extensions; do
15266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15267 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15269 break 2
15270 fi
15271 done
15272 done
15273 IFS=$as_save_IFS
15274
15275 fi
15276 fi
15277 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15278 if test -n "$GDC_FOR_TARGET"; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15280 $as_echo "$GDC_FOR_TARGET" >&6; }
15281 else
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15283 $as_echo "no" >&6; }
15284 fi
15285
15286
15287 fi
15288 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15290 set dummy ${ncn_progname}; ac_word=$2
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15292 $as_echo_n "checking for $ac_word... " >&6; }
15293 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 if test -n "$GDC_FOR_TARGET"; then
15297 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15298 else
15299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15300 for as_dir in $PATH
15301 do
15302 IFS=$as_save_IFS
15303 test -z "$as_dir" && as_dir=.
15304 for ac_exec_ext in '' $ac_executable_extensions; do
15305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15306 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15308 break 2
15309 fi
15310 done
15311 done
15312 IFS=$as_save_IFS
15313
15314 fi
15315 fi
15316 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15317 if test -n "$GDC_FOR_TARGET"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15319 $as_echo "$GDC_FOR_TARGET" >&6; }
15320 else
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15322 $as_echo "no" >&6; }
15323 fi
15324
15325
15326 fi
15327 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15328 done
15329 fi
15330
15331 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15332 set dummy gdc
15333 if test $build = $target ; then
15334 GDC_FOR_TARGET="$2"
15335 else
15336 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15337 fi
15338 else
15339 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15340 fi
15341
15342
15343
15344 if test -n "$GM2_FOR_TARGET"; then
15345 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15346 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15347 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15348 fi
15349
15350 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15351 for ncn_progname in gm2; do
15352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15353 set dummy ${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_GM2_FOR_TARGET+:} false; then :
15357 $as_echo_n "(cached) " >&6
15358 else
15359 if test -n "$GM2_FOR_TARGET"; then
15360 ac_cv_prog_GM2_FOR_TARGET="$GM2_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_GM2_FOR_TARGET="${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 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15380 if test -n "$GM2_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15382 $as_echo "$GM2_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 done
15390 fi
15391
15392 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15393 for ncn_progname in gm2; do
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15395 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15396 if test -x $with_build_time_tools/${ncn_progname}; then
15397 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15399 $as_echo "yes" >&6; }
15400 break
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 fi
15405 done
15406 fi
15407
15408 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15409 for ncn_progname in gm2; do
15410 if test -n "$ncn_target_tool_prefix"; then
15411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15412 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15414 $as_echo_n "checking for $ac_word... " >&6; }
15415 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15416 $as_echo_n "(cached) " >&6
15417 else
15418 if test -n "$GM2_FOR_TARGET"; then
15419 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15420 else
15421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15422 for as_dir in $PATH
15423 do
15424 IFS=$as_save_IFS
15425 test -z "$as_dir" && as_dir=.
15426 for ac_exec_ext in '' $ac_executable_extensions; do
15427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15428 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15430 break 2
15431 fi
15432 done
15433 done
15434 IFS=$as_save_IFS
15435
15436 fi
15437 fi
15438 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15439 if test -n "$GM2_FOR_TARGET"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15441 $as_echo "$GM2_FOR_TARGET" >&6; }
15442 else
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15444 $as_echo "no" >&6; }
15445 fi
15446
15447
15448 fi
15449 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15451 set dummy ${ncn_progname}; ac_word=$2
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15453 $as_echo_n "checking for $ac_word... " >&6; }
15454 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 if test -n "$GM2_FOR_TARGET"; then
15458 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15459 else
15460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461 for as_dir in $PATH
15462 do
15463 IFS=$as_save_IFS
15464 test -z "$as_dir" && as_dir=.
15465 for ac_exec_ext in '' $ac_executable_extensions; do
15466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15467 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15469 break 2
15470 fi
15471 done
15472 done
15473 IFS=$as_save_IFS
15474
15475 fi
15476 fi
15477 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15478 if test -n "$GM2_FOR_TARGET"; then
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15480 $as_echo "$GM2_FOR_TARGET" >&6; }
15481 else
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483 $as_echo "no" >&6; }
15484 fi
15485
15486
15487 fi
15488 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15489 done
15490 fi
15491
15492 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15493 set dummy gm2
15494 if test $build = $target ; then
15495 GM2_FOR_TARGET="$2"
15496 else
15497 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15498 fi
15499 else
15500 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15501 fi
15502
15503
15504
15505 cat > conftest.c << \EOF
15506 #ifdef __GNUC__
15507 gcc_yay;
15508 #endif
15509 EOF
15510 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15511 have_gcc_for_target=yes
15512 else
15513 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15514 have_gcc_for_target=no
15515 fi
15516 rm conftest.c
15517
15518
15519
15520
15521 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15522 if test -n "$with_build_time_tools"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15524 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15525 if test -x $with_build_time_tools/ar; then
15526 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15527 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15529 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15530 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15532 $as_echo "no" >&6; }
15533 fi
15534 elif test $build != $host && test $have_gcc_for_target = yes; then
15535 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15536 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15537 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15538 fi
15539 fi
15540 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15541 # Extract the first word of "ar", so it can be a program name with args.
15542 set dummy ar; ac_word=$2
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544 $as_echo_n "checking for $ac_word... " >&6; }
15545 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 case $AR_FOR_TARGET in
15549 [\\/]* | ?:[\\/]*)
15550 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15551 ;;
15552 *)
15553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15554 for as_dir in $gcc_cv_tool_dirs
15555 do
15556 IFS=$as_save_IFS
15557 test -z "$as_dir" && as_dir=.
15558 for ac_exec_ext in '' $ac_executable_extensions; do
15559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15560 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15562 break 2
15563 fi
15564 done
15565 done
15566 IFS=$as_save_IFS
15567
15568 ;;
15569 esac
15570 fi
15571 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15572 if test -n "$AR_FOR_TARGET"; then
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15574 $as_echo "$AR_FOR_TARGET" >&6; }
15575 else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15578 fi
15579
15580
15581 fi
15582 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15583
15584
15585 if test -n "$AR_FOR_TARGET"; then
15586 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15587 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15588 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15589 fi
15590
15591 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15592 for ncn_progname in ar; do
15593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15594 set dummy ${ncn_progname}; ac_word=$2
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15596 $as_echo_n "checking for $ac_word... " >&6; }
15597 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 if test -n "$AR_FOR_TARGET"; then
15601 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15602 else
15603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15604 for as_dir in $PATH
15605 do
15606 IFS=$as_save_IFS
15607 test -z "$as_dir" && as_dir=.
15608 for ac_exec_ext in '' $ac_executable_extensions; do
15609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15610 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15612 break 2
15613 fi
15614 done
15615 done
15616 IFS=$as_save_IFS
15617
15618 fi
15619 fi
15620 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15621 if test -n "$AR_FOR_TARGET"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15623 $as_echo "$AR_FOR_TARGET" >&6; }
15624 else
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15626 $as_echo "no" >&6; }
15627 fi
15628
15629
15630 done
15631 fi
15632
15633 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15634 for ncn_progname in ar; do
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15636 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15637 if test -x $with_build_time_tools/${ncn_progname}; then
15638 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640 $as_echo "yes" >&6; }
15641 break
15642 else
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15644 $as_echo "no" >&6; }
15645 fi
15646 done
15647 fi
15648
15649 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15650 for ncn_progname in ar; do
15651 if test -n "$ncn_target_tool_prefix"; then
15652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15653 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15655 $as_echo_n "checking for $ac_word... " >&6; }
15656 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 if test -n "$AR_FOR_TARGET"; then
15660 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15661 else
15662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15664 do
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
15667 for ac_exec_ext in '' $ac_executable_extensions; do
15668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 break 2
15672 fi
15673 done
15674 done
15675 IFS=$as_save_IFS
15676
15677 fi
15678 fi
15679 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15680 if test -n "$AR_FOR_TARGET"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15682 $as_echo "$AR_FOR_TARGET" >&6; }
15683 else
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685 $as_echo "no" >&6; }
15686 fi
15687
15688
15689 fi
15690 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15692 set dummy ${ncn_progname}; ac_word=$2
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694 $as_echo_n "checking for $ac_word... " >&6; }
15695 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 if test -n "$AR_FOR_TARGET"; then
15699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15700 else
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15703 do
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15711 fi
15712 done
15713 done
15714 IFS=$as_save_IFS
15715
15716 fi
15717 fi
15718 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15719 if test -n "$AR_FOR_TARGET"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15721 $as_echo "$AR_FOR_TARGET" >&6; }
15722 else
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15725 fi
15726
15727
15728 fi
15729 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15730 done
15731 fi
15732
15733 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15734 set dummy ar
15735 if test $build = $target ; then
15736 AR_FOR_TARGET="$2"
15737 else
15738 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15739 fi
15740 else
15741 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15742 fi
15743
15744 else
15745 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15746 fi
15747
15748
15749
15750
15751 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15752 if test -n "$with_build_time_tools"; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15754 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15755 if test -x $with_build_time_tools/as; then
15756 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15757 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15759 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15760 else
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15763 fi
15764 elif test $build != $host && test $have_gcc_for_target = yes; then
15765 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15766 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15767 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15768 fi
15769 fi
15770 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15771 # Extract the first word of "as", so it can be a program name with args.
15772 set dummy as; ac_word=$2
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774 $as_echo_n "checking for $ac_word... " >&6; }
15775 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 case $AS_FOR_TARGET in
15779 [\\/]* | ?:[\\/]*)
15780 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15781 ;;
15782 *)
15783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15784 for as_dir in $gcc_cv_tool_dirs
15785 do
15786 IFS=$as_save_IFS
15787 test -z "$as_dir" && as_dir=.
15788 for ac_exec_ext in '' $ac_executable_extensions; do
15789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15790 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15792 break 2
15793 fi
15794 done
15795 done
15796 IFS=$as_save_IFS
15797
15798 ;;
15799 esac
15800 fi
15801 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15802 if test -n "$AS_FOR_TARGET"; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15804 $as_echo "$AS_FOR_TARGET" >&6; }
15805 else
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15808 fi
15809
15810
15811 fi
15812 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15813
15814
15815 if test -n "$AS_FOR_TARGET"; then
15816 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15817 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15818 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15819 fi
15820
15821 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15822 for ncn_progname in as; do
15823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15824 set dummy ${ncn_progname}; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 if test -n "$AS_FOR_TARGET"; then
15831 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15832 else
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15843 fi
15844 done
15845 done
15846 IFS=$as_save_IFS
15847
15848 fi
15849 fi
15850 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15851 if test -n "$AS_FOR_TARGET"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15853 $as_echo "$AS_FOR_TARGET" >&6; }
15854 else
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15857 fi
15858
15859
15860 done
15861 fi
15862
15863 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15864 for ncn_progname in as; do
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15866 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15867 if test -x $with_build_time_tools/${ncn_progname}; then
15868 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15871 break
15872 else
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15875 fi
15876 done
15877 fi
15878
15879 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15880 for ncn_progname in as; do
15881 if test -n "$ncn_target_tool_prefix"; then
15882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15883 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15885 $as_echo_n "checking for $ac_word... " >&6; }
15886 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15887 $as_echo_n "(cached) " >&6
15888 else
15889 if test -n "$AS_FOR_TARGET"; then
15890 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15891 else
15892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15893 for as_dir in $PATH
15894 do
15895 IFS=$as_save_IFS
15896 test -z "$as_dir" && as_dir=.
15897 for ac_exec_ext in '' $ac_executable_extensions; do
15898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15899 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15901 break 2
15902 fi
15903 done
15904 done
15905 IFS=$as_save_IFS
15906
15907 fi
15908 fi
15909 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15910 if test -n "$AS_FOR_TARGET"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15912 $as_echo "$AS_FOR_TARGET" >&6; }
15913 else
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15916 fi
15917
15918
15919 fi
15920 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15922 set dummy ${ncn_progname}; ac_word=$2
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15924 $as_echo_n "checking for $ac_word... " >&6; }
15925 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927 else
15928 if test -n "$AS_FOR_TARGET"; then
15929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15930 else
15931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15932 for as_dir in $PATH
15933 do
15934 IFS=$as_save_IFS
15935 test -z "$as_dir" && as_dir=.
15936 for ac_exec_ext in '' $ac_executable_extensions; do
15937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15938 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15940 break 2
15941 fi
15942 done
15943 done
15944 IFS=$as_save_IFS
15945
15946 fi
15947 fi
15948 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15949 if test -n "$AS_FOR_TARGET"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15951 $as_echo "$AS_FOR_TARGET" >&6; }
15952 else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15955 fi
15956
15957
15958 fi
15959 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15960 done
15961 fi
15962
15963 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15964 set dummy as
15965 if test $build = $target ; then
15966 AS_FOR_TARGET="$2"
15967 else
15968 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15969 fi
15970 else
15971 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15972 fi
15973
15974 else
15975 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15976 fi
15977
15978
15979
15980
15981 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15982 if test -n "$with_build_time_tools"; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15984 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15985 if test -x $with_build_time_tools/dlltool; then
15986 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15987 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15989 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15990 else
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15992 $as_echo "no" >&6; }
15993 fi
15994 elif test $build != $host && test $have_gcc_for_target = yes; then
15995 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15996 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15997 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15998 fi
15999 fi
16000 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16001 # Extract the first word of "dlltool", so it can be a program name with args.
16002 set dummy dlltool; ac_word=$2
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004 $as_echo_n "checking for $ac_word... " >&6; }
16005 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 case $DLLTOOL_FOR_TARGET in
16009 [\\/]* | ?:[\\/]*)
16010 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
16011 ;;
16012 *)
16013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16014 for as_dir in $gcc_cv_tool_dirs
16015 do
16016 IFS=$as_save_IFS
16017 test -z "$as_dir" && as_dir=.
16018 for ac_exec_ext in '' $ac_executable_extensions; do
16019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16020 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16022 break 2
16023 fi
16024 done
16025 done
16026 IFS=$as_save_IFS
16027
16028 ;;
16029 esac
16030 fi
16031 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16032 if test -n "$DLLTOOL_FOR_TARGET"; then
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16034 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037 $as_echo "no" >&6; }
16038 fi
16039
16040
16041 fi
16042 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
16043
16044
16045 if test -n "$DLLTOOL_FOR_TARGET"; then
16046 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
16047 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16048 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16049 fi
16050
16051 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16052 for ncn_progname in dlltool; do
16053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16054 set dummy ${ncn_progname}; ac_word=$2
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16056 $as_echo_n "checking for $ac_word... " >&6; }
16057 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 if test -n "$DLLTOOL_FOR_TARGET"; then
16061 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16062 else
16063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16064 for as_dir in $PATH
16065 do
16066 IFS=$as_save_IFS
16067 test -z "$as_dir" && as_dir=.
16068 for ac_exec_ext in '' $ac_executable_extensions; do
16069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16070 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16072 break 2
16073 fi
16074 done
16075 done
16076 IFS=$as_save_IFS
16077
16078 fi
16079 fi
16080 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16081 if test -n "$DLLTOOL_FOR_TARGET"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16083 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16084 else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16086 $as_echo "no" >&6; }
16087 fi
16088
16089
16090 done
16091 fi
16092
16093 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16094 for ncn_progname in dlltool; do
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16096 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16097 if test -x $with_build_time_tools/${ncn_progname}; then
16098 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16101 break
16102 else
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16105 fi
16106 done
16107 fi
16108
16109 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16110 for ncn_progname in dlltool; do
16111 if test -n "$ncn_target_tool_prefix"; then
16112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16113 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 if test -n "$DLLTOOL_FOR_TARGET"; then
16120 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16121 else
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
16127 for ac_exec_ext in '' $ac_executable_extensions; do
16128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16129 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 break 2
16132 fi
16133 done
16134 done
16135 IFS=$as_save_IFS
16136
16137 fi
16138 fi
16139 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16140 if test -n "$DLLTOOL_FOR_TARGET"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16142 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16143 else
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16146 fi
16147
16148
16149 fi
16150 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16152 set dummy ${ncn_progname}; ac_word=$2
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16154 $as_echo_n "checking for $ac_word... " >&6; }
16155 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 if test -n "$DLLTOOL_FOR_TARGET"; then
16159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16160 else
16161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16162 for as_dir in $PATH
16163 do
16164 IFS=$as_save_IFS
16165 test -z "$as_dir" && as_dir=.
16166 for ac_exec_ext in '' $ac_executable_extensions; do
16167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16170 break 2
16171 fi
16172 done
16173 done
16174 IFS=$as_save_IFS
16175
16176 fi
16177 fi
16178 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16179 if test -n "$DLLTOOL_FOR_TARGET"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16181 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16182 else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16185 fi
16186
16187
16188 fi
16189 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16190 done
16191 fi
16192
16193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16194 set dummy dlltool
16195 if test $build = $target ; then
16196 DLLTOOL_FOR_TARGET="$2"
16197 else
16198 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16199 fi
16200 else
16201 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16202 fi
16203
16204 else
16205 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16206 fi
16207
16208
16209
16210
16211 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16212 if test -n "$with_build_time_tools"; then
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16214 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16215 if test -x $with_build_time_tools/dsymutil; then
16216 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16217 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16219 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16220 else
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16222 $as_echo "no" >&6; }
16223 fi
16224 elif test $build != $host && test $have_gcc_for_target = yes; then
16225 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16226 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16227 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16228 fi
16229 fi
16230 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16231 # Extract the first word of "dsymutil", so it can be a program name with args.
16232 set dummy dsymutil; ac_word=$2
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234 $as_echo_n "checking for $ac_word... " >&6; }
16235 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237 else
16238 case $DSYMUTIL_FOR_TARGET in
16239 [\\/]* | ?:[\\/]*)
16240 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16241 ;;
16242 *)
16243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16244 for as_dir in $gcc_cv_tool_dirs
16245 do
16246 IFS=$as_save_IFS
16247 test -z "$as_dir" && as_dir=.
16248 for ac_exec_ext in '' $ac_executable_extensions; do
16249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16250 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16252 break 2
16253 fi
16254 done
16255 done
16256 IFS=$as_save_IFS
16257
16258 ;;
16259 esac
16260 fi
16261 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16262 if test -n "$DSYMUTIL_FOR_TARGET"; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16264 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16265 else
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267 $as_echo "no" >&6; }
16268 fi
16269
16270
16271 fi
16272 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16273
16274
16275 if test -n "$DSYMUTIL_FOR_TARGET"; then
16276 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16277 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16278 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16279 fi
16280
16281 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16282 for ncn_progname in dsymutil; do
16283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16284 set dummy ${ncn_progname}; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 if test -n "$DSYMUTIL_FOR_TARGET"; then
16291 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16292 else
16293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294 for as_dir in $PATH
16295 do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
16298 for ac_exec_ext in '' $ac_executable_extensions; do
16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16300 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302 break 2
16303 fi
16304 done
16305 done
16306 IFS=$as_save_IFS
16307
16308 fi
16309 fi
16310 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16311 if test -n "$DSYMUTIL_FOR_TARGET"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16313 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16317 fi
16318
16319
16320 done
16321 fi
16322
16323 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16324 for ncn_progname in dsymutil; do
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16326 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16327 if test -x $with_build_time_tools/${ncn_progname}; then
16328 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16330 $as_echo "yes" >&6; }
16331 break
16332 else
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16334 $as_echo "no" >&6; }
16335 fi
16336 done
16337 fi
16338
16339 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16340 for ncn_progname in dsymutil; do
16341 if test -n "$ncn_target_tool_prefix"; then
16342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16343 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345 $as_echo_n "checking for $ac_word... " >&6; }
16346 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349 if test -n "$DSYMUTIL_FOR_TARGET"; then
16350 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16351 else
16352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16353 for as_dir in $PATH
16354 do
16355 IFS=$as_save_IFS
16356 test -z "$as_dir" && as_dir=.
16357 for ac_exec_ext in '' $ac_executable_extensions; do
16358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16359 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16361 break 2
16362 fi
16363 done
16364 done
16365 IFS=$as_save_IFS
16366
16367 fi
16368 fi
16369 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16370 if test -n "$DSYMUTIL_FOR_TARGET"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16372 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16373 else
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375 $as_echo "no" >&6; }
16376 fi
16377
16378
16379 fi
16380 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16382 set dummy ${ncn_progname}; ac_word=$2
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16384 $as_echo_n "checking for $ac_word... " >&6; }
16385 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387 else
16388 if test -n "$DSYMUTIL_FOR_TARGET"; then
16389 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16390 else
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16393 do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16400 break 2
16401 fi
16402 done
16403 done
16404 IFS=$as_save_IFS
16405
16406 fi
16407 fi
16408 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16409 if test -n "$DSYMUTIL_FOR_TARGET"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16411 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16412 else
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16415 fi
16416
16417
16418 fi
16419 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16420 done
16421 fi
16422
16423 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16424 set dummy dsymutil
16425 if test $build = $target ; then
16426 DSYMUTIL_FOR_TARGET="$2"
16427 else
16428 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16429 fi
16430 else
16431 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16432 fi
16433
16434 else
16435 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16436 fi
16437
16438
16439
16440
16441 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16442 if test -n "$with_build_time_tools"; then
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16444 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16445 if test -x $with_build_time_tools/ld; then
16446 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16447 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16449 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16450 else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453 fi
16454 elif test $build != $host && test $have_gcc_for_target = yes; then
16455 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16456 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16457 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16458 fi
16459 fi
16460 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16461 # Extract the first word of "ld", so it can be a program name with args.
16462 set dummy ld; ac_word=$2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464 $as_echo_n "checking for $ac_word... " >&6; }
16465 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 case $LD_FOR_TARGET in
16469 [\\/]* | ?:[\\/]*)
16470 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16471 ;;
16472 *)
16473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16474 for as_dir in $gcc_cv_tool_dirs
16475 do
16476 IFS=$as_save_IFS
16477 test -z "$as_dir" && as_dir=.
16478 for ac_exec_ext in '' $ac_executable_extensions; do
16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16480 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16482 break 2
16483 fi
16484 done
16485 done
16486 IFS=$as_save_IFS
16487
16488 ;;
16489 esac
16490 fi
16491 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16492 if test -n "$LD_FOR_TARGET"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16494 $as_echo "$LD_FOR_TARGET" >&6; }
16495 else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497 $as_echo "no" >&6; }
16498 fi
16499
16500
16501 fi
16502 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16503
16504
16505 if test -n "$LD_FOR_TARGET"; then
16506 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16507 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16508 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16509 fi
16510
16511 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16512 for ncn_progname in ld; do
16513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16514 set dummy ${ncn_progname}; ac_word=$2
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 if test -n "$LD_FOR_TARGET"; then
16521 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16522 else
16523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16524 for as_dir in $PATH
16525 do
16526 IFS=$as_save_IFS
16527 test -z "$as_dir" && as_dir=.
16528 for ac_exec_ext in '' $ac_executable_extensions; do
16529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16530 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 break 2
16533 fi
16534 done
16535 done
16536 IFS=$as_save_IFS
16537
16538 fi
16539 fi
16540 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16541 if test -n "$LD_FOR_TARGET"; then
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16543 $as_echo "$LD_FOR_TARGET" >&6; }
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16547 fi
16548
16549
16550 done
16551 fi
16552
16553 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16554 for ncn_progname in ld; do
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16556 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16557 if test -x $with_build_time_tools/${ncn_progname}; then
16558 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16560 $as_echo "yes" >&6; }
16561 break
16562 else
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16565 fi
16566 done
16567 fi
16568
16569 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16570 for ncn_progname in ld; do
16571 if test -n "$ncn_target_tool_prefix"; then
16572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16573 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16575 $as_echo_n "checking for $ac_word... " >&6; }
16576 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578 else
16579 if test -n "$LD_FOR_TARGET"; then
16580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16581 else
16582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583 for as_dir in $PATH
16584 do
16585 IFS=$as_save_IFS
16586 test -z "$as_dir" && as_dir=.
16587 for ac_exec_ext in '' $ac_executable_extensions; do
16588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16589 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16591 break 2
16592 fi
16593 done
16594 done
16595 IFS=$as_save_IFS
16596
16597 fi
16598 fi
16599 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16600 if test -n "$LD_FOR_TARGET"; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16602 $as_echo "$LD_FOR_TARGET" >&6; }
16603 else
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16605 $as_echo "no" >&6; }
16606 fi
16607
16608
16609 fi
16610 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16612 set dummy ${ncn_progname}; ac_word=$2
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614 $as_echo_n "checking for $ac_word... " >&6; }
16615 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 if test -n "$LD_FOR_TARGET"; then
16619 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16620 else
16621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622 for as_dir in $PATH
16623 do
16624 IFS=$as_save_IFS
16625 test -z "$as_dir" && as_dir=.
16626 for ac_exec_ext in '' $ac_executable_extensions; do
16627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16628 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16630 break 2
16631 fi
16632 done
16633 done
16634 IFS=$as_save_IFS
16635
16636 fi
16637 fi
16638 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16639 if test -n "$LD_FOR_TARGET"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16641 $as_echo "$LD_FOR_TARGET" >&6; }
16642 else
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16645 fi
16646
16647
16648 fi
16649 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16650 done
16651 fi
16652
16653 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16654 set dummy ld
16655 if test $build = $target ; then
16656 LD_FOR_TARGET="$2"
16657 else
16658 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16659 fi
16660 else
16661 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16662 fi
16663
16664 else
16665 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16666 fi
16667
16668
16669
16670
16671 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16672 if test -n "$with_build_time_tools"; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16674 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16675 if test -x $with_build_time_tools/lipo; then
16676 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16677 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16679 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16680 else
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16682 $as_echo "no" >&6; }
16683 fi
16684 elif test $build != $host && test $have_gcc_for_target = yes; then
16685 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16686 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16687 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16688 fi
16689 fi
16690 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16691 # Extract the first word of "lipo", so it can be a program name with args.
16692 set dummy lipo; ac_word=$2
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694 $as_echo_n "checking for $ac_word... " >&6; }
16695 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 case $LIPO_FOR_TARGET in
16699 [\\/]* | ?:[\\/]*)
16700 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16701 ;;
16702 *)
16703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16704 for as_dir in $gcc_cv_tool_dirs
16705 do
16706 IFS=$as_save_IFS
16707 test -z "$as_dir" && as_dir=.
16708 for ac_exec_ext in '' $ac_executable_extensions; do
16709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16710 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16712 break 2
16713 fi
16714 done
16715 done
16716 IFS=$as_save_IFS
16717
16718 ;;
16719 esac
16720 fi
16721 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16722 if test -n "$LIPO_FOR_TARGET"; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16724 $as_echo "$LIPO_FOR_TARGET" >&6; }
16725 else
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16727 $as_echo "no" >&6; }
16728 fi
16729
16730
16731 fi
16732 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16733
16734
16735 if test -n "$LIPO_FOR_TARGET"; then
16736 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16737 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16738 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16739 fi
16740
16741 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16742 for ncn_progname in lipo; do
16743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16744 set dummy ${ncn_progname}; ac_word=$2
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16746 $as_echo_n "checking for $ac_word... " >&6; }
16747 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 if test -n "$LIPO_FOR_TARGET"; then
16751 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16752 else
16753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754 for as_dir in $PATH
16755 do
16756 IFS=$as_save_IFS
16757 test -z "$as_dir" && as_dir=.
16758 for ac_exec_ext in '' $ac_executable_extensions; do
16759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16760 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16762 break 2
16763 fi
16764 done
16765 done
16766 IFS=$as_save_IFS
16767
16768 fi
16769 fi
16770 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16771 if test -n "$LIPO_FOR_TARGET"; then
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16773 $as_echo "$LIPO_FOR_TARGET" >&6; }
16774 else
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16776 $as_echo "no" >&6; }
16777 fi
16778
16779
16780 done
16781 fi
16782
16783 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16784 for ncn_progname in lipo; do
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16787 if test -x $with_build_time_tools/${ncn_progname}; then
16788 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16791 break
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794 $as_echo "no" >&6; }
16795 fi
16796 done
16797 fi
16798
16799 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16800 for ncn_progname in lipo; do
16801 if test -n "$ncn_target_tool_prefix"; then
16802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16805 $as_echo_n "checking for $ac_word... " >&6; }
16806 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 if test -n "$LIPO_FOR_TARGET"; then
16810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16811 else
16812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813 for as_dir in $PATH
16814 do
16815 IFS=$as_save_IFS
16816 test -z "$as_dir" && as_dir=.
16817 for ac_exec_ext in '' $ac_executable_extensions; do
16818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16821 break 2
16822 fi
16823 done
16824 done
16825 IFS=$as_save_IFS
16826
16827 fi
16828 fi
16829 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16830 if test -n "$LIPO_FOR_TARGET"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16832 $as_echo "$LIPO_FOR_TARGET" >&6; }
16833 else
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835 $as_echo "no" >&6; }
16836 fi
16837
16838
16839 fi
16840 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16842 set dummy ${ncn_progname}; ac_word=$2
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16844 $as_echo_n "checking for $ac_word... " >&6; }
16845 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16846 $as_echo_n "(cached) " >&6
16847 else
16848 if test -n "$LIPO_FOR_TARGET"; then
16849 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16850 else
16851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852 for as_dir in $PATH
16853 do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
16856 for ac_exec_ext in '' $ac_executable_extensions; do
16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16858 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16860 break 2
16861 fi
16862 done
16863 done
16864 IFS=$as_save_IFS
16865
16866 fi
16867 fi
16868 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16869 if test -n "$LIPO_FOR_TARGET"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16871 $as_echo "$LIPO_FOR_TARGET" >&6; }
16872 else
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16874 $as_echo "no" >&6; }
16875 fi
16876
16877
16878 fi
16879 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16880 done
16881 fi
16882
16883 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16884 set dummy lipo
16885 if test $build = $target ; then
16886 LIPO_FOR_TARGET="$2"
16887 else
16888 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16889 fi
16890 else
16891 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16892 fi
16893
16894 else
16895 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16896 fi
16897
16898
16899
16900
16901 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16902 if test -n "$with_build_time_tools"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16904 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16905 if test -x $with_build_time_tools/nm; then
16906 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16907 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16909 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16910 else
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16912 $as_echo "no" >&6; }
16913 fi
16914 elif test $build != $host && test $have_gcc_for_target = yes; then
16915 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16916 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16917 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16918 fi
16919 fi
16920 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16921 # Extract the first word of "nm", so it can be a program name with args.
16922 set dummy nm; ac_word=$2
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924 $as_echo_n "checking for $ac_word... " >&6; }
16925 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16926 $as_echo_n "(cached) " >&6
16927 else
16928 case $NM_FOR_TARGET in
16929 [\\/]* | ?:[\\/]*)
16930 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16931 ;;
16932 *)
16933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16934 for as_dir in $gcc_cv_tool_dirs
16935 do
16936 IFS=$as_save_IFS
16937 test -z "$as_dir" && as_dir=.
16938 for ac_exec_ext in '' $ac_executable_extensions; do
16939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16940 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16942 break 2
16943 fi
16944 done
16945 done
16946 IFS=$as_save_IFS
16947
16948 ;;
16949 esac
16950 fi
16951 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16952 if test -n "$NM_FOR_TARGET"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16954 $as_echo "$NM_FOR_TARGET" >&6; }
16955 else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16957 $as_echo "no" >&6; }
16958 fi
16959
16960
16961 fi
16962 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16963
16964
16965 if test -n "$NM_FOR_TARGET"; then
16966 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16967 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16968 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16969 fi
16970
16971 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16972 for ncn_progname in nm; do
16973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16974 set dummy ${ncn_progname}; ac_word=$2
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 $as_echo_n "checking for $ac_word... " >&6; }
16977 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16978 $as_echo_n "(cached) " >&6
16979 else
16980 if test -n "$NM_FOR_TARGET"; then
16981 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16982 else
16983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16985 do
16986 IFS=$as_save_IFS
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16992 break 2
16993 fi
16994 done
16995 done
16996 IFS=$as_save_IFS
16997
16998 fi
16999 fi
17000 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17001 if test -n "$NM_FOR_TARGET"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17003 $as_echo "$NM_FOR_TARGET" >&6; }
17004 else
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006 $as_echo "no" >&6; }
17007 fi
17008
17009
17010 done
17011 fi
17012
17013 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
17014 for ncn_progname in nm; do
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17016 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17017 if test -x $with_build_time_tools/${ncn_progname}; then
17018 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020 $as_echo "yes" >&6; }
17021 break
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025 fi
17026 done
17027 fi
17028
17029 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
17030 for ncn_progname in nm; do
17031 if test -n "$ncn_target_tool_prefix"; then
17032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17033 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17035 $as_echo_n "checking for $ac_word... " >&6; }
17036 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 if test -n "$NM_FOR_TARGET"; then
17040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17041 else
17042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043 for as_dir in $PATH
17044 do
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17049 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17052 fi
17053 done
17054 done
17055 IFS=$as_save_IFS
17056
17057 fi
17058 fi
17059 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17060 if test -n "$NM_FOR_TARGET"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17062 $as_echo "$NM_FOR_TARGET" >&6; }
17063 else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17065 $as_echo "no" >&6; }
17066 fi
17067
17068
17069 fi
17070 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
17071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17072 set dummy ${ncn_progname}; ac_word=$2
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17074 $as_echo_n "checking for $ac_word... " >&6; }
17075 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17076 $as_echo_n "(cached) " >&6
17077 else
17078 if test -n "$NM_FOR_TARGET"; then
17079 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17080 else
17081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17082 for as_dir in $PATH
17083 do
17084 IFS=$as_save_IFS
17085 test -z "$as_dir" && as_dir=.
17086 for ac_exec_ext in '' $ac_executable_extensions; do
17087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17088 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
17089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17090 break 2
17091 fi
17092 done
17093 done
17094 IFS=$as_save_IFS
17095
17096 fi
17097 fi
17098 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17099 if test -n "$NM_FOR_TARGET"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17101 $as_echo "$NM_FOR_TARGET" >&6; }
17102 else
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 $as_echo "no" >&6; }
17105 fi
17106
17107
17108 fi
17109 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17110 done
17111 fi
17112
17113 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17114 set dummy nm
17115 if test $build = $target ; then
17116 NM_FOR_TARGET="$2"
17117 else
17118 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17119 fi
17120 else
17121 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17122 fi
17123
17124 else
17125 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17126 fi
17127
17128
17129
17130
17131 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17132 if test -n "$with_build_time_tools"; then
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17134 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17135 if test -x $with_build_time_tools/objcopy; then
17136 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17137 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17139 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17143 fi
17144 elif test $build != $host && test $have_gcc_for_target = yes; then
17145 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17146 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17147 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17148 fi
17149 fi
17150 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17151 # Extract the first word of "objcopy", so it can be a program name with args.
17152 set dummy objcopy; ac_word=$2
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154 $as_echo_n "checking for $ac_word... " >&6; }
17155 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17156 $as_echo_n "(cached) " >&6
17157 else
17158 case $OBJCOPY_FOR_TARGET in
17159 [\\/]* | ?:[\\/]*)
17160 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17161 ;;
17162 *)
17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17164 for as_dir in $gcc_cv_tool_dirs
17165 do
17166 IFS=$as_save_IFS
17167 test -z "$as_dir" && as_dir=.
17168 for ac_exec_ext in '' $ac_executable_extensions; do
17169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17170 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17172 break 2
17173 fi
17174 done
17175 done
17176 IFS=$as_save_IFS
17177
17178 ;;
17179 esac
17180 fi
17181 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17182 if test -n "$OBJCOPY_FOR_TARGET"; then
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17184 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17185 else
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187 $as_echo "no" >&6; }
17188 fi
17189
17190
17191 fi
17192 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17193
17194
17195 if test -n "$OBJCOPY_FOR_TARGET"; then
17196 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17197 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17198 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17199 fi
17200
17201 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17202 for ncn_progname in objcopy; do
17203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17204 set dummy ${ncn_progname}; ac_word=$2
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17206 $as_echo_n "checking for $ac_word... " >&6; }
17207 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 if test -n "$OBJCOPY_FOR_TARGET"; then
17211 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17212 else
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17215 do
17216 IFS=$as_save_IFS
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17222 break 2
17223 fi
17224 done
17225 done
17226 IFS=$as_save_IFS
17227
17228 fi
17229 fi
17230 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17231 if test -n "$OBJCOPY_FOR_TARGET"; then
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17233 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17234 else
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 $as_echo "no" >&6; }
17237 fi
17238
17239
17240 done
17241 fi
17242
17243 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17244 for ncn_progname in objcopy; do
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17246 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17247 if test -x $with_build_time_tools/${ncn_progname}; then
17248 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250 $as_echo "yes" >&6; }
17251 break
17252 else
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17255 fi
17256 done
17257 fi
17258
17259 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17260 for ncn_progname in objcopy; do
17261 if test -n "$ncn_target_tool_prefix"; then
17262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17263 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17265 $as_echo_n "checking for $ac_word... " >&6; }
17266 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 if test -n "$OBJCOPY_FOR_TARGET"; then
17270 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17271 else
17272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273 for as_dir in $PATH
17274 do
17275 IFS=$as_save_IFS
17276 test -z "$as_dir" && as_dir=.
17277 for ac_exec_ext in '' $ac_executable_extensions; do
17278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17279 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17281 break 2
17282 fi
17283 done
17284 done
17285 IFS=$as_save_IFS
17286
17287 fi
17288 fi
17289 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17290 if test -n "$OBJCOPY_FOR_TARGET"; then
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17292 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17296 fi
17297
17298
17299 fi
17300 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17302 set dummy ${ncn_progname}; ac_word=$2
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17304 $as_echo_n "checking for $ac_word... " >&6; }
17305 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307 else
17308 if test -n "$OBJCOPY_FOR_TARGET"; then
17309 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17310 else
17311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17312 for as_dir in $PATH
17313 do
17314 IFS=$as_save_IFS
17315 test -z "$as_dir" && as_dir=.
17316 for ac_exec_ext in '' $ac_executable_extensions; do
17317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17318 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17320 break 2
17321 fi
17322 done
17323 done
17324 IFS=$as_save_IFS
17325
17326 fi
17327 fi
17328 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17329 if test -n "$OBJCOPY_FOR_TARGET"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17331 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17332 else
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335 fi
17336
17337
17338 fi
17339 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17340 done
17341 fi
17342
17343 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17344 set dummy objcopy
17345 if test $build = $target ; then
17346 OBJCOPY_FOR_TARGET="$2"
17347 else
17348 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17349 fi
17350 else
17351 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17352 fi
17353
17354 else
17355 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17356 fi
17357
17358
17359
17360
17361 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17362 if test -n "$with_build_time_tools"; then
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17364 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17365 if test -x $with_build_time_tools/objdump; then
17366 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17367 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17369 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17370 else
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17373 fi
17374 elif test $build != $host && test $have_gcc_for_target = yes; then
17375 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17376 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17377 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17378 fi
17379 fi
17380 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17381 # Extract the first word of "objdump", so it can be a program name with args.
17382 set dummy objdump; ac_word=$2
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384 $as_echo_n "checking for $ac_word... " >&6; }
17385 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 case $OBJDUMP_FOR_TARGET in
17389 [\\/]* | ?:[\\/]*)
17390 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17391 ;;
17392 *)
17393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394 for as_dir in $gcc_cv_tool_dirs
17395 do
17396 IFS=$as_save_IFS
17397 test -z "$as_dir" && as_dir=.
17398 for ac_exec_ext in '' $ac_executable_extensions; do
17399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17402 break 2
17403 fi
17404 done
17405 done
17406 IFS=$as_save_IFS
17407
17408 ;;
17409 esac
17410 fi
17411 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17412 if test -n "$OBJDUMP_FOR_TARGET"; then
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17414 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17415 else
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417 $as_echo "no" >&6; }
17418 fi
17419
17420
17421 fi
17422 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17423
17424
17425 if test -n "$OBJDUMP_FOR_TARGET"; then
17426 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17427 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17428 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17429 fi
17430
17431 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17432 for ncn_progname in objdump; do
17433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17434 set dummy ${ncn_progname}; ac_word=$2
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 $as_echo_n "checking for $ac_word... " >&6; }
17437 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 if test -n "$OBJDUMP_FOR_TARGET"; then
17441 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17442 else
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17445 do
17446 IFS=$as_save_IFS
17447 test -z "$as_dir" && as_dir=.
17448 for ac_exec_ext in '' $ac_executable_extensions; do
17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17452 break 2
17453 fi
17454 done
17455 done
17456 IFS=$as_save_IFS
17457
17458 fi
17459 fi
17460 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17461 if test -n "$OBJDUMP_FOR_TARGET"; then
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17463 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17464 else
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 $as_echo "no" >&6; }
17467 fi
17468
17469
17470 done
17471 fi
17472
17473 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17474 for ncn_progname in objdump; do
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17476 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17477 if test -x $with_build_time_tools/${ncn_progname}; then
17478 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17480 $as_echo "yes" >&6; }
17481 break
17482 else
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17484 $as_echo "no" >&6; }
17485 fi
17486 done
17487 fi
17488
17489 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17490 for ncn_progname in objdump; do
17491 if test -n "$ncn_target_tool_prefix"; then
17492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17493 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17495 $as_echo_n "checking for $ac_word... " >&6; }
17496 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 if test -n "$OBJDUMP_FOR_TARGET"; then
17500 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17501 else
17502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17503 for as_dir in $PATH
17504 do
17505 IFS=$as_save_IFS
17506 test -z "$as_dir" && as_dir=.
17507 for ac_exec_ext in '' $ac_executable_extensions; do
17508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17509 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17511 break 2
17512 fi
17513 done
17514 done
17515 IFS=$as_save_IFS
17516
17517 fi
17518 fi
17519 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17520 if test -n "$OBJDUMP_FOR_TARGET"; then
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17522 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17523 else
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17525 $as_echo "no" >&6; }
17526 fi
17527
17528
17529 fi
17530 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17532 set dummy ${ncn_progname}; ac_word=$2
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17534 $as_echo_n "checking for $ac_word... " >&6; }
17535 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17538 if test -n "$OBJDUMP_FOR_TARGET"; then
17539 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17540 else
17541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17542 for as_dir in $PATH
17543 do
17544 IFS=$as_save_IFS
17545 test -z "$as_dir" && as_dir=.
17546 for ac_exec_ext in '' $ac_executable_extensions; do
17547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17548 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17550 break 2
17551 fi
17552 done
17553 done
17554 IFS=$as_save_IFS
17555
17556 fi
17557 fi
17558 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17559 if test -n "$OBJDUMP_FOR_TARGET"; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17561 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17562 else
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17564 $as_echo "no" >&6; }
17565 fi
17566
17567
17568 fi
17569 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17570 done
17571 fi
17572
17573 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17574 set dummy objdump
17575 if test $build = $target ; then
17576 OBJDUMP_FOR_TARGET="$2"
17577 else
17578 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17579 fi
17580 else
17581 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17582 fi
17583
17584 else
17585 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17586 fi
17587
17588
17589
17590
17591 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17592 if test -n "$with_build_time_tools"; then
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17594 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17595 if test -x $with_build_time_tools/otool; then
17596 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17597 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17599 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17600 else
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602 $as_echo "no" >&6; }
17603 fi
17604 elif test $build != $host && test $have_gcc_for_target = yes; then
17605 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17606 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17607 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17608 fi
17609 fi
17610 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17611 # Extract the first word of "otool", so it can be a program name with args.
17612 set dummy otool; ac_word=$2
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614 $as_echo_n "checking for $ac_word... " >&6; }
17615 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17616 $as_echo_n "(cached) " >&6
17617 else
17618 case $OTOOL_FOR_TARGET in
17619 [\\/]* | ?:[\\/]*)
17620 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17621 ;;
17622 *)
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624 for as_dir in $gcc_cv_tool_dirs
17625 do
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
17628 for ac_exec_ext in '' $ac_executable_extensions; do
17629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17630 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632 break 2
17633 fi
17634 done
17635 done
17636 IFS=$as_save_IFS
17637
17638 ;;
17639 esac
17640 fi
17641 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17642 if test -n "$OTOOL_FOR_TARGET"; then
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17644 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17645 else
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17648 fi
17649
17650
17651 fi
17652 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17653
17654
17655 if test -n "$OTOOL_FOR_TARGET"; then
17656 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17657 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17658 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17659 fi
17660
17661 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17662 for ncn_progname in otool; do
17663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17664 set dummy ${ncn_progname}; ac_word=$2
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 $as_echo_n "checking for $ac_word... " >&6; }
17667 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17668 $as_echo_n "(cached) " >&6
17669 else
17670 if test -n "$OTOOL_FOR_TARGET"; then
17671 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17672 else
17673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17674 for as_dir in $PATH
17675 do
17676 IFS=$as_save_IFS
17677 test -z "$as_dir" && as_dir=.
17678 for ac_exec_ext in '' $ac_executable_extensions; do
17679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17680 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17682 break 2
17683 fi
17684 done
17685 done
17686 IFS=$as_save_IFS
17687
17688 fi
17689 fi
17690 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17691 if test -n "$OTOOL_FOR_TARGET"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17693 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17694 else
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 $as_echo "no" >&6; }
17697 fi
17698
17699
17700 done
17701 fi
17702
17703 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17704 for ncn_progname in otool; do
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17706 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17707 if test -x $with_build_time_tools/${ncn_progname}; then
17708 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17710 $as_echo "yes" >&6; }
17711 break
17712 else
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715 fi
17716 done
17717 fi
17718
17719 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17720 for ncn_progname in otool; do
17721 if test -n "$ncn_target_tool_prefix"; then
17722 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17723 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17725 $as_echo_n "checking for $ac_word... " >&6; }
17726 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17727 $as_echo_n "(cached) " >&6
17728 else
17729 if test -n "$OTOOL_FOR_TARGET"; then
17730 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17731 else
17732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733 for as_dir in $PATH
17734 do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
17737 for ac_exec_ext in '' $ac_executable_extensions; do
17738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 break 2
17742 fi
17743 done
17744 done
17745 IFS=$as_save_IFS
17746
17747 fi
17748 fi
17749 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17750 if test -n "$OTOOL_FOR_TARGET"; then
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17752 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17753 else
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17755 $as_echo "no" >&6; }
17756 fi
17757
17758
17759 fi
17760 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17762 set dummy ${ncn_progname}; ac_word=$2
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17764 $as_echo_n "checking for $ac_word... " >&6; }
17765 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 if test -n "$OTOOL_FOR_TARGET"; then
17769 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17770 else
17771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772 for as_dir in $PATH
17773 do
17774 IFS=$as_save_IFS
17775 test -z "$as_dir" && as_dir=.
17776 for ac_exec_ext in '' $ac_executable_extensions; do
17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17778 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17780 break 2
17781 fi
17782 done
17783 done
17784 IFS=$as_save_IFS
17785
17786 fi
17787 fi
17788 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17789 if test -n "$OTOOL_FOR_TARGET"; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17791 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17792 else
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17794 $as_echo "no" >&6; }
17795 fi
17796
17797
17798 fi
17799 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17800 done
17801 fi
17802
17803 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17804 set dummy otool
17805 if test $build = $target ; then
17806 OTOOL_FOR_TARGET="$2"
17807 else
17808 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17809 fi
17810 else
17811 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17812 fi
17813
17814 else
17815 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17816 fi
17817
17818
17819
17820
17821 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17822 if test -n "$with_build_time_tools"; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17824 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17825 if test -x $with_build_time_tools/ranlib; then
17826 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17827 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17829 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17830 else
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17832 $as_echo "no" >&6; }
17833 fi
17834 elif test $build != $host && test $have_gcc_for_target = yes; then
17835 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17836 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17837 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17838 fi
17839 fi
17840 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17841 # Extract the first word of "ranlib", so it can be a program name with args.
17842 set dummy ranlib; ac_word=$2
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844 $as_echo_n "checking for $ac_word... " >&6; }
17845 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17846 $as_echo_n "(cached) " >&6
17847 else
17848 case $RANLIB_FOR_TARGET in
17849 [\\/]* | ?:[\\/]*)
17850 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17851 ;;
17852 *)
17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17854 for as_dir in $gcc_cv_tool_dirs
17855 do
17856 IFS=$as_save_IFS
17857 test -z "$as_dir" && as_dir=.
17858 for ac_exec_ext in '' $ac_executable_extensions; do
17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17860 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17862 break 2
17863 fi
17864 done
17865 done
17866 IFS=$as_save_IFS
17867
17868 ;;
17869 esac
17870 fi
17871 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17872 if test -n "$RANLIB_FOR_TARGET"; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17874 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17875 else
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17877 $as_echo "no" >&6; }
17878 fi
17879
17880
17881 fi
17882 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17883
17884
17885 if test -n "$RANLIB_FOR_TARGET"; then
17886 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17887 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17888 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17889 fi
17890
17891 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17892 for ncn_progname in ranlib; do
17893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17894 set dummy ${ncn_progname}; ac_word=$2
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17896 $as_echo_n "checking for $ac_word... " >&6; }
17897 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17898 $as_echo_n "(cached) " >&6
17899 else
17900 if test -n "$RANLIB_FOR_TARGET"; then
17901 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17902 else
17903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17904 for as_dir in $PATH
17905 do
17906 IFS=$as_save_IFS
17907 test -z "$as_dir" && as_dir=.
17908 for ac_exec_ext in '' $ac_executable_extensions; do
17909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17910 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17912 break 2
17913 fi
17914 done
17915 done
17916 IFS=$as_save_IFS
17917
17918 fi
17919 fi
17920 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17921 if test -n "$RANLIB_FOR_TARGET"; then
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17923 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17924 else
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17927 fi
17928
17929
17930 done
17931 fi
17932
17933 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17934 for ncn_progname in ranlib; do
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17936 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17937 if test -x $with_build_time_tools/${ncn_progname}; then
17938 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17940 $as_echo "yes" >&6; }
17941 break
17942 else
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 $as_echo "no" >&6; }
17945 fi
17946 done
17947 fi
17948
17949 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17950 for ncn_progname in ranlib; do
17951 if test -n "$ncn_target_tool_prefix"; then
17952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17953 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17955 $as_echo_n "checking for $ac_word... " >&6; }
17956 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958 else
17959 if test -n "$RANLIB_FOR_TARGET"; then
17960 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17961 else
17962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17963 for as_dir in $PATH
17964 do
17965 IFS=$as_save_IFS
17966 test -z "$as_dir" && as_dir=.
17967 for ac_exec_ext in '' $ac_executable_extensions; do
17968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17969 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17971 break 2
17972 fi
17973 done
17974 done
17975 IFS=$as_save_IFS
17976
17977 fi
17978 fi
17979 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17980 if test -n "$RANLIB_FOR_TARGET"; then
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17982 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17983 else
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17985 $as_echo "no" >&6; }
17986 fi
17987
17988
17989 fi
17990 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17992 set dummy ${ncn_progname}; ac_word=$2
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17994 $as_echo_n "checking for $ac_word... " >&6; }
17995 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17996 $as_echo_n "(cached) " >&6
17997 else
17998 if test -n "$RANLIB_FOR_TARGET"; then
17999 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
18000 else
18001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18002 for as_dir in $PATH
18003 do
18004 IFS=$as_save_IFS
18005 test -z "$as_dir" && as_dir=.
18006 for ac_exec_ext in '' $ac_executable_extensions; do
18007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18008 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
18009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18010 break 2
18011 fi
18012 done
18013 done
18014 IFS=$as_save_IFS
18015
18016 fi
18017 fi
18018 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
18019 if test -n "$RANLIB_FOR_TARGET"; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
18021 $as_echo "$RANLIB_FOR_TARGET" >&6; }
18022 else
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18025 fi
18026
18027
18028 fi
18029 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
18030 done
18031 fi
18032
18033 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
18034 set dummy ranlib
18035 if test $build = $target ; then
18036 RANLIB_FOR_TARGET="$2"
18037 else
18038 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
18039 fi
18040 else
18041 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
18042 fi
18043
18044 else
18045 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
18046 fi
18047
18048
18049
18050
18051 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18052 if test -n "$with_build_time_tools"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
18054 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
18055 if test -x $with_build_time_tools/readelf; then
18056 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
18057 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
18059 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
18060 else
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18063 fi
18064 elif test $build != $host && test $have_gcc_for_target = yes; then
18065 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
18066 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
18067 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18068 fi
18069 fi
18070 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18071 # Extract the first word of "readelf", so it can be a program name with args.
18072 set dummy readelf; ac_word=$2
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18074 $as_echo_n "checking for $ac_word... " >&6; }
18075 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
18076 $as_echo_n "(cached) " >&6
18077 else
18078 case $READELF_FOR_TARGET in
18079 [\\/]* | ?:[\\/]*)
18080 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
18081 ;;
18082 *)
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $gcc_cv_tool_dirs
18085 do
18086 IFS=$as_save_IFS
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18092 break 2
18093 fi
18094 done
18095 done
18096 IFS=$as_save_IFS
18097
18098 ;;
18099 esac
18100 fi
18101 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18102 if test -n "$READELF_FOR_TARGET"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18104 $as_echo "$READELF_FOR_TARGET" >&6; }
18105 else
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18108 fi
18109
18110
18111 fi
18112 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18113
18114
18115 if test -n "$READELF_FOR_TARGET"; then
18116 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18117 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18118 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18119 fi
18120
18121 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18122 for ncn_progname in readelf; do
18123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18124 set dummy ${ncn_progname}; ac_word=$2
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18126 $as_echo_n "checking for $ac_word... " >&6; }
18127 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18130 if test -n "$READELF_FOR_TARGET"; then
18131 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18132 else
18133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18134 for as_dir in $PATH
18135 do
18136 IFS=$as_save_IFS
18137 test -z "$as_dir" && as_dir=.
18138 for ac_exec_ext in '' $ac_executable_extensions; do
18139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18140 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18142 break 2
18143 fi
18144 done
18145 done
18146 IFS=$as_save_IFS
18147
18148 fi
18149 fi
18150 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18151 if test -n "$READELF_FOR_TARGET"; then
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18153 $as_echo "$READELF_FOR_TARGET" >&6; }
18154 else
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18157 fi
18158
18159
18160 done
18161 fi
18162
18163 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18164 for ncn_progname in readelf; do
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18166 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18167 if test -x $with_build_time_tools/${ncn_progname}; then
18168 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18170 $as_echo "yes" >&6; }
18171 break
18172 else
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18175 fi
18176 done
18177 fi
18178
18179 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18180 for ncn_progname in readelf; do
18181 if test -n "$ncn_target_tool_prefix"; then
18182 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18183 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18185 $as_echo_n "checking for $ac_word... " >&6; }
18186 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188 else
18189 if test -n "$READELF_FOR_TARGET"; then
18190 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18191 else
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18194 do
18195 IFS=$as_save_IFS
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18199 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 break 2
18202 fi
18203 done
18204 done
18205 IFS=$as_save_IFS
18206
18207 fi
18208 fi
18209 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18210 if test -n "$READELF_FOR_TARGET"; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18212 $as_echo "$READELF_FOR_TARGET" >&6; }
18213 else
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18215 $as_echo "no" >&6; }
18216 fi
18217
18218
18219 fi
18220 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18222 set dummy ${ncn_progname}; ac_word=$2
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18224 $as_echo_n "checking for $ac_word... " >&6; }
18225 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227 else
18228 if test -n "$READELF_FOR_TARGET"; then
18229 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18230 else
18231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18232 for as_dir in $PATH
18233 do
18234 IFS=$as_save_IFS
18235 test -z "$as_dir" && as_dir=.
18236 for ac_exec_ext in '' $ac_executable_extensions; do
18237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18238 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18240 break 2
18241 fi
18242 done
18243 done
18244 IFS=$as_save_IFS
18245
18246 fi
18247 fi
18248 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18249 if test -n "$READELF_FOR_TARGET"; then
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18251 $as_echo "$READELF_FOR_TARGET" >&6; }
18252 else
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18254 $as_echo "no" >&6; }
18255 fi
18256
18257
18258 fi
18259 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18260 done
18261 fi
18262
18263 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18264 set dummy readelf
18265 if test $build = $target ; then
18266 READELF_FOR_TARGET="$2"
18267 else
18268 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18269 fi
18270 else
18271 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18272 fi
18273
18274 else
18275 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18276 fi
18277
18278
18279
18280
18281 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18282 if test -n "$with_build_time_tools"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18284 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18285 if test -x $with_build_time_tools/strip; then
18286 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18287 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18289 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18290 else
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18292 $as_echo "no" >&6; }
18293 fi
18294 elif test $build != $host && test $have_gcc_for_target = yes; then
18295 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18296 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18297 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18298 fi
18299 fi
18300 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18301 # Extract the first word of "strip", so it can be a program name with args.
18302 set dummy strip; ac_word=$2
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18304 $as_echo_n "checking for $ac_word... " >&6; }
18305 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18306 $as_echo_n "(cached) " >&6
18307 else
18308 case $STRIP_FOR_TARGET in
18309 [\\/]* | ?:[\\/]*)
18310 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18311 ;;
18312 *)
18313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18314 for as_dir in $gcc_cv_tool_dirs
18315 do
18316 IFS=$as_save_IFS
18317 test -z "$as_dir" && as_dir=.
18318 for ac_exec_ext in '' $ac_executable_extensions; do
18319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18320 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18322 break 2
18323 fi
18324 done
18325 done
18326 IFS=$as_save_IFS
18327
18328 ;;
18329 esac
18330 fi
18331 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18332 if test -n "$STRIP_FOR_TARGET"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18334 $as_echo "$STRIP_FOR_TARGET" >&6; }
18335 else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337 $as_echo "no" >&6; }
18338 fi
18339
18340
18341 fi
18342 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18343
18344
18345 if test -n "$STRIP_FOR_TARGET"; then
18346 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18347 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18348 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18349 fi
18350
18351 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18352 for ncn_progname in strip; do
18353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18354 set dummy ${ncn_progname}; ac_word=$2
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18356 $as_echo_n "checking for $ac_word... " >&6; }
18357 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18358 $as_echo_n "(cached) " >&6
18359 else
18360 if test -n "$STRIP_FOR_TARGET"; then
18361 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18362 else
18363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18364 for as_dir in $PATH
18365 do
18366 IFS=$as_save_IFS
18367 test -z "$as_dir" && as_dir=.
18368 for ac_exec_ext in '' $ac_executable_extensions; do
18369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18370 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18372 break 2
18373 fi
18374 done
18375 done
18376 IFS=$as_save_IFS
18377
18378 fi
18379 fi
18380 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18381 if test -n "$STRIP_FOR_TARGET"; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18383 $as_echo "$STRIP_FOR_TARGET" >&6; }
18384 else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18387 fi
18388
18389
18390 done
18391 fi
18392
18393 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18394 for ncn_progname in strip; do
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18396 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18397 if test -x $with_build_time_tools/${ncn_progname}; then
18398 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400 $as_echo "yes" >&6; }
18401 break
18402 else
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18405 fi
18406 done
18407 fi
18408
18409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18410 for ncn_progname in strip; do
18411 if test -n "$ncn_target_tool_prefix"; then
18412 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18413 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18415 $as_echo_n "checking for $ac_word... " >&6; }
18416 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18417 $as_echo_n "(cached) " >&6
18418 else
18419 if test -n "$STRIP_FOR_TARGET"; then
18420 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18421 else
18422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18423 for as_dir in $PATH
18424 do
18425 IFS=$as_save_IFS
18426 test -z "$as_dir" && as_dir=.
18427 for ac_exec_ext in '' $ac_executable_extensions; do
18428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18429 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431 break 2
18432 fi
18433 done
18434 done
18435 IFS=$as_save_IFS
18436
18437 fi
18438 fi
18439 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18440 if test -n "$STRIP_FOR_TARGET"; then
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18442 $as_echo "$STRIP_FOR_TARGET" >&6; }
18443 else
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445 $as_echo "no" >&6; }
18446 fi
18447
18448
18449 fi
18450 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18452 set dummy ${ncn_progname}; ac_word=$2
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18454 $as_echo_n "checking for $ac_word... " >&6; }
18455 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18456 $as_echo_n "(cached) " >&6
18457 else
18458 if test -n "$STRIP_FOR_TARGET"; then
18459 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18460 else
18461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18462 for as_dir in $PATH
18463 do
18464 IFS=$as_save_IFS
18465 test -z "$as_dir" && as_dir=.
18466 for ac_exec_ext in '' $ac_executable_extensions; do
18467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18468 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18470 break 2
18471 fi
18472 done
18473 done
18474 IFS=$as_save_IFS
18475
18476 fi
18477 fi
18478 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18479 if test -n "$STRIP_FOR_TARGET"; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18481 $as_echo "$STRIP_FOR_TARGET" >&6; }
18482 else
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18485 fi
18486
18487
18488 fi
18489 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18490 done
18491 fi
18492
18493 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18494 set dummy strip
18495 if test $build = $target ; then
18496 STRIP_FOR_TARGET="$2"
18497 else
18498 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18499 fi
18500 else
18501 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18502 fi
18503
18504 else
18505 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18506 fi
18507
18508
18509
18510
18511 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18512 if test -n "$with_build_time_tools"; then
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18514 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18515 if test -x $with_build_time_tools/windres; then
18516 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18517 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18519 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18520 else
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523 fi
18524 elif test $build != $host && test $have_gcc_for_target = yes; then
18525 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18526 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18527 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18528 fi
18529 fi
18530 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18531 # Extract the first word of "windres", so it can be a program name with args.
18532 set dummy windres; ac_word=$2
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18534 $as_echo_n "checking for $ac_word... " >&6; }
18535 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18536 $as_echo_n "(cached) " >&6
18537 else
18538 case $WINDRES_FOR_TARGET in
18539 [\\/]* | ?:[\\/]*)
18540 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18541 ;;
18542 *)
18543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18544 for as_dir in $gcc_cv_tool_dirs
18545 do
18546 IFS=$as_save_IFS
18547 test -z "$as_dir" && as_dir=.
18548 for ac_exec_ext in '' $ac_executable_extensions; do
18549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18550 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18552 break 2
18553 fi
18554 done
18555 done
18556 IFS=$as_save_IFS
18557
18558 ;;
18559 esac
18560 fi
18561 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18562 if test -n "$WINDRES_FOR_TARGET"; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18564 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18565 else
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18568 fi
18569
18570
18571 fi
18572 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18573
18574
18575 if test -n "$WINDRES_FOR_TARGET"; then
18576 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18577 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18578 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18579 fi
18580
18581 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18582 for ncn_progname in windres; do
18583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18584 set dummy ${ncn_progname}; ac_word=$2
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18586 $as_echo_n "checking for $ac_word... " >&6; }
18587 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18588 $as_echo_n "(cached) " >&6
18589 else
18590 if test -n "$WINDRES_FOR_TARGET"; then
18591 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18592 else
18593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594 for as_dir in $PATH
18595 do
18596 IFS=$as_save_IFS
18597 test -z "$as_dir" && as_dir=.
18598 for ac_exec_ext in '' $ac_executable_extensions; do
18599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18600 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602 break 2
18603 fi
18604 done
18605 done
18606 IFS=$as_save_IFS
18607
18608 fi
18609 fi
18610 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18611 if test -n "$WINDRES_FOR_TARGET"; then
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18613 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18614 else
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616 $as_echo "no" >&6; }
18617 fi
18618
18619
18620 done
18621 fi
18622
18623 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18624 for ncn_progname in windres; do
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18626 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18627 if test -x $with_build_time_tools/${ncn_progname}; then
18628 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630 $as_echo "yes" >&6; }
18631 break
18632 else
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18634 $as_echo "no" >&6; }
18635 fi
18636 done
18637 fi
18638
18639 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18640 for ncn_progname in windres; do
18641 if test -n "$ncn_target_tool_prefix"; then
18642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18643 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18645 $as_echo_n "checking for $ac_word... " >&6; }
18646 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18647 $as_echo_n "(cached) " >&6
18648 else
18649 if test -n "$WINDRES_FOR_TARGET"; then
18650 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18651 else
18652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655 IFS=$as_save_IFS
18656 test -z "$as_dir" && as_dir=.
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661 break 2
18662 fi
18663 done
18664 done
18665 IFS=$as_save_IFS
18666
18667 fi
18668 fi
18669 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18670 if test -n "$WINDRES_FOR_TARGET"; then
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18672 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18673 else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18676 fi
18677
18678
18679 fi
18680 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18682 set dummy ${ncn_progname}; ac_word=$2
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18684 $as_echo_n "checking for $ac_word... " >&6; }
18685 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18686 $as_echo_n "(cached) " >&6
18687 else
18688 if test -n "$WINDRES_FOR_TARGET"; then
18689 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18690 else
18691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692 for as_dir in $PATH
18693 do
18694 IFS=$as_save_IFS
18695 test -z "$as_dir" && as_dir=.
18696 for ac_exec_ext in '' $ac_executable_extensions; do
18697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18698 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18700 break 2
18701 fi
18702 done
18703 done
18704 IFS=$as_save_IFS
18705
18706 fi
18707 fi
18708 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18709 if test -n "$WINDRES_FOR_TARGET"; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18711 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18712 else
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18715 fi
18716
18717
18718 fi
18719 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18720 done
18721 fi
18722
18723 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18724 set dummy windres
18725 if test $build = $target ; then
18726 WINDRES_FOR_TARGET="$2"
18727 else
18728 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18729 fi
18730 else
18731 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18732 fi
18733
18734 else
18735 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18736 fi
18737
18738
18739
18740
18741 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18742 if test -n "$with_build_time_tools"; then
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18744 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18745 if test -x $with_build_time_tools/windmc; then
18746 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18747 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18749 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18750 else
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753 fi
18754 elif test $build != $host && test $have_gcc_for_target = yes; then
18755 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18756 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18757 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18758 fi
18759 fi
18760 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18761 # Extract the first word of "windmc", so it can be a program name with args.
18762 set dummy windmc; ac_word=$2
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18764 $as_echo_n "checking for $ac_word... " >&6; }
18765 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18766 $as_echo_n "(cached) " >&6
18767 else
18768 case $WINDMC_FOR_TARGET in
18769 [\\/]* | ?:[\\/]*)
18770 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18771 ;;
18772 *)
18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774 for as_dir in $gcc_cv_tool_dirs
18775 do
18776 IFS=$as_save_IFS
18777 test -z "$as_dir" && as_dir=.
18778 for ac_exec_ext in '' $ac_executable_extensions; do
18779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18780 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18782 break 2
18783 fi
18784 done
18785 done
18786 IFS=$as_save_IFS
18787
18788 ;;
18789 esac
18790 fi
18791 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18792 if test -n "$WINDMC_FOR_TARGET"; then
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18794 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18795 else
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18797 $as_echo "no" >&6; }
18798 fi
18799
18800
18801 fi
18802 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18803
18804
18805 if test -n "$WINDMC_FOR_TARGET"; then
18806 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18807 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18808 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18809 fi
18810
18811 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18812 for ncn_progname in windmc; do
18813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18814 set dummy ${ncn_progname}; ac_word=$2
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18816 $as_echo_n "checking for $ac_word... " >&6; }
18817 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819 else
18820 if test -n "$WINDMC_FOR_TARGET"; then
18821 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18822 else
18823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18824 for as_dir in $PATH
18825 do
18826 IFS=$as_save_IFS
18827 test -z "$as_dir" && as_dir=.
18828 for ac_exec_ext in '' $ac_executable_extensions; do
18829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18830 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18832 break 2
18833 fi
18834 done
18835 done
18836 IFS=$as_save_IFS
18837
18838 fi
18839 fi
18840 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18841 if test -n "$WINDMC_FOR_TARGET"; then
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18843 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18844 else
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18847 fi
18848
18849
18850 done
18851 fi
18852
18853 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18854 for ncn_progname in windmc; do
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18857 if test -x $with_build_time_tools/${ncn_progname}; then
18858 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18860 $as_echo "yes" >&6; }
18861 break
18862 else
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18865 fi
18866 done
18867 fi
18868
18869 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18870 for ncn_progname in windmc; do
18871 if test -n "$ncn_target_tool_prefix"; then
18872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18875 $as_echo_n "checking for $ac_word... " >&6; }
18876 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18877 $as_echo_n "(cached) " >&6
18878 else
18879 if test -n "$WINDMC_FOR_TARGET"; then
18880 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18881 else
18882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883 for as_dir in $PATH
18884 do
18885 IFS=$as_save_IFS
18886 test -z "$as_dir" && as_dir=.
18887 for ac_exec_ext in '' $ac_executable_extensions; do
18888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18891 break 2
18892 fi
18893 done
18894 done
18895 IFS=$as_save_IFS
18896
18897 fi
18898 fi
18899 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18900 if test -n "$WINDMC_FOR_TARGET"; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18902 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18903 else
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18905 $as_echo "no" >&6; }
18906 fi
18907
18908
18909 fi
18910 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18912 set dummy ${ncn_progname}; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18916 $as_echo_n "(cached) " >&6
18917 else
18918 if test -n "$WINDMC_FOR_TARGET"; then
18919 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18920 else
18921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18922 for as_dir in $PATH
18923 do
18924 IFS=$as_save_IFS
18925 test -z "$as_dir" && as_dir=.
18926 for ac_exec_ext in '' $ac_executable_extensions; do
18927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18928 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18930 break 2
18931 fi
18932 done
18933 done
18934 IFS=$as_save_IFS
18935
18936 fi
18937 fi
18938 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18939 if test -n "$WINDMC_FOR_TARGET"; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18941 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18942 else
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18944 $as_echo "no" >&6; }
18945 fi
18946
18947
18948 fi
18949 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18950 done
18951 fi
18952
18953 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18954 set dummy windmc
18955 if test $build = $target ; then
18956 WINDMC_FOR_TARGET="$2"
18957 else
18958 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18959 fi
18960 else
18961 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18962 fi
18963
18964 else
18965 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18966 fi
18967
18968
18969 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18970
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18972 $as_echo_n "checking where to find the target ar... " >&6; }
18973 if test "x${build}" != "x${host}" ; then
18974 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18975 # We already found the complete path
18976 ac_dir=`dirname $AR_FOR_TARGET`
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18978 $as_echo "pre-installed in $ac_dir" >&6; }
18979 else
18980 # Canadian cross, just use what we found
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18982 $as_echo "pre-installed" >&6; }
18983 fi
18984 else
18985 ok=yes
18986 case " ${configdirs} " in
18987 *" binutils "*) ;;
18988 *) ok=no ;;
18989 esac
18990
18991 if test $ok = yes; then
18992 # An in-tree tool is available and we can use it
18993 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18995 $as_echo "just compiled" >&6; }
18996 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18997 # We already found the complete path
18998 ac_dir=`dirname $AR_FOR_TARGET`
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19000 $as_echo "pre-installed in $ac_dir" >&6; }
19001 elif test "x$target" = "x$host"; then
19002 # We can use an host tool
19003 AR_FOR_TARGET='$(AR)'
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19005 $as_echo "host tool" >&6; }
19006 else
19007 # We need a cross tool
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19009 $as_echo "pre-installed" >&6; }
19010 fi
19011 fi
19012
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
19014 $as_echo_n "checking where to find the target as... " >&6; }
19015 if test "x${build}" != "x${host}" ; then
19016 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19017 # We already found the complete path
19018 ac_dir=`dirname $AS_FOR_TARGET`
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19020 $as_echo "pre-installed in $ac_dir" >&6; }
19021 else
19022 # Canadian cross, just use what we found
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19024 $as_echo "pre-installed" >&6; }
19025 fi
19026 else
19027 ok=yes
19028 case " ${configdirs} " in
19029 *" gas "*) ;;
19030 *) ok=no ;;
19031 esac
19032
19033 if test $ok = yes; then
19034 # An in-tree tool is available and we can use it
19035 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19037 $as_echo "just compiled" >&6; }
19038 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19039 # We already found the complete path
19040 ac_dir=`dirname $AS_FOR_TARGET`
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19042 $as_echo "pre-installed in $ac_dir" >&6; }
19043 elif test "x$target" = "x$host"; then
19044 # We can use an host tool
19045 AS_FOR_TARGET='$(AS)'
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19047 $as_echo "host tool" >&6; }
19048 else
19049 # We need a cross tool
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19051 $as_echo "pre-installed" >&6; }
19052 fi
19053 fi
19054
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
19056 $as_echo_n "checking where to find the target cc... " >&6; }
19057 if test "x${build}" != "x${host}" ; then
19058 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19059 # We already found the complete path
19060 ac_dir=`dirname $CC_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19062 $as_echo "pre-installed in $ac_dir" >&6; }
19063 else
19064 # Canadian cross, just use what we found
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19066 $as_echo "pre-installed" >&6; }
19067 fi
19068 else
19069 ok=yes
19070 case " ${configdirs} " in
19071 *" gcc "*) ;;
19072 *) ok=no ;;
19073 esac
19074
19075 if test $ok = yes; then
19076 # An in-tree tool is available and we can use it
19077 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19079 $as_echo "just compiled" >&6; }
19080 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19081 # We already found the complete path
19082 ac_dir=`dirname $CC_FOR_TARGET`
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19084 $as_echo "pre-installed in $ac_dir" >&6; }
19085 elif test "x$target" = "x$host"; then
19086 # We can use an host tool
19087 CC_FOR_TARGET='$(CC)'
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19089 $as_echo "host tool" >&6; }
19090 else
19091 # We need a cross tool
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19093 $as_echo "pre-installed" >&6; }
19094 fi
19095 fi
19096
19097 case $target in
19098 *-*-darwin*)
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19100 $as_echo_n "checking where to find the target c++... " >&6; }
19101 if test "x${build}" != "x${host}" ; then
19102 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19103 # We already found the complete path
19104 ac_dir=`dirname $CXX_FOR_TARGET`
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19106 $as_echo "pre-installed in $ac_dir" >&6; }
19107 else
19108 # Canadian cross, just use what we found
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19110 $as_echo "pre-installed" >&6; }
19111 fi
19112 else
19113 ok=yes
19114 case " ${configdirs} " in
19115 *" gcc "*) ;;
19116 *) ok=no ;;
19117 esac
19118 case ,${enable_languages}, in
19119 *,c++,*) ;;
19120 *) ok=no ;;
19121 esac
19122 if test $ok = yes; then
19123 # An in-tree tool is available and we can use it
19124 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` -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19126 $as_echo "just compiled" >&6; }
19127 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19128 # We already found the complete path
19129 ac_dir=`dirname $CXX_FOR_TARGET`
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19131 $as_echo "pre-installed in $ac_dir" >&6; }
19132 elif test "x$target" = "x$host"; then
19133 # We can use an host tool
19134 CXX_FOR_TARGET='$(CXX)'
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19136 $as_echo "host tool" >&6; }
19137 else
19138 # We need a cross tool
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19140 $as_echo "pre-installed" >&6; }
19141 fi
19142 fi
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19145 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19146 if test "x${build}" != "x${host}" ; then
19147 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19148 # We already found the complete path
19149 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19151 $as_echo "pre-installed in $ac_dir" >&6; }
19152 else
19153 # Canadian cross, just use what we found
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19155 $as_echo "pre-installed" >&6; }
19156 fi
19157 else
19158 ok=yes
19159 case " ${configdirs} " in
19160 *" gcc "*) ;;
19161 *) ok=no ;;
19162 esac
19163 case ,${enable_languages}, in
19164 *,c++,*) ;;
19165 *) ok=no ;;
19166 esac
19167 if test $ok = yes; then
19168 # An in-tree tool is available and we can use it
19169 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -B$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19171 $as_echo "just compiled" >&6; }
19172 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19173 # We already found the complete path
19174 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19176 $as_echo "pre-installed in $ac_dir" >&6; }
19177 elif test "x$target" = "x$host"; then
19178 # We can use an host tool
19179 RAW_CXX_FOR_TARGET='$(CXX)'
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19181 $as_echo "host tool" >&6; }
19182 else
19183 # We need a cross tool
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19185 $as_echo "pre-installed" >&6; }
19186 fi
19187 fi
19188
19189 ;;
19190 *)
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19192 $as_echo_n "checking where to find the target c++... " >&6; }
19193 if test "x${build}" != "x${host}" ; then
19194 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19195 # We already found the complete path
19196 ac_dir=`dirname $CXX_FOR_TARGET`
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19198 $as_echo "pre-installed in $ac_dir" >&6; }
19199 else
19200 # Canadian cross, just use what we found
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19202 $as_echo "pre-installed" >&6; }
19203 fi
19204 else
19205 ok=yes
19206 case " ${configdirs} " in
19207 *" gcc "*) ;;
19208 *) ok=no ;;
19209 esac
19210 case ,${enable_languages}, in
19211 *,c++,*) ;;
19212 *) ok=no ;;
19213 esac
19214 if test $ok = yes; then
19215 # An in-tree tool is available and we can use it
19216 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'
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19218 $as_echo "just compiled" >&6; }
19219 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19220 # We already found the complete path
19221 ac_dir=`dirname $CXX_FOR_TARGET`
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19223 $as_echo "pre-installed in $ac_dir" >&6; }
19224 elif test "x$target" = "x$host"; then
19225 # We can use an host tool
19226 CXX_FOR_TARGET='$(CXX)'
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19228 $as_echo "host tool" >&6; }
19229 else
19230 # We need a cross tool
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19232 $as_echo "pre-installed" >&6; }
19233 fi
19234 fi
19235
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19237 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19238 if test "x${build}" != "x${host}" ; then
19239 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19240 # We already found the complete path
19241 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19243 $as_echo "pre-installed in $ac_dir" >&6; }
19244 else
19245 # Canadian cross, just use what we found
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19247 $as_echo "pre-installed" >&6; }
19248 fi
19249 else
19250 ok=yes
19251 case " ${configdirs} " in
19252 *" gcc "*) ;;
19253 *) ok=no ;;
19254 esac
19255 case ,${enable_languages}, in
19256 *,c++,*) ;;
19257 *) ok=no ;;
19258 esac
19259 if test $ok = yes; then
19260 # An in-tree tool is available and we can use it
19261 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'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19263 $as_echo "just compiled" >&6; }
19264 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19265 # We already found the complete path
19266 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19268 $as_echo "pre-installed in $ac_dir" >&6; }
19269 elif test "x$target" = "x$host"; then
19270 # We can use an host tool
19271 RAW_CXX_FOR_TARGET='$(CXX)'
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19273 $as_echo "host tool" >&6; }
19274 else
19275 # We need a cross tool
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19277 $as_echo "pre-installed" >&6; }
19278 fi
19279 fi
19280
19281 ;;
19282 esac
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19284 $as_echo_n "checking where to find the target dlltool... " >&6; }
19285 if test "x${build}" != "x${host}" ; then
19286 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19287 # We already found the complete path
19288 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19290 $as_echo "pre-installed in $ac_dir" >&6; }
19291 else
19292 # Canadian cross, just use what we found
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19294 $as_echo "pre-installed" >&6; }
19295 fi
19296 else
19297 ok=yes
19298 case " ${configdirs} " in
19299 *" binutils "*) ;;
19300 *) ok=no ;;
19301 esac
19302
19303 if test $ok = yes; then
19304 # An in-tree tool is available and we can use it
19305 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19307 $as_echo "just compiled" >&6; }
19308 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19309 # We already found the complete path
19310 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19312 $as_echo "pre-installed in $ac_dir" >&6; }
19313 elif test "x$target" = "x$host"; then
19314 # We can use an host tool
19315 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19317 $as_echo "host tool" >&6; }
19318 else
19319 # We need a cross tool
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19321 $as_echo "pre-installed" >&6; }
19322 fi
19323 fi
19324
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19326 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19327 if test "x${build}" != "x${host}" ; then
19328 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19329 # We already found the complete path
19330 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19332 $as_echo "pre-installed in $ac_dir" >&6; }
19333 else
19334 # Canadian cross, just use what we found
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19336 $as_echo "pre-installed" >&6; }
19337 fi
19338 else
19339 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19340 # We already found the complete path
19341 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19343 $as_echo "pre-installed in $ac_dir" >&6; }
19344 elif test "x$target" = "x$host"; then
19345 # We can use an host tool
19346 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19348 $as_echo "host tool" >&6; }
19349 else
19350 # We need a cross tool
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19352 $as_echo "pre-installed" >&6; }
19353 fi
19354 fi
19355
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19357 $as_echo_n "checking where to find the target gcc... " >&6; }
19358 if test "x${build}" != "x${host}" ; then
19359 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19360 # We already found the complete path
19361 ac_dir=`dirname $GCC_FOR_TARGET`
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19363 $as_echo "pre-installed in $ac_dir" >&6; }
19364 else
19365 # Canadian cross, just use what we found
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19367 $as_echo "pre-installed" >&6; }
19368 fi
19369 else
19370 ok=yes
19371 case " ${configdirs} " in
19372 *" gcc "*) ;;
19373 *) ok=no ;;
19374 esac
19375
19376 if test $ok = yes; then
19377 # An in-tree tool is available and we can use it
19378 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19380 $as_echo "just compiled" >&6; }
19381 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19382 # We already found the complete path
19383 ac_dir=`dirname $GCC_FOR_TARGET`
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19385 $as_echo "pre-installed in $ac_dir" >&6; }
19386 elif test "x$target" = "x$host"; then
19387 # We can use an host tool
19388 GCC_FOR_TARGET='$()'
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19390 $as_echo "host tool" >&6; }
19391 else
19392 # We need a cross tool
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19394 $as_echo "pre-installed" >&6; }
19395 fi
19396 fi
19397
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19399 $as_echo_n "checking where to find the target gfortran... " >&6; }
19400 if test "x${build}" != "x${host}" ; then
19401 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19402 # We already found the complete path
19403 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19405 $as_echo "pre-installed in $ac_dir" >&6; }
19406 else
19407 # Canadian cross, just use what we found
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19409 $as_echo "pre-installed" >&6; }
19410 fi
19411 else
19412 ok=yes
19413 case " ${configdirs} " in
19414 *" gcc "*) ;;
19415 *) ok=no ;;
19416 esac
19417 case ,${enable_languages}, in
19418 *,fortran,*) ;;
19419 *) ok=no ;;
19420 esac
19421 if test $ok = yes; then
19422 # An in-tree tool is available and we can use it
19423 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19425 $as_echo "just compiled" >&6; }
19426 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19427 # We already found the complete path
19428 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19430 $as_echo "pre-installed in $ac_dir" >&6; }
19431 elif test "x$target" = "x$host"; then
19432 # We can use an host tool
19433 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19435 $as_echo "host tool" >&6; }
19436 else
19437 # We need a cross tool
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19439 $as_echo "pre-installed" >&6; }
19440 fi
19441 fi
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19444 $as_echo_n "checking where to find the target gccgo... " >&6; }
19445 if test "x${build}" != "x${host}" ; then
19446 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19447 # We already found the complete path
19448 ac_dir=`dirname $GOC_FOR_TARGET`
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19450 $as_echo "pre-installed in $ac_dir" >&6; }
19451 else
19452 # Canadian cross, just use what we found
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19454 $as_echo "pre-installed" >&6; }
19455 fi
19456 else
19457 ok=yes
19458 case " ${configdirs} " in
19459 *" gcc "*) ;;
19460 *) ok=no ;;
19461 esac
19462 case ,${enable_languages}, in
19463 *,go,*) ;;
19464 *) ok=no ;;
19465 esac
19466 if test $ok = yes; then
19467 # An in-tree tool is available and we can use it
19468 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19470 $as_echo "just compiled" >&6; }
19471 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19472 # We already found the complete path
19473 ac_dir=`dirname $GOC_FOR_TARGET`
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19475 $as_echo "pre-installed in $ac_dir" >&6; }
19476 elif test "x$target" = "x$host"; then
19477 # We can use an host tool
19478 GOC_FOR_TARGET='$(GOC)'
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19480 $as_echo "host tool" >&6; }
19481 else
19482 # We need a cross tool
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19484 $as_echo "pre-installed" >&6; }
19485 fi
19486 fi
19487
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19489 $as_echo_n "checking where to find the target gdc... " >&6; }
19490 if test "x${build}" != "x${host}" ; then
19491 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19492 # We already found the complete path
19493 ac_dir=`dirname $GDC_FOR_TARGET`
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19495 $as_echo "pre-installed in $ac_dir" >&6; }
19496 else
19497 # Canadian cross, just use what we found
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19499 $as_echo "pre-installed" >&6; }
19500 fi
19501 else
19502 ok=yes
19503 case " ${configdirs} " in
19504 *" gcc "*) ;;
19505 *) ok=no ;;
19506 esac
19507 case ,${enable_languages}, in
19508 *,d,*) ;;
19509 *) ok=no ;;
19510 esac
19511 if test $ok = yes; then
19512 # An in-tree tool is available and we can use it
19513 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19515 $as_echo "just compiled" >&6; }
19516 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19517 # We already found the complete path
19518 ac_dir=`dirname $GDC_FOR_TARGET`
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19520 $as_echo "pre-installed in $ac_dir" >&6; }
19521 elif test "x$target" = "x$host"; then
19522 # We can use an host tool
19523 GDC_FOR_TARGET='$(GDC)'
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19525 $as_echo "host tool" >&6; }
19526 else
19527 # We need a cross tool
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19529 $as_echo "pre-installed" >&6; }
19530 fi
19531 fi
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19534 $as_echo_n "checking where to find the target gm2... " >&6; }
19535 if test "x${build}" != "x${host}" ; then
19536 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19537 # We already found the complete path
19538 ac_dir=`dirname $GM2_FOR_TARGET`
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19540 $as_echo "pre-installed in $ac_dir" >&6; }
19541 else
19542 # Canadian cross, just use what we found
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19544 $as_echo "pre-installed" >&6; }
19545 fi
19546 else
19547 ok=yes
19548 case " ${configdirs} " in
19549 *" gcc "*) ;;
19550 *) ok=no ;;
19551 esac
19552 case ,${enable_languages}, in
19553 *,m2,*) ;;
19554 *) ok=no ;;
19555 esac
19556 if test $ok = yes; then
19557 # An in-tree tool is available and we can use it
19558 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19560 $as_echo "just compiled" >&6; }
19561 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19562 # We already found the complete path
19563 ac_dir=`dirname $GM2_FOR_TARGET`
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19565 $as_echo "pre-installed in $ac_dir" >&6; }
19566 elif test "x$target" = "x$host"; then
19567 # We can use an host tool
19568 GM2_FOR_TARGET='$(GM2)'
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19570 $as_echo "host tool" >&6; }
19571 else
19572 # We need a cross tool
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19574 $as_echo "pre-installed" >&6; }
19575 fi
19576 fi
19577
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19579 $as_echo_n "checking where to find the target ld... " >&6; }
19580 if test "x${build}" != "x${host}" ; then
19581 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19582 # We already found the complete path
19583 ac_dir=`dirname $LD_FOR_TARGET`
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19585 $as_echo "pre-installed in $ac_dir" >&6; }
19586 else
19587 # Canadian cross, just use what we found
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19589 $as_echo "pre-installed" >&6; }
19590 fi
19591 else
19592 ok=yes
19593 case " ${configdirs} " in
19594 *" ld "*) ;;
19595 *) ok=no ;;
19596 esac
19597
19598 if test $ok = yes; then
19599 # An in-tree tool is available and we can use it
19600 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19602 $as_echo "just compiled" >&6; }
19603 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19604 # We already found the complete path
19605 ac_dir=`dirname $LD_FOR_TARGET`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19607 $as_echo "pre-installed in $ac_dir" >&6; }
19608 elif test "x$target" = "x$host"; then
19609 # We can use an host tool
19610 LD_FOR_TARGET='$(LD)'
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19612 $as_echo "host tool" >&6; }
19613 else
19614 # We need a cross tool
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19616 $as_echo "pre-installed" >&6; }
19617 fi
19618 fi
19619
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19621 $as_echo_n "checking where to find the target lipo... " >&6; }
19622 if test "x${build}" != "x${host}" ; then
19623 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19624 # We already found the complete path
19625 ac_dir=`dirname $LIPO_FOR_TARGET`
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19627 $as_echo "pre-installed in $ac_dir" >&6; }
19628 else
19629 # Canadian cross, just use what we found
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19631 $as_echo "pre-installed" >&6; }
19632 fi
19633 else
19634 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19635 # We already found the complete path
19636 ac_dir=`dirname $LIPO_FOR_TARGET`
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19638 $as_echo "pre-installed in $ac_dir" >&6; }
19639 elif test "x$target" = "x$host"; then
19640 # We can use an host tool
19641 LIPO_FOR_TARGET='$(LIPO)'
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19643 $as_echo "host tool" >&6; }
19644 else
19645 # We need a cross tool
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19647 $as_echo "pre-installed" >&6; }
19648 fi
19649 fi
19650
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19652 $as_echo_n "checking where to find the target nm... " >&6; }
19653 if test "x${build}" != "x${host}" ; then
19654 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19655 # We already found the complete path
19656 ac_dir=`dirname $NM_FOR_TARGET`
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19658 $as_echo "pre-installed in $ac_dir" >&6; }
19659 else
19660 # Canadian cross, just use what we found
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19662 $as_echo "pre-installed" >&6; }
19663 fi
19664 else
19665 ok=yes
19666 case " ${configdirs} " in
19667 *" binutils "*) ;;
19668 *) ok=no ;;
19669 esac
19670
19671 if test $ok = yes; then
19672 # An in-tree tool is available and we can use it
19673 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19675 $as_echo "just compiled" >&6; }
19676 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19677 # We already found the complete path
19678 ac_dir=`dirname $NM_FOR_TARGET`
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19680 $as_echo "pre-installed in $ac_dir" >&6; }
19681 elif test "x$target" = "x$host"; then
19682 # We can use an host tool
19683 NM_FOR_TARGET='$(NM)'
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19685 $as_echo "host tool" >&6; }
19686 else
19687 # We need a cross tool
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19689 $as_echo "pre-installed" >&6; }
19690 fi
19691 fi
19692
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19694 $as_echo_n "checking where to find the target objcopy... " >&6; }
19695 if test "x${build}" != "x${host}" ; then
19696 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19697 # We already found the complete path
19698 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19700 $as_echo "pre-installed in $ac_dir" >&6; }
19701 else
19702 # Canadian cross, just use what we found
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19704 $as_echo "pre-installed" >&6; }
19705 fi
19706 else
19707 ok=yes
19708 case " ${configdirs} " in
19709 *" binutils "*) ;;
19710 *) ok=no ;;
19711 esac
19712
19713 if test $ok = yes; then
19714 # An in-tree tool is available and we can use it
19715 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19717 $as_echo "just compiled" >&6; }
19718 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19719 # We already found the complete path
19720 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19722 $as_echo "pre-installed in $ac_dir" >&6; }
19723 elif test "x$target" = "x$host"; then
19724 # We can use an host tool
19725 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19727 $as_echo "host tool" >&6; }
19728 else
19729 # We need a cross tool
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19731 $as_echo "pre-installed" >&6; }
19732 fi
19733 fi
19734
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19736 $as_echo_n "checking where to find the target objdump... " >&6; }
19737 if test "x${build}" != "x${host}" ; then
19738 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19739 # We already found the complete path
19740 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19742 $as_echo "pre-installed in $ac_dir" >&6; }
19743 else
19744 # Canadian cross, just use what we found
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19746 $as_echo "pre-installed" >&6; }
19747 fi
19748 else
19749 ok=yes
19750 case " ${configdirs} " in
19751 *" binutils "*) ;;
19752 *) ok=no ;;
19753 esac
19754
19755 if test $ok = yes; then
19756 # An in-tree tool is available and we can use it
19757 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19759 $as_echo "just compiled" >&6; }
19760 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19761 # We already found the complete path
19762 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19764 $as_echo "pre-installed in $ac_dir" >&6; }
19765 elif test "x$target" = "x$host"; then
19766 # We can use an host tool
19767 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19769 $as_echo "host tool" >&6; }
19770 else
19771 # We need a cross tool
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19773 $as_echo "pre-installed" >&6; }
19774 fi
19775 fi
19776
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19778 $as_echo_n "checking where to find the target otool... " >&6; }
19779 if test "x${build}" != "x${host}" ; then
19780 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19781 # We already found the complete path
19782 ac_dir=`dirname $OTOOL_FOR_TARGET`
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19784 $as_echo "pre-installed in $ac_dir" >&6; }
19785 else
19786 # Canadian cross, just use what we found
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19788 $as_echo "pre-installed" >&6; }
19789 fi
19790 else
19791 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19792 # We already found the complete path
19793 ac_dir=`dirname $OTOOL_FOR_TARGET`
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19795 $as_echo "pre-installed in $ac_dir" >&6; }
19796 elif test "x$target" = "x$host"; then
19797 # We can use an host tool
19798 OTOOL_FOR_TARGET='$(OTOOL)'
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19800 $as_echo "host tool" >&6; }
19801 else
19802 # We need a cross tool
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19804 $as_echo "pre-installed" >&6; }
19805 fi
19806 fi
19807
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19809 $as_echo_n "checking where to find the target ranlib... " >&6; }
19810 if test "x${build}" != "x${host}" ; then
19811 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19812 # We already found the complete path
19813 ac_dir=`dirname $RANLIB_FOR_TARGET`
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19815 $as_echo "pre-installed in $ac_dir" >&6; }
19816 else
19817 # Canadian cross, just use what we found
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19819 $as_echo "pre-installed" >&6; }
19820 fi
19821 else
19822 ok=yes
19823 case " ${configdirs} " in
19824 *" binutils "*) ;;
19825 *) ok=no ;;
19826 esac
19827
19828 if test $ok = yes; then
19829 # An in-tree tool is available and we can use it
19830 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19832 $as_echo "just compiled" >&6; }
19833 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19834 # We already found the complete path
19835 ac_dir=`dirname $RANLIB_FOR_TARGET`
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19837 $as_echo "pre-installed in $ac_dir" >&6; }
19838 elif test "x$target" = "x$host"; then
19839 # We can use an host tool
19840 RANLIB_FOR_TARGET='$(RANLIB)'
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19842 $as_echo "host tool" >&6; }
19843 else
19844 # We need a cross tool
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19846 $as_echo "pre-installed" >&6; }
19847 fi
19848 fi
19849
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19851 $as_echo_n "checking where to find the target readelf... " >&6; }
19852 if test "x${build}" != "x${host}" ; then
19853 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19854 # We already found the complete path
19855 ac_dir=`dirname $READELF_FOR_TARGET`
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19857 $as_echo "pre-installed in $ac_dir" >&6; }
19858 else
19859 # Canadian cross, just use what we found
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19861 $as_echo "pre-installed" >&6; }
19862 fi
19863 else
19864 ok=yes
19865 case " ${configdirs} " in
19866 *" binutils "*) ;;
19867 *) ok=no ;;
19868 esac
19869
19870 if test $ok = yes; then
19871 # An in-tree tool is available and we can use it
19872 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19874 $as_echo "just compiled" >&6; }
19875 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19876 # We already found the complete path
19877 ac_dir=`dirname $READELF_FOR_TARGET`
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19879 $as_echo "pre-installed in $ac_dir" >&6; }
19880 elif test "x$target" = "x$host"; then
19881 # We can use an host tool
19882 READELF_FOR_TARGET='$(READELF)'
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19884 $as_echo "host tool" >&6; }
19885 else
19886 # We need a cross tool
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19888 $as_echo "pre-installed" >&6; }
19889 fi
19890 fi
19891
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19893 $as_echo_n "checking where to find the target strip... " >&6; }
19894 if test "x${build}" != "x${host}" ; then
19895 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19896 # We already found the complete path
19897 ac_dir=`dirname $STRIP_FOR_TARGET`
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19899 $as_echo "pre-installed in $ac_dir" >&6; }
19900 else
19901 # Canadian cross, just use what we found
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19903 $as_echo "pre-installed" >&6; }
19904 fi
19905 else
19906 ok=yes
19907 case " ${configdirs} " in
19908 *" binutils "*) ;;
19909 *) ok=no ;;
19910 esac
19911
19912 if test $ok = yes; then
19913 # An in-tree tool is available and we can use it
19914 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19916 $as_echo "just compiled" >&6; }
19917 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19918 # We already found the complete path
19919 ac_dir=`dirname $STRIP_FOR_TARGET`
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19921 $as_echo "pre-installed in $ac_dir" >&6; }
19922 elif test "x$target" = "x$host"; then
19923 # We can use an host tool
19924 STRIP_FOR_TARGET='$(STRIP)'
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19926 $as_echo "host tool" >&6; }
19927 else
19928 # We need a cross tool
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19930 $as_echo "pre-installed" >&6; }
19931 fi
19932 fi
19933
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19935 $as_echo_n "checking where to find the target windres... " >&6; }
19936 if test "x${build}" != "x${host}" ; then
19937 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19938 # We already found the complete path
19939 ac_dir=`dirname $WINDRES_FOR_TARGET`
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19941 $as_echo "pre-installed in $ac_dir" >&6; }
19942 else
19943 # Canadian cross, just use what we found
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19945 $as_echo "pre-installed" >&6; }
19946 fi
19947 else
19948 ok=yes
19949 case " ${configdirs} " in
19950 *" binutils "*) ;;
19951 *) ok=no ;;
19952 esac
19953
19954 if test $ok = yes; then
19955 # An in-tree tool is available and we can use it
19956 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19958 $as_echo "just compiled" >&6; }
19959 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19960 # We already found the complete path
19961 ac_dir=`dirname $WINDRES_FOR_TARGET`
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19963 $as_echo "pre-installed in $ac_dir" >&6; }
19964 elif test "x$target" = "x$host"; then
19965 # We can use an host tool
19966 WINDRES_FOR_TARGET='$(WINDRES)'
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19968 $as_echo "host tool" >&6; }
19969 else
19970 # We need a cross tool
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19972 $as_echo "pre-installed" >&6; }
19973 fi
19974 fi
19975
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19977 $as_echo_n "checking where to find the target windmc... " >&6; }
19978 if test "x${build}" != "x${host}" ; then
19979 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19980 # We already found the complete path
19981 ac_dir=`dirname $WINDMC_FOR_TARGET`
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19983 $as_echo "pre-installed in $ac_dir" >&6; }
19984 else
19985 # Canadian cross, just use what we found
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19987 $as_echo "pre-installed" >&6; }
19988 fi
19989 else
19990 ok=yes
19991 case " ${configdirs} " in
19992 *" binutils "*) ;;
19993 *) ok=no ;;
19994 esac
19995
19996 if test $ok = yes; then
19997 # An in-tree tool is available and we can use it
19998 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
20000 $as_echo "just compiled" >&6; }
20001 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
20002 # We already found the complete path
20003 ac_dir=`dirname $WINDMC_FOR_TARGET`
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
20005 $as_echo "pre-installed in $ac_dir" >&6; }
20006 elif test "x$target" = "x$host"; then
20007 # We can use an host tool
20008 WINDMC_FOR_TARGET='$(WINDMC)'
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
20010 $as_echo "host tool" >&6; }
20011 else
20012 # We need a cross tool
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
20014 $as_echo "pre-installed" >&6; }
20015 fi
20016 fi
20017
20018
20019
20020
20021
20022 # Certain tools may need extra flags.
20023 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
20024 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
20025 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
20026
20027 # When building target libraries, except in a Canadian cross, we use
20028 # the same toolchain as the compiler we just built.
20029 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
20030 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
20031 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
20032 if test $host = $build; then
20033 case " $configdirs " in
20034 *" gcc "*)
20035 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
20036 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
20037 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
20038 ;;
20039 esac
20040 fi
20041
20042
20043
20044
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20047 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20048 # Check whether --enable-maintainer-mode was given.
20049 if test "${enable_maintainer_mode+set}" = set; then :
20050 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20051 else
20052 USE_MAINTAINER_MODE=no
20053 fi
20054
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20056 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20057
20058
20059 if test "$USE_MAINTAINER_MODE" = yes; then
20060 MAINTAINER_MODE_TRUE=
20061 MAINTAINER_MODE_FALSE='#'
20062 else
20063 MAINTAINER_MODE_TRUE='#'
20064 MAINTAINER_MODE_FALSE=
20065 fi
20066 MAINT=$MAINTAINER_MODE_TRUE
20067
20068 # ---------------------
20069 # GCC bootstrap support
20070 # ---------------------
20071
20072 # Stage specific cflags for build.
20073 stage1_cflags="-g"
20074 case $build in
20075 vax-*-*)
20076 case ${GCC} in
20077 yes) stage1_cflags="-g -Wa,-J" ;;
20078 *) stage1_cflags="-g -J" ;;
20079 esac ;;
20080 esac
20081
20082
20083
20084 # Enable --enable-checking in stage1 of the compiler.
20085 # Check whether --enable-stage1-checking was given.
20086 if test "${enable_stage1_checking+set}" = set; then :
20087 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
20088 else
20089 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
20090 # For --disable-checking or implicit --enable-checking=release, avoid
20091 # setting --enable-checking=gc in the default stage1 checking for LTO
20092 # bootstraps. See PR62077.
20093 case $BUILD_CONFIG in
20094 *lto*)
20095 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
20096 *)
20097 stage1_checking=--enable-checking=yes,types;;
20098 esac
20099 if test "x$enable_checking" = x && \
20100 test -d ${srcdir}/gcc && \
20101 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
20102 stage1_checking=--enable-checking=yes,types,extra
20103 fi
20104 else
20105 stage1_checking=--enable-checking=$enable_checking,types
20106 fi
20107 fi
20108
20109
20110
20111 # Enable -Werror in bootstrap stage2 and later.
20112 # Check whether --enable-werror was given.
20113 if test "${enable_werror+set}" = set; then :
20114 enableval=$enable_werror;
20115 case ${enable_werror} in
20116 yes) stage2_werror_flag="--enable-werror-always" ;;
20117 *) stage2_werror_flag="" ;;
20118 esac
20119
20120 else
20121
20122 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
20123 case $BUILD_CONFIG in
20124 bootstrap-debug)
20125 stage2_werror_flag="--enable-werror-always" ;;
20126 "")
20127 stage2_werror_flag="--enable-werror-always" ;;
20128 esac
20129 fi
20130
20131 fi
20132
20133
20134
20135
20136 # Specify what files to not compare during bootstrap.
20137
20138 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
20139 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
20140 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
20141 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
20142 compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
20143 case "$target" in
20144 hppa*64*-*-hpux*) ;;
20145 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
20146 esac
20147
20148
20149 ac_config_files="$ac_config_files Makefile"
20150
20151 cat >confcache <<\_ACEOF
20152 # This file is a shell script that caches the results of configure
20153 # tests run on this system so they can be shared between configure
20154 # scripts and configure runs, see configure's option --config-cache.
20155 # It is not useful on other systems. If it contains results you don't
20156 # want to keep, you may remove or edit it.
20157 #
20158 # config.status only pays attention to the cache file if you give it
20159 # the --recheck option to rerun configure.
20160 #
20161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20163 # following values.
20164
20165 _ACEOF
20166
20167 # The following way of writing the cache mishandles newlines in values,
20168 # but we know of no workaround that is simple, portable, and efficient.
20169 # So, we kill variables containing newlines.
20170 # Ultrix sh set writes to stderr and can't be redirected directly,
20171 # and sets the high bit in the cache file unless we assign to the vars.
20172 (
20173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20174 eval ac_val=\$$ac_var
20175 case $ac_val in #(
20176 *${as_nl}*)
20177 case $ac_var in #(
20178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20180 esac
20181 case $ac_var in #(
20182 _ | IFS | as_nl) ;; #(
20183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20184 *) { eval $ac_var=; unset $ac_var;} ;;
20185 esac ;;
20186 esac
20187 done
20188
20189 (set) 2>&1 |
20190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20191 *${as_nl}ac_space=\ *)
20192 # `set' does not quote correctly, so add quotes: double-quote
20193 # substitution turns \\\\ into \\, and sed turns \\ into \.
20194 sed -n \
20195 "s/'/'\\\\''/g;
20196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20197 ;; #(
20198 *)
20199 # `set' quotes correctly as required by POSIX, so do not add quotes.
20200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20201 ;;
20202 esac |
20203 sort
20204 ) |
20205 sed '
20206 /^ac_cv_env_/b end
20207 t clear
20208 :clear
20209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20210 t end
20211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20212 :end' >>confcache
20213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20214 if test -w "$cache_file"; then
20215 if test "x$cache_file" != "x/dev/null"; then
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20217 $as_echo "$as_me: updating cache $cache_file" >&6;}
20218 if test ! -f "$cache_file" || test -h "$cache_file"; then
20219 cat confcache >"$cache_file"
20220 else
20221 case $cache_file in #(
20222 */* | ?:*)
20223 mv -f confcache "$cache_file"$$ &&
20224 mv -f "$cache_file"$$ "$cache_file" ;; #(
20225 *)
20226 mv -f confcache "$cache_file" ;;
20227 esac
20228 fi
20229 fi
20230 else
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20233 fi
20234 fi
20235 rm -f confcache
20236
20237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20238 # Let make expand exec_prefix.
20239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20240
20241 # Transform confdefs.h into DEFS.
20242 # Protect against shell expansion while executing Makefile rules.
20243 # Protect against Makefile macro expansion.
20244 #
20245 # If the first sed substitution is executed (which looks for macros that
20246 # take arguments), then branch to the quote section. Otherwise,
20247 # look for a macro that doesn't take arguments.
20248 ac_script='
20249 :mline
20250 /\\$/{
20251 N
20252 s,\\\n,,
20253 b mline
20254 }
20255 t clear
20256 :clear
20257 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20258 t quote
20259 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20260 t quote
20261 b any
20262 :quote
20263 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20264 s/\[/\\&/g
20265 s/\]/\\&/g
20266 s/\$/$$/g
20267 H
20268 :any
20269 ${
20270 g
20271 s/^\n//
20272 s/\n/ /g
20273 p
20274 }
20275 '
20276 DEFS=`sed -n "$ac_script" confdefs.h`
20277
20278
20279 ac_libobjs=
20280 ac_ltlibobjs=
20281 U=
20282 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20283 # 1. Remove the extension, and $U if already installed.
20284 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20285 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20287 # will be set to the directory where LIBOBJS objects are built.
20288 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20289 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20290 done
20291 LIBOBJS=$ac_libobjs
20292
20293 LTLIBOBJS=$ac_ltlibobjs
20294
20295
20296
20297 : "${CONFIG_STATUS=./config.status}"
20298 ac_write_fail=0
20299 ac_clean_files_save=$ac_clean_files
20300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20303 as_write_fail=0
20304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20305 #! $SHELL
20306 # Generated by $as_me.
20307 # Run this file to recreate the current configuration.
20308 # Compiler output produced by configure, useful for debugging
20309 # configure, is in config.log if it exists.
20310
20311 debug=false
20312 ac_cs_recheck=false
20313 ac_cs_silent=false
20314
20315 SHELL=\${CONFIG_SHELL-$SHELL}
20316 export SHELL
20317 _ASEOF
20318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20319 ## -------------------- ##
20320 ## M4sh Initialization. ##
20321 ## -------------------- ##
20322
20323 # Be more Bourne compatible
20324 DUALCASE=1; export DUALCASE # for MKS sh
20325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20326 emulate sh
20327 NULLCMD=:
20328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20329 # is contrary to our usage. Disable this feature.
20330 alias -g '${1+"$@"}'='"$@"'
20331 setopt NO_GLOB_SUBST
20332 else
20333 case `(set -o) 2>/dev/null` in #(
20334 *posix*) :
20335 set -o posix ;; #(
20336 *) :
20337 ;;
20338 esac
20339 fi
20340
20341
20342 as_nl='
20343 '
20344 export as_nl
20345 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20346 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20349 # Prefer a ksh shell builtin over an external printf program on Solaris,
20350 # but without wasting forks for bash or zsh.
20351 if test -z "$BASH_VERSION$ZSH_VERSION" \
20352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20353 as_echo='print -r --'
20354 as_echo_n='print -rn --'
20355 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20356 as_echo='printf %s\n'
20357 as_echo_n='printf %s'
20358 else
20359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20360 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20361 as_echo_n='/usr/ucb/echo -n'
20362 else
20363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20364 as_echo_n_body='eval
20365 arg=$1;
20366 case $arg in #(
20367 *"$as_nl"*)
20368 expr "X$arg" : "X\\(.*\\)$as_nl";
20369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20370 esac;
20371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20372 '
20373 export as_echo_n_body
20374 as_echo_n='sh -c $as_echo_n_body as_echo'
20375 fi
20376 export as_echo_body
20377 as_echo='sh -c $as_echo_body as_echo'
20378 fi
20379
20380 # The user is always right.
20381 if test "${PATH_SEPARATOR+set}" != set; then
20382 PATH_SEPARATOR=:
20383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20385 PATH_SEPARATOR=';'
20386 }
20387 fi
20388
20389
20390 # IFS
20391 # We need space, tab and new line, in precisely that order. Quoting is
20392 # there to prevent editors from complaining about space-tab.
20393 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20394 # splitting by setting IFS to empty value.)
20395 IFS=" "" $as_nl"
20396
20397 # Find who we are. Look in the path if we contain no directory separator.
20398 as_myself=
20399 case $0 in #((
20400 *[\\/]* ) as_myself=$0 ;;
20401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20402 for as_dir in $PATH
20403 do
20404 IFS=$as_save_IFS
20405 test -z "$as_dir" && as_dir=.
20406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20407 done
20408 IFS=$as_save_IFS
20409
20410 ;;
20411 esac
20412 # We did not find ourselves, most probably we were run as `sh COMMAND'
20413 # in which case we are not to be found in the path.
20414 if test "x$as_myself" = x; then
20415 as_myself=$0
20416 fi
20417 if test ! -f "$as_myself"; then
20418 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20419 exit 1
20420 fi
20421
20422 # Unset variables that we do not need and which cause bugs (e.g. in
20423 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20424 # suppresses any "Segmentation fault" message there. '((' could
20425 # trigger a bug in pdksh 5.2.14.
20426 for as_var in BASH_ENV ENV MAIL MAILPATH
20427 do eval test x\${$as_var+set} = xset \
20428 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20429 done
20430 PS1='$ '
20431 PS2='> '
20432 PS4='+ '
20433
20434 # NLS nuisances.
20435 LC_ALL=C
20436 export LC_ALL
20437 LANGUAGE=C
20438 export LANGUAGE
20439
20440 # CDPATH.
20441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20442
20443
20444 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20445 # ----------------------------------------
20446 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20447 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20448 # script with STATUS, using 1 if that was 0.
20449 as_fn_error ()
20450 {
20451 as_status=$1; test $as_status -eq 0 && as_status=1
20452 if test "$4"; then
20453 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20454 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20455 fi
20456 $as_echo "$as_me: error: $2" >&2
20457 as_fn_exit $as_status
20458 } # as_fn_error
20459
20460
20461 # as_fn_set_status STATUS
20462 # -----------------------
20463 # Set $? to STATUS, without forking.
20464 as_fn_set_status ()
20465 {
20466 return $1
20467 } # as_fn_set_status
20468
20469 # as_fn_exit STATUS
20470 # -----------------
20471 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20472 as_fn_exit ()
20473 {
20474 set +e
20475 as_fn_set_status $1
20476 exit $1
20477 } # as_fn_exit
20478
20479 # as_fn_unset VAR
20480 # ---------------
20481 # Portably unset VAR.
20482 as_fn_unset ()
20483 {
20484 { eval $1=; unset $1;}
20485 }
20486 as_unset=as_fn_unset
20487 # as_fn_append VAR VALUE
20488 # ----------------------
20489 # Append the text in VALUE to the end of the definition contained in VAR. Take
20490 # advantage of any shell optimizations that allow amortized linear growth over
20491 # repeated appends, instead of the typical quadratic growth present in naive
20492 # implementations.
20493 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20494 eval 'as_fn_append ()
20495 {
20496 eval $1+=\$2
20497 }'
20498 else
20499 as_fn_append ()
20500 {
20501 eval $1=\$$1\$2
20502 }
20503 fi # as_fn_append
20504
20505 # as_fn_arith ARG...
20506 # ------------------
20507 # Perform arithmetic evaluation on the ARGs, and store the result in the
20508 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20509 # must be portable across $(()) and expr.
20510 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20511 eval 'as_fn_arith ()
20512 {
20513 as_val=$(( $* ))
20514 }'
20515 else
20516 as_fn_arith ()
20517 {
20518 as_val=`expr "$@" || test $? -eq 1`
20519 }
20520 fi # as_fn_arith
20521
20522
20523 if expr a : '\(a\)' >/dev/null 2>&1 &&
20524 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20525 as_expr=expr
20526 else
20527 as_expr=false
20528 fi
20529
20530 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20531 as_basename=basename
20532 else
20533 as_basename=false
20534 fi
20535
20536 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20537 as_dirname=dirname
20538 else
20539 as_dirname=false
20540 fi
20541
20542 as_me=`$as_basename -- "$0" ||
20543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20544 X"$0" : 'X\(//\)$' \| \
20545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20546 $as_echo X/"$0" |
20547 sed '/^.*\/\([^/][^/]*\)\/*$/{
20548 s//\1/
20549 q
20550 }
20551 /^X\/\(\/\/\)$/{
20552 s//\1/
20553 q
20554 }
20555 /^X\/\(\/\).*/{
20556 s//\1/
20557 q
20558 }
20559 s/.*/./; q'`
20560
20561 # Avoid depending upon Character Ranges.
20562 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20563 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20564 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20565 as_cr_digits='0123456789'
20566 as_cr_alnum=$as_cr_Letters$as_cr_digits
20567
20568 ECHO_C= ECHO_N= ECHO_T=
20569 case `echo -n x` in #(((((
20570 -n*)
20571 case `echo 'xy\c'` in
20572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20573 xy) ECHO_C='\c';;
20574 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20575 ECHO_T=' ';;
20576 esac;;
20577 *)
20578 ECHO_N='-n';;
20579 esac
20580
20581 rm -f conf$$ conf$$.exe conf$$.file
20582 if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20584 else
20585 rm -f conf$$.dir
20586 mkdir conf$$.dir 2>/dev/null
20587 fi
20588 if (echo >conf$$.file) 2>/dev/null; then
20589 if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s='ln -s'
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -pR'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596 as_ln_s='cp -pR'
20597 elif ln conf$$.file conf$$ 2>/dev/null; then
20598 as_ln_s=ln
20599 else
20600 as_ln_s='cp -pR'
20601 fi
20602 else
20603 as_ln_s='cp -pR'
20604 fi
20605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20606 rmdir conf$$.dir 2>/dev/null
20607
20608
20609 # as_fn_mkdir_p
20610 # -------------
20611 # Create "$as_dir" as a directory, including parents if necessary.
20612 as_fn_mkdir_p ()
20613 {
20614
20615 case $as_dir in #(
20616 -*) as_dir=./$as_dir;;
20617 esac
20618 test -d "$as_dir" || eval $as_mkdir_p || {
20619 as_dirs=
20620 while :; do
20621 case $as_dir in #(
20622 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20623 *) as_qdir=$as_dir;;
20624 esac
20625 as_dirs="'$as_qdir' $as_dirs"
20626 as_dir=`$as_dirname -- "$as_dir" ||
20627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20628 X"$as_dir" : 'X\(//\)[^/]' \| \
20629 X"$as_dir" : 'X\(//\)$' \| \
20630 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20631 $as_echo X"$as_dir" |
20632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)[^/].*/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\/\)$/{
20641 s//\1/
20642 q
20643 }
20644 /^X\(\/\).*/{
20645 s//\1/
20646 q
20647 }
20648 s/.*/./; q'`
20649 test -d "$as_dir" && break
20650 done
20651 test -z "$as_dirs" || eval "mkdir $as_dirs"
20652 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20653
20654
20655 } # as_fn_mkdir_p
20656 if mkdir -p . 2>/dev/null; then
20657 as_mkdir_p='mkdir -p "$as_dir"'
20658 else
20659 test -d ./-p && rmdir ./-p
20660 as_mkdir_p=false
20661 fi
20662
20663
20664 # as_fn_executable_p FILE
20665 # -----------------------
20666 # Test if FILE is an executable regular file.
20667 as_fn_executable_p ()
20668 {
20669 test -f "$1" && test -x "$1"
20670 } # as_fn_executable_p
20671 as_test_x='test -x'
20672 as_executable_p=as_fn_executable_p
20673
20674 # Sed expression to map a string onto a valid CPP name.
20675 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20676
20677 # Sed expression to map a string onto a valid variable name.
20678 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20679
20680
20681 exec 6>&1
20682 ## ----------------------------------- ##
20683 ## Main body of $CONFIG_STATUS script. ##
20684 ## ----------------------------------- ##
20685 _ASEOF
20686 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20687
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20689 # Save the log message, to keep $0 and so on meaningful, and to
20690 # report actual input values of CONFIG_FILES etc. instead of their
20691 # values after options handling.
20692 ac_log="
20693 This file was extended by $as_me, which was
20694 generated by GNU Autoconf 2.69. Invocation command line was
20695
20696 CONFIG_FILES = $CONFIG_FILES
20697 CONFIG_HEADERS = $CONFIG_HEADERS
20698 CONFIG_LINKS = $CONFIG_LINKS
20699 CONFIG_COMMANDS = $CONFIG_COMMANDS
20700 $ $0 $@
20701
20702 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20703 "
20704
20705 _ACEOF
20706
20707 case $ac_config_files in *"
20708 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20709 esac
20710
20711
20712
20713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714 # Files that config.status was made for.
20715 config_files="$ac_config_files"
20716
20717 _ACEOF
20718
20719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720 ac_cs_usage="\
20721 \`$as_me' instantiates files and other configuration actions
20722 from templates according to the current configuration. Unless the files
20723 and actions are specified as TAGs, all are instantiated by default.
20724
20725 Usage: $0 [OPTION]... [TAG]...
20726
20727 -h, --help print this help, then exit
20728 -V, --version print version number and configuration settings, then exit
20729 --config print configuration, then exit
20730 -q, --quiet, --silent
20731 do not print progress messages
20732 -d, --debug don't remove temporary files
20733 --recheck update $as_me by reconfiguring in the same conditions
20734 --file=FILE[:TEMPLATE]
20735 instantiate the configuration file FILE
20736
20737 Configuration files:
20738 $config_files
20739
20740 Report bugs to the package provider."
20741
20742 _ACEOF
20743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20744 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20745 ac_cs_version="\\
20746 config.status
20747 configured by $0, generated by GNU Autoconf 2.69,
20748 with options \\"\$ac_cs_config\\"
20749
20750 Copyright (C) 2012 Free Software Foundation, Inc.
20751 This config.status script is free software; the Free Software Foundation
20752 gives unlimited permission to copy, distribute and modify it."
20753
20754 ac_pwd='$ac_pwd'
20755 srcdir='$srcdir'
20756 INSTALL='$INSTALL'
20757 AWK='$AWK'
20758 test -n "\$AWK" || AWK=awk
20759 _ACEOF
20760
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762 # The default lists apply if the user does not specify any file.
20763 ac_need_defaults=:
20764 while test $# != 0
20765 do
20766 case $1 in
20767 --*=?*)
20768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20770 ac_shift=:
20771 ;;
20772 --*=)
20773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20774 ac_optarg=
20775 ac_shift=:
20776 ;;
20777 *)
20778 ac_option=$1
20779 ac_optarg=$2
20780 ac_shift=shift
20781 ;;
20782 esac
20783
20784 case $ac_option in
20785 # Handling of the options.
20786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20787 ac_cs_recheck=: ;;
20788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20789 $as_echo "$ac_cs_version"; exit ;;
20790 --config | --confi | --conf | --con | --co | --c )
20791 $as_echo "$ac_cs_config"; exit ;;
20792 --debug | --debu | --deb | --de | --d | -d )
20793 debug=: ;;
20794 --file | --fil | --fi | --f )
20795 $ac_shift
20796 case $ac_optarg in
20797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20798 '') as_fn_error $? "missing file argument" ;;
20799 esac
20800 as_fn_append CONFIG_FILES " '$ac_optarg'"
20801 ac_need_defaults=false;;
20802 --he | --h | --help | --hel | -h )
20803 $as_echo "$ac_cs_usage"; exit ;;
20804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20806 ac_cs_silent=: ;;
20807
20808 # This is an error.
20809 -*) as_fn_error $? "unrecognized option: \`$1'
20810 Try \`$0 --help' for more information." ;;
20811
20812 *) as_fn_append ac_config_targets " $1"
20813 ac_need_defaults=false ;;
20814
20815 esac
20816 shift
20817 done
20818
20819 ac_configure_extra_args=
20820
20821 if $ac_cs_silent; then
20822 exec 6>/dev/null
20823 ac_configure_extra_args="$ac_configure_extra_args --silent"
20824 fi
20825
20826 _ACEOF
20827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20828 if \$ac_cs_recheck; then
20829 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20830 shift
20831 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20832 CONFIG_SHELL='$SHELL'
20833 export CONFIG_SHELL
20834 exec "\$@"
20835 fi
20836
20837 _ACEOF
20838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20839 exec 5>>config.log
20840 {
20841 echo
20842 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20843 ## Running $as_me. ##
20844 _ASBOX
20845 $as_echo "$ac_log"
20846 } >&5
20847
20848 _ACEOF
20849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20850 #
20851 # INIT-COMMANDS
20852 #
20853 extrasub_build="$extrasub_build"
20854 extrasub_host="$extrasub_host"
20855 extrasub_target="$extrasub_target"
20856
20857 _ACEOF
20858
20859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20860
20861 # Handling of arguments.
20862 for ac_config_target in $ac_config_targets
20863 do
20864 case $ac_config_target in
20865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20866
20867 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20868 esac
20869 done
20870
20871
20872 # If the user did not use the arguments to specify the items to instantiate,
20873 # then the envvar interface is used. Set only those that are not.
20874 # We use the long form for the default assignment because of an extremely
20875 # bizarre bug on SunOS 4.1.3.
20876 if $ac_need_defaults; then
20877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20878 fi
20879
20880 # Have a temporary directory for convenience. Make it in the build tree
20881 # simply because there is no reason against having it here, and in addition,
20882 # creating and moving files from /tmp can sometimes cause problems.
20883 # Hook for its removal unless debugging.
20884 # Note that there is a small window in which the directory will not be cleaned:
20885 # after its creation but before its name has been assigned to `$tmp'.
20886 $debug ||
20887 {
20888 tmp= ac_tmp=
20889 trap 'exit_status=$?
20890 : "${ac_tmp:=$tmp}"
20891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20892 ' 0
20893 trap 'as_fn_exit 1' 1 2 13 15
20894 }
20895 # Create a (secure) tmp directory for tmp files.
20896
20897 {
20898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20899 test -d "$tmp"
20900 } ||
20901 {
20902 tmp=./conf$$-$RANDOM
20903 (umask 077 && mkdir "$tmp")
20904 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20905 ac_tmp=$tmp
20906
20907 # Set up the scripts for CONFIG_FILES section.
20908 # No need to generate them if there are no CONFIG_FILES.
20909 # This happens for instance with `./config.status config.h'.
20910 if test -n "$CONFIG_FILES"; then
20911
20912 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20913 ac_cs_awk_getline=:
20914 ac_cs_awk_pipe_init=
20915 ac_cs_awk_read_file='
20916 while ((getline aline < (F[key])) > 0)
20917 print(aline)
20918 close(F[key])'
20919 ac_cs_awk_pipe_fini=
20920 else
20921 ac_cs_awk_getline=false
20922 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20923 ac_cs_awk_read_file='
20924 print "|#_!!_#|"
20925 print "cat " F[key] " &&"
20926 '$ac_cs_awk_pipe_init
20927 # The final `:' finishes the AND list.
20928 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20929 fi
20930 ac_cr=`echo X | tr X '\015'`
20931 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20932 # But we know of no other shell where ac_cr would be empty at this
20933 # point, so we can use a bashism as a fallback.
20934 if test "x$ac_cr" = x; then
20935 eval ac_cr=\$\'\\r\'
20936 fi
20937 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20938 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20939 ac_cs_awk_cr='\\r'
20940 else
20941 ac_cs_awk_cr=$ac_cr
20942 fi
20943
20944 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20945 _ACEOF
20946
20947 # Create commands to substitute file output variables.
20948 {
20949 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20950 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20951 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20952 echo "_ACAWK" &&
20953 echo "_ACEOF"
20954 } >conf$$files.sh &&
20955 . ./conf$$files.sh ||
20956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20957 rm -f conf$$files.sh
20958
20959 {
20960 echo "cat >conf$$subs.awk <<_ACEOF" &&
20961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20962 echo "_ACEOF"
20963 } >conf$$subs.sh ||
20964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20966 ac_delim='%!_!# '
20967 for ac_last_try in false false false false false :; do
20968 . ./conf$$subs.sh ||
20969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20970
20971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20972 if test $ac_delim_n = $ac_delim_num; then
20973 break
20974 elif $ac_last_try; then
20975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20976 else
20977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20978 fi
20979 done
20980 rm -f conf$$subs.sh
20981
20982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20983 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20984 _ACEOF
20985 sed -n '
20986 h
20987 s/^/S["/; s/!.*/"]=/
20988 p
20989 g
20990 s/^[^!]*!//
20991 :repl
20992 t repl
20993 s/'"$ac_delim"'$//
20994 t delim
20995 :nl
20996 h
20997 s/\(.\{148\}\)..*/\1/
20998 t more1
20999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21000 p
21001 n
21002 b repl
21003 :more1
21004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21005 p
21006 g
21007 s/.\{148\}//
21008 t nl
21009 :delim
21010 h
21011 s/\(.\{148\}\)..*/\1/
21012 t more2
21013 s/["\\]/\\&/g; s/^/"/; s/$/"/
21014 p
21015 b
21016 :more2
21017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21018 p
21019 g
21020 s/.\{148\}//
21021 t delim
21022 ' <conf$$subs.awk | sed '
21023 /^[^""]/{
21024 N
21025 s/\n//
21026 }
21027 ' >>$CONFIG_STATUS || ac_write_fail=1
21028 rm -f conf$$subs.awk
21029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21030 _ACAWK
21031 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21032 for (key in S) S_is_set[key] = 1
21033 FS = "\a"
21034 \$ac_cs_awk_pipe_init
21035 }
21036 {
21037 line = $ 0
21038 nfields = split(line, field, "@")
21039 substed = 0
21040 len = length(field[1])
21041 for (i = 2; i < nfields; i++) {
21042 key = field[i]
21043 keylen = length(key)
21044 if (S_is_set[key]) {
21045 value = S[key]
21046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21047 len += length(value) + length(field[++i])
21048 substed = 1
21049 } else
21050 len += 1 + keylen
21051 }
21052 if (nfields == 3 && !substed) {
21053 key = field[2]
21054 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21055 \$ac_cs_awk_read_file
21056 next
21057 }
21058 }
21059 print line
21060 }
21061 \$ac_cs_awk_pipe_fini
21062 _ACAWK
21063 _ACEOF
21064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21067 else
21068 cat
21069 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21071 _ACEOF
21072
21073 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21074 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21075 # trailing colons and then remove the whole line if VPATH becomes empty
21076 # (actually we leave an empty line to preserve line numbers).
21077 if test "x$srcdir" = x.; then
21078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21079 h
21080 s///
21081 s/^/:/
21082 s/[ ]*$/:/
21083 s/:\$(srcdir):/:/g
21084 s/:\${srcdir}:/:/g
21085 s/:@srcdir@:/:/g
21086 s/^:*//
21087 s/:*$//
21088 x
21089 s/\(=[ ]*\).*/\1/
21090 G
21091 s/\n//
21092 s/^[^=]*=[ ]*$//
21093 }'
21094 fi
21095
21096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097 fi # test -n "$CONFIG_FILES"
21098
21099
21100 eval set X " :F $CONFIG_FILES "
21101 shift
21102 for ac_tag
21103 do
21104 case $ac_tag in
21105 :[FHLC]) ac_mode=$ac_tag; continue;;
21106 esac
21107 case $ac_mode$ac_tag in
21108 :[FHL]*:*);;
21109 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21110 :[FH]-) ac_tag=-:-;;
21111 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21112 esac
21113 ac_save_IFS=$IFS
21114 IFS=:
21115 set x $ac_tag
21116 IFS=$ac_save_IFS
21117 shift
21118 ac_file=$1
21119 shift
21120
21121 case $ac_mode in
21122 :L) ac_source=$1;;
21123 :[FH])
21124 ac_file_inputs=
21125 for ac_f
21126 do
21127 case $ac_f in
21128 -) ac_f="$ac_tmp/stdin";;
21129 *) # Look for the file first in the build tree, then in the source tree
21130 # (if the path is not absolute). The absolute path cannot be DOS-style,
21131 # because $ac_f cannot contain `:'.
21132 test -f "$ac_f" ||
21133 case $ac_f in
21134 [\\/$]*) false;;
21135 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21136 esac ||
21137 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21138 esac
21139 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21140 as_fn_append ac_file_inputs " '$ac_f'"
21141 done
21142
21143 # Let's still pretend it is `configure' which instantiates (i.e., don't
21144 # use $as_me), people would be surprised to read:
21145 # /* config.h. Generated by config.status. */
21146 configure_input='Generated from '`
21147 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21148 `' by configure.'
21149 if test x"$ac_file" != x-; then
21150 configure_input="$ac_file. $configure_input"
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21152 $as_echo "$as_me: creating $ac_file" >&6;}
21153 fi
21154 # Neutralize special characters interpreted by sed in replacement strings.
21155 case $configure_input in #(
21156 *\&* | *\|* | *\\* )
21157 ac_sed_conf_input=`$as_echo "$configure_input" |
21158 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21159 *) ac_sed_conf_input=$configure_input;;
21160 esac
21161
21162 case $ac_tag in
21163 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21165 esac
21166 ;;
21167 esac
21168
21169 ac_dir=`$as_dirname -- "$ac_file" ||
21170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21171 X"$ac_file" : 'X\(//\)[^/]' \| \
21172 X"$ac_file" : 'X\(//\)$' \| \
21173 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21174 $as_echo X"$ac_file" |
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21176 s//\1/
21177 q
21178 }
21179 /^X\(\/\/\)[^/].*/{
21180 s//\1/
21181 q
21182 }
21183 /^X\(\/\/\)$/{
21184 s//\1/
21185 q
21186 }
21187 /^X\(\/\).*/{
21188 s//\1/
21189 q
21190 }
21191 s/.*/./; q'`
21192 as_dir="$ac_dir"; as_fn_mkdir_p
21193 ac_builddir=.
21194
21195 case "$ac_dir" in
21196 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21197 *)
21198 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21199 # A ".." for each directory in $ac_dir_suffix.
21200 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21201 case $ac_top_builddir_sub in
21202 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21203 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21204 esac ;;
21205 esac
21206 ac_abs_top_builddir=$ac_pwd
21207 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21208 # for backward compatibility:
21209 ac_top_builddir=$ac_top_build_prefix
21210
21211 case $srcdir in
21212 .) # We are building in place.
21213 ac_srcdir=.
21214 ac_top_srcdir=$ac_top_builddir_sub
21215 ac_abs_top_srcdir=$ac_pwd ;;
21216 [\\/]* | ?:[\\/]* ) # Absolute name.
21217 ac_srcdir=$srcdir$ac_dir_suffix;
21218 ac_top_srcdir=$srcdir
21219 ac_abs_top_srcdir=$srcdir ;;
21220 *) # Relative name.
21221 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21222 ac_top_srcdir=$ac_top_build_prefix$srcdir
21223 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21224 esac
21225 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21226
21227
21228 case $ac_mode in
21229 :F)
21230 #
21231 # CONFIG_FILE
21232 #
21233
21234 case $INSTALL in
21235 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21236 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21237 esac
21238 _ACEOF
21239
21240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21241 # If the template does not know about datarootdir, expand it.
21242 # FIXME: This hack should be removed a few years after 2.60.
21243 ac_datarootdir_hack=; ac_datarootdir_seen=
21244 ac_sed_dataroot='
21245 /datarootdir/ {
21246 p
21247 q
21248 }
21249 /@datadir@/p
21250 /@docdir@/p
21251 /@infodir@/p
21252 /@localedir@/p
21253 /@mandir@/p'
21254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21255 *datarootdir*) ac_datarootdir_seen=yes;;
21256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21258 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21259 _ACEOF
21260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21261 ac_datarootdir_hack='
21262 s&@datadir@&$datadir&g
21263 s&@docdir@&$docdir&g
21264 s&@infodir@&$infodir&g
21265 s&@localedir@&$localedir&g
21266 s&@mandir@&$mandir&g
21267 s&\\\${datarootdir}&$datarootdir&g' ;;
21268 esac
21269 _ACEOF
21270
21271 # Neutralize VPATH when `$srcdir' = `.'.
21272 # Shell code in configure.ac might set extrasub.
21273 # FIXME: do we really want to maintain this feature?
21274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21275 ac_sed_extra="$ac_vpsub
21276 $extrasub
21277 _ACEOF
21278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21279 :t
21280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21281 s|@configure_input@|$ac_sed_conf_input|;t t
21282 s&@top_builddir@&$ac_top_builddir_sub&;t t
21283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21284 s&@srcdir@&$ac_srcdir&;t t
21285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21286 s&@top_srcdir@&$ac_top_srcdir&;t t
21287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21288 s&@builddir@&$ac_builddir&;t t
21289 s&@abs_builddir@&$ac_abs_builddir&;t t
21290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21291 s&@INSTALL@&$ac_INSTALL&;t t
21292 $ac_datarootdir_hack
21293 "
21294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21295 if $ac_cs_awk_getline; then
21296 $AWK -f "$ac_tmp/subs.awk"
21297 else
21298 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21299 fi \
21300 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21301
21302 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21303 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21304 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21305 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21307 which seems to be undefined. Please make sure it is defined" >&5
21308 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21309 which seems to be undefined. Please make sure it is defined" >&2;}
21310
21311 rm -f "$ac_tmp/stdin"
21312 case $ac_file in
21313 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21314 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21315 esac \
21316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21317 ;;
21318
21319
21320
21321 esac
21322
21323
21324 case $ac_file$ac_mode in
21325 "Makefile":F) sed "$extrasub_build" Makefile |
21326 sed "$extrasub_host" |
21327 sed "$extrasub_target" > mf$$
21328 mv -f mf$$ Makefile ;;
21329
21330 esac
21331 done # for ac_tag
21332
21333
21334 as_fn_exit 0
21335 _ACEOF
21336 ac_clean_files=$ac_clean_files_save
21337
21338 test $ac_write_fail = 0 ||
21339 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21340
21341
21342 # configure is writing to config.log, and then calls config.status.
21343 # config.status does its own redirection, appending to config.log.
21344 # Unfortunately, on DOS this fails, as config.log is still kept open
21345 # by configure, so config.status won't be able to write to it; its
21346 # output is simply discarded. So we exec the FD to /dev/null,
21347 # effectively closing config.log, so it can be properly (re)opened and
21348 # appended to by config.status. When coming back to configure, we
21349 # need to make the FD available again.
21350 if test "$no_create" != yes; then
21351 ac_cs_success=:
21352 ac_config_status_args=
21353 test "$silent" = yes &&
21354 ac_config_status_args="$ac_config_status_args --quiet"
21355 exec 5>/dev/null
21356 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21357 exec 5>>config.log
21358 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21359 # would make configure fail if this is the last instruction.
21360 $ac_cs_success || as_fn_exit 1
21361 fi
21362 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21364 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21365 fi
21366