Debian Codegraph @

configure

raw
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 [email protected] 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 GDC_FOR_BUILD
657 GOC_FOR_BUILD
658 GFORTRAN_FOR_BUILD
659 DSYMUTIL_FOR_BUILD
660 DLLTOOL_FOR_BUILD
661 CXX_FOR_BUILD
662 CXXFLAGS_FOR_BUILD
663 CPPFLAGS_FOR_BUILD
664 CPP_FOR_BUILD
665 CFLAGS_FOR_BUILD
666 CC_FOR_BUILD
667 AS_FOR_BUILD
668 AR_FOR_BUILD
669 target_configdirs
670 configdirs
671 build_configdirs
672 INSTALL_GDB_TK
673 GDB_TK
674 CONFIGURE_GDB_TK
675 build_tooldir
676 tooldir
677 GCC_SHLIB_SUBDIR
678 RPATH_ENVVAR
679 target_configargs
680 host_configargs
681 build_configargs
682 BUILD_CONFIG
683 LDFLAGS_FOR_TARGET
684 CXXFLAGS_FOR_TARGET
685 CFLAGS_FOR_TARGET
686 DEBUG_PREFIX_CFLAGS_FOR_TARGET
687 SYSROOT_CFLAGS_FOR_TARGET
688 get_gcc_base_ver
689 extra_host_zlib_configure_flags
690 extra_host_libiberty_configure_flags
691 stage1_languages
692 host_libs_picflag
693 CRAB1_LIBS
694 enable_libgdiagnostics
695 PICFLAG
696 host_shared
697 gcc_host_pie
698 host_pie
699 extra_linker_plugin_flags
700 extra_linker_plugin_configure_flags
701 islinc
702 isllibs
703 poststage1_ldflags
704 poststage1_libs
705 stage1_ldflags
706 stage1_libs
707 extra_isl_gmp_configure_flags
708 extra_mpc_mpfr_configure_flags
709 extra_mpc_gmp_configure_flags
710 extra_mpfr_configure_flags
711 gmpinc
712 gmplibs
713 PGO_BUILD_LTO_CFLAGS
714 PGO_BUILD_USE_CFLAGS
715 PGO_BUILD_GEN_CFLAGS
716 HAVE_CXX14_FOR_BUILD
717 HAVE_CXX14
718 do_compare
719 CARGO
720 GDC
721 GNATMAKE
722 GNATBIND
723 ac_ct_CXX
724 CXXFLAGS
725 CXX
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 target_subdir
734 host_subdir
735 build_subdir
736 build_libsubdir
737 AWK
738 SED
739 LN_S
740 LN
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 target_noncanonical
753 host_noncanonical
754 build_noncanonical
755 build_os
756 build_vendor
757 build_cpu
758 build
759 TOPLEVEL_CONFIGURE_ARGUMENTS
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files='serialization_dependencies
799 host_makefile_frag
800 target_makefile_frag
801 alphaieee_frag
802 ospace_frag'
803 ac_user_opts='
804 enable_option_checking
805 with_build_libsubdir
806 with_system_zlib
807 with_zstd
808 enable_as_accelerator_for
809 enable_offload_targets
810 enable_offload_defaulted
811 enable_gold
812 enable_ld
813 enable_gprofng
814 enable_compressed_debug_sections
815 enable_default_compressed_debug_sections_algorithm
816 enable_year2038
817 enable_libquadmath
818 enable_libquadmath_support
819 enable_libada
820 enable_libgm2
821 enable_libssp
822 enable_libstdcxx
823 enable_bootstrap
824 enable_pgo_build
825 with_mpc
826 with_mpc_include
827 with_mpc_lib
828 with_mpfr
829 with_mpfr_include
830 with_mpfr_lib
831 with_gmp
832 with_gmp_include
833 with_gmp_lib
834 with_stage1_libs
835 with_static_standard_libraries
836 with_stage1_ldflags
837 with_boot_libs
838 with_boot_ldflags
839 with_isl
840 with_isl_include
841 with_isl_lib
842 enable_isl_version_check
843 enable_lto
844 enable_linker_plugin_configure_flags
845 enable_linker_plugin_flags
846 enable_host_pie
847 enable_host_shared
848 enable_libgdiagnostics
849 enable_stage1_languages
850 enable_objc_gc
851 with_target_bdw_gc
852 with_target_bdw_gc_include
853 with_target_bdw_gc_lib
854 with_gcc_major_version_only
855 with_build_sysroot
856 with_debug_prefix_map
857 with_build_config
858 enable_vtable_verify
859 enable_serial_configure
860 with_build_time_tools
861 enable_maintainer_mode
862 enable_stage1_checking
863 enable_werror
864 '
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CC
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
873 CXX
874 CXXFLAGS
875 CCC
876 build_configargs
877 host_configargs
878 target_configargs
879 AR
880 AS
881 DLLTOOL
882 DSYMUTIL
883 LD
884 LIPO
885 NM
886 RANLIB
887 STRIP
888 WINDRES
889 WINDMC
890 OBJCOPY
891 OBJDUMP
892 OTOOL
893 READELF
894 CC_FOR_TARGET
895 CXX_FOR_TARGET
896 GCC_FOR_TARGET
897 GFORTRAN_FOR_TARGET
898 GOC_FOR_TARGET
899 GDC_FOR_TARGET
900 GM2_FOR_TARGET
901 AR_FOR_TARGET
902 AS_FOR_TARGET
903 DLLTOOL_FOR_TARGET
904 DSYMUTIL_FOR_TARGET
905 LD_FOR_TARGET
906 LIPO_FOR_TARGET
907 NM_FOR_TARGET
908 OBJCOPY_FOR_TARGET
909 OBJDUMP_FOR_TARGET
910 OTOOL_FOR_TARGET
911 RANLIB_FOR_TARGET
912 READELF_FOR_TARGET
913 STRIP_FOR_TARGET
914 WINDRES_FOR_TARGET
915 WINDMC_FOR_TARGET'
916
917
918 # Initialize some variables set by options.
919 ac_init_help=
920 ac_init_version=false
921 ac_unrecognized_opts=
922 ac_unrecognized_sep=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
925 cache_file=/dev/null
926 exec_prefix=NONE
927 no_create=
928 no_recursion=
929 prefix=NONE
930 program_prefix=NONE
931 program_suffix=NONE
932 program_transform_name=s,x,x,
933 silent=
934 site=
935 srcdir=
936 verbose=
937 x_includes=NONE
938 x_libraries=NONE
939
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE}'
957 infodir='${datarootdir}/info'
958 htmldir='${docdir}'
959 dvidir='${docdir}'
960 pdfdir='${docdir}'
961 psdir='${docdir}'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
965
966 ac_prev=
967 ac_dashdash=
968 for ac_option
969 do
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
973 ac_prev=
974 continue
975 fi
976
977 case $ac_option in
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 *=) ac_optarg= ;;
980 *) ac_optarg=yes ;;
981 esac
982
983 # Accept the important Cygnus configure options, so we can diagnose typos.
984
985 case $ac_dashdash$ac_option in
986 --)
987 ac_dashdash=yes ;;
988
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
993
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
998
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1005
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1008
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1013
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1020
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=no ;;
1036
1037 -docdir | --docdir | --docdi | --doc | --do)
1038 ac_prev=docdir ;;
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1041
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043 ac_prev=dvidir ;;
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1046
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1055 *"
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1062
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1071
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1075
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1082
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1087
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1093
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1100
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1105
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1110
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1117
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1122
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1129
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1134
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1138
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1142
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1146
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1155
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1160
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1167
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1174
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1191
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1196
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1201
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1205
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1211
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1222
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1227
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1232
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1239
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1244
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1247
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1250
1251 -with-* | --with-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1259 *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1266
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1275 *"
1276 "with_$ac_useropt"
1277 "*) ;;
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1280 esac
1281 eval with_$ac_useropt=no ;;
1282
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1286
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1293
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1300
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1303 ;;
1304
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311 esac
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1314
1315 *)
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321 ;;
1322
1323 esac
1324 done
1325
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1329 fi
1330
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336 esac
1337 fi
1338
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1344 do
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1347 case $ac_val in
1348 */ )
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1351 esac
1352 # Be sure to have absolute directory names.
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1358 done
1359
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1363 build=$build_alias
1364 host=$host_alias
1365 target=$target_alias
1366
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374 fi
1375
1376 ac_tool_prefix=
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379 test "$silent" = yes && exec 6>/dev/null
1380
1381
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $? "pwd does not report name of working directory"
1388
1389
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
1417 srcdir=$ac_confdir
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 srcdir=..
1420 fi
1421 else
1422 ac_srcdir_defaulted=no
1423 fi
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1435 fi
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 case $srcdir in
1443 *" "*)
1444 as_fn_error $? "path to source, $srcdir, contains spaces"
1445 ;;
1446 esac
1447 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1448
1449 for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
1463 \`configure' configures this package to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF
1517
1518 cat <<\_ACEOF
1519
1520 Program names:
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1524
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533
1534 cat <<\_ACEOF
1535
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-as-accelerator-for=ARG
1541 build as offload target compiler. Specify offload
1542 host triple by ARG
1543 --enable-offload-targets=LIST
1544 enable offloading to devices from comma-separated
1545 LIST of TARGET[=DIR]. Use optional path to find
1546 offload target compiler during the build
1547 --enable-offload-defaulted
1548 If enabled, configured but not installed offload compilers and
1549 libgomp plugins are silently ignored. Useful for distribution
1550 compilers where those are in separate optional packages.
1551
1552 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1553 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1554 --disable-gprofng do not build gprofng
1555 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1556 Enable compressed debug sections for gas, gold or ld
1557 by default
1558 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1559 Default compression algorithm for
1560 --enable-compressed-debug-sections.
1561 --enable-year2038 enable support for timestamps past the year 2038
1562 --disable-libquadmath do not build libquadmath directory
1563 --disable-libquadmath-support
1564 disable libquadmath support for Fortran
1565 --enable-libada build libada directory
1566 --enable-libgm2 build libgm2 directory
1567 --enable-libssp build libssp directory
1568 --disable-libstdcxx do not build libstdc++-v3 directory
1569 --enable-bootstrap enable bootstrapping [yes if native build]
1570 --enable-pgo-build[=lto]
1571 enable the PGO build
1572 --disable-isl-version-check
1573 disable check for isl version
1574 --enable-lto enable link time optimization support
1575 --enable-linker-plugin-configure-flags=FLAGS
1576 additional flags for configuring linker plugins
1577 [none]
1578 --enable-linker-plugin-flags=FLAGS
1579 additional flags for configuring and building linker
1580 plugins [none]
1581 --enable-host-pie build position independent host executables
1582 --enable-host-shared build host code as shared libraries
1583 --enable-libgdiagnostics
1584 build libgdiagnostics shared library
1585 --enable-stage1-languages[=all]
1586 choose additional languages to build during stage1.
1587 Mostly useful for compiler development
1588 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1589 Objective-C runtime
1590 --enable-vtable-verify Enable vtable verification feature
1591 --enable-serial-[{host,target,build}-]configure
1592 force sequential configuration of sub-packages for
1593 the host, target or build machine, or all
1594 sub-packages
1595 --enable-maintainer-mode
1596 enable make rules and dependencies not useful (and
1597 sometimes confusing) to the casual installer
1598 --enable-stage1-checking[=all]
1599 choose additional checking for stage1 of the
1600 compiler
1601 --enable-werror enable -Werror in bootstrap stage2 and later
1602
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-build-libsubdir=DIR Directory where to find libraries for build system
1607 --with-system-zlib use installed libz
1608 --with-zstd Support zstd compressed debug sections
1609 (default=auto)
1610 --with-mpc=PATH specify prefix directory for installed MPC package.
1611 Equivalent to --with-mpc-include=PATH/include plus
1612 --with-mpc-lib=PATH/lib
1613 --with-mpc-include=PATH specify directory for installed MPC include files
1614 --with-mpc-lib=PATH specify directory for the installed MPC library
1615 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1616 Equivalent to --with-mpfr-include=PATH/include plus
1617 --with-mpfr-lib=PATH/lib
1618 --with-mpfr-include=PATH
1619 specify directory for installed MPFR include files
1620 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1621 --with-gmp=PATH specify prefix directory for the installed GMP
1622 package. Equivalent to
1623 --with-gmp-include=PATH/include plus
1624 --with-gmp-lib=PATH/lib
1625 --with-gmp-include=PATH specify directory for installed GMP include files
1626 --with-gmp-lib=PATH specify directory for the installed GMP library
1627 --with-stage1-libs=LIBS libraries for stage1
1628 --with-static-standard-libraries
1629 use -static-libstdc++ and -static-libgcc
1630 (default=auto)
1631 --with-stage1-ldflags=FLAGS
1632 linker flags for stage1
1633 --with-boot-libs=LIBS libraries for stage2 and later
1634 --with-boot-ldflags=FLAGS
1635 linker flags for stage2 and later
1636 --with-isl=PATH Specify prefix directory for the installed isl
1637 package. Equivalent to
1638 --with-isl-include=PATH/include plus
1639 --with-isl-lib=PATH/lib
1640 --with-isl-include=PATH Specify directory for installed isl include files
1641 --with-isl-lib=PATH Specify the directory for the installed isl library
1642 --with-target-bdw-gc=PATHLIST
1643 specify prefix directory for installed bdw-gc
1644 package. Equivalent to
1645 --with-target-bdw-gc-include=PATH/include plus
1646 --with-target-bdw-gc-lib=PATH/lib
1647 --with-target-bdw-gc-include=PATHLIST
1648 specify directories for installed bdw-gc include
1649 files
1650 --with-target-bdw-gc-lib=PATHLIST
1651 specify directories for installed bdw-gc library
1652 --with-gcc-major-version-only
1653 use only GCC major number in filesystem paths
1654 --with-build-sysroot=SYSROOT
1655 use sysroot as the system root during the build
1656 --with-debug-prefix-map='A=B C=D ...'
1657 map A to B, C to D ... in debug information
1658 --with-build-config='NAME NAME2...'
1659 use config/NAME.mk build configuration
1660 --with-build-time-tools=PATH
1661 use given path to find target tools during the build
1662
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1673 build_configargs
1674 additional configure arguments for build directories
1675 host_configargs
1676 additional configure arguments for host directories
1677 target_configargs
1678 additional configure arguments for target directories
1679 AR AR for the host
1680 AS AS for the host
1681 DLLTOOL DLLTOOL for the host
1682 DSYMUTIL DSYMUTIL for the host
1683 LD LD for the host
1684 LIPO LIPO for the host
1685 NM NM for the host
1686 RANLIB RANLIB for the host
1687 STRIP STRIP for the host
1688 WINDRES WINDRES for the host
1689 WINDMC WINDMC for the host
1690 OBJCOPY OBJCOPY for the host
1691 OBJDUMP OBJDUMP for the host
1692 OTOOL OTOOL for the host
1693 READELF READELF for the host
1694 CC_FOR_TARGET
1695 CC for the target
1696 CXX_FOR_TARGET
1697 CXX for the target
1698 GCC_FOR_TARGET
1699 GCC for the target
1700 GFORTRAN_FOR_TARGET
1701 GFORTRAN for the target
1702 GOC_FOR_TARGET
1703 GOC for the target
1704 GDC_FOR_TARGET
1705 GDC for the target
1706 GM2_FOR_TARGET
1707 GM2 for the target
1708 AR_FOR_TARGET
1709 AR for the target
1710 AS_FOR_TARGET
1711 AS for the target
1712 DLLTOOL_FOR_TARGET
1713 DLLTOOL for the target
1714 DSYMUTIL_FOR_TARGET
1715 DSYMUTIL for the target
1716 LD_FOR_TARGET
1717 LD for the target
1718 LIPO_FOR_TARGET
1719 LIPO for the target
1720 NM_FOR_TARGET
1721 NM for the target
1722 OBJCOPY_FOR_TARGET
1723 OBJCOPY for the target
1724 OBJDUMP_FOR_TARGET
1725 OBJDUMP for the target
1726 OTOOL_FOR_TARGET
1727 OTOOL for the target
1728 RANLIB_FOR_TARGET
1729 RANLIB for the target
1730 READELF_FOR_TARGET
1731 READELF for the target
1732 STRIP_FOR_TARGET
1733 STRIP for the target
1734 WINDRES_FOR_TARGET
1735 WINDRES for the target
1736 WINDMC_FOR_TARGET
1737 WINDMC for the target
1738
1739 Use these variables to override the choices made by `configure' or to help
1740 it to find libraries and programs with nonstandard names/locations.
1741
1742 Report bugs to the package provider.
1743 _ACEOF
1744 ac_status=$?
1745 fi
1746
1747 if test "$ac_init_help" = "recursive"; then
1748 # If there are subdirs, report their specific --help.
1749 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1750 test -d "$ac_dir" ||
1751 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 continue
1753 ac_builddir=.
1754
1755 case "$ac_dir" in
1756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *)
1758 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1759 # A ".." for each directory in $ac_dir_suffix.
1760 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1761 case $ac_top_builddir_sub in
1762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1764 esac ;;
1765 esac
1766 ac_abs_top_builddir=$ac_pwd
1767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1768 # for backward compatibility:
1769 ac_top_builddir=$ac_top_build_prefix
1770
1771 case $srcdir in
1772 .) # We are building in place.
1773 ac_srcdir=.
1774 ac_top_srcdir=$ac_top_builddir_sub
1775 ac_abs_top_srcdir=$ac_pwd ;;
1776 [\\/]* | ?:[\\/]* ) # Absolute name.
1777 ac_srcdir=$srcdir$ac_dir_suffix;
1778 ac_top_srcdir=$srcdir
1779 ac_abs_top_srcdir=$srcdir ;;
1780 *) # Relative name.
1781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1782 ac_top_srcdir=$ac_top_build_prefix$srcdir
1783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1784 esac
1785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1786
1787 cd "$ac_dir" || { ac_status=$?; continue; }
1788 # Check for guested configure.
1789 if test -f "$ac_srcdir/configure.gnu"; then
1790 echo &&
1791 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1792 elif test -f "$ac_srcdir/configure"; then
1793 echo &&
1794 $SHELL "$ac_srcdir/configure" --help=recursive
1795 else
1796 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1797 fi || ac_status=$?
1798 cd "$ac_pwd" || { ac_status=$?; break; }
1799 done
1800 fi
1801
1802 test -n "$ac_init_help" && exit $ac_status
1803 if $ac_init_version; then
1804 cat <<\_ACEOF
1805 configure
1806 generated by GNU Autoconf 2.69
1807
1808 Copyright (C) 2012 Free Software Foundation, Inc.
1809 This configure script is free software; the Free Software Foundation
1810 gives unlimited permission to copy, distribute and modify it.
1811 _ACEOF
1812 exit
1813 fi
1814
1815 ## ------------------------ ##
1816 ## Autoconf initialization. ##
1817 ## ------------------------ ##
1818
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855 } # ac_fn_c_try_compile
1856
1857 # ac_fn_cxx_try_compile LINENO
1858 # ----------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_compile ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext
1864 if { { ac_try="$ac_compile"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.$ac_objext; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=1
1889 fi
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status $ac_retval
1892
1893 } # ac_fn_cxx_try_compile
1894
1895 # ac_fn_cxx_try_link LINENO
1896 # -------------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_link ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1915 fi
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 ac_retval=1
1930 fi
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1938
1939 } # ac_fn_cxx_try_link
1940
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_c_try_link ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1961 fi
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1969 }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_retval=1
1976 fi
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1984
1985 } # ac_fn_c_try_link
1986 cat >config.log <<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1989
1990 It was created by $as_me, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
1992
1993 $ $0 $@
1994
1995 _ACEOF
1996 exec 5>>config.log
1997 {
1998 cat <<_ASUNAME
1999 ## --------- ##
2000 ## Platform. ##
2001 ## --------- ##
2002
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019
2020 _ASUNAME
2021
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 $as_echo "PATH: $as_dir"
2028 done
2029 IFS=$as_save_IFS
2030
2031 } >&5
2032
2033 cat >&5 <<_ACEOF
2034
2035
2036 ## ----------- ##
2037 ## Core tests. ##
2038 ## ----------- ##
2039
2040 _ACEOF
2041
2042
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_configure_args=
2049 ac_configure_args0=
2050 ac_configure_args1=
2051 ac_must_keep_next=false
2052 for ac_pass in 1 2
2053 do
2054 for ac_arg
2055 do
2056 case $ac_arg in
2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059 | -silent | --silent | --silen | --sile | --sil)
2060 continue ;;
2061 *\'*)
2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 esac
2064 case $ac_pass in
2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 2)
2067 as_fn_append ac_configure_args1 " '$ac_arg'"
2068 if test $ac_must_keep_next = true; then
2069 ac_must_keep_next=false # Got value, back to normal.
2070 else
2071 case $ac_arg in
2072 *=* | --config-cache | -C | -disable-* | --disable-* \
2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075 | -with-* | --with-* | -without-* | --without-* | --x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 esac
2079 ;;
2080 -* ) ac_must_keep_next=true ;;
2081 esac
2082 fi
2083 as_fn_append ac_configure_args " '$ac_arg'"
2084 ;;
2085 esac
2086 done
2087 done
2088 { ac_configure_args0=; unset ac_configure_args0;}
2089 { ac_configure_args1=; unset ac_configure_args1;}
2090
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2098 {
2099 echo
2100
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2104 echo
2105 # The following way of writing the cache mishandles newlines in values,
2106 (
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in #(
2110 *${as_nl}*)
2111 case $ac_var in #(
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 esac
2115 case $ac_var in #(
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2119 esac ;;
2120 esac
2121 done
2122 (set) 2>&1 |
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2125 sed -n \
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 ;; #(
2129 *)
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ;;
2132 esac |
2133 sort
2134 )
2135 echo
2136
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2140 echo
2141 for ac_var in $ac_subst_vars
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2155 echo
2156 for ac_var in $ac_subst_files
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165 fi
2166
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2169 ## confdefs.h. ##
2170 ## ----------- ##"
2171 echo
2172 cat confdefs.h
2173 echo
2174 fi
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2178 } >&5
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1=./$CONFIG_SITE;;
2228 */*) ac_site_file1=$CONFIG_SITE;;
2229 *) ac_site_file1=./$CONFIG_SITE;;
2230 esac
2231 elif test "x$prefix" != xNONE; then
2232 ac_site_file1=$prefix/share/config.site
2233 ac_site_file2=$prefix/etc/config.site
2234 else
2235 ac_site_file1=$ac_default_prefix/share/config.site
2236 ac_site_file2=$ac_default_prefix/etc/config.site
2237 fi
2238 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 do
2240 test "x$ac_site_file" = xNONE && continue
2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2245 . "$ac_site_file" \
2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $? "failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2250 fi
2251 done
2252
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2259 case $cache_file in
2260 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261 *) . "./$cache_file";;
2262 esac
2263 fi
2264 else
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 >$cache_file
2268 fi
2269
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2288 *)
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2301 fi
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2318 fi
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326 fi
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2330
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339
2340
2341
2342
2343
2344 progname=$0
2345 # if PWD already has a value, it is probably wrong.
2346 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2347
2348 # Export original configure arguments for use by sub-configures.
2349 # Quote arguments with shell meta charatcers.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS=
2351 set -- "$progname" "$@"
2352 for ac_arg
2353 do
2354 case "$ac_arg" in
2355 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2356 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2357 # if the argument is of the form -foo=baz, quote the baz part only
2358 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2359 *) ;;
2360 esac
2361 # Add the quoted argument to the list.
2362 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2363 done
2364 if test "$silent" = yes; then
2365 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2366 fi
2367 # Remove the initial space we just introduced and, as these will be
2368 # expanded by make, quote '$'.
2369 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2370
2371
2372 # Find the build, host, and target systems.
2373 ac_aux_dir=
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375 if test -f "$ac_dir/install-sh"; then
2376 ac_aux_dir=$ac_dir
2377 ac_install_sh="$ac_aux_dir/install-sh -c"
2378 break
2379 elif test -f "$ac_dir/install.sh"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/install.sh -c"
2382 break
2383 elif test -f "$ac_dir/shtool"; then
2384 ac_aux_dir=$ac_dir
2385 ac_install_sh="$ac_aux_dir/shtool install -c"
2386 break
2387 fi
2388 done
2389 if test -z "$ac_aux_dir"; then
2390 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2391 fi
2392
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2400
2401
2402 # Make sure we can run config.sub.
2403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2405
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2407 $as_echo_n "checking build system type... " >&6; }
2408 if ${ac_cv_build+:} false; then :
2409 $as_echo_n "(cached) " >&6
2410 else
2411 ac_build_alias=$build_alias
2412 test "x$ac_build_alias" = x &&
2413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2414 test "x$ac_build_alias" = x &&
2415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2418
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2421 $as_echo "$ac_cv_build" >&6; }
2422 case $ac_cv_build in
2423 *-*-*) ;;
2424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2425 esac
2426 build=$ac_cv_build
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_build
2429 shift
2430 build_cpu=$1
2431 build_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 build_os=$*
2436 IFS=$ac_save_IFS
2437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 case ${build_alias} in
2441 "") build_noncanonical=${build} ;;
2442 *) build_noncanonical=${build_alias} ;;
2443 esac
2444
2445
2446
2447 case ${host_alias} in
2448 "") host_noncanonical=${build_noncanonical} ;;
2449 *) host_noncanonical=${host_alias} ;;
2450 esac
2451
2452
2453
2454 case ${target_alias} in
2455 "") target_noncanonical=${host_noncanonical} ;;
2456 *) target_noncanonical=${target_alias} ;;
2457 esac
2458
2459
2460
2461
2462 test "$host_noncanonical" = "$target_noncanonical" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_transform_name=s,y,y,
2466
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2468 $as_echo_n "checking host system type... " >&6; }
2469 if ${ac_cv_host+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test "x$host_alias" = x; then
2473 ac_cv_host=$ac_cv_build
2474 else
2475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2477 fi
2478
2479 fi
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2481 $as_echo "$ac_cv_host" >&6; }
2482 case $ac_cv_host in
2483 *-*-*) ;;
2484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2485 esac
2486 host=$ac_cv_host
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_host
2489 shift
2490 host_cpu=$1
2491 host_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 host_os=$*
2496 IFS=$ac_save_IFS
2497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2498
2499
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2501 $as_echo_n "checking target system type... " >&6; }
2502 if ${ac_cv_target+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test "x$target_alias" = x; then
2506 ac_cv_target=$ac_cv_host
2507 else
2508 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2510 fi
2511
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2514 $as_echo "$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2518 esac
2519 target=$ac_cv_target
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_target
2522 shift
2523 target_cpu=$1
2524 target_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 target_os=$*
2529 IFS=$ac_save_IFS
2530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2531
2532
2533 # The aliases save the names the user supplied, while $host etc.
2534 # will get canonicalized.
2535 test -n "$target_alias" &&
2536 test "$program_prefix$program_suffix$program_transform_name" = \
2537 NONENONEs,x,x, &&
2538 program_prefix=${target_alias}-
2539
2540 test "$program_prefix" != NONE &&
2541 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542 # Use a double $ so make ignores it.
2543 test "$program_suffix" != NONE &&
2544 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2545 # Double any \ or $.
2546 # By default was `s,x,x', remove it if useless.
2547 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2548 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2549
2550
2551
2552 # Get 'install' or 'install-sh' and its variants.
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2559 # AIX /bin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580 ./ | .// | /[cC]/* | \
2581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2583 /usr/ucb/* ) ;;
2584 *)
2585 # OSF1 and SCO ODT 3.0 have their own names for install.
2586 # Don't use installbsd from OSF since it installs stuff as root
2587 # by default.
2588 for ac_prog in ginstall scoinst install; do
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2591 if test $ac_prog = install &&
2592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2593 # AIX install. It has an incompatible calling convention.
2594 :
2595 elif test $ac_prog = install &&
2596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2597 # program-specific install script used by HP pwplus--don't use.
2598 :
2599 else
2600 rm -rf conftest.one conftest.two conftest.dir
2601 echo one > conftest.one
2602 echo two > conftest.two
2603 mkdir conftest.dir
2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2605 test -s conftest.one && test -s conftest.two &&
2606 test -s conftest.dir/conftest.one &&
2607 test -s conftest.dir/conftest.two
2608 then
2609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2610 break 3
2611 fi
2612 fi
2613 fi
2614 done
2615 done
2616 ;;
2617 esac
2618
2619 done
2620 IFS=$as_save_IFS
2621
2622 rm -rf conftest.one conftest.two conftest.dir
2623
2624 fi
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL=$ac_cv_path_install
2627 else
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
2632 INSTALL=$ac_install_sh
2633 fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2637
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2641
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2643
2644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2647 $as_echo_n "checking whether ln works... " >&6; }
2648 if ${acx_cv_prog_LN+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 rm -f conftestdata_t
2652 echo >conftestdata_f
2653 if ln conftestdata_f conftestdata_t 2>/dev/null
2654 then
2655 acx_cv_prog_LN=ln
2656 else
2657 acx_cv_prog_LN=no
2658 fi
2659 rm -f conftestdata_f conftestdata_t
2660
2661 fi
2662 if test $acx_cv_prog_LN = no; then
2663 LN="cp"
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2665 $as_echo "no, using $LN" >&6; }
2666 else
2667 LN="$acx_cv_prog_LN"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 fi
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2673 $as_echo_n "checking whether ln -s works... " >&6; }
2674 LN_S=$as_ln_s
2675 if test "$LN_S" = "ln -s"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2680 $as_echo "no, using $LN_S" >&6; }
2681 fi
2682
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2685 if ${ac_cv_path_SED+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2689 for ac_i in 1 2 3 4 5 6 7; do
2690 ac_script="$ac_script$as_nl$ac_script"
2691 done
2692 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2693 { ac_script=; unset ac_script;}
2694 if test -z "$SED"; then
2695 ac_path_SED_found=false
2696 # Loop through the user's path and test for each of PROGNAME-LIST
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_prog in sed gsed; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2705 as_fn_executable_p "$ac_path_SED" || continue
2706 # Check for GNU ac_path_SED and select it if it is found.
2707 # Check for GNU $ac_path_SED
2708 case `"$ac_path_SED" --version 2>&1` in
2709 *GNU*)
2710 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2711 *)
2712 ac_count=0
2713 $as_echo_n 0123456789 >"conftest.in"
2714 while :
2715 do
2716 cat "conftest.in" "conftest.in" >"conftest.tmp"
2717 mv "conftest.tmp" "conftest.in"
2718 cp "conftest.in" "conftest.nl"
2719 $as_echo '' >> "conftest.nl"
2720 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2722 as_fn_arith $ac_count + 1 && ac_count=$as_val
2723 if test $ac_count -gt ${ac_path_SED_max-0}; then
2724 # Best one so far, save it but keep looking for a better one
2725 ac_cv_path_SED="$ac_path_SED"
2726 ac_path_SED_max=$ac_count
2727 fi
2728 # 10*(2^10) chars as input seems more than enough
2729 test $ac_count -gt 10 && break
2730 done
2731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2732 esac
2733
2734 $ac_path_SED_found && break 3
2735 done
2736 done
2737 done
2738 IFS=$as_save_IFS
2739 if test -z "$ac_cv_path_SED"; then
2740 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2741 fi
2742 else
2743 ac_cv_path_SED=$SED
2744 fi
2745
2746 fi
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2748 $as_echo "$ac_cv_path_SED" >&6; }
2749 SED="$ac_cv_path_SED"
2750 rm -f conftest.sed
2751
2752 for ac_prog in gawk mawk nawk awk
2753 do
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_AWK+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$AWK"; then
2762 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_AWK="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 AWK=$ac_cv_prog_AWK
2782 if test -n "$AWK"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2784 $as_echo "$AWK" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790
2791 test -n "$AWK" && break
2792 done
2793
2794
2795 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2796
2797 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2798 # a relative path.
2799 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2800 INSTALL="${srcpwd}/install-sh -c"
2801 fi
2802
2803 # Set srcdir to "." if that's what it is.
2804 # This is important for multilib support.
2805 pwd=`${PWDCMD-pwd}`
2806 if test "${pwd}" = "${srcpwd}" ; then
2807 srcdir=.
2808 fi
2809
2810 topsrcdir=$srcpwd
2811
2812 extra_host_args=
2813
2814 ### To add a new directory to the tree, first choose whether it is a target
2815 ### or a host dependent tool. Then put it into the appropriate list
2816 ### (library or tools, host or target), doing a dependency sort.
2817
2818 # Subdirs will be configured in the order listed in build_configdirs,
2819 # configdirs, or target_configdirs; see the serialization section below.
2820
2821 # Dependency sorting is only needed when *configuration* must be done in
2822 # a particular order. In all cases a dependency should be specified in
2823 # the Makefile, whether or not it's implicitly specified here.
2824
2825 # Double entries in build_configdirs, configdirs, or target_configdirs may
2826 # cause circular dependencies and break everything horribly.
2827
2828 # these library is used by various programs built for the build
2829 # environment
2830 #
2831 build_libs="build-libiberty build-libcpp"
2832
2833 # these tools are built for the build environment
2834 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2835
2836 # these libraries are used by various programs built for the host environment
2837 #f
2838 host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2839
2840 # these tools are built for the host environment
2841 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2842 # know that we are building the simulator.
2843 # binutils, gas and ld appear in that order because it makes sense to run
2844 # "make check" in that particular order.
2845 # If --enable-gold is used, "gold" may replace "ld".
2846 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"
2847
2848 # these libraries are built for the target environment, and are built after
2849 # the host libraries and the host tools (which may be a cross compiler)
2850 # Note that libiberty is not a target library.
2851 target_libraries="target-libgcc \
2852 target-libbacktrace \
2853 target-libgloss \
2854 target-newlib \
2855 target-libgomp \
2856 target-libatomic \
2857 target-libitm \
2858 target-libstdc++-v3 \
2859 target-libsanitizer \
2860 target-libvtv \
2861 target-libssp \
2862 target-libquadmath \
2863 target-libgfortran \
2864 target-libffi \
2865 target-libobjc \
2866 target-libgcobol \
2867 target-libada \
2868 target-libgm2 \
2869 target-libgo \
2870 target-libgrust \
2871 target-libphobos \
2872 target-zlib"
2873
2874 # these tools are built using the target libraries, and are intended to
2875 # run only in the target environment
2876 #
2877 # note: any program that *uses* libraries that are in the "target_libraries"
2878 # list belongs in this list.
2879 #
2880 target_tools="target-rda"
2881
2882 ################################################################################
2883
2884 ## All tools belong in one of the four categories, and are assigned above
2885 ## We assign ${configdirs} this way to remove all embedded newlines. This
2886 ## is important because configure will choke if they ever get through.
2887 ## ${configdirs} is directories we build using the host tools.
2888 ## ${target_configdirs} is directories we build using the target tools.
2889 configdirs=`echo ${host_libs} ${host_tools}`
2890 target_configdirs=`echo ${target_libraries} ${target_tools}`
2891 build_configdirs=`echo ${build_libs} ${build_tools}`
2892
2893
2894
2895 ################################################################################
2896
2897 srcname="gnu development package"
2898
2899 # This gets set non-empty for some net releases of packages.
2900 appdirs=""
2901
2902 # Define is_cross_compiler to save on calls to 'test'.
2903 is_cross_compiler=
2904 if test x"${host}" = x"${target}" ; then
2905 is_cross_compiler=no
2906 else
2907 is_cross_compiler=yes
2908 fi
2909
2910 # Find the build and target subdir names.
2911
2912 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2913 # have matching libraries, they should use host libraries: Makefile.tpl
2914 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2915 # However, they still use the build modules, because the corresponding
2916 # host modules (e.g. bison) are only built for the host when bootstrap
2917 # finishes. So:
2918 # - build_subdir is where we find build modules, and never changes.
2919 # - build_libsubdir is where we find build libraries, and can be overridden.
2920
2921 # Prefix 'build-' so this never conflicts with target_subdir.
2922 build_subdir="build-${build_noncanonical}"
2923
2924 # Check whether --with-build-libsubdir was given.
2925 if test "${with_build_libsubdir+set}" = set; then :
2926 withval=$with_build_libsubdir; build_libsubdir="$withval"
2927 else
2928 build_libsubdir="$build_subdir"
2929 fi
2930
2931 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2932 if ( test $srcdir = . && test -d gcc ) \
2933 || test -d $srcdir/../host-${host_noncanonical}; then
2934 host_subdir="host-${host_noncanonical}"
2935 else
2936 host_subdir=.
2937 fi
2938 # No prefix.
2939 target_subdir=${target_noncanonical}
2940
2941 # Be sure to cover against remnants of an in-tree build.
2942 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2943 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2944 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2945 fi
2946
2947 # Skipdirs are removed silently.
2948 skipdirs=
2949 # Noconfigdirs are removed loudly.
2950 noconfigdirs=""
2951
2952 use_gnu_ld=
2953 # Make sure we don't let GNU ld be added if we didn't want it.
2954 if test x$with_gnu_ld = xno ; then
2955 use_gnu_ld=no
2956 noconfigdirs="$noconfigdirs ld gold"
2957 fi
2958
2959 use_gnu_as=
2960 # Make sure we don't let GNU as be added if we didn't want it.
2961 if test x$with_gnu_as = xno ; then
2962 use_gnu_as=no
2963 noconfigdirs="$noconfigdirs gas"
2964 fi
2965
2966 use_included_zlib=
2967
2968 # Check whether --with-system-zlib was given.
2969 if test "${with_system_zlib+set}" = set; then :
2970 withval=$with_system_zlib;
2971 fi
2972
2973 # Make sure we don't let ZLIB be added if we didn't want it.
2974 if test x$with_system_zlib = xyes ; then
2975 use_included_zlib=no
2976 noconfigdirs="$noconfigdirs zlib"
2977 fi
2978
2979 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2980 # is provided.
2981 if test x$with_system_readline = xyes ; then
2982 noconfigdirs="$noconfigdirs readline"
2983 fi
2984
2985
2986 # Check whether --with-zstd was given.
2987 if test "${with_zstd+set}" = set; then :
2988 withval=$with_zstd;
2989 fi
2990
2991
2992 # some tools are so dependent upon X11 that if we're not building with X,
2993 # it's not even worth trying to configure, much less build, that tool.
2994
2995 case ${with_x} in
2996 yes | "") ;; # the default value for this tree is that X11 is available
2997 no)
2998 skipdirs="${skipdirs} tk itcl libgui"
2999 # We won't be able to build gdbtk without X.
3000 enable_gdbtk=no
3001 ;;
3002 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3003 esac
3004
3005 # Some are only suitable for cross toolchains.
3006 # Remove these if host=target.
3007 cross_only="target-libgloss target-newlib target-opcodes"
3008
3009 case $is_cross_compiler in
3010 no) skipdirs="${skipdirs} ${cross_only}" ;;
3011 esac
3012
3013 # If both --with-headers and --with-libs are specified, default to
3014 # --without-newlib.
3015 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3016 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3017 if test x"${with_newlib}" = x ; then
3018 with_newlib=no
3019 fi
3020 fi
3021
3022 # Recognize --with-newlib/--without-newlib.
3023 case ${with_newlib} in
3024 no) skipdirs="${skipdirs} target-newlib" ;;
3025 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3026 esac
3027
3028 # Check whether --enable-as-accelerator-for was given.
3029 if test "${enable_as_accelerator_for+set}" = set; then :
3030 enableval=$enable_as_accelerator_for;
3031 fi
3032
3033
3034 # Check whether --enable-offload-targets was given.
3035 if test "${enable_offload_targets+set}" = set; then :
3036 enableval=$enable_offload_targets;
3037 if test x"$enable_offload_targets" = x; then
3038 as_fn_error $? "no offload targets specified" "$LINENO" 5
3039 fi
3040
3041 else
3042 enable_offload_targets=
3043 fi
3044
3045
3046 # Check whether --enable-offload-defaulted was given.
3047 if test "${enable_offload_defaulted+set}" = set; then :
3048 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3049 else
3050 enable_offload_defaulted=
3051 fi
3052
3053
3054 # Handle --enable-gold, --enable-ld.
3055 # --disable-gold [--enable-ld]
3056 # Build only ld. Default option.
3057 # --enable-gold [--enable-ld]
3058 # Build both gold and ld. Install gold as "ld.gold", install ld
3059 # as "ld.bfd" and "ld".
3060 # --enable-gold=default [--enable-ld]
3061 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3062 # install ld as "ld.bfd".
3063 # --enable-gold[=default] --disable-ld
3064 # Build only gold, which is then installed as both "ld.gold" and "ld".
3065 # --enable-gold --enable-ld=default
3066 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3067 # and ld.bfd).
3068 # In other words, ld is default
3069 # --enable-gold=default --enable-ld=default
3070 # Error.
3071
3072 default_ld=
3073 # Check whether --enable-gold was given.
3074 if test "${enable_gold+set}" = set; then :
3075 enableval=$enable_gold; ENABLE_GOLD=$enableval
3076 else
3077 ENABLE_GOLD=no
3078 fi
3079
3080 case "${ENABLE_GOLD}" in
3081 yes|default)
3082 # Check for ELF target.
3083 is_elf=no
3084 case "${target}" in
3085 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3086 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3087 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3088 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3089 case "${target}" in
3090 *-*-linux*aout* | *-*-linux*oldld*)
3091 ;;
3092 *)
3093 is_elf=yes
3094 ;;
3095 esac
3096 esac
3097
3098 if test "$is_elf" = "yes"; then
3099 # Check for target supported by gold.
3100 case "${target}" in
3101 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3102 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3103 configdirs="$configdirs gold"
3104 if test x${ENABLE_GOLD} = xdefault; then
3105 default_ld=gold
3106 fi
3107 ENABLE_GOLD=yes
3108 ;;
3109 esac
3110 fi
3111 ;;
3112 no)
3113 ;;
3114 *)
3115 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3116 ;;
3117 esac
3118
3119 # Check whether --enable-ld was given.
3120 if test "${enable_ld+set}" = set; then :
3121 enableval=$enable_ld; ENABLE_LD=$enableval
3122 else
3123 ENABLE_LD=yes
3124 fi
3125
3126
3127 case "${ENABLE_LD}" in
3128 default)
3129 if test x${default_ld} != x; then
3130 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3131 fi
3132 ;;
3133 yes)
3134 ;;
3135 no)
3136 if test x${ENABLE_GOLD} != xyes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3138 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3139 fi
3140 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3141 ;;
3142 *)
3143 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3144 ;;
3145 esac
3146
3147 # Check whether --enable-gprofng was given.
3148 if test "${enable_gprofng+set}" = set; then :
3149 enableval=$enable_gprofng; enable_gprofng=$enableval
3150 else
3151 enable_gprofng=yes
3152 fi
3153
3154 if test "$enable_gprofng" = "yes"; then
3155 case "${target}" in
3156 *-musl*)
3157 ;;
3158 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux* | riscv64-*-linux*)
3159 configdirs="$configdirs gprofng"
3160 ;;
3161 esac
3162 fi
3163
3164
3165 # PR gas/19109
3166 # Decide the default method for compressing debug sections.
3167 # Provide a configure time option to override our default.
3168 # Check whether --enable-compressed_debug_sections was given.
3169 if test "${enable_compressed_debug_sections+set}" = set; then :
3170 enableval=$enable_compressed_debug_sections;
3171 if test x"$enable_compressed_debug_sections" = xyes; then
3172 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3173 fi
3174
3175 else
3176 enable_compressed_debug_sections=
3177 fi
3178
3179
3180 # Select default compression algorithm.
3181 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3182 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3183 enableval=$enable_default_compressed_debug_sections_algorithm;
3184 else
3185 default_compressed_debug_sections_algorithm=
3186 fi
3187
3188
3189 # Configure extra directories which are host specific
3190
3191 case "${host}" in
3192 *-cygwin*)
3193 configdirs="$configdirs libtermcap" ;;
3194 esac
3195
3196 # A target can indicate whether a language isn't supported for some reason.
3197 # Only spaces may be used in this macro; not newlines or tabs.
3198 unsupported_languages=
3199
3200 # Remove more programs from consideration, based on the host or
3201 # target this usually means that a port of the program doesn't
3202 # exist yet.
3203
3204 case "${host}" in
3205 i[3456789]86-*-msdosdjgpp*)
3206 noconfigdirs="$noconfigdirs tcl tk itcl"
3207 ;;
3208 esac
3209
3210 # Default to --disable-year2038 until we can handle differences between
3211 # projects that use gnulib (which understands year 2038) and projects that
3212 # do not (like BFD).
3213 # Check whether --enable-year2038 was given.
3214 if test "${enable_year2038+set}" = set; then :
3215 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3216 else
3217 ENABLE_YEAR2038=no
3218 fi
3219
3220 enable_year2038=
3221 if test "${ENABLE_YEAR2038}" = "no" ; then
3222 enable_year2038=no
3223 fi
3224
3225 # Check whether --enable-libquadmath was given.
3226 if test "${enable_libquadmath+set}" = set; then :
3227 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3228 else
3229 ENABLE_LIBQUADMATH=yes
3230 fi
3231
3232 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3233 noconfigdirs="$noconfigdirs target-libquadmath"
3234 fi
3235
3236
3237 # Check whether --enable-libquadmath-support was given.
3238 if test "${enable_libquadmath_support+set}" = set; then :
3239 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3240 else
3241 ENABLE_LIBQUADMATH_SUPPORT=yes
3242 fi
3243
3244 enable_libquadmath_support=
3245 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3246 enable_libquadmath_support=no
3247 fi
3248
3249
3250 # Check whether --enable-libada was given.
3251 if test "${enable_libada+set}" = set; then :
3252 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3253 else
3254 ENABLE_LIBADA=yes
3255 fi
3256
3257 if test "${ENABLE_LIBADA}" != "yes" ; then
3258 noconfigdirs="$noconfigdirs gnattools"
3259 fi
3260
3261 # Check whether --enable-libgm2 was given.
3262 if test "${enable_libgm2+set}" = set; then :
3263 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3264 else
3265 ENABLE_LIBGM2=no
3266 fi
3267
3268 if test "${ENABLE_LIBGM2}" != "yes" ; then
3269 noconfigdirs="$noconfigdirs gm2tools"
3270 fi
3271
3272 # Check whether --enable-libssp was given.
3273 if test "${enable_libssp+set}" = set; then :
3274 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3275 else
3276 ENABLE_LIBSSP=yes
3277 fi
3278
3279
3280 # Check whether --enable-libstdcxx was given.
3281 if test "${enable_libstdcxx+set}" = set; then :
3282 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3283 else
3284 ENABLE_LIBSTDCXX=default
3285 fi
3286
3287 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3289 fi
3290
3291 # Enable libgomp by default on hosted POSIX systems, and a few others.
3292 if test x$enable_libgomp = x ; then
3293 case "${target}" in
3294 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3295 ;;
3296 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3297 ;;
3298 *-*-solaris2* | *-*-hpux11*)
3299 ;;
3300 *-*-darwin* | *-*-aix*)
3301 ;;
3302 nvptx*-*-* | amdgcn*-*-*)
3303 ;;
3304 *)
3305 noconfigdirs="$noconfigdirs target-libgomp"
3306 ;;
3307 esac
3308 fi
3309
3310 # Disable libatomic on unsupported systems.
3311 if test -d ${srcdir}/libatomic; then
3312 if test x$enable_libatomic = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3314 $as_echo_n "checking for libatomic support... " >&6; }
3315 if (srcdir=${srcdir}/libatomic; \
3316 . ${srcdir}/configure.tgt; \
3317 test -n "$UNSUPPORTED")
3318 then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libatomic"
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3325 fi
3326 fi
3327 fi
3328
3329 # Disable libitm on unsupported systems.
3330 if test -d ${srcdir}/libitm; then
3331 if test x$enable_libitm = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3333 $as_echo_n "checking for libitm support... " >&6; }
3334 if (srcdir=${srcdir}/libitm; \
3335 . ${srcdir}/configure.tgt; \
3336 test -n "$UNSUPPORTED")
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 noconfigdirs="$noconfigdirs target-libitm"
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344 fi
3345 fi
3346 fi
3347
3348 # Disable libsanitizer on unsupported systems.
3349 if test -d ${srcdir}/libsanitizer; then
3350 if test x$enable_libsanitizer = x; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3352 $as_echo_n "checking for libsanitizer support... " >&6; }
3353 if (srcdir=${srcdir}/libsanitizer; \
3354 . ${srcdir}/configure.tgt; \
3355 test -n "$UNSUPPORTED")
3356 then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3359 noconfigdirs="$noconfigdirs target-libsanitizer"
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363 fi
3364 fi
3365 fi
3366
3367 # Disable libvtv on unsupported systems.
3368 if test -d ${srcdir}/libvtv; then
3369 if test x$enable_libvtv = x; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3371 $as_echo_n "checking for libvtv support... " >&6; }
3372 if (srcdir=${srcdir}/libvtv; \
3373 . ${srcdir}/configure.tgt; \
3374 test "$VTV_SUPPORTED" != "yes")
3375 then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 noconfigdirs="$noconfigdirs target-libvtv"
3379 else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3382 fi
3383 fi
3384 fi
3385
3386 # Disable libquadmath for some systems.
3387 case "${target}" in
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libquadmath"
3390 ;;
3391 # libquadmath is unused on AIX and libquadmath build process use of
3392 # LD_LIBRARY_PATH can break AIX bootstrap.
3393 powerpc-*-aix* | rs6000-*-aix*)
3394 noconfigdirs="$noconfigdirs target-libquadmath"
3395 ;;
3396 esac
3397
3398 # Disable libssp for some systems.
3399 case "${target}" in
3400 avr-*-*)
3401 # No hosted I/O support.
3402 noconfigdirs="$noconfigdirs target-libssp"
3403 ;;
3404 bpf-*-*)
3405 noconfigdirs="$noconfigdirs target-libssp"
3406 ;;
3407 powerpc-*-aix* | rs6000-*-aix*)
3408 noconfigdirs="$noconfigdirs target-libssp"
3409 ;;
3410 pru-*-*)
3411 # No hosted I/O support.
3412 noconfigdirs="$noconfigdirs target-libssp"
3413 ;;
3414 rl78-*-*)
3415 # libssp uses a misaligned load to trigger a fault, but the RL78
3416 # doesn't fault for those - instead, it gives a build-time error
3417 # for explicit misaligned loads.
3418 noconfigdirs="$noconfigdirs target-libssp"
3419 ;;
3420 visium-*-*)
3421 # No hosted I/O support.
3422 noconfigdirs="$noconfigdirs target-libssp"
3423 ;;
3424 esac
3425
3426 # Disable libstdc++-v3 for some systems.
3427 # Allow user to override this if they pass --enable-libstdcxx
3428 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3429 case "${target}" in
3430 *-*-vxworks*)
3431 # VxWorks uses the Dinkumware C++ library.
3432 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3433 ;;
3434 arm*-wince-pe*)
3435 # the C++ libraries don't build on top of CE's C libraries
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3437 ;;
3438 avr-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 ;;
3441 bpf-*-*)
3442 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3443 ;;
3444 ft32-*-*)
3445 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3446 ;;
3447 esac
3448 fi
3449
3450 # Disable Ada/GNAT on systems where it is known to not work.
3451 # For testing, you can override this with --enable-languages=ada.
3452 case ,${enable_languages}, in
3453 *,ada,*)
3454 ;;
3455 *)
3456 case "${target}" in
3457 amdgcn*-*-* \
3458 | nvptx*-*-* )
3459 unsupported_languages="$unsupported_languages ada"
3460 ;;
3461 esac
3462 ;;
3463 esac
3464
3465 # Disable C++ on systems where it is known to not work.
3466 # For testing, you can override this with --enable-languages=c++.
3467 case ,${enable_languages}, in
3468 *,c++,*)
3469 ;;
3470 *)
3471 case "${target}" in
3472 bpf-*-*)
3473 unsupported_languages="$unsupported_languages c++"
3474 ;;
3475 esac
3476 ;;
3477 esac
3478
3479 # Disable Objc on systems where it is known to not work.
3480 # For testing, you can override this with --enable-languages=objc.
3481 case ,${enable_languages}, in
3482 *,objc,*)
3483 ;;
3484 *)
3485 case "${target}" in
3486 bpf-*-*)
3487 unsupported_languages="$unsupported_languages objc"
3488 ;;
3489 esac
3490 ;;
3491 esac
3492
3493 # Disable libobjc for some systems where it is known to not work.
3494 case "${target}" in
3495 amdgcn*-*-*)
3496 noconfigdirs="$noconfigdirs target-libobjc"
3497 ;;
3498 nvptx*-*-*)
3499 noconfigdirs="$noconfigdirs target-libobjc"
3500 ;;
3501 esac
3502
3503 # Disable D on systems where it is known to not work.
3504 # For testing, you can override this with --enable-languages=d.
3505 case ,${enable_languages}, in
3506 *,d,*)
3507 ;;
3508 *)
3509 case "${target}" in
3510 bpf-*-*)
3511 unsupported_languages="$unsupported_languages d"
3512 ;;
3513 esac
3514 ;;
3515 esac
3516
3517 # Disable libphobos on unsupported systems.
3518 # For testing, you can override this with --enable-libphobos.
3519 if test -d ${srcdir}/libphobos; then
3520 if test x$enable_libphobos = x; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3522 $as_echo_n "checking for libphobos support... " >&6; }
3523 if (srcdir=${srcdir}/libphobos; \
3524 . ${srcdir}/configure.tgt; \
3525 test "$LIBPHOBOS_SUPPORTED" != "yes")
3526 then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 noconfigdirs="$noconfigdirs target-libphobos"
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3533 fi
3534 fi
3535 fi
3536
3537 # Disable libgcobol on unsupported systems.
3538 # For testing, you can override this with --enable-libgcobol.
3539 if test -d ${srcdir}/libgcobol; then
3540 if test x$enable_libgcobol = x; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcobol support" >&5
3542 $as_echo_n "checking for libgcobol support... " >&6; }
3543 if (srcdir=${srcdir}/libgcobol; \
3544 . ${srcdir}/configure.tgt; \
3545 test -n "$UNSUPPORTED")
3546 then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 noconfigdirs="$noconfigdirs target-libgcobol"
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553 fi
3554 fi
3555 fi
3556
3557 # Disable Fortran for some systems.
3558 case "${target}" in
3559 mmix-*-*)
3560 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3561 unsupported_languages="$unsupported_languages fortran"
3562 ;;
3563 bpf-*-*)
3564 unsupported_languages="$unsupported_languages fortran"
3565 ;;
3566 esac
3567
3568 # Always enable COBOL for --enable-languages=*cobol*
3569 # Otherwise, enable COBOL only for known architectures
3570 case ,${enable_languages}, in
3571 *,cobol,*)
3572 case ,${enable_languages}, in
3573 *,c++,*)
3574 ;;
3575 *)
3576 # We have an explicit cobol, but no c++. We need c++, because cobol
3577 # requires libstdc++
3578 enable_languages="$enable_languages,c++"
3579 ;;
3580 esac
3581 ;;
3582 *)
3583 case "${target}" in
3584 aarch64-*-linux*|x86_64-*-linux*)
3585 ;;
3586 *-*-*)
3587 unsupported_languages="$unsupported_languages cobol"
3588 ;;
3589 esac
3590 case "${host}" in
3591 aarch64-*-linux*|x86_64-*-linux*)
3592 ;;
3593 *-*-*)
3594 unsupported_languages="$unsupported_languages cobol"
3595 ;;
3596 esac
3597 ;;
3598 esac
3599
3600 # Disable libffi for some systems.
3601 case "${target}" in
3602 powerpc-*-darwin*)
3603 ;;
3604 i[3456789]86-*-darwin*)
3605 ;;
3606 x86_64-*-darwin[912]*)
3607 ;;
3608 *-*-darwin*)
3609 noconfigdirs="$noconfigdirs target-libffi"
3610 ;;
3611 *-*-netware*)
3612 noconfigdirs="$noconfigdirs target-libffi"
3613 ;;
3614 *-*-phoenix*)
3615 noconfigdirs="$noconfigdirs target-libffi"
3616 ;;
3617 *-*-rtems*)
3618 noconfigdirs="$noconfigdirs target-libffi"
3619 ;;
3620 *-*-tpf*)
3621 noconfigdirs="$noconfigdirs target-libffi"
3622 ;;
3623 *-*-uclinux*)
3624 noconfigdirs="$noconfigdirs target-libffi"
3625 ;;
3626 *-*-vxworks*)
3627 noconfigdirs="$noconfigdirs target-libffi"
3628 ;;
3629 aarch64*-*-freebsd*)
3630 noconfigdirs="$noconfigdirs target-libffi"
3631 ;;
3632 alpha*-*-*vms*)
3633 noconfigdirs="$noconfigdirs target-libffi"
3634 ;;
3635 amdgcn*-*-*)
3636 noconfigdirs="$noconfigdirs target-libffi"
3637 ;;
3638 arm*-*-freebsd*)
3639 noconfigdirs="$noconfigdirs target-libffi"
3640 ;;
3641 arm-wince-pe)
3642 noconfigdirs="$noconfigdirs target-libffi"
3643 ;;
3644 arm*-*-symbianelf*)
3645 noconfigdirs="$noconfigdirs target-libffi"
3646 ;;
3647 bpf-*-*)
3648 noconfigdirs="$noconfigdirs target-libffi"
3649 ;;
3650 cris-*-* | crisv32-*-*)
3651 case "${target}" in
3652 *-*-linux*)
3653 ;;
3654 *) # See PR46792 regarding target-libffi.
3655 noconfigdirs="$noconfigdirs target-libffi";;
3656 esac
3657 ;;
3658 hppa*64*-*-hpux*)
3659 noconfigdirs="$noconfigdirs target-libffi"
3660 ;;
3661 hppa*-hp-hpux11*)
3662 ;;
3663 hppa*-*-hpux*)
3664 noconfigdirs="$noconfigdirs target-libffi"
3665 ;;
3666 ia64*-*-*vms*)
3667 noconfigdirs="$noconfigdirs target-libffi"
3668 ;;
3669 i[3456789]86-w64-mingw*)
3670 noconfigdirs="$noconfigdirs target-libffi"
3671 ;;
3672 i[3456789]86-*-mingw*)
3673 noconfigdirs="$noconfigdirs target-libffi"
3674 ;;
3675 x86_64-*-mingw*)
3676 noconfigdirs="$noconfigdirs target-libffi"
3677 ;;
3678 mmix-*-*)
3679 noconfigdirs="$noconfigdirs target-libffi"
3680 ;;
3681 nvptx*-*-*)
3682 noconfigdirs="$noconfigdirs target-libffi"
3683 ;;
3684 powerpc-*-aix*)
3685 ;;
3686 rs6000-*-aix*)
3687 ;;
3688 ft32-*-*)
3689 noconfigdirs="$noconfigdirs target-libffi"
3690 ;;
3691 *-*-lynxos*)
3692 noconfigdirs="$noconfigdirs target-libffi"
3693 ;;
3694 esac
3695
3696 # Disable the go frontend on systems where it is known to not work. Please keep
3697 # this in sync with contrib/config-list.mk.
3698 case "${target}" in
3699 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3700 unsupported_languages="$unsupported_languages go"
3701 ;;
3702 esac
3703
3704 # Only allow gdbserver on some systems.
3705 if test -d ${srcdir}/gdbserver; then
3706 if test x$enable_gdbserver = x; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3708 $as_echo_n "checking for gdbserver support... " >&6; }
3709 if (srcdir=${srcdir}/gdbserver; \
3710 . ${srcdir}/configure.srv; \
3711 test -n "$UNSUPPORTED")
3712 then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 noconfigdirs="$noconfigdirs gdbserver"
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3719 fi
3720 fi
3721 fi
3722
3723 # Disable libgo for some systems where it is known to not work.
3724 # For testing, you can easily override this with --enable-libgo.
3725 if test x$enable_libgo = x; then
3726 case "${target}" in
3727 *-*-darwin*)
3728 # PR 46986
3729 noconfigdirs="$noconfigdirs target-libgo"
3730 ;;
3731 *-*-cygwin* | *-*-mingw*)
3732 noconfigdirs="$noconfigdirs target-libgo"
3733 ;;
3734 amdgcn*-*-*)
3735 noconfigdirs="$noconfigdirs target-libgo"
3736 ;;
3737 bpf-*-*)
3738 noconfigdirs="$noconfigdirs target-libgo"
3739 ;;
3740 nvptx*-*-*)
3741 noconfigdirs="$noconfigdirs target-libgo"
3742 ;;
3743 esac
3744 fi
3745
3746 # Default libgloss CPU subdirectory.
3747 libgloss_dir="$target_cpu"
3748
3749 case "${target}" in
3750 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3751 libgloss_dir=wince
3752 ;;
3753 aarch64*-*-* )
3754 libgloss_dir=aarch64
3755 ;;
3756 arm*-*-*)
3757 libgloss_dir=arm
3758 ;;
3759 cris-*-* | crisv32-*-*)
3760 libgloss_dir=cris
3761 ;;
3762 kvx-*-elf)
3763 libgloss_dir=kvx-elf
3764 ;;
3765 kvx-*-mbr)
3766 libgloss_dir=kvx-mbr
3767 ;;
3768 kvx-*-cos)
3769 libgloss_dir=kvx-cos
3770 ;;
3771 hppa*-*-*)
3772 libgloss_dir=pa
3773 ;;
3774 i[3456789]86-*-*)
3775 libgloss_dir=i386
3776 ;;
3777 loongarch*-*-*)
3778 libgloss_dir=loongarch
3779 ;;
3780 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3781 libgloss_dir=m68hc11
3782 ;;
3783 m68*-*-* | fido-*-*)
3784 libgloss_dir=m68k
3785 ;;
3786 mips*-*-*)
3787 libgloss_dir=mips
3788 ;;
3789 powerpc*-*-*)
3790 libgloss_dir=rs6000
3791 ;;
3792 pru-*-*)
3793 libgloss_dir=pru
3794 ;;
3795 sparc*-*-*)
3796 libgloss_dir=sparc
3797 ;;
3798 esac
3799
3800 # Disable newlib and libgloss for various target OSes.
3801 case "${target}" in
3802 alpha*-dec-osf*)
3803 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3804 ;;
3805 i[3456789]86-*-linux*)
3806 # This section makes it possible to build newlib natively on linux.
3807 # If we are using a cross compiler then don't configure newlib.
3808 if test x${is_cross_compiler} != xno ; then
3809 noconfigdirs="$noconfigdirs target-newlib"
3810 fi
3811 noconfigdirs="$noconfigdirs target-libgloss"
3812 # If we are not using a cross compiler, do configure newlib.
3813 # Note however, that newlib will only be configured in this situation
3814 # if the --with-newlib option has been given, because otherwise
3815 # 'target-newlib' will appear in skipdirs.
3816 ;;
3817 i[3456789]86-*-rdos*)
3818 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3819 ;;
3820 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3821 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3822 ;;
3823 sparc-*-sunos4*)
3824 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3825 ;;
3826 bpf-*-*)
3827 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3828 ;;
3829 *-*-aix*)
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 ;;
3832 *-*-beos*)
3833 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3834 ;;
3835 *-*-chorusos)
3836 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3837 ;;
3838 *-*-dragonfly*)
3839 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3840 ;;
3841 *-*-freebsd*)
3842 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3843 ;;
3844 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3845 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3846 ;;
3847 *-*-lynxos*)
3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3849 ;;
3850 *-*-mingw*)
3851 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3852 ;;
3853 *-*-netbsd*)
3854 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3855 ;;
3856 *-*-netware*)
3857 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3858 ;;
3859 *-*-tpf*)
3860 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3861 ;;
3862 *-*-uclinux*)
3863 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3864 ;;
3865 *-*-vxworks*)
3866 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3867 ;;
3868 esac
3869
3870 # The ARM simulator has been deprecated for all ARM targets.
3871 case "${target}" in
3872 arm*-*-*)
3873 noconfigdirs="$noconfigdirs sim"
3874 ;;
3875 esac
3876
3877 case "${target}" in
3878 *-*-chorusos)
3879 ;;
3880 aarch64-*-darwin*)
3881 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3882 noconfigdirs="$noconfigdirs sim target-rda"
3883 ;;
3884 amdgcn*-*-*)
3885 ;;
3886 arm-*-darwin*)
3887 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3888 noconfigdirs="$noconfigdirs target-rda"
3889 ;;
3890 powerpc-*-darwin*)
3891 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3892 noconfigdirs="$noconfigdirs sim target-rda"
3893 ;;
3894 i[3456789]86-*-darwin*)
3895 noconfigdirs="$noconfigdirs ld gprof"
3896 noconfigdirs="$noconfigdirs sim target-rda"
3897 ;;
3898 x86_64-*-darwin[912]*)
3899 noconfigdirs="$noconfigdirs ld gas gprof"
3900 noconfigdirs="$noconfigdirs sim target-rda"
3901 ;;
3902 *-*-darwin*)
3903 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3904 noconfigdirs="$noconfigdirs sim target-rda"
3905 ;;
3906 *-*-dragonfly*)
3907 ;;
3908 *-*-freebsd*)
3909 if test "x$with_gmp" = x \
3910 && ! test -d ${srcdir}/gmp \
3911 && test -f /usr/local/include/gmp.h; then
3912 with_gmp=/usr/local
3913 fi
3914 ;;
3915 *-*-kaos*)
3916 # Remove unsupported stuff on all kaOS configurations.
3917 noconfigdirs="$noconfigdirs target-libgloss"
3918 ;;
3919 *-*-netbsd*)
3920 ;;
3921 *-*-netware*)
3922 ;;
3923 *-*-phoenix*)
3924 noconfigdirs="$noconfigdirs target-libgloss"
3925 ;;
3926 *-*-rtems*)
3927 noconfigdirs="$noconfigdirs target-libgloss"
3928 ;;
3929 # The tpf target doesn't support gdb yet.
3930 *-*-tpf*)
3931 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3932 ;;
3933 *-*-uclinux*)
3934 noconfigdirs="$noconfigdirs target-rda"
3935 ;;
3936 *-*-vxworks*)
3937 ;;
3938 alpha*-dec-osf*)
3939 # ld works, but does not support shared libraries.
3940 # gas doesn't generate exception information.
3941 noconfigdirs="$noconfigdirs gas ld"
3942 ;;
3943 alpha*-*-*vms*)
3944 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3945 ;;
3946 alpha*-*-*)
3947 # newlib is not 64 bit ready
3948 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3949 ;;
3950 bpf-*-*)
3951 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3952 ;;
3953 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3954 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3955 ;;
3956 arc*-*-*)
3957 noconfigdirs="$noconfigdirs sim"
3958 ;;
3959 arm-*-pe*)
3960 noconfigdirs="$noconfigdirs target-libgloss"
3961 ;;
3962 arm-*-riscix*)
3963 noconfigdirs="$noconfigdirs ld target-libgloss"
3964 ;;
3965 avr-*-*)
3966 if test x${with_avrlibc} != xno; then
3967 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3968 fi
3969 ;;
3970 c4x-*-* | tic4x-*-*)
3971 noconfigdirs="$noconfigdirs target-libgloss"
3972 ;;
3973 tic54x-*-*)
3974 noconfigdirs="$noconfigdirs target-libgloss gdb"
3975 ;;
3976 d10v-*-*)
3977 noconfigdirs="$noconfigdirs target-libgloss"
3978 ;;
3979 d30v-*-*)
3980 noconfigdirs="$noconfigdirs gdb"
3981 ;;
3982 fr30-*-elf*)
3983 noconfigdirs="$noconfigdirs gdb"
3984 ;;
3985 ft32-*-*)
3986 noconfigdirs="$noconfigdirs target-rda gprof"
3987 ;;
3988 moxie-*-*)
3989 noconfigdirs="$noconfigdirs"
3990 ;;
3991 h8300*-*-*)
3992 noconfigdirs="$noconfigdirs target-libgloss"
3993 ;;
3994 h8500-*-*)
3995 noconfigdirs="$noconfigdirs target-libgloss"
3996 ;;
3997 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3998 ;;
3999 hppa*64*-*-hpux*)
4000 noconfigdirs="$noconfigdirs gdb"
4001 ;;
4002 hppa*-*-hpux11*)
4003 noconfigdirs="$noconfigdirs gdb ld"
4004 ;;
4005 hppa*64*-*-linux*)
4006 ;;
4007 hppa*-*-linux*)
4008 ;;
4009 hppa*-*-*elf* | \
4010 hppa*-*-lites* | \
4011 hppa*-*-openbsd* | \
4012 hppa*64*-*-*)
4013 ;;
4014 hppa*-*-pro*)
4015 ;;
4016 hppa*-*-*)
4017 noconfigdirs="$noconfigdirs ld"
4018 ;;
4019 i960-*-*)
4020 noconfigdirs="$noconfigdirs gdb"
4021 ;;
4022 ia64*-*-elf*)
4023 # No gdb support yet.
4024 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
4025 ;;
4026 ia64*-**-hpux*)
4027 # No ld support yet.
4028 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
4029 ;;
4030 ia64*-*-*vms*)
4031 # No ld support yet.
4032 noconfigdirs="$noconfigdirs libgui itcl ld"
4033 ;;
4034 i[3456789]86-w64-mingw*)
4035 ;;
4036 i[3456789]86-*-mingw*)
4037 target_configdirs="$target_configdirs target-winsup"
4038 ;;
4039 *-*-cygwin*)
4040 target_configdirs="$target_configdirs target-libtermcap target-winsup"
4041 noconfigdirs="$noconfigdirs target-libgloss"
4042 # always build newlib if winsup directory is present.
4043 if test -d "$srcdir/winsup/cygwin"; then
4044 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4045 elif test -d "$srcdir/newlib"; then
4046 echo "Warning: winsup/cygwin is missing so newlib can't be built."
4047 fi
4048 ;;
4049 i[3456789]86-*-pe)
4050 noconfigdirs="$noconfigdirs target-libgloss"
4051 ;;
4052 i[3456789]86-*-sco3.2v5*)
4053 # The linker does not yet know about weak symbols in COFF,
4054 # and is not configured to handle mixed ELF and COFF.
4055 noconfigdirs="$noconfigdirs ld target-libgloss"
4056 ;;
4057 i[3456789]86-*-sco*)
4058 noconfigdirs="$noconfigdirs gprof target-libgloss"
4059 ;;
4060 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4061 noconfigdirs="$noconfigdirs target-libgloss"
4062 ;;
4063 i[3456789]86-*-sysv4*)
4064 noconfigdirs="$noconfigdirs target-libgloss"
4065 ;;
4066 i[3456789]86-*-beos*)
4067 noconfigdirs="$noconfigdirs gdb"
4068 ;;
4069 i[3456789]86-*-rdos*)
4070 noconfigdirs="$noconfigdirs gdb"
4071 ;;
4072 kvx-*-*)
4073 noconfigdirs="$noconfigdirs gdb gdbserver sim"
4074 ;;
4075 mmix-*-*)
4076 noconfigdirs="$noconfigdirs gdb"
4077 ;;
4078 mt-*-*)
4079 noconfigdirs="$noconfigdirs sim"
4080 ;;
4081 nfp-*-*)
4082 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
4083 noconfigdirs="$noconfigdirs $target_libraries"
4084 ;;
4085 pdp11-*-*)
4086 noconfigdirs="$noconfigdirs gdb gprof"
4087 ;;
4088 powerpc-*-aix*)
4089 # copied from rs6000-*-* entry
4090 noconfigdirs="$noconfigdirs gprof"
4091 ;;
4092 powerpc*-*-winnt* | powerpc*-*-pe*)
4093 target_configdirs="$target_configdirs target-winsup"
4094 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
4095 # always build newlib.
4096 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4097 ;;
4098 # This is temporary until we can link against shared libraries
4099 powerpcle-*-solaris*)
4100 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
4101 ;;
4102 powerpc-*-beos*)
4103 noconfigdirs="$noconfigdirs gdb"
4104 ;;
4105 rs6000-*-lynxos*)
4106 noconfigdirs="$noconfigdirs gprof"
4107 ;;
4108 rs6000-*-aix*)
4109 noconfigdirs="$noconfigdirs gprof"
4110 ;;
4111 rs6000-*-*)
4112 noconfigdirs="$noconfigdirs gprof"
4113 ;;
4114 m68k-apollo-*)
4115 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
4116 ;;
4117 microblaze*)
4118 noconfigdirs="$noconfigdirs gprof"
4119 ;;
4120 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4121 if test x$with_newlib = xyes; then
4122 noconfigdirs="$noconfigdirs gprof"
4123 fi
4124 ;;
4125 mips*-*-irix5*)
4126 noconfigdirs="$noconfigdirs gprof target-libgloss"
4127 ;;
4128 mips*-*-irix6*)
4129 noconfigdirs="$noconfigdirs gprof target-libgloss"
4130 ;;
4131 mips*-*-bsd*)
4132 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
4133 ;;
4134 mips*-*-linux*)
4135 ;;
4136 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4137 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4138 noconfigdirs="$noconfigdirs ld gas gprof"
4139 ;;
4140 mips*-*-*)
4141 noconfigdirs="$noconfigdirs gprof"
4142 ;;
4143 nvptx*-*-*)
4144 noconfigdirs="$noconfigdirs target-libssp"
4145 ;;
4146 sh-*-*)
4147 case "${target}" in
4148 sh*-*-elf)
4149 ;;
4150 *)
4151 noconfigdirs="$noconfigdirs target-libgloss" ;;
4152 esac
4153 ;;
4154 sparc-*-sunos4*)
4155 if test x${is_cross_compiler} = xno ; then
4156 use_gnu_ld=no
4157 fi
4158 ;;
4159 tic6x-*-*)
4160 noconfigdirs="$noconfigdirs sim"
4161 ;;
4162 tilepro*-*-* | tilegx*-*-*)
4163 noconfigdirs="$noconfigdirs sim"
4164 ;;
4165 v810-*-*)
4166 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4167 ;;
4168 vax-*-*)
4169 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4170 ;;
4171 wasm32-*-*)
4172 noconfigdirs="$noconfigdirs ld"
4173 ;;
4174 loongarch*-*-linux*)
4175 ;;
4176 loongarch*-*-*)
4177 noconfigdirs="$noconfigdirs gprof"
4178 ;;
4179 esac
4180
4181 # If we aren't building newlib, then don't build libgloss, since libgloss
4182 # depends upon some newlib header files.
4183 case "${noconfigdirs}" in
4184 *target-libgloss*) ;;
4185 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4186 esac
4187
4188 # Work in distributions that contain no compiler tools, like Autoconf.
4189 host_makefile_frag=/dev/null
4190 if test -d ${srcdir}/config ; then
4191 case "${host}" in
4192 i[3456789]86-*-msdosdjgpp*)
4193 host_makefile_frag="config/mh-djgpp"
4194 ;;
4195 *-cygwin*)
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4198 $as_echo_n "checking to see if cat works as expected... " >&6; }
4199 echo a >cygwin-cat-check
4200 if test `cat cygwin-cat-check` = a ; then
4201 rm cygwin-cat-check
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203 $as_echo "yes" >&6; }
4204 else
4205 rm cygwin-cat-check
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 as_fn_error $? "The cat command does not ignore carriage return characters.
4209 Please either mount the build directory in binary mode or run the following
4210 commands before running any configure script:
4211 set -o igncr
4212 export SHELLOPTS
4213 " "$LINENO" 5
4214 fi
4215
4216 host_makefile_frag="config/mh-cygwin"
4217 ;;
4218 *-mingw*)
4219 host_makefile_frag="config/mh-mingw"
4220 ;;
4221 alpha*-linux*)
4222 host_makefile_frag="config/mh-alpha-linux"
4223 ;;
4224 hppa*-hp-hpux*)
4225 host_makefile_frag="config/mh-pa"
4226 ;;
4227 hppa*-*)
4228 host_makefile_frag="config/mh-pa"
4229 ;;
4230 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4231 host_makefile_frag="config/mh-darwin"
4232 ;;
4233 powerpc-*-aix*)
4234 host_makefile_frag="config/mh-ppc-aix"
4235 ;;
4236 rs6000-*-aix*)
4237 host_makefile_frag="config/mh-ppc-aix"
4238 ;;
4239 esac
4240 fi
4241
4242 if test "${build}" != "${host}" ; then
4243 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4244 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4245 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4246 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4247 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4248 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4249 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4250 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4251 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4252 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4253 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4254 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4255 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4256 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4257 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4258 else
4259 AR_FOR_BUILD="\$(AR)"
4260 AS_FOR_BUILD="\$(AS)"
4261 CC_FOR_BUILD="\$(CC)"
4262 CXX_FOR_BUILD="\$(CXX)"
4263 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4264 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4265 GOC_FOR_BUILD="\$(GOC)"
4266 GDC_FOR_BUILD="\$(GDC)"
4267 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4268 LD_FOR_BUILD="\$(LD)"
4269 NM_FOR_BUILD="\$(NM)"
4270 RANLIB_FOR_BUILD="\$(RANLIB)"
4271 WINDRES_FOR_BUILD="\$(WINDRES)"
4272 WINDMC_FOR_BUILD="\$(WINDMC)"
4273 fi
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CC+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4301 fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 CC=$ac_cv_prog_CC
4309 if test -n "$CC"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 $as_echo "$CC" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318 fi
4319 if test -z "$ac_cv_prog_CC"; then
4320 ac_ct_CC=$CC
4321 # Extract the first word of "gcc", so it can be a program name with args.
4322 set dummy gcc; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_CC="gcc"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342 done
4343 done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349 if test -n "$ac_ct_CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4351 $as_echo "$ac_ct_CC" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357 if test "x$ac_ct_CC" = x; then
4358 CC=""
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361 yes:)
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4365 esac
4366 CC=$ac_ct_CC
4367 fi
4368 else
4369 CC="$ac_cv_prog_CC"
4370 fi
4371
4372 if test -z "$CC"; then
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}cc; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_CC="${ac_tool_prefix}cc"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 CC=$ac_cv_prog_CC
4402 if test -n "$CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4408 fi
4409
4410
4411 fi
4412 fi
4413 if test -z "$CC"; then
4414 # Extract the first word of "cc", so it can be a program name with args.
4415 set dummy cc; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423 else
4424 ac_prog_rejected=no
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4433 ac_prog_rejected=yes
4434 continue
4435 fi
4436 ac_cv_prog_CC="cc"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 if test $ac_prog_rejected = yes; then
4445 # We found a bogon in the path, so make sure we never use it.
4446 set dummy $ac_cv_prog_CC
4447 shift
4448 if test $# != 0; then
4449 # We chose a different compiler from the bogus one.
4450 # However, it has the same basename, so the bogon will be chosen
4451 # first if we set CC to just the basename; use the full file name.
4452 shift
4453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4454 fi
4455 fi
4456 fi
4457 fi
4458 CC=$ac_cv_prog_CC
4459 if test -n "$CC"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4461 $as_echo "$CC" >&6; }
4462 else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468 fi
4469 if test -z "$CC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in cl.exe
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if ${ac_cv_prog_CC+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$CC"; then
4481 ac_cv_prog_CC="$CC" # Let the user override the test.
4482 else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH
4485 do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 break 2
4493 fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 fi
4499 fi
4500 CC=$ac_cv_prog_CC
4501 if test -n "$CC"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4503 $as_echo "$CC" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 fi
4508
4509
4510 test -n "$CC" && break
4511 done
4512 fi
4513 if test -z "$CC"; then
4514 ac_ct_CC=$CC
4515 for ac_prog in cl.exe
4516 do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$ac_ct_CC"; then
4525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_ac_ct_CC="$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4545 if test -n "$ac_ct_CC"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4547 $as_echo "$ac_ct_CC" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$ac_ct_CC" && break
4555 done
4556
4557 if test "x$ac_ct_CC" = x; then
4558 CC=""
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561 yes:)
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4565 esac
4566 CC=$ac_ct_CC
4567 fi
4568 fi
4569
4570 fi
4571
4572
4573 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "no acceptable C compiler found in \$PATH
4576 See \`config.log' for more details" "$LINENO" 5; }
4577
4578 # Provide some information about the compiler.
4579 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4580 set X $ac_compile
4581 ac_compiler=$2
4582 for ac_option in --version -v -V -qversion; do
4583 { { ac_try="$ac_compiler $ac_option >&5"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4591 ac_status=$?
4592 if test -s conftest.err; then
4593 sed '10a\
4594 ... rest of stderr output deleted ...
4595 10q' conftest.err >conftest.er1
4596 cat conftest.er1 >&5
4597 fi
4598 rm -f conftest.er1 conftest.err
4599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4600 test $ac_status = 0; }
4601 done
4602
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605
4606 int
4607 main ()
4608 {
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 ac_clean_files_save=$ac_clean_files
4615 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4616 # Try to create an executable without -o first, disregard a.out.
4617 # It will help us diagnose broken compilers, and finding out an intuition
4618 # of exeext.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4620 $as_echo_n "checking whether the C compiler works... " >&6; }
4621 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4622
4623 # The possible output files:
4624 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4625
4626 ac_rmfiles=
4627 for ac_file in $ac_files
4628 do
4629 case $ac_file in
4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4632 esac
4633 done
4634 rm -f $ac_rmfiles
4635
4636 if { { ac_try="$ac_link_default"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642 $as_echo "$ac_try_echo"; } >&5
4643 (eval "$ac_link_default") 2>&5
4644 ac_status=$?
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
4647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4648 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4649 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4650 # so that the user can short-circuit this test for compilers unknown to
4651 # Autoconf.
4652 for ac_file in $ac_files ''
4653 do
4654 test -f "$ac_file" || continue
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4657 ;;
4658 [ab].out )
4659 # We found the default executable, but exeext='' is most
4660 # certainly right.
4661 break;;
4662 *.* )
4663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4664 then :; else
4665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4666 fi
4667 # We set ac_cv_exeext here because the later test for it is not
4668 # safe: cross compilers may not add the suffix if given an `-o'
4669 # argument, so we may need to know it at that point already.
4670 # Even if this section looks crufty: it has the advantage of
4671 # actually working.
4672 break;;
4673 * )
4674 break;;
4675 esac
4676 done
4677 test "$ac_cv_exeext" = no && ac_cv_exeext=
4678
4679 else
4680 ac_file=''
4681 fi
4682 if test -z "$ac_file"; then :
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error 77 "C compiler cannot create executables
4691 See \`config.log' for more details" "$LINENO" 5; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 $as_echo "yes" >&6; }
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4697 $as_echo_n "checking for C compiler default output file name... " >&6; }
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4699 $as_echo "$ac_file" >&6; }
4700 ac_exeext=$ac_cv_exeext
4701
4702 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4703 ac_clean_files=$ac_clean_files_save
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4705 $as_echo_n "checking for suffix of executables... " >&6; }
4706 if { { ac_try="$ac_link"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_link") 2>&5
4714 ac_status=$?
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }; then :
4717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4718 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4719 # work properly (i.e., refer to `conftest.exe'), while it won't with
4720 # `rm'.
4721 for ac_file in conftest.exe conftest conftest.*; do
4722 test -f "$ac_file" || continue
4723 case $ac_file in
4724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4726 break;;
4727 * ) break;;
4728 esac
4729 done
4730 else
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4734 See \`config.log' for more details" "$LINENO" 5; }
4735 fi
4736 rm -f conftest conftest$ac_cv_exeext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4738 $as_echo "$ac_cv_exeext" >&6; }
4739
4740 rm -f conftest.$ac_ext
4741 EXEEXT=$ac_cv_exeext
4742 ac_exeext=$EXEEXT
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdio.h>
4746 int
4747 main ()
4748 {
4749 FILE *f = fopen ("conftest.out", "w");
4750 return ferror (f) || fclose (f) != 0;
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 ac_clean_files="$ac_clean_files conftest.out"
4757 # Check that the compiler produces executables we can run. If not, either
4758 # the compiler is broken, or we cross compile.
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4760 $as_echo_n "checking whether we are cross compiling... " >&6; }
4761 if test "$cross_compiling" != yes; then
4762 { { ac_try="$ac_link"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768 $as_echo "$ac_try_echo"; } >&5
4769 (eval "$ac_link") 2>&5
4770 ac_status=$?
4771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }
4773 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }; }; then
4784 cross_compiling=no
4785 else
4786 if test "$cross_compiling" = maybe; then
4787 cross_compiling=yes
4788 else
4789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4791 as_fn_error $? "cannot run C compiled programs.
4792 If you meant to cross compile, use \`--host'.
4793 See \`config.log' for more details" "$LINENO" 5; }
4794 fi
4795 fi
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4798 $as_echo "$cross_compiling" >&6; }
4799
4800 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4801 ac_clean_files=$ac_clean_files_save
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4803 $as_echo_n "checking for suffix of object files... " >&6; }
4804 if ${ac_cv_objext+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809
4810 int
4811 main ()
4812 {
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.o conftest.obj
4819 if { { ac_try="$ac_compile"
4820 case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823 esac
4824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825 $as_echo "$ac_try_echo"; } >&5
4826 (eval "$ac_compile") 2>&5
4827 ac_status=$?
4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }; then :
4830 for ac_file in conftest.o conftest.obj conftest.*; do
4831 test -f "$ac_file" || continue;
4832 case $ac_file in
4833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4835 break;;
4836 esac
4837 done
4838 else
4839 $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4844 as_fn_error $? "cannot compute suffix of object files: cannot compile
4845 See \`config.log' for more details" "$LINENO" 5; }
4846 fi
4847 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4850 $as_echo "$ac_cv_objext" >&6; }
4851 OBJEXT=$ac_cv_objext
4852 ac_objext=$OBJEXT
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4854 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4855 if ${ac_cv_c_compiler_gnu+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860
4861 int
4862 main ()
4863 {
4864 #ifndef __GNUC__
4865 choke me
4866 #endif
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_compiler_gnu=yes
4874 else
4875 ac_compiler_gnu=no
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4879
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4882 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4883 if test $ac_compiler_gnu = yes; then
4884 GCC=yes
4885 else
4886 GCC=
4887 fi
4888 ac_test_CFLAGS=${CFLAGS+set}
4889 ac_save_CFLAGS=$CFLAGS
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4891 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4892 if ${ac_cv_prog_cc_g+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 ac_save_c_werror_flag=$ac_c_werror_flag
4896 ac_c_werror_flag=yes
4897 ac_cv_prog_cc_g=no
4898 CFLAGS="-g"
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901
4902 int
4903 main ()
4904 {
4905
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 ac_cv_prog_cc_g=yes
4912 else
4913 CFLAGS=""
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916
4917 int
4918 main ()
4919 {
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_compile "$LINENO"; then :
4926
4927 else
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4929 CFLAGS="-g"
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932
4933 int
4934 main ()
4935 {
4936
4937 ;
4938 return 0;
4939 }
4940 _ACEOF
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 ac_cv_prog_cc_g=yes
4943 fi
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4952 $as_echo "$ac_cv_prog_cc_g" >&6; }
4953 if test "$ac_test_CFLAGS" = set; then
4954 CFLAGS=$ac_save_CFLAGS
4955 elif test $ac_cv_prog_cc_g = yes; then
4956 if test "$GCC" = yes; then
4957 CFLAGS="-g -O2"
4958 else
4959 CFLAGS="-g"
4960 fi
4961 else
4962 if test "$GCC" = yes; then
4963 CFLAGS="-O2"
4964 else
4965 CFLAGS=
4966 fi
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4969 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4970 if ${ac_cv_prog_cc_c89+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 ac_cv_prog_cc_c89=no
4974 ac_save_CC=$CC
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <stdarg.h>
4978 #include <stdio.h>
4979 struct stat;
4980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4981 struct buf { int x; };
4982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4983 static char *e (p, i)
4984 char **p;
4985 int i;
4986 {
4987 return p[i];
4988 }
4989 static char *f (char * (*g) (char **, int), char **p, ...)
4990 {
4991 char *s;
4992 va_list v;
4993 va_start (v,p);
4994 s = g (p, va_arg (v,int));
4995 va_end (v);
4996 return s;
4997 }
4998
4999 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5000 function prototypes and stuff, but not '\xHH' hex character constants.
5001 These don't provoke an error unfortunately, instead are silently treated
5002 as 'x'. The following induces an error, until -std is added to get
5003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5004 array size at least. It's necessary to write '\x00'==0 to get something
5005 that's true only with -std. */
5006 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5007
5008 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5009 inside strings and character constants. */
5010 #define FOO(x) 'x'
5011 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5012
5013 int test (int i, double x);
5014 struct s1 {int (*f) (int a);};
5015 struct s2 {int (*f) (double a);};
5016 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5017 int argc;
5018 char **argv;
5019 int
5020 main ()
5021 {
5022 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5023 ;
5024 return 0;
5025 }
5026 _ACEOF
5027 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5029 do
5030 CC="$ac_save_CC $ac_arg"
5031 if ac_fn_c_try_compile "$LINENO"; then :
5032 ac_cv_prog_cc_c89=$ac_arg
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext
5035 test "x$ac_cv_prog_cc_c89" != "xno" && break
5036 done
5037 rm -f conftest.$ac_ext
5038 CC=$ac_save_CC
5039
5040 fi
5041 # AC_CACHE_VAL
5042 case "x$ac_cv_prog_cc_c89" in
5043 x)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5045 $as_echo "none needed" >&6; } ;;
5046 xno)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5048 $as_echo "unsupported" >&6; } ;;
5049 *)
5050 CC="$CC $ac_cv_prog_cc_c89"
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5052 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5053 esac
5054 if test "x$ac_cv_prog_cc_c89" != xno; then :
5055
5056 fi
5057
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5065 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5066 if ${ac_cv_prog_cc_c99+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 ac_cv_prog_cc_c99=no
5070 ac_save_CC=$CC
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 #include <stdarg.h>
5074 #include <stdbool.h>
5075 #include <stdlib.h>
5076 #include <wchar.h>
5077 #include <stdio.h>
5078
5079 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5080 #define debug(...) fprintf (stderr, __VA_ARGS__)
5081 #define showlist(...) puts (#__VA_ARGS__)
5082 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5083 static void
5084 test_varargs_macros (void)
5085 {
5086 int x = 1234;
5087 int y = 5678;
5088 debug ("Flag");
5089 debug ("X = %d\n", x);
5090 showlist (The first, second, and third items.);
5091 report (x>y, "x is %d but y is %d", x, y);
5092 }
5093
5094 // Check long long types.
5095 #define BIG64 18446744073709551615ull
5096 #define BIG32 4294967295ul
5097 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5098 #if !BIG_OK
5099 your preprocessor is broken;
5100 #endif
5101 #if BIG_OK
5102 #else
5103 your preprocessor is broken;
5104 #endif
5105 static long long int bignum = -9223372036854775807LL;
5106 static unsigned long long int ubignum = BIG64;
5107
5108 struct incomplete_array
5109 {
5110 int datasize;
5111 double data[];
5112 };
5113
5114 struct named_init {
5115 int number;
5116 const wchar_t *name;
5117 double average;
5118 };
5119
5120 typedef const char *ccp;
5121
5122 static inline int
5123 test_restrict (ccp restrict text)
5124 {
5125 // See if C++-style comments work.
5126 // Iterate through items via the restricted pointer.
5127 // Also check for declarations in for loops.
5128 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5129 continue;
5130 return 0;
5131 }
5132
5133 // Check varargs and va_copy.
5134 static void
5135 test_varargs (const char *format, ...)
5136 {
5137 va_list args;
5138 va_start (args, format);
5139 va_list args_copy;
5140 va_copy (args_copy, args);
5141
5142 const char *str;
5143 int number;
5144 float fnumber;
5145
5146 while (*format)
5147 {
5148 switch (*format++)
5149 {
5150 case 's': // string
5151 str = va_arg (args_copy, const char *);
5152 break;
5153 case 'd': // int
5154 number = va_arg (args_copy, int);
5155 break;
5156 case 'f': // float
5157 fnumber = va_arg (args_copy, double);
5158 break;
5159 default:
5160 break;
5161 }
5162 }
5163 va_end (args_copy);
5164 va_end (args);
5165 }
5166
5167 int
5168 main ()
5169 {
5170
5171 // Check bool.
5172 _Bool success = false;
5173
5174 // Check restrict.
5175 if (test_restrict ("String literal") == 0)
5176 success = true;
5177 char *restrict newvar = "Another string";
5178
5179 // Check varargs.
5180 test_varargs ("s, d' f .", "string", 65, 34.234);
5181 test_varargs_macros ();
5182
5183 // Check flexible array members.
5184 struct incomplete_array *ia =
5185 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5186 ia->datasize = 10;
5187 for (int i = 0; i < ia->datasize; ++i)
5188 ia->data[i] = i * 1.234;
5189
5190 // Check named initializers.
5191 struct named_init ni = {
5192 .number = 34,
5193 .name = L"Test wide string",
5194 .average = 543.34343,
5195 };
5196
5197 ni.number = 58;
5198
5199 int dynamic_array[ni.number];
5200 dynamic_array[ni.number - 1] = 543;
5201
5202 // work around unused variable warnings
5203 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5204 || dynamic_array[ni.number - 1] != 543);
5205
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5211 do
5212 CC="$ac_save_CC $ac_arg"
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_cv_prog_cc_c99=$ac_arg
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext
5217 test "x$ac_cv_prog_cc_c99" != "xno" && break
5218 done
5219 rm -f conftest.$ac_ext
5220 CC=$ac_save_CC
5221
5222 fi
5223 # AC_CACHE_VAL
5224 case "x$ac_cv_prog_cc_c99" in
5225 x)
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5227 $as_echo "none needed" >&6; } ;;
5228 xno)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5230 $as_echo "unsupported" >&6; } ;;
5231 *)
5232 CC="$CC $ac_cv_prog_cc_c99"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5234 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5235 esac
5236 if test "x$ac_cv_prog_cc_c99" != xno; then :
5237
5238 fi
5239
5240
5241 ac_ext=cpp
5242 ac_cpp='$CXXCPP $CPPFLAGS'
5243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246 if test -z "$CXX"; then
5247 if test -n "$CCC"; then
5248 CXX=$CCC
5249 else
5250 if test -n "$ac_tool_prefix"; then
5251 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5252 do
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_CXX+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$CXX"; then
5261 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 CXX=$ac_cv_prog_CXX
5281 if test -n "$CXX"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5283 $as_echo "$CXX" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290 test -n "$CXX" && break
5291 done
5292 fi
5293 if test -z "$CXX"; then
5294 ac_ct_CXX=$CXX
5295 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5296 do
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$ac_ct_CXX"; then
5305 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_CXX="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5325 if test -n "$ac_ct_CXX"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5327 $as_echo "$ac_ct_CXX" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334 test -n "$ac_ct_CXX" && break
5335 done
5336
5337 if test "x$ac_ct_CXX" = x; then
5338 CXX="g++"
5339 else
5340 case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5345 esac
5346 CXX=$ac_ct_CXX
5347 fi
5348 fi
5349
5350 fi
5351 fi
5352 # Provide some information about the compiler.
5353 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5354 set X $ac_compile
5355 ac_compiler=$2
5356 for ac_option in --version -v -V -qversion; do
5357 { { ac_try="$ac_compiler $ac_option >&5"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5363 $as_echo "$ac_try_echo"; } >&5
5364 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5365 ac_status=$?
5366 if test -s conftest.err; then
5367 sed '10a\
5368 ... rest of stderr output deleted ...
5369 10q' conftest.err >conftest.er1
5370 cat conftest.er1 >&5
5371 fi
5372 rm -f conftest.er1 conftest.err
5373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 test $ac_status = 0; }
5375 done
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5378 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5379 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384
5385 int
5386 main ()
5387 {
5388 #ifndef __GNUC__
5389 choke me
5390 #endif
5391
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_cxx_try_compile "$LINENO"; then :
5397 ac_compiler_gnu=yes
5398 else
5399 ac_compiler_gnu=no
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5406 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5407 if test $ac_compiler_gnu = yes; then
5408 GXX=yes
5409 else
5410 GXX=
5411 fi
5412 ac_test_CXXFLAGS=${CXXFLAGS+set}
5413 ac_save_CXXFLAGS=$CXXFLAGS
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5415 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5416 if ${ac_cv_prog_cxx_g+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5420 ac_cxx_werror_flag=yes
5421 ac_cv_prog_cxx_g=no
5422 CXXFLAGS="-g"
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425
5426 int
5427 main ()
5428 {
5429
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 if ac_fn_cxx_try_compile "$LINENO"; then :
5435 ac_cv_prog_cxx_g=yes
5436 else
5437 CXXFLAGS=""
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440
5441 int
5442 main ()
5443 {
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_cxx_try_compile "$LINENO"; then :
5450
5451 else
5452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5453 CXXFLAGS="-g"
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 int
5458 main ()
5459 {
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_cxx_try_compile "$LINENO"; then :
5466 ac_cv_prog_cxx_g=yes
5467 fi
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 fi
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5476 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5477 if test "$ac_test_CXXFLAGS" = set; then
5478 CXXFLAGS=$ac_save_CXXFLAGS
5479 elif test $ac_cv_prog_cxx_g = yes; then
5480 if test "$GXX" = yes; then
5481 CXXFLAGS="-g -O2"
5482 else
5483 CXXFLAGS="-g"
5484 fi
5485 else
5486 if test "$GXX" = yes; then
5487 CXXFLAGS="-O2"
5488 else
5489 CXXFLAGS=
5490 fi
5491 fi
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498
5499 # We must set the default linker to the linker used by gcc for the correct
5500 # operation of libtool. If LD is not defined and we are using gcc, try to
5501 # set the LD default to the ld used by gcc.
5502 if test -z "$LD"; then
5503 if test "$GCC" = yes; then
5504 case $build in
5505 *-*-mingw*)
5506 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5507 *)
5508 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5509 esac
5510 case $gcc_prog_ld in
5511 # Accept absolute paths.
5512 [\\/]* | [A-Za-z]:[\\/]*)
5513 LD="$gcc_prog_ld" ;;
5514 esac
5515 fi
5516 fi
5517
5518 # Check whether -static-libstdc++ -static-libgcc is supported.
5519 have_static_libs=no
5520 if test "$GCC" = yes; then
5521 saved_LDFLAGS="$LDFLAGS"
5522
5523 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5525 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5526 ac_ext=cpp
5527 ac_cpp='$CXXCPP $CPPFLAGS'
5528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531
5532
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535
5536 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5537 #error -static-libstdc++ not implemented
5538 #endif
5539 int main() {}
5540 _ACEOF
5541 if ac_fn_cxx_try_link "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }; have_static_libs=yes
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext \
5549 conftest$ac_exeext conftest.$ac_ext
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556
5557 LDFLAGS="$saved_LDFLAGS"
5558 fi
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_GNATBIND+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$GNATBIND"; then
5572 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 GNATBIND=$ac_cv_prog_GNATBIND
5592 if test -n "$GNATBIND"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5594 $as_echo "$GNATBIND" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 fi
5602 if test -z "$ac_cv_prog_GNATBIND"; then
5603 ac_ct_GNATBIND=$GNATBIND
5604 # Extract the first word of "gnatbind", so it can be a program name with args.
5605 set dummy gnatbind; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_GNATBIND"; then
5612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5632 if test -n "$ac_ct_GNATBIND"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5634 $as_echo "$ac_ct_GNATBIND" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640 if test "x$ac_ct_GNATBIND" = x; then
5641 GNATBIND="no"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 GNATBIND=$ac_ct_GNATBIND
5650 fi
5651 else
5652 GNATBIND="$ac_cv_prog_GNATBIND"
5653 fi
5654
5655 if test -n "$ac_tool_prefix"; then
5656 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5657 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_GNATMAKE+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$GNATMAKE"; then
5664 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677 done
5678 done
5679 IFS=$as_save_IFS
5680
5681 fi
5682 fi
5683 GNATMAKE=$ac_cv_prog_GNATMAKE
5684 if test -n "$GNATMAKE"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5686 $as_echo "$GNATMAKE" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691
5692
5693 fi
5694 if test -z "$ac_cv_prog_GNATMAKE"; then
5695 ac_ct_GNATMAKE=$GNATMAKE
5696 # Extract the first word of "gnatmake", so it can be a program name with args.
5697 set dummy gnatmake; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$ac_ct_GNATMAKE"; then
5704 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5724 if test -n "$ac_ct_GNATMAKE"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5726 $as_echo "$ac_ct_GNATMAKE" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732 if test "x$ac_ct_GNATMAKE" = x; then
5733 GNATMAKE="no"
5734 else
5735 case $cross_compiling:$ac_tool_warned in
5736 yes:)
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5739 ac_tool_warned=yes ;;
5740 esac
5741 GNATMAKE=$ac_ct_GNATMAKE
5742 fi
5743 else
5744 GNATMAKE="$ac_cv_prog_GNATMAKE"
5745 fi
5746
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5748 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5749 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 cat >conftest.adb <<EOF
5753 pragma Warnings (Off);
5754 with System.CRTL;
5755 pragma Warnings (On);
5756 use type System.CRTL.int64;
5757 procedure conftest is begin null; end conftest;
5758 EOF
5759 acx_cv_cc_gcc_supports_ada=no
5760 # There is a bug in old released versions of GCC which causes the
5761 # driver to exit successfully when the appropriate language module
5762 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5763 # Therefore we must check for the error message as well as an
5764 # unsuccessful exit.
5765 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5766 # given a .adb file, but produce no object file. So we must check
5767 # if an object file was really produced to guard against this.
5768 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5769 if test x"$errors" = x && test -f conftest.$ac_objext; then
5770 acx_cv_cc_gcc_supports_ada=yes
5771 fi
5772 rm -f conftest.*
5773 fi
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5775 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5776
5777 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5778 have_gnat=yes
5779 else
5780 have_gnat=no
5781 fi
5782
5783
5784
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_GDC+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$GDC"; then
5794 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 GDC=$ac_cv_prog_GDC
5814 if test -n "$GDC"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5816 $as_echo "$GDC" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_GDC"; then
5825 ac_ct_GDC=$GDC
5826 # Extract the first word of "gdc", so it can be a program name with args.
5827 set dummy gdc; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$ac_ct_GDC"; then
5834 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_ac_ct_GDC="gdc"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5854 if test -n "$ac_ct_GDC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5856 $as_echo "$ac_ct_GDC" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862 if test "x$ac_ct_GDC" = x; then
5863 GDC="no"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 GDC=$ac_ct_GDC
5872 fi
5873 else
5874 GDC="$ac_cv_prog_GDC"
5875 fi
5876
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5878 $as_echo_n "checking whether the D compiler works... " >&6; }
5879 if ${acx_cv_d_compiler_works+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 cat >conftest.d <<EOF
5883 module conftest; int main() { return 0; }
5884 EOF
5885 acx_cv_d_compiler_works=no
5886 if test "x$GDC" != xno; then
5887 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5888 if test x"$errors" = x && test -f conftest.$ac_objext; then
5889 acx_cv_d_compiler_works=yes
5890 fi
5891 rm -f conftest.*
5892 fi
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5895 $as_echo "$acx_cv_d_compiler_works" >&6; }
5896 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5897 have_gdc=yes
5898 else
5899 have_gdc=no
5900 fi
5901
5902 for ac_prog in cargo
5903 do
5904 # Extract the first word of "$ac_prog", so it can be a program name with args.
5905 set dummy $ac_prog; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_CARGO+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$CARGO"; then
5912 ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_CARGO="$ac_prog"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 CARGO=$ac_cv_prog_CARGO
5932 if test -n "$CARGO"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5934 $as_echo "$CARGO" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940
5941 test -n "$CARGO" && break
5942 done
5943 test -n "$CARGO" || CARGO="no"
5944
5945 if test "x$CARGO" != xno; then
5946 have_cargo=yes
5947 else
5948 have_cargo=no
5949 fi
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5951 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5952 if ${gcc_cv_prog_cmp_skip+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 echo abfoo >t1
5956 echo cdfoo >t2
5957 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5958 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5959 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5960 :
5961 else
5962 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5963 fi
5964 fi
5965 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5966 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5967 :
5968 else
5969 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5970 fi
5971 fi
5972 rm t1 t2
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5976 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5977 do_compare="$gcc_cv_prog_cmp_skip"
5978
5979
5980
5981 # Check whether --enable-bootstrap was given.
5982 if test "${enable_bootstrap+set}" = set; then :
5983 enableval=$enable_bootstrap;
5984 else
5985 enable_bootstrap=default
5986 fi
5987
5988
5989 # Issue errors and warnings for invalid/strange bootstrap combinations.
5990 if test -r $srcdir/gcc/configure; then
5991 have_compiler=yes
5992 else
5993 have_compiler=no
5994 fi
5995
5996 case "$have_compiler:$host:$target:$enable_bootstrap" in
5997 *:*:*:no) ;;
5998
5999 # Default behavior. Enable bootstrap if we have a compiler
6000 # and we are in a native configuration.
6001 yes:$build:$build:default)
6002 enable_bootstrap=yes ;;
6003
6004 *:*:*:default)
6005 enable_bootstrap=no ;;
6006
6007 # We have a compiler and we are in a native configuration, bootstrap is ok
6008 yes:$build:$build:yes)
6009 ;;
6010
6011 # Other configurations, but we have a compiler. Assume the user knows
6012 # what he's doing.
6013 yes:*:*:yes)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6015 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6016 ;;
6017
6018 # No compiler: if they passed --enable-bootstrap explicitly, fail
6019 no:*:*:yes)
6020 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6021
6022 # Fail if wrong command line
6023 *)
6024 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
6025 ;;
6026 esac
6027
6028 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
6029 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
6030 # require C++14 (or higher).
6031 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
6032 CXX="$CXX -std=c++14"
6033 elif test "$have_compiler" = yes; then
6034 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
6035 ac_ext=cpp
6036 ac_cpp='$CXXCPP $CPPFLAGS'
6037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6040 ac_success=no
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
6043 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
6044 if ${ax_cv_cxx_compile_cxx14+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049
6050
6051 // If the compiler admits that it is not ready for C++11, why torture it?
6052 // Hopefully, this will speed up the test.
6053
6054 #ifndef __cplusplus
6055
6056 #error "This is not a C++ compiler"
6057
6058 #elif __cplusplus < 201103L
6059
6060 #error "This is not a C++11 compiler"
6061
6062 #else
6063
6064 namespace cxx11
6065 {
6066
6067 namespace test_static_assert
6068 {
6069
6070 template <typename T>
6071 struct check
6072 {
6073 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6074 };
6075
6076 }
6077
6078 namespace test_final_override
6079 {
6080
6081 struct Base
6082 {
6083 virtual ~Base() {}
6084 virtual void f() {}
6085 };
6086
6087 struct Derived : public Base
6088 {
6089 virtual ~Derived() override {}
6090 virtual void f() override {}
6091 };
6092
6093 }
6094
6095 namespace test_double_right_angle_brackets
6096 {
6097
6098 template < typename T >
6099 struct check {};
6100
6101 typedef check<void> single_type;
6102 typedef check<check<void>> double_type;
6103 typedef check<check<check<void>>> triple_type;
6104 typedef check<check<check<check<void>>>> quadruple_type;
6105
6106 }
6107
6108 namespace test_decltype
6109 {
6110
6111 int
6112 f()
6113 {
6114 int a = 1;
6115 decltype(a) b = 2;
6116 return a + b;
6117 }
6118
6119 }
6120
6121 namespace test_type_deduction
6122 {
6123
6124 template < typename T1, typename T2 >
6125 struct is_same
6126 {
6127 static const bool value = false;
6128 };
6129
6130 template < typename T >
6131 struct is_same<T, T>
6132 {
6133 static const bool value = true;
6134 };
6135
6136 template < typename T1, typename T2 >
6137 auto
6138 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6139 {
6140 return a1 + a2;
6141 }
6142
6143 int
6144 test(const int c, volatile int v)
6145 {
6146 static_assert(is_same<int, decltype(0)>::value == true, "");
6147 static_assert(is_same<int, decltype(c)>::value == false, "");
6148 static_assert(is_same<int, decltype(v)>::value == false, "");
6149 auto ac = c;
6150 auto av = v;
6151 auto sumi = ac + av + 'x';
6152 auto sumf = ac + av + 1.0;
6153 static_assert(is_same<int, decltype(ac)>::value == true, "");
6154 static_assert(is_same<int, decltype(av)>::value == true, "");
6155 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6156 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6157 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6158 return (sumf > 0.0) ? sumi : add(c, v);
6159 }
6160
6161 }
6162
6163 namespace test_noexcept
6164 {
6165
6166 int f() { return 0; }
6167 int g() noexcept { return 0; }
6168
6169 static_assert(noexcept(f()) == false, "");
6170 static_assert(noexcept(g()) == true, "");
6171
6172 }
6173
6174 namespace test_constexpr
6175 {
6176
6177 template < typename CharT >
6178 unsigned long constexpr
6179 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6180 {
6181 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6182 }
6183
6184 template < typename CharT >
6185 unsigned long constexpr
6186 strlen_c(const CharT *const s) noexcept
6187 {
6188 return strlen_c_r(s, 0UL);
6189 }
6190
6191 static_assert(strlen_c("") == 0UL, "");
6192 static_assert(strlen_c("1") == 1UL, "");
6193 static_assert(strlen_c("example") == 7UL, "");
6194 static_assert(strlen_c("another\0example") == 7UL, "");
6195
6196 }
6197
6198 namespace test_rvalue_references
6199 {
6200
6201 template < int N >
6202 struct answer
6203 {
6204 static constexpr int value = N;
6205 };
6206
6207 answer<1> f(int&) { return answer<1>(); }
6208 answer<2> f(const int&) { return answer<2>(); }
6209 answer<3> f(int&&) { return answer<3>(); }
6210
6211 void
6212 test()
6213 {
6214 int i = 0;
6215 const int c = 0;
6216 static_assert(decltype(f(i))::value == 1, "");
6217 static_assert(decltype(f(c))::value == 2, "");
6218 static_assert(decltype(f(0))::value == 3, "");
6219 }
6220
6221 }
6222
6223 namespace test_uniform_initialization
6224 {
6225
6226 struct test
6227 {
6228 static const int zero {};
6229 static const int one {1};
6230 };
6231
6232 static_assert(test::zero == 0, "");
6233 static_assert(test::one == 1, "");
6234
6235 }
6236
6237 namespace test_lambdas
6238 {
6239
6240 void
6241 test1()
6242 {
6243 auto lambda1 = [](){};
6244 auto lambda2 = lambda1;
6245 lambda1();
6246 lambda2();
6247 }
6248
6249 int
6250 test2()
6251 {
6252 auto a = [](int i, int j){ return i + j; }(1, 2);
6253 auto b = []() -> int { return '0'; }();
6254 auto c = [=](){ return a + b; }();
6255 auto d = [&](){ return c; }();
6256 auto e = [a, &b](int x) mutable {
6257 const auto identity = [](int y){ return y; };
6258 for (auto i = 0; i < a; ++i)
6259 a += b--;
6260 return x + identity(a + b);
6261 }(0);
6262 return a + b + c + d + e;
6263 }
6264
6265 int
6266 test3()
6267 {
6268 const auto nullary = [](){ return 0; };
6269 const auto unary = [](int x){ return x; };
6270 using nullary_t = decltype(nullary);
6271 using unary_t = decltype(unary);
6272 const auto higher1st = [](nullary_t f){ return f(); };
6273 const auto higher2nd = [unary](nullary_t f1){
6274 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6275 };
6276 return higher1st(nullary) + higher2nd(nullary)(unary);
6277 }
6278
6279 }
6280
6281 namespace test_variadic_templates
6282 {
6283
6284 template <int...>
6285 struct sum;
6286
6287 template <int N0, int... N1toN>
6288 struct sum<N0, N1toN...>
6289 {
6290 static constexpr auto value = N0 + sum<N1toN...>::value;
6291 };
6292
6293 template <>
6294 struct sum<>
6295 {
6296 static constexpr auto value = 0;
6297 };
6298
6299 static_assert(sum<>::value == 0, "");
6300 static_assert(sum<1>::value == 1, "");
6301 static_assert(sum<23>::value == 23, "");
6302 static_assert(sum<1, 2>::value == 3, "");
6303 static_assert(sum<5, 5, 11>::value == 21, "");
6304 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6305
6306 }
6307
6308 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6309 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6310 // because of this.
6311 namespace test_template_alias_sfinae
6312 {
6313
6314 struct foo {};
6315
6316 template<typename T>
6317 using member = typename T::member_type;
6318
6319 template<typename T>
6320 void func(...) {}
6321
6322 template<typename T>
6323 void func(member<T>*) {}
6324
6325 void test();
6326
6327 void test() { func<foo>(0); }
6328
6329 }
6330
6331 } // namespace cxx11
6332
6333 #endif // __cplusplus >= 201103L
6334
6335
6336
6337
6338 // If the compiler admits that it is not ready for C++14, why torture it?
6339 // Hopefully, this will speed up the test.
6340
6341 #ifndef __cplusplus
6342
6343 #error "This is not a C++ compiler"
6344
6345 #elif __cplusplus < 201402L
6346
6347 #error "This is not a C++14 compiler"
6348
6349 #else
6350
6351 namespace cxx14
6352 {
6353
6354 namespace test_polymorphic_lambdas
6355 {
6356
6357 int
6358 test()
6359 {
6360 const auto lambda = [](auto&&... args){
6361 const auto istiny = [](auto x){
6362 return (sizeof(x) == 1UL) ? 1 : 0;
6363 };
6364 const int aretiny[] = { istiny(args)... };
6365 return aretiny[0];
6366 };
6367 return lambda(1, 1L, 1.0f, '1');
6368 }
6369
6370 }
6371
6372 namespace test_binary_literals
6373 {
6374
6375 constexpr auto ivii = 0b0000000000101010;
6376 static_assert(ivii == 42, "wrong value");
6377
6378 }
6379
6380 namespace test_generalized_constexpr
6381 {
6382
6383 template < typename CharT >
6384 constexpr unsigned long
6385 strlen_c(const CharT *const s) noexcept
6386 {
6387 auto length = 0UL;
6388 for (auto p = s; *p; ++p)
6389 ++length;
6390 return length;
6391 }
6392
6393 static_assert(strlen_c("") == 0UL, "");
6394 static_assert(strlen_c("x") == 1UL, "");
6395 static_assert(strlen_c("test") == 4UL, "");
6396 static_assert(strlen_c("another\0test") == 7UL, "");
6397
6398 }
6399
6400 namespace test_lambda_init_capture
6401 {
6402
6403 int
6404 test()
6405 {
6406 auto x = 0;
6407 const auto lambda1 = [a = x](int b){ return a + b; };
6408 const auto lambda2 = [a = lambda1(x)](){ return a; };
6409 return lambda2();
6410 }
6411
6412 }
6413
6414 namespace test_digit_separators
6415 {
6416
6417 constexpr auto ten_million = 100'000'000;
6418 static_assert(ten_million == 100000000, "");
6419
6420 }
6421
6422 namespace test_return_type_deduction
6423 {
6424
6425 auto f(int& x) { return x; }
6426 decltype(auto) g(int& x) { return x; }
6427
6428 template < typename T1, typename T2 >
6429 struct is_same
6430 {
6431 static constexpr auto value = false;
6432 };
6433
6434 template < typename T >
6435 struct is_same<T, T>
6436 {
6437 static constexpr auto value = true;
6438 };
6439
6440 int
6441 test()
6442 {
6443 auto x = 0;
6444 static_assert(is_same<int, decltype(f(x))>::value, "");
6445 static_assert(is_same<int&, decltype(g(x))>::value, "");
6446 return x;
6447 }
6448
6449 }
6450
6451 } // namespace cxx14
6452
6453 #endif // __cplusplus >= 201402L
6454
6455
6456
6457 _ACEOF
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6459 ax_cv_cxx_compile_cxx14=yes
6460 else
6461 ax_cv_cxx_compile_cxx14=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6466 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6467 if test x$ax_cv_cxx_compile_cxx14 = xyes; then
6468 ac_success=yes
6469 fi
6470
6471 if test x$ac_success = xno; then
6472 for alternative in ${ax_cxx_compile_alternatives}; do
6473 switch="-std=gnu++${alternative}"
6474 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6476 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6477 if eval \${$cachevar+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 ac_save_CXX="$CXX"
6481 CXX="$CXX $switch"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485
6486 // If the compiler admits that it is not ready for C++11, why torture it?
6487 // Hopefully, this will speed up the test.
6488
6489 #ifndef __cplusplus
6490
6491 #error "This is not a C++ compiler"
6492
6493 #elif __cplusplus < 201103L
6494
6495 #error "This is not a C++11 compiler"
6496
6497 #else
6498
6499 namespace cxx11
6500 {
6501
6502 namespace test_static_assert
6503 {
6504
6505 template <typename T>
6506 struct check
6507 {
6508 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6509 };
6510
6511 }
6512
6513 namespace test_final_override
6514 {
6515
6516 struct Base
6517 {
6518 virtual ~Base() {}
6519 virtual void f() {}
6520 };
6521
6522 struct Derived : public Base
6523 {
6524 virtual ~Derived() override {}
6525 virtual void f() override {}
6526 };
6527
6528 }
6529
6530 namespace test_double_right_angle_brackets
6531 {
6532
6533 template < typename T >
6534 struct check {};
6535
6536 typedef check<void> single_type;
6537 typedef check<check<void>> double_type;
6538 typedef check<check<check<void>>> triple_type;
6539 typedef check<check<check<check<void>>>> quadruple_type;
6540
6541 }
6542
6543 namespace test_decltype
6544 {
6545
6546 int
6547 f()
6548 {
6549 int a = 1;
6550 decltype(a) b = 2;
6551 return a + b;
6552 }
6553
6554 }
6555
6556 namespace test_type_deduction
6557 {
6558
6559 template < typename T1, typename T2 >
6560 struct is_same
6561 {
6562 static const bool value = false;
6563 };
6564
6565 template < typename T >
6566 struct is_same<T, T>
6567 {
6568 static const bool value = true;
6569 };
6570
6571 template < typename T1, typename T2 >
6572 auto
6573 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6574 {
6575 return a1 + a2;
6576 }
6577
6578 int
6579 test(const int c, volatile int v)
6580 {
6581 static_assert(is_same<int, decltype(0)>::value == true, "");
6582 static_assert(is_same<int, decltype(c)>::value == false, "");
6583 static_assert(is_same<int, decltype(v)>::value == false, "");
6584 auto ac = c;
6585 auto av = v;
6586 auto sumi = ac + av + 'x';
6587 auto sumf = ac + av + 1.0;
6588 static_assert(is_same<int, decltype(ac)>::value == true, "");
6589 static_assert(is_same<int, decltype(av)>::value == true, "");
6590 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6591 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6592 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6593 return (sumf > 0.0) ? sumi : add(c, v);
6594 }
6595
6596 }
6597
6598 namespace test_noexcept
6599 {
6600
6601 int f() { return 0; }
6602 int g() noexcept { return 0; }
6603
6604 static_assert(noexcept(f()) == false, "");
6605 static_assert(noexcept(g()) == true, "");
6606
6607 }
6608
6609 namespace test_constexpr
6610 {
6611
6612 template < typename CharT >
6613 unsigned long constexpr
6614 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6615 {
6616 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6617 }
6618
6619 template < typename CharT >
6620 unsigned long constexpr
6621 strlen_c(const CharT *const s) noexcept
6622 {
6623 return strlen_c_r(s, 0UL);
6624 }
6625
6626 static_assert(strlen_c("") == 0UL, "");
6627 static_assert(strlen_c("1") == 1UL, "");
6628 static_assert(strlen_c("example") == 7UL, "");
6629 static_assert(strlen_c("another\0example") == 7UL, "");
6630
6631 }
6632
6633 namespace test_rvalue_references
6634 {
6635
6636 template < int N >
6637 struct answer
6638 {
6639 static constexpr int value = N;
6640 };
6641
6642 answer<1> f(int&) { return answer<1>(); }
6643 answer<2> f(const int&) { return answer<2>(); }
6644 answer<3> f(int&&) { return answer<3>(); }
6645
6646 void
6647 test()
6648 {
6649 int i = 0;
6650 const int c = 0;
6651 static_assert(decltype(f(i))::value == 1, "");
6652 static_assert(decltype(f(c))::value == 2, "");
6653 static_assert(decltype(f(0))::value == 3, "");
6654 }
6655
6656 }
6657
6658 namespace test_uniform_initialization
6659 {
6660
6661 struct test
6662 {
6663 static const int zero {};
6664 static const int one {1};
6665 };
6666
6667 static_assert(test::zero == 0, "");
6668 static_assert(test::one == 1, "");
6669
6670 }
6671
6672 namespace test_lambdas
6673 {
6674
6675 void
6676 test1()
6677 {
6678 auto lambda1 = [](){};
6679 auto lambda2 = lambda1;
6680 lambda1();
6681 lambda2();
6682 }
6683
6684 int
6685 test2()
6686 {
6687 auto a = [](int i, int j){ return i + j; }(1, 2);
6688 auto b = []() -> int { return '0'; }();
6689 auto c = [=](){ return a + b; }();
6690 auto d = [&](){ return c; }();
6691 auto e = [a, &b](int x) mutable {
6692 const auto identity = [](int y){ return y; };
6693 for (auto i = 0; i < a; ++i)
6694 a += b--;
6695 return x + identity(a + b);
6696 }(0);
6697 return a + b + c + d + e;
6698 }
6699
6700 int
6701 test3()
6702 {
6703 const auto nullary = [](){ return 0; };
6704 const auto unary = [](int x){ return x; };
6705 using nullary_t = decltype(nullary);
6706 using unary_t = decltype(unary);
6707 const auto higher1st = [](nullary_t f){ return f(); };
6708 const auto higher2nd = [unary](nullary_t f1){
6709 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6710 };
6711 return higher1st(nullary) + higher2nd(nullary)(unary);
6712 }
6713
6714 }
6715
6716 namespace test_variadic_templates
6717 {
6718
6719 template <int...>
6720 struct sum;
6721
6722 template <int N0, int... N1toN>
6723 struct sum<N0, N1toN...>
6724 {
6725 static constexpr auto value = N0 + sum<N1toN...>::value;
6726 };
6727
6728 template <>
6729 struct sum<>
6730 {
6731 static constexpr auto value = 0;
6732 };
6733
6734 static_assert(sum<>::value == 0, "");
6735 static_assert(sum<1>::value == 1, "");
6736 static_assert(sum<23>::value == 23, "");
6737 static_assert(sum<1, 2>::value == 3, "");
6738 static_assert(sum<5, 5, 11>::value == 21, "");
6739 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6740
6741 }
6742
6743 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6744 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6745 // because of this.
6746 namespace test_template_alias_sfinae
6747 {
6748
6749 struct foo {};
6750
6751 template<typename T>
6752 using member = typename T::member_type;
6753
6754 template<typename T>
6755 void func(...) {}
6756
6757 template<typename T>
6758 void func(member<T>*) {}
6759
6760 void test();
6761
6762 void test() { func<foo>(0); }
6763
6764 }
6765
6766 } // namespace cxx11
6767
6768 #endif // __cplusplus >= 201103L
6769
6770
6771
6772
6773 // If the compiler admits that it is not ready for C++14, why torture it?
6774 // Hopefully, this will speed up the test.
6775
6776 #ifndef __cplusplus
6777
6778 #error "This is not a C++ compiler"
6779
6780 #elif __cplusplus < 201402L
6781
6782 #error "This is not a C++14 compiler"
6783
6784 #else
6785
6786 namespace cxx14
6787 {
6788
6789 namespace test_polymorphic_lambdas
6790 {
6791
6792 int
6793 test()
6794 {
6795 const auto lambda = [](auto&&... args){
6796 const auto istiny = [](auto x){
6797 return (sizeof(x) == 1UL) ? 1 : 0;
6798 };
6799 const int aretiny[] = { istiny(args)... };
6800 return aretiny[0];
6801 };
6802 return lambda(1, 1L, 1.0f, '1');
6803 }
6804
6805 }
6806
6807 namespace test_binary_literals
6808 {
6809
6810 constexpr auto ivii = 0b0000000000101010;
6811 static_assert(ivii == 42, "wrong value");
6812
6813 }
6814
6815 namespace test_generalized_constexpr
6816 {
6817
6818 template < typename CharT >
6819 constexpr unsigned long
6820 strlen_c(const CharT *const s) noexcept
6821 {
6822 auto length = 0UL;
6823 for (auto p = s; *p; ++p)
6824 ++length;
6825 return length;
6826 }
6827
6828 static_assert(strlen_c("") == 0UL, "");
6829 static_assert(strlen_c("x") == 1UL, "");
6830 static_assert(strlen_c("test") == 4UL, "");
6831 static_assert(strlen_c("another\0test") == 7UL, "");
6832
6833 }
6834
6835 namespace test_lambda_init_capture
6836 {
6837
6838 int
6839 test()
6840 {
6841 auto x = 0;
6842 const auto lambda1 = [a = x](int b){ return a + b; };
6843 const auto lambda2 = [a = lambda1(x)](){ return a; };
6844 return lambda2();
6845 }
6846
6847 }
6848
6849 namespace test_digit_separators
6850 {
6851
6852 constexpr auto ten_million = 100'000'000;
6853 static_assert(ten_million == 100000000, "");
6854
6855 }
6856
6857 namespace test_return_type_deduction
6858 {
6859
6860 auto f(int& x) { return x; }
6861 decltype(auto) g(int& x) { return x; }
6862
6863 template < typename T1, typename T2 >
6864 struct is_same
6865 {
6866 static constexpr auto value = false;
6867 };
6868
6869 template < typename T >
6870 struct is_same<T, T>
6871 {
6872 static constexpr auto value = true;
6873 };
6874
6875 int
6876 test()
6877 {
6878 auto x = 0;
6879 static_assert(is_same<int, decltype(f(x))>::value, "");
6880 static_assert(is_same<int&, decltype(g(x))>::value, "");
6881 return x;
6882 }
6883
6884 }
6885
6886 } // namespace cxx14
6887
6888 #endif // __cplusplus >= 201402L
6889
6890
6891
6892 _ACEOF
6893 if ac_fn_cxx_try_compile "$LINENO"; then :
6894 eval $cachevar=yes
6895 else
6896 eval $cachevar=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 CXX="$ac_save_CXX"
6900 fi
6901 eval ac_res=\$$cachevar
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6903 $as_echo "$ac_res" >&6; }
6904 if eval test x\$$cachevar = xyes; then
6905 CXX="$CXX $switch"
6906 if test -n "$CXXCPP" ; then
6907 CXXCPP="$CXXCPP $switch"
6908 fi
6909 ac_success=yes
6910 break
6911 fi
6912 done
6913 fi
6914
6915 if test x$ac_success = xno; then
6916 for alternative in ${ax_cxx_compile_alternatives}; do
6917 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6918 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6920 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6921 if eval \${$cachevar+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 ac_save_CXX="$CXX"
6925 CXX="$CXX $switch"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928
6929
6930 // If the compiler admits that it is not ready for C++11, why torture it?
6931 // Hopefully, this will speed up the test.
6932
6933 #ifndef __cplusplus
6934
6935 #error "This is not a C++ compiler"
6936
6937 #elif __cplusplus < 201103L
6938
6939 #error "This is not a C++11 compiler"
6940
6941 #else
6942
6943 namespace cxx11
6944 {
6945
6946 namespace test_static_assert
6947 {
6948
6949 template <typename T>
6950 struct check
6951 {
6952 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6953 };
6954
6955 }
6956
6957 namespace test_final_override
6958 {
6959
6960 struct Base
6961 {
6962 virtual ~Base() {}
6963 virtual void f() {}
6964 };
6965
6966 struct Derived : public Base
6967 {
6968 virtual ~Derived() override {}
6969 virtual void f() override {}
6970 };
6971
6972 }
6973
6974 namespace test_double_right_angle_brackets
6975 {
6976
6977 template < typename T >
6978 struct check {};
6979
6980 typedef check<void> single_type;
6981 typedef check<check<void>> double_type;
6982 typedef check<check<check<void>>> triple_type;
6983 typedef check<check<check<check<void>>>> quadruple_type;
6984
6985 }
6986
6987 namespace test_decltype
6988 {
6989
6990 int
6991 f()
6992 {
6993 int a = 1;
6994 decltype(a) b = 2;
6995 return a + b;
6996 }
6997
6998 }
6999
7000 namespace test_type_deduction
7001 {
7002
7003 template < typename T1, typename T2 >
7004 struct is_same
7005 {
7006 static const bool value = false;
7007 };
7008
7009 template < typename T >
7010 struct is_same<T, T>
7011 {
7012 static const bool value = true;
7013 };
7014
7015 template < typename T1, typename T2 >
7016 auto
7017 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7018 {
7019 return a1 + a2;
7020 }
7021
7022 int
7023 test(const int c, volatile int v)
7024 {
7025 static_assert(is_same<int, decltype(0)>::value == true, "");
7026 static_assert(is_same<int, decltype(c)>::value == false, "");
7027 static_assert(is_same<int, decltype(v)>::value == false, "");
7028 auto ac = c;
7029 auto av = v;
7030 auto sumi = ac + av + 'x';
7031 auto sumf = ac + av + 1.0;
7032 static_assert(is_same<int, decltype(ac)>::value == true, "");
7033 static_assert(is_same<int, decltype(av)>::value == true, "");
7034 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7035 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7036 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7037 return (sumf > 0.0) ? sumi : add(c, v);
7038 }
7039
7040 }
7041
7042 namespace test_noexcept
7043 {
7044
7045 int f() { return 0; }
7046 int g() noexcept { return 0; }
7047
7048 static_assert(noexcept(f()) == false, "");
7049 static_assert(noexcept(g()) == true, "");
7050
7051 }
7052
7053 namespace test_constexpr
7054 {
7055
7056 template < typename CharT >
7057 unsigned long constexpr
7058 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7059 {
7060 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7061 }
7062
7063 template < typename CharT >
7064 unsigned long constexpr
7065 strlen_c(const CharT *const s) noexcept
7066 {
7067 return strlen_c_r(s, 0UL);
7068 }
7069
7070 static_assert(strlen_c("") == 0UL, "");
7071 static_assert(strlen_c("1") == 1UL, "");
7072 static_assert(strlen_c("example") == 7UL, "");
7073 static_assert(strlen_c("another\0example") == 7UL, "");
7074
7075 }
7076
7077 namespace test_rvalue_references
7078 {
7079
7080 template < int N >
7081 struct answer
7082 {
7083 static constexpr int value = N;
7084 };
7085
7086 answer<1> f(int&) { return answer<1>(); }
7087 answer<2> f(const int&) { return answer<2>(); }
7088 answer<3> f(int&&) { return answer<3>(); }
7089
7090 void
7091 test()
7092 {
7093 int i = 0;
7094 const int c = 0;
7095 static_assert(decltype(f(i))::value == 1, "");
7096 static_assert(decltype(f(c))::value == 2, "");
7097 static_assert(decltype(f(0))::value == 3, "");
7098 }
7099
7100 }
7101
7102 namespace test_uniform_initialization
7103 {
7104
7105 struct test
7106 {
7107 static const int zero {};
7108 static const int one {1};
7109 };
7110
7111 static_assert(test::zero == 0, "");
7112 static_assert(test::one == 1, "");
7113
7114 }
7115
7116 namespace test_lambdas
7117 {
7118
7119 void
7120 test1()
7121 {
7122 auto lambda1 = [](){};
7123 auto lambda2 = lambda1;
7124 lambda1();
7125 lambda2();
7126 }
7127
7128 int
7129 test2()
7130 {
7131 auto a = [](int i, int j){ return i + j; }(1, 2);
7132 auto b = []() -> int { return '0'; }();
7133 auto c = [=](){ return a + b; }();
7134 auto d = [&](){ return c; }();
7135 auto e = [a, &b](int x) mutable {
7136 const auto identity = [](int y){ return y; };
7137 for (auto i = 0; i < a; ++i)
7138 a += b--;
7139 return x + identity(a + b);
7140 }(0);
7141 return a + b + c + d + e;
7142 }
7143
7144 int
7145 test3()
7146 {
7147 const auto nullary = [](){ return 0; };
7148 const auto unary = [](int x){ return x; };
7149 using nullary_t = decltype(nullary);
7150 using unary_t = decltype(unary);
7151 const auto higher1st = [](nullary_t f){ return f(); };
7152 const auto higher2nd = [unary](nullary_t f1){
7153 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7154 };
7155 return higher1st(nullary) + higher2nd(nullary)(unary);
7156 }
7157
7158 }
7159
7160 namespace test_variadic_templates
7161 {
7162
7163 template <int...>
7164 struct sum;
7165
7166 template <int N0, int... N1toN>
7167 struct sum<N0, N1toN...>
7168 {
7169 static constexpr auto value = N0 + sum<N1toN...>::value;
7170 };
7171
7172 template <>
7173 struct sum<>
7174 {
7175 static constexpr auto value = 0;
7176 };
7177
7178 static_assert(sum<>::value == 0, "");
7179 static_assert(sum<1>::value == 1, "");
7180 static_assert(sum<23>::value == 23, "");
7181 static_assert(sum<1, 2>::value == 3, "");
7182 static_assert(sum<5, 5, 11>::value == 21, "");
7183 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7184
7185 }
7186
7187 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7188 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7189 // because of this.
7190 namespace test_template_alias_sfinae
7191 {
7192
7193 struct foo {};
7194
7195 template<typename T>
7196 using member = typename T::member_type;
7197
7198 template<typename T>
7199 void func(...) {}
7200
7201 template<typename T>
7202 void func(member<T>*) {}
7203
7204 void test();
7205
7206 void test() { func<foo>(0); }
7207
7208 }
7209
7210 } // namespace cxx11
7211
7212 #endif // __cplusplus >= 201103L
7213
7214
7215
7216
7217 // If the compiler admits that it is not ready for C++14, why torture it?
7218 // Hopefully, this will speed up the test.
7219
7220 #ifndef __cplusplus
7221
7222 #error "This is not a C++ compiler"
7223
7224 #elif __cplusplus < 201402L
7225
7226 #error "This is not a C++14 compiler"
7227
7228 #else
7229
7230 namespace cxx14
7231 {
7232
7233 namespace test_polymorphic_lambdas
7234 {
7235
7236 int
7237 test()
7238 {
7239 const auto lambda = [](auto&&... args){
7240 const auto istiny = [](auto x){
7241 return (sizeof(x) == 1UL) ? 1 : 0;
7242 };
7243 const int aretiny[] = { istiny(args)... };
7244 return aretiny[0];
7245 };
7246 return lambda(1, 1L, 1.0f, '1');
7247 }
7248
7249 }
7250
7251 namespace test_binary_literals
7252 {
7253
7254 constexpr auto ivii = 0b0000000000101010;
7255 static_assert(ivii == 42, "wrong value");
7256
7257 }
7258
7259 namespace test_generalized_constexpr
7260 {
7261
7262 template < typename CharT >
7263 constexpr unsigned long
7264 strlen_c(const CharT *const s) noexcept
7265 {
7266 auto length = 0UL;
7267 for (auto p = s; *p; ++p)
7268 ++length;
7269 return length;
7270 }
7271
7272 static_assert(strlen_c("") == 0UL, "");
7273 static_assert(strlen_c("x") == 1UL, "");
7274 static_assert(strlen_c("test") == 4UL, "");
7275 static_assert(strlen_c("another\0test") == 7UL, "");
7276
7277 }
7278
7279 namespace test_lambda_init_capture
7280 {
7281
7282 int
7283 test()
7284 {
7285 auto x = 0;
7286 const auto lambda1 = [a = x](int b){ return a + b; };
7287 const auto lambda2 = [a = lambda1(x)](){ return a; };
7288 return lambda2();
7289 }
7290
7291 }
7292
7293 namespace test_digit_separators
7294 {
7295
7296 constexpr auto ten_million = 100'000'000;
7297 static_assert(ten_million == 100000000, "");
7298
7299 }
7300
7301 namespace test_return_type_deduction
7302 {
7303
7304 auto f(int& x) { return x; }
7305 decltype(auto) g(int& x) { return x; }
7306
7307 template < typename T1, typename T2 >
7308 struct is_same
7309 {
7310 static constexpr auto value = false;
7311 };
7312
7313 template < typename T >
7314 struct is_same<T, T>
7315 {
7316 static constexpr auto value = true;
7317 };
7318
7319 int
7320 test()
7321 {
7322 auto x = 0;
7323 static_assert(is_same<int, decltype(f(x))>::value, "");
7324 static_assert(is_same<int&, decltype(g(x))>::value, "");
7325 return x;
7326 }
7327
7328 }
7329
7330 } // namespace cxx14
7331
7332 #endif // __cplusplus >= 201402L
7333
7334
7335
7336 _ACEOF
7337 if ac_fn_cxx_try_compile "$LINENO"; then :
7338 eval $cachevar=yes
7339 else
7340 eval $cachevar=no
7341 fi
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 CXX="$ac_save_CXX"
7344 fi
7345 eval ac_res=\$$cachevar
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7347 $as_echo "$ac_res" >&6; }
7348 if eval test x\$$cachevar = xyes; then
7349 CXX="$CXX $switch"
7350 if test -n "$CXXCPP" ; then
7351 CXXCPP="$CXXCPP $switch"
7352 fi
7353 ac_success=yes
7354 break
7355 fi
7356 done
7357 if test x$ac_success = xyes; then
7358 break
7359 fi
7360 done
7361 fi
7362
7363 ac_ext=c
7364 ac_cpp='$CPP $CPPFLAGS'
7365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368
7369 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7370 if test x$ac_success = xno; then
7371 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
7372 fi
7373 fi
7374 if test x$ac_success = xno; then
7375 HAVE_CXX14=0
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
7377 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
7378 else
7379 HAVE_CXX14=1
7380
7381 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7382
7383 fi
7384
7385
7386
7387 if test "${build}" != "${host}"; then
7388 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=true
7389 ac_ext=cpp
7390 ac_cpp='$CXXCPP $CPPFLAGS'
7391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7394 ac_success=no
7395 ax_cv_cxx_compile_cxx14_orig_cxx="$CXX"
7396 ax_cv_cxx_compile_cxx14_orig_cxxflags="$CXXFLAGS"
7397 ax_cv_cxx_compile_cxx14_orig_cppflags="$CPPFLAGS"
7398 CXX="$CXX_FOR_BUILD"
7399 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
7400 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7402 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7403 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408
7409
7410 // If the compiler admits that it is not ready for C++11, why torture it?
7411 // Hopefully, this will speed up the test.
7412
7413 #ifndef __cplusplus
7414
7415 #error "This is not a C++ compiler"
7416
7417 #elif __cplusplus < 201103L
7418
7419 #error "This is not a C++11 compiler"
7420
7421 #else
7422
7423 namespace cxx11
7424 {
7425
7426 namespace test_static_assert
7427 {
7428
7429 template <typename T>
7430 struct check
7431 {
7432 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7433 };
7434
7435 }
7436
7437 namespace test_final_override
7438 {
7439
7440 struct Base
7441 {
7442 virtual ~Base() {}
7443 virtual void f() {}
7444 };
7445
7446 struct Derived : public Base
7447 {
7448 virtual ~Derived() override {}
7449 virtual void f() override {}
7450 };
7451
7452 }
7453
7454 namespace test_double_right_angle_brackets
7455 {
7456
7457 template < typename T >
7458 struct check {};
7459
7460 typedef check<void> single_type;
7461 typedef check<check<void>> double_type;
7462 typedef check<check<check<void>>> triple_type;
7463 typedef check<check<check<check<void>>>> quadruple_type;
7464
7465 }
7466
7467 namespace test_decltype
7468 {
7469
7470 int
7471 f()
7472 {
7473 int a = 1;
7474 decltype(a) b = 2;
7475 return a + b;
7476 }
7477
7478 }
7479
7480 namespace test_type_deduction
7481 {
7482
7483 template < typename T1, typename T2 >
7484 struct is_same
7485 {
7486 static const bool value = false;
7487 };
7488
7489 template < typename T >
7490 struct is_same<T, T>
7491 {
7492 static const bool value = true;
7493 };
7494
7495 template < typename T1, typename T2 >
7496 auto
7497 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7498 {
7499 return a1 + a2;
7500 }
7501
7502 int
7503 test(const int c, volatile int v)
7504 {
7505 static_assert(is_same<int, decltype(0)>::value == true, "");
7506 static_assert(is_same<int, decltype(c)>::value == false, "");
7507 static_assert(is_same<int, decltype(v)>::value == false, "");
7508 auto ac = c;
7509 auto av = v;
7510 auto sumi = ac + av + 'x';
7511 auto sumf = ac + av + 1.0;
7512 static_assert(is_same<int, decltype(ac)>::value == true, "");
7513 static_assert(is_same<int, decltype(av)>::value == true, "");
7514 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7515 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7516 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7517 return (sumf > 0.0) ? sumi : add(c, v);
7518 }
7519
7520 }
7521
7522 namespace test_noexcept
7523 {
7524
7525 int f() { return 0; }
7526 int g() noexcept { return 0; }
7527
7528 static_assert(noexcept(f()) == false, "");
7529 static_assert(noexcept(g()) == true, "");
7530
7531 }
7532
7533 namespace test_constexpr
7534 {
7535
7536 template < typename CharT >
7537 unsigned long constexpr
7538 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7539 {
7540 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7541 }
7542
7543 template < typename CharT >
7544 unsigned long constexpr
7545 strlen_c(const CharT *const s) noexcept
7546 {
7547 return strlen_c_r(s, 0UL);
7548 }
7549
7550 static_assert(strlen_c("") == 0UL, "");
7551 static_assert(strlen_c("1") == 1UL, "");
7552 static_assert(strlen_c("example") == 7UL, "");
7553 static_assert(strlen_c("another\0example") == 7UL, "");
7554
7555 }
7556
7557 namespace test_rvalue_references
7558 {
7559
7560 template < int N >
7561 struct answer
7562 {
7563 static constexpr int value = N;
7564 };
7565
7566 answer<1> f(int&) { return answer<1>(); }
7567 answer<2> f(const int&) { return answer<2>(); }
7568 answer<3> f(int&&) { return answer<3>(); }
7569
7570 void
7571 test()
7572 {
7573 int i = 0;
7574 const int c = 0;
7575 static_assert(decltype(f(i))::value == 1, "");
7576 static_assert(decltype(f(c))::value == 2, "");
7577 static_assert(decltype(f(0))::value == 3, "");
7578 }
7579
7580 }
7581
7582 namespace test_uniform_initialization
7583 {
7584
7585 struct test
7586 {
7587 static const int zero {};
7588 static const int one {1};
7589 };
7590
7591 static_assert(test::zero == 0, "");
7592 static_assert(test::one == 1, "");
7593
7594 }
7595
7596 namespace test_lambdas
7597 {
7598
7599 void
7600 test1()
7601 {
7602 auto lambda1 = [](){};
7603 auto lambda2 = lambda1;
7604 lambda1();
7605 lambda2();
7606 }
7607
7608 int
7609 test2()
7610 {
7611 auto a = [](int i, int j){ return i + j; }(1, 2);
7612 auto b = []() -> int { return '0'; }();
7613 auto c = [=](){ return a + b; }();
7614 auto d = [&](){ return c; }();
7615 auto e = [a, &b](int x) mutable {
7616 const auto identity = [](int y){ return y; };
7617 for (auto i = 0; i < a; ++i)
7618 a += b--;
7619 return x + identity(a + b);
7620 }(0);
7621 return a + b + c + d + e;
7622 }
7623
7624 int
7625 test3()
7626 {
7627 const auto nullary = [](){ return 0; };
7628 const auto unary = [](int x){ return x; };
7629 using nullary_t = decltype(nullary);
7630 using unary_t = decltype(unary);
7631 const auto higher1st = [](nullary_t f){ return f(); };
7632 const auto higher2nd = [unary](nullary_t f1){
7633 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7634 };
7635 return higher1st(nullary) + higher2nd(nullary)(unary);
7636 }
7637
7638 }
7639
7640 namespace test_variadic_templates
7641 {
7642
7643 template <int...>
7644 struct sum;
7645
7646 template <int N0, int... N1toN>
7647 struct sum<N0, N1toN...>
7648 {
7649 static constexpr auto value = N0 + sum<N1toN...>::value;
7650 };
7651
7652 template <>
7653 struct sum<>
7654 {
7655 static constexpr auto value = 0;
7656 };
7657
7658 static_assert(sum<>::value == 0, "");
7659 static_assert(sum<1>::value == 1, "");
7660 static_assert(sum<23>::value == 23, "");
7661 static_assert(sum<1, 2>::value == 3, "");
7662 static_assert(sum<5, 5, 11>::value == 21, "");
7663 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7664
7665 }
7666
7667 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7668 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7669 // because of this.
7670 namespace test_template_alias_sfinae
7671 {
7672
7673 struct foo {};
7674
7675 template<typename T>
7676 using member = typename T::member_type;
7677
7678 template<typename T>
7679 void func(...) {}
7680
7681 template<typename T>
7682 void func(member<T>*) {}
7683
7684 void test();
7685
7686 void test() { func<foo>(0); }
7687
7688 }
7689
7690 } // namespace cxx11
7691
7692 #endif // __cplusplus >= 201103L
7693
7694
7695
7696
7697 // If the compiler admits that it is not ready for C++14, why torture it?
7698 // Hopefully, this will speed up the test.
7699
7700 #ifndef __cplusplus
7701
7702 #error "This is not a C++ compiler"
7703
7704 #elif __cplusplus < 201402L
7705
7706 #error "This is not a C++14 compiler"
7707
7708 #else
7709
7710 namespace cxx14
7711 {
7712
7713 namespace test_polymorphic_lambdas
7714 {
7715
7716 int
7717 test()
7718 {
7719 const auto lambda = [](auto&&... args){
7720 const auto istiny = [](auto x){
7721 return (sizeof(x) == 1UL) ? 1 : 0;
7722 };
7723 const int aretiny[] = { istiny(args)... };
7724 return aretiny[0];
7725 };
7726 return lambda(1, 1L, 1.0f, '1');
7727 }
7728
7729 }
7730
7731 namespace test_binary_literals
7732 {
7733
7734 constexpr auto ivii = 0b0000000000101010;
7735 static_assert(ivii == 42, "wrong value");
7736
7737 }
7738
7739 namespace test_generalized_constexpr
7740 {
7741
7742 template < typename CharT >
7743 constexpr unsigned long
7744 strlen_c(const CharT *const s) noexcept
7745 {
7746 auto length = 0UL;
7747 for (auto p = s; *p; ++p)
7748 ++length;
7749 return length;
7750 }
7751
7752 static_assert(strlen_c("") == 0UL, "");
7753 static_assert(strlen_c("x") == 1UL, "");
7754 static_assert(strlen_c("test") == 4UL, "");
7755 static_assert(strlen_c("another\0test") == 7UL, "");
7756
7757 }
7758
7759 namespace test_lambda_init_capture
7760 {
7761
7762 int
7763 test()
7764 {
7765 auto x = 0;
7766 const auto lambda1 = [a = x](int b){ return a + b; };
7767 const auto lambda2 = [a = lambda1(x)](){ return a; };
7768 return lambda2();
7769 }
7770
7771 }
7772
7773 namespace test_digit_separators
7774 {
7775
7776 constexpr auto ten_million = 100'000'000;
7777 static_assert(ten_million == 100000000, "");
7778
7779 }
7780
7781 namespace test_return_type_deduction
7782 {
7783
7784 auto f(int& x) { return x; }
7785 decltype(auto) g(int& x) { return x; }
7786
7787 template < typename T1, typename T2 >
7788 struct is_same
7789 {
7790 static constexpr auto value = false;
7791 };
7792
7793 template < typename T >
7794 struct is_same<T, T>
7795 {
7796 static constexpr auto value = true;
7797 };
7798
7799 int
7800 test()
7801 {
7802 auto x = 0;
7803 static_assert(is_same<int, decltype(f(x))>::value, "");
7804 static_assert(is_same<int&, decltype(g(x))>::value, "");
7805 return x;
7806 }
7807
7808 }
7809
7810 } // namespace cxx14
7811
7812 #endif // __cplusplus >= 201402L
7813
7814
7815
7816 _ACEOF
7817 if ac_fn_cxx_try_compile "$LINENO"; then :
7818 ax_cv_cxx_compile_cxx14_FOR_BUILD=yes
7819 else
7820 ax_cv_cxx_compile_cxx14_FOR_BUILD=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7825 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7826 if test x$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes; then
7827 ac_success=yes
7828 fi
7829
7830 if test x$ac_success = xno; then
7831 for alternative in ${ax_cxx_compile_alternatives}; do
7832 switch="-std=gnu++${alternative}"
7833 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7835 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7836 if eval \${$cachevar+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 ac_save_CXX="$CXX"
7840 CXX="$CXX $switch"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843
7844
7845 // If the compiler admits that it is not ready for C++11, why torture it?
7846 // Hopefully, this will speed up the test.
7847
7848 #ifndef __cplusplus
7849
7850 #error "This is not a C++ compiler"
7851
7852 #elif __cplusplus < 201103L
7853
7854 #error "This is not a C++11 compiler"
7855
7856 #else
7857
7858 namespace cxx11
7859 {
7860
7861 namespace test_static_assert
7862 {
7863
7864 template <typename T>
7865 struct check
7866 {
7867 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7868 };
7869
7870 }
7871
7872 namespace test_final_override
7873 {
7874
7875 struct Base
7876 {
7877 virtual ~Base() {}
7878 virtual void f() {}
7879 };
7880
7881 struct Derived : public Base
7882 {
7883 virtual ~Derived() override {}
7884 virtual void f() override {}
7885 };
7886
7887 }
7888
7889 namespace test_double_right_angle_brackets
7890 {
7891
7892 template < typename T >
7893 struct check {};
7894
7895 typedef check<void> single_type;
7896 typedef check<check<void>> double_type;
7897 typedef check<check<check<void>>> triple_type;
7898 typedef check<check<check<check<void>>>> quadruple_type;
7899
7900 }
7901
7902 namespace test_decltype
7903 {
7904
7905 int
7906 f()
7907 {
7908 int a = 1;
7909 decltype(a) b = 2;
7910 return a + b;
7911 }
7912
7913 }
7914
7915 namespace test_type_deduction
7916 {
7917
7918 template < typename T1, typename T2 >
7919 struct is_same
7920 {
7921 static const bool value = false;
7922 };
7923
7924 template < typename T >
7925 struct is_same<T, T>
7926 {
7927 static const bool value = true;
7928 };
7929
7930 template < typename T1, typename T2 >
7931 auto
7932 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7933 {
7934 return a1 + a2;
7935 }
7936
7937 int
7938 test(const int c, volatile int v)
7939 {
7940 static_assert(is_same<int, decltype(0)>::value == true, "");
7941 static_assert(is_same<int, decltype(c)>::value == false, "");
7942 static_assert(is_same<int, decltype(v)>::value == false, "");
7943 auto ac = c;
7944 auto av = v;
7945 auto sumi = ac + av + 'x';
7946 auto sumf = ac + av + 1.0;
7947 static_assert(is_same<int, decltype(ac)>::value == true, "");
7948 static_assert(is_same<int, decltype(av)>::value == true, "");
7949 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7950 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7951 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7952 return (sumf > 0.0) ? sumi : add(c, v);
7953 }
7954
7955 }
7956
7957 namespace test_noexcept
7958 {
7959
7960 int f() { return 0; }
7961 int g() noexcept { return 0; }
7962
7963 static_assert(noexcept(f()) == false, "");
7964 static_assert(noexcept(g()) == true, "");
7965
7966 }
7967
7968 namespace test_constexpr
7969 {
7970
7971 template < typename CharT >
7972 unsigned long constexpr
7973 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7974 {
7975 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7976 }
7977
7978 template < typename CharT >
7979 unsigned long constexpr
7980 strlen_c(const CharT *const s) noexcept
7981 {
7982 return strlen_c_r(s, 0UL);
7983 }
7984
7985 static_assert(strlen_c("") == 0UL, "");
7986 static_assert(strlen_c("1") == 1UL, "");
7987 static_assert(strlen_c("example") == 7UL, "");
7988 static_assert(strlen_c("another\0example") == 7UL, "");
7989
7990 }
7991
7992 namespace test_rvalue_references
7993 {
7994
7995 template < int N >
7996 struct answer
7997 {
7998 static constexpr int value = N;
7999 };
8000
8001 answer<1> f(int&) { return answer<1>(); }
8002 answer<2> f(const int&) { return answer<2>(); }
8003 answer<3> f(int&&) { return answer<3>(); }
8004
8005 void
8006 test()
8007 {
8008 int i = 0;
8009 const int c = 0;
8010 static_assert(decltype(f(i))::value == 1, "");
8011 static_assert(decltype(f(c))::value == 2, "");
8012 static_assert(decltype(f(0))::value == 3, "");
8013 }
8014
8015 }
8016
8017 namespace test_uniform_initialization
8018 {
8019
8020 struct test
8021 {
8022 static const int zero {};
8023 static const int one {1};
8024 };
8025
8026 static_assert(test::zero == 0, "");
8027 static_assert(test::one == 1, "");
8028
8029 }
8030
8031 namespace test_lambdas
8032 {
8033
8034 void
8035 test1()
8036 {
8037 auto lambda1 = [](){};
8038 auto lambda2 = lambda1;
8039 lambda1();
8040 lambda2();
8041 }
8042
8043 int
8044 test2()
8045 {
8046 auto a = [](int i, int j){ return i + j; }(1, 2);
8047 auto b = []() -> int { return '0'; }();
8048 auto c = [=](){ return a + b; }();
8049 auto d = [&](){ return c; }();
8050 auto e = [a, &b](int x) mutable {
8051 const auto identity = [](int y){ return y; };
8052 for (auto i = 0; i < a; ++i)
8053 a += b--;
8054 return x + identity(a + b);
8055 }(0);
8056 return a + b + c + d + e;
8057 }
8058
8059 int
8060 test3()
8061 {
8062 const auto nullary = [](){ return 0; };
8063 const auto unary = [](int x){ return x; };
8064 using nullary_t = decltype(nullary);
8065 using unary_t = decltype(unary);
8066 const auto higher1st = [](nullary_t f){ return f(); };
8067 const auto higher2nd = [unary](nullary_t f1){
8068 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8069 };
8070 return higher1st(nullary) + higher2nd(nullary)(unary);
8071 }
8072
8073 }
8074
8075 namespace test_variadic_templates
8076 {
8077
8078 template <int...>
8079 struct sum;
8080
8081 template <int N0, int... N1toN>
8082 struct sum<N0, N1toN...>
8083 {
8084 static constexpr auto value = N0 + sum<N1toN...>::value;
8085 };
8086
8087 template <>
8088 struct sum<>
8089 {
8090 static constexpr auto value = 0;
8091 };
8092
8093 static_assert(sum<>::value == 0, "");
8094 static_assert(sum<1>::value == 1, "");
8095 static_assert(sum<23>::value == 23, "");
8096 static_assert(sum<1, 2>::value == 3, "");
8097 static_assert(sum<5, 5, 11>::value == 21, "");
8098 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8099
8100 }
8101
8102 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8103 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8104 // because of this.
8105 namespace test_template_alias_sfinae
8106 {
8107
8108 struct foo {};
8109
8110 template<typename T>
8111 using member = typename T::member_type;
8112
8113 template<typename T>
8114 void func(...) {}
8115
8116 template<typename T>
8117 void func(member<T>*) {}
8118
8119 void test();
8120
8121 void test() { func<foo>(0); }
8122
8123 }
8124
8125 } // namespace cxx11
8126
8127 #endif // __cplusplus >= 201103L
8128
8129
8130
8131
8132 // If the compiler admits that it is not ready for C++14, why torture it?
8133 // Hopefully, this will speed up the test.
8134
8135 #ifndef __cplusplus
8136
8137 #error "This is not a C++ compiler"
8138
8139 #elif __cplusplus < 201402L
8140
8141 #error "This is not a C++14 compiler"
8142
8143 #else
8144
8145 namespace cxx14
8146 {
8147
8148 namespace test_polymorphic_lambdas
8149 {
8150
8151 int
8152 test()
8153 {
8154 const auto lambda = [](auto&&... args){
8155 const auto istiny = [](auto x){
8156 return (sizeof(x) == 1UL) ? 1 : 0;
8157 };
8158 const int aretiny[] = { istiny(args)... };
8159 return aretiny[0];
8160 };
8161 return lambda(1, 1L, 1.0f, '1');
8162 }
8163
8164 }
8165
8166 namespace test_binary_literals
8167 {
8168
8169 constexpr auto ivii = 0b0000000000101010;
8170 static_assert(ivii == 42, "wrong value");
8171
8172 }
8173
8174 namespace test_generalized_constexpr
8175 {
8176
8177 template < typename CharT >
8178 constexpr unsigned long
8179 strlen_c(const CharT *const s) noexcept
8180 {
8181 auto length = 0UL;
8182 for (auto p = s; *p; ++p)
8183 ++length;
8184 return length;
8185 }
8186
8187 static_assert(strlen_c("") == 0UL, "");
8188 static_assert(strlen_c("x") == 1UL, "");
8189 static_assert(strlen_c("test") == 4UL, "");
8190 static_assert(strlen_c("another\0test") == 7UL, "");
8191
8192 }
8193
8194 namespace test_lambda_init_capture
8195 {
8196
8197 int
8198 test()
8199 {
8200 auto x = 0;
8201 const auto lambda1 = [a = x](int b){ return a + b; };
8202 const auto lambda2 = [a = lambda1(x)](){ return a; };
8203 return lambda2();
8204 }
8205
8206 }
8207
8208 namespace test_digit_separators
8209 {
8210
8211 constexpr auto ten_million = 100'000'000;
8212 static_assert(ten_million == 100000000, "");
8213
8214 }
8215
8216 namespace test_return_type_deduction
8217 {
8218
8219 auto f(int& x) { return x; }
8220 decltype(auto) g(int& x) { return x; }
8221
8222 template < typename T1, typename T2 >
8223 struct is_same
8224 {
8225 static constexpr auto value = false;
8226 };
8227
8228 template < typename T >
8229 struct is_same<T, T>
8230 {
8231 static constexpr auto value = true;
8232 };
8233
8234 int
8235 test()
8236 {
8237 auto x = 0;
8238 static_assert(is_same<int, decltype(f(x))>::value, "");
8239 static_assert(is_same<int&, decltype(g(x))>::value, "");
8240 return x;
8241 }
8242
8243 }
8244
8245 } // namespace cxx14
8246
8247 #endif // __cplusplus >= 201402L
8248
8249
8250
8251 _ACEOF
8252 if ac_fn_cxx_try_compile "$LINENO"; then :
8253 eval $cachevar=yes
8254 else
8255 eval $cachevar=no
8256 fi
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 CXX="$ac_save_CXX"
8259 fi
8260 eval ac_res=\$$cachevar
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8262 $as_echo "$ac_res" >&6; }
8263 if eval test x\$$cachevar = xyes; then
8264 CXX="$CXX $switch"
8265 if test -n "$CXXCPP" ; then
8266 CXXCPP="$CXXCPP $switch"
8267 fi
8268 ac_success=yes
8269 break
8270 fi
8271 done
8272 fi
8273
8274 if test x$ac_success = xno; then
8275 for alternative in ${ax_cxx_compile_alternatives}; do
8276 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8277 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
8279 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
8280 if eval \${$cachevar+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 ac_save_CXX="$CXX"
8284 CXX="$CXX $switch"
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287
8288
8289 // If the compiler admits that it is not ready for C++11, why torture it?
8290 // Hopefully, this will speed up the test.
8291
8292 #ifndef __cplusplus
8293
8294 #error "This is not a C++ compiler"
8295
8296 #elif __cplusplus < 201103L
8297
8298 #error "This is not a C++11 compiler"
8299
8300 #else
8301
8302 namespace cxx11
8303 {
8304
8305 namespace test_static_assert
8306 {
8307
8308 template <typename T>
8309 struct check
8310 {
8311 static_assert(sizeof(int) <= sizeof(T), "not big enough");
8312 };
8313
8314 }
8315
8316 namespace test_final_override
8317 {
8318
8319 struct Base
8320 {
8321 virtual ~Base() {}
8322 virtual void f() {}
8323 };
8324
8325 struct Derived : public Base
8326 {
8327 virtual ~Derived() override {}
8328 virtual void f() override {}
8329 };
8330
8331 }
8332
8333 namespace test_double_right_angle_brackets
8334 {
8335
8336 template < typename T >
8337 struct check {};
8338
8339 typedef check<void> single_type;
8340 typedef check<check<void>> double_type;
8341 typedef check<check<check<void>>> triple_type;
8342 typedef check<check<check<check<void>>>> quadruple_type;
8343
8344 }
8345
8346 namespace test_decltype
8347 {
8348
8349 int
8350 f()
8351 {
8352 int a = 1;
8353 decltype(a) b = 2;
8354 return a + b;
8355 }
8356
8357 }
8358
8359 namespace test_type_deduction
8360 {
8361
8362 template < typename T1, typename T2 >
8363 struct is_same
8364 {
8365 static const bool value = false;
8366 };
8367
8368 template < typename T >
8369 struct is_same<T, T>
8370 {
8371 static const bool value = true;
8372 };
8373
8374 template < typename T1, typename T2 >
8375 auto
8376 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8377 {
8378 return a1 + a2;
8379 }
8380
8381 int
8382 test(const int c, volatile int v)
8383 {
8384 static_assert(is_same<int, decltype(0)>::value == true, "");
8385 static_assert(is_same<int, decltype(c)>::value == false, "");
8386 static_assert(is_same<int, decltype(v)>::value == false, "");
8387 auto ac = c;
8388 auto av = v;
8389 auto sumi = ac + av + 'x';
8390 auto sumf = ac + av + 1.0;
8391 static_assert(is_same<int, decltype(ac)>::value == true, "");
8392 static_assert(is_same<int, decltype(av)>::value == true, "");
8393 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8394 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8395 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8396 return (sumf > 0.0) ? sumi : add(c, v);
8397 }
8398
8399 }
8400
8401 namespace test_noexcept
8402 {
8403
8404 int f() { return 0; }
8405 int g() noexcept { return 0; }
8406
8407 static_assert(noexcept(f()) == false, "");
8408 static_assert(noexcept(g()) == true, "");
8409
8410 }
8411
8412 namespace test_constexpr
8413 {
8414
8415 template < typename CharT >
8416 unsigned long constexpr
8417 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8418 {
8419 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8420 }
8421
8422 template < typename CharT >
8423 unsigned long constexpr
8424 strlen_c(const CharT *const s) noexcept
8425 {
8426 return strlen_c_r(s, 0UL);
8427 }
8428
8429 static_assert(strlen_c("") == 0UL, "");
8430 static_assert(strlen_c("1") == 1UL, "");
8431 static_assert(strlen_c("example") == 7UL, "");
8432 static_assert(strlen_c("another\0example") == 7UL, "");
8433
8434 }
8435
8436 namespace test_rvalue_references
8437 {
8438
8439 template < int N >
8440 struct answer
8441 {
8442 static constexpr int value = N;
8443 };
8444
8445 answer<1> f(int&) { return answer<1>(); }
8446 answer<2> f(const int&) { return answer<2>(); }
8447 answer<3> f(int&&) { return answer<3>(); }
8448
8449 void
8450 test()
8451 {
8452 int i = 0;
8453 const int c = 0;
8454 static_assert(decltype(f(i))::value == 1, "");
8455 static_assert(decltype(f(c))::value == 2, "");
8456 static_assert(decltype(f(0))::value == 3, "");
8457 }
8458
8459 }
8460
8461 namespace test_uniform_initialization
8462 {
8463
8464 struct test
8465 {
8466 static const int zero {};
8467 static const int one {1};
8468 };
8469
8470 static_assert(test::zero == 0, "");
8471 static_assert(test::one == 1, "");
8472
8473 }
8474
8475 namespace test_lambdas
8476 {
8477
8478 void
8479 test1()
8480 {
8481 auto lambda1 = [](){};
8482 auto lambda2 = lambda1;
8483 lambda1();
8484 lambda2();
8485 }
8486
8487 int
8488 test2()
8489 {
8490 auto a = [](int i, int j){ return i + j; }(1, 2);
8491 auto b = []() -> int { return '0'; }();
8492 auto c = [=](){ return a + b; }();
8493 auto d = [&](){ return c; }();
8494 auto e = [a, &b](int x) mutable {
8495 const auto identity = [](int y){ return y; };
8496 for (auto i = 0; i < a; ++i)
8497 a += b--;
8498 return x + identity(a + b);
8499 }(0);
8500 return a + b + c + d + e;
8501 }
8502
8503 int
8504 test3()
8505 {
8506 const auto nullary = [](){ return 0; };
8507 const auto unary = [](int x){ return x; };
8508 using nullary_t = decltype(nullary);
8509 using unary_t = decltype(unary);
8510 const auto higher1st = [](nullary_t f){ return f(); };
8511 const auto higher2nd = [unary](nullary_t f1){
8512 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8513 };
8514 return higher1st(nullary) + higher2nd(nullary)(unary);
8515 }
8516
8517 }
8518
8519 namespace test_variadic_templates
8520 {
8521
8522 template <int...>
8523 struct sum;
8524
8525 template <int N0, int... N1toN>
8526 struct sum<N0, N1toN...>
8527 {
8528 static constexpr auto value = N0 + sum<N1toN...>::value;
8529 };
8530
8531 template <>
8532 struct sum<>
8533 {
8534 static constexpr auto value = 0;
8535 };
8536
8537 static_assert(sum<>::value == 0, "");
8538 static_assert(sum<1>::value == 1, "");
8539 static_assert(sum<23>::value == 23, "");
8540 static_assert(sum<1, 2>::value == 3, "");
8541 static_assert(sum<5, 5, 11>::value == 21, "");
8542 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8543
8544 }
8545
8546 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8547 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8548 // because of this.
8549 namespace test_template_alias_sfinae
8550 {
8551
8552 struct foo {};
8553
8554 template<typename T>
8555 using member = typename T::member_type;
8556
8557 template<typename T>
8558 void func(...) {}
8559
8560 template<typename T>
8561 void func(member<T>*) {}
8562
8563 void test();
8564
8565 void test() { func<foo>(0); }
8566
8567 }
8568
8569 } // namespace cxx11
8570
8571 #endif // __cplusplus >= 201103L
8572
8573
8574
8575
8576 // If the compiler admits that it is not ready for C++14, why torture it?
8577 // Hopefully, this will speed up the test.
8578
8579 #ifndef __cplusplus
8580
8581 #error "This is not a C++ compiler"
8582
8583 #elif __cplusplus < 201402L
8584
8585 #error "This is not a C++14 compiler"
8586
8587 #else
8588
8589 namespace cxx14
8590 {
8591
8592 namespace test_polymorphic_lambdas
8593 {
8594
8595 int
8596 test()
8597 {
8598 const auto lambda = [](auto&&... args){
8599 const auto istiny = [](auto x){
8600 return (sizeof(x) == 1UL) ? 1 : 0;
8601 };
8602 const int aretiny[] = { istiny(args)... };
8603 return aretiny[0];
8604 };
8605 return lambda(1, 1L, 1.0f, '1');
8606 }
8607
8608 }
8609
8610 namespace test_binary_literals
8611 {
8612
8613 constexpr auto ivii = 0b0000000000101010;
8614 static_assert(ivii == 42, "wrong value");
8615
8616 }
8617
8618 namespace test_generalized_constexpr
8619 {
8620
8621 template < typename CharT >
8622 constexpr unsigned long
8623 strlen_c(const CharT *const s) noexcept
8624 {
8625 auto length = 0UL;
8626 for (auto p = s; *p; ++p)
8627 ++length;
8628 return length;
8629 }
8630
8631 static_assert(strlen_c("") == 0UL, "");
8632 static_assert(strlen_c("x") == 1UL, "");
8633 static_assert(strlen_c("test") == 4UL, "");
8634 static_assert(strlen_c("another\0test") == 7UL, "");
8635
8636 }
8637
8638 namespace test_lambda_init_capture
8639 {
8640
8641 int
8642 test()
8643 {
8644 auto x = 0;
8645 const auto lambda1 = [a = x](int b){ return a + b; };
8646 const auto lambda2 = [a = lambda1(x)](){ return a; };
8647 return lambda2();
8648 }
8649
8650 }
8651
8652 namespace test_digit_separators
8653 {
8654
8655 constexpr auto ten_million = 100'000'000;
8656 static_assert(ten_million == 100000000, "");
8657
8658 }
8659
8660 namespace test_return_type_deduction
8661 {
8662
8663 auto f(int& x) { return x; }
8664 decltype(auto) g(int& x) { return x; }
8665
8666 template < typename T1, typename T2 >
8667 struct is_same
8668 {
8669 static constexpr auto value = false;
8670 };
8671
8672 template < typename T >
8673 struct is_same<T, T>
8674 {
8675 static constexpr auto value = true;
8676 };
8677
8678 int
8679 test()
8680 {
8681 auto x = 0;
8682 static_assert(is_same<int, decltype(f(x))>::value, "");
8683 static_assert(is_same<int&, decltype(g(x))>::value, "");
8684 return x;
8685 }
8686
8687 }
8688
8689 } // namespace cxx14
8690
8691 #endif // __cplusplus >= 201402L
8692
8693
8694
8695 _ACEOF
8696 if ac_fn_cxx_try_compile "$LINENO"; then :
8697 eval $cachevar=yes
8698 else
8699 eval $cachevar=no
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 CXX="$ac_save_CXX"
8703 fi
8704 eval ac_res=\$$cachevar
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8706 $as_echo "$ac_res" >&6; }
8707 if eval test x\$$cachevar = xyes; then
8708 CXX="$CXX $switch"
8709 if test -n "$CXXCPP" ; then
8710 CXXCPP="$CXXCPP $switch"
8711 fi
8712 ac_success=yes
8713 break
8714 fi
8715 done
8716 if test x$ac_success = xyes; then
8717 break
8718 fi
8719 done
8720 fi
8721 CXX_FOR_BUILD="$CXX"
8722 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8723 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8724 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8725 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8726 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8727 ac_ext=c
8728 ac_cpp='$CPP $CPPFLAGS'
8729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8732
8733 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8734 if test x$ac_success = xno; then
8735 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
8736 fi
8737 fi
8738 if test x$ac_success = xno; then
8739 HAVE_CXX14_FOR_BUILD=0
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
8741 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
8742 else
8743 HAVE_CXX14_FOR_BUILD=1
8744
8745 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8746
8747 fi
8748
8749
8750 fi
8751 fi
8752
8753 # Check whether --enable-pgo-build was given.
8754 if test "${enable_pgo_build+set}" = set; then :
8755 enableval=$enable_pgo_build; enable_pgo_build=$enableval
8756 else
8757 enable_pgo_build=no
8758 fi
8759
8760
8761 # Issue errors and warnings for invalid/strange PGO build combinations.
8762 case "$have_compiler:$host:$target:$enable_pgo_build" in
8763 *:*:*:no) ;;
8764
8765 # Allow the PGO build only if we aren't building a compiler and
8766 # we are in a native configuration.
8767 no:$build:$build:yes | no:$build:$build:lto) ;;
8768
8769 # Disallow the PGO bootstrap if we are building a compiler.
8770 yes:*:*:yes | yes:*:*:lto)
8771 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8772
8773 *)
8774 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
8775 ;;
8776 esac
8777
8778 if test "$enable_pgo_build" != "no"; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8780 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8781 old_CFLAGS="$CFLAGS"
8782 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
8783 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
8784
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int foo;
8788 _ACEOF
8789 if ac_fn_c_try_compile "$LINENO"; then :
8790
8791 else
8792 PGO_BUILD_GEN_CFLAGS=
8793 fi
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 CFLAGS="$old_CFLAGS"
8796 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8798 $as_echo "yes" >&6; }
8799 PGO_BUILD_USE_CFLAGS="-fprofile-use"
8800 else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8804 fi
8805
8806 if test "$enable_pgo_build" = "lto"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8808 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8809 old_CFLAGS="$CFLAGS"
8810 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
8811 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 int foo;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817
8818 else
8819 PGO_BUILD_LTO_CFLAGS=
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 CFLAGS="$old_CFLAGS"
8823 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825 $as_echo "yes" >&6; }
8826 else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828 $as_echo "no" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8830 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8831 fi
8832 fi
8833 fi
8834
8835
8836
8837
8838 # Used for setting $lt_cv_objdir
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8840 $as_echo_n "checking for objdir... " >&6; }
8841 if ${lt_cv_objdir+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 rm -f .libs 2>/dev/null
8845 mkdir .libs 2>/dev/null
8846 if test -d .libs; then
8847 lt_cv_objdir=.libs
8848 else
8849 # MS-DOS does not allow filenames that begin with a dot.
8850 lt_cv_objdir=_libs
8851 fi
8852 rmdir .libs 2>/dev/null
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8855 $as_echo "$lt_cv_objdir" >&6; }
8856 objdir=$lt_cv_objdir
8857
8858
8859
8860
8861
8862 cat >>confdefs.h <<_ACEOF
8863 #define LT_OBJDIR "$lt_cv_objdir/"
8864 _ACEOF
8865
8866
8867
8868 # Check for GMP, MPFR and MPC
8869 require_gmp=no
8870 require_mpc=no
8871 if test -d ${srcdir}/gcc ; then
8872 require_gmp=yes
8873 require_mpc=yes
8874 fi
8875 if test -d ${srcdir}/gdb ; then
8876 if test "x$enable_gdb" != xno; then
8877 require_gmp=yes
8878 fi
8879 fi
8880
8881 gmplibs="-lmpfr -lgmp"
8882 if test x"$require_mpc" = "xyes" ; then
8883 gmplibs="-lmpc $gmplibs"
8884 fi
8885 gmpinc=
8886 have_gmp=no
8887
8888 # Specify a location for mpc
8889 # check for this first so it ends up on the link line before mpfr.
8890
8891 # Check whether --with-mpc was given.
8892 if test "${with_mpc+set}" = set; then :
8893 withval=$with_mpc;
8894 fi
8895
8896
8897 # Check whether --with-mpc-include was given.
8898 if test "${with_mpc_include+set}" = set; then :
8899 withval=$with_mpc_include;
8900 fi
8901
8902
8903 # Check whether --with-mpc-lib was given.
8904 if test "${with_mpc_lib+set}" = set; then :
8905 withval=$with_mpc_lib;
8906 fi
8907
8908
8909 if test "x$with_mpc" != x; then
8910 gmplibs="-L$with_mpc/lib $gmplibs"
8911 gmpinc="-I$with_mpc/include $gmpinc"
8912 fi
8913 if test "x$with_mpc_include" != x; then
8914 gmpinc="-I$with_mpc_include $gmpinc"
8915 fi
8916 if test "x$with_mpc_lib" != x; then
8917 gmplibs="-L$with_mpc_lib $gmplibs"
8918 fi
8919 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8920 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8921 gmpinc='-I$$s/mpc/src '"$gmpinc"
8922 # Do not test the mpc version. Assume that it is sufficient, since
8923 # it is in the source tree, and the library has not been built yet
8924 # but it would be included on the link line in the version check below
8925 # hence making the test fail.
8926 have_gmp=yes
8927 fi
8928
8929 # Specify a location for mpfr
8930 # check for this first so it ends up on the link line before gmp.
8931
8932 # Check whether --with-mpfr was given.
8933 if test "${with_mpfr+set}" = set; then :
8934 withval=$with_mpfr;
8935 fi
8936
8937
8938 # Check whether --with-mpfr-include was given.
8939 if test "${with_mpfr_include+set}" = set; then :
8940 withval=$with_mpfr_include;
8941 fi
8942
8943
8944 # Check whether --with-mpfr-lib was given.
8945 if test "${with_mpfr_lib+set}" = set; then :
8946 withval=$with_mpfr_lib;
8947 fi
8948
8949
8950 if test "x$with_mpfr" != x; then
8951 gmplibs="-L$with_mpfr/lib $gmplibs"
8952 gmpinc="-I$with_mpfr/include $gmpinc"
8953 fi
8954 if test "x$with_mpfr_include" != x; then
8955 gmpinc="-I$with_mpfr_include $gmpinc"
8956 fi
8957 if test "x$with_mpfr_lib" != x; then
8958 gmplibs="-L$with_mpfr_lib $gmplibs"
8959 fi
8960 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8961 # MPFR v3.1.0 moved the sources into a src sub-directory.
8962 if ! test -d ${srcdir}/mpfr/src; then
8963 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8964 fi
8965 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8966 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8967 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8968 # Do not test the mpfr version. Assume that it is sufficient, since
8969 # it is in the source tree, and the library has not been built yet
8970 # but it would be included on the link line in the version check below
8971 # hence making the test fail.
8972 have_gmp=yes
8973 fi
8974
8975 # Specify a location for gmp
8976
8977 # Check whether --with-gmp was given.
8978 if test "${with_gmp+set}" = set; then :
8979 withval=$with_gmp;
8980 fi
8981
8982
8983 # Check whether --with-gmp-include was given.
8984 if test "${with_gmp_include+set}" = set; then :
8985 withval=$with_gmp_include;
8986 fi
8987
8988
8989 # Check whether --with-gmp-lib was given.
8990 if test "${with_gmp_lib+set}" = set; then :
8991 withval=$with_gmp_lib;
8992 fi
8993
8994
8995
8996 if test "x$with_gmp" != x; then
8997 gmplibs="-L$with_gmp/lib $gmplibs"
8998 gmpinc="-I$with_gmp/include $gmpinc"
8999 fi
9000 if test "x$with_gmp_include" != x; then
9001 gmpinc="-I$with_gmp_include $gmpinc"
9002 fi
9003 if test "x$with_gmp_lib" != x; then
9004 gmplibs="-L$with_gmp_lib $gmplibs"
9005 fi
9006 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
9007 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
9008 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9009 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9010 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
9011 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
9012 # Do not test the gmp version. Assume that it is sufficient, since
9013 # it is in the source tree, and the library has not been built yet
9014 # but it would be included on the link line in the version check below
9015 # hence making the test fail.
9016 have_gmp=yes
9017 fi
9018
9019 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
9020 have_gmp=yes
9021 saved_CFLAGS="$CFLAGS"
9022 CFLAGS="$CFLAGS $gmpinc"
9023 # Check for the recommended and required versions of GMP.
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
9025 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028 #include "gmp.h"
9029 int
9030 main ()
9031 {
9032
9033 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9034 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9035 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
9036 choke me
9037 #endif
9038
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 if ac_fn_c_try_compile "$LINENO"; then :
9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 #include <gmp.h>
9047 int
9048 main ()
9049 {
9050
9051 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
9052 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
9053 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
9054 choke me
9055 #endif
9056
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9063 $as_echo "yes" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9066 $as_echo "buggy but acceptable" >&6; }
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }; have_gmp=no
9072 fi
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074
9075 # If we have GMP, check the MPFR version.
9076 if test x"$have_gmp" = xyes; then
9077 # Check for the recommended and required versions of MPFR.
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
9079 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 #include <gmp.h>
9083 #include <mpfr.h>
9084 int
9085 main ()
9086 {
9087
9088 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9089 choke me
9090 #endif
9091
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 #include <gmp.h>
9100 #include <mpfr.h>
9101 int
9102 main ()
9103 {
9104
9105 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9106 choke me
9107 #endif
9108
9109 ;
9110 return 0;
9111 }
9112 _ACEOF
9113 if ac_fn_c_try_compile "$LINENO"; then :
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9115 $as_echo "yes" >&6; }
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9118 $as_echo "buggy but acceptable" >&6; }
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 else
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }; have_gmp=no
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 fi
9127
9128 # Check for the MPC header version.
9129 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
9130 # Check for the recommended and required versions of MPC.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9132 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <mpc.h>
9136 int
9137 main ()
9138 {
9139
9140 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9141 choke me
9142 #endif
9143
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 if ac_fn_c_try_compile "$LINENO"; then :
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #include <mpc.h>
9152 int
9153 main ()
9154 {
9155
9156 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9157 choke me
9158 #endif
9159
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"; then :
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9166 $as_echo "yes" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9169 $as_echo "buggy but acceptable" >&6; }
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }; have_gmp=no
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 fi
9178
9179 # Now check the MPFR library.
9180 if test x"$have_gmp" = xyes; then
9181 saved_LIBS="$LIBS"
9182 LIBS="$LIBS $gmplibs"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9184 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #include <mpfr.h>
9188 int
9189 main ()
9190 {
9191
9192 mpfr_t n;
9193 mpfr_t x;
9194 int t;
9195 mpfr_init (n);
9196 mpfr_init (x);
9197 mpfr_atan2 (n, n, x, MPFR_RNDN);
9198 mpfr_erfc (n, x, MPFR_RNDN);
9199 mpfr_subnormalize (x, t, MPFR_RNDN);
9200 mpfr_clear(n);
9201 mpfr_clear(x);
9202
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9209 $as_echo "yes" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }; have_gmp=no
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LIBS="$saved_LIBS"
9217 fi
9218
9219 # Now check the MPC library
9220 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
9221 saved_LIBS="$LIBS"
9222 LIBS="$LIBS $gmplibs"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9224 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 #include <mpc.h>
9228 int
9229 main ()
9230 {
9231
9232 mpc_t c;
9233 mpc_init2 (c, 53);
9234 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9235 mpc_cosh (c, c, MPC_RNDNN);
9236 mpc_pow (c, c, c, MPC_RNDNN);
9237 mpc_acosh (c, c, MPC_RNDNN);
9238 mpc_clear (c);
9239
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9246 $as_echo "yes" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }; have_gmp=no
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS="$saved_LIBS"
9254 fi
9255
9256 CFLAGS="$saved_CFLAGS"
9257
9258 # The library versions listed in the error message below should match
9259 # the HARD-minimums enforced above.
9260 if test x$have_gmp != xyes; then
9261 if test -d ${srcdir}/gcc ; then
9262 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9263 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9264 their locations. Source code for these libraries can be found at
9265 their respective hosting sites as well as at
9266 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9267 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9268 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9269 make sure that you have installed both the libraries and the header
9270 files. They may be located in separate packages." "$LINENO" 5
9271 else
9272 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9273 Try the --with-gmp and/or --with-mpfr options to specify
9274 their locations. If you obtained GMP and/or MPFR from a vendor
9275 distribution package, make sure that you have installed both the libraries
9276 and the header files. They may be located in separate packages." "$LINENO" 5
9277 fi
9278 fi
9279 fi
9280
9281 # Flags needed for both GMP, MPFR and/or MPC.
9282
9283
9284
9285
9286
9287
9288
9289 # Libraries to use for stage1 or when not bootstrapping.
9290
9291 # Check whether --with-stage1-libs was given.
9292 if test "${with_stage1_libs+set}" = set; then :
9293 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9294 stage1_libs=
9295 else
9296 stage1_libs=$withval
9297 fi
9298 else
9299 stage1_libs=
9300 fi
9301
9302
9303
9304 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9305 # default is yes if gcc is being built; no otherwise. The reason for
9306 # this default is that gdb is sometimes linked against GNU Source
9307 # Highlight, which is a shared library that uses C++ exceptions. In
9308 # this case, -static-libstdc++ will cause crashes.
9309
9310 # Check whether --with-static-standard-libraries was given.
9311 if test "${with_static_standard_libraries+set}" = set; then :
9312 withval=$with_static_standard_libraries;
9313 else
9314 with_static_standard_libraries=auto
9315 fi
9316
9317 if test "$with_static_standard_libraries" = auto; then
9318 with_static_standard_libraries=$have_compiler
9319 fi
9320
9321 # Linker flags to use for stage1 or when not bootstrapping.
9322
9323 # Check whether --with-stage1-ldflags was given.
9324 if test "${with_stage1_ldflags+set}" = set; then :
9325 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9326 stage1_ldflags=
9327 else
9328 stage1_ldflags=$withval
9329 fi
9330 else
9331 stage1_ldflags=
9332 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9333 # if supported. But if the user explicitly specified the libraries to use,
9334 # trust that they are doing what they want.
9335 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9336 -a "$have_static_libs" = yes; then
9337 stage1_ldflags="-static-libstdc++ -static-libgcc"
9338 fi
9339 fi
9340
9341
9342
9343 # Libraries to use for stage2 and later builds.
9344
9345 # Check whether --with-boot-libs was given.
9346 if test "${with_boot_libs+set}" = set; then :
9347 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9348 poststage1_libs=
9349 else
9350 poststage1_libs=$withval
9351 fi
9352 else
9353 poststage1_libs=
9354 fi
9355
9356
9357
9358 # Linker flags to use for stage2 and later builds.
9359
9360 # Check whether --with-boot-ldflags was given.
9361 if test "${with_boot_ldflags+set}" = set; then :
9362 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9363 poststage1_ldflags=
9364 else
9365 poststage1_ldflags=$withval
9366 fi
9367 else
9368 poststage1_ldflags=
9369 # In stages 2 and 3, default to linking libstdc++ and libgcc
9370 # statically. But if the user explicitly specified the libraries to
9371 # use, trust that they are doing what they want.
9372 if test "$poststage1_libs" = ""; then
9373 poststage1_ldflags="-static-libstdc++ -static-libgcc"
9374 fi
9375 fi
9376
9377 case $target in
9378 *-darwin2* | *-darwin1[56789]*)
9379 # For these versions, we default to using embedded rpaths.
9380 if test "x$enable_darwin_at_rpath" != "xno"; then
9381 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9382 fi
9383 ;;
9384 *-darwin*)
9385 # For these versions, we only use embedded rpaths on demand.
9386 if test "x$enable_darwin_at_rpath" = "xyes"; then
9387 poststage1_ldflags="$poststage1_ldflags -nodefaultrpaths"
9388 fi
9389 ;;
9390 esac
9391
9392
9393 # GCC GRAPHITE dependency isl.
9394 # Basic setup is inlined here, actual checks are in config/isl.m4
9395
9396
9397 # Check whether --with-isl was given.
9398 if test "${with_isl+set}" = set; then :
9399 withval=$with_isl;
9400 fi
9401
9402
9403 # Treat --without-isl as a request to disable
9404 # GRAPHITE support and skip all following checks.
9405 if test "x$with_isl" != "xno"; then
9406 # Check for isl
9407
9408
9409 # Check whether --with-isl-include was given.
9410 if test "${with_isl_include+set}" = set; then :
9411 withval=$with_isl_include;
9412 fi
9413
9414
9415 # Check whether --with-isl-lib was given.
9416 if test "${with_isl_lib+set}" = set; then :
9417 withval=$with_isl_lib;
9418 fi
9419
9420
9421 # Check whether --enable-isl-version-check was given.
9422 if test "${enable_isl_version_check+set}" = set; then :
9423 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
9424 else
9425 ENABLE_ISL_CHECK=yes
9426 fi
9427
9428
9429 # Initialize isllibs and islinc.
9430 case $with_isl in
9431 no)
9432 isllibs=
9433 islinc=
9434 ;;
9435 "" | yes)
9436 ;;
9437 *)
9438 isllibs="-L$with_isl/lib"
9439 islinc="-I$with_isl/include"
9440 ;;
9441 esac
9442 if test "x${with_isl_include}" != x ; then
9443 islinc="-I$with_isl_include"
9444 fi
9445 if test "x${with_isl_lib}" != x; then
9446 isllibs="-L$with_isl_lib"
9447 fi
9448 if test "x${islinc}" = x && test "x${isllibs}" = x \
9449 && test -d ${srcdir}/isl; then
9450 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9451 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9452 ENABLE_ISL_CHECK=no
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9454 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9455 fi
9456
9457 isllibs="${isllibs} -lisl"
9458
9459
9460
9461 if test "${ENABLE_ISL_CHECK}" = yes ; then
9462 _isl_saved_CFLAGS=$CFLAGS
9463 _isl_saved_LDFLAGS=$LDFLAGS
9464 _isl_saved_LIBS=$LIBS
9465
9466 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9467 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9468 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9469
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9471 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 #include <isl/schedule.h>
9475 int
9476 main ()
9477 {
9478 isl_options_set_schedule_serialize_sccs (NULL, 0);
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484 gcc_cv_isl=yes
9485 else
9486 gcc_cv_isl=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9491 $as_echo "$gcc_cv_isl" >&6; }
9492
9493 if test "${gcc_cv_isl}" = no ; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9495 $as_echo "required isl version is 0.15 or later" >&6; }
9496 fi
9497
9498 CFLAGS=$_isl_saved_CFLAGS
9499 LDFLAGS=$_isl_saved_LDFLAGS
9500 LIBS=$_isl_saved_LIBS
9501 fi
9502
9503
9504
9505
9506
9507
9508 if test "x${with_isl}" = xno; then
9509 graphite_requested=no
9510 elif test "x${with_isl}" != x \
9511 || test "x${with_isl_include}" != x \
9512 || test "x${with_isl_lib}" != x ; then
9513 graphite_requested=yes
9514 else
9515 graphite_requested=no
9516 fi
9517
9518
9519
9520 if test "${gcc_cv_isl}" = no ; then
9521 isllibs=
9522 islinc=
9523 fi
9524
9525 if test "${graphite_requested}" = yes \
9526 && test "x${isllibs}" = x \
9527 && test "x${islinc}" = x ; then
9528
9529 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
9530 fi
9531
9532
9533 fi
9534
9535 # If the isl check failed, disable builds of in-tree variant of isl
9536 if test "x$with_isl" = xno ||
9537 test "x$gcc_cv_isl" = xno; then
9538 noconfigdirs="$noconfigdirs isl"
9539 islinc=
9540 fi
9541
9542
9543
9544
9545 # Check for LTO support.
9546 # Check whether --enable-lto was given.
9547 if test "${enable_lto+set}" = set; then :
9548 enableval=$enable_lto; enable_lto=$enableval
9549 else
9550 enable_lto=yes; default_enable_lto=yes
9551 fi
9552
9553
9554
9555
9556
9557 target_elf=no
9558 case $target in
9559 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
9560 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9561 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
9562 nvptx-*-none)
9563 target_elf=no
9564 ;;
9565 *)
9566 target_elf=yes
9567 ;;
9568 esac
9569
9570 if test $target_elf = yes; then :
9571 # ELF platforms build the lto-plugin always.
9572 build_lto_plugin=yes
9573
9574 else
9575 if test x"$default_enable_lto" = x"yes" ; then
9576 case $target in
9577 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
9578 # On other non-ELF platforms, LTO has yet to be validated.
9579 *) enable_lto=no ;;
9580 esac
9581 else
9582 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9583 # It would also be nice to check the binutils support, but we don't
9584 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9585 # warn during gcc/ subconfigure; unless you're bootstrapping with
9586 # -flto it won't be needed until after installation anyway.
9587 case $target in
9588 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9589 *) if test x"$enable_lto" = x"yes"; then
9590 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9591 fi
9592 ;;
9593 esac
9594 fi
9595 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9596 # Build it unless LTO was explicitly disabled.
9597 case $target in
9598 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
9599 *) ;;
9600 esac
9601
9602 fi
9603
9604
9605 # Check whether --enable-linker-plugin-configure-flags was given.
9606 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9607 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
9608 else
9609 extra_linker_plugin_configure_flags=
9610 fi
9611
9612
9613 # Check whether --enable-linker-plugin-flags was given.
9614 if test "${enable_linker_plugin_flags+set}" = set; then :
9615 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
9616 else
9617 extra_linker_plugin_flags=
9618 fi
9619
9620
9621
9622 # Handle --enable-host-pie
9623 # If host PIE executables are the default (or must be forced on) for some host,
9624 # we must pass that configuration to the gcc directory.
9625 gcc_host_pie=
9626 # Check whether --enable-host-pie was given.
9627 if test "${enable_host_pie+set}" = set; then :
9628 enableval=$enable_host_pie; host_pie=$enableval
9629 case $host in
9630 *-*-darwin2*)
9631 if test x$host_pie != xyes ; then
9632 # for Darwin20+ this is required.
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9634 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9635 host_pie=yes
9636 gcc_host_pie=--enable-host-pie
9637 fi ;;
9638 *) ;;
9639 esac
9640 else
9641 case $host in
9642 *-*-darwin2*)
9643 # Default to PIE (mandatory for aarch64).
9644 host_pie=yes
9645 gcc_host_pie=--enable-host-pie
9646 ;;
9647 *) host_pie=no ;;
9648 esac
9649 fi
9650
9651
9652
9653
9654
9655 # Enable --enable-host-shared.
9656 # Checked early to determine whether jit is an 'all' language
9657 # Check whether --enable-host-shared was given.
9658 if test "${enable_host_shared+set}" = set; then :
9659 enableval=$enable_host_shared; host_shared=$enableval
9660 case $host in
9661 x86_64-*-darwin* | aarch64-*-darwin*)
9662 if test x$host_shared != xyes ; then
9663 # PIC is the default, and actually cannot be switched off.
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9665 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9666 host_shared=yes
9667 fi ;;
9668 *-*-darwin*)
9669 if test x$host_pie = xyes -a x$host_shared != xyes ; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9671 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9672 host_shared=yes
9673 fi ;;
9674 *) ;;
9675 esac
9676 else
9677 case $host in
9678 # 64B x86_64 and Aarch64 Darwin default to PIC.
9679 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
9680 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9681 *-*-darwin*) host_shared=$host_pie ;;
9682 *) host_shared=no;;
9683 esac
9684 fi
9685
9686
9687
9688
9689 if test x$host_shared = xyes; then
9690 case $host in
9691 *-*-darwin*)
9692 # Since host shared is the default for 64b Darwin, and also enabled for
9693 # host_pie, ensure that we present the PIE flag when host_pie is active.
9694 if test x$host_pie = xyes; then
9695 PICFLAG=-fPIE
9696 fi
9697 ;;
9698 *)
9699 PICFLAG=-fPIC
9700 ;;
9701 esac
9702 elif test x$host_pie = xyes; then
9703 PICFLAG=-fPIE
9704 else
9705 PICFLAG=
9706 fi
9707
9708
9709
9710
9711 # Check for libgdiagnostics support.
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9713 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9714 # Check whether --enable-libgdiagnostics was given.
9715 if test "${enable_libgdiagnostics+set}" = set; then :
9716 enableval=$enable_libgdiagnostics; enable_libgdiagnostics=$enableval
9717 else
9718 enable_libgdiagnostics=no
9719 fi
9720
9721
9722 if test x$enable_libgdiagnostics = xyes; then
9723 # Disable libgdiagnostics if -enable-host-shared not specified
9724 # but not if building for Mingw. All code in Windows
9725 # is position independent code (PIC).
9726 case $target in
9727 *mingw*) ;;
9728 *)
9729 if test x$host_shared != xyes; then
9730 as_fn_error $? "
9731 Enabling libgdiagnostics requires --enable-host-shared.
9732
9733 --enable-host-shared typically slows the rest of the compiler down by
9734 a few %, so you must explicitly enable it.
9735
9736 If you want to build both libgdiagnostics and the regular compiler, it is often
9737 best to do this via two separate configure/builds, in separate
9738 directories, to avoid imposing the performance cost of
9739 --enable-host-shared on the regular compiler." "$LINENO" 5
9740 fi
9741 ;;
9742 esac
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9745 $as_echo "$enable_libgdiagnostics" >&6; }
9746
9747
9748
9749 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9750 # default, so we check for them here
9751 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9752 # build of the Rust frontend in case a dep is missing.
9753 missing_rust_dynlibs=none
9754
9755 save_LIBS="$LIBS"
9756 LIBS=
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9758 $as_echo_n "checking for library containing dlopen... " >&6; }
9759 if ${ac_cv_search_dlopen+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 ac_func_search_save_LIBS=$LIBS
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767 Use char because int might match the return type of a GCC
9768 builtin and then its argument prototype would still apply. */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char dlopen ();
9773 int
9774 main ()
9775 {
9776 return dlopen ();
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 for ac_lib in '' dl; do
9782 if test -z "$ac_lib"; then
9783 ac_res="none required"
9784 else
9785 ac_res=-l$ac_lib
9786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9787 fi
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 ac_cv_search_dlopen=$ac_res
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext
9793 if ${ac_cv_search_dlopen+:} false; then :
9794 break
9795 fi
9796 done
9797 if ${ac_cv_search_dlopen+:} false; then :
9798
9799 else
9800 ac_cv_search_dlopen=no
9801 fi
9802 rm conftest.$ac_ext
9803 LIBS=$ac_func_search_save_LIBS
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9806 $as_echo "$ac_cv_search_dlopen" >&6; }
9807 ac_res=$ac_cv_search_dlopen
9808 if test "$ac_res" != no; then :
9809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9810
9811 fi
9812
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9814 $as_echo_n "checking for library containing pthread_create... " >&6; }
9815 if ${ac_cv_search_pthread_create+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 ac_func_search_save_LIBS=$LIBS
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9821
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 char pthread_create ();
9829 int
9830 main ()
9831 {
9832 return pthread_create ();
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 for ac_lib in '' pthread; do
9838 if test -z "$ac_lib"; then
9839 ac_res="none required"
9840 else
9841 ac_res=-l$ac_lib
9842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9843 fi
9844 if ac_fn_c_try_link "$LINENO"; then :
9845 ac_cv_search_pthread_create=$ac_res
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext
9849 if ${ac_cv_search_pthread_create+:} false; then :
9850 break
9851 fi
9852 done
9853 if ${ac_cv_search_pthread_create+:} false; then :
9854
9855 else
9856 ac_cv_search_pthread_create=no
9857 fi
9858 rm conftest.$ac_ext
9859 LIBS=$ac_func_search_save_LIBS
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9862 $as_echo "$ac_cv_search_pthread_create" >&6; }
9863 ac_res=$ac_cv_search_pthread_create
9864 if test "$ac_res" != no; then :
9865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9866
9867 fi
9868
9869 CRAB1_LIBS="$LIBS"
9870 LIBS="$save_LIBS"
9871
9872 if test "$ac_cv_search_dlopen" = no; then
9873 missing_rust_dynlibs="libdl"
9874 fi
9875
9876 if test "$ac_cv_search_pthread_create" = no; then
9877 missing_rust_dynlibs="$missing_rust_dynlibs, libpthread"
9878 fi
9879
9880 CRAB1_LIBS="$CRAB1_LIBS"
9881
9882
9883 # If we are building PIC/PIE host executables, and we are building dependent
9884 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9885 # code.
9886 host_libs_picflag=
9887 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9888 host_libs_picflag='--with-pic'
9889 fi
9890
9891
9892 # By default, C and C++ are the only stage 1 languages.
9893 stage1_languages=,c,
9894
9895 # Target libraries that we bootstrap.
9896 bootstrap_target_libs=,target-libgcc,
9897
9898 # Figure out what language subdirectories are present.
9899 # Look if the user specified --enable-languages="..."; if not, use
9900 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9901 # go away some day.
9902 # NB: embedded tabs in this IF block -- do not untabify
9903 if test -d ${srcdir}/gcc; then
9904 if test x"${enable_languages+set}" != xset; then
9905 if test x"${LANGUAGES+set}" = xset; then
9906 enable_languages="${LANGUAGES}"
9907 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9908 else
9909 enable_languages=default
9910 fi
9911 else
9912 if test x"${enable_languages}" = x ||
9913 test x"${enable_languages}" = xyes;
9914 then
9915 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9916 exit 1
9917 fi
9918 fi
9919 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9920
9921 # 'f95' is the old name for the 'fortran' language. We issue a warning
9922 # and make the substitution.
9923 case ,${enable_languages}, in
9924 *,f95,*)
9925 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
9926 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9927 ;;
9928 esac
9929
9930 # If bootstrapping, C++ must be enabled.
9931 case ",$enable_languages,:$enable_bootstrap" in
9932 *,c++,*:*) ;;
9933 *:yes)
9934 if test -f ${srcdir}/gcc/cp/config-lang.in; then
9935 enable_languages="${enable_languages},c++"
9936 else
9937 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
9938 fi
9939 ;;
9940 esac
9941
9942 # First scan to see if an enabled language requires some other language.
9943 # We assume that a given config-lang.in will list all the language
9944 # front ends it requires, even if some are required indirectly.
9945 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
9946 case ${lang_frag} in
9947 ..) ;;
9948 # The odd quoting in the next line works around
9949 # an apparent bug in bash 1.12 on linux.
9950 ${srcdir}/gcc/[*]/config-lang.in) ;;
9951 *)
9952 # From the config-lang.in, get $language, $lang_requires, and
9953 # $lang_requires_boot_languages.
9954 language=
9955 lang_requires=
9956 lang_requires_boot_languages=
9957 # set srcdir during sourcing lang_frag to the gcc dir.
9958 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9959 # pollutes this shell
9960 saved_srcdir=${srcdir}
9961 srcdir=${srcdir}/gcc . ${lang_frag}
9962 srcdir=${saved_srcdir}
9963 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9964 case ,${enable_languages}, in
9965 *,$other,*) ;;
9966 *,default,*) ;;
9967 *,all,*) ;;
9968 *,$language,*)
9969 echo " \`$other' language required by \`$language'; enabling" 1>&2
9970 enable_languages="${enable_languages},${other}"
9971 ;;
9972 esac
9973 done
9974 for other in ${lang_requires_boot_languages} ; do
9975 if test "$other" != "c"; then
9976 case ,${enable_stage1_languages}, in
9977 *,$other,*) ;;
9978 *,default,*) ;;
9979 *,all,*) ;;
9980 *)
9981 case ,${enable_languages}, in
9982 *,$language,*)
9983 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9984 enable_stage1_languages="$enable_stage1_languages,${other}"
9985 ;;
9986 esac
9987 ;;
9988 esac
9989 fi
9990 done
9991 ;;
9992 esac
9993 done
9994
9995 new_enable_languages=,c,
9996
9997 # If LTO is enabled, add the LTO front end.
9998 if test "$enable_lto" = "yes" ; then
9999 case ,${enable_languages}, in
10000 *,lto,*) ;;
10001 *) enable_languages="${enable_languages},lto" ;;
10002 esac
10003 if test "${build_lto_plugin}" = "yes" ; then
10004 configdirs="$configdirs lto-plugin"
10005 fi
10006 fi
10007
10008 # If we're building an offloading compiler, add the LTO front end.
10009 if test x"$enable_as_accelerator_for" != x ; then
10010 case ,${enable_languages}, in
10011 *,lto,*) ;;
10012 *) enable_languages="${enable_languages},lto" ;;
10013 esac
10014 fi
10015
10016 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
10017 potential_languages=,c,
10018
10019 enabled_target_libs=
10020 disabled_target_libs=
10021
10022 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
10023 case ${lang_frag} in
10024 ..) ;;
10025 # The odd quoting in the next line works around
10026 # an apparent bug in bash 1.12 on linux.
10027 ${srcdir}/gcc/[*]/config-lang.in) ;;
10028 *)
10029 # From the config-lang.in, get $language, $target_libs,
10030 # $lang_dirs, $boot_language, and $build_by_default
10031 language=
10032 target_libs=
10033 lang_dirs=
10034 subdir_requires=
10035 boot_language=no
10036 build_by_default=yes
10037 # set srcdir during sourcing. See above about save & restore
10038 saved_srcdir=${srcdir}
10039 srcdir=${srcdir}/gcc . ${lang_frag}
10040 srcdir=${saved_srcdir}
10041 if test x${language} = x; then
10042 echo "${lang_frag} doesn't set \$language." 1>&2
10043 exit 1
10044 fi
10045
10046 if test "$language" = "c++"; then
10047 boot_language=yes
10048 fi
10049
10050 add_this_lang=no
10051 # C is always enabled, so no need to add it again
10052 if test "$language" != "c"; then
10053 case ,${enable_languages}, in
10054 *,${language},*)
10055 # Language was explicitly selected; include it
10056 add_this_lang=yes
10057 ;;
10058 *,all,*)
10059 # All languages are enabled
10060 add_this_lang=all
10061 ;;
10062 *,default,*)
10063 # 'default' was selected, select it if it is a default language
10064 add_this_lang=${build_by_default}
10065 ;;
10066 esac
10067 fi
10068
10069 # Disable languages that need other directories if these aren't available.
10070 for i in $subdir_requires; do
10071 test -f "$srcdir/gcc/$i/config-lang.in" && continue
10072 case ${add_this_lang} in
10073 yes)
10074 # Specifically requested language; tell them.
10075 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
10076 ;;
10077 all)
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
10079 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
10080 add_this_lang=unsupported
10081 ;;
10082 *)
10083 # Silently disable.
10084 add_this_lang=unsupported
10085 ;;
10086 esac
10087 done
10088
10089 # Disable Ada if no preexisting GNAT is available.
10090 case ${add_this_lang}:${language}:${have_gnat} in
10091 yes:ada:no)
10092 # Specifically requested language; tell them.
10093 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
10094 ;;
10095 all:ada:no)
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10097 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10098 add_this_lang=unsupported
10099 ;;
10100 *:ada:no)
10101 # Silently disable.
10102 add_this_lang=unsupported
10103 ;;
10104 esac
10105
10106 # Disable D if no preexisting GDC is available.
10107 case ${add_this_lang}:${language}:${have_gdc} in
10108 yes:d:no)
10109 # Specifically requested language; tell them.
10110 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
10111 ;;
10112 all:d:no)
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10114 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10115 add_this_lang=unsupported
10116 ;;
10117 *:d:no)
10118 # Silently disable.
10119 add_this_lang=unsupported
10120 ;;
10121 esac
10122
10123 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10124 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10125 *:rust:none)
10126 # Nothing to do - we're not missing any C libraries
10127 ;;
10128 yes:rust:*)
10129 as_fn_error $? "some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10130 add_this_lang=unsupported
10131 ;;
10132 all:rust:*)
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10134 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10135 add_this_lang=unsupported
10136 ;;
10137 *:rust:*)
10138 # Silently disable.
10139 add_this_lang=unsupported
10140 ;;
10141 esac
10142
10143 # Disable jit if -enable-host-shared not specified
10144 # but not if building for Mingw. All code in Windows
10145 # is position independent code (PIC).
10146 case $target in
10147 *mingw*) ;;
10148 *)
10149 case ${add_this_lang}:${language}:${host_shared} in
10150 yes:jit:no)
10151 # PR jit/64780: explicitly specify --enable-host-shared
10152 as_fn_error $? "
10153 Enabling language \"jit\" requires --enable-host-shared.
10154
10155 --enable-host-shared typically slows the rest of the compiler down by
10156 a few %, so you must explicitly enable it.
10157
10158 If you want to build both the jit and the regular compiler, it is often
10159 best to do this via two separate configure/builds, in separate
10160 directories, to avoid imposing the performance cost of
10161 --enable-host-shared on the regular compiler." "$LINENO" 5
10162 ;;
10163 all:jit:no)
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10165 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10166 add_this_lang=unsupported
10167 ;;
10168 *:jit:no)
10169 # Silently disable.
10170 add_this_lang=unsupported
10171 ;;
10172 esac
10173 ;;
10174 esac
10175
10176 # Pre-conditions to consider whether cargo being supported.
10177 if test x"$have_cargo" = xyes \
10178 && test x"$build" != x"$host"; then
10179 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10180 # "'cargo' should build for the host system" is resolved:
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10182 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10183 have_cargo=no
10184 else
10185 # Assume that cargo-produced object files are compatible with what
10186 # we're going to build here.
10187 :
10188 fi
10189 # Disable Rust if cargo is unavailable.
10190 case ${add_this_lang}:${language}:${have_cargo} in
10191 yes:rust:no)
10192 # Specifically requested language; tell them.
10193 as_fn_error $? "cargo is required to build $language" "$LINENO" 5
10194 ;;
10195 all:rust:no)
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10197 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10198 add_this_lang=unsupported
10199 ;;
10200 *:rust:no)
10201 # Silently disable.
10202 add_this_lang=unsupported
10203 ;;
10204 esac
10205
10206
10207 # Disable a language that is unsupported by the target.
10208 case "${add_this_lang}: $unsupported_languages " in
10209 no:*) ;;
10210 unsupported:*) ;;
10211 *:*" $language "*)
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10213 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10214 add_this_lang=unsupported
10215 ;;
10216 esac
10217
10218 case $add_this_lang in
10219 unsupported)
10220 # Remove language-dependent dirs.
10221 disabled_target_libs="$disabled_target_libs $target_libs"
10222 noconfigdirs="$noconfigdirs $lang_dirs"
10223 ;;
10224 no)
10225 # Remove language-dependent dirs; still show language as supported.
10226 disabled_target_libs="$disabled_target_libs $target_libs"
10227 noconfigdirs="$noconfigdirs $lang_dirs"
10228 potential_languages="${potential_languages}${language},"
10229 ;;
10230 all|yes)
10231 new_enable_languages="${new_enable_languages}${language},"
10232 potential_languages="${potential_languages}${language},"
10233 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
10234 enabled_target_libs="$enabled_target_libs $target_libs"
10235 case "${boot_language}:,$enable_stage1_languages," in
10236 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
10237 # Add to (comma-separated) list of stage 1 languages.
10238 case ",$stage1_languages," in
10239 *,$language,* | ,yes, | ,all,) ;;
10240 *) stage1_languages="${stage1_languages}${language}," ;;
10241 esac
10242 # We need to bootstrap any supporting libraries.
10243 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10244 ;;
10245 esac
10246 ;;
10247 esac
10248 ;;
10249 esac
10250 done
10251
10252 # Add target libraries which are only needed for disabled languages
10253 # to noconfigdirs.
10254 if test -n "$disabled_target_libs"; then
10255 for dir in $disabled_target_libs; do
10256 case " $enabled_target_libs " in
10257 *" ${dir} "*) ;;
10258 *) noconfigdirs="$noconfigdirs $dir" ;;
10259 esac
10260 done
10261 fi
10262
10263 # Check whether --enable-stage1-languages was given.
10264 if test "${enable_stage1_languages+set}" = set; then :
10265 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10266 ,no,|,,)
10267 # Set it to something that will have no effect in the loop below
10268 enable_stage1_languages=c ;;
10269 ,yes,)
10270 enable_stage1_languages=`echo $new_enable_languages | \
10271 sed -e "s/^,//" -e "s/,$//" ` ;;
10272 *,all,*)
10273 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
10274 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10275 esac
10276
10277 # Add "good" languages from enable_stage1_languages to stage1_languages,
10278 # while "bad" languages go in missing_languages. Leave no duplicates.
10279 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10280 case $potential_languages in
10281 *,$i,*)
10282 case $stage1_languages in
10283 *,$i,*) ;;
10284 *) stage1_languages="$stage1_languages$i," ;;
10285 esac ;;
10286 *)
10287 case $missing_languages in
10288 *,$i,*) ;;
10289 *) missing_languages="$missing_languages$i," ;;
10290 esac ;;
10291 esac
10292 done
10293 fi
10294
10295
10296 # Remove leading/trailing commas that were added for simplicity
10297 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10298 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10299 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10300 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10301
10302 if test "x$missing_languages" != x; then
10303 as_fn_error $? "
10304 The following requested languages could not be built: ${missing_languages}
10305 Supported languages are: ${potential_languages}" "$LINENO" 5
10306 fi
10307 if test "x$new_enable_languages" != "x$enable_languages"; then
10308 echo The following languages will be built: ${new_enable_languages}
10309 enable_languages="$new_enable_languages"
10310 fi
10311
10312
10313 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10314 fi
10315
10316 # Handle --disable-<component> generically.
10317 for dir in $configdirs $build_configdirs $target_configdirs ; do
10318 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10319 varname=`echo $dirname | sed -e s/+/_/g`
10320 if eval test x\${enable_${varname}} "=" xno ; then
10321 noconfigdirs="$noconfigdirs $dir"
10322 fi
10323 done
10324
10325 # Check for Boehm's garbage collector
10326 # Check whether --enable-objc-gc was given.
10327 if test "${enable_objc_gc+set}" = set; then :
10328 enableval=$enable_objc_gc;
10329 fi
10330
10331
10332 # Check whether --with-target-bdw-gc was given.
10333 if test "${with_target_bdw_gc+set}" = set; then :
10334 withval=$with_target_bdw_gc;
10335 fi
10336
10337
10338 # Check whether --with-target-bdw-gc-include was given.
10339 if test "${with_target_bdw_gc_include+set}" = set; then :
10340 withval=$with_target_bdw_gc_include;
10341 fi
10342
10343
10344 # Check whether --with-target-bdw-gc-lib was given.
10345 if test "${with_target_bdw_gc_lib+set}" = set; then :
10346 withval=$with_target_bdw_gc_lib;
10347 fi
10348
10349
10350 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10352 $as_echo_n "checking for bdw garbage collector... " >&6; }
10353 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10355 $as_echo "using bdw-gc in default locations" >&6; }
10356 else
10357 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
10358 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10359 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
10360 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10361 else
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10363 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10364 fi
10365 fi
10366 esac
10367
10368 # Disable libitm, libsanitizer, libvtv if we're not building C++
10369 case ,${enable_languages}, in
10370 *,c++,*)
10371 # Disable libitm, libsanitizer if we're not building libstdc++
10372 case "${noconfigdirs}" in
10373 *target-libstdc++-v3*)
10374 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
10375 ;;
10376 *) ;;
10377 esac
10378 ;;
10379 *)
10380 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10381 ;;
10382 esac
10383
10384 case ,${enable_languages}, in
10385 *,rust,*)
10386 case " ${noconfigdirs} " in
10387 *\ target-libstdc++-v3\ *)
10388 # Disable target libgrust if we're not building target libstdc++.
10389 noconfigdirs="$noconfigdirs target-libgrust"
10390 ;;
10391 *)
10392 case "${target}" in
10393 amdgcn*-*-* \
10394 | nvptx*-*-* )
10395 # Build fails in 'libgrust/libproc_macro_internal/':
10396 # sorry, unimplemented: exception handling not supported
10397 noconfigdirs="$noconfigdirs target-libgrust"
10398 ;;
10399 esac
10400 ;;
10401 esac
10402 ;;
10403 esac
10404
10405 # If gcc/ is not in the source tree then we'll not be building a
10406 # target compiler, assume in that case we don't want to build any
10407 # target libraries or tools.
10408 #
10409 # This was added primarily for the benefit for binutils-gdb who reuse
10410 # this configure script, but don't always have target tools available.
10411 if test ! -d ${srcdir}/gcc; then
10412 skipdirs="${skipdirs} ${target_configdirs}"
10413 fi
10414
10415 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10416 # $build_configdirs and $target_configdirs.
10417 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10418
10419 notsupp=""
10420 for dir in . $skipdirs $noconfigdirs ; do
10421 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10422 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10423 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10424 if test -r $srcdir/$dirname/configure ; then
10425 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10426 true
10427 else
10428 notsupp="$notsupp $dir"
10429 fi
10430 fi
10431 fi
10432 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10433 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10434 if test -r $srcdir/$dirname/configure ; then
10435 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10436 true
10437 else
10438 notsupp="$notsupp $dir"
10439 fi
10440 fi
10441 fi
10442 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10443 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10444 if test -r $srcdir/$dirname/configure ; then
10445 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10446 true
10447 else
10448 notsupp="$notsupp $dir"
10449 fi
10450 fi
10451 fi
10452 done
10453
10454 # Quietly strip out all directories which aren't configurable in this tree.
10455 # This relies on all configurable subdirectories being autoconfiscated, which
10456 # is now the case.
10457 build_configdirs_all="$build_configdirs"
10458 build_configdirs=
10459 for i in ${build_configdirs_all} ; do
10460 j=`echo $i | sed -e s/build-//g`
10461 if test -f ${srcdir}/$j/configure ; then
10462 build_configdirs="${build_configdirs} $i"
10463 fi
10464 done
10465
10466 configdirs_all="$configdirs"
10467 configdirs=
10468 for i in ${configdirs_all} ; do
10469 if test -f ${srcdir}/$i/configure ; then
10470 configdirs="${configdirs} $i"
10471 fi
10472 done
10473
10474 target_configdirs_all="$target_configdirs"
10475 target_configdirs=
10476 for i in ${target_configdirs_all} ; do
10477 j=`echo $i | sed -e s/target-//g`
10478 if test -f ${srcdir}/$j/configure ; then
10479 target_configdirs="${target_configdirs} $i"
10480 fi
10481 done
10482
10483 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10484 # so we have to add it after the preceding checks.
10485 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10486 then
10487 case " $configdirs " in
10488 *" libiberty "*)
10489 # If we can build libiberty, we can also build libiberty-linker-plugin.
10490 configdirs="$configdirs libiberty-linker-plugin"
10491 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
10492 --with-libiberty=../libiberty-linker-plugin";;
10493 *)
10494 as_fn_error $? "libiberty missing" "$LINENO" 5;;
10495 esac
10496 fi
10497
10498 # Sometimes we have special requirements for the host libiberty.
10499 extra_host_libiberty_configure_flags=
10500 case " $configdirs " in
10501 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
10502 # When these are to be built as shared libraries, the same applies to
10503 # libiberty.
10504 extra_host_libiberty_configure_flags=--enable-shared
10505 ;;
10506 esac
10507
10508
10509 # Sometimes we have special requirements for the host zlib.
10510 extra_host_zlib_configure_flags=
10511 case " $configdirs " in
10512 *" bfd "*)
10513 # When bfd is to be built as a shared library, the same applies to
10514 # zlib.
10515 if test "$enable_shared" = "yes"; then
10516 extra_host_zlib_configure_flags=--enable-host-shared
10517 fi
10518 ;;
10519 esac
10520
10521
10522 # Produce a warning message for the subdirs we can't configure.
10523 # This isn't especially interesting in the Cygnus tree, but in the individual
10524 # FSF releases, it's important to let people know when their machine isn't
10525 # supported by the one or two programs in a package.
10526
10527 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10528 # If $appdirs is non-empty, at least one of those directories must still
10529 # be configured, or we error out. (E.g., if the gas release supports a
10530 # specified target in some subdirs but not the gas subdir, we shouldn't
10531 # pretend that all is well.)
10532 if test -n "$appdirs" ; then
10533 for dir in $appdirs ; do
10534 if test -r $dir/Makefile.in ; then
10535 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
10536 appdirs=""
10537 break
10538 fi
10539 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
10540 appdirs=""
10541 break
10542 fi
10543 fi
10544 done
10545 if test -n "$appdirs" ; then
10546 echo "*** This configuration is not supported by this package." 1>&2
10547 exit 1
10548 fi
10549 fi
10550 # Okay, some application will build, or we don't care to check. Still
10551 # notify of subdirs not getting built.
10552 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10553 echo " ${notsupp}" 1>&2
10554 echo " (Any other directories should still work fine.)" 1>&2
10555 fi
10556
10557 case "$host" in
10558 *msdosdjgpp*)
10559 enable_gdbtk=no ;;
10560 esac
10561
10562 # To find our prefix, in gcc_cv_tool_prefix.
10563
10564 # The user is always right.
10565 if test "${PATH_SEPARATOR+set}" != set; then
10566 echo "#! /bin/sh" >conf$$.sh
10567 echo "exit 0" >>conf$$.sh
10568 chmod +x conf$$.sh
10569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10570 PATH_SEPARATOR=';'
10571 else
10572 PATH_SEPARATOR=:
10573 fi
10574 rm -f conf$$.sh
10575 fi
10576
10577
10578 get_gcc_base_ver="cat"
10579
10580 # Check whether --with-gcc-major-version-only was given.
10581 if test "${with_gcc_major_version_only+set}" = set; then :
10582 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
10583 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
10584 fi
10585
10586 fi
10587
10588
10589
10590
10591
10592
10593 if test "x$exec_prefix" = xNONE; then
10594 if test "x$prefix" = xNONE; then
10595 gcc_cv_tool_prefix=$ac_default_prefix
10596 else
10597 gcc_cv_tool_prefix=$prefix
10598 fi
10599 else
10600 gcc_cv_tool_prefix=$exec_prefix
10601 fi
10602
10603 # If there is no compiler in the tree, use the PATH only. In any
10604 # case, if there is no compiler in the tree nobody should use
10605 # AS_FOR_TARGET and LD_FOR_TARGET.
10606 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
10607 if test x$with_gcc_major_version_only = xyes ; then
10608 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10609 else
10610 gcc_version=`cat $srcdir/gcc/BASE-VER`
10611 fi
10612 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10613 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10614 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10615 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10616 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10617 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10618 else
10619 gcc_cv_tool_dirs=
10620 fi
10621
10622 if test x$build = x$target && test -n "$md_exec_prefix"; then
10623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10624 fi
10625
10626
10627
10628 copy_dirs=
10629
10630
10631 # Check whether --with-build-sysroot was given.
10632 if test "${with_build_sysroot+set}" = set; then :
10633 withval=$with_build_sysroot; if test x"$withval" != x ; then
10634 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
10635 fi
10636 else
10637 SYSROOT_CFLAGS_FOR_TARGET=
10638 fi
10639
10640
10641
10642
10643 # Check whether --with-debug-prefix-map was given.
10644 if test "${with_debug_prefix_map+set}" = set; then :
10645 withval=$with_debug_prefix_map; if test x"$withval" != x; then
10646 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10647 for debug_map in $withval; do
10648 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10649 done
10650 fi
10651 else
10652 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
10653 fi
10654
10655
10656
10657 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10658 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10659 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10660 # We want to ensure that TARGET libraries (which we know are built with
10661 # gcc) are built with "-O2 -g", so include those options when setting
10662 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10663 if test "x$CFLAGS_FOR_TARGET" = x; then
10664 if test "x${is_cross_compiler}" = xyes; then
10665 CFLAGS_FOR_TARGET="-g -O2"
10666 else
10667 CFLAGS_FOR_TARGET=$CFLAGS
10668 case " $CFLAGS " in
10669 *" -O2 "*) ;;
10670 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
10671 esac
10672 case " $CFLAGS " in
10673 *" -g "* | *" -g3 "*) ;;
10674 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
10675 esac
10676 fi
10677 fi
10678
10679
10680 if test "x$CXXFLAGS_FOR_TARGET" = x; then
10681 if test "x${is_cross_compiler}" = xyes; then
10682 CXXFLAGS_FOR_TARGET="-g -O2"
10683 else
10684 CXXFLAGS_FOR_TARGET=$CXXFLAGS
10685 case " $CXXFLAGS " in
10686 *" -O2 "*) ;;
10687 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
10688 esac
10689 case " $CXXFLAGS " in
10690 *" -g "* | *" -g3 "*) ;;
10691 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
10692 esac
10693 fi
10694 fi
10695
10696
10697
10698
10699 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10700 # the named directory are copied to $(tooldir)/sys-include.
10701 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
10702 if test x${is_cross_compiler} = xno ; then
10703 echo 1>&2 '***' --with-headers is only supported when cross compiling
10704 exit 1
10705 fi
10706 if test x"${with_headers}" != xyes ; then
10707 x=${gcc_cv_tool_prefix}
10708 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10709 fi
10710 fi
10711
10712 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10713 # the name directories are copied to $(tooldir)/lib. Multiple directories
10714 # are permitted.
10715 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
10716 if test x${is_cross_compiler} = xno ; then
10717 echo 1>&2 '***' --with-libs is only supported when cross compiling
10718 exit 1
10719 fi
10720 if test x"${with_libs}" != xyes ; then
10721 # Copy the libraries in reverse order, so that files in the first named
10722 # library override files in subsequent libraries.
10723 x=${gcc_cv_tool_prefix}
10724 for l in ${with_libs}; do
10725 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10726 done
10727 fi
10728 fi
10729
10730 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10731 #
10732 # This is done by determining whether or not the appropriate directory
10733 # is available, and by checking whether or not specific configurations
10734 # have requested that this magic not happen.
10735 #
10736 # The command line options always override the explicit settings in
10737 # configure.ac, and the settings in configure.ac override this magic.
10738 #
10739 # If the default for a toolchain is to use GNU as and ld, and you don't
10740 # want to do that, then you should use the --without-gnu-as and
10741 # --without-gnu-ld options for the configure script. Similarly, if
10742 # the default is to use the included zlib and you don't want to do that,
10743 # you should use the --with-system-zlib option for the configure script.
10744
10745 if test x${use_gnu_as} = x &&
10746 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
10747 with_gnu_as=yes
10748 extra_host_args="$extra_host_args --with-gnu-as"
10749 fi
10750
10751 if test x${use_gnu_ld} = x &&
10752 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
10753 with_gnu_ld=yes
10754 extra_host_args="$extra_host_args --with-gnu-ld"
10755 fi
10756
10757 if test x${use_included_zlib} = x &&
10758 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
10759 :
10760 else
10761 with_system_zlib=yes
10762 extra_host_args="$extra_host_args --with-system-zlib"
10763 fi
10764
10765 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10766 # can detect this case.
10767
10768 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
10769 with_newlib=yes
10770 extra_host_args="$extra_host_args --with-newlib"
10771 fi
10772
10773 # Handle ${copy_dirs}
10774 set fnord ${copy_dirs}
10775 shift
10776 while test $# != 0 ; do
10777 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
10778 :
10779 else
10780 echo Copying $1 to $2
10781
10782 # Use the install script to create the directory and all required
10783 # parent directories.
10784 if test -d $2 ; then
10785 :
10786 else
10787 echo >config.temp
10788 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
10789 fi
10790
10791 # Copy the directory, assuming we have tar.
10792 # FIXME: Should we use B in the second tar? Not all systems support it.
10793 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
10794
10795 # It is the responsibility of the user to correctly adjust all
10796 # symlinks. If somebody can figure out how to handle them correctly
10797 # here, feel free to add the code.
10798
10799 echo $1 > $2/COPIED
10800 fi
10801 shift; shift
10802 done
10803
10804 # Determine a target-dependent exec_prefix that the installed
10805 # gcc will search in. Keep this list sorted by triplet, with
10806 # the *-*-osname triplets last.
10807 md_exec_prefix=
10808 case "${target}" in
10809 i[34567]86-pc-msdosdjgpp*)
10810 md_exec_prefix=/dev/env/DJDIR/bin
10811 ;;
10812 *-*-hpux* | \
10813 *-*-nto-qnx* | \
10814 *-*-solaris2*)
10815 md_exec_prefix=/usr/ccs/bin
10816 ;;
10817 esac
10818
10819 extra_arflags_for_target=
10820 extra_nmflags_for_target=
10821 extra_ranlibflags_for_target=
10822 target_makefile_frag=/dev/null
10823 case "${target}" in
10824 spu-*-*)
10825 target_makefile_frag="config/mt-spu"
10826 ;;
10827 loongarch*-*linux* | loongarch*-*gnu*)
10828 target_makefile_frag="config/mt-loongarch-gnu"
10829 ;;
10830 loongarch*-*elf*)
10831 target_makefile_frag="config/mt-loongarch-elf"
10832 ;;
10833 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
10834 target_makefile_frag="config/mt-sde"
10835 ;;
10836 mipsisa*-*-elfoabi*)
10837 target_makefile_frag="config/mt-mips-elfoabi"
10838 ;;
10839 mips*-*-*linux* | mips*-*-gnu*)
10840 target_makefile_frag="config/mt-mips-gnu"
10841 ;;
10842 *-*-linux-android*)
10843 target_makefile_frag="config/mt-android"
10844 ;;
10845 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
10846 target_makefile_frag="config/mt-gnu"
10847 ;;
10848 *-*-aix4.[3456789]* | *-*-aix[56789].*)
10849 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10850 # commands to handle both 32-bit and 64-bit objects. These flags are
10851 # harmless if we're using GNU nm or ar.
10852 extra_arflags_for_target=" -X32_64"
10853 extra_nmflags_for_target=" -B -X32_64"
10854 ;;
10855 esac
10856
10857 alphaieee_frag=/dev/null
10858 case $target in
10859 alpha*-*-*)
10860 # This just makes sure to use the -mieee option to build target libs.
10861 # This should probably be set individually by each library.
10862 alphaieee_frag="config/mt-alphaieee"
10863 ;;
10864 esac
10865
10866 # If --enable-target-optspace always use -Os instead of -O2 to build
10867 # the target libraries, similarly if it is not specified, use -Os
10868 # on selected platforms.
10869 ospace_frag=/dev/null
10870 case "${enable_target_optspace}:${target}" in
10871 yes:*)
10872 ospace_frag="config/mt-ospace"
10873 ;;
10874 :d30v-*)
10875 ospace_frag="config/mt-d30v"
10876 ;;
10877 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
10878 ospace_frag="config/mt-ospace"
10879 ;;
10880 no:* | :*)
10881 ;;
10882 *)
10883 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10884 ;;
10885 esac
10886
10887 # Some systems (e.g., one of the i386-aix systems the gas testers are
10888 # using) don't handle "\$" correctly, so don't use it here.
10889 tooldir='${exec_prefix}'/${target_noncanonical}
10890 build_tooldir=${tooldir}
10891
10892 # Create a .gdbinit file which runs the one in srcdir
10893 # and tells GDB to look there for source files.
10894
10895 if test -r ${srcdir}/.gdbinit ; then
10896 case ${srcdir} in
10897 .) ;;
10898 *) cat > ./.gdbinit <<EOF
10899 # ${NO_EDIT}
10900 dir ${srcdir}
10901 dir .
10902 source ${srcdir}/.gdbinit
10903 EOF
10904 ;;
10905 esac
10906 fi
10907
10908 # Make sure that the compiler is able to generate an executable. If it
10909 # can't, we are probably in trouble. We don't care whether we can run the
10910 # executable--we might be using a cross compiler--we only care whether it
10911 # can be created. At this point the main configure script has set CC.
10912 we_are_ok=no
10913 echo "int main () { return 0; }" > conftest.c
10914 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10915 if test $? = 0 ; then
10916 if test -s conftest || test -s conftest.exe ; then
10917 we_are_ok=yes
10918 fi
10919 fi
10920 case $we_are_ok in
10921 no)
10922 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10923 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10924 rm -f conftest*
10925 exit 1
10926 ;;
10927 esac
10928 rm -f conftest*
10929
10930 # Decide which environment variable is used to find dynamic libraries.
10931 case "${host}" in
10932 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
10933 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
10934 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
10935 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
10936 esac
10937
10938 # On systems where the dynamic library environment variable is PATH,
10939 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10940 # built executables to PATH.
10941 if test "$RPATH_ENVVAR" = PATH; then
10942 GCC_SHLIB_SUBDIR=/shlib
10943 else
10944 GCC_SHLIB_SUBDIR=
10945 fi
10946
10947 # Adjust the toplevel makefile according to whether bootstrap was selected.
10948 case $enable_bootstrap in
10949 yes)
10950 bootstrap_suffix=bootstrap
10951 BUILD_CONFIG=bootstrap-debug
10952 ;;
10953 no)
10954 bootstrap_suffix=no-bootstrap
10955 BUILD_CONFIG=
10956 ;;
10957 esac
10958
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10960 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10961
10962
10963 # Check whether --with-build-config was given.
10964 if test "${with_build_config+set}" = set; then :
10965 withval=$with_build_config; case $with_build_config in
10966 yes) with_build_config= ;;
10967 no) with_build_config= BUILD_CONFIG= ;;
10968 esac
10969 fi
10970
10971
10972 if test "x${with_build_config}" != x; then
10973 BUILD_CONFIG=$with_build_config
10974 else
10975 case $BUILD_CONFIG in
10976 bootstrap-debug)
10977 if echo "int f (void) { return 0; }" > conftest.c &&
10978 ${CC} -c conftest.c &&
10979 mv conftest.o conftest.o.g0 &&
10980 ${CC} -c -g conftest.c &&
10981 mv conftest.o conftest.o.g &&
10982 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
10983 :
10984 else
10985 BUILD_CONFIG=
10986 fi
10987 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10988 ;;
10989 esac
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10992 $as_echo "$BUILD_CONFIG" >&6; }
10993
10994
10995 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10997 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10998 # Check whether --enable-vtable-verify was given.
10999 if test "${enable_vtable_verify+set}" = set; then :
11000 enableval=$enable_vtable_verify; case "$enableval" in
11001 yes) enable_vtable_verify=yes ;;
11002 no) enable_vtable_verify=no ;;
11003 *) enable_vtable_verify=no;;
11004 esac
11005 else
11006 enable_vtable_verify=no
11007 fi
11008
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
11010 $as_echo "$enable_vtable_verify" >&6; }
11011
11012 # Record target_configdirs and the configure arguments for target and
11013 # build configuration in Makefile.
11014 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
11015 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
11016 bootstrap_fixincludes=no
11017
11018 # If we are building libgomp, bootstrap it.
11019 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
11020 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
11021 fi
11022
11023 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
11024 # or bootstrap-ubsan, bootstrap it.
11025 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
11026 case "$BUILD_CONFIG" in
11027 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
11028 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
11029 bootstrap_fixincludes=yes
11030 ;;
11031 esac
11032 fi
11033
11034 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
11035 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
11036 test "$enable_vtable_verify" != no; then
11037 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
11038 fi
11039
11040 # If we are building libatomic and the list of enabled languages includes the
11041 # D frontend, bootstrap it.
11042 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
11043 case ,${enable_languages}, in
11044 *,d,*)
11045 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
11046 ;;
11047 esac
11048 fi
11049
11050 # Determine whether gdb needs tk/tcl or not.
11051 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
11052 # and in that case we want gdb to be built without tk. Ugh!
11053 # In fact I believe gdb is the *only* package directly dependent on tk,
11054 # so we should be able to put the 'maybe's in unconditionally and
11055 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
11056 # 100% sure that that's safe though.
11057
11058 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
11059 case "$enable_gdbtk" in
11060 no)
11061 GDB_TK="" ;;
11062 yes)
11063 GDB_TK="${gdb_tk}" ;;
11064 *)
11065 # Only add the dependency on gdbtk when GDBtk is part of the gdb
11066 # distro. Eventually someone will fix this and move Insight, nee
11067 # gdbtk to a separate directory.
11068 if test -d ${srcdir}/gdb/gdbtk ; then
11069 GDB_TK="${gdb_tk}"
11070 else
11071 GDB_TK=""
11072 fi
11073 ;;
11074 esac
11075 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
11076 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
11077
11078 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
11079 # else does, only include them if one of these is built. The Makefile
11080 # provides the ordering, so it's enough here to add to the list.
11081 case " ${configdirs} " in
11082 *\ gdb\ *)
11083 configdirs="${configdirs} gnulib gdbsupport"
11084 ;;
11085 *\ gdbserver\ *)
11086 configdirs="${configdirs} gnulib gdbsupport"
11087 ;;
11088 *\ sim\ *)
11089 configdirs="${configdirs} gnulib"
11090 ;;
11091 esac
11092
11093 # Strip out unwanted targets.
11094
11095 # While at that, we remove Makefiles if we were started for recursive
11096 # configuration, so that the top-level Makefile reconfigures them,
11097 # like we used to do when configure itself was recursive.
11098
11099 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11100 # but now we're fixing up the Makefile ourselves with the additional
11101 # commands passed to AC_CONFIG_FILES. Use separate variables
11102 # extrasub-{build,host,target} not because there is any reason to split
11103 # the substitutions up that way, but only to remain below the limit of
11104 # 99 commands in a script, for HP-UX sed.
11105
11106 # Do not nest @if/@endif or @unless/@endunless pairs, because
11107 # configure will not warn you at all.
11108
11109 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11110 yes:yes:*\ gold\ *:*,c++,*) ;;
11111 yes:yes:*\ gold\ *:*)
11112 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11113 ;;
11114 esac
11115
11116 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11117 # Note C++ is always enabled for stage1 now.
11118 case "$enable_bootstrap:${noconfigdirs}" in
11119 yes:*target-libstdc++-v3*)
11120 as_fn_error $? "bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11121 ;;
11122 esac
11123
11124
11125 extrasub_build=
11126 for module in ${build_configdirs} ; do
11127 if test -z "${no_recursion}" \
11128 && test -f ${build_subdir}/${module}/Makefile; then
11129 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11130 rm -f ${build_subdir}/${module}/Makefile
11131 fi
11132 extrasub_build="$extrasub_build
11133 /^@if build-$module\$/d
11134 /^@endif build-$module\$/d
11135 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11136 /^@if build-$module-$bootstrap_suffix\$/d
11137 /^@endif build-$module-$bootstrap_suffix\$/d
11138 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11139 done
11140 extrasub_host=
11141 for module in ${configdirs} ; do
11142 if test -z "${no_recursion}"; then
11143 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
11144 if test -f ${file}; then
11145 echo 1>&2 "*** removing ${file} to force reconfigure"
11146 rm -f ${file}
11147 fi
11148 done
11149 fi
11150 case ${module},${bootstrap_fixincludes} in
11151 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
11152 *) host_bootstrap_suffix=$bootstrap_suffix ;;
11153 esac
11154 extrasub_host="$extrasub_host
11155 /^@if $module\$/d
11156 /^@endif $module\$/d
11157 /^@unless $module\$/,/^@endunless $module\$/d
11158 /^@if $module-$host_bootstrap_suffix\$/d
11159 /^@endif $module-$host_bootstrap_suffix\$/d
11160 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11161 done
11162 extrasub_target=
11163 for module in ${target_configdirs} ; do
11164 if test -z "${no_recursion}" \
11165 && test -f ${target_subdir}/${module}/Makefile; then
11166 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11167 rm -f ${target_subdir}/${module}/Makefile
11168 fi
11169
11170 # We only bootstrap target libraries listed in bootstrap_target_libs.
11171 case $bootstrap_target_libs in
11172 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
11173 *) target_bootstrap_suffix=no-bootstrap ;;
11174 esac
11175
11176 extrasub_target="$extrasub_target
11177 /^@if target-$module\$/d
11178 /^@endif target-$module\$/d
11179 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11180 /^@if target-$module-$target_bootstrap_suffix\$/d
11181 /^@endif target-$module-$target_bootstrap_suffix\$/d
11182 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11183 done
11184
11185 # Do the final fixup along with target modules.
11186 extrasub_target="$extrasub_target
11187 /^@if /,/^@endif /d
11188 /^@unless /d
11189 /^@endunless /d"
11190
11191 if test "$enable_pgo_build" != "no"; then
11192 extrasub_build="$extrasub_build
11193 /^@if pgo-build\$/d
11194 /^@endif pgo-build\$/d"
11195 fi
11196
11197 # Create the serialization dependencies. This uses a temporary file.
11198
11199 # Check whether --enable-serial-configure was given.
11200 if test "${enable_serial_configure+set}" = set; then :
11201 enableval=$enable_serial_configure;
11202 fi
11203
11204
11205 case ${enable_serial_configure} in
11206 yes)
11207 enable_serial_build_configure=yes
11208 enable_serial_host_configure=yes
11209 enable_serial_target_configure=yes
11210 ;;
11211 esac
11212
11213 # These force 'configure's to be done one at a time, to avoid problems
11214 # with contention over a shared config.cache.
11215 rm -f serdep.tmp
11216 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
11217 echo '# serdep.tmp' > serdep.tmp
11218 fi
11219 olditem=
11220 test "x${enable_serial_build_configure}" = xyes &&
11221 for item in ${build_configdirs} ; do
11222 case ${olditem} in
11223 "") ;;
11224 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
11225 esac
11226 olditem=${item}
11227 done
11228 olditem=
11229 test "x${enable_serial_host_configure}" = xyes &&
11230 for item in ${configdirs} ; do
11231 case ${olditem} in
11232 "") ;;
11233 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
11234 esac
11235 olditem=${item}
11236 done
11237 olditem=
11238 test "x${enable_serial_target_configure}" = xyes &&
11239 for item in ${target_configdirs} ; do
11240 case ${olditem} in
11241 "") ;;
11242 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
11243 esac
11244 olditem=${item}
11245 done
11246 serialization_dependencies=serdep.tmp
11247
11248
11249 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11250 # target, nonopt, and variable assignments. These are the ones we
11251 # might not want to pass down to subconfigures. The exception being
11252 # --cache-file=/dev/null, which is used to turn off the use of cache
11253 # files altogether, and which should be passed on to subconfigures.
11254 # Also strip program-prefix, program-suffix, and program-transform-name,
11255 # so that we can pass down a consistent program-transform-name.
11256 hbaseargs=
11257 bbaseargs=
11258 tbaseargs=
11259 keep_next=no
11260 skip_next=no
11261 eval "set -- $ac_configure_args"
11262 for ac_arg
11263 do
11264 if test X"$skip_next" = X"yes"; then
11265 skip_next=no
11266 continue
11267 fi
11268 if test X"$keep_next" = X"yes"; then
11269 case $ac_arg in
11270 *\'*)
11271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11272 esac
11273 hbaseargs="$hbaseargs '$ac_arg'"
11274 bbaseargs="$bbaseargs '$ac_arg'"
11275 tbaseargs="$tbaseargs '$ac_arg'"
11276 keep_next=no
11277 continue
11278 fi
11279
11280 # Handle separated arguments. Based on the logic generated by
11281 # autoconf 2.59.
11282 case $ac_arg in
11283 *=* | --config-cache | -C | -disable-* | --disable-* \
11284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11286 | -with-* | --with-* | -without-* | --without-* | --x)
11287 separate_arg=no
11288 ;;
11289 -*)
11290 separate_arg=yes
11291 ;;
11292 *)
11293 separate_arg=no
11294 ;;
11295 esac
11296
11297 skip_targ=no
11298 skip_barg=no
11299 case $ac_arg in
11300
11301 --with-* | --without-*)
11302 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11303
11304 case $libopt in
11305 *[-_]include)
11306 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
11307 ;;
11308 *[-_]lib)
11309 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
11310 ;;
11311 *[-_]prefix)
11312 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11313 ;;
11314 *[-_]type)
11315 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
11316 ;;
11317 *)
11318 lib=$libopt
11319 ;;
11320 esac
11321
11322
11323 case $lib in
11324 mpc | mpfr | gmp | isl)
11325 # If we're processing --with-$lib, --with-$lib-include or
11326 # --with-$lib-lib, for one of the libs above, and target is
11327 # different from host, don't pass the current argument to any
11328 # target library's configure.
11329 if test x$is_cross_compiler = xyes; then
11330 skip_targ=yes
11331 fi
11332 ;;
11333 libintl | libiconv)
11334 # We don't want libintl (and co.) in anything but the host arguments.
11335 skip_targ=yes
11336 skip_barg=yes
11337 ;;
11338 esac
11339 ;;
11340 esac
11341
11342 case "$ac_arg" in
11343 --cache-file=/dev/null | \
11344 -cache-file=/dev/null )
11345 # Handled here to avoid the test to skip args below.
11346 hbaseargs="$hbaseargs '$ac_arg'"
11347 bbaseargs="$bbaseargs '$ac_arg'"
11348 tbaseargs="$tbaseargs '$ac_arg'"
11349 # Assert: $separate_arg should always be no.
11350 keep_next=$separate_arg
11351 ;;
11352 --no*)
11353 continue
11354 ;;
11355 --c* | \
11356 --sr* | \
11357 --ho* | \
11358 --bu* | \
11359 --t* | \
11360 --program-* | \
11361 -cache_file* | \
11362 -srcdir* | \
11363 -host* | \
11364 -build* | \
11365 -target* | \
11366 -program-prefix* | \
11367 -program-suffix* | \
11368 -program-transform-name* )
11369 skip_next=$separate_arg
11370 continue
11371 ;;
11372 -*)
11373 # An option. Add it.
11374 case $ac_arg in
11375 *\'*)
11376 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11377 esac
11378 hbaseargs="$hbaseargs '$ac_arg'"
11379 if test X"$skip_barg" = Xno; then
11380 bbaseargs="$bbaseargs '$ac_arg'"
11381 fi
11382 if test X"$skip_targ" = Xno; then
11383 tbaseargs="$tbaseargs '$ac_arg'"
11384 fi
11385 keep_next=$separate_arg
11386 ;;
11387 *)
11388 # Either a variable assignment, or a nonopt (triplet). Don't
11389 # pass it down; let the Makefile handle this.
11390 continue
11391 ;;
11392 esac
11393 done
11394 # Remove the initial space we just introduced and, as these will be
11395 # expanded by make, quote '$'.
11396 hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11397 bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11398
11399 # Add in --program-transform-name, after --program-prefix and
11400 # --program-suffix have been applied to it. Autoconf has already
11401 # doubled dollar signs and backslashes in program_transform_name; we want
11402 # the backslashes un-doubled, and then the entire thing wrapped in single
11403 # quotes, because this will be expanded first by make and then by the shell.
11404 # Also, because we want to override the logic in subdir configure scripts to
11405 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11406 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11407 ${program_transform_name}
11408 EOF_SED
11409 gcc_transform_name=`cat conftestsed.out`
11410 rm -f conftestsed.out
11411 hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11412 bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11413 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11414 if test "$silent" = yes; then
11415 bbaseargs="$bbaseargs --silent"
11416 hbaseargs="$hbaseargs --silent"
11417 tbaseargs="$tbaseargs --silent"
11418 fi
11419
11420 bbaseargs="$bbaseargs --disable-option-checking"
11421 hbaseargs="$hbaseargs --disable-option-checking"
11422 tbaseargs="$tbaseargs --disable-option-checking"
11423
11424 if test "$enable_year2038" = no; then
11425 bbaseargs="$bbaseargs --disable-year2038"
11426 hbaseargs="$hbaseargs --disable-year2038"
11427 tbaseargs="$tbaseargs --disable-year2038"
11428 fi
11429
11430 # Record and document user additions to sub configure arguments.
11431
11432
11433
11434
11435 # For the build-side libraries, we just need to pretend we're native,
11436 # and not use the same cache file. Multilibs are neither needed nor
11437 # desired. We can't even use the same cache file for all build-side
11438 # libraries, as they're compiled differently; some with C, some with
11439 # C++ or with different feature-enabling options.
11440 build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11441
11442 # For host modules, accept cache file option, or specification as blank.
11443 case "${cache_file}" in
11444 "") # empty
11445 cache_file_option="" ;;
11446 /* | [A-Za-z]:[\\/]* ) # absolute path
11447 cache_file_option="--cache-file=${cache_file}" ;;
11448 *) # relative path
11449 cache_file_option="--cache-file=../${cache_file}" ;;
11450 esac
11451
11452 # Host dirs don't like to share a cache file either, horribly enough.
11453 # This seems to be due to autoconf 2.5x stupidity.
11454 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11455
11456 target_configargs="$target_configargs ${tbaseargs}"
11457
11458 # Passing a --with-cross-host argument lets the target libraries know
11459 # whether they are being built with a cross-compiler or being built
11460 # native. However, it would be better to use other mechanisms to make the
11461 # sorts of decisions they want to make on this basis. Please consider
11462 # this option to be deprecated. FIXME.
11463 if test x${is_cross_compiler} = xyes ; then
11464 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
11465 fi
11466
11467 # Special user-friendly check for native x86_64-linux build, if
11468 # multilib is not explicitly enabled.
11469 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11470 x86_64-*linux*:yes:$build:$build:)
11471 # Make sure we have a development environment that handles 32-bit
11472 dev64=no
11473 echo "int main () { return 0; }" > conftest.c
11474 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11475 if test $? = 0 ; then
11476 if test -s conftest || test -s conftest.exe ; then
11477 dev64=yes
11478 fi
11479 fi
11480 rm -f conftest*
11481 if test x${dev64} != xyes ; then
11482 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
11483 fi
11484 ;;
11485 esac
11486
11487 case "${enable_multilib_space}:${enable_target_optspace}" in
11488 yes:yes|except:yes)
11489 as_fn_error $? "Cannot combine --enable-multilib-space with --enable-target-optspace" "$LINENO" 5
11490 ;;
11491 esac
11492
11493 # Default to --enable-multilib.
11494 if test x${enable_multilib} = x ; then
11495 target_configargs="--enable-multilib ${target_configargs}"
11496 fi
11497
11498 # Pass --with-newlib if appropriate. Note that target_configdirs has
11499 # changed from the earlier setting of with_newlib.
11500 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
11501 target_configargs="--with-newlib ${target_configargs}"
11502 fi
11503
11504 # Different target subdirs use different values of certain variables
11505 # (notably CXX). Worse, multilibs use *lots* of different values.
11506 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11507 # it doesn't automatically accept command-line overrides of them.
11508 # This means it's not safe for target subdirs to share a cache file,
11509 # which is disgusting, but there you have it. Hopefully this can be
11510 # fixed in future. It's still worthwhile to use a cache file for each
11511 # directory. I think.
11512
11513 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11514 # We need to pass --target, as newer autoconf's requires consistency
11515 # for target_alias and gcc doesn't manage it consistently.
11516 target_configargs="--cache-file=./config.cache ${target_configargs}"
11517
11518 FLAGS_FOR_TARGET=
11519 case " $target_configdirs " in
11520 *" newlib "*)
11521 case " $target_configargs " in
11522 *" --with-newlib "*)
11523 case "$target" in
11524 *-cygwin*)
11525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11526 ;;
11527 esac
11528
11529 # If we're not building GCC, don't discard standard headers.
11530 if test -d ${srcdir}/gcc; then
11531 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
11532
11533 if test "${build}" != "${host}"; then
11534 # On Canadian crosses, CC_FOR_TARGET will have already been set
11535 # by `configure', so we won't have an opportunity to add -Bgcc/
11536 # to it. This is right: we don't want to search that directory
11537 # for binaries, but we want the header files in there, so add
11538 # them explicitly.
11539 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11540
11541 # Someone might think of using the pre-installed headers on
11542 # Canadian crosses, in case the installed compiler is not fully
11543 # compatible with the compiler being built. In this case, it
11544 # would be better to flag an error than risking having
11545 # incompatible object files being constructed. We can't
11546 # guarantee that an error will be flagged, but let's hope the
11547 # compiler will do it, when presented with incompatible header
11548 # files.
11549 fi
11550 fi
11551
11552 case "${target}-${is_cross_compiler}" in
11553 i[3456789]86-*-linux*-no)
11554 # Here host == target, so we don't need to build gcc,
11555 # so we don't want to discard standard headers.
11556 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11557 ;;
11558 *)
11559 # If we're building newlib, use its generic headers last, but search
11560 # for any libc-related directories first (so make it the last -B
11561 # switch).
11562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11563
11564 # If we're building libgloss, find the startup file, simulator library
11565 # and linker script.
11566 case " $target_configdirs " in
11567 *" libgloss "*)
11568 # Look for startup file, simulator library and maybe linker script.
11569 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11570 # Look for libnosys.a in case the target needs it.
11571 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11572 # Most targets have the linker script in the source directory.
11573 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11574 ;;
11575 esac
11576 ;;
11577 esac
11578 ;;
11579 esac
11580 ;;
11581 esac
11582
11583 case "$target" in
11584 x86_64-*mingw* | *-w64-mingw*)
11585 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11586 # however, use a symlink named 'mingw' in ${prefix} .
11587 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11588 ;;
11589 *-mingw*)
11590 # MinGW can't be handled as Cygwin above since it does not use newlib.
11591 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'
11592 ;;
11593 esac
11594
11595 # Allow the user to override the flags for
11596 # our build compiler if desired.
11597 if test x"${build}" = x"${host}" ; then
11598 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
11599 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11600 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11601 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11602 fi
11603
11604 # On Canadian crosses, we'll be searching the right directories for
11605 # the previously-installed cross compiler, so don't bother to add
11606 # flags for directories within the install tree of the compiler
11607 # being built; programs in there won't even run.
11608 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11609 # Search for pre-installed headers if nothing else fits.
11610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11611 fi
11612
11613 if test "x${use_gnu_ld}" = x &&
11614 echo " ${configdirs} " | grep " ld " > /dev/null ; then
11615 # Arrange for us to find uninstalled linker scripts.
11616 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11617 fi
11618
11619 # Search for other target-specific linker scripts and such.
11620 case "${target}" in
11621 mep*)
11622 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11623 ;;
11624 # The VxWorks support for shared libraries is getting in
11625 # incrementally. Make sure it doesn't get activated implicitly:
11626 *vxworks*)
11627 if test "${enable_shared-unset}" = unset ; then
11628 enable_shared=no
11629 # So the build of libraries knows ...
11630 target_configargs="${target_configargs} --disable-shared"
11631 # So gcc knows ...
11632 host_configargs="${host_configargs} --disable-shared"
11633 fi
11634 ;;
11635 esac
11636
11637 # Makefile fragments.
11638 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11639 do
11640 eval fragval=\$$frag
11641 if test $fragval != /dev/null; then
11642 eval $frag=${srcdir}/$fragval
11643 fi
11644 done
11645
11646
11647
11648
11649
11650 # Miscellanea: directories, flags, etc.
11651
11652
11653
11654
11655
11656
11657
11658
11659 # Build module lists & subconfigure args.
11660
11661
11662
11663 # Host module lists & subconfigure args.
11664
11665
11666
11667
11668 # Target module lists & subconfigure args.
11669
11670
11671
11672 # Build tools.
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693 # Generate default definitions for YACC, M4, LEX and other programs that run
11694 # on the build machine. These are used if the Makefile can't locate these
11695 # programs in objdir.
11696 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11697
11698 for ac_prog in 'bison -y' byacc yacc
11699 do
11700 # Extract the first word of "$ac_prog", so it can be a program name with args.
11701 set dummy $ac_prog; ac_word=$2
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if ${ac_cv_prog_YACC+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 if test -n "$YACC"; then
11708 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11709 else
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in $PATH
11712 do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11717 ac_cv_prog_YACC="$ac_prog"
11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11720 fi
11721 done
11722 done
11723 IFS=$as_save_IFS
11724
11725 fi
11726 fi
11727 YACC=$ac_cv_prog_YACC
11728 if test -n "$YACC"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11730 $as_echo "$YACC" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734 fi
11735
11736
11737 test -n "$YACC" && break
11738 done
11739 test -n "$YACC" || YACC="$MISSING bison -y"
11740
11741 case " $build_configdirs " in
11742 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11743 esac
11744
11745 for ac_prog in bison
11746 do
11747 # Extract the first word of "$ac_prog", so it can be a program name with args.
11748 set dummy $ac_prog; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750 $as_echo_n "checking for $ac_word... " >&6; }
11751 if ${ac_cv_prog_BISON+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 if test -n "$BISON"; then
11755 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11756 else
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_prog_BISON="$ac_prog"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768 done
11769 done
11770 IFS=$as_save_IFS
11771
11772 fi
11773 fi
11774 BISON=$ac_cv_prog_BISON
11775 if test -n "$BISON"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
11777 $as_echo "$BISON" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782
11783
11784 test -n "$BISON" && break
11785 done
11786 test -n "$BISON" || BISON="$MISSING bison"
11787
11788 case " $build_configdirs " in
11789 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11790 esac
11791
11792 for ac_prog in gm4 gnum4 m4
11793 do
11794 # Extract the first word of "$ac_prog", so it can be a program name with args.
11795 set dummy $ac_prog; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if ${ac_cv_prog_M4+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$M4"; then
11802 ac_cv_prog_M4="$M4" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_M4="$ac_prog"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815 done
11816 done
11817 IFS=$as_save_IFS
11818
11819 fi
11820 fi
11821 M4=$ac_cv_prog_M4
11822 if test -n "$M4"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
11824 $as_echo "$M4" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830
11831 test -n "$M4" && break
11832 done
11833 test -n "$M4" || M4="$MISSING m4"
11834
11835 case " $build_configdirs " in
11836 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11837 esac
11838
11839 for ac_prog in flex lex
11840 do
11841 # Extract the first word of "$ac_prog", so it can be a program name with args.
11842 set dummy $ac_prog; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_prog_LEX+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 if test -n "$LEX"; then
11849 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11850 else
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11853 do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_prog_LEX="$ac_prog"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 break 2
11861 fi
11862 done
11863 done
11864 IFS=$as_save_IFS
11865
11866 fi
11867 fi
11868 LEX=$ac_cv_prog_LEX
11869 if test -n "$LEX"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11871 $as_echo "$LEX" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875 fi
11876
11877
11878 test -n "$LEX" && break
11879 done
11880 test -n "$LEX" || LEX="$MISSING flex"
11881
11882 case " $build_configdirs " in
11883 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11884 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11885 esac
11886
11887 for ac_prog in flex
11888 do
11889 # Extract the first word of "$ac_prog", so it can be a program name with args.
11890 set dummy $ac_prog; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_prog_FLEX+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 if test -n "$FLEX"; then
11897 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11898 else
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906 ac_cv_prog_FLEX="$ac_prog"
11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908 break 2
11909 fi
11910 done
11911 done
11912 IFS=$as_save_IFS
11913
11914 fi
11915 fi
11916 FLEX=$ac_cv_prog_FLEX
11917 if test -n "$FLEX"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
11919 $as_echo "$FLEX" >&6; }
11920 else
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 fi
11924
11925
11926 test -n "$FLEX" && break
11927 done
11928 test -n "$FLEX" || FLEX="$MISSING flex"
11929
11930 case " $build_configdirs " in
11931 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11932 esac
11933
11934 for ac_prog in makeinfo
11935 do
11936 # Extract the first word of "$ac_prog", so it can be a program name with args.
11937 set dummy $ac_prog; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_prog_MAKEINFO+:} false; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 if test -n "$MAKEINFO"; then
11944 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11945 else
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_prog_MAKEINFO="$ac_prog"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11956 fi
11957 done
11958 done
11959 IFS=$as_save_IFS
11960
11961 fi
11962 fi
11963 MAKEINFO=$ac_cv_prog_MAKEINFO
11964 if test -n "$MAKEINFO"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11966 $as_echo "$MAKEINFO" >&6; }
11967 else
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11970 fi
11971
11972
11973 test -n "$MAKEINFO" && break
11974 done
11975 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
11976
11977 case " $build_configdirs " in
11978 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11979 *)
11980
11981 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11982 # higher, else we use the "missing" dummy.
11983 if ${MAKEINFO} --version \
11984 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11985 :
11986 else
11987 MAKEINFO="$MISSING makeinfo"
11988 fi
11989 ;;
11990
11991 esac
11992
11993 # FIXME: expect and dejagnu may become build tools?
11994
11995 for ac_prog in expect
11996 do
11997 # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_EXPECT+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 if test -n "$EXPECT"; then
12005 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
12006 else
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_EXPECT="$ac_prog"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12017 fi
12018 done
12019 done
12020 IFS=$as_save_IFS
12021
12022 fi
12023 fi
12024 EXPECT=$ac_cv_prog_EXPECT
12025 if test -n "$EXPECT"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12027 $as_echo "$EXPECT" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 fi
12032
12033
12034 test -n "$EXPECT" && break
12035 done
12036 test -n "$EXPECT" || EXPECT="expect"
12037
12038 case " $configdirs " in
12039 *" expect "*)
12040 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
12041 ;;
12042 esac
12043
12044 for ac_prog in runtest
12045 do
12046 # Extract the first word of "$ac_prog", so it can be a program name with args.
12047 set dummy $ac_prog; ac_word=$2
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12049 $as_echo_n "checking for $ac_word... " >&6; }
12050 if ${ac_cv_prog_RUNTEST+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test -n "$RUNTEST"; then
12054 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
12055 else
12056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12057 for as_dir in $PATH
12058 do
12059 IFS=$as_save_IFS
12060 test -z "$as_dir" && as_dir=.
12061 for ac_exec_ext in '' $ac_executable_extensions; do
12062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12063 ac_cv_prog_RUNTEST="$ac_prog"
12064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12065 break 2
12066 fi
12067 done
12068 done
12069 IFS=$as_save_IFS
12070
12071 fi
12072 fi
12073 RUNTEST=$ac_cv_prog_RUNTEST
12074 if test -n "$RUNTEST"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
12076 $as_echo "$RUNTEST" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12080 fi
12081
12082
12083 test -n "$RUNTEST" && break
12084 done
12085 test -n "$RUNTEST" || RUNTEST="runtest"
12086
12087 case " $configdirs " in
12088 *" dejagnu "*)
12089 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
12090 ;;
12091 esac
12092
12093
12094 # Host tools.
12095 ncn_tool_prefix=
12096 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
12097 ncn_target_tool_prefix=
12098 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12099
12100
12101
12102 if test -n "$AR"; then
12103 ac_cv_prog_AR=$AR
12104 elif test -n "$ac_cv_prog_AR"; then
12105 AR=$ac_cv_prog_AR
12106 fi
12107
12108 if test -n "$ac_cv_prog_AR"; then
12109 for ncn_progname in ar; do
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113 $as_echo_n "checking for $ac_word... " >&6; }
12114 if ${ac_cv_prog_AR+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 if test -n "$AR"; then
12118 ac_cv_prog_AR="$AR" # Let the user override the test.
12119 else
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12122 do
12123 IFS=$as_save_IFS
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_prog_AR="${ncn_progname}"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 break 2
12130 fi
12131 done
12132 done
12133 IFS=$as_save_IFS
12134
12135 fi
12136 fi
12137 AR=$ac_cv_prog_AR
12138 if test -n "$AR"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12140 $as_echo "$AR" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144 fi
12145
12146
12147 done
12148 fi
12149
12150 for ncn_progname in ar; do
12151 if test -n "$ncn_tool_prefix"; then
12152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_prog_AR+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 if test -n "$AR"; then
12160 ac_cv_prog_AR="$AR" # Let the user override the test.
12161 else
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12164 do
12165 IFS=$as_save_IFS
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12171 break 2
12172 fi
12173 done
12174 done
12175 IFS=$as_save_IFS
12176
12177 fi
12178 fi
12179 AR=$ac_cv_prog_AR
12180 if test -n "$AR"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12182 $as_echo "$AR" >&6; }
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; }
12186 fi
12187
12188
12189 fi
12190 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_prog_AR+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$AR"; then
12199 ac_cv_prog_AR="$AR" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12203 do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_AR="${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12211 fi
12212 done
12213 done
12214 IFS=$as_save_IFS
12215
12216 fi
12217 fi
12218 AR=$ac_cv_prog_AR
12219 if test -n "$AR"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12221 $as_echo "$AR" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12225 fi
12226
12227
12228 fi
12229 test -n "$ac_cv_prog_AR" && break
12230 done
12231
12232 if test -z "$ac_cv_prog_AR" ; then
12233 set dummy ar
12234 if test $build = $host ; then
12235 AR="$2"
12236 else
12237 AR="${ncn_tool_prefix}$2"
12238 fi
12239 fi
12240
12241
12242
12243 if test -n "$AS"; then
12244 ac_cv_prog_AS=$AS
12245 elif test -n "$ac_cv_prog_AS"; then
12246 AS=$ac_cv_prog_AS
12247 fi
12248
12249 if test -n "$ac_cv_prog_AS"; then
12250 for ncn_progname in as; do
12251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12252 set dummy ${ncn_progname}; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if ${ac_cv_prog_AS+:} false; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 if test -n "$AS"; then
12259 ac_cv_prog_AS="$AS" # Let the user override the test.
12260 else
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_AS="${ncn_progname}"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12271 fi
12272 done
12273 done
12274 IFS=$as_save_IFS
12275
12276 fi
12277 fi
12278 AS=$ac_cv_prog_AS
12279 if test -n "$AS"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12281 $as_echo "$AS" >&6; }
12282 else
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 $as_echo "no" >&6; }
12285 fi
12286
12287
12288 done
12289 fi
12290
12291 for ncn_progname in as; do
12292 if test -n "$ncn_tool_prefix"; then
12293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12294 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12296 $as_echo_n "checking for $ac_word... " >&6; }
12297 if ${ac_cv_prog_AS+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 if test -n "$AS"; then
12301 ac_cv_prog_AS="$AS" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314 done
12315 done
12316 IFS=$as_save_IFS
12317
12318 fi
12319 fi
12320 AS=$ac_cv_prog_AS
12321 if test -n "$AS"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12323 $as_echo "$AS" >&6; }
12324 else
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327 fi
12328
12329
12330 fi
12331 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12335 $as_echo_n "checking for $ac_word... " >&6; }
12336 if ${ac_cv_prog_AS+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 if test -n "$AS"; then
12340 ac_cv_prog_AS="$AS" # Let the user override the test.
12341 else
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12344 do
12345 IFS=$as_save_IFS
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_AS="${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 break 2
12352 fi
12353 done
12354 done
12355 IFS=$as_save_IFS
12356
12357 fi
12358 fi
12359 AS=$ac_cv_prog_AS
12360 if test -n "$AS"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12362 $as_echo "$AS" >&6; }
12363 else
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12366 fi
12367
12368
12369 fi
12370 test -n "$ac_cv_prog_AS" && break
12371 done
12372
12373 if test -z "$ac_cv_prog_AS" ; then
12374 set dummy as
12375 if test $build = $host ; then
12376 AS="$2"
12377 else
12378 AS="${ncn_tool_prefix}$2"
12379 fi
12380 fi
12381
12382
12383
12384 if test -n "$DLLTOOL"; then
12385 ac_cv_prog_DLLTOOL=$DLLTOOL
12386 elif test -n "$ac_cv_prog_DLLTOOL"; then
12387 DLLTOOL=$ac_cv_prog_DLLTOOL
12388 fi
12389
12390 if test -n "$ac_cv_prog_DLLTOOL"; then
12391 for ncn_progname in dlltool; do
12392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12393 set dummy ${ncn_progname}; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_prog_DLLTOOL+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 if test -n "$DLLTOOL"; then
12400 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12401 else
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409 ac_cv_prog_DLLTOOL="${ncn_progname}"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413 done
12414 done
12415 IFS=$as_save_IFS
12416
12417 fi
12418 fi
12419 DLLTOOL=$ac_cv_prog_DLLTOOL
12420 if test -n "$DLLTOOL"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12422 $as_echo "$DLLTOOL" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429 done
12430 fi
12431
12432 for ncn_progname in dlltool; do
12433 if test -n "$ncn_tool_prefix"; then
12434 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437 $as_echo_n "checking for $ac_word... " >&6; }
12438 if ${ac_cv_prog_DLLTOOL+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test -n "$DLLTOOL"; then
12442 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12443 else
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 break 2
12454 fi
12455 done
12456 done
12457 IFS=$as_save_IFS
12458
12459 fi
12460 fi
12461 DLLTOOL=$ac_cv_prog_DLLTOOL
12462 if test -n "$DLLTOOL"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12464 $as_echo "$DLLTOOL" >&6; }
12465 else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469
12470
12471 fi
12472 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_DLLTOOL+:} false; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12480 if test -n "$DLLTOOL"; then
12481 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_DLLTOOL="${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 DLLTOOL=$ac_cv_prog_DLLTOOL
12501 if test -n "$DLLTOOL"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12503 $as_echo "$DLLTOOL" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509
12510 fi
12511 test -n "$ac_cv_prog_DLLTOOL" && break
12512 done
12513
12514 if test -z "$ac_cv_prog_DLLTOOL" ; then
12515 set dummy dlltool
12516 if test $build = $host ; then
12517 DLLTOOL="$2"
12518 else
12519 DLLTOOL="${ncn_tool_prefix}$2"
12520 fi
12521 fi
12522
12523
12524
12525 if test -n "$DSYMUTIL"; then
12526 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12527 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12528 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12529 fi
12530
12531 if test -n "$ac_cv_prog_DSYMUTIL"; then
12532 for ncn_progname in dsymutil; do
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534 set dummy ${ncn_progname}; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -n "$DSYMUTIL"; then
12541 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12542 else
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12553 fi
12554 done
12555 done
12556 IFS=$as_save_IFS
12557
12558 fi
12559 fi
12560 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12561 if test -n "$DSYMUTIL"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12563 $as_echo "$DSYMUTIL" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 fi
12568
12569
12570 done
12571 fi
12572
12573 for ncn_progname in dsymutil; do
12574 if test -n "$ncn_tool_prefix"; then
12575 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$DSYMUTIL"; then
12583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12595 fi
12596 done
12597 done
12598 IFS=$as_save_IFS
12599
12600 fi
12601 fi
12602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12603 if test -n "$DSYMUTIL"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12605 $as_echo "$DSYMUTIL" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609 fi
12610
12611
12612 fi
12613 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$DSYMUTIL"; then
12622 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12626 do
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12634 fi
12635 done
12636 done
12637 IFS=$as_save_IFS
12638
12639 fi
12640 fi
12641 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12642 if test -n "$DSYMUTIL"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12644 $as_echo "$DSYMUTIL" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12648 fi
12649
12650
12651 fi
12652 test -n "$ac_cv_prog_DSYMUTIL" && break
12653 done
12654
12655 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12656 set dummy dsymutil
12657 if test $build = $host ; then
12658 DSYMUTIL="$2"
12659 else
12660 DSYMUTIL="${ncn_tool_prefix}$2"
12661 fi
12662 fi
12663
12664
12665
12666 if test -n "$LD"; then
12667 ac_cv_prog_LD=$LD
12668 elif test -n "$ac_cv_prog_LD"; then
12669 LD=$ac_cv_prog_LD
12670 fi
12671
12672 if test -n "$ac_cv_prog_LD"; then
12673 for ncn_progname in ld; do
12674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12675 set dummy ${ncn_progname}; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677 $as_echo_n "checking for $ac_word... " >&6; }
12678 if ${ac_cv_prog_LD+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 if test -n "$LD"; then
12682 ac_cv_prog_LD="$LD" # Let the user override the test.
12683 else
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12686 do
12687 IFS=$as_save_IFS
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12691 ac_cv_prog_LD="${ncn_progname}"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 break 2
12694 fi
12695 done
12696 done
12697 IFS=$as_save_IFS
12698
12699 fi
12700 fi
12701 LD=$ac_cv_prog_LD
12702 if test -n "$LD"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12704 $as_echo "$LD" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711 done
12712 fi
12713
12714 for ncn_progname in ld; do
12715 if test -n "$ncn_tool_prefix"; then
12716 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_prog_LD+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$LD"; then
12724 ac_cv_prog_LD="$LD" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737 done
12738 done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 LD=$ac_cv_prog_LD
12744 if test -n "$LD"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12746 $as_echo "$LD" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 fi
12754 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12758 $as_echo_n "checking for $ac_word... " >&6; }
12759 if ${ac_cv_prog_LD+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$LD"; then
12763 ac_cv_prog_LD="$LD" # Let the user override the test.
12764 else
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12767 do
12768 IFS=$as_save_IFS
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_LD="${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12774 break 2
12775 fi
12776 done
12777 done
12778 IFS=$as_save_IFS
12779
12780 fi
12781 fi
12782 LD=$ac_cv_prog_LD
12783 if test -n "$LD"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12785 $as_echo "$LD" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 fi
12793 test -n "$ac_cv_prog_LD" && break
12794 done
12795
12796 if test -z "$ac_cv_prog_LD" ; then
12797 set dummy ld
12798 if test $build = $host ; then
12799 LD="$2"
12800 else
12801 LD="${ncn_tool_prefix}$2"
12802 fi
12803 fi
12804
12805
12806
12807 if test -n "$LIPO"; then
12808 ac_cv_prog_LIPO=$LIPO
12809 elif test -n "$ac_cv_prog_LIPO"; then
12810 LIPO=$ac_cv_prog_LIPO
12811 fi
12812
12813 if test -n "$ac_cv_prog_LIPO"; then
12814 for ncn_progname in lipo; do
12815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12816 set dummy ${ncn_progname}; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_prog_LIPO+:} false; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test -n "$LIPO"; then
12823 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_LIPO="${ncn_progname}"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12835 fi
12836 done
12837 done
12838 IFS=$as_save_IFS
12839
12840 fi
12841 fi
12842 LIPO=$ac_cv_prog_LIPO
12843 if test -n "$LIPO"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12845 $as_echo "$LIPO" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 fi
12850
12851
12852 done
12853 fi
12854
12855 for ncn_progname in lipo; do
12856 if test -n "$ncn_tool_prefix"; then
12857 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12858 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_prog_LIPO+:} false; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 if test -n "$LIPO"; then
12865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 LIPO=$ac_cv_prog_LIPO
12885 if test -n "$LIPO"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12887 $as_echo "$LIPO" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893
12894 fi
12895 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if ${ac_cv_prog_LIPO+:} false; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 if test -n "$LIPO"; then
12904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12905 else
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12908 do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_LIPO="${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 break 2
12916 fi
12917 done
12918 done
12919 IFS=$as_save_IFS
12920
12921 fi
12922 fi
12923 LIPO=$ac_cv_prog_LIPO
12924 if test -n "$LIPO"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12926 $as_echo "$LIPO" >&6; }
12927 else
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12929 $as_echo "no" >&6; }
12930 fi
12931
12932
12933 fi
12934 test -n "$ac_cv_prog_LIPO" && break
12935 done
12936
12937 if test -z "$ac_cv_prog_LIPO" ; then
12938 set dummy lipo
12939 if test $build = $host ; then
12940 LIPO="$2"
12941 else
12942 LIPO="${ncn_tool_prefix}$2"
12943 fi
12944 fi
12945
12946
12947
12948 if test -n "$NM"; then
12949 ac_cv_prog_NM=$NM
12950 elif test -n "$ac_cv_prog_NM"; then
12951 NM=$ac_cv_prog_NM
12952 fi
12953
12954 if test -n "$ac_cv_prog_NM"; then
12955 for ncn_progname in nm; do
12956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12957 set dummy ${ncn_progname}; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if ${ac_cv_prog_NM+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 if test -n "$NM"; then
12964 ac_cv_prog_NM="$NM" # Let the user override the test.
12965 else
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12968 do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12973 ac_cv_prog_NM="${ncn_progname}"
12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 break 2
12976 fi
12977 done
12978 done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 NM=$ac_cv_prog_NM
12984 if test -n "$NM"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
12986 $as_echo "$NM" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992
12993 done
12994 fi
12995
12996 for ncn_progname in nm; do
12997 if test -n "$ncn_tool_prefix"; then
12998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001 $as_echo_n "checking for $ac_word... " >&6; }
13002 if ${ac_cv_prog_NM+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 if test -n "$NM"; then
13006 ac_cv_prog_NM="$NM" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 NM=$ac_cv_prog_NM
13026 if test -n "$NM"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13028 $as_echo "$NM" >&6; }
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033
13034
13035 fi
13036 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
13037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if ${ac_cv_prog_NM+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$NM"; then
13045 ac_cv_prog_NM="$NM" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_NM="${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 NM=$ac_cv_prog_NM
13065 if test -n "$NM"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
13067 $as_echo "$NM" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 test -n "$ac_cv_prog_NM" && break
13076 done
13077
13078 if test -z "$ac_cv_prog_NM" ; then
13079 set dummy nm
13080 if test $build = $host ; then
13081 NM="$2"
13082 else
13083 NM="${ncn_tool_prefix}$2"
13084 fi
13085 fi
13086
13087
13088
13089 if test -n "$RANLIB"; then
13090 ac_cv_prog_RANLIB=$RANLIB
13091 elif test -n "$ac_cv_prog_RANLIB"; then
13092 RANLIB=$ac_cv_prog_RANLIB
13093 fi
13094
13095 if test -n "$ac_cv_prog_RANLIB"; then
13096 for ncn_progname in ranlib; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098 set dummy ${ncn_progname}; ac_word=$2
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100 $as_echo_n "checking for $ac_word... " >&6; }
13101 if ${ac_cv_prog_RANLIB+:} false; then :
13102 $as_echo_n "(cached) " >&6
13103 else
13104 if test -n "$RANLIB"; then
13105 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13106 else
13107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108 for as_dir in $PATH
13109 do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13114 ac_cv_prog_RANLIB="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13117 fi
13118 done
13119 done
13120 IFS=$as_save_IFS
13121
13122 fi
13123 fi
13124 RANLIB=$ac_cv_prog_RANLIB
13125 if test -n "$RANLIB"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13127 $as_echo "$RANLIB" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 fi
13132
13133
13134 done
13135 fi
13136
13137 for ncn_progname in ranlib; do
13138 if test -n "$ncn_tool_prefix"; then
13139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13140 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if ${ac_cv_prog_RANLIB+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$RANLIB"; then
13147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13151 do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13159 fi
13160 done
13161 done
13162 IFS=$as_save_IFS
13163
13164 fi
13165 fi
13166 RANLIB=$ac_cv_prog_RANLIB
13167 if test -n "$RANLIB"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13169 $as_echo "$RANLIB" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 fi
13177 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13179 set dummy ${ncn_progname}; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_prog_RANLIB+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 if test -n "$RANLIB"; then
13186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13187 else
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13190 do
13191 IFS=$as_save_IFS
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13195 ac_cv_prog_RANLIB="${ncn_progname}"
13196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13197 break 2
13198 fi
13199 done
13200 done
13201 IFS=$as_save_IFS
13202
13203 fi
13204 fi
13205 RANLIB=$ac_cv_prog_RANLIB
13206 if test -n "$RANLIB"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13208 $as_echo "$RANLIB" >&6; }
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13212 fi
13213
13214
13215 fi
13216 test -n "$ac_cv_prog_RANLIB" && break
13217 done
13218
13219 if test -z "$ac_cv_prog_RANLIB" ; then
13220 RANLIB="true"
13221 fi
13222
13223
13224
13225 if test -n "$STRIP"; then
13226 ac_cv_prog_STRIP=$STRIP
13227 elif test -n "$ac_cv_prog_STRIP"; then
13228 STRIP=$ac_cv_prog_STRIP
13229 fi
13230
13231 if test -n "$ac_cv_prog_STRIP"; then
13232 for ncn_progname in strip; do
13233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13234 set dummy ${ncn_progname}; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if ${ac_cv_prog_STRIP+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250 ac_cv_prog_STRIP="${ncn_progname}"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13257
13258 fi
13259 fi
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13268
13269
13270 done
13271 fi
13272
13273 for ncn_progname in strip; do
13274 if test -n "$ncn_tool_prefix"; then
13275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if ${ac_cv_prog_STRIP+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if test -n "$STRIP"; then
13283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13295 fi
13296 done
13297 done
13298 IFS=$as_save_IFS
13299
13300 fi
13301 fi
13302 STRIP=$ac_cv_prog_STRIP
13303 if test -n "$STRIP"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13305 $as_echo "$STRIP" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310
13311
13312 fi
13313 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if ${ac_cv_prog_STRIP+:} false; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$STRIP"; then
13322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13326 do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13331 ac_cv_prog_STRIP="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335 done
13336 done
13337 IFS=$as_save_IFS
13338
13339 fi
13340 fi
13341 STRIP=$ac_cv_prog_STRIP
13342 if test -n "$STRIP"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13344 $as_echo "$STRIP" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13348 fi
13349
13350
13351 fi
13352 test -n "$ac_cv_prog_STRIP" && break
13353 done
13354
13355 if test -z "$ac_cv_prog_STRIP" ; then
13356 STRIP="true"
13357 fi
13358
13359
13360
13361 if test -n "$WINDRES"; then
13362 ac_cv_prog_WINDRES=$WINDRES
13363 elif test -n "$ac_cv_prog_WINDRES"; then
13364 WINDRES=$ac_cv_prog_WINDRES
13365 fi
13366
13367 if test -n "$ac_cv_prog_WINDRES"; then
13368 for ncn_progname in windres; do
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13370 set dummy ${ncn_progname}; ac_word=$2
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372 $as_echo_n "checking for $ac_word... " >&6; }
13373 if ${ac_cv_prog_WINDRES+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 if test -n "$WINDRES"; then
13377 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13378 else
13379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380 for as_dir in $PATH
13381 do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13386 ac_cv_prog_WINDRES="${ncn_progname}"
13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13388 break 2
13389 fi
13390 done
13391 done
13392 IFS=$as_save_IFS
13393
13394 fi
13395 fi
13396 WINDRES=$ac_cv_prog_WINDRES
13397 if test -n "$WINDRES"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13399 $as_echo "$WINDRES" >&6; }
13400 else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13403 fi
13404
13405
13406 done
13407 fi
13408
13409 for ncn_progname in windres; do
13410 if test -n "$ncn_tool_prefix"; then
13411 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13412 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13414 $as_echo_n "checking for $ac_word... " >&6; }
13415 if ${ac_cv_prog_WINDRES+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 if test -n "$WINDRES"; then
13419 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424 IFS=$as_save_IFS
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13430 break 2
13431 fi
13432 done
13433 done
13434 IFS=$as_save_IFS
13435
13436 fi
13437 fi
13438 WINDRES=$ac_cv_prog_WINDRES
13439 if test -n "$WINDRES"; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13441 $as_echo "$WINDRES" >&6; }
13442 else
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444 $as_echo "no" >&6; }
13445 fi
13446
13447
13448 fi
13449 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13451 set dummy ${ncn_progname}; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453 $as_echo_n "checking for $ac_word... " >&6; }
13454 if ${ac_cv_prog_WINDRES+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 if test -n "$WINDRES"; then
13458 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13459 else
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13462 do
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13467 ac_cv_prog_WINDRES="${ncn_progname}"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13469 break 2
13470 fi
13471 done
13472 done
13473 IFS=$as_save_IFS
13474
13475 fi
13476 fi
13477 WINDRES=$ac_cv_prog_WINDRES
13478 if test -n "$WINDRES"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
13480 $as_echo "$WINDRES" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 fi
13485
13486
13487 fi
13488 test -n "$ac_cv_prog_WINDRES" && break
13489 done
13490
13491 if test -z "$ac_cv_prog_WINDRES" ; then
13492 set dummy windres
13493 if test $build = $host ; then
13494 WINDRES="$2"
13495 else
13496 WINDRES="${ncn_tool_prefix}$2"
13497 fi
13498 fi
13499
13500
13501
13502 if test -n "$WINDMC"; then
13503 ac_cv_prog_WINDMC=$WINDMC
13504 elif test -n "$ac_cv_prog_WINDMC"; then
13505 WINDMC=$ac_cv_prog_WINDMC
13506 fi
13507
13508 if test -n "$ac_cv_prog_WINDMC"; then
13509 for ncn_progname in windmc; do
13510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13511 set dummy ${ncn_progname}; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if ${ac_cv_prog_WINDMC+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 if test -n "$WINDMC"; then
13518 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13527 ac_cv_prog_WINDMC="${ncn_progname}"
13528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13530 fi
13531 done
13532 done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 WINDMC=$ac_cv_prog_WINDMC
13538 if test -n "$WINDMC"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13540 $as_echo "$WINDMC" >&6; }
13541 else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545
13546
13547 done
13548 fi
13549
13550 for ncn_progname in windmc; do
13551 if test -n "$ncn_tool_prefix"; then
13552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13553 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555 $as_echo_n "checking for $ac_word... " >&6; }
13556 if ${ac_cv_prog_WINDMC+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 if test -n "$WINDMC"; then
13560 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13561 else
13562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563 for as_dir in $PATH
13564 do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13569 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573 done
13574 done
13575 IFS=$as_save_IFS
13576
13577 fi
13578 fi
13579 WINDMC=$ac_cv_prog_WINDMC
13580 if test -n "$WINDMC"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13582 $as_echo "$WINDMC" >&6; }
13583 else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586 fi
13587
13588
13589 fi
13590 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13592 set dummy ${ncn_progname}; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if ${ac_cv_prog_WINDMC+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 if test -n "$WINDMC"; then
13599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13600 else
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13603 do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608 ac_cv_prog_WINDMC="${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13611 fi
13612 done
13613 done
13614 IFS=$as_save_IFS
13615
13616 fi
13617 fi
13618 WINDMC=$ac_cv_prog_WINDMC
13619 if test -n "$WINDMC"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
13621 $as_echo "$WINDMC" >&6; }
13622 else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624 $as_echo "no" >&6; }
13625 fi
13626
13627
13628 fi
13629 test -n "$ac_cv_prog_WINDMC" && break
13630 done
13631
13632 if test -z "$ac_cv_prog_WINDMC" ; then
13633 set dummy windmc
13634 if test $build = $host ; then
13635 WINDMC="$2"
13636 else
13637 WINDMC="${ncn_tool_prefix}$2"
13638 fi
13639 fi
13640
13641
13642
13643 if test -n "$OBJCOPY"; then
13644 ac_cv_prog_OBJCOPY=$OBJCOPY
13645 elif test -n "$ac_cv_prog_OBJCOPY"; then
13646 OBJCOPY=$ac_cv_prog_OBJCOPY
13647 fi
13648
13649 if test -n "$ac_cv_prog_OBJCOPY"; then
13650 for ncn_progname in objcopy; do
13651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13652 set dummy ${ncn_progname}; ac_word=$2
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654 $as_echo_n "checking for $ac_word... " >&6; }
13655 if ${ac_cv_prog_OBJCOPY+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 if test -n "$OBJCOPY"; then
13659 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13660 else
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13663 do
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668 ac_cv_prog_OBJCOPY="${ncn_progname}"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13671 fi
13672 done
13673 done
13674 IFS=$as_save_IFS
13675
13676 fi
13677 fi
13678 OBJCOPY=$ac_cv_prog_OBJCOPY
13679 if test -n "$OBJCOPY"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13681 $as_echo "$OBJCOPY" >&6; }
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686
13687
13688 done
13689 fi
13690
13691 for ncn_progname in objcopy; do
13692 if test -n "$ncn_tool_prefix"; then
13693 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13694 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696 $as_echo_n "checking for $ac_word... " >&6; }
13697 if ${ac_cv_prog_OBJCOPY+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test -n "$OBJCOPY"; then
13701 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13702 else
13703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704 for as_dir in $PATH
13705 do
13706 IFS=$as_save_IFS
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
13709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13710 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712 break 2
13713 fi
13714 done
13715 done
13716 IFS=$as_save_IFS
13717
13718 fi
13719 fi
13720 OBJCOPY=$ac_cv_prog_OBJCOPY
13721 if test -n "$OBJCOPY"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13723 $as_echo "$OBJCOPY" >&6; }
13724 else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13727 fi
13728
13729
13730 fi
13731 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13733 set dummy ${ncn_progname}; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_prog_OBJCOPY+:} false; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$OBJCOPY"; then
13740 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13744 do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_OBJCOPY="${ncn_progname}"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13752 fi
13753 done
13754 done
13755 IFS=$as_save_IFS
13756
13757 fi
13758 fi
13759 OBJCOPY=$ac_cv_prog_OBJCOPY
13760 if test -n "$OBJCOPY"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13762 $as_echo "$OBJCOPY" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766 fi
13767
13768
13769 fi
13770 test -n "$ac_cv_prog_OBJCOPY" && break
13771 done
13772
13773 if test -z "$ac_cv_prog_OBJCOPY" ; then
13774 set dummy objcopy
13775 if test $build = $host ; then
13776 OBJCOPY="$2"
13777 else
13778 OBJCOPY="${ncn_tool_prefix}$2"
13779 fi
13780 fi
13781
13782
13783
13784 if test -n "$OBJDUMP"; then
13785 ac_cv_prog_OBJDUMP=$OBJDUMP
13786 elif test -n "$ac_cv_prog_OBJDUMP"; then
13787 OBJDUMP=$ac_cv_prog_OBJDUMP
13788 fi
13789
13790 if test -n "$ac_cv_prog_OBJDUMP"; then
13791 for ncn_progname in objdump; do
13792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13793 set dummy ${ncn_progname}; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if ${ac_cv_prog_OBJDUMP+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test -n "$OBJDUMP"; then
13800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13804 do
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13809 ac_cv_prog_OBJDUMP="${ncn_progname}"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13812 fi
13813 done
13814 done
13815 IFS=$as_save_IFS
13816
13817 fi
13818 fi
13819 OBJDUMP=$ac_cv_prog_OBJDUMP
13820 if test -n "$OBJDUMP"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13822 $as_echo "$OBJDUMP" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13826 fi
13827
13828
13829 done
13830 fi
13831
13832 for ncn_progname in objdump; do
13833 if test -n "$ncn_tool_prefix"; then
13834 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13835 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13837 $as_echo_n "checking for $ac_word... " >&6; }
13838 if ${ac_cv_prog_OBJDUMP+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 if test -n "$OBJDUMP"; then
13842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13843 else
13844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13845 for as_dir in $PATH
13846 do
13847 IFS=$as_save_IFS
13848 test -z "$as_dir" && as_dir=.
13849 for ac_exec_ext in '' $ac_executable_extensions; do
13850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13851 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 break 2
13854 fi
13855 done
13856 done
13857 IFS=$as_save_IFS
13858
13859 fi
13860 fi
13861 OBJDUMP=$ac_cv_prog_OBJDUMP
13862 if test -n "$OBJDUMP"; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13864 $as_echo "$OBJDUMP" >&6; }
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13868 fi
13869
13870
13871 fi
13872 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13874 set dummy ${ncn_progname}; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876 $as_echo_n "checking for $ac_word... " >&6; }
13877 if ${ac_cv_prog_OBJDUMP+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 if test -n "$OBJDUMP"; then
13881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13882 else
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13885 do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_OBJDUMP="${ncn_progname}"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894 done
13895 done
13896 IFS=$as_save_IFS
13897
13898 fi
13899 fi
13900 OBJDUMP=$ac_cv_prog_OBJDUMP
13901 if test -n "$OBJDUMP"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13903 $as_echo "$OBJDUMP" >&6; }
13904 else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 fi
13908
13909
13910 fi
13911 test -n "$ac_cv_prog_OBJDUMP" && break
13912 done
13913
13914 if test -z "$ac_cv_prog_OBJDUMP" ; then
13915 set dummy objdump
13916 if test $build = $host ; then
13917 OBJDUMP="$2"
13918 else
13919 OBJDUMP="${ncn_tool_prefix}$2"
13920 fi
13921 fi
13922
13923
13924
13925 if test -n "$OTOOL"; then
13926 ac_cv_prog_OTOOL=$OTOOL
13927 elif test -n "$ac_cv_prog_OTOOL"; then
13928 OTOOL=$ac_cv_prog_OTOOL
13929 fi
13930
13931 if test -n "$ac_cv_prog_OTOOL"; then
13932 for ncn_progname in otool; do
13933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13934 set dummy ${ncn_progname}; ac_word=$2
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13936 $as_echo_n "checking for $ac_word... " >&6; }
13937 if ${ac_cv_prog_OTOOL+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 if test -n "$OTOOL"; then
13941 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13942 else
13943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944 for as_dir in $PATH
13945 do
13946 IFS=$as_save_IFS
13947 test -z "$as_dir" && as_dir=.
13948 for ac_exec_ext in '' $ac_executable_extensions; do
13949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13950 ac_cv_prog_OTOOL="${ncn_progname}"
13951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13952 break 2
13953 fi
13954 done
13955 done
13956 IFS=$as_save_IFS
13957
13958 fi
13959 fi
13960 OTOOL=$ac_cv_prog_OTOOL
13961 if test -n "$OTOOL"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13963 $as_echo "$OTOOL" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968
13969
13970 done
13971 fi
13972
13973 for ncn_progname in otool; do
13974 if test -n "$ncn_tool_prefix"; then
13975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978 $as_echo_n "checking for $ac_word... " >&6; }
13979 if ${ac_cv_prog_OTOOL+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 if test -n "$OTOOL"; then
13983 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13984 else
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13995 fi
13996 done
13997 done
13998 IFS=$as_save_IFS
13999
14000 fi
14001 fi
14002 OTOOL=$ac_cv_prog_OTOOL
14003 if test -n "$OTOOL"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14005 $as_echo "$OTOOL" >&6; }
14006 else
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14009 fi
14010
14011
14012 fi
14013 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
14014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14015 set dummy ${ncn_progname}; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017 $as_echo_n "checking for $ac_word... " >&6; }
14018 if ${ac_cv_prog_OTOOL+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 if test -n "$OTOOL"; then
14022 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14023 else
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14026 do
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_prog_OTOOL="${ncn_progname}"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 break 2
14034 fi
14035 done
14036 done
14037 IFS=$as_save_IFS
14038
14039 fi
14040 fi
14041 OTOOL=$ac_cv_prog_OTOOL
14042 if test -n "$OTOOL"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14044 $as_echo "$OTOOL" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14048 fi
14049
14050
14051 fi
14052 test -n "$ac_cv_prog_OTOOL" && break
14053 done
14054
14055 if test -z "$ac_cv_prog_OTOOL" ; then
14056 set dummy otool
14057 if test $build = $host ; then
14058 OTOOL="$2"
14059 else
14060 OTOOL="${ncn_tool_prefix}$2"
14061 fi
14062 fi
14063
14064
14065
14066 if test -n "$READELF"; then
14067 ac_cv_prog_READELF=$READELF
14068 elif test -n "$ac_cv_prog_READELF"; then
14069 READELF=$ac_cv_prog_READELF
14070 fi
14071
14072 if test -n "$ac_cv_prog_READELF"; then
14073 for ncn_progname in readelf; do
14074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14075 set dummy ${ncn_progname}; ac_word=$2
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14077 $as_echo_n "checking for $ac_word... " >&6; }
14078 if ${ac_cv_prog_READELF+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 if test -n "$READELF"; then
14082 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14083 else
14084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14086 do
14087 IFS=$as_save_IFS
14088 test -z "$as_dir" && as_dir=.
14089 for ac_exec_ext in '' $ac_executable_extensions; do
14090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14091 ac_cv_prog_READELF="${ncn_progname}"
14092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14093 break 2
14094 fi
14095 done
14096 done
14097 IFS=$as_save_IFS
14098
14099 fi
14100 fi
14101 READELF=$ac_cv_prog_READELF
14102 if test -n "$READELF"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14104 $as_echo "$READELF" >&6; }
14105 else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108 fi
14109
14110
14111 done
14112 fi
14113
14114 for ncn_progname in readelf; do
14115 if test -n "$ncn_tool_prefix"; then
14116 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14117 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14119 $as_echo_n "checking for $ac_word... " >&6; }
14120 if ${ac_cv_prog_READELF+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 if test -n "$READELF"; then
14124 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14125 else
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14128 do
14129 IFS=$as_save_IFS
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
14132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14133 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 break 2
14136 fi
14137 done
14138 done
14139 IFS=$as_save_IFS
14140
14141 fi
14142 fi
14143 READELF=$ac_cv_prog_READELF
14144 if test -n "$READELF"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14146 $as_echo "$READELF" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14150 fi
14151
14152
14153 fi
14154 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14156 set dummy ${ncn_progname}; ac_word=$2
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14158 $as_echo_n "checking for $ac_word... " >&6; }
14159 if ${ac_cv_prog_READELF+:} false; then :
14160 $as_echo_n "(cached) " >&6
14161 else
14162 if test -n "$READELF"; then
14163 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14164 else
14165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14166 for as_dir in $PATH
14167 do
14168 IFS=$as_save_IFS
14169 test -z "$as_dir" && as_dir=.
14170 for ac_exec_ext in '' $ac_executable_extensions; do
14171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14172 ac_cv_prog_READELF="${ncn_progname}"
14173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14174 break 2
14175 fi
14176 done
14177 done
14178 IFS=$as_save_IFS
14179
14180 fi
14181 fi
14182 READELF=$ac_cv_prog_READELF
14183 if test -n "$READELF"; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
14185 $as_echo "$READELF" >&6; }
14186 else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14189 fi
14190
14191
14192 fi
14193 test -n "$ac_cv_prog_READELF" && break
14194 done
14195
14196 if test -z "$ac_cv_prog_READELF" ; then
14197 set dummy readelf
14198 if test $build = $host ; then
14199 READELF="$2"
14200 else
14201 READELF="${ncn_tool_prefix}$2"
14202 fi
14203 fi
14204
14205
14206
14207
14208
14209
14210
14211 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14212
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
14215 $as_echo_n "checking for -plugin option... " >&6; }
14216
14217 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
14218 plugin_option=
14219 for plugin in $plugin_names; do
14220 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14221 if test x$plugin_so = x$plugin; then
14222 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14223 fi
14224 if test x$plugin_so != x$plugin; then
14225 plugin_option="--plugin $plugin_so"
14226 break
14227 fi
14228 done
14229 if test -n "$ac_tool_prefix"; then
14230 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14231 set dummy ${ac_tool_prefix}ar; ac_word=$2
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14233 $as_echo_n "checking for $ac_word... " >&6; }
14234 if ${ac_cv_prog_AR+:} false; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 if test -n "$AR"; then
14238 ac_cv_prog_AR="$AR" # Let the user override the test.
14239 else
14240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241 for as_dir in $PATH
14242 do
14243 IFS=$as_save_IFS
14244 test -z "$as_dir" && as_dir=.
14245 for ac_exec_ext in '' $ac_executable_extensions; do
14246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14247 ac_cv_prog_AR="${ac_tool_prefix}ar"
14248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14249 break 2
14250 fi
14251 done
14252 done
14253 IFS=$as_save_IFS
14254
14255 fi
14256 fi
14257 AR=$ac_cv_prog_AR
14258 if test -n "$AR"; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14260 $as_echo "$AR" >&6; }
14261 else
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14263 $as_echo "no" >&6; }
14264 fi
14265
14266
14267 fi
14268 if test -z "$ac_cv_prog_AR"; then
14269 ac_ct_AR=$AR
14270 # Extract the first word of "ar", so it can be a program name with args.
14271 set dummy ar; ac_word=$2
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14273 $as_echo_n "checking for $ac_word... " >&6; }
14274 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 if test -n "$ac_ct_AR"; then
14278 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14279 else
14280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14282 do
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14287 ac_cv_prog_ac_ct_AR="ar"
14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 break 2
14290 fi
14291 done
14292 done
14293 IFS=$as_save_IFS
14294
14295 fi
14296 fi
14297 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14298 if test -n "$ac_ct_AR"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14300 $as_echo "$ac_ct_AR" >&6; }
14301 else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303 $as_echo "no" >&6; }
14304 fi
14305
14306 if test "x$ac_ct_AR" = x; then
14307 AR=""
14308 else
14309 case $cross_compiling:$ac_tool_warned in
14310 yes:)
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14313 ac_tool_warned=yes ;;
14314 esac
14315 AR=$ac_ct_AR
14316 fi
14317 else
14318 AR="$ac_cv_prog_AR"
14319 fi
14320
14321 if test "${AR}" = "" ; then
14322 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
14323 fi
14324 touch conftest.c
14325 ${AR} $plugin_option rc conftest.a conftest.c
14326 if test "$?" != 0; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
14328 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
14329 plugin_option=
14330 fi
14331 rm -f conftest.*
14332 if test -n "$plugin_option"; then
14333 PLUGIN_OPTION="$plugin_option"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
14335 $as_echo "$plugin_option" >&6; }
14336 else
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340
14341 AR_PLUGIN_OPTION=
14342 RANLIB_PLUGIN_OPTION=
14343 if test -n "$PLUGIN_OPTION"; then
14344 if $AR --help 2>&1 | grep -q "\--plugin"; then
14345 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14346 fi
14347 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
14348 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14349 fi
14350 fi
14351
14352
14353
14354 # Target tools.
14355
14356 # Check whether --with-build-time-tools was given.
14357 if test "${with_build_time_tools+set}" = set; then :
14358 withval=$with_build_time_tools; case x"$withval" in
14359 x/*) ;;
14360 *)
14361 with_build_time_tools=
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
14363 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
14364 ;;
14365 esac
14366 else
14367 with_build_time_tools=
14368 fi
14369
14370
14371
14372
14373 if test -n "$CC_FOR_TARGET"; then
14374 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14375 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14376 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14377 fi
14378
14379 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14380 for ncn_progname in cc gcc; do
14381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14382 set dummy ${ncn_progname}; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test -n "$CC_FOR_TARGET"; then
14389 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14393 do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi
14407 fi
14408 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14409 if test -n "$CC_FOR_TARGET"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14411 $as_echo "$CC_FOR_TARGET" >&6; }
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14415 fi
14416
14417
14418 done
14419 fi
14420
14421 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14422 for ncn_progname in cc gcc; do
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14424 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14425 if test -x $with_build_time_tools/${ncn_progname}; then
14426 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14428 $as_echo "yes" >&6; }
14429 break
14430 else
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 $as_echo "no" >&6; }
14433 fi
14434 done
14435 fi
14436
14437 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14438 for ncn_progname in cc gcc; do
14439 if test -n "$ncn_target_tool_prefix"; then
14440 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14441 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 if test -n "$CC_FOR_TARGET"; then
14448 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14449 else
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14452 do
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14460 fi
14461 done
14462 done
14463 IFS=$as_save_IFS
14464
14465 fi
14466 fi
14467 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14468 if test -n "$CC_FOR_TARGET"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14470 $as_echo "$CC_FOR_TARGET" >&6; }
14471 else
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14473 $as_echo "no" >&6; }
14474 fi
14475
14476
14477 fi
14478 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14480 set dummy ${ncn_progname}; ac_word=$2
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14482 $as_echo_n "checking for $ac_word... " >&6; }
14483 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 if test -n "$CC_FOR_TARGET"; then
14487 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14488 else
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14491 do
14492 IFS=$as_save_IFS
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
14495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14496 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14498 break 2
14499 fi
14500 done
14501 done
14502 IFS=$as_save_IFS
14503
14504 fi
14505 fi
14506 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14507 if test -n "$CC_FOR_TARGET"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
14509 $as_echo "$CC_FOR_TARGET" >&6; }
14510 else
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14512 $as_echo "no" >&6; }
14513 fi
14514
14515
14516 fi
14517 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14518 done
14519 fi
14520
14521 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14522 set dummy cc gcc
14523 if test $build = $target ; then
14524 CC_FOR_TARGET="$2"
14525 else
14526 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14527 fi
14528 else
14529 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14530 fi
14531
14532
14533
14534 if test -n "$CXX_FOR_TARGET"; then
14535 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14536 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14537 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14538 fi
14539
14540 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14541 for ncn_progname in c++ g++ cxx gxx; do
14542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14543 set dummy ${ncn_progname}; ac_word=$2
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14545 $as_echo_n "checking for $ac_word... " >&6; }
14546 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 if test -n "$CXX_FOR_TARGET"; then
14550 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14551 else
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553 for as_dir in $PATH
14554 do
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14559 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563 done
14564 done
14565 IFS=$as_save_IFS
14566
14567 fi
14568 fi
14569 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14570 if test -n "$CXX_FOR_TARGET"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14572 $as_echo "$CXX_FOR_TARGET" >&6; }
14573 else
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14576 fi
14577
14578
14579 done
14580 fi
14581
14582 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14583 for ncn_progname in c++ g++ cxx gxx; do
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14585 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14586 if test -x $with_build_time_tools/${ncn_progname}; then
14587 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14589 $as_echo "yes" >&6; }
14590 break
14591 else
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14594 fi
14595 done
14596 fi
14597
14598 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14599 for ncn_progname in c++ g++ cxx gxx; do
14600 if test -n "$ncn_target_tool_prefix"; then
14601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14602 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$CXX_FOR_TARGET"; then
14609 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14613 do
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14621 fi
14622 done
14623 done
14624 IFS=$as_save_IFS
14625
14626 fi
14627 fi
14628 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14629 if test -n "$CXX_FOR_TARGET"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14631 $as_echo "$CXX_FOR_TARGET" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635 fi
14636
14637
14638 fi
14639 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14641 set dummy ${ncn_progname}; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14643 $as_echo_n "checking for $ac_word... " >&6; }
14644 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test -n "$CXX_FOR_TARGET"; then
14648 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14649 else
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14652 do
14653 IFS=$as_save_IFS
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 break 2
14660 fi
14661 done
14662 done
14663 IFS=$as_save_IFS
14664
14665 fi
14666 fi
14667 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14668 if test -n "$CXX_FOR_TARGET"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
14670 $as_echo "$CXX_FOR_TARGET" >&6; }
14671 else
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14673 $as_echo "no" >&6; }
14674 fi
14675
14676
14677 fi
14678 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14679 done
14680 fi
14681
14682 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14683 set dummy c++ g++ cxx gxx
14684 if test $build = $target ; then
14685 CXX_FOR_TARGET="$2"
14686 else
14687 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14688 fi
14689 else
14690 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14691 fi
14692
14693
14694
14695 if test -n "$GCC_FOR_TARGET"; then
14696 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14697 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14698 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14699 fi
14700
14701 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14702 for ncn_progname in gcc; do
14703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14704 set dummy ${ncn_progname}; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706 $as_echo_n "checking for $ac_word... " >&6; }
14707 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 if test -n "$GCC_FOR_TARGET"; then
14711 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14712 else
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14715 do
14716 IFS=$as_save_IFS
14717 test -z "$as_dir" && as_dir=.
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14720 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14722 break 2
14723 fi
14724 done
14725 done
14726 IFS=$as_save_IFS
14727
14728 fi
14729 fi
14730 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14731 if test -n "$GCC_FOR_TARGET"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14733 $as_echo "$GCC_FOR_TARGET" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14737 fi
14738
14739
14740 done
14741 fi
14742
14743 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14744 for ncn_progname in gcc; do
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14746 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14747 if test -x $with_build_time_tools/${ncn_progname}; then
14748 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14750 $as_echo "yes" >&6; }
14751 break
14752 else
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754 $as_echo "no" >&6; }
14755 fi
14756 done
14757 fi
14758
14759 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14760 for ncn_progname in gcc; do
14761 if test -n "$ncn_target_tool_prefix"; then
14762 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14763 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14765 $as_echo_n "checking for $ac_word... " >&6; }
14766 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14767 $as_echo_n "(cached) " >&6
14768 else
14769 if test -n "$GCC_FOR_TARGET"; then
14770 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14771 else
14772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14773 for as_dir in $PATH
14774 do
14775 IFS=$as_save_IFS
14776 test -z "$as_dir" && as_dir=.
14777 for ac_exec_ext in '' $ac_executable_extensions; do
14778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14779 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14781 break 2
14782 fi
14783 done
14784 done
14785 IFS=$as_save_IFS
14786
14787 fi
14788 fi
14789 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14790 if test -n "$GCC_FOR_TARGET"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14792 $as_echo "$GCC_FOR_TARGET" >&6; }
14793 else
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14796 fi
14797
14798
14799 fi
14800 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14802 set dummy ${ncn_progname}; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804 $as_echo_n "checking for $ac_word... " >&6; }
14805 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 if test -n "$GCC_FOR_TARGET"; then
14809 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14810 else
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $PATH
14813 do
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 break 2
14821 fi
14822 done
14823 done
14824 IFS=$as_save_IFS
14825
14826 fi
14827 fi
14828 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14829 if test -n "$GCC_FOR_TARGET"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
14831 $as_echo "$GCC_FOR_TARGET" >&6; }
14832 else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834 $as_echo "no" >&6; }
14835 fi
14836
14837
14838 fi
14839 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14840 done
14841 fi
14842
14843 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14844 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14845 else
14846 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14847 fi
14848
14849
14850
14851 if test -n "$GFORTRAN_FOR_TARGET"; then
14852 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14853 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14854 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14855 fi
14856
14857 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14858 for ncn_progname in gfortran; do
14859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14860 set dummy ${ncn_progname}; ac_word=$2
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14862 $as_echo_n "checking for $ac_word... " >&6; }
14863 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 if test -n "$GFORTRAN_FOR_TARGET"; then
14867 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14868 else
14869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14870 for as_dir in $PATH
14871 do
14872 IFS=$as_save_IFS
14873 test -z "$as_dir" && as_dir=.
14874 for ac_exec_ext in '' $ac_executable_extensions; do
14875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14876 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14878 break 2
14879 fi
14880 done
14881 done
14882 IFS=$as_save_IFS
14883
14884 fi
14885 fi
14886 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14887 if test -n "$GFORTRAN_FOR_TARGET"; then
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14889 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14890 else
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14892 $as_echo "no" >&6; }
14893 fi
14894
14895
14896 done
14897 fi
14898
14899 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14900 for ncn_progname in gfortran; do
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14902 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14903 if test -x $with_build_time_tools/${ncn_progname}; then
14904 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906 $as_echo "yes" >&6; }
14907 break
14908 else
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 $as_echo "no" >&6; }
14911 fi
14912 done
14913 fi
14914
14915 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14916 for ncn_progname in gfortran; do
14917 if test -n "$ncn_target_tool_prefix"; then
14918 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14919 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 if test -n "$GFORTRAN_FOR_TARGET"; then
14926 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14927 else
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14930 do
14931 IFS=$as_save_IFS
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14937 break 2
14938 fi
14939 done
14940 done
14941 IFS=$as_save_IFS
14942
14943 fi
14944 fi
14945 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14946 if test -n "$GFORTRAN_FOR_TARGET"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14948 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14949 else
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14952 fi
14953
14954
14955 fi
14956 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14958 set dummy ${ncn_progname}; ac_word=$2
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 $as_echo_n "checking for $ac_word... " >&6; }
14961 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 if test -n "$GFORTRAN_FOR_TARGET"; then
14965 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14966 else
14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968 for as_dir in $PATH
14969 do
14970 IFS=$as_save_IFS
14971 test -z "$as_dir" && as_dir=.
14972 for ac_exec_ext in '' $ac_executable_extensions; do
14973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976 break 2
14977 fi
14978 done
14979 done
14980 IFS=$as_save_IFS
14981
14982 fi
14983 fi
14984 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14985 if test -n "$GFORTRAN_FOR_TARGET"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
14987 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14988 else
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14991 fi
14992
14993
14994 fi
14995 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14996 done
14997 fi
14998
14999 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
15000 set dummy gfortran
15001 if test $build = $target ; then
15002 GFORTRAN_FOR_TARGET="$2"
15003 else
15004 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
15005 fi
15006 else
15007 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
15008 fi
15009
15010
15011
15012 if test -n "$GOC_FOR_TARGET"; then
15013 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
15014 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15015 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15016 fi
15017
15018 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
15019 for ncn_progname in gccgo; do
15020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15021 set dummy ${ncn_progname}; ac_word=$2
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15023 $as_echo_n "checking for $ac_word... " >&6; }
15024 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 if test -n "$GOC_FOR_TARGET"; then
15028 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15029 else
15030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031 for as_dir in $PATH
15032 do
15033 IFS=$as_save_IFS
15034 test -z "$as_dir" && as_dir=.
15035 for ac_exec_ext in '' $ac_executable_extensions; do
15036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15037 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15039 break 2
15040 fi
15041 done
15042 done
15043 IFS=$as_save_IFS
15044
15045 fi
15046 fi
15047 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15048 if test -n "$GOC_FOR_TARGET"; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15050 $as_echo "$GOC_FOR_TARGET" >&6; }
15051 else
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15054 fi
15055
15056
15057 done
15058 fi
15059
15060 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15061 for ncn_progname in gccgo; do
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15063 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15064 if test -x $with_build_time_tools/${ncn_progname}; then
15065 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067 $as_echo "yes" >&6; }
15068 break
15069 else
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15071 $as_echo "no" >&6; }
15072 fi
15073 done
15074 fi
15075
15076 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
15077 for ncn_progname in gccgo; do
15078 if test -n "$ncn_target_tool_prefix"; then
15079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15082 $as_echo_n "checking for $ac_word... " >&6; }
15083 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 if test -n "$GOC_FOR_TARGET"; then
15087 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15088 else
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15091 do
15092 IFS=$as_save_IFS
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 break 2
15099 fi
15100 done
15101 done
15102 IFS=$as_save_IFS
15103
15104 fi
15105 fi
15106 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15107 if test -n "$GOC_FOR_TARGET"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15109 $as_echo "$GOC_FOR_TARGET" >&6; }
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15113 fi
15114
15115
15116 fi
15117 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15119 set dummy ${ncn_progname}; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 if test -n "$GOC_FOR_TARGET"; then
15126 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15127 else
15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in $PATH
15130 do
15131 IFS=$as_save_IFS
15132 test -z "$as_dir" && as_dir=.
15133 for ac_exec_ext in '' $ac_executable_extensions; do
15134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15137 break 2
15138 fi
15139 done
15140 done
15141 IFS=$as_save_IFS
15142
15143 fi
15144 fi
15145 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15146 if test -n "$GOC_FOR_TARGET"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
15148 $as_echo "$GOC_FOR_TARGET" >&6; }
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15152 fi
15153
15154
15155 fi
15156 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15157 done
15158 fi
15159
15160 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15161 set dummy gccgo
15162 if test $build = $target ; then
15163 GOC_FOR_TARGET="$2"
15164 else
15165 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15166 fi
15167 else
15168 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15169 fi
15170
15171
15172
15173 if test -n "$GDC_FOR_TARGET"; then
15174 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15175 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15176 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15177 fi
15178
15179 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15180 for ncn_progname in gdc; do
15181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15182 set dummy ${ncn_progname}; ac_word=$2
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15184 $as_echo_n "checking for $ac_word... " >&6; }
15185 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 if test -n "$GDC_FOR_TARGET"; then
15189 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15190 else
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15193 do
15194 IFS=$as_save_IFS
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15200 break 2
15201 fi
15202 done
15203 done
15204 IFS=$as_save_IFS
15205
15206 fi
15207 fi
15208 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15209 if test -n "$GDC_FOR_TARGET"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15211 $as_echo "$GDC_FOR_TARGET" >&6; }
15212 else
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214 $as_echo "no" >&6; }
15215 fi
15216
15217
15218 done
15219 fi
15220
15221 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15222 for ncn_progname in gdc; do
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15225 if test -x $with_build_time_tools/${ncn_progname}; then
15226 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15228 $as_echo "yes" >&6; }
15229 break
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234 done
15235 fi
15236
15237 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15238 for ncn_progname in gdc; do
15239 if test -n "$ncn_target_tool_prefix"; then
15240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15243 $as_echo_n "checking for $ac_word... " >&6; }
15244 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 if test -n "$GDC_FOR_TARGET"; then
15248 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15249 else
15250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15251 for as_dir in $PATH
15252 do
15253 IFS=$as_save_IFS
15254 test -z "$as_dir" && as_dir=.
15255 for ac_exec_ext in '' $ac_executable_extensions; do
15256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15257 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15259 break 2
15260 fi
15261 done
15262 done
15263 IFS=$as_save_IFS
15264
15265 fi
15266 fi
15267 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15268 if test -n "$GDC_FOR_TARGET"; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15270 $as_echo "$GDC_FOR_TARGET" >&6; }
15271 else
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15273 $as_echo "no" >&6; }
15274 fi
15275
15276
15277 fi
15278 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15280 set dummy ${ncn_progname}; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15282 $as_echo_n "checking for $ac_word... " >&6; }
15283 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 if test -n "$GDC_FOR_TARGET"; then
15287 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15288 else
15289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290 for as_dir in $PATH
15291 do
15292 IFS=$as_save_IFS
15293 test -z "$as_dir" && as_dir=.
15294 for ac_exec_ext in '' $ac_executable_extensions; do
15295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15296 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 break 2
15299 fi
15300 done
15301 done
15302 IFS=$as_save_IFS
15303
15304 fi
15305 fi
15306 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15307 if test -n "$GDC_FOR_TARGET"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
15309 $as_echo "$GDC_FOR_TARGET" >&6; }
15310 else
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312 $as_echo "no" >&6; }
15313 fi
15314
15315
15316 fi
15317 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15318 done
15319 fi
15320
15321 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15322 set dummy gdc
15323 if test $build = $target ; then
15324 GDC_FOR_TARGET="$2"
15325 else
15326 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15327 fi
15328 else
15329 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15330 fi
15331
15332
15333
15334 if test -n "$GM2_FOR_TARGET"; then
15335 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15336 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15337 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15338 fi
15339
15340 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15341 for ncn_progname in gm2; do
15342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15343 set dummy ${ncn_progname}; ac_word=$2
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15345 $as_echo_n "checking for $ac_word... " >&6; }
15346 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 if test -n "$GM2_FOR_TARGET"; then
15350 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15351 else
15352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15353 for as_dir in $PATH
15354 do
15355 IFS=$as_save_IFS
15356 test -z "$as_dir" && as_dir=.
15357 for ac_exec_ext in '' $ac_executable_extensions; do
15358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15359 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15361 break 2
15362 fi
15363 done
15364 done
15365 IFS=$as_save_IFS
15366
15367 fi
15368 fi
15369 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15370 if test -n "$GM2_FOR_TARGET"; then
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15372 $as_echo "$GM2_FOR_TARGET" >&6; }
15373 else
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15375 $as_echo "no" >&6; }
15376 fi
15377
15378
15379 done
15380 fi
15381
15382 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15383 for ncn_progname in gm2; do
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15385 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15386 if test -x $with_build_time_tools/${ncn_progname}; then
15387 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15389 $as_echo "yes" >&6; }
15390 break
15391 else
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 $as_echo "no" >&6; }
15394 fi
15395 done
15396 fi
15397
15398 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15399 for ncn_progname in gm2; do
15400 if test -n "$ncn_target_tool_prefix"; then
15401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15402 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15404 $as_echo_n "checking for $ac_word... " >&6; }
15405 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407 else
15408 if test -n "$GM2_FOR_TARGET"; then
15409 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15410 else
15411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15412 for as_dir in $PATH
15413 do
15414 IFS=$as_save_IFS
15415 test -z "$as_dir" && as_dir=.
15416 for ac_exec_ext in '' $ac_executable_extensions; do
15417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15418 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15420 break 2
15421 fi
15422 done
15423 done
15424 IFS=$as_save_IFS
15425
15426 fi
15427 fi
15428 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15429 if test -n "$GM2_FOR_TARGET"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15431 $as_echo "$GM2_FOR_TARGET" >&6; }
15432 else
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15434 $as_echo "no" >&6; }
15435 fi
15436
15437
15438 fi
15439 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15441 set dummy ${ncn_progname}; ac_word=$2
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15443 $as_echo_n "checking for $ac_word... " >&6; }
15444 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 if test -n "$GM2_FOR_TARGET"; then
15448 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15449 else
15450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15451 for as_dir in $PATH
15452 do
15453 IFS=$as_save_IFS
15454 test -z "$as_dir" && as_dir=.
15455 for ac_exec_ext in '' $ac_executable_extensions; do
15456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15457 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15459 break 2
15460 fi
15461 done
15462 done
15463 IFS=$as_save_IFS
15464
15465 fi
15466 fi
15467 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15468 if test -n "$GM2_FOR_TARGET"; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
15470 $as_echo "$GM2_FOR_TARGET" >&6; }
15471 else
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15474 fi
15475
15476
15477 fi
15478 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15479 done
15480 fi
15481
15482 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15483 set dummy gm2
15484 if test $build = $target ; then
15485 GM2_FOR_TARGET="$2"
15486 else
15487 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15488 fi
15489 else
15490 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15491 fi
15492
15493
15494
15495 cat > conftest.c << \EOF
15496 #ifdef __GNUC__
15497 gcc_yay;
15498 #endif
15499 EOF
15500 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15501 have_gcc_for_target=yes
15502 else
15503 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15504 have_gcc_for_target=no
15505 fi
15506 rm conftest.c
15507
15508
15509
15510
15511 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15512 if test -n "$with_build_time_tools"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
15514 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
15515 if test -x $with_build_time_tools/ar; then
15516 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15517 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
15519 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15522 $as_echo "no" >&6; }
15523 fi
15524 elif test $build != $host && test $have_gcc_for_target = yes; then
15525 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15526 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15527 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15528 fi
15529 fi
15530 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15531 # Extract the first word of "ar", so it can be a program name with args.
15532 set dummy ar; ac_word=$2
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15534 $as_echo_n "checking for $ac_word... " >&6; }
15535 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 case $AR_FOR_TARGET in
15539 [\\/]* | ?:[\\/]*)
15540 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15541 ;;
15542 *)
15543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15544 for as_dir in $gcc_cv_tool_dirs
15545 do
15546 IFS=$as_save_IFS
15547 test -z "$as_dir" && as_dir=.
15548 for ac_exec_ext in '' $ac_executable_extensions; do
15549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15550 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15552 break 2
15553 fi
15554 done
15555 done
15556 IFS=$as_save_IFS
15557
15558 ;;
15559 esac
15560 fi
15561 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15562 if test -n "$AR_FOR_TARGET"; then
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15564 $as_echo "$AR_FOR_TARGET" >&6; }
15565 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15568 fi
15569
15570
15571 fi
15572 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15573
15574
15575 if test -n "$AR_FOR_TARGET"; then
15576 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15577 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15578 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15579 fi
15580
15581 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15582 for ncn_progname in ar; do
15583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15584 set dummy ${ncn_progname}; ac_word=$2
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15586 $as_echo_n "checking for $ac_word... " >&6; }
15587 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 if test -n "$AR_FOR_TARGET"; then
15591 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15592 else
15593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15594 for as_dir in $PATH
15595 do
15596 IFS=$as_save_IFS
15597 test -z "$as_dir" && as_dir=.
15598 for ac_exec_ext in '' $ac_executable_extensions; do
15599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15600 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15602 break 2
15603 fi
15604 done
15605 done
15606 IFS=$as_save_IFS
15607
15608 fi
15609 fi
15610 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15611 if test -n "$AR_FOR_TARGET"; then
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15613 $as_echo "$AR_FOR_TARGET" >&6; }
15614 else
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15616 $as_echo "no" >&6; }
15617 fi
15618
15619
15620 done
15621 fi
15622
15623 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15624 for ncn_progname in ar; do
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15626 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15627 if test -x $with_build_time_tools/${ncn_progname}; then
15628 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15630 $as_echo "yes" >&6; }
15631 break
15632 else
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634 $as_echo "no" >&6; }
15635 fi
15636 done
15637 fi
15638
15639 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15640 for ncn_progname in ar; do
15641 if test -n "$ncn_target_tool_prefix"; then
15642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15643 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15645 $as_echo_n "checking for $ac_word... " >&6; }
15646 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 if test -n "$AR_FOR_TARGET"; then
15650 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15651 else
15652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 for as_dir in $PATH
15654 do
15655 IFS=$as_save_IFS
15656 test -z "$as_dir" && as_dir=.
15657 for ac_exec_ext in '' $ac_executable_extensions; do
15658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15659 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15661 break 2
15662 fi
15663 done
15664 done
15665 IFS=$as_save_IFS
15666
15667 fi
15668 fi
15669 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15670 if test -n "$AR_FOR_TARGET"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15672 $as_echo "$AR_FOR_TARGET" >&6; }
15673 else
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15676 fi
15677
15678
15679 fi
15680 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15682 set dummy ${ncn_progname}; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688 if test -n "$AR_FOR_TARGET"; then
15689 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15690 else
15691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692 for as_dir in $PATH
15693 do
15694 IFS=$as_save_IFS
15695 test -z "$as_dir" && as_dir=.
15696 for ac_exec_ext in '' $ac_executable_extensions; do
15697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15698 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15700 break 2
15701 fi
15702 done
15703 done
15704 IFS=$as_save_IFS
15705
15706 fi
15707 fi
15708 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15709 if test -n "$AR_FOR_TARGET"; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
15711 $as_echo "$AR_FOR_TARGET" >&6; }
15712 else
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15715 fi
15716
15717
15718 fi
15719 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15720 done
15721 fi
15722
15723 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15724 set dummy ar
15725 if test $build = $target ; then
15726 AR_FOR_TARGET="$2"
15727 else
15728 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15729 fi
15730 else
15731 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15732 fi
15733
15734 else
15735 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15736 fi
15737
15738
15739
15740
15741 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15742 if test -n "$with_build_time_tools"; then
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
15744 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
15745 if test -x $with_build_time_tools/as; then
15746 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15747 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
15749 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15750 else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15753 fi
15754 elif test $build != $host && test $have_gcc_for_target = yes; then
15755 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15756 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15757 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15758 fi
15759 fi
15760 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15761 # Extract the first word of "as", so it can be a program name with args.
15762 set dummy as; ac_word=$2
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15764 $as_echo_n "checking for $ac_word... " >&6; }
15765 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768 case $AS_FOR_TARGET in
15769 [\\/]* | ?:[\\/]*)
15770 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15771 ;;
15772 *)
15773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15774 for as_dir in $gcc_cv_tool_dirs
15775 do
15776 IFS=$as_save_IFS
15777 test -z "$as_dir" && as_dir=.
15778 for ac_exec_ext in '' $ac_executable_extensions; do
15779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15780 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15782 break 2
15783 fi
15784 done
15785 done
15786 IFS=$as_save_IFS
15787
15788 ;;
15789 esac
15790 fi
15791 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15792 if test -n "$AS_FOR_TARGET"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15794 $as_echo "$AS_FOR_TARGET" >&6; }
15795 else
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797 $as_echo "no" >&6; }
15798 fi
15799
15800
15801 fi
15802 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15803
15804
15805 if test -n "$AS_FOR_TARGET"; then
15806 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15807 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15808 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15809 fi
15810
15811 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15812 for ncn_progname in as; do
15813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15814 set dummy ${ncn_progname}; ac_word=$2
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15816 $as_echo_n "checking for $ac_word... " >&6; }
15817 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15820 if test -n "$AS_FOR_TARGET"; then
15821 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15822 else
15823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824 for as_dir in $PATH
15825 do
15826 IFS=$as_save_IFS
15827 test -z "$as_dir" && as_dir=.
15828 for ac_exec_ext in '' $ac_executable_extensions; do
15829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15830 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15832 break 2
15833 fi
15834 done
15835 done
15836 IFS=$as_save_IFS
15837
15838 fi
15839 fi
15840 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15841 if test -n "$AS_FOR_TARGET"; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15843 $as_echo "$AS_FOR_TARGET" >&6; }
15844 else
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 $as_echo "no" >&6; }
15847 fi
15848
15849
15850 done
15851 fi
15852
15853 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15854 for ncn_progname in as; do
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15857 if test -x $with_build_time_tools/${ncn_progname}; then
15858 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15860 $as_echo "yes" >&6; }
15861 break
15862 else
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15865 fi
15866 done
15867 fi
15868
15869 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15870 for ncn_progname in as; do
15871 if test -n "$ncn_target_tool_prefix"; then
15872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15875 $as_echo_n "checking for $ac_word... " >&6; }
15876 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15877 $as_echo_n "(cached) " >&6
15878 else
15879 if test -n "$AS_FOR_TARGET"; then
15880 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15881 else
15882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15883 for as_dir in $PATH
15884 do
15885 IFS=$as_save_IFS
15886 test -z "$as_dir" && as_dir=.
15887 for ac_exec_ext in '' $ac_executable_extensions; do
15888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15889 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15891 break 2
15892 fi
15893 done
15894 done
15895 IFS=$as_save_IFS
15896
15897 fi
15898 fi
15899 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15900 if test -n "$AS_FOR_TARGET"; then
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15902 $as_echo "$AS_FOR_TARGET" >&6; }
15903 else
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905 $as_echo "no" >&6; }
15906 fi
15907
15908
15909 fi
15910 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15912 set dummy ${ncn_progname}; ac_word=$2
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15914 $as_echo_n "checking for $ac_word... " >&6; }
15915 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 if test -n "$AS_FOR_TARGET"; then
15919 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15920 else
15921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15922 for as_dir in $PATH
15923 do
15924 IFS=$as_save_IFS
15925 test -z "$as_dir" && as_dir=.
15926 for ac_exec_ext in '' $ac_executable_extensions; do
15927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15928 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15930 break 2
15931 fi
15932 done
15933 done
15934 IFS=$as_save_IFS
15935
15936 fi
15937 fi
15938 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15939 if test -n "$AS_FOR_TARGET"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
15941 $as_echo "$AS_FOR_TARGET" >&6; }
15942 else
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15945 fi
15946
15947
15948 fi
15949 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15950 done
15951 fi
15952
15953 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15954 set dummy as
15955 if test $build = $target ; then
15956 AS_FOR_TARGET="$2"
15957 else
15958 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15959 fi
15960 else
15961 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15962 fi
15963
15964 else
15965 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15966 fi
15967
15968
15969
15970
15971 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15972 if test -n "$with_build_time_tools"; then
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
15974 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
15975 if test -x $with_build_time_tools/dlltool; then
15976 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15977 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15979 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15983 fi
15984 elif test $build != $host && test $have_gcc_for_target = yes; then
15985 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15986 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15987 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15988 fi
15989 fi
15990 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15991 # Extract the first word of "dlltool", so it can be a program name with args.
15992 set dummy dlltool; ac_word=$2
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15994 $as_echo_n "checking for $ac_word... " >&6; }
15995 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15996 $as_echo_n "(cached) " >&6
15997 else
15998 case $DLLTOOL_FOR_TARGET in
15999 [\\/]* | ?:[\\/]*)
16000 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
16001 ;;
16002 *)
16003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16004 for as_dir in $gcc_cv_tool_dirs
16005 do
16006 IFS=$as_save_IFS
16007 test -z "$as_dir" && as_dir=.
16008 for ac_exec_ext in '' $ac_executable_extensions; do
16009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16010 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16012 break 2
16013 fi
16014 done
16015 done
16016 IFS=$as_save_IFS
16017
16018 ;;
16019 esac
16020 fi
16021 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16022 if test -n "$DLLTOOL_FOR_TARGET"; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16024 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16025 else
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027 $as_echo "no" >&6; }
16028 fi
16029
16030
16031 fi
16032 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
16033
16034
16035 if test -n "$DLLTOOL_FOR_TARGET"; then
16036 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
16037 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16038 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16039 fi
16040
16041 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16042 for ncn_progname in dlltool; do
16043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16044 set dummy ${ncn_progname}; ac_word=$2
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16046 $as_echo_n "checking for $ac_word... " >&6; }
16047 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 if test -n "$DLLTOOL_FOR_TARGET"; then
16051 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16052 else
16053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16054 for as_dir in $PATH
16055 do
16056 IFS=$as_save_IFS
16057 test -z "$as_dir" && as_dir=.
16058 for ac_exec_ext in '' $ac_executable_extensions; do
16059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16060 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16062 break 2
16063 fi
16064 done
16065 done
16066 IFS=$as_save_IFS
16067
16068 fi
16069 fi
16070 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16071 if test -n "$DLLTOOL_FOR_TARGET"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16073 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16074 else
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16076 $as_echo "no" >&6; }
16077 fi
16078
16079
16080 done
16081 fi
16082
16083 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16084 for ncn_progname in dlltool; do
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16086 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16087 if test -x $with_build_time_tools/${ncn_progname}; then
16088 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16090 $as_echo "yes" >&6; }
16091 break
16092 else
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16094 $as_echo "no" >&6; }
16095 fi
16096 done
16097 fi
16098
16099 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
16100 for ncn_progname in dlltool; do
16101 if test -n "$ncn_target_tool_prefix"; then
16102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16103 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16105 $as_echo_n "checking for $ac_word... " >&6; }
16106 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16107 $as_echo_n "(cached) " >&6
16108 else
16109 if test -n "$DLLTOOL_FOR_TARGET"; then
16110 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16111 else
16112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16113 for as_dir in $PATH
16114 do
16115 IFS=$as_save_IFS
16116 test -z "$as_dir" && as_dir=.
16117 for ac_exec_ext in '' $ac_executable_extensions; do
16118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16119 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16121 break 2
16122 fi
16123 done
16124 done
16125 IFS=$as_save_IFS
16126
16127 fi
16128 fi
16129 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16130 if test -n "$DLLTOOL_FOR_TARGET"; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16132 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16133 else
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16135 $as_echo "no" >&6; }
16136 fi
16137
16138
16139 fi
16140 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16142 set dummy ${ncn_progname}; ac_word=$2
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16144 $as_echo_n "checking for $ac_word... " >&6; }
16145 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 if test -n "$DLLTOOL_FOR_TARGET"; then
16149 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16150 else
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154 IFS=$as_save_IFS
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16158 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16160 break 2
16161 fi
16162 done
16163 done
16164 IFS=$as_save_IFS
16165
16166 fi
16167 fi
16168 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16169 if test -n "$DLLTOOL_FOR_TARGET"; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
16171 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16172 else
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16175 fi
16176
16177
16178 fi
16179 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16180 done
16181 fi
16182
16183 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16184 set dummy dlltool
16185 if test $build = $target ; then
16186 DLLTOOL_FOR_TARGET="$2"
16187 else
16188 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16189 fi
16190 else
16191 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16192 fi
16193
16194 else
16195 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16196 fi
16197
16198
16199
16200
16201 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16202 if test -n "$with_build_time_tools"; then
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
16204 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
16205 if test -x $with_build_time_tools/dsymutil; then
16206 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16207 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16209 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16210 else
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212 $as_echo "no" >&6; }
16213 fi
16214 elif test $build != $host && test $have_gcc_for_target = yes; then
16215 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16216 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16217 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16218 fi
16219 fi
16220 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16221 # Extract the first word of "dsymutil", so it can be a program name with args.
16222 set dummy dsymutil; ac_word=$2
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16224 $as_echo_n "checking for $ac_word... " >&6; }
16225 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 case $DSYMUTIL_FOR_TARGET in
16229 [\\/]* | ?:[\\/]*)
16230 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16231 ;;
16232 *)
16233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16234 for as_dir in $gcc_cv_tool_dirs
16235 do
16236 IFS=$as_save_IFS
16237 test -z "$as_dir" && as_dir=.
16238 for ac_exec_ext in '' $ac_executable_extensions; do
16239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16240 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16242 break 2
16243 fi
16244 done
16245 done
16246 IFS=$as_save_IFS
16247
16248 ;;
16249 esac
16250 fi
16251 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16252 if test -n "$DSYMUTIL_FOR_TARGET"; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16254 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16255 else
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258 fi
16259
16260
16261 fi
16262 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16263
16264
16265 if test -n "$DSYMUTIL_FOR_TARGET"; then
16266 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16267 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16268 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16269 fi
16270
16271 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16272 for ncn_progname in dsymutil; do
16273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16274 set dummy ${ncn_progname}; ac_word=$2
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16276 $as_echo_n "checking for $ac_word... " >&6; }
16277 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16278 $as_echo_n "(cached) " >&6
16279 else
16280 if test -n "$DSYMUTIL_FOR_TARGET"; then
16281 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16282 else
16283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16284 for as_dir in $PATH
16285 do
16286 IFS=$as_save_IFS
16287 test -z "$as_dir" && as_dir=.
16288 for ac_exec_ext in '' $ac_executable_extensions; do
16289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16290 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16292 break 2
16293 fi
16294 done
16295 done
16296 IFS=$as_save_IFS
16297
16298 fi
16299 fi
16300 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16301 if test -n "$DSYMUTIL_FOR_TARGET"; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16303 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16304 else
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16306 $as_echo "no" >&6; }
16307 fi
16308
16309
16310 done
16311 fi
16312
16313 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16314 for ncn_progname in dsymutil; do
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16316 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16317 if test -x $with_build_time_tools/${ncn_progname}; then
16318 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16320 $as_echo "yes" >&6; }
16321 break
16322 else
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16325 fi
16326 done
16327 fi
16328
16329 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16330 for ncn_progname in dsymutil; do
16331 if test -n "$ncn_target_tool_prefix"; then
16332 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16333 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16335 $as_echo_n "checking for $ac_word... " >&6; }
16336 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 if test -n "$DSYMUTIL_FOR_TARGET"; then
16340 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16341 else
16342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16343 for as_dir in $PATH
16344 do
16345 IFS=$as_save_IFS
16346 test -z "$as_dir" && as_dir=.
16347 for ac_exec_ext in '' $ac_executable_extensions; do
16348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16349 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16351 break 2
16352 fi
16353 done
16354 done
16355 IFS=$as_save_IFS
16356
16357 fi
16358 fi
16359 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16360 if test -n "$DSYMUTIL_FOR_TARGET"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16362 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16363 else
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16366 fi
16367
16368
16369 fi
16370 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16372 set dummy ${ncn_progname}; ac_word=$2
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16374 $as_echo_n "checking for $ac_word... " >&6; }
16375 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378 if test -n "$DSYMUTIL_FOR_TARGET"; then
16379 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16380 else
16381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382 for as_dir in $PATH
16383 do
16384 IFS=$as_save_IFS
16385 test -z "$as_dir" && as_dir=.
16386 for ac_exec_ext in '' $ac_executable_extensions; do
16387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16388 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16390 break 2
16391 fi
16392 done
16393 done
16394 IFS=$as_save_IFS
16395
16396 fi
16397 fi
16398 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16399 if test -n "$DSYMUTIL_FOR_TARGET"; then
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
16401 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16402 else
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16404 $as_echo "no" >&6; }
16405 fi
16406
16407
16408 fi
16409 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16410 done
16411 fi
16412
16413 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16414 set dummy dsymutil
16415 if test $build = $target ; then
16416 DSYMUTIL_FOR_TARGET="$2"
16417 else
16418 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16419 fi
16420 else
16421 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16422 fi
16423
16424 else
16425 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16426 fi
16427
16428
16429
16430
16431 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16432 if test -n "$with_build_time_tools"; then
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
16434 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
16435 if test -x $with_build_time_tools/ld; then
16436 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16437 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
16439 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16440 else
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16443 fi
16444 elif test $build != $host && test $have_gcc_for_target = yes; then
16445 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16446 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16447 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16448 fi
16449 fi
16450 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16451 # Extract the first word of "ld", so it can be a program name with args.
16452 set dummy ld; ac_word=$2
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16454 $as_echo_n "checking for $ac_word... " >&6; }
16455 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16456 $as_echo_n "(cached) " >&6
16457 else
16458 case $LD_FOR_TARGET in
16459 [\\/]* | ?:[\\/]*)
16460 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16461 ;;
16462 *)
16463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16464 for as_dir in $gcc_cv_tool_dirs
16465 do
16466 IFS=$as_save_IFS
16467 test -z "$as_dir" && as_dir=.
16468 for ac_exec_ext in '' $ac_executable_extensions; do
16469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16470 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16472 break 2
16473 fi
16474 done
16475 done
16476 IFS=$as_save_IFS
16477
16478 ;;
16479 esac
16480 fi
16481 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16482 if test -n "$LD_FOR_TARGET"; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16484 $as_echo "$LD_FOR_TARGET" >&6; }
16485 else
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487 $as_echo "no" >&6; }
16488 fi
16489
16490
16491 fi
16492 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16493
16494
16495 if test -n "$LD_FOR_TARGET"; then
16496 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16497 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16498 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16499 fi
16500
16501 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16502 for ncn_progname in ld; do
16503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16504 set dummy ${ncn_progname}; ac_word=$2
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16506 $as_echo_n "checking for $ac_word... " >&6; }
16507 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16508 $as_echo_n "(cached) " >&6
16509 else
16510 if test -n "$LD_FOR_TARGET"; then
16511 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16512 else
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516 IFS=$as_save_IFS
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16520 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16522 break 2
16523 fi
16524 done
16525 done
16526 IFS=$as_save_IFS
16527
16528 fi
16529 fi
16530 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16531 if test -n "$LD_FOR_TARGET"; then
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16533 $as_echo "$LD_FOR_TARGET" >&6; }
16534 else
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16536 $as_echo "no" >&6; }
16537 fi
16538
16539
16540 done
16541 fi
16542
16543 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16544 for ncn_progname in ld; do
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16546 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16547 if test -x $with_build_time_tools/${ncn_progname}; then
16548 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16550 $as_echo "yes" >&6; }
16551 break
16552 else
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16555 fi
16556 done
16557 fi
16558
16559 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16560 for ncn_progname in ld; do
16561 if test -n "$ncn_target_tool_prefix"; then
16562 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16563 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 if test -n "$LD_FOR_TARGET"; then
16570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16571 else
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16574 do
16575 IFS=$as_save_IFS
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16581 break 2
16582 fi
16583 done
16584 done
16585 IFS=$as_save_IFS
16586
16587 fi
16588 fi
16589 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16590 if test -n "$LD_FOR_TARGET"; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16592 $as_echo "$LD_FOR_TARGET" >&6; }
16593 else
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596 fi
16597
16598
16599 fi
16600 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16602 set dummy ${ncn_progname}; ac_word=$2
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16604 $as_echo_n "checking for $ac_word... " >&6; }
16605 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16606 $as_echo_n "(cached) " >&6
16607 else
16608 if test -n "$LD_FOR_TARGET"; then
16609 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16610 else
16611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16612 for as_dir in $PATH
16613 do
16614 IFS=$as_save_IFS
16615 test -z "$as_dir" && as_dir=.
16616 for ac_exec_ext in '' $ac_executable_extensions; do
16617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16618 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16620 break 2
16621 fi
16622 done
16623 done
16624 IFS=$as_save_IFS
16625
16626 fi
16627 fi
16628 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16629 if test -n "$LD_FOR_TARGET"; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
16631 $as_echo "$LD_FOR_TARGET" >&6; }
16632 else
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16634 $as_echo "no" >&6; }
16635 fi
16636
16637
16638 fi
16639 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16640 done
16641 fi
16642
16643 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16644 set dummy ld
16645 if test $build = $target ; then
16646 LD_FOR_TARGET="$2"
16647 else
16648 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16649 fi
16650 else
16651 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16652 fi
16653
16654 else
16655 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16656 fi
16657
16658
16659
16660
16661 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16662 if test -n "$with_build_time_tools"; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
16664 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
16665 if test -x $with_build_time_tools/lipo; then
16666 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16667 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
16669 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16673 fi
16674 elif test $build != $host && test $have_gcc_for_target = yes; then
16675 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16676 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16677 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16678 fi
16679 fi
16680 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16681 # Extract the first word of "lipo", so it can be a program name with args.
16682 set dummy lipo; ac_word=$2
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16684 $as_echo_n "checking for $ac_word... " >&6; }
16685 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 case $LIPO_FOR_TARGET in
16689 [\\/]* | ?:[\\/]*)
16690 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16691 ;;
16692 *)
16693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16694 for as_dir in $gcc_cv_tool_dirs
16695 do
16696 IFS=$as_save_IFS
16697 test -z "$as_dir" && as_dir=.
16698 for ac_exec_ext in '' $ac_executable_extensions; do
16699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16700 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16702 break 2
16703 fi
16704 done
16705 done
16706 IFS=$as_save_IFS
16707
16708 ;;
16709 esac
16710 fi
16711 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16712 if test -n "$LIPO_FOR_TARGET"; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16714 $as_echo "$LIPO_FOR_TARGET" >&6; }
16715 else
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717 $as_echo "no" >&6; }
16718 fi
16719
16720
16721 fi
16722 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16723
16724
16725 if test -n "$LIPO_FOR_TARGET"; then
16726 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16727 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16728 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16729 fi
16730
16731 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16732 for ncn_progname in lipo; do
16733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16734 set dummy ${ncn_progname}; ac_word=$2
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16736 $as_echo_n "checking for $ac_word... " >&6; }
16737 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16738 $as_echo_n "(cached) " >&6
16739 else
16740 if test -n "$LIPO_FOR_TARGET"; then
16741 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16742 else
16743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744 for as_dir in $PATH
16745 do
16746 IFS=$as_save_IFS
16747 test -z "$as_dir" && as_dir=.
16748 for ac_exec_ext in '' $ac_executable_extensions; do
16749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16752 break 2
16753 fi
16754 done
16755 done
16756 IFS=$as_save_IFS
16757
16758 fi
16759 fi
16760 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16761 if test -n "$LIPO_FOR_TARGET"; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16763 $as_echo "$LIPO_FOR_TARGET" >&6; }
16764 else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766 $as_echo "no" >&6; }
16767 fi
16768
16769
16770 done
16771 fi
16772
16773 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16774 for ncn_progname in lipo; do
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16776 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16777 if test -x $with_build_time_tools/${ncn_progname}; then
16778 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16780 $as_echo "yes" >&6; }
16781 break
16782 else
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16785 fi
16786 done
16787 fi
16788
16789 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16790 for ncn_progname in lipo; do
16791 if test -n "$ncn_target_tool_prefix"; then
16792 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16793 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16795 $as_echo_n "checking for $ac_word... " >&6; }
16796 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16797 $as_echo_n "(cached) " >&6
16798 else
16799 if test -n "$LIPO_FOR_TARGET"; then
16800 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16801 else
16802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16803 for as_dir in $PATH
16804 do
16805 IFS=$as_save_IFS
16806 test -z "$as_dir" && as_dir=.
16807 for ac_exec_ext in '' $ac_executable_extensions; do
16808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16809 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16811 break 2
16812 fi
16813 done
16814 done
16815 IFS=$as_save_IFS
16816
16817 fi
16818 fi
16819 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16820 if test -n "$LIPO_FOR_TARGET"; then
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16822 $as_echo "$LIPO_FOR_TARGET" >&6; }
16823 else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825 $as_echo "no" >&6; }
16826 fi
16827
16828
16829 fi
16830 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16832 set dummy ${ncn_progname}; ac_word=$2
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16834 $as_echo_n "checking for $ac_word... " >&6; }
16835 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838 if test -n "$LIPO_FOR_TARGET"; then
16839 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16840 else
16841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16842 for as_dir in $PATH
16843 do
16844 IFS=$as_save_IFS
16845 test -z "$as_dir" && as_dir=.
16846 for ac_exec_ext in '' $ac_executable_extensions; do
16847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16848 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16850 break 2
16851 fi
16852 done
16853 done
16854 IFS=$as_save_IFS
16855
16856 fi
16857 fi
16858 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16859 if test -n "$LIPO_FOR_TARGET"; then
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
16861 $as_echo "$LIPO_FOR_TARGET" >&6; }
16862 else
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16864 $as_echo "no" >&6; }
16865 fi
16866
16867
16868 fi
16869 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16870 done
16871 fi
16872
16873 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16874 set dummy lipo
16875 if test $build = $target ; then
16876 LIPO_FOR_TARGET="$2"
16877 else
16878 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16879 fi
16880 else
16881 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16882 fi
16883
16884 else
16885 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16886 fi
16887
16888
16889
16890
16891 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16892 if test -n "$with_build_time_tools"; then
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
16894 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
16895 if test -x $with_build_time_tools/nm; then
16896 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16897 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
16899 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16900 else
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16902 $as_echo "no" >&6; }
16903 fi
16904 elif test $build != $host && test $have_gcc_for_target = yes; then
16905 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16906 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16907 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16908 fi
16909 fi
16910 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16911 # Extract the first word of "nm", so it can be a program name with args.
16912 set dummy nm; ac_word=$2
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16914 $as_echo_n "checking for $ac_word... " >&6; }
16915 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16916 $as_echo_n "(cached) " >&6
16917 else
16918 case $NM_FOR_TARGET in
16919 [\\/]* | ?:[\\/]*)
16920 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16921 ;;
16922 *)
16923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16924 for as_dir in $gcc_cv_tool_dirs
16925 do
16926 IFS=$as_save_IFS
16927 test -z "$as_dir" && as_dir=.
16928 for ac_exec_ext in '' $ac_executable_extensions; do
16929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16930 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16932 break 2
16933 fi
16934 done
16935 done
16936 IFS=$as_save_IFS
16937
16938 ;;
16939 esac
16940 fi
16941 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16942 if test -n "$NM_FOR_TARGET"; then
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16944 $as_echo "$NM_FOR_TARGET" >&6; }
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947 $as_echo "no" >&6; }
16948 fi
16949
16950
16951 fi
16952 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16953
16954
16955 if test -n "$NM_FOR_TARGET"; then
16956 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16957 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16958 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16959 fi
16960
16961 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16962 for ncn_progname in nm; do
16963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16964 set dummy ${ncn_progname}; ac_word=$2
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16966 $as_echo_n "checking for $ac_word... " >&6; }
16967 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16968 $as_echo_n "(cached) " >&6
16969 else
16970 if test -n "$NM_FOR_TARGET"; then
16971 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16972 else
16973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16974 for as_dir in $PATH
16975 do
16976 IFS=$as_save_IFS
16977 test -z "$as_dir" && as_dir=.
16978 for ac_exec_ext in '' $ac_executable_extensions; do
16979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16980 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16982 break 2
16983 fi
16984 done
16985 done
16986 IFS=$as_save_IFS
16987
16988 fi
16989 fi
16990 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16991 if test -n "$NM_FOR_TARGET"; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
16993 $as_echo "$NM_FOR_TARGET" >&6; }
16994 else
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
16997 fi
16998
16999
17000 done
17001 fi
17002
17003 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
17004 for ncn_progname in nm; do
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17006 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17007 if test -x $with_build_time_tools/${ncn_progname}; then
17008 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17010 $as_echo "yes" >&6; }
17011 break
17012 else
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 $as_echo "no" >&6; }
17015 fi
17016 done
17017 fi
17018
17019 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
17020 for ncn_progname in nm; do
17021 if test -n "$ncn_target_tool_prefix"; then
17022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17025 $as_echo_n "checking for $ac_word... " >&6; }
17026 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 if test -n "$NM_FOR_TARGET"; then
17030 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17031 else
17032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17033 for as_dir in $PATH
17034 do
17035 IFS=$as_save_IFS
17036 test -z "$as_dir" && as_dir=.
17037 for ac_exec_ext in '' $ac_executable_extensions; do
17038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17039 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17041 break 2
17042 fi
17043 done
17044 done
17045 IFS=$as_save_IFS
17046
17047 fi
17048 fi
17049 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17050 if test -n "$NM_FOR_TARGET"; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17052 $as_echo "$NM_FOR_TARGET" >&6; }
17053 else
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17055 $as_echo "no" >&6; }
17056 fi
17057
17058
17059 fi
17060 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
17061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17062 set dummy ${ncn_progname}; ac_word=$2
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17064 $as_echo_n "checking for $ac_word... " >&6; }
17065 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
17066 $as_echo_n "(cached) " >&6
17067 else
17068 if test -n "$NM_FOR_TARGET"; then
17069 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
17070 else
17071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17072 for as_dir in $PATH
17073 do
17074 IFS=$as_save_IFS
17075 test -z "$as_dir" && as_dir=.
17076 for ac_exec_ext in '' $ac_executable_extensions; do
17077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17078 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
17079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17080 break 2
17081 fi
17082 done
17083 done
17084 IFS=$as_save_IFS
17085
17086 fi
17087 fi
17088 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
17089 if test -n "$NM_FOR_TARGET"; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
17091 $as_echo "$NM_FOR_TARGET" >&6; }
17092 else
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094 $as_echo "no" >&6; }
17095 fi
17096
17097
17098 fi
17099 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17100 done
17101 fi
17102
17103 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17104 set dummy nm
17105 if test $build = $target ; then
17106 NM_FOR_TARGET="$2"
17107 else
17108 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17109 fi
17110 else
17111 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17112 fi
17113
17114 else
17115 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17116 fi
17117
17118
17119
17120
17121 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17122 if test -n "$with_build_time_tools"; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
17124 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
17125 if test -x $with_build_time_tools/objcopy; then
17126 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17127 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17129 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17130 else
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17133 fi
17134 elif test $build != $host && test $have_gcc_for_target = yes; then
17135 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17136 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17137 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17138 fi
17139 fi
17140 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17141 # Extract the first word of "objcopy", so it can be a program name with args.
17142 set dummy objcopy; ac_word=$2
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17144 $as_echo_n "checking for $ac_word... " >&6; }
17145 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17146 $as_echo_n "(cached) " >&6
17147 else
17148 case $OBJCOPY_FOR_TARGET in
17149 [\\/]* | ?:[\\/]*)
17150 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17151 ;;
17152 *)
17153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17154 for as_dir in $gcc_cv_tool_dirs
17155 do
17156 IFS=$as_save_IFS
17157 test -z "$as_dir" && as_dir=.
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17160 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17162 break 2
17163 fi
17164 done
17165 done
17166 IFS=$as_save_IFS
17167
17168 ;;
17169 esac
17170 fi
17171 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17172 if test -n "$OBJCOPY_FOR_TARGET"; then
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17174 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17175 else
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179
17180
17181 fi
17182 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17183
17184
17185 if test -n "$OBJCOPY_FOR_TARGET"; then
17186 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17187 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17188 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17189 fi
17190
17191 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17192 for ncn_progname in objcopy; do
17193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17194 set dummy ${ncn_progname}; ac_word=$2
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17196 $as_echo_n "checking for $ac_word... " >&6; }
17197 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 if test -n "$OBJCOPY_FOR_TARGET"; then
17201 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17202 else
17203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17204 for as_dir in $PATH
17205 do
17206 IFS=$as_save_IFS
17207 test -z "$as_dir" && as_dir=.
17208 for ac_exec_ext in '' $ac_executable_extensions; do
17209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17210 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17212 break 2
17213 fi
17214 done
17215 done
17216 IFS=$as_save_IFS
17217
17218 fi
17219 fi
17220 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17221 if test -n "$OBJCOPY_FOR_TARGET"; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17223 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17224 else
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226 $as_echo "no" >&6; }
17227 fi
17228
17229
17230 done
17231 fi
17232
17233 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17234 for ncn_progname in objcopy; do
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17236 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17237 if test -x $with_build_time_tools/${ncn_progname}; then
17238 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17240 $as_echo "yes" >&6; }
17241 break
17242 else
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244 $as_echo "no" >&6; }
17245 fi
17246 done
17247 fi
17248
17249 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17250 for ncn_progname in objcopy; do
17251 if test -n "$ncn_target_tool_prefix"; then
17252 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17253 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17255 $as_echo_n "checking for $ac_word... " >&6; }
17256 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17257 $as_echo_n "(cached) " >&6
17258 else
17259 if test -n "$OBJCOPY_FOR_TARGET"; then
17260 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17261 else
17262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17263 for as_dir in $PATH
17264 do
17265 IFS=$as_save_IFS
17266 test -z "$as_dir" && as_dir=.
17267 for ac_exec_ext in '' $ac_executable_extensions; do
17268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17269 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17271 break 2
17272 fi
17273 done
17274 done
17275 IFS=$as_save_IFS
17276
17277 fi
17278 fi
17279 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17280 if test -n "$OBJCOPY_FOR_TARGET"; then
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17282 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17283 else
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17286 fi
17287
17288
17289 fi
17290 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17292 set dummy ${ncn_progname}; ac_word=$2
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17294 $as_echo_n "checking for $ac_word... " >&6; }
17295 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17296 $as_echo_n "(cached) " >&6
17297 else
17298 if test -n "$OBJCOPY_FOR_TARGET"; then
17299 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17300 else
17301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302 for as_dir in $PATH
17303 do
17304 IFS=$as_save_IFS
17305 test -z "$as_dir" && as_dir=.
17306 for ac_exec_ext in '' $ac_executable_extensions; do
17307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17308 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17310 break 2
17311 fi
17312 done
17313 done
17314 IFS=$as_save_IFS
17315
17316 fi
17317 fi
17318 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17319 if test -n "$OBJCOPY_FOR_TARGET"; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
17321 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17322 else
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17324 $as_echo "no" >&6; }
17325 fi
17326
17327
17328 fi
17329 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17330 done
17331 fi
17332
17333 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17334 set dummy objcopy
17335 if test $build = $target ; then
17336 OBJCOPY_FOR_TARGET="$2"
17337 else
17338 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17339 fi
17340 else
17341 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17342 fi
17343
17344 else
17345 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17346 fi
17347
17348
17349
17350
17351 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17352 if test -n "$with_build_time_tools"; then
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
17354 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
17355 if test -x $with_build_time_tools/objdump; then
17356 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17357 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17359 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17360 else
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17362 $as_echo "no" >&6; }
17363 fi
17364 elif test $build != $host && test $have_gcc_for_target = yes; then
17365 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17366 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17367 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17368 fi
17369 fi
17370 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17371 # Extract the first word of "objdump", so it can be a program name with args.
17372 set dummy objdump; ac_word=$2
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17374 $as_echo_n "checking for $ac_word... " >&6; }
17375 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17376 $as_echo_n "(cached) " >&6
17377 else
17378 case $OBJDUMP_FOR_TARGET in
17379 [\\/]* | ?:[\\/]*)
17380 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17381 ;;
17382 *)
17383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17384 for as_dir in $gcc_cv_tool_dirs
17385 do
17386 IFS=$as_save_IFS
17387 test -z "$as_dir" && as_dir=.
17388 for ac_exec_ext in '' $ac_executable_extensions; do
17389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17390 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17392 break 2
17393 fi
17394 done
17395 done
17396 IFS=$as_save_IFS
17397
17398 ;;
17399 esac
17400 fi
17401 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17402 if test -n "$OBJDUMP_FOR_TARGET"; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17404 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17405 else
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 $as_echo "no" >&6; }
17408 fi
17409
17410
17411 fi
17412 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17413
17414
17415 if test -n "$OBJDUMP_FOR_TARGET"; then
17416 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17417 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17418 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17419 fi
17420
17421 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17422 for ncn_progname in objdump; do
17423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17424 set dummy ${ncn_progname}; ac_word=$2
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17426 $as_echo_n "checking for $ac_word... " >&6; }
17427 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17428 $as_echo_n "(cached) " >&6
17429 else
17430 if test -n "$OBJDUMP_FOR_TARGET"; then
17431 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17432 else
17433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434 for as_dir in $PATH
17435 do
17436 IFS=$as_save_IFS
17437 test -z "$as_dir" && as_dir=.
17438 for ac_exec_ext in '' $ac_executable_extensions; do
17439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17440 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17442 break 2
17443 fi
17444 done
17445 done
17446 IFS=$as_save_IFS
17447
17448 fi
17449 fi
17450 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17451 if test -n "$OBJDUMP_FOR_TARGET"; then
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17453 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17454 else
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457 fi
17458
17459
17460 done
17461 fi
17462
17463 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17464 for ncn_progname in objdump; do
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17466 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17467 if test -x $with_build_time_tools/${ncn_progname}; then
17468 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17470 $as_echo "yes" >&6; }
17471 break
17472 else
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17475 fi
17476 done
17477 fi
17478
17479 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17480 for ncn_progname in objdump; do
17481 if test -n "$ncn_target_tool_prefix"; then
17482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17483 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17485 $as_echo_n "checking for $ac_word... " >&6; }
17486 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 if test -n "$OBJDUMP_FOR_TARGET"; then
17490 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17491 else
17492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493 for as_dir in $PATH
17494 do
17495 IFS=$as_save_IFS
17496 test -z "$as_dir" && as_dir=.
17497 for ac_exec_ext in '' $ac_executable_extensions; do
17498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17499 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17501 break 2
17502 fi
17503 done
17504 done
17505 IFS=$as_save_IFS
17506
17507 fi
17508 fi
17509 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17510 if test -n "$OBJDUMP_FOR_TARGET"; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17512 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17513 else
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515 $as_echo "no" >&6; }
17516 fi
17517
17518
17519 fi
17520 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17522 set dummy ${ncn_progname}; ac_word=$2
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17524 $as_echo_n "checking for $ac_word... " >&6; }
17525 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if test -n "$OBJDUMP_FOR_TARGET"; then
17529 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17530 else
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17533 do
17534 IFS=$as_save_IFS
17535 test -z "$as_dir" && as_dir=.
17536 for ac_exec_ext in '' $ac_executable_extensions; do
17537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17538 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17540 break 2
17541 fi
17542 done
17543 done
17544 IFS=$as_save_IFS
17545
17546 fi
17547 fi
17548 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17549 if test -n "$OBJDUMP_FOR_TARGET"; then
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
17551 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17552 else
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555 fi
17556
17557
17558 fi
17559 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17560 done
17561 fi
17562
17563 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17564 set dummy objdump
17565 if test $build = $target ; then
17566 OBJDUMP_FOR_TARGET="$2"
17567 else
17568 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17569 fi
17570 else
17571 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17572 fi
17573
17574 else
17575 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17576 fi
17577
17578
17579
17580
17581 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17582 if test -n "$with_build_time_tools"; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
17584 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
17585 if test -x $with_build_time_tools/otool; then
17586 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17587 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17589 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17590 else
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17592 $as_echo "no" >&6; }
17593 fi
17594 elif test $build != $host && test $have_gcc_for_target = yes; then
17595 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17596 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17597 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17598 fi
17599 fi
17600 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17601 # Extract the first word of "otool", so it can be a program name with args.
17602 set dummy otool; ac_word=$2
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17604 $as_echo_n "checking for $ac_word... " >&6; }
17605 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17606 $as_echo_n "(cached) " >&6
17607 else
17608 case $OTOOL_FOR_TARGET in
17609 [\\/]* | ?:[\\/]*)
17610 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17611 ;;
17612 *)
17613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17614 for as_dir in $gcc_cv_tool_dirs
17615 do
17616 IFS=$as_save_IFS
17617 test -z "$as_dir" && as_dir=.
17618 for ac_exec_ext in '' $ac_executable_extensions; do
17619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17620 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17622 break 2
17623 fi
17624 done
17625 done
17626 IFS=$as_save_IFS
17627
17628 ;;
17629 esac
17630 fi
17631 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17632 if test -n "$OTOOL_FOR_TARGET"; then
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17634 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17635 else
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 $as_echo "no" >&6; }
17638 fi
17639
17640
17641 fi
17642 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17643
17644
17645 if test -n "$OTOOL_FOR_TARGET"; then
17646 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17647 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17648 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17649 fi
17650
17651 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17652 for ncn_progname in otool; do
17653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17654 set dummy ${ncn_progname}; ac_word=$2
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17656 $as_echo_n "checking for $ac_word... " >&6; }
17657 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17658 $as_echo_n "(cached) " >&6
17659 else
17660 if test -n "$OTOOL_FOR_TARGET"; then
17661 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17662 else
17663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17665 do
17666 IFS=$as_save_IFS
17667 test -z "$as_dir" && as_dir=.
17668 for ac_exec_ext in '' $ac_executable_extensions; do
17669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17672 break 2
17673 fi
17674 done
17675 done
17676 IFS=$as_save_IFS
17677
17678 fi
17679 fi
17680 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17681 if test -n "$OTOOL_FOR_TARGET"; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17683 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17684 else
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686 $as_echo "no" >&6; }
17687 fi
17688
17689
17690 done
17691 fi
17692
17693 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17694 for ncn_progname in otool; do
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17696 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17697 if test -x $with_build_time_tools/${ncn_progname}; then
17698 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17700 $as_echo "yes" >&6; }
17701 break
17702 else
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17704 $as_echo "no" >&6; }
17705 fi
17706 done
17707 fi
17708
17709 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17710 for ncn_progname in otool; do
17711 if test -n "$ncn_target_tool_prefix"; then
17712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17715 $as_echo_n "checking for $ac_word... " >&6; }
17716 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 if test -n "$OTOOL_FOR_TARGET"; then
17720 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17721 else
17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17724 do
17725 IFS=$as_save_IFS
17726 test -z "$as_dir" && as_dir=.
17727 for ac_exec_ext in '' $ac_executable_extensions; do
17728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17729 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17731 break 2
17732 fi
17733 done
17734 done
17735 IFS=$as_save_IFS
17736
17737 fi
17738 fi
17739 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17740 if test -n "$OTOOL_FOR_TARGET"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17742 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17743 else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; }
17746 fi
17747
17748
17749 fi
17750 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17752 set dummy ${ncn_progname}; ac_word=$2
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17754 $as_echo_n "checking for $ac_word... " >&6; }
17755 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 if test -n "$OTOOL_FOR_TARGET"; then
17759 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17760 else
17761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17762 for as_dir in $PATH
17763 do
17764 IFS=$as_save_IFS
17765 test -z "$as_dir" && as_dir=.
17766 for ac_exec_ext in '' $ac_executable_extensions; do
17767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17768 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17770 break 2
17771 fi
17772 done
17773 done
17774 IFS=$as_save_IFS
17775
17776 fi
17777 fi
17778 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17779 if test -n "$OTOOL_FOR_TARGET"; then
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
17781 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17782 else
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784 $as_echo "no" >&6; }
17785 fi
17786
17787
17788 fi
17789 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17790 done
17791 fi
17792
17793 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17794 set dummy otool
17795 if test $build = $target ; then
17796 OTOOL_FOR_TARGET="$2"
17797 else
17798 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17799 fi
17800 else
17801 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17802 fi
17803
17804 else
17805 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17806 fi
17807
17808
17809
17810
17811 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17812 if test -n "$with_build_time_tools"; then
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
17814 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
17815 if test -x $with_build_time_tools/ranlib; then
17816 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17817 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17819 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17820 else
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17822 $as_echo "no" >&6; }
17823 fi
17824 elif test $build != $host && test $have_gcc_for_target = yes; then
17825 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17826 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17827 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17828 fi
17829 fi
17830 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17831 # Extract the first word of "ranlib", so it can be a program name with args.
17832 set dummy ranlib; ac_word=$2
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17834 $as_echo_n "checking for $ac_word... " >&6; }
17835 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17836 $as_echo_n "(cached) " >&6
17837 else
17838 case $RANLIB_FOR_TARGET in
17839 [\\/]* | ?:[\\/]*)
17840 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17841 ;;
17842 *)
17843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17844 for as_dir in $gcc_cv_tool_dirs
17845 do
17846 IFS=$as_save_IFS
17847 test -z "$as_dir" && as_dir=.
17848 for ac_exec_ext in '' $ac_executable_extensions; do
17849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17850 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17852 break 2
17853 fi
17854 done
17855 done
17856 IFS=$as_save_IFS
17857
17858 ;;
17859 esac
17860 fi
17861 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17862 if test -n "$RANLIB_FOR_TARGET"; then
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17864 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17865 else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17867 $as_echo "no" >&6; }
17868 fi
17869
17870
17871 fi
17872 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17873
17874
17875 if test -n "$RANLIB_FOR_TARGET"; then
17876 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17877 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17878 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17879 fi
17880
17881 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17882 for ncn_progname in ranlib; do
17883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17884 set dummy ${ncn_progname}; ac_word=$2
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17886 $as_echo_n "checking for $ac_word... " >&6; }
17887 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 if test -n "$RANLIB_FOR_TARGET"; then
17891 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17892 else
17893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17894 for as_dir in $PATH
17895 do
17896 IFS=$as_save_IFS
17897 test -z "$as_dir" && as_dir=.
17898 for ac_exec_ext in '' $ac_executable_extensions; do
17899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17900 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17902 break 2
17903 fi
17904 done
17905 done
17906 IFS=$as_save_IFS
17907
17908 fi
17909 fi
17910 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17911 if test -n "$RANLIB_FOR_TARGET"; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17913 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17914 else
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17916 $as_echo "no" >&6; }
17917 fi
17918
17919
17920 done
17921 fi
17922
17923 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17924 for ncn_progname in ranlib; do
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17926 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17927 if test -x $with_build_time_tools/${ncn_progname}; then
17928 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17930 $as_echo "yes" >&6; }
17931 break
17932 else
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 fi
17936 done
17937 fi
17938
17939 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17940 for ncn_progname in ranlib; do
17941 if test -n "$ncn_target_tool_prefix"; then
17942 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17943 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 if test -n "$RANLIB_FOR_TARGET"; then
17950 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17951 else
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17954 do
17955 IFS=$as_save_IFS
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17959 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17961 break 2
17962 fi
17963 done
17964 done
17965 IFS=$as_save_IFS
17966
17967 fi
17968 fi
17969 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17970 if test -n "$RANLIB_FOR_TARGET"; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
17972 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17973 else
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17976 fi
17977
17978
17979 fi
17980 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17982 set dummy ${ncn_progname}; ac_word=$2
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17984 $as_echo_n "checking for $ac_word... " >&6; }
17985 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 if test -n "$RANLIB_FOR_TARGET"; then
17989 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17990 else
17991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17992 for as_dir in $PATH
17993 do
17994 IFS=$as_save_IFS
17995 test -z "$as_dir" && as_dir=.
17996 for ac_exec_ext in '' $ac_executable_extensions; do
17997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17998 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18000 break 2
18001 fi
18002 done
18003 done
18004 IFS=$as_save_IFS
18005
18006 fi
18007 fi
18008 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
18009 if test -n "$RANLIB_FOR_TARGET"; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
18011 $as_echo "$RANLIB_FOR_TARGET" >&6; }
18012 else
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18014 $as_echo "no" >&6; }
18015 fi
18016
18017
18018 fi
18019 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
18020 done
18021 fi
18022
18023 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
18024 set dummy ranlib
18025 if test $build = $target ; then
18026 RANLIB_FOR_TARGET="$2"
18027 else
18028 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
18029 fi
18030 else
18031 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
18032 fi
18033
18034 else
18035 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
18036 fi
18037
18038
18039
18040
18041 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18042 if test -n "$with_build_time_tools"; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
18044 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
18045 if test -x $with_build_time_tools/readelf; then
18046 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
18047 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
18049 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
18050 else
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053 fi
18054 elif test $build != $host && test $have_gcc_for_target = yes; then
18055 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
18056 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
18057 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
18058 fi
18059 fi
18060 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18061 # Extract the first word of "readelf", so it can be a program name with args.
18062 set dummy readelf; ac_word=$2
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18064 $as_echo_n "checking for $ac_word... " >&6; }
18065 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
18066 $as_echo_n "(cached) " >&6
18067 else
18068 case $READELF_FOR_TARGET in
18069 [\\/]* | ?:[\\/]*)
18070 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
18071 ;;
18072 *)
18073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18074 for as_dir in $gcc_cv_tool_dirs
18075 do
18076 IFS=$as_save_IFS
18077 test -z "$as_dir" && as_dir=.
18078 for ac_exec_ext in '' $ac_executable_extensions; do
18079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18080 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18082 break 2
18083 fi
18084 done
18085 done
18086 IFS=$as_save_IFS
18087
18088 ;;
18089 esac
18090 fi
18091 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18092 if test -n "$READELF_FOR_TARGET"; then
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18094 $as_echo "$READELF_FOR_TARGET" >&6; }
18095 else
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18097 $as_echo "no" >&6; }
18098 fi
18099
18100
18101 fi
18102 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18103
18104
18105 if test -n "$READELF_FOR_TARGET"; then
18106 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18107 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18108 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18109 fi
18110
18111 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18112 for ncn_progname in readelf; do
18113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18114 set dummy ${ncn_progname}; ac_word=$2
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18116 $as_echo_n "checking for $ac_word... " >&6; }
18117 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18118 $as_echo_n "(cached) " >&6
18119 else
18120 if test -n "$READELF_FOR_TARGET"; then
18121 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18122 else
18123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18124 for as_dir in $PATH
18125 do
18126 IFS=$as_save_IFS
18127 test -z "$as_dir" && as_dir=.
18128 for ac_exec_ext in '' $ac_executable_extensions; do
18129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18130 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18132 break 2
18133 fi
18134 done
18135 done
18136 IFS=$as_save_IFS
18137
18138 fi
18139 fi
18140 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18141 if test -n "$READELF_FOR_TARGET"; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18143 $as_echo "$READELF_FOR_TARGET" >&6; }
18144 else
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18147 fi
18148
18149
18150 done
18151 fi
18152
18153 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18154 for ncn_progname in readelf; do
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18156 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18157 if test -x $with_build_time_tools/${ncn_progname}; then
18158 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18160 $as_echo "yes" >&6; }
18161 break
18162 else
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164 $as_echo "no" >&6; }
18165 fi
18166 done
18167 fi
18168
18169 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18170 for ncn_progname in readelf; do
18171 if test -n "$ncn_target_tool_prefix"; then
18172 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18173 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 if test -n "$READELF_FOR_TARGET"; then
18180 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18181 else
18182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18183 for as_dir in $PATH
18184 do
18185 IFS=$as_save_IFS
18186 test -z "$as_dir" && as_dir=.
18187 for ac_exec_ext in '' $ac_executable_extensions; do
18188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18189 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18191 break 2
18192 fi
18193 done
18194 done
18195 IFS=$as_save_IFS
18196
18197 fi
18198 fi
18199 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18200 if test -n "$READELF_FOR_TARGET"; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18202 $as_echo "$READELF_FOR_TARGET" >&6; }
18203 else
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18205 $as_echo "no" >&6; }
18206 fi
18207
18208
18209 fi
18210 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18212 set dummy ${ncn_progname}; ac_word=$2
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18214 $as_echo_n "checking for $ac_word... " >&6; }
18215 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18216 $as_echo_n "(cached) " >&6
18217 else
18218 if test -n "$READELF_FOR_TARGET"; then
18219 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18220 else
18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222 for as_dir in $PATH
18223 do
18224 IFS=$as_save_IFS
18225 test -z "$as_dir" && as_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230 break 2
18231 fi
18232 done
18233 done
18234 IFS=$as_save_IFS
18235
18236 fi
18237 fi
18238 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18239 if test -n "$READELF_FOR_TARGET"; then
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
18241 $as_echo "$READELF_FOR_TARGET" >&6; }
18242 else
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244 $as_echo "no" >&6; }
18245 fi
18246
18247
18248 fi
18249 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18250 done
18251 fi
18252
18253 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18254 set dummy readelf
18255 if test $build = $target ; then
18256 READELF_FOR_TARGET="$2"
18257 else
18258 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18259 fi
18260 else
18261 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18262 fi
18263
18264 else
18265 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18266 fi
18267
18268
18269
18270
18271 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18272 if test -n "$with_build_time_tools"; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
18274 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
18275 if test -x $with_build_time_tools/strip; then
18276 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18277 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
18279 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18280 else
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18282 $as_echo "no" >&6; }
18283 fi
18284 elif test $build != $host && test $have_gcc_for_target = yes; then
18285 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18286 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18287 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18288 fi
18289 fi
18290 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18291 # Extract the first word of "strip", so it can be a program name with args.
18292 set dummy strip; ac_word=$2
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18294 $as_echo_n "checking for $ac_word... " >&6; }
18295 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18296 $as_echo_n "(cached) " >&6
18297 else
18298 case $STRIP_FOR_TARGET in
18299 [\\/]* | ?:[\\/]*)
18300 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18301 ;;
18302 *)
18303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18304 for as_dir in $gcc_cv_tool_dirs
18305 do
18306 IFS=$as_save_IFS
18307 test -z "$as_dir" && as_dir=.
18308 for ac_exec_ext in '' $ac_executable_extensions; do
18309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18310 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18312 break 2
18313 fi
18314 done
18315 done
18316 IFS=$as_save_IFS
18317
18318 ;;
18319 esac
18320 fi
18321 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18322 if test -n "$STRIP_FOR_TARGET"; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18324 $as_echo "$STRIP_FOR_TARGET" >&6; }
18325 else
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18328 fi
18329
18330
18331 fi
18332 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18333
18334
18335 if test -n "$STRIP_FOR_TARGET"; then
18336 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18337 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18338 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18339 fi
18340
18341 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18342 for ncn_progname in strip; do
18343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18344 set dummy ${ncn_progname}; ac_word=$2
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18346 $as_echo_n "checking for $ac_word... " >&6; }
18347 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18348 $as_echo_n "(cached) " >&6
18349 else
18350 if test -n "$STRIP_FOR_TARGET"; then
18351 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18352 else
18353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18354 for as_dir in $PATH
18355 do
18356 IFS=$as_save_IFS
18357 test -z "$as_dir" && as_dir=.
18358 for ac_exec_ext in '' $ac_executable_extensions; do
18359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18360 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18362 break 2
18363 fi
18364 done
18365 done
18366 IFS=$as_save_IFS
18367
18368 fi
18369 fi
18370 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18371 if test -n "$STRIP_FOR_TARGET"; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18373 $as_echo "$STRIP_FOR_TARGET" >&6; }
18374 else
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18377 fi
18378
18379
18380 done
18381 fi
18382
18383 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18384 for ncn_progname in strip; do
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18386 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18387 if test -x $with_build_time_tools/${ncn_progname}; then
18388 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391 break
18392 else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395 fi
18396 done
18397 fi
18398
18399 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18400 for ncn_progname in strip; do
18401 if test -n "$ncn_target_tool_prefix"; then
18402 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18403 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18405 $as_echo_n "checking for $ac_word... " >&6; }
18406 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18407 $as_echo_n "(cached) " >&6
18408 else
18409 if test -n "$STRIP_FOR_TARGET"; then
18410 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18411 else
18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18414 do
18415 IFS=$as_save_IFS
18416 test -z "$as_dir" && as_dir=.
18417 for ac_exec_ext in '' $ac_executable_extensions; do
18418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18419 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18421 break 2
18422 fi
18423 done
18424 done
18425 IFS=$as_save_IFS
18426
18427 fi
18428 fi
18429 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18430 if test -n "$STRIP_FOR_TARGET"; then
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18432 $as_echo "$STRIP_FOR_TARGET" >&6; }
18433 else
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18435 $as_echo "no" >&6; }
18436 fi
18437
18438
18439 fi
18440 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18442 set dummy ${ncn_progname}; ac_word=$2
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18444 $as_echo_n "checking for $ac_word... " >&6; }
18445 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18446 $as_echo_n "(cached) " >&6
18447 else
18448 if test -n "$STRIP_FOR_TARGET"; then
18449 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18450 else
18451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18453 do
18454 IFS=$as_save_IFS
18455 test -z "$as_dir" && as_dir=.
18456 for ac_exec_ext in '' $ac_executable_extensions; do
18457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18458 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18460 break 2
18461 fi
18462 done
18463 done
18464 IFS=$as_save_IFS
18465
18466 fi
18467 fi
18468 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18469 if test -n "$STRIP_FOR_TARGET"; then
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
18471 $as_echo "$STRIP_FOR_TARGET" >&6; }
18472 else
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18474 $as_echo "no" >&6; }
18475 fi
18476
18477
18478 fi
18479 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18480 done
18481 fi
18482
18483 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18484 set dummy strip
18485 if test $build = $target ; then
18486 STRIP_FOR_TARGET="$2"
18487 else
18488 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18489 fi
18490 else
18491 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18492 fi
18493
18494 else
18495 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18496 fi
18497
18498
18499
18500
18501 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18502 if test -n "$with_build_time_tools"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
18504 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
18505 if test -x $with_build_time_tools/windres; then
18506 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18507 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18509 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18510 else
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18513 fi
18514 elif test $build != $host && test $have_gcc_for_target = yes; then
18515 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18516 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18517 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18518 fi
18519 fi
18520 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18521 # Extract the first word of "windres", so it can be a program name with args.
18522 set dummy windres; ac_word=$2
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18524 $as_echo_n "checking for $ac_word... " >&6; }
18525 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18526 $as_echo_n "(cached) " >&6
18527 else
18528 case $WINDRES_FOR_TARGET in
18529 [\\/]* | ?:[\\/]*)
18530 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18531 ;;
18532 *)
18533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18534 for as_dir in $gcc_cv_tool_dirs
18535 do
18536 IFS=$as_save_IFS
18537 test -z "$as_dir" && as_dir=.
18538 for ac_exec_ext in '' $ac_executable_extensions; do
18539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18540 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18542 break 2
18543 fi
18544 done
18545 done
18546 IFS=$as_save_IFS
18547
18548 ;;
18549 esac
18550 fi
18551 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18552 if test -n "$WINDRES_FOR_TARGET"; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18554 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18555 else
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18558 fi
18559
18560
18561 fi
18562 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18563
18564
18565 if test -n "$WINDRES_FOR_TARGET"; then
18566 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18567 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18568 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18569 fi
18570
18571 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18572 for ncn_progname in windres; do
18573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18574 set dummy ${ncn_progname}; ac_word=$2
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18576 $as_echo_n "checking for $ac_word... " >&6; }
18577 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18578 $as_echo_n "(cached) " >&6
18579 else
18580 if test -n "$WINDRES_FOR_TARGET"; then
18581 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18582 else
18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 break 2
18593 fi
18594 done
18595 done
18596 IFS=$as_save_IFS
18597
18598 fi
18599 fi
18600 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18601 if test -n "$WINDRES_FOR_TARGET"; then
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18603 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18604 else
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18607 fi
18608
18609
18610 done
18611 fi
18612
18613 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18614 for ncn_progname in windres; do
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18616 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18617 if test -x $with_build_time_tools/${ncn_progname}; then
18618 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18620 $as_echo "yes" >&6; }
18621 break
18622 else
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624 $as_echo "no" >&6; }
18625 fi
18626 done
18627 fi
18628
18629 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18630 for ncn_progname in windres; do
18631 if test -n "$ncn_target_tool_prefix"; then
18632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18633 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18635 $as_echo_n "checking for $ac_word... " >&6; }
18636 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18637 $as_echo_n "(cached) " >&6
18638 else
18639 if test -n "$WINDRES_FOR_TARGET"; then
18640 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18641 else
18642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18643 for as_dir in $PATH
18644 do
18645 IFS=$as_save_IFS
18646 test -z "$as_dir" && as_dir=.
18647 for ac_exec_ext in '' $ac_executable_extensions; do
18648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18649 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18651 break 2
18652 fi
18653 done
18654 done
18655 IFS=$as_save_IFS
18656
18657 fi
18658 fi
18659 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18660 if test -n "$WINDRES_FOR_TARGET"; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18662 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18663 else
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18665 $as_echo "no" >&6; }
18666 fi
18667
18668
18669 fi
18670 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18672 set dummy ${ncn_progname}; ac_word=$2
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18674 $as_echo_n "checking for $ac_word... " >&6; }
18675 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18676 $as_echo_n "(cached) " >&6
18677 else
18678 if test -n "$WINDRES_FOR_TARGET"; then
18679 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18680 else
18681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682 for as_dir in $PATH
18683 do
18684 IFS=$as_save_IFS
18685 test -z "$as_dir" && as_dir=.
18686 for ac_exec_ext in '' $ac_executable_extensions; do
18687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18690 break 2
18691 fi
18692 done
18693 done
18694 IFS=$as_save_IFS
18695
18696 fi
18697 fi
18698 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18699 if test -n "$WINDRES_FOR_TARGET"; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
18701 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18702 else
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18705 fi
18706
18707
18708 fi
18709 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18710 done
18711 fi
18712
18713 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18714 set dummy windres
18715 if test $build = $target ; then
18716 WINDRES_FOR_TARGET="$2"
18717 else
18718 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18719 fi
18720 else
18721 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18722 fi
18723
18724 else
18725 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18726 fi
18727
18728
18729
18730
18731 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18732 if test -n "$with_build_time_tools"; then
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
18734 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
18735 if test -x $with_build_time_tools/windmc; then
18736 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18737 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18739 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18740 else
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742 $as_echo "no" >&6; }
18743 fi
18744 elif test $build != $host && test $have_gcc_for_target = yes; then
18745 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18746 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18747 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18748 fi
18749 fi
18750 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18751 # Extract the first word of "windmc", so it can be a program name with args.
18752 set dummy windmc; ac_word=$2
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18754 $as_echo_n "checking for $ac_word... " >&6; }
18755 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18756 $as_echo_n "(cached) " >&6
18757 else
18758 case $WINDMC_FOR_TARGET in
18759 [\\/]* | ?:[\\/]*)
18760 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18761 ;;
18762 *)
18763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18764 for as_dir in $gcc_cv_tool_dirs
18765 do
18766 IFS=$as_save_IFS
18767 test -z "$as_dir" && as_dir=.
18768 for ac_exec_ext in '' $ac_executable_extensions; do
18769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18770 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18772 break 2
18773 fi
18774 done
18775 done
18776 IFS=$as_save_IFS
18777
18778 ;;
18779 esac
18780 fi
18781 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18782 if test -n "$WINDMC_FOR_TARGET"; then
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18784 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18785 else
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787 $as_echo "no" >&6; }
18788 fi
18789
18790
18791 fi
18792 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18793
18794
18795 if test -n "$WINDMC_FOR_TARGET"; then
18796 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18797 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18798 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18799 fi
18800
18801 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18802 for ncn_progname in windmc; do
18803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18804 set dummy ${ncn_progname}; ac_word=$2
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18806 $as_echo_n "checking for $ac_word... " >&6; }
18807 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18808 $as_echo_n "(cached) " >&6
18809 else
18810 if test -n "$WINDMC_FOR_TARGET"; then
18811 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18812 else
18813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18814 for as_dir in $PATH
18815 do
18816 IFS=$as_save_IFS
18817 test -z "$as_dir" && as_dir=.
18818 for ac_exec_ext in '' $ac_executable_extensions; do
18819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18820 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18822 break 2
18823 fi
18824 done
18825 done
18826 IFS=$as_save_IFS
18827
18828 fi
18829 fi
18830 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18831 if test -n "$WINDMC_FOR_TARGET"; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18833 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18834 else
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836 $as_echo "no" >&6; }
18837 fi
18838
18839
18840 done
18841 fi
18842
18843 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18844 for ncn_progname in windmc; do
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
18846 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
18847 if test -x $with_build_time_tools/${ncn_progname}; then
18848 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18850 $as_echo "yes" >&6; }
18851 break
18852 else
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18854 $as_echo "no" >&6; }
18855 fi
18856 done
18857 fi
18858
18859 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18860 for ncn_progname in windmc; do
18861 if test -n "$ncn_target_tool_prefix"; then
18862 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18863 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18865 $as_echo_n "checking for $ac_word... " >&6; }
18866 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18867 $as_echo_n "(cached) " >&6
18868 else
18869 if test -n "$WINDMC_FOR_TARGET"; then
18870 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18871 else
18872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18873 for as_dir in $PATH
18874 do
18875 IFS=$as_save_IFS
18876 test -z "$as_dir" && as_dir=.
18877 for ac_exec_ext in '' $ac_executable_extensions; do
18878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18879 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18881 break 2
18882 fi
18883 done
18884 done
18885 IFS=$as_save_IFS
18886
18887 fi
18888 fi
18889 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18890 if test -n "$WINDMC_FOR_TARGET"; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18892 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18893 else
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18895 $as_echo "no" >&6; }
18896 fi
18897
18898
18899 fi
18900 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18902 set dummy ${ncn_progname}; ac_word=$2
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18904 $as_echo_n "checking for $ac_word... " >&6; }
18905 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18906 $as_echo_n "(cached) " >&6
18907 else
18908 if test -n "$WINDMC_FOR_TARGET"; then
18909 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18910 else
18911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914 IFS=$as_save_IFS
18915 test -z "$as_dir" && as_dir=.
18916 for ac_exec_ext in '' $ac_executable_extensions; do
18917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920 break 2
18921 fi
18922 done
18923 done
18924 IFS=$as_save_IFS
18925
18926 fi
18927 fi
18928 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18929 if test -n "$WINDMC_FOR_TARGET"; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
18931 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18932 else
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18934 $as_echo "no" >&6; }
18935 fi
18936
18937
18938 fi
18939 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18940 done
18941 fi
18942
18943 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18944 set dummy windmc
18945 if test $build = $target ; then
18946 WINDMC_FOR_TARGET="$2"
18947 else
18948 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18949 fi
18950 else
18951 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18952 fi
18953
18954 else
18955 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18956 fi
18957
18958
18959 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18960
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
18962 $as_echo_n "checking where to find the target ar... " >&6; }
18963 if test "x${build}" != "x${host}" ; then
18964 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18965 # We already found the complete path
18966 ac_dir=`dirname $AR_FOR_TARGET`
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18968 $as_echo "pre-installed in $ac_dir" >&6; }
18969 else
18970 # Canadian cross, just use what we found
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18972 $as_echo "pre-installed" >&6; }
18973 fi
18974 else
18975 ok=yes
18976 case " ${configdirs} " in
18977 *" binutils "*) ;;
18978 *) ok=no ;;
18979 esac
18980
18981 if test $ok = yes; then
18982 # An in-tree tool is available and we can use it
18983 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18985 $as_echo "just compiled" >&6; }
18986 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
18987 # We already found the complete path
18988 ac_dir=`dirname $AR_FOR_TARGET`
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18990 $as_echo "pre-installed in $ac_dir" >&6; }
18991 elif test "x$target" = "x$host"; then
18992 # We can use an host tool
18993 AR_FOR_TARGET='$(AR)'
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18995 $as_echo "host tool" >&6; }
18996 else
18997 # We need a cross tool
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18999 $as_echo "pre-installed" >&6; }
19000 fi
19001 fi
19002
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
19004 $as_echo_n "checking where to find the target as... " >&6; }
19005 if test "x${build}" != "x${host}" ; then
19006 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19007 # We already found the complete path
19008 ac_dir=`dirname $AS_FOR_TARGET`
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19010 $as_echo "pre-installed in $ac_dir" >&6; }
19011 else
19012 # Canadian cross, just use what we found
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19014 $as_echo "pre-installed" >&6; }
19015 fi
19016 else
19017 ok=yes
19018 case " ${configdirs} " in
19019 *" gas "*) ;;
19020 *) ok=no ;;
19021 esac
19022
19023 if test $ok = yes; then
19024 # An in-tree tool is available and we can use it
19025 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19027 $as_echo "just compiled" >&6; }
19028 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
19029 # We already found the complete path
19030 ac_dir=`dirname $AS_FOR_TARGET`
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19032 $as_echo "pre-installed in $ac_dir" >&6; }
19033 elif test "x$target" = "x$host"; then
19034 # We can use an host tool
19035 AS_FOR_TARGET='$(AS)'
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19037 $as_echo "host tool" >&6; }
19038 else
19039 # We need a cross tool
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19041 $as_echo "pre-installed" >&6; }
19042 fi
19043 fi
19044
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
19046 $as_echo_n "checking where to find the target cc... " >&6; }
19047 if test "x${build}" != "x${host}" ; then
19048 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19049 # We already found the complete path
19050 ac_dir=`dirname $CC_FOR_TARGET`
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19052 $as_echo "pre-installed in $ac_dir" >&6; }
19053 else
19054 # Canadian cross, just use what we found
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19056 $as_echo "pre-installed" >&6; }
19057 fi
19058 else
19059 ok=yes
19060 case " ${configdirs} " in
19061 *" gcc "*) ;;
19062 *) ok=no ;;
19063 esac
19064
19065 if test $ok = yes; then
19066 # An in-tree tool is available and we can use it
19067 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19069 $as_echo "just compiled" >&6; }
19070 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
19071 # We already found the complete path
19072 ac_dir=`dirname $CC_FOR_TARGET`
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19074 $as_echo "pre-installed in $ac_dir" >&6; }
19075 elif test "x$target" = "x$host"; then
19076 # We can use an host tool
19077 CC_FOR_TARGET='$(CC)'
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19079 $as_echo "host tool" >&6; }
19080 else
19081 # We need a cross tool
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19083 $as_echo "pre-installed" >&6; }
19084 fi
19085 fi
19086
19087 case $target in
19088 *-*-darwin*)
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19090 $as_echo_n "checking where to find the target c++... " >&6; }
19091 if test "x${build}" != "x${host}" ; then
19092 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19093 # We already found the complete path
19094 ac_dir=`dirname $CXX_FOR_TARGET`
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19096 $as_echo "pre-installed in $ac_dir" >&6; }
19097 else
19098 # Canadian cross, just use what we found
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19100 $as_echo "pre-installed" >&6; }
19101 fi
19102 else
19103 ok=yes
19104 case " ${configdirs} " in
19105 *" gcc "*) ;;
19106 *) ok=no ;;
19107 esac
19108 case ,${enable_languages}, in
19109 *,c++,*) ;;
19110 *) ok=no ;;
19111 esac
19112 if test $ok = yes; then
19113 # An in-tree tool is available and we can use it
19114 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'
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19116 $as_echo "just compiled" >&6; }
19117 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19118 # We already found the complete path
19119 ac_dir=`dirname $CXX_FOR_TARGET`
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19121 $as_echo "pre-installed in $ac_dir" >&6; }
19122 elif test "x$target" = "x$host"; then
19123 # We can use an host tool
19124 CXX_FOR_TARGET='$(CXX)'
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19126 $as_echo "host tool" >&6; }
19127 else
19128 # We need a cross tool
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19130 $as_echo "pre-installed" >&6; }
19131 fi
19132 fi
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19135 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19136 if test "x${build}" != "x${host}" ; then
19137 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19138 # We already found the complete path
19139 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19141 $as_echo "pre-installed in $ac_dir" >&6; }
19142 else
19143 # Canadian cross, just use what we found
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19145 $as_echo "pre-installed" >&6; }
19146 fi
19147 else
19148 ok=yes
19149 case " ${configdirs} " in
19150 *" gcc "*) ;;
19151 *) ok=no ;;
19152 esac
19153 case ,${enable_languages}, in
19154 *,c++,*) ;;
19155 *) ok=no ;;
19156 esac
19157 if test $ok = yes; then
19158 # An in-tree tool is available and we can use it
19159 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'
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19161 $as_echo "just compiled" >&6; }
19162 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19163 # We already found the complete path
19164 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19166 $as_echo "pre-installed in $ac_dir" >&6; }
19167 elif test "x$target" = "x$host"; then
19168 # We can use an host tool
19169 RAW_CXX_FOR_TARGET='$(CXX)'
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19171 $as_echo "host tool" >&6; }
19172 else
19173 # We need a cross tool
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19175 $as_echo "pre-installed" >&6; }
19176 fi
19177 fi
19178
19179 ;;
19180 *)
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
19182 $as_echo_n "checking where to find the target c++... " >&6; }
19183 if test "x${build}" != "x${host}" ; then
19184 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19185 # We already found the complete path
19186 ac_dir=`dirname $CXX_FOR_TARGET`
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19188 $as_echo "pre-installed in $ac_dir" >&6; }
19189 else
19190 # Canadian cross, just use what we found
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19192 $as_echo "pre-installed" >&6; }
19193 fi
19194 else
19195 ok=yes
19196 case " ${configdirs} " in
19197 *" gcc "*) ;;
19198 *) ok=no ;;
19199 esac
19200 case ,${enable_languages}, in
19201 *,c++,*) ;;
19202 *) ok=no ;;
19203 esac
19204 if test $ok = yes; then
19205 # An in-tree tool is available and we can use it
19206 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'
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19208 $as_echo "just compiled" >&6; }
19209 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
19210 # We already found the complete path
19211 ac_dir=`dirname $CXX_FOR_TARGET`
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19213 $as_echo "pre-installed in $ac_dir" >&6; }
19214 elif test "x$target" = "x$host"; then
19215 # We can use an host tool
19216 CXX_FOR_TARGET='$(CXX)'
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19218 $as_echo "host tool" >&6; }
19219 else
19220 # We need a cross tool
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19222 $as_echo "pre-installed" >&6; }
19223 fi
19224 fi
19225
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
19227 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
19228 if test "x${build}" != "x${host}" ; then
19229 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19230 # We already found the complete path
19231 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19233 $as_echo "pre-installed in $ac_dir" >&6; }
19234 else
19235 # Canadian cross, just use what we found
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19237 $as_echo "pre-installed" >&6; }
19238 fi
19239 else
19240 ok=yes
19241 case " ${configdirs} " in
19242 *" gcc "*) ;;
19243 *) ok=no ;;
19244 esac
19245 case ,${enable_languages}, in
19246 *,c++,*) ;;
19247 *) ok=no ;;
19248 esac
19249 if test $ok = yes; then
19250 # An in-tree tool is available and we can use it
19251 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'
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19253 $as_echo "just compiled" >&6; }
19254 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
19255 # We already found the complete path
19256 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19258 $as_echo "pre-installed in $ac_dir" >&6; }
19259 elif test "x$target" = "x$host"; then
19260 # We can use an host tool
19261 RAW_CXX_FOR_TARGET='$(CXX)'
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19263 $as_echo "host tool" >&6; }
19264 else
19265 # We need a cross tool
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19267 $as_echo "pre-installed" >&6; }
19268 fi
19269 fi
19270
19271 ;;
19272 esac
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
19274 $as_echo_n "checking where to find the target dlltool... " >&6; }
19275 if test "x${build}" != "x${host}" ; then
19276 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19277 # We already found the complete path
19278 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19280 $as_echo "pre-installed in $ac_dir" >&6; }
19281 else
19282 # Canadian cross, just use what we found
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19284 $as_echo "pre-installed" >&6; }
19285 fi
19286 else
19287 ok=yes
19288 case " ${configdirs} " in
19289 *" binutils "*) ;;
19290 *) ok=no ;;
19291 esac
19292
19293 if test $ok = yes; then
19294 # An in-tree tool is available and we can use it
19295 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19297 $as_echo "just compiled" >&6; }
19298 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
19299 # We already found the complete path
19300 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19302 $as_echo "pre-installed in $ac_dir" >&6; }
19303 elif test "x$target" = "x$host"; then
19304 # We can use an host tool
19305 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19307 $as_echo "host tool" >&6; }
19308 else
19309 # We need a cross tool
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19311 $as_echo "pre-installed" >&6; }
19312 fi
19313 fi
19314
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
19316 $as_echo_n "checking where to find the target dsymutil... " >&6; }
19317 if test "x${build}" != "x${host}" ; then
19318 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19319 # We already found the complete path
19320 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19322 $as_echo "pre-installed in $ac_dir" >&6; }
19323 else
19324 # Canadian cross, just use what we found
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19326 $as_echo "pre-installed" >&6; }
19327 fi
19328 else
19329 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
19330 # We already found the complete path
19331 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19333 $as_echo "pre-installed in $ac_dir" >&6; }
19334 elif test "x$target" = "x$host"; then
19335 # We can use an host tool
19336 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19338 $as_echo "host tool" >&6; }
19339 else
19340 # We need a cross tool
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19342 $as_echo "pre-installed" >&6; }
19343 fi
19344 fi
19345
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
19347 $as_echo_n "checking where to find the target gcc... " >&6; }
19348 if test "x${build}" != "x${host}" ; then
19349 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19350 # We already found the complete path
19351 ac_dir=`dirname $GCC_FOR_TARGET`
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19353 $as_echo "pre-installed in $ac_dir" >&6; }
19354 else
19355 # Canadian cross, just use what we found
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19357 $as_echo "pre-installed" >&6; }
19358 fi
19359 else
19360 ok=yes
19361 case " ${configdirs} " in
19362 *" gcc "*) ;;
19363 *) ok=no ;;
19364 esac
19365
19366 if test $ok = yes; then
19367 # An in-tree tool is available and we can use it
19368 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19370 $as_echo "just compiled" >&6; }
19371 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
19372 # We already found the complete path
19373 ac_dir=`dirname $GCC_FOR_TARGET`
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19375 $as_echo "pre-installed in $ac_dir" >&6; }
19376 elif test "x$target" = "x$host"; then
19377 # We can use an host tool
19378 GCC_FOR_TARGET='$()'
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19380 $as_echo "host tool" >&6; }
19381 else
19382 # We need a cross tool
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19384 $as_echo "pre-installed" >&6; }
19385 fi
19386 fi
19387
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
19389 $as_echo_n "checking where to find the target gfortran... " >&6; }
19390 if test "x${build}" != "x${host}" ; then
19391 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19392 # We already found the complete path
19393 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19395 $as_echo "pre-installed in $ac_dir" >&6; }
19396 else
19397 # Canadian cross, just use what we found
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19399 $as_echo "pre-installed" >&6; }
19400 fi
19401 else
19402 ok=yes
19403 case " ${configdirs} " in
19404 *" gcc "*) ;;
19405 *) ok=no ;;
19406 esac
19407 case ,${enable_languages}, in
19408 *,fortran,*) ;;
19409 *) ok=no ;;
19410 esac
19411 if test $ok = yes; then
19412 # An in-tree tool is available and we can use it
19413 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19415 $as_echo "just compiled" >&6; }
19416 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
19417 # We already found the complete path
19418 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19420 $as_echo "pre-installed in $ac_dir" >&6; }
19421 elif test "x$target" = "x$host"; then
19422 # We can use an host tool
19423 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19425 $as_echo "host tool" >&6; }
19426 else
19427 # We need a cross tool
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19429 $as_echo "pre-installed" >&6; }
19430 fi
19431 fi
19432
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
19434 $as_echo_n "checking where to find the target gccgo... " >&6; }
19435 if test "x${build}" != "x${host}" ; then
19436 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19437 # We already found the complete path
19438 ac_dir=`dirname $GOC_FOR_TARGET`
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19440 $as_echo "pre-installed in $ac_dir" >&6; }
19441 else
19442 # Canadian cross, just use what we found
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19444 $as_echo "pre-installed" >&6; }
19445 fi
19446 else
19447 ok=yes
19448 case " ${configdirs} " in
19449 *" gcc "*) ;;
19450 *) ok=no ;;
19451 esac
19452 case ,${enable_languages}, in
19453 *,go,*) ;;
19454 *) ok=no ;;
19455 esac
19456 if test $ok = yes; then
19457 # An in-tree tool is available and we can use it
19458 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19460 $as_echo "just compiled" >&6; }
19461 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
19462 # We already found the complete path
19463 ac_dir=`dirname $GOC_FOR_TARGET`
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19465 $as_echo "pre-installed in $ac_dir" >&6; }
19466 elif test "x$target" = "x$host"; then
19467 # We can use an host tool
19468 GOC_FOR_TARGET='$(GOC)'
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19470 $as_echo "host tool" >&6; }
19471 else
19472 # We need a cross tool
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19474 $as_echo "pre-installed" >&6; }
19475 fi
19476 fi
19477
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
19479 $as_echo_n "checking where to find the target gdc... " >&6; }
19480 if test "x${build}" != "x${host}" ; then
19481 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19482 # We already found the complete path
19483 ac_dir=`dirname $GDC_FOR_TARGET`
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19485 $as_echo "pre-installed in $ac_dir" >&6; }
19486 else
19487 # Canadian cross, just use what we found
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19489 $as_echo "pre-installed" >&6; }
19490 fi
19491 else
19492 ok=yes
19493 case " ${configdirs} " in
19494 *" gcc "*) ;;
19495 *) ok=no ;;
19496 esac
19497 case ,${enable_languages}, in
19498 *,d,*) ;;
19499 *) ok=no ;;
19500 esac
19501 if test $ok = yes; then
19502 # An in-tree tool is available and we can use it
19503 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19505 $as_echo "just compiled" >&6; }
19506 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
19507 # We already found the complete path
19508 ac_dir=`dirname $GDC_FOR_TARGET`
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19510 $as_echo "pre-installed in $ac_dir" >&6; }
19511 elif test "x$target" = "x$host"; then
19512 # We can use an host tool
19513 GDC_FOR_TARGET='$(GDC)'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19515 $as_echo "host tool" >&6; }
19516 else
19517 # We need a cross tool
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19519 $as_echo "pre-installed" >&6; }
19520 fi
19521 fi
19522
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
19524 $as_echo_n "checking where to find the target gm2... " >&6; }
19525 if test "x${build}" != "x${host}" ; then
19526 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19527 # We already found the complete path
19528 ac_dir=`dirname $GM2_FOR_TARGET`
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19530 $as_echo "pre-installed in $ac_dir" >&6; }
19531 else
19532 # Canadian cross, just use what we found
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19534 $as_echo "pre-installed" >&6; }
19535 fi
19536 else
19537 ok=yes
19538 case " ${configdirs} " in
19539 *" gcc "*) ;;
19540 *) ok=no ;;
19541 esac
19542 case ,${enable_languages}, in
19543 *,m2,*) ;;
19544 *) ok=no ;;
19545 esac
19546 if test $ok = yes; then
19547 # An in-tree tool is available and we can use it
19548 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19550 $as_echo "just compiled" >&6; }
19551 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
19552 # We already found the complete path
19553 ac_dir=`dirname $GM2_FOR_TARGET`
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19555 $as_echo "pre-installed in $ac_dir" >&6; }
19556 elif test "x$target" = "x$host"; then
19557 # We can use an host tool
19558 GM2_FOR_TARGET='$(GM2)'
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19560 $as_echo "host tool" >&6; }
19561 else
19562 # We need a cross tool
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19564 $as_echo "pre-installed" >&6; }
19565 fi
19566 fi
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
19569 $as_echo_n "checking where to find the target ld... " >&6; }
19570 if test "x${build}" != "x${host}" ; then
19571 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19572 # We already found the complete path
19573 ac_dir=`dirname $LD_FOR_TARGET`
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19575 $as_echo "pre-installed in $ac_dir" >&6; }
19576 else
19577 # Canadian cross, just use what we found
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19579 $as_echo "pre-installed" >&6; }
19580 fi
19581 else
19582 ok=yes
19583 case " ${configdirs} " in
19584 *" ld "*) ;;
19585 *) ok=no ;;
19586 esac
19587
19588 if test $ok = yes; then
19589 # An in-tree tool is available and we can use it
19590 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19592 $as_echo "just compiled" >&6; }
19593 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
19594 # We already found the complete path
19595 ac_dir=`dirname $LD_FOR_TARGET`
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19597 $as_echo "pre-installed in $ac_dir" >&6; }
19598 elif test "x$target" = "x$host"; then
19599 # We can use an host tool
19600 LD_FOR_TARGET='$(LD)'
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19602 $as_echo "host tool" >&6; }
19603 else
19604 # We need a cross tool
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19606 $as_echo "pre-installed" >&6; }
19607 fi
19608 fi
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
19611 $as_echo_n "checking where to find the target lipo... " >&6; }
19612 if test "x${build}" != "x${host}" ; then
19613 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19614 # We already found the complete path
19615 ac_dir=`dirname $LIPO_FOR_TARGET`
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19617 $as_echo "pre-installed in $ac_dir" >&6; }
19618 else
19619 # Canadian cross, just use what we found
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19621 $as_echo "pre-installed" >&6; }
19622 fi
19623 else
19624 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
19625 # We already found the complete path
19626 ac_dir=`dirname $LIPO_FOR_TARGET`
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19628 $as_echo "pre-installed in $ac_dir" >&6; }
19629 elif test "x$target" = "x$host"; then
19630 # We can use an host tool
19631 LIPO_FOR_TARGET='$(LIPO)'
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19633 $as_echo "host tool" >&6; }
19634 else
19635 # We need a cross tool
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19637 $as_echo "pre-installed" >&6; }
19638 fi
19639 fi
19640
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
19642 $as_echo_n "checking where to find the target nm... " >&6; }
19643 if test "x${build}" != "x${host}" ; then
19644 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19645 # We already found the complete path
19646 ac_dir=`dirname $NM_FOR_TARGET`
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19648 $as_echo "pre-installed in $ac_dir" >&6; }
19649 else
19650 # Canadian cross, just use what we found
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19652 $as_echo "pre-installed" >&6; }
19653 fi
19654 else
19655 ok=yes
19656 case " ${configdirs} " in
19657 *" binutils "*) ;;
19658 *) ok=no ;;
19659 esac
19660
19661 if test $ok = yes; then
19662 # An in-tree tool is available and we can use it
19663 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19665 $as_echo "just compiled" >&6; }
19666 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
19667 # We already found the complete path
19668 ac_dir=`dirname $NM_FOR_TARGET`
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19670 $as_echo "pre-installed in $ac_dir" >&6; }
19671 elif test "x$target" = "x$host"; then
19672 # We can use an host tool
19673 NM_FOR_TARGET='$(NM)'
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19675 $as_echo "host tool" >&6; }
19676 else
19677 # We need a cross tool
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19679 $as_echo "pre-installed" >&6; }
19680 fi
19681 fi
19682
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
19684 $as_echo_n "checking where to find the target objcopy... " >&6; }
19685 if test "x${build}" != "x${host}" ; then
19686 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19687 # We already found the complete path
19688 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19690 $as_echo "pre-installed in $ac_dir" >&6; }
19691 else
19692 # Canadian cross, just use what we found
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19694 $as_echo "pre-installed" >&6; }
19695 fi
19696 else
19697 ok=yes
19698 case " ${configdirs} " in
19699 *" binutils "*) ;;
19700 *) ok=no ;;
19701 esac
19702
19703 if test $ok = yes; then
19704 # An in-tree tool is available and we can use it
19705 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19707 $as_echo "just compiled" >&6; }
19708 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
19709 # We already found the complete path
19710 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19712 $as_echo "pre-installed in $ac_dir" >&6; }
19713 elif test "x$target" = "x$host"; then
19714 # We can use an host tool
19715 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19717 $as_echo "host tool" >&6; }
19718 else
19719 # We need a cross tool
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19721 $as_echo "pre-installed" >&6; }
19722 fi
19723 fi
19724
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
19726 $as_echo_n "checking where to find the target objdump... " >&6; }
19727 if test "x${build}" != "x${host}" ; then
19728 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19729 # We already found the complete path
19730 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19732 $as_echo "pre-installed in $ac_dir" >&6; }
19733 else
19734 # Canadian cross, just use what we found
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19736 $as_echo "pre-installed" >&6; }
19737 fi
19738 else
19739 ok=yes
19740 case " ${configdirs} " in
19741 *" binutils "*) ;;
19742 *) ok=no ;;
19743 esac
19744
19745 if test $ok = yes; then
19746 # An in-tree tool is available and we can use it
19747 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19749 $as_echo "just compiled" >&6; }
19750 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
19751 # We already found the complete path
19752 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19754 $as_echo "pre-installed in $ac_dir" >&6; }
19755 elif test "x$target" = "x$host"; then
19756 # We can use an host tool
19757 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19759 $as_echo "host tool" >&6; }
19760 else
19761 # We need a cross tool
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19763 $as_echo "pre-installed" >&6; }
19764 fi
19765 fi
19766
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
19768 $as_echo_n "checking where to find the target otool... " >&6; }
19769 if test "x${build}" != "x${host}" ; then
19770 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19771 # We already found the complete path
19772 ac_dir=`dirname $OTOOL_FOR_TARGET`
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19774 $as_echo "pre-installed in $ac_dir" >&6; }
19775 else
19776 # Canadian cross, just use what we found
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19778 $as_echo "pre-installed" >&6; }
19779 fi
19780 else
19781 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
19782 # We already found the complete path
19783 ac_dir=`dirname $OTOOL_FOR_TARGET`
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19785 $as_echo "pre-installed in $ac_dir" >&6; }
19786 elif test "x$target" = "x$host"; then
19787 # We can use an host tool
19788 OTOOL_FOR_TARGET='$(OTOOL)'
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19790 $as_echo "host tool" >&6; }
19791 else
19792 # We need a cross tool
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19794 $as_echo "pre-installed" >&6; }
19795 fi
19796 fi
19797
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
19799 $as_echo_n "checking where to find the target ranlib... " >&6; }
19800 if test "x${build}" != "x${host}" ; then
19801 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19802 # We already found the complete path
19803 ac_dir=`dirname $RANLIB_FOR_TARGET`
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19805 $as_echo "pre-installed in $ac_dir" >&6; }
19806 else
19807 # Canadian cross, just use what we found
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19809 $as_echo "pre-installed" >&6; }
19810 fi
19811 else
19812 ok=yes
19813 case " ${configdirs} " in
19814 *" binutils "*) ;;
19815 *) ok=no ;;
19816 esac
19817
19818 if test $ok = yes; then
19819 # An in-tree tool is available and we can use it
19820 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19822 $as_echo "just compiled" >&6; }
19823 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
19824 # We already found the complete path
19825 ac_dir=`dirname $RANLIB_FOR_TARGET`
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19827 $as_echo "pre-installed in $ac_dir" >&6; }
19828 elif test "x$target" = "x$host"; then
19829 # We can use an host tool
19830 RANLIB_FOR_TARGET='$(RANLIB)'
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19832 $as_echo "host tool" >&6; }
19833 else
19834 # We need a cross tool
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19836 $as_echo "pre-installed" >&6; }
19837 fi
19838 fi
19839
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
19841 $as_echo_n "checking where to find the target readelf... " >&6; }
19842 if test "x${build}" != "x${host}" ; then
19843 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19844 # We already found the complete path
19845 ac_dir=`dirname $READELF_FOR_TARGET`
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19847 $as_echo "pre-installed in $ac_dir" >&6; }
19848 else
19849 # Canadian cross, just use what we found
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19851 $as_echo "pre-installed" >&6; }
19852 fi
19853 else
19854 ok=yes
19855 case " ${configdirs} " in
19856 *" binutils "*) ;;
19857 *) ok=no ;;
19858 esac
19859
19860 if test $ok = yes; then
19861 # An in-tree tool is available and we can use it
19862 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19864 $as_echo "just compiled" >&6; }
19865 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
19866 # We already found the complete path
19867 ac_dir=`dirname $READELF_FOR_TARGET`
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19869 $as_echo "pre-installed in $ac_dir" >&6; }
19870 elif test "x$target" = "x$host"; then
19871 # We can use an host tool
19872 READELF_FOR_TARGET='$(READELF)'
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19874 $as_echo "host tool" >&6; }
19875 else
19876 # We need a cross tool
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19878 $as_echo "pre-installed" >&6; }
19879 fi
19880 fi
19881
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
19883 $as_echo_n "checking where to find the target strip... " >&6; }
19884 if test "x${build}" != "x${host}" ; then
19885 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19886 # We already found the complete path
19887 ac_dir=`dirname $STRIP_FOR_TARGET`
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19889 $as_echo "pre-installed in $ac_dir" >&6; }
19890 else
19891 # Canadian cross, just use what we found
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19893 $as_echo "pre-installed" >&6; }
19894 fi
19895 else
19896 ok=yes
19897 case " ${configdirs} " in
19898 *" binutils "*) ;;
19899 *) ok=no ;;
19900 esac
19901
19902 if test $ok = yes; then
19903 # An in-tree tool is available and we can use it
19904 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19906 $as_echo "just compiled" >&6; }
19907 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
19908 # We already found the complete path
19909 ac_dir=`dirname $STRIP_FOR_TARGET`
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19911 $as_echo "pre-installed in $ac_dir" >&6; }
19912 elif test "x$target" = "x$host"; then
19913 # We can use an host tool
19914 STRIP_FOR_TARGET='$(STRIP)'
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19916 $as_echo "host tool" >&6; }
19917 else
19918 # We need a cross tool
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19920 $as_echo "pre-installed" >&6; }
19921 fi
19922 fi
19923
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
19925 $as_echo_n "checking where to find the target windres... " >&6; }
19926 if test "x${build}" != "x${host}" ; then
19927 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19928 # We already found the complete path
19929 ac_dir=`dirname $WINDRES_FOR_TARGET`
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19931 $as_echo "pre-installed in $ac_dir" >&6; }
19932 else
19933 # Canadian cross, just use what we found
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19935 $as_echo "pre-installed" >&6; }
19936 fi
19937 else
19938 ok=yes
19939 case " ${configdirs} " in
19940 *" binutils "*) ;;
19941 *) ok=no ;;
19942 esac
19943
19944 if test $ok = yes; then
19945 # An in-tree tool is available and we can use it
19946 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19948 $as_echo "just compiled" >&6; }
19949 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
19950 # We already found the complete path
19951 ac_dir=`dirname $WINDRES_FOR_TARGET`
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19953 $as_echo "pre-installed in $ac_dir" >&6; }
19954 elif test "x$target" = "x$host"; then
19955 # We can use an host tool
19956 WINDRES_FOR_TARGET='$(WINDRES)'
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
19958 $as_echo "host tool" >&6; }
19959 else
19960 # We need a cross tool
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19962 $as_echo "pre-installed" >&6; }
19963 fi
19964 fi
19965
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
19967 $as_echo_n "checking where to find the target windmc... " >&6; }
19968 if test "x${build}" != "x${host}" ; then
19969 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19970 # We already found the complete path
19971 ac_dir=`dirname $WINDMC_FOR_TARGET`
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19973 $as_echo "pre-installed in $ac_dir" >&6; }
19974 else
19975 # Canadian cross, just use what we found
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
19977 $as_echo "pre-installed" >&6; }
19978 fi
19979 else
19980 ok=yes
19981 case " ${configdirs} " in
19982 *" binutils "*) ;;
19983 *) ok=no ;;
19984 esac
19985
19986 if test $ok = yes; then
19987 # An in-tree tool is available and we can use it
19988 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
19990 $as_echo "just compiled" >&6; }
19991 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
19992 # We already found the complete path
19993 ac_dir=`dirname $WINDMC_FOR_TARGET`
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
19995 $as_echo "pre-installed in $ac_dir" >&6; }
19996 elif test "x$target" = "x$host"; then
19997 # We can use an host tool
19998 WINDMC_FOR_TARGET='$(WINDMC)'
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
20000 $as_echo "host tool" >&6; }
20001 else
20002 # We need a cross tool
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
20004 $as_echo "pre-installed" >&6; }
20005 fi
20006 fi
20007
20008
20009
20010
20011
20012 # Certain tools may need extra flags.
20013 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
20014 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
20015 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
20016
20017 # When building target libraries, except in a Canadian cross, we use
20018 # the same toolchain as the compiler we just built.
20019 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
20020 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
20021 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
20022 if test $host = $build; then
20023 case " $configdirs " in
20024 *" gcc "*)
20025 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
20026 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
20027 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
20028 ;;
20029 esac
20030 fi
20031
20032
20033
20034
20035
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20037 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20038 # Check whether --enable-maintainer-mode was given.
20039 if test "${enable_maintainer_mode+set}" = set; then :
20040 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20041 else
20042 USE_MAINTAINER_MODE=no
20043 fi
20044
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20046 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20047
20048
20049 if test "$USE_MAINTAINER_MODE" = yes; then
20050 MAINTAINER_MODE_TRUE=
20051 MAINTAINER_MODE_FALSE='#'
20052 else
20053 MAINTAINER_MODE_TRUE='#'
20054 MAINTAINER_MODE_FALSE=
20055 fi
20056 MAINT=$MAINTAINER_MODE_TRUE
20057
20058 # ---------------------
20059 # GCC bootstrap support
20060 # ---------------------
20061
20062 # Stage specific cflags for build.
20063 stage1_cflags="-g"
20064 case $build in
20065 vax-*-*)
20066 case ${GCC} in
20067 yes) stage1_cflags="-g -Wa,-J" ;;
20068 *) stage1_cflags="-g -J" ;;
20069 esac ;;
20070 esac
20071
20072
20073
20074 # Enable --enable-checking in stage1 of the compiler.
20075 # Check whether --enable-stage1-checking was given.
20076 if test "${enable_stage1_checking+set}" = set; then :
20077 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
20078 else
20079 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
20080 # For --disable-checking or implicit --enable-checking=release, avoid
20081 # setting --enable-checking=gc in the default stage1 checking for LTO
20082 # bootstraps. See PR62077.
20083 case $BUILD_CONFIG in
20084 *lto*)
20085 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
20086 *)
20087 stage1_checking=--enable-checking=yes,types;;
20088 esac
20089 if test "x$enable_checking" = x && \
20090 test -d ${srcdir}/gcc && \
20091 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
20092 stage1_checking=--enable-checking=yes,types,extra
20093 fi
20094 else
20095 stage1_checking=--enable-checking=$enable_checking,types
20096 fi
20097 fi
20098
20099
20100
20101 # Enable -Werror in bootstrap stage2 and later.
20102 # Check whether --enable-werror was given.
20103 if test "${enable_werror+set}" = set; then :
20104 enableval=$enable_werror;
20105 case ${enable_werror} in
20106 yes) stage2_werror_flag="--enable-werror-always" ;;
20107 *) stage2_werror_flag="" ;;
20108 esac
20109
20110 else
20111
20112 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
20113 case $BUILD_CONFIG in
20114 bootstrap-debug)
20115 stage2_werror_flag="--enable-werror-always" ;;
20116 "")
20117 stage2_werror_flag="--enable-werror-always" ;;
20118 esac
20119 fi
20120
20121 fi
20122
20123
20124
20125
20126 # Specify what files to not compare during bootstrap.
20127
20128 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
20129 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
20130 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
20131 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
20132 compare_exclusions="$compare_exclusions | gcc/cobol/parse\$(objext)"
20133 case "$target" in
20134 hppa*64*-*-hpux*) ;;
20135 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
20136 esac
20137
20138
20139 ac_config_files="$ac_config_files Makefile"
20140
20141 cat >confcache <<\_ACEOF
20142 # This file is a shell script that caches the results of configure
20143 # tests run on this system so they can be shared between configure
20144 # scripts and configure runs, see configure's option --config-cache.
20145 # It is not useful on other systems. If it contains results you don't
20146 # want to keep, you may remove or edit it.
20147 #
20148 # config.status only pays attention to the cache file if you give it
20149 # the --recheck option to rerun configure.
20150 #
20151 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20152 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20153 # following values.
20154
20155 _ACEOF
20156
20157 # The following way of writing the cache mishandles newlines in values,
20158 # but we know of no workaround that is simple, portable, and efficient.
20159 # So, we kill variables containing newlines.
20160 # Ultrix sh set writes to stderr and can't be redirected directly,
20161 # and sets the high bit in the cache file unless we assign to the vars.
20162 (
20163 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20164 eval ac_val=\$$ac_var
20165 case $ac_val in #(
20166 *${as_nl}*)
20167 case $ac_var in #(
20168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20170 esac
20171 case $ac_var in #(
20172 _ | IFS | as_nl) ;; #(
20173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20174 *) { eval $ac_var=; unset $ac_var;} ;;
20175 esac ;;
20176 esac
20177 done
20178
20179 (set) 2>&1 |
20180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20181 *${as_nl}ac_space=\ *)
20182 # `set' does not quote correctly, so add quotes: double-quote
20183 # substitution turns \\\\ into \\, and sed turns \\ into \.
20184 sed -n \
20185 "s/'/'\\\\''/g;
20186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20187 ;; #(
20188 *)
20189 # `set' quotes correctly as required by POSIX, so do not add quotes.
20190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20191 ;;
20192 esac |
20193 sort
20194 ) |
20195 sed '
20196 /^ac_cv_env_/b end
20197 t clear
20198 :clear
20199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20200 t end
20201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20202 :end' >>confcache
20203 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20204 if test -w "$cache_file"; then
20205 if test "x$cache_file" != "x/dev/null"; then
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20207 $as_echo "$as_me: updating cache $cache_file" >&6;}
20208 if test ! -f "$cache_file" || test -h "$cache_file"; then
20209 cat confcache >"$cache_file"
20210 else
20211 case $cache_file in #(
20212 */* | ?:*)
20213 mv -f confcache "$cache_file"$$ &&
20214 mv -f "$cache_file"$$ "$cache_file" ;; #(
20215 *)
20216 mv -f confcache "$cache_file" ;;
20217 esac
20218 fi
20219 fi
20220 else
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20222 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20223 fi
20224 fi
20225 rm -f confcache
20226
20227 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20228 # Let make expand exec_prefix.
20229 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20230
20231 # Transform confdefs.h into DEFS.
20232 # Protect against shell expansion while executing Makefile rules.
20233 # Protect against Makefile macro expansion.
20234 #
20235 # If the first sed substitution is executed (which looks for macros that
20236 # take arguments), then branch to the quote section. Otherwise,
20237 # look for a macro that doesn't take arguments.
20238 ac_script='
20239 :mline
20240 /\\$/{
20241 N
20242 s,\\\n,,
20243 b mline
20244 }
20245 t clear
20246 :clear
20247 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20248 t quote
20249 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20250 t quote
20251 b any
20252 :quote
20253 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20254 s/\[/\\&/g
20255 s/\]/\\&/g
20256 s/\$/$$/g
20257 H
20258 :any
20259 ${
20260 g
20261 s/^\n//
20262 s/\n/ /g
20263 p
20264 }
20265 '
20266 DEFS=`sed -n "$ac_script" confdefs.h`
20267
20268
20269 ac_libobjs=
20270 ac_ltlibobjs=
20271 U=
20272 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20273 # 1. Remove the extension, and $U if already installed.
20274 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20275 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20276 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20277 # will be set to the directory where LIBOBJS objects are built.
20278 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20279 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20280 done
20281 LIBOBJS=$ac_libobjs
20282
20283 LTLIBOBJS=$ac_ltlibobjs
20284
20285
20286
20287 : "${CONFIG_STATUS=./config.status}"
20288 ac_write_fail=0
20289 ac_clean_files_save=$ac_clean_files
20290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20292 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20293 as_write_fail=0
20294 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20295 #! $SHELL
20296 # Generated by $as_me.
20297 # Run this file to recreate the current configuration.
20298 # Compiler output produced by configure, useful for debugging
20299 # configure, is in config.log if it exists.
20300
20301 debug=false
20302 ac_cs_recheck=false
20303 ac_cs_silent=false
20304
20305 SHELL=\${CONFIG_SHELL-$SHELL}
20306 export SHELL
20307 _ASEOF
20308 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20309 ## -------------------- ##
20310 ## M4sh Initialization. ##
20311 ## -------------------- ##
20312
20313 # Be more Bourne compatible
20314 DUALCASE=1; export DUALCASE # for MKS sh
20315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20316 emulate sh
20317 NULLCMD=:
20318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20319 # is contrary to our usage. Disable this feature.
20320 alias -g '${1+"$@"}'='"$@"'
20321 setopt NO_GLOB_SUBST
20322 else
20323 case `(set -o) 2>/dev/null` in #(
20324 *posix*) :
20325 set -o posix ;; #(
20326 *) :
20327 ;;
20328 esac
20329 fi
20330
20331
20332 as_nl='
20333 '
20334 export as_nl
20335 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20336 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20337 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20339 # Prefer a ksh shell builtin over an external printf program on Solaris,
20340 # but without wasting forks for bash or zsh.
20341 if test -z "$BASH_VERSION$ZSH_VERSION" \
20342 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20343 as_echo='print -r --'
20344 as_echo_n='print -rn --'
20345 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20346 as_echo='printf %s\n'
20347 as_echo_n='printf %s'
20348 else
20349 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20350 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20351 as_echo_n='/usr/ucb/echo -n'
20352 else
20353 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20354 as_echo_n_body='eval
20355 arg=$1;
20356 case $arg in #(
20357 *"$as_nl"*)
20358 expr "X$arg" : "X\\(.*\\)$as_nl";
20359 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20360 esac;
20361 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20362 '
20363 export as_echo_n_body
20364 as_echo_n='sh -c $as_echo_n_body as_echo'
20365 fi
20366 export as_echo_body
20367 as_echo='sh -c $as_echo_body as_echo'
20368 fi
20369
20370 # The user is always right.
20371 if test "${PATH_SEPARATOR+set}" != set; then
20372 PATH_SEPARATOR=:
20373 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20374 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20375 PATH_SEPARATOR=';'
20376 }
20377 fi
20378
20379
20380 # IFS
20381 # We need space, tab and new line, in precisely that order. Quoting is
20382 # there to prevent editors from complaining about space-tab.
20383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20384 # splitting by setting IFS to empty value.)
20385 IFS=" "" $as_nl"
20386
20387 # Find who we are. Look in the path if we contain no directory separator.
20388 as_myself=
20389 case $0 in #((
20390 *[\\/]* ) as_myself=$0 ;;
20391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20392 for as_dir in $PATH
20393 do
20394 IFS=$as_save_IFS
20395 test -z "$as_dir" && as_dir=.
20396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20397 done
20398 IFS=$as_save_IFS
20399
20400 ;;
20401 esac
20402 # We did not find ourselves, most probably we were run as `sh COMMAND'
20403 # in which case we are not to be found in the path.
20404 if test "x$as_myself" = x; then
20405 as_myself=$0
20406 fi
20407 if test ! -f "$as_myself"; then
20408 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20409 exit 1
20410 fi
20411
20412 # Unset variables that we do not need and which cause bugs (e.g. in
20413 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20414 # suppresses any "Segmentation fault" message there. '((' could
20415 # trigger a bug in pdksh 5.2.14.
20416 for as_var in BASH_ENV ENV MAIL MAILPATH
20417 do eval test x\${$as_var+set} = xset \
20418 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20419 done
20420 PS1='$ '
20421 PS2='> '
20422 PS4='+ '
20423
20424 # NLS nuisances.
20425 LC_ALL=C
20426 export LC_ALL
20427 LANGUAGE=C
20428 export LANGUAGE
20429
20430 # CDPATH.
20431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20432
20433
20434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20435 # ----------------------------------------
20436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20438 # script with STATUS, using 1 if that was 0.
20439 as_fn_error ()
20440 {
20441 as_status=$1; test $as_status -eq 0 && as_status=1
20442 if test "$4"; then
20443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20444 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20445 fi
20446 $as_echo "$as_me: error: $2" >&2
20447 as_fn_exit $as_status
20448 } # as_fn_error
20449
20450
20451 # as_fn_set_status STATUS
20452 # -----------------------
20453 # Set $? to STATUS, without forking.
20454 as_fn_set_status ()
20455 {
20456 return $1
20457 } # as_fn_set_status
20458
20459 # as_fn_exit STATUS
20460 # -----------------
20461 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20462 as_fn_exit ()
20463 {
20464 set +e
20465 as_fn_set_status $1
20466 exit $1
20467 } # as_fn_exit
20468
20469 # as_fn_unset VAR
20470 # ---------------
20471 # Portably unset VAR.
20472 as_fn_unset ()
20473 {
20474 { eval $1=; unset $1;}
20475 }
20476 as_unset=as_fn_unset
20477 # as_fn_append VAR VALUE
20478 # ----------------------
20479 # Append the text in VALUE to the end of the definition contained in VAR. Take
20480 # advantage of any shell optimizations that allow amortized linear growth over
20481 # repeated appends, instead of the typical quadratic growth present in naive
20482 # implementations.
20483 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20484 eval 'as_fn_append ()
20485 {
20486 eval $1+=\$2
20487 }'
20488 else
20489 as_fn_append ()
20490 {
20491 eval $1=\$$1\$2
20492 }
20493 fi # as_fn_append
20494
20495 # as_fn_arith ARG...
20496 # ------------------
20497 # Perform arithmetic evaluation on the ARGs, and store the result in the
20498 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20499 # must be portable across $(()) and expr.
20500 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20501 eval 'as_fn_arith ()
20502 {
20503 as_val=$(( $* ))
20504 }'
20505 else
20506 as_fn_arith ()
20507 {
20508 as_val=`expr "$@" || test $? -eq 1`
20509 }
20510 fi # as_fn_arith
20511
20512
20513 if expr a : '\(a\)' >/dev/null 2>&1 &&
20514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20515 as_expr=expr
20516 else
20517 as_expr=false
20518 fi
20519
20520 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20521 as_basename=basename
20522 else
20523 as_basename=false
20524 fi
20525
20526 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20527 as_dirname=dirname
20528 else
20529 as_dirname=false
20530 fi
20531
20532 as_me=`$as_basename -- "$0" ||
20533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20534 X"$0" : 'X\(//\)$' \| \
20535 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20536 $as_echo X/"$0" |
20537 sed '/^.*\/\([^/][^/]*\)\/*$/{
20538 s//\1/
20539 q
20540 }
20541 /^X\/\(\/\/\)$/{
20542 s//\1/
20543 q
20544 }
20545 /^X\/\(\/\).*/{
20546 s//\1/
20547 q
20548 }
20549 s/.*/./; q'`
20550
20551 # Avoid depending upon Character Ranges.
20552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20555 as_cr_digits='0123456789'
20556 as_cr_alnum=$as_cr_Letters$as_cr_digits
20557
20558 ECHO_C= ECHO_N= ECHO_T=
20559 case `echo -n x` in #(((((
20560 -n*)
20561 case `echo 'xy\c'` in
20562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20563 xy) ECHO_C='\c';;
20564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20565 ECHO_T=' ';;
20566 esac;;
20567 *)
20568 ECHO_N='-n';;
20569 esac
20570
20571 rm -f conf$$ conf$$.exe conf$$.file
20572 if test -d conf$$.dir; then
20573 rm -f conf$$.dir/conf$$.file
20574 else
20575 rm -f conf$$.dir
20576 mkdir conf$$.dir 2>/dev/null
20577 fi
20578 if (echo >conf$$.file) 2>/dev/null; then
20579 if ln -s conf$$.file conf$$ 2>/dev/null; then
20580 as_ln_s='ln -s'
20581 # ... but there are two gotchas:
20582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20584 # In both cases, we have to default to `cp -pR'.
20585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20586 as_ln_s='cp -pR'
20587 elif ln conf$$.file conf$$ 2>/dev/null; then
20588 as_ln_s=ln
20589 else
20590 as_ln_s='cp -pR'
20591 fi
20592 else
20593 as_ln_s='cp -pR'
20594 fi
20595 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20596 rmdir conf$$.dir 2>/dev/null
20597
20598
20599 # as_fn_mkdir_p
20600 # -------------
20601 # Create "$as_dir" as a directory, including parents if necessary.
20602 as_fn_mkdir_p ()
20603 {
20604
20605 case $as_dir in #(
20606 -*) as_dir=./$as_dir;;
20607 esac
20608 test -d "$as_dir" || eval $as_mkdir_p || {
20609 as_dirs=
20610 while :; do
20611 case $as_dir in #(
20612 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20613 *) as_qdir=$as_dir;;
20614 esac
20615 as_dirs="'$as_qdir' $as_dirs"
20616 as_dir=`$as_dirname -- "$as_dir" ||
20617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20618 X"$as_dir" : 'X\(//\)[^/]' \| \
20619 X"$as_dir" : 'X\(//\)$' \| \
20620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20621 $as_echo X"$as_dir" |
20622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20623 s//\1/
20624 q
20625 }
20626 /^X\(\/\/\)[^/].*/{
20627 s//\1/
20628 q
20629 }
20630 /^X\(\/\/\)$/{
20631 s//\1/
20632 q
20633 }
20634 /^X\(\/\).*/{
20635 s//\1/
20636 q
20637 }
20638 s/.*/./; q'`
20639 test -d "$as_dir" && break
20640 done
20641 test -z "$as_dirs" || eval "mkdir $as_dirs"
20642 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20643
20644
20645 } # as_fn_mkdir_p
20646 if mkdir -p . 2>/dev/null; then
20647 as_mkdir_p='mkdir -p "$as_dir"'
20648 else
20649 test -d ./-p && rmdir ./-p
20650 as_mkdir_p=false
20651 fi
20652
20653
20654 # as_fn_executable_p FILE
20655 # -----------------------
20656 # Test if FILE is an executable regular file.
20657 as_fn_executable_p ()
20658 {
20659 test -f "$1" && test -x "$1"
20660 } # as_fn_executable_p
20661 as_test_x='test -x'
20662 as_executable_p=as_fn_executable_p
20663
20664 # Sed expression to map a string onto a valid CPP name.
20665 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20666
20667 # Sed expression to map a string onto a valid variable name.
20668 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20669
20670
20671 exec 6>&1
20672 ## ----------------------------------- ##
20673 ## Main body of $CONFIG_STATUS script. ##
20674 ## ----------------------------------- ##
20675 _ASEOF
20676 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20677
20678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20679 # Save the log message, to keep $0 and so on meaningful, and to
20680 # report actual input values of CONFIG_FILES etc. instead of their
20681 # values after options handling.
20682 ac_log="
20683 This file was extended by $as_me, which was
20684 generated by GNU Autoconf 2.69. Invocation command line was
20685
20686 CONFIG_FILES = $CONFIG_FILES
20687 CONFIG_HEADERS = $CONFIG_HEADERS
20688 CONFIG_LINKS = $CONFIG_LINKS
20689 CONFIG_COMMANDS = $CONFIG_COMMANDS
20690 $ $0 $@
20691
20692 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20693 "
20694
20695 _ACEOF
20696
20697 case $ac_config_files in *"
20698 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20699 esac
20700
20701
20702
20703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20704 # Files that config.status was made for.
20705 config_files="$ac_config_files"
20706
20707 _ACEOF
20708
20709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20710 ac_cs_usage="\
20711 \`$as_me' instantiates files and other configuration actions
20712 from templates according to the current configuration. Unless the files
20713 and actions are specified as TAGs, all are instantiated by default.
20714
20715 Usage: $0 [OPTION]... [TAG]...
20716
20717 -h, --help print this help, then exit
20718 -V, --version print version number and configuration settings, then exit
20719 --config print configuration, then exit
20720 -q, --quiet, --silent
20721 do not print progress messages
20722 -d, --debug don't remove temporary files
20723 --recheck update $as_me by reconfiguring in the same conditions
20724 --file=FILE[:TEMPLATE]
20725 instantiate the configuration file FILE
20726
20727 Configuration files:
20728 $config_files
20729
20730 Report bugs to the package provider."
20731
20732 _ACEOF
20733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20735 ac_cs_version="\\
20736 config.status
20737 configured by $0, generated by GNU Autoconf 2.69,
20738 with options \\"\$ac_cs_config\\"
20739
20740 Copyright (C) 2012 Free Software Foundation, Inc.
20741 This config.status script is free software; the Free Software Foundation
20742 gives unlimited permission to copy, distribute and modify it."
20743
20744 ac_pwd='$ac_pwd'
20745 srcdir='$srcdir'
20746 INSTALL='$INSTALL'
20747 AWK='$AWK'
20748 test -n "\$AWK" || AWK=awk
20749 _ACEOF
20750
20751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20752 # The default lists apply if the user does not specify any file.
20753 ac_need_defaults=:
20754 while test $# != 0
20755 do
20756 case $1 in
20757 --*=?*)
20758 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20759 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20760 ac_shift=:
20761 ;;
20762 --*=)
20763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20764 ac_optarg=
20765 ac_shift=:
20766 ;;
20767 *)
20768 ac_option=$1
20769 ac_optarg=$2
20770 ac_shift=shift
20771 ;;
20772 esac
20773
20774 case $ac_option in
20775 # Handling of the options.
20776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20777 ac_cs_recheck=: ;;
20778 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20779 $as_echo "$ac_cs_version"; exit ;;
20780 --config | --confi | --conf | --con | --co | --c )
20781 $as_echo "$ac_cs_config"; exit ;;
20782 --debug | --debu | --deb | --de | --d | -d )
20783 debug=: ;;
20784 --file | --fil | --fi | --f )
20785 $ac_shift
20786 case $ac_optarg in
20787 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20788 '') as_fn_error $? "missing file argument" ;;
20789 esac
20790 as_fn_append CONFIG_FILES " '$ac_optarg'"
20791 ac_need_defaults=false;;
20792 --he | --h | --help | --hel | -h )
20793 $as_echo "$ac_cs_usage"; exit ;;
20794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20795 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20796 ac_cs_silent=: ;;
20797
20798 # This is an error.
20799 -*) as_fn_error $? "unrecognized option: \`$1'
20800 Try \`$0 --help' for more information." ;;
20801
20802 *) as_fn_append ac_config_targets " $1"
20803 ac_need_defaults=false ;;
20804
20805 esac
20806 shift
20807 done
20808
20809 ac_configure_extra_args=
20810
20811 if $ac_cs_silent; then
20812 exec 6>/dev/null
20813 ac_configure_extra_args="$ac_configure_extra_args --silent"
20814 fi
20815
20816 _ACEOF
20817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20818 if \$ac_cs_recheck; then
20819 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20820 shift
20821 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20822 CONFIG_SHELL='$SHELL'
20823 export CONFIG_SHELL
20824 exec "\$@"
20825 fi
20826
20827 _ACEOF
20828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829 exec 5>>config.log
20830 {
20831 echo
20832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20833 ## Running $as_me. ##
20834 _ASBOX
20835 $as_echo "$ac_log"
20836 } >&5
20837
20838 _ACEOF
20839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20840 #
20841 # INIT-COMMANDS
20842 #
20843 extrasub_build="$extrasub_build"
20844 extrasub_host="$extrasub_host"
20845 extrasub_target="$extrasub_target"
20846
20847 _ACEOF
20848
20849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20850
20851 # Handling of arguments.
20852 for ac_config_target in $ac_config_targets
20853 do
20854 case $ac_config_target in
20855 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20856
20857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20858 esac
20859 done
20860
20861
20862 # If the user did not use the arguments to specify the items to instantiate,
20863 # then the envvar interface is used. Set only those that are not.
20864 # We use the long form for the default assignment because of an extremely
20865 # bizarre bug on SunOS 4.1.3.
20866 if $ac_need_defaults; then
20867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20868 fi
20869
20870 # Have a temporary directory for convenience. Make it in the build tree
20871 # simply because there is no reason against having it here, and in addition,
20872 # creating and moving files from /tmp can sometimes cause problems.
20873 # Hook for its removal unless debugging.
20874 # Note that there is a small window in which the directory will not be cleaned:
20875 # after its creation but before its name has been assigned to `$tmp'.
20876 $debug ||
20877 {
20878 tmp= ac_tmp=
20879 trap 'exit_status=$?
20880 : "${ac_tmp:=$tmp}"
20881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20882 ' 0
20883 trap 'as_fn_exit 1' 1 2 13 15
20884 }
20885 # Create a (secure) tmp directory for tmp files.
20886
20887 {
20888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20889 test -d "$tmp"
20890 } ||
20891 {
20892 tmp=./conf$$-$RANDOM
20893 (umask 077 && mkdir "$tmp")
20894 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20895 ac_tmp=$tmp
20896
20897 # Set up the scripts for CONFIG_FILES section.
20898 # No need to generate them if there are no CONFIG_FILES.
20899 # This happens for instance with `./config.status config.h'.
20900 if test -n "$CONFIG_FILES"; then
20901
20902 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20903 ac_cs_awk_getline=:
20904 ac_cs_awk_pipe_init=
20905 ac_cs_awk_read_file='
20906 while ((getline aline < (F[key])) > 0)
20907 print(aline)
20908 close(F[key])'
20909 ac_cs_awk_pipe_fini=
20910 else
20911 ac_cs_awk_getline=false
20912 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20913 ac_cs_awk_read_file='
20914 print "|#_!!_#|"
20915 print "cat " F[key] " &&"
20916 '$ac_cs_awk_pipe_init
20917 # The final `:' finishes the AND list.
20918 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20919 fi
20920 ac_cr=`echo X | tr X '\015'`
20921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20922 # But we know of no other shell where ac_cr would be empty at this
20923 # point, so we can use a bashism as a fallback.
20924 if test "x$ac_cr" = x; then
20925 eval ac_cr=\$\'\\r\'
20926 fi
20927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20929 ac_cs_awk_cr='\\r'
20930 else
20931 ac_cs_awk_cr=$ac_cr
20932 fi
20933
20934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20935 _ACEOF
20936
20937 # Create commands to substitute file output variables.
20938 {
20939 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20940 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20941 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20942 echo "_ACAWK" &&
20943 echo "_ACEOF"
20944 } >conf$$files.sh &&
20945 . ./conf$$files.sh ||
20946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20947 rm -f conf$$files.sh
20948
20949 {
20950 echo "cat >conf$$subs.awk <<_ACEOF" &&
20951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20952 echo "_ACEOF"
20953 } >conf$$subs.sh ||
20954 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20956 ac_delim='%!_!# '
20957 for ac_last_try in false false false false false :; do
20958 . ./conf$$subs.sh ||
20959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20960
20961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20962 if test $ac_delim_n = $ac_delim_num; then
20963 break
20964 elif $ac_last_try; then
20965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20966 else
20967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20968 fi
20969 done
20970 rm -f conf$$subs.sh
20971
20972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20973 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20974 _ACEOF
20975 sed -n '
20976 h
20977 s/^/S["/; s/!.*/"]=/
20978 p
20979 g
20980 s/^[^!]*!//
20981 :repl
20982 t repl
20983 s/'"$ac_delim"'$//
20984 t delim
20985 :nl
20986 h
20987 s/\(.\{148\}\)..*/\1/
20988 t more1
20989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20990 p
20991 n
20992 b repl
20993 :more1
20994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20995 p
20996 g
20997 s/.\{148\}//
20998 t nl
20999 :delim
21000 h
21001 s/\(.\{148\}\)..*/\1/
21002 t more2
21003 s/["\\]/\\&/g; s/^/"/; s/$/"/
21004 p
21005 b
21006 :more2
21007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21008 p
21009 g
21010 s/.\{148\}//
21011 t delim
21012 ' <conf$$subs.awk | sed '
21013 /^[^""]/{
21014 N
21015 s/\n//
21016 }
21017 ' >>$CONFIG_STATUS || ac_write_fail=1
21018 rm -f conf$$subs.awk
21019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21020 _ACAWK
21021 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21022 for (key in S) S_is_set[key] = 1
21023 FS = ""
21024 \$ac_cs_awk_pipe_init
21025 }
21026 {
21027 line = $ 0
21028 nfields = split(line, field, "@")
21029 substed = 0
21030 len = length(field[1])
21031 for (i = 2; i < nfields; i++) {
21032 key = field[i]
21033 keylen = length(key)
21034 if (S_is_set[key]) {
21035 value = S[key]
21036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21037 len += length(value) + length(field[++i])
21038 substed = 1
21039 } else
21040 len += 1 + keylen
21041 }
21042 if (nfields == 3 && !substed) {
21043 key = field[2]
21044 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21045 \$ac_cs_awk_read_file
21046 next
21047 }
21048 }
21049 print line
21050 }
21051 \$ac_cs_awk_pipe_fini
21052 _ACAWK
21053 _ACEOF
21054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21055 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21056 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21057 else
21058 cat
21059 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21060 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21061 _ACEOF
21062
21063 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21064 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21065 # trailing colons and then remove the whole line if VPATH becomes empty
21066 # (actually we leave an empty line to preserve line numbers).
21067 if test "x$srcdir" = x.; then
21068 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21069 h
21070 s///
21071 s/^/:/
21072 s/[ ]*$/:/
21073 s/:\$(srcdir):/:/g
21074 s/:\${srcdir}:/:/g
21075 s/:@srcdir@:/:/g
21076 s/^:*//
21077 s/:*$//
21078 x
21079 s/\(=[ ]*\).*/\1/
21080 G
21081 s/\n//
21082 s/^[^=]*=[ ]*$//
21083 }'
21084 fi
21085
21086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21087 fi # test -n "$CONFIG_FILES"
21088
21089
21090 eval set X " :F $CONFIG_FILES "
21091 shift
21092 for ac_tag
21093 do
21094 case $ac_tag in
21095 :[FHLC]) ac_mode=$ac_tag; continue;;
21096 esac
21097 case $ac_mode$ac_tag in
21098 :[FHL]*:*);;
21099 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21100 :[FH]-) ac_tag=-:-;;
21101 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21102 esac
21103 ac_save_IFS=$IFS
21104 IFS=:
21105 set x $ac_tag
21106 IFS=$ac_save_IFS
21107 shift
21108 ac_file=$1
21109 shift
21110
21111 case $ac_mode in
21112 :L) ac_source=$1;;
21113 :[FH])
21114 ac_file_inputs=
21115 for ac_f
21116 do
21117 case $ac_f in
21118 -) ac_f="$ac_tmp/stdin";;
21119 *) # Look for the file first in the build tree, then in the source tree
21120 # (if the path is not absolute). The absolute path cannot be DOS-style,
21121 # because $ac_f cannot contain `:'.
21122 test -f "$ac_f" ||
21123 case $ac_f in
21124 [\\/$]*) false;;
21125 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21126 esac ||
21127 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21128 esac
21129 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21130 as_fn_append ac_file_inputs " '$ac_f'"
21131 done
21132
21133 # Let's still pretend it is `configure' which instantiates (i.e., don't
21134 # use $as_me), people would be surprised to read:
21135 # /* config.h. Generated by config.status. */
21136 configure_input='Generated from '`
21137 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21138 `' by configure.'
21139 if test x"$ac_file" != x-; then
21140 configure_input="$ac_file. $configure_input"
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21142 $as_echo "$as_me: creating $ac_file" >&6;}
21143 fi
21144 # Neutralize special characters interpreted by sed in replacement strings.
21145 case $configure_input in #(
21146 *\&* | *\|* | *\\* )
21147 ac_sed_conf_input=`$as_echo "$configure_input" |
21148 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21149 *) ac_sed_conf_input=$configure_input;;
21150 esac
21151
21152 case $ac_tag in
21153 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21155 esac
21156 ;;
21157 esac
21158
21159 ac_dir=`$as_dirname -- "$ac_file" ||
21160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21161 X"$ac_file" : 'X\(//\)[^/]' \| \
21162 X"$ac_file" : 'X\(//\)$' \| \
21163 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21164 $as_echo X"$ac_file" |
21165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21166 s//\1/
21167 q
21168 }
21169 /^X\(\/\/\)[^/].*/{
21170 s//\1/
21171 q
21172 }
21173 /^X\(\/\/\)$/{
21174 s//\1/
21175 q
21176 }
21177 /^X\(\/\).*/{
21178 s//\1/
21179 q
21180 }
21181 s/.*/./; q'`
21182 as_dir="$ac_dir"; as_fn_mkdir_p
21183 ac_builddir=.
21184
21185 case "$ac_dir" in
21186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21187 *)
21188 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21189 # A ".." for each directory in $ac_dir_suffix.
21190 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21191 case $ac_top_builddir_sub in
21192 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21193 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21194 esac ;;
21195 esac
21196 ac_abs_top_builddir=$ac_pwd
21197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21198 # for backward compatibility:
21199 ac_top_builddir=$ac_top_build_prefix
21200
21201 case $srcdir in
21202 .) # We are building in place.
21203 ac_srcdir=.
21204 ac_top_srcdir=$ac_top_builddir_sub
21205 ac_abs_top_srcdir=$ac_pwd ;;
21206 [\\/]* | ?:[\\/]* ) # Absolute name.
21207 ac_srcdir=$srcdir$ac_dir_suffix;
21208 ac_top_srcdir=$srcdir
21209 ac_abs_top_srcdir=$srcdir ;;
21210 *) # Relative name.
21211 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21212 ac_top_srcdir=$ac_top_build_prefix$srcdir
21213 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21214 esac
21215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21216
21217
21218 case $ac_mode in
21219 :F)
21220 #
21221 # CONFIG_FILE
21222 #
21223
21224 case $INSTALL in
21225 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21226 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21227 esac
21228 _ACEOF
21229
21230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21231 # If the template does not know about datarootdir, expand it.
21232 # FIXME: This hack should be removed a few years after 2.60.
21233 ac_datarootdir_hack=; ac_datarootdir_seen=
21234 ac_sed_dataroot='
21235 /datarootdir/ {
21236 p
21237 q
21238 }
21239 /@datadir@/p
21240 /@docdir@/p
21241 /@infodir@/p
21242 /@localedir@/p
21243 /@mandir@/p'
21244 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21245 *datarootdir*) ac_datarootdir_seen=yes;;
21246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21248 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21249 _ACEOF
21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21251 ac_datarootdir_hack='
21252 s&@datadir@&$datadir&g
21253 s&@docdir@&$docdir&g
21254 s&@infodir@&$infodir&g
21255 s&@localedir@&$localedir&g
21256 s&@mandir@&$mandir&g
21257 s&\\\${datarootdir}&$datarootdir&g' ;;
21258 esac
21259 _ACEOF
21260
21261 # Neutralize VPATH when `$srcdir' = `.'.
21262 # Shell code in configure.ac might set extrasub.
21263 # FIXME: do we really want to maintain this feature?
21264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21265 ac_sed_extra="$ac_vpsub
21266 $extrasub
21267 _ACEOF
21268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21269 :t
21270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21271 s|@configure_input@|$ac_sed_conf_input|;t t
21272 s&@top_builddir@&$ac_top_builddir_sub&;t t
21273 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21274 s&@srcdir@&$ac_srcdir&;t t
21275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21276 s&@top_srcdir@&$ac_top_srcdir&;t t
21277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21278 s&@builddir@&$ac_builddir&;t t
21279 s&@abs_builddir@&$ac_abs_builddir&;t t
21280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21281 s&@INSTALL@&$ac_INSTALL&;t t
21282 $ac_datarootdir_hack
21283 "
21284 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21285 if $ac_cs_awk_getline; then
21286 $AWK -f "$ac_tmp/subs.awk"
21287 else
21288 $AWK -f "$ac_tmp/subs.awk" | $SHELL
21289 fi \
21290 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21291
21292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21293 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21295 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21297 which seems to be undefined. Please make sure it is defined" >&5
21298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21299 which seems to be undefined. Please make sure it is defined" >&2;}
21300
21301 rm -f "$ac_tmp/stdin"
21302 case $ac_file in
21303 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21304 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21305 esac \
21306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21307 ;;
21308
21309
21310
21311 esac
21312
21313
21314 case $ac_file$ac_mode in
21315 "Makefile":F) sed "$extrasub_build" Makefile |
21316 sed "$extrasub_host" |
21317 sed "$extrasub_target" > mf$$
21318 mv -f mf$$ Makefile ;;
21319
21320 esac
21321 done # for ac_tag
21322
21323
21324 as_fn_exit 0
21325 _ACEOF
21326 ac_clean_files=$ac_clean_files_save
21327
21328 test $ac_write_fail = 0 ||
21329 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21330
21331
21332 # configure is writing to config.log, and then calls config.status.
21333 # config.status does its own redirection, appending to config.log.
21334 # Unfortunately, on DOS this fails, as config.log is still kept open
21335 # by configure, so config.status won't be able to write to it; its
21336 # output is simply discarded. So we exec the FD to /dev/null,
21337 # effectively closing config.log, so it can be properly (re)opened and
21338 # appended to by config.status. When coming back to configure, we
21339 # need to make the FD available again.
21340 if test "$no_create" != yes; then
21341 ac_cs_success=:
21342 ac_config_status_args=
21343 test "$silent" = yes &&
21344 ac_config_status_args="$ac_config_status_args --quiet"
21345 exec 5>/dev/null
21346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21347 exec 5>>config.log
21348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21349 # would make configure fail if this is the last instruction.
21350 $ac_cs_success || as_fn_exit 1
21351 fi
21352 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21354 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21355 fi
21356