]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Fix tree-ssa/update-cunroll.c
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 GDCFLAGS
624 READELF
625 OTOOL
626 OBJDUMP
627 OBJCOPY
628 WINDMC
629 WINDRES
630 STRIP
631 RANLIB
632 NM
633 LIPO
634 LD
635 DSYMUTIL
636 DLLTOOL
637 AS
638 AR
639 RUNTEST
640 EXPECT
641 MAKEINFO
642 FLEX
643 LEX
644 M4
645 BISON
646 YACC
647 WINDRES_FOR_BUILD
648 WINDMC_FOR_BUILD
649 RANLIB_FOR_BUILD
650 NM_FOR_BUILD
651 LD_FOR_BUILD
652 LDFLAGS_FOR_BUILD
653 GDC_FOR_BUILD
654 GOC_FOR_BUILD
655 GFORTRAN_FOR_BUILD
656 DSYMUTIL_FOR_BUILD
657 DLLTOOL_FOR_BUILD
658 CXX_FOR_BUILD
659 CXXFLAGS_FOR_BUILD
660 CPPFLAGS_FOR_BUILD
661 CPP_FOR_BUILD
662 CFLAGS_FOR_BUILD
663 CC_FOR_BUILD
664 AS_FOR_BUILD
665 AR_FOR_BUILD
666 target_configdirs
667 configdirs
668 build_configdirs
669 INSTALL_GDB_TK
670 GDB_TK
671 CONFIGURE_GDB_TK
672 build_tooldir
673 tooldir
674 GCC_SHLIB_SUBDIR
675 RPATH_ENVVAR
676 target_configargs
677 host_configargs
678 build_configargs
679 BUILD_CONFIG
680 LDFLAGS_FOR_TARGET
681 CXXFLAGS_FOR_TARGET
682 CFLAGS_FOR_TARGET
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
685 get_gcc_base_ver
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
688 stage1_languages
689 host_libs_picflag
690 PICFLAG
691 host_shared
692 gcc_host_pie
693 host_pie
694 extra_linker_plugin_flags
695 extra_linker_plugin_configure_flags
696 islinc
697 isllibs
698 poststage1_ldflags
699 poststage1_libs
700 stage1_ldflags
701 stage1_libs
702 extra_isl_gmp_configure_flags
703 extra_mpc_mpfr_configure_flags
704 extra_mpc_gmp_configure_flags
705 extra_mpfr_configure_flags
706 gmpinc
707 gmplibs
708 PGO_BUILD_LTO_CFLAGS
709 PGO_BUILD_USE_CFLAGS
710 PGO_BUILD_GEN_CFLAGS
711 HAVE_CXX11_FOR_BUILD
712 HAVE_CXX11
713 do_compare
714 GDC
715 GNATMAKE
716 GNATBIND
717 ac_ct_CXX
718 CXXFLAGS
719 CXX
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
726 CC
727 target_subdir
728 host_subdir
729 build_subdir
730 build_libsubdir
731 AWK
732 SED
733 LN_S
734 LN
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 target_noncanonical
747 host_noncanonical
748 build_noncanonical
749 build_os
750 build_vendor
751 build_cpu
752 build
753 TOPLEVEL_CONFIGURE_ARGUMENTS
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files='serialization_dependencies
793 host_makefile_frag
794 target_makefile_frag
795 alphaieee_frag
796 ospace_frag'
797 ac_user_opts='
798 enable_option_checking
799 with_build_libsubdir
800 with_system_zlib
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
804 enable_gold
805 enable_ld
806 enable_compressed_debug_sections
807 enable_libquadmath
808 enable_libquadmath_support
809 enable_libada
810 enable_libgm2
811 enable_libssp
812 enable_libstdcxx
813 enable_bootstrap
814 enable_pgo_build
815 with_mpc
816 with_mpc_include
817 with_mpc_lib
818 with_mpfr
819 with_mpfr_include
820 with_mpfr_lib
821 with_gmp
822 with_gmp_include
823 with_gmp_lib
824 with_stage1_libs
825 with_static_standard_libraries
826 with_stage1_ldflags
827 with_boot_libs
828 with_boot_ldflags
829 with_isl
830 with_isl_include
831 with_isl_lib
832 enable_isl_version_check
833 enable_lto
834 enable_linker_plugin_configure_flags
835 enable_linker_plugin_flags
836 enable_host_pie
837 enable_host_shared
838 enable_stage1_languages
839 enable_objc_gc
840 with_target_bdw_gc
841 with_target_bdw_gc_include
842 with_target_bdw_gc_lib
843 with_gcc_major_version_only
844 with_build_sysroot
845 with_debug_prefix_map
846 with_build_config
847 enable_vtable_verify
848 enable_serial_configure
849 with_build_time_tools
850 enable_maintainer_mode
851 enable_stage1_checking
852 enable_werror
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CXX
863 CXXFLAGS
864 CCC
865 build_configargs
866 host_configargs
867 target_configargs
868 AR
869 AS
870 DLLTOOL
871 DSYMUTIL
872 LD
873 LIPO
874 NM
875 RANLIB
876 STRIP
877 WINDRES
878 WINDMC
879 OBJCOPY
880 OBJDUMP
881 OTOOL
882 READELF
883 CC_FOR_TARGET
884 CXX_FOR_TARGET
885 GCC_FOR_TARGET
886 GFORTRAN_FOR_TARGET
887 GOC_FOR_TARGET
888 GDC_FOR_TARGET
889 GM2_FOR_TARGET
890 AR_FOR_TARGET
891 AS_FOR_TARGET
892 DLLTOOL_FOR_TARGET
893 DSYMUTIL_FOR_TARGET
894 LD_FOR_TARGET
895 LIPO_FOR_TARGET
896 NM_FOR_TARGET
897 OBJCOPY_FOR_TARGET
898 OBJDUMP_FOR_TARGET
899 OTOOL_FOR_TARGET
900 RANLIB_FOR_TARGET
901 READELF_FOR_TARGET
902 STRIP_FOR_TARGET
903 WINDRES_FOR_TARGET
904 WINDMC_FOR_TARGET'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
964 fi
965
966 case $ac_option in
967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1035
1036 -enable-* | --enable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error $? "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
1059 exec_prefix=$ac_optarg ;;
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
1071
1072 -host | --host | --hos | --ho)
1073 ac_prev=host_alias ;;
1074 -host=* | --host=* | --hos=* | --ho=*)
1075 host_alias=$ac_optarg ;;
1076
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
1088 includedir=$ac_optarg ;;
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1093 infodir=$ac_optarg ;;
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1098 libdir=$ac_optarg ;;
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
1105 libexecdir=$ac_optarg ;;
1106
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
1113 | --localstate | --localstat | --localsta | --localst | --locals)
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1117 localstatedir=$ac_optarg ;;
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1122 mandir=$ac_optarg ;;
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1129 | --no-cr | --no-c | -n)
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1143 oldincludedir=$ac_optarg ;;
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1148 prefix=$ac_optarg ;;
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1155 program_prefix=$ac_optarg ;;
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1162 program_suffix=$ac_optarg ;;
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
1179 program_transform_name=$ac_optarg ;;
1180
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
1199 sbindir=$ac_optarg ;;
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
1210 sharedstatedir=$ac_optarg ;;
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
1215 site=$ac_optarg ;;
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1220 srcdir=$ac_optarg ;;
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1227 sysconfdir=$ac_optarg ;;
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
1230 ac_prev=target_alias ;;
1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1232 target_alias=$ac_optarg ;;
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
1239
1240 -with-* | --with-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
1255
1256 -without-* | --without-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid package name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1281 x_includes=$ac_optarg ;;
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1288 x_libraries=$ac_optarg ;;
1289
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1292 ;;
1293
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
1301 eval $ac_envvar=\$ac_optarg
1302 export $ac_envvar ;;
1303
1304 *)
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 ;;
1311
1312 esac
1313 done
1314
1315 if test -n "$ac_prev"; then
1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $? "missing argument to $ac_option"
1318 fi
1319
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326 fi
1327
1328 # Check all directory arguments for consistency.
1329 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1333 do
1334 eval ac_val=\$$ac_var
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
1342 case $ac_val in
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 esac
1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 done
1348
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1352 build=$build_alias
1353 host=$host_alias
1354 target=$target_alias
1355
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $? "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1409 fi
1410 else
1411 ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 case $srcdir in
1432 *" "*)
1433 as_fn_error $? "path to source, $srcdir, contains spaces"
1434 ;;
1435 esac
1436 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1444
1445 #
1446 # Report the --help message.
1447 #
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1453
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459 Defaults for the options are specified in brackets.
1460
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1477
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1482
1483 For better control, use the options below.
1484
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1506
1507 cat <<\_ACEOF
1508
1509 Program names:
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
1514 System types:
1515 --build=BUILD configure for building on BUILD [guessed]
1516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517 --target=TARGET configure for building compilers for TARGET [HOST]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-option-checking ignore unrecognized --enable/--with options
1527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1531 host triple by ARG
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET[=DIR]. Use optional path to find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful for distribution
1539 compilers where those are in separate optional packages.
1540
1541 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1542 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1543 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1544 Enable compressed debug sections for gas, gold or ld
1545 by default
1546 --disable-libquadmath do not build libquadmath directory
1547 --disable-libquadmath-support
1548 disable libquadmath support for Fortran
1549 --enable-libada build libada directory
1550 --enable-libgm2 build libgm2 directory
1551 --enable-libssp build libssp directory
1552 --disable-libstdcxx do not build libstdc++-v3 directory
1553 --enable-bootstrap enable bootstrapping [yes if native build]
1554 --enable-pgo-build[=lto]
1555 enable the PGO build
1556 --disable-isl-version-check
1557 disable check for isl version
1558 --enable-lto enable link time optimization support
1559 --enable-linker-plugin-configure-flags=FLAGS
1560 additional flags for configuring linker plugins
1561 [none]
1562 --enable-linker-plugin-flags=FLAGS
1563 additional flags for configuring and building linker
1564 plugins [none]
1565 --enable-host-pie build position independent host executables
1566 --enable-host-shared build host code as shared libraries
1567 --enable-stage1-languages[=all]
1568 choose additional languages to build during stage1.
1569 Mostly useful for compiler development
1570 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1571 Objective-C runtime
1572 --enable-vtable-verify Enable vtable verification feature
1573 --enable-serial-[{host,target,build}-]configure
1574 force sequential configuration of sub-packages for
1575 the host, target or build machine, or all
1576 sub-packages
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful (and
1579 sometimes confusing) to the casual installer
1580 --enable-stage1-checking[=all]
1581 choose additional checking for stage1 of the
1582 compiler
1583 --enable-werror enable -Werror in bootstrap stage2 and later
1584
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-build-libsubdir=DIR Directory where to find libraries for build system
1589 --with-system-zlib use installed libz
1590 --with-mpc=PATH specify prefix directory for installed MPC package.
1591 Equivalent to --with-mpc-include=PATH/include plus
1592 --with-mpc-lib=PATH/lib
1593 --with-mpc-include=PATH specify directory for installed MPC include files
1594 --with-mpc-lib=PATH specify directory for the installed MPC library
1595 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1596 Equivalent to --with-mpfr-include=PATH/include plus
1597 --with-mpfr-lib=PATH/lib
1598 --with-mpfr-include=PATH
1599 specify directory for installed MPFR include files
1600 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1601 --with-gmp=PATH specify prefix directory for the installed GMP
1602 package. Equivalent to
1603 --with-gmp-include=PATH/include plus
1604 --with-gmp-lib=PATH/lib
1605 --with-gmp-include=PATH specify directory for installed GMP include files
1606 --with-gmp-lib=PATH specify directory for the installed GMP library
1607 --with-stage1-libs=LIBS libraries for stage1
1608 --with-static-standard-libraries
1609 use -static-libstdc++ and -static-libgcc
1610 (default=auto)
1611 --with-stage1-ldflags=FLAGS
1612 linker flags for stage1
1613 --with-boot-libs=LIBS libraries for stage2 and later
1614 --with-boot-ldflags=FLAGS
1615 linker flags for stage2 and later
1616 --with-isl=PATH Specify prefix directory for the installed isl
1617 package. Equivalent to
1618 --with-isl-include=PATH/include plus
1619 --with-isl-lib=PATH/lib
1620 --with-isl-include=PATH Specify directory for installed isl include files
1621 --with-isl-lib=PATH Specify the directory for the installed isl library
1622 --with-target-bdw-gc=PATHLIST
1623 specify prefix directory for installed bdw-gc
1624 package. Equivalent to
1625 --with-target-bdw-gc-include=PATH/include plus
1626 --with-target-bdw-gc-lib=PATH/lib
1627 --with-target-bdw-gc-include=PATHLIST
1628 specify directories for installed bdw-gc include
1629 files
1630 --with-target-bdw-gc-lib=PATHLIST
1631 specify directories for installed bdw-gc library
1632 --with-gcc-major-version-only
1633 use only GCC major number in filesystem paths
1634 --with-build-sysroot=SYSROOT
1635 use sysroot as the system root during the build
1636 --with-debug-prefix-map='A=B C=D ...'
1637 map A to B, C to D ... in debug information
1638 --with-build-config='NAME NAME2...'
1639 use config/NAME.mk build configuration
1640 --with-build-time-tools=PATH
1641 use given path to find target tools during the build
1642
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXX C++ compiler command
1652 CXXFLAGS C++ compiler flags
1653 build_configargs
1654 additional configure arguments for build directories
1655 host_configargs
1656 additional configure arguments for host directories
1657 target_configargs
1658 additional configure arguments for target directories
1659 AR AR for the host
1660 AS AS for the host
1661 DLLTOOL DLLTOOL for the host
1662 DSYMUTIL DSYMUTIL for the host
1663 LD LD for the host
1664 LIPO LIPO for the host
1665 NM NM for the host
1666 RANLIB RANLIB for the host
1667 STRIP STRIP for the host
1668 WINDRES WINDRES for the host
1669 WINDMC WINDMC for the host
1670 OBJCOPY OBJCOPY for the host
1671 OBJDUMP OBJDUMP for the host
1672 OTOOL OTOOL for the host
1673 READELF READELF for the host
1674 CC_FOR_TARGET
1675 CC for the target
1676 CXX_FOR_TARGET
1677 CXX for the target
1678 GCC_FOR_TARGET
1679 GCC for the target
1680 GFORTRAN_FOR_TARGET
1681 GFORTRAN for the target
1682 GOC_FOR_TARGET
1683 GOC for the target
1684 GDC_FOR_TARGET
1685 GDC for the target
1686 GM2_FOR_TARGET
1687 GM2 for the target
1688 AR_FOR_TARGET
1689 AR for the target
1690 AS_FOR_TARGET
1691 AS for the target
1692 DLLTOOL_FOR_TARGET
1693 DLLTOOL for the target
1694 DSYMUTIL_FOR_TARGET
1695 DSYMUTIL for the target
1696 LD_FOR_TARGET
1697 LD for the target
1698 LIPO_FOR_TARGET
1699 LIPO for the target
1700 NM_FOR_TARGET
1701 NM for the target
1702 OBJCOPY_FOR_TARGET
1703 OBJCOPY for the target
1704 OBJDUMP_FOR_TARGET
1705 OBJDUMP for the target
1706 OTOOL_FOR_TARGET
1707 OTOOL for the target
1708 RANLIB_FOR_TARGET
1709 RANLIB for the target
1710 READELF_FOR_TARGET
1711 READELF for the target
1712 STRIP_FOR_TARGET
1713 STRIP for the target
1714 WINDRES_FOR_TARGET
1715 WINDRES for the target
1716 WINDMC_FOR_TARGET
1717 WINDMC for the target
1718
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1721
1722 Report bugs to the package provider.
1723 _ACEOF
1724 ac_status=$?
1725 fi
1726
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1733 ac_builddir=.
1734
1735 case "$ac_dir" in
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *)
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745 esac
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1750
1751 case $srcdir in
1752 .) # We are building in place.
1753 ac_srcdir=.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 esac
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1780 fi
1781
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.69
1787
1788 Copyright (C) 2012 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1793 fi
1794
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1798
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_c_try_compile
1836
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_cxx_try_compile
1874
1875 # ac_fn_cxx_try_link LINENO
1876 # -------------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_link ()
1879 {
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1895 fi
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=1
1910 fi
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1918
1919 } # ac_fn_cxx_try_link
1920
1921 # ac_fn_c_try_link LINENO
1922 # -----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_link ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1941 fi
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_retval=1
1956 fi
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status $ac_retval
1964
1965 } # ac_fn_c_try_link
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1969
1970 It was created by $as_me, which was
1971 generated by GNU Autoconf 2.69. Invocation command line was
1972
1973 $ $0 $@
1974
1975 _ACEOF
1976 exec 5>>config.log
1977 {
1978 cat <<_ASUNAME
1979 ## --------- ##
1980 ## Platform. ##
1981 ## --------- ##
1982
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999
2000 _ASUNAME
2001
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 $as_echo "PATH: $as_dir"
2008 done
2009 IFS=$as_save_IFS
2010
2011 } >&5
2012
2013 cat >&5 <<_ACEOF
2014
2015
2016 ## ----------- ##
2017 ## Core tests. ##
2018 ## ----------- ##
2019
2020 _ACEOF
2021
2022
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_configure_args=
2029 ac_configure_args0=
2030 ac_configure_args1=
2031 ac_must_keep_next=false
2032 for ac_pass in 1 2
2033 do
2034 for ac_arg
2035 do
2036 case $ac_arg in
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2040 continue ;;
2041 *\'*)
2042 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 esac
2044 case $ac_pass in
2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046 2)
2047 as_fn_append ac_configure_args1 " '$ac_arg'"
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2050 else
2051 case $ac_arg in
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058 esac
2059 ;;
2060 -* ) ac_must_keep_next=true ;;
2061 esac
2062 fi
2063 as_fn_append ac_configure_args " '$ac_arg'"
2064 ;;
2065 esac
2066 done
2067 done
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2070
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2078 {
2079 echo
2080
2081 $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2084 echo
2085 # The following way of writing the cache mishandles newlines in values,
2086 (
2087 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088 eval ac_val=\$$ac_var
2089 case $ac_val in #(
2090 *${as_nl}*)
2091 case $ac_var in #(
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094 esac
2095 case $ac_var in #(
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2099 esac ;;
2100 esac
2101 done
2102 (set) 2>&1 |
2103 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
2105 sed -n \
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108 ;; #(
2109 *)
2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 ;;
2112 esac |
2113 sort
2114 )
2115 echo
2116
2117 $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2120 echo
2121 for ac_var in $ac_subst_vars
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130
2131 if test -n "$ac_subst_files"; then
2132 $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2135 echo
2136 for ac_var in $ac_subst_files
2137 do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 esac
2142 $as_echo "$ac_var='\''$ac_val'\''"
2143 done | sort
2144 echo
2145 fi
2146
2147 if test -s confdefs.h; then
2148 $as_echo "## ----------- ##
2149 ## confdefs.h. ##
2150 ## ----------- ##"
2151 echo
2152 cat confdefs.h
2153 echo
2154 fi
2155 test "$ac_signal" != 0 &&
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
2158 } >&5
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161 exit $exit_status
2162 ' 0
2163 for ac_signal in 1 2 13 15; do
2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165 done
2166 ac_signal=0
2167
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest* confdefs.h
2170
2171 $as_echo "/* confdefs.h */" > confdefs.h
2172
2173 # Predefined preprocessor variables.
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2197 _ACEOF
2198
2199
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2202 ac_site_file1=NONE
2203 ac_site_file2=NONE
2204 if test -n "$CONFIG_SITE"; then
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1=./$CONFIG_SITE;;
2208 */*) ac_site_file1=$CONFIG_SITE;;
2209 *) ac_site_file1=./$CONFIG_SITE;;
2210 esac
2211 elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2214 else
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2217 fi
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 do
2220 test "x$ac_site_file" = xNONE && continue
2221 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2225 . "$ac_site_file" \
2226 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $? "failed to load site script $ac_site_file
2229 See \`config.log' for more details" "$LINENO" 5; }
2230 fi
2231 done
2232
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2239 case $cache_file in
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
2242 esac
2243 fi
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2247 >$cache_file
2248 fi
2249
2250 # Check that the precious variables saved in the cache have kept the same
2251 # value.
2252 ac_cache_corrupted=false
2253 for ac_var in $ac_precious_vars; do
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2259 set,)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,set)
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2267 ,);;
2268 *)
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x $ac_old_val`
2272 ac_new_val_w=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted=:
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2286 fi;;
2287 esac
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2290 case $ac_new_val in
2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2293 esac
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 esac
2298 fi
2299 done
2300 if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306 fi
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2310
2311 ac_ext=c
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318
2319
2320
2321
2322
2323
2324 progname=$0
2325 # if PWD already has a value, it is probably wrong.
2326 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2327
2328 # Export original configure arguments for use by sub-configures.
2329 # Quote arguments with shell meta charatcers.
2330 TOPLEVEL_CONFIGURE_ARGUMENTS=
2331 set -- "$progname" "$@"
2332 for ac_arg
2333 do
2334 case "$ac_arg" in
2335 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2336 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2337 # if the argument is of the form -foo=baz, quote the baz part only
2338 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2339 *) ;;
2340 esac
2341 # Add the quoted argument to the list.
2342 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2343 done
2344 if test "$silent" = yes; then
2345 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2346 fi
2347 # Remove the initial space we just introduced and, as these will be
2348 # expanded by make, quote '$'.
2349 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2350
2351
2352 # Find the build, host, and target systems.
2353 ac_aux_dir=
2354 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install-sh -c"
2358 break
2359 elif test -f "$ac_dir/install.sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install.sh -c"
2362 break
2363 elif test -f "$ac_dir/shtool"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/shtool install -c"
2366 break
2367 fi
2368 done
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2371 fi
2372
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2380
2381
2382 # Make sure we can run config.sub.
2383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2384 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2385
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2387 $as_echo_n "checking build system type... " >&6; }
2388 if ${ac_cv_build+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 ac_build_alias=$build_alias
2392 test "x$ac_build_alias" = x &&
2393 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394 test "x$ac_build_alias" = x &&
2395 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2398
2399 fi
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2401 $as_echo "$ac_cv_build" >&6; }
2402 case $ac_cv_build in
2403 *-*-*) ;;
2404 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2405 esac
2406 build=$ac_cv_build
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_build
2409 shift
2410 build_cpu=$1
2411 build_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 build_os=$*
2416 IFS=$ac_save_IFS
2417 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2418
2419
2420 case ${build_alias} in
2421 "") build_noncanonical=${build} ;;
2422 *) build_noncanonical=${build_alias} ;;
2423 esac
2424
2425
2426
2427 case ${host_alias} in
2428 "") host_noncanonical=${build_noncanonical} ;;
2429 *) host_noncanonical=${host_alias} ;;
2430 esac
2431
2432
2433
2434 case ${target_alias} in
2435 "") target_noncanonical=${host_noncanonical} ;;
2436 *) target_noncanonical=${target_alias} ;;
2437 esac
2438
2439
2440
2441
2442 test "$host_noncanonical" = "$target_noncanonical" &&
2443 test "$program_prefix$program_suffix$program_transform_name" = \
2444 NONENONEs,x,x, &&
2445 program_transform_name=s,y,y,
2446
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2448 $as_echo_n "checking host system type... " >&6; }
2449 if ${ac_cv_host+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test "x$host_alias" = x; then
2453 ac_cv_host=$ac_cv_build
2454 else
2455 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2456 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2457 fi
2458
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2461 $as_echo "$ac_cv_host" >&6; }
2462 case $ac_cv_host in
2463 *-*-*) ;;
2464 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2465 esac
2466 host=$ac_cv_host
2467 ac_save_IFS=$IFS; IFS='-'
2468 set x $ac_cv_host
2469 shift
2470 host_cpu=$1
2471 host_vendor=$2
2472 shift; shift
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2475 host_os=$*
2476 IFS=$ac_save_IFS
2477 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2478
2479
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2481 $as_echo_n "checking target system type... " >&6; }
2482 if ${ac_cv_target+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 if test "x$target_alias" = x; then
2486 ac_cv_target=$ac_cv_host
2487 else
2488 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2490 fi
2491
2492 fi
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2494 $as_echo "$ac_cv_target" >&6; }
2495 case $ac_cv_target in
2496 *-*-*) ;;
2497 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2498 esac
2499 target=$ac_cv_target
2500 ac_save_IFS=$IFS; IFS='-'
2501 set x $ac_cv_target
2502 shift
2503 target_cpu=$1
2504 target_vendor=$2
2505 shift; shift
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2508 target_os=$*
2509 IFS=$ac_save_IFS
2510 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2511
2512
2513 # The aliases save the names the user supplied, while $host etc.
2514 # will get canonicalized.
2515 test -n "$target_alias" &&
2516 test "$program_prefix$program_suffix$program_transform_name" = \
2517 NONENONEs,x,x, &&
2518 program_prefix=${target_alias}-
2519
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530
2531
2532 # Get 'install' or 'install-sh' and its variants.
2533 # Find a good install program. We prefer a C program (faster),
2534 # so one script is as good as another. But avoid the broken or
2535 # incompatible versions:
2536 # SysV /etc/install, /usr/sbin/install
2537 # SunOS /usr/etc/install
2538 # IRIX /sbin/install
2539 # AIX /bin/install
2540 # AmigaOS /C/install, which installs bootblocks on floppy discs
2541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2544 # OS/2's system install, which has a completely different semantic
2545 # ./install, which can be erroneously created by make from ./install.sh.
2546 # Reject install programs that cannot install multiple files.
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2549 if test -z "$INSTALL"; then
2550 if ${ac_cv_path_install+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 # Account for people who put trailing slashes in PATH elements.
2559 case $as_dir/ in #((
2560 ./ | .// | /[cC]/* | \
2561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2563 /usr/ucb/* ) ;;
2564 *)
2565 # OSF1 and SCO ODT 3.0 have their own names for install.
2566 # Don't use installbsd from OSF since it installs stuff as root
2567 # by default.
2568 for ac_prog in ginstall scoinst install; do
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2574 :
2575 elif test $ac_prog = install &&
2576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2578 :
2579 else
2580 rm -rf conftest.one conftest.two conftest.dir
2581 echo one > conftest.one
2582 echo two > conftest.two
2583 mkdir conftest.dir
2584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2585 test -s conftest.one && test -s conftest.two &&
2586 test -s conftest.dir/conftest.one &&
2587 test -s conftest.dir/conftest.two
2588 then
2589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2590 break 3
2591 fi
2592 fi
2593 fi
2594 done
2595 done
2596 ;;
2597 esac
2598
2599 done
2600 IFS=$as_save_IFS
2601
2602 rm -rf conftest.one conftest.two conftest.dir
2603
2604 fi
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL=$ac_cv_path_install
2607 else
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 INSTALL=$ac_install_sh
2613 fi
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2616 $as_echo "$INSTALL" >&6; }
2617
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2621
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2623
2624 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2625
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2627 $as_echo_n "checking whether ln works... " >&6; }
2628 if ${acx_cv_prog_LN+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 rm -f conftestdata_t
2632 echo >conftestdata_f
2633 if ln conftestdata_f conftestdata_t 2>/dev/null
2634 then
2635 acx_cv_prog_LN=ln
2636 else
2637 acx_cv_prog_LN=no
2638 fi
2639 rm -f conftestdata_f conftestdata_t
2640
2641 fi
2642 if test $acx_cv_prog_LN = no; then
2643 LN="cp"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2645 $as_echo "no, using $LN" >&6; }
2646 else
2647 LN="$acx_cv_prog_LN"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 fi
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2653 $as_echo_n "checking whether ln -s works... " >&6; }
2654 LN_S=$as_ln_s
2655 if test "$LN_S" = "ln -s"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2660 $as_echo "no, using $LN_S" >&6; }
2661 fi
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2665 if ${ac_cv_path_SED+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2669 for ac_i in 1 2 3 4 5 6 7; do
2670 ac_script="$ac_script$as_nl$ac_script"
2671 done
2672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2673 { ac_script=; unset ac_script;}
2674 if test -z "$SED"; then
2675 ac_path_SED_found=false
2676 # Loop through the user's path and test for each of PROGNAME-LIST
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_prog in sed gsed; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2685 as_fn_executable_p "$ac_path_SED" || continue
2686 # Check for GNU ac_path_SED and select it if it is found.
2687 # Check for GNU $ac_path_SED
2688 case `"$ac_path_SED" --version 2>&1` in
2689 *GNU*)
2690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2691 *)
2692 ac_count=0
2693 $as_echo_n 0123456789 >"conftest.in"
2694 while :
2695 do
2696 cat "conftest.in" "conftest.in" >"conftest.tmp"
2697 mv "conftest.tmp" "conftest.in"
2698 cp "conftest.in" "conftest.nl"
2699 $as_echo '' >> "conftest.nl"
2700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2702 as_fn_arith $ac_count + 1 && ac_count=$as_val
2703 if test $ac_count -gt ${ac_path_SED_max-0}; then
2704 # Best one so far, save it but keep looking for a better one
2705 ac_cv_path_SED="$ac_path_SED"
2706 ac_path_SED_max=$ac_count
2707 fi
2708 # 10*(2^10) chars as input seems more than enough
2709 test $ac_count -gt 10 && break
2710 done
2711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2712 esac
2713
2714 $ac_path_SED_found && break 3
2715 done
2716 done
2717 done
2718 IFS=$as_save_IFS
2719 if test -z "$ac_cv_path_SED"; then
2720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2721 fi
2722 else
2723 ac_cv_path_SED=$SED
2724 fi
2725
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2728 $as_echo "$ac_cv_path_SED" >&6; }
2729 SED="$ac_cv_path_SED"
2730 rm -f conftest.sed
2731
2732 for ac_prog in gawk mawk nawk awk
2733 do
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_AWK+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_AWK="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 AWK=$ac_cv_prog_AWK
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 test -n "$AWK" && break
2772 done
2773
2774
2775 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2776
2777 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2778 # a relative path.
2779 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2780 INSTALL="${srcpwd}/install-sh -c"
2781 fi
2782
2783 # Set srcdir to "." if that's what it is.
2784 # This is important for multilib support.
2785 pwd=`${PWDCMD-pwd}`
2786 if test "${pwd}" = "${srcpwd}" ; then
2787 srcdir=.
2788 fi
2789
2790 topsrcdir=$srcpwd
2791
2792 extra_host_args=
2793
2794 ### To add a new directory to the tree, first choose whether it is a target
2795 ### or a host dependent tool. Then put it into the appropriate list
2796 ### (library or tools, host or target), doing a dependency sort.
2797
2798 # Subdirs will be configured in the order listed in build_configdirs,
2799 # configdirs, or target_configdirs; see the serialization section below.
2800
2801 # Dependency sorting is only needed when *configuration* must be done in
2802 # a particular order. In all cases a dependency should be specified in
2803 # the Makefile, whether or not it's implicitly specified here.
2804
2805 # Double entries in build_configdirs, configdirs, or target_configdirs may
2806 # cause circular dependencies and break everything horribly.
2807
2808 # these library is used by various programs built for the build
2809 # environment
2810 #
2811 build_libs="build-libiberty build-libcpp"
2812
2813 # these tools are built for the build environment
2814 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2815
2816 # these libraries are used by various programs built for the host environment
2817 #f
2818 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2819
2820 # these tools are built for the host environment
2821 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2822 # know that we are building the simulator.
2823 # binutils, gas and ld appear in that order because it makes sense to run
2824 # "make check" in that particular order.
2825 # If --enable-gold is used, "gold" may replace "ld".
2826 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"
2827
2828 # these libraries are built for the target environment, and are built after
2829 # the host libraries and the host tools (which may be a cross compiler)
2830 # Note that libiberty is not a target library.
2831 target_libraries="target-libgcc \
2832 target-libbacktrace \
2833 target-libgloss \
2834 target-newlib \
2835 target-libgomp \
2836 target-libatomic \
2837 target-libitm \
2838 target-libstdc++-v3 \
2839 target-libsanitizer \
2840 target-libvtv \
2841 target-libssp \
2842 target-libquadmath \
2843 target-libgfortran \
2844 target-libffi \
2845 target-libobjc \
2846 target-libada \
2847 target-libgm2 \
2848 target-libgo \
2849 target-libphobos \
2850 target-zlib"
2851
2852 # these tools are built using the target libraries, and are intended to
2853 # run only in the target environment
2854 #
2855 # note: any program that *uses* libraries that are in the "target_libraries"
2856 # list belongs in this list.
2857 #
2858 target_tools="target-rda"
2859
2860 ################################################################################
2861
2862 ## All tools belong in one of the four categories, and are assigned above
2863 ## We assign ${configdirs} this way to remove all embedded newlines. This
2864 ## is important because configure will choke if they ever get through.
2865 ## ${configdirs} is directories we build using the host tools.
2866 ## ${target_configdirs} is directories we build using the target tools.
2867 configdirs=`echo ${host_libs} ${host_tools}`
2868 target_configdirs=`echo ${target_libraries} ${target_tools}`
2869 build_configdirs=`echo ${build_libs} ${build_tools}`
2870
2871
2872
2873 ################################################################################
2874
2875 srcname="gnu development package"
2876
2877 # This gets set non-empty for some net releases of packages.
2878 appdirs=""
2879
2880 # Define is_cross_compiler to save on calls to 'test'.
2881 is_cross_compiler=
2882 if test x"${host}" = x"${target}" ; then
2883 is_cross_compiler=no
2884 else
2885 is_cross_compiler=yes
2886 fi
2887
2888 # Find the build and target subdir names.
2889
2890 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2891 # have matching libraries, they should use host libraries: Makefile.tpl
2892 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2893 # However, they still use the build modules, because the corresponding
2894 # host modules (e.g. bison) are only built for the host when bootstrap
2895 # finishes. So:
2896 # - build_subdir is where we find build modules, and never changes.
2897 # - build_libsubdir is where we find build libraries, and can be overridden.
2898
2899 # Prefix 'build-' so this never conflicts with target_subdir.
2900 build_subdir="build-${build_noncanonical}"
2901
2902 # Check whether --with-build-libsubdir was given.
2903 if test "${with_build_libsubdir+set}" = set; then :
2904 withval=$with_build_libsubdir; build_libsubdir="$withval"
2905 else
2906 build_libsubdir="$build_subdir"
2907 fi
2908
2909 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2910 if ( test $srcdir = . && test -d gcc ) \
2911 || test -d $srcdir/../host-${host_noncanonical}; then
2912 host_subdir="host-${host_noncanonical}"
2913 else
2914 host_subdir=.
2915 fi
2916 # No prefix.
2917 target_subdir=${target_noncanonical}
2918
2919 # Be sure to cover against remnants of an in-tree build.
2920 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2921 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2922 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2923 fi
2924
2925 # Skipdirs are removed silently.
2926 skipdirs=
2927 # Noconfigdirs are removed loudly.
2928 noconfigdirs=""
2929
2930 use_gnu_ld=
2931 # Make sure we don't let GNU ld be added if we didn't want it.
2932 if test x$with_gnu_ld = xno ; then
2933 use_gnu_ld=no
2934 noconfigdirs="$noconfigdirs ld gold"
2935 fi
2936
2937 use_gnu_as=
2938 # Make sure we don't let GNU as be added if we didn't want it.
2939 if test x$with_gnu_as = xno ; then
2940 use_gnu_as=no
2941 noconfigdirs="$noconfigdirs gas"
2942 fi
2943
2944 use_included_zlib=
2945
2946 # Check whether --with-system-zlib was given.
2947 if test "${with_system_zlib+set}" = set; then :
2948 withval=$with_system_zlib;
2949 fi
2950
2951 # Make sure we don't let ZLIB be added if we didn't want it.
2952 if test x$with_system_zlib = xyes ; then
2953 use_included_zlib=no
2954 noconfigdirs="$noconfigdirs zlib"
2955 fi
2956
2957 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2958 # is provided.
2959 if test x$with_system_readline = xyes ; then
2960 noconfigdirs="$noconfigdirs readline"
2961 fi
2962
2963 # some tools are so dependent upon X11 that if we're not building with X,
2964 # it's not even worth trying to configure, much less build, that tool.
2965
2966 case ${with_x} in
2967 yes | "") ;; # the default value for this tree is that X11 is available
2968 no)
2969 skipdirs="${skipdirs} tk itcl libgui"
2970 # We won't be able to build gdbtk without X.
2971 enable_gdbtk=no
2972 ;;
2973 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2974 esac
2975
2976 # Some are only suitable for cross toolchains.
2977 # Remove these if host=target.
2978 cross_only="target-libgloss target-newlib target-opcodes"
2979
2980 case $is_cross_compiler in
2981 no) skipdirs="${skipdirs} ${cross_only}" ;;
2982 esac
2983
2984 # If both --with-headers and --with-libs are specified, default to
2985 # --without-newlib.
2986 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2987 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2988 if test x"${with_newlib}" = x ; then
2989 with_newlib=no
2990 fi
2991 fi
2992
2993 # Recognize --with-newlib/--without-newlib.
2994 case ${with_newlib} in
2995 no) skipdirs="${skipdirs} target-newlib" ;;
2996 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2997 esac
2998
2999 # Check whether --enable-as-accelerator-for was given.
3000 if test "${enable_as_accelerator_for+set}" = set; then :
3001 enableval=$enable_as_accelerator_for;
3002 fi
3003
3004
3005 # Check whether --enable-offload-targets was given.
3006 if test "${enable_offload_targets+set}" = set; then :
3007 enableval=$enable_offload_targets;
3008 if test x"$enable_offload_targets" = x; then
3009 as_fn_error $? "no offload targets specified" "$LINENO" 5
3010 fi
3011
3012 else
3013 enable_offload_targets=
3014 fi
3015
3016
3017 # Check whether --enable-offload-defaulted was given.
3018 if test "${enable_offload_defaulted+set}" = set; then :
3019 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3020 else
3021 enable_offload_defaulted=
3022 fi
3023
3024
3025 # Handle --enable-gold, --enable-ld.
3026 # --disable-gold [--enable-ld]
3027 # Build only ld. Default option.
3028 # --enable-gold [--enable-ld]
3029 # Build both gold and ld. Install gold as "ld.gold", install ld
3030 # as "ld.bfd" and "ld".
3031 # --enable-gold=default [--enable-ld]
3032 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3033 # install ld as "ld.bfd".
3034 # --enable-gold[=default] --disable-ld
3035 # Build only gold, which is then installed as both "ld.gold" and "ld".
3036 # --enable-gold --enable-ld=default
3037 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3038 # and ld.bfd).
3039 # In other words, ld is default
3040 # --enable-gold=default --enable-ld=default
3041 # Error.
3042
3043 default_ld=
3044 # Check whether --enable-gold was given.
3045 if test "${enable_gold+set}" = set; then :
3046 enableval=$enable_gold; ENABLE_GOLD=$enableval
3047 else
3048 ENABLE_GOLD=no
3049 fi
3050
3051 case "${ENABLE_GOLD}" in
3052 yes|default)
3053 # Check for ELF target.
3054 is_elf=no
3055 case "${target}" in
3056 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3057 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3058 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3059 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3060 case "${target}" in
3061 *-*-linux*aout* | *-*-linux*oldld*)
3062 ;;
3063 *)
3064 is_elf=yes
3065 ;;
3066 esac
3067 esac
3068
3069 if test "$is_elf" = "yes"; then
3070 # Check for target supported by gold.
3071 case "${target}" in
3072 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3073 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3074 configdirs="$configdirs gold"
3075 if test x${ENABLE_GOLD} = xdefault; then
3076 default_ld=gold
3077 fi
3078 ENABLE_GOLD=yes
3079 ;;
3080 esac
3081 fi
3082 ;;
3083 no)
3084 ;;
3085 *)
3086 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3087 ;;
3088 esac
3089
3090 # Check whether --enable-ld was given.
3091 if test "${enable_ld+set}" = set; then :
3092 enableval=$enable_ld; ENABLE_LD=$enableval
3093 else
3094 ENABLE_LD=yes
3095 fi
3096
3097
3098 case "${ENABLE_LD}" in
3099 default)
3100 if test x${default_ld} != x; then
3101 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3102 fi
3103 ;;
3104 yes)
3105 ;;
3106 no)
3107 if test x${ENABLE_GOLD} != xyes; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3109 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 fi
3111 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3112 ;;
3113 *)
3114 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3115 ;;
3116 esac
3117
3118 # PR gas/19109
3119 # Decide the default method for compressing debug sections.
3120 # Provide a configure time option to override our default.
3121 # Check whether --enable-compressed_debug_sections was given.
3122 if test "${enable_compressed_debug_sections+set}" = set; then :
3123 enableval=$enable_compressed_debug_sections;
3124 if test x"$enable_compressed_debug_sections" = xyes; then
3125 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3126 fi
3127
3128 else
3129 enable_compressed_debug_sections=
3130 fi
3131
3132
3133 # Configure extra directories which are host specific
3134
3135 case "${host}" in
3136 *-cygwin*)
3137 configdirs="$configdirs libtermcap" ;;
3138 esac
3139
3140 # A target can indicate whether a language isn't supported for some reason.
3141 # Only spaces may be used in this macro; not newlines or tabs.
3142 unsupported_languages=
3143
3144 # Remove more programs from consideration, based on the host or
3145 # target this usually means that a port of the program doesn't
3146 # exist yet.
3147
3148 case "${host}" in
3149 i[3456789]86-*-msdosdjgpp*)
3150 noconfigdirs="$noconfigdirs tcl tk itcl"
3151 ;;
3152 esac
3153
3154
3155 # Check whether --enable-libquadmath was given.
3156 if test "${enable_libquadmath+set}" = set; then :
3157 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3158 else
3159 ENABLE_LIBQUADMATH=yes
3160 fi
3161
3162 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3163 noconfigdirs="$noconfigdirs target-libquadmath"
3164 fi
3165
3166
3167 # Check whether --enable-libquadmath-support was given.
3168 if test "${enable_libquadmath_support+set}" = set; then :
3169 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3170 else
3171 ENABLE_LIBQUADMATH_SUPPORT=yes
3172 fi
3173
3174 enable_libquadmath_support=
3175 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3176 enable_libquadmath_support=no
3177 fi
3178
3179
3180 # Check whether --enable-libada was given.
3181 if test "${enable_libada+set}" = set; then :
3182 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3183 else
3184 ENABLE_LIBADA=yes
3185 fi
3186
3187 if test "${ENABLE_LIBADA}" != "yes" ; then
3188 noconfigdirs="$noconfigdirs gnattools"
3189 fi
3190
3191 # Check whether --enable-libgm2 was given.
3192 if test "${enable_libgm2+set}" = set; then :
3193 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3194 else
3195 ENABLE_LIBGM2=no
3196 fi
3197
3198 if test "${ENABLE_LIBGM2}" != "yes" ; then
3199 noconfigdirs="$noconfigdirs gm2tools"
3200 fi
3201
3202 # Check whether --enable-libssp was given.
3203 if test "${enable_libssp+set}" = set; then :
3204 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3205 else
3206 ENABLE_LIBSSP=yes
3207 fi
3208
3209
3210 # Check whether --enable-libstdcxx was given.
3211 if test "${enable_libstdcxx+set}" = set; then :
3212 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3213 else
3214 ENABLE_LIBSTDCXX=default
3215 fi
3216
3217 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3218 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3219 fi
3220
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x$enable_libgomp = x ; then
3223 case "${target}" in
3224 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3225 ;;
3226 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3227 ;;
3228 *-*-solaris2* | *-*-hpux11*)
3229 ;;
3230 *-*-darwin* | *-*-aix*)
3231 ;;
3232 nvptx*-*-* | amdgcn*-*-*)
3233 ;;
3234 *)
3235 noconfigdirs="$noconfigdirs target-libgomp"
3236 ;;
3237 esac
3238 fi
3239
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic; then
3242 if test x$enable_libatomic = x; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir=${srcdir}/libatomic; \
3246 . ${srcdir}/configure.tgt; \
3247 test -n "$UNSUPPORTED")
3248 then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs="$noconfigdirs target-libatomic"
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3255 fi
3256 fi
3257 fi
3258
3259 # Disable libitm on unsupported systems.
3260 if test -d ${srcdir}/libitm; then
3261 if test x$enable_libitm = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3263 $as_echo_n "checking for libitm support... " >&6; }
3264 if (srcdir=${srcdir}/libitm; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libitm"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 fi
3275 fi
3276 fi
3277
3278 # Disable libsanitizer on unsupported systems.
3279 if test -d ${srcdir}/libsanitizer; then
3280 if test x$enable_libsanitizer = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3282 $as_echo_n "checking for libsanitizer support... " >&6; }
3283 if (srcdir=${srcdir}/libsanitizer; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-libsanitizer"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3293 fi
3294 fi
3295 fi
3296
3297 # Disable libvtv on unsupported systems.
3298 if test -d ${srcdir}/libvtv; then
3299 if test x$enable_libvtv = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3301 $as_echo_n "checking for libvtv support... " >&6; }
3302 if (srcdir=${srcdir}/libvtv; \
3303 . ${srcdir}/configure.tgt; \
3304 test "$VTV_SUPPORTED" != "yes")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libvtv"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3312 fi
3313 fi
3314 fi
3315
3316 # Disable libquadmath for some systems.
3317 case "${target}" in
3318 avr-*-*)
3319 noconfigdirs="$noconfigdirs target-libquadmath"
3320 ;;
3321 # libquadmath is unused on AIX and libquadmath build process use of
3322 # LD_LIBRARY_PATH can break AIX bootstrap.
3323 powerpc-*-aix* | rs6000-*-aix*)
3324 noconfigdirs="$noconfigdirs target-libquadmath"
3325 ;;
3326 esac
3327
3328 # Disable libssp for some systems.
3329 case "${target}" in
3330 avr-*-*)
3331 # No hosted I/O support.
3332 noconfigdirs="$noconfigdirs target-libssp"
3333 ;;
3334 bpf-*-*)
3335 noconfigdirs="$noconfigdirs target-libssp"
3336 ;;
3337 powerpc-*-aix* | rs6000-*-aix*)
3338 noconfigdirs="$noconfigdirs target-libssp"
3339 ;;
3340 pru-*-*)
3341 # No hosted I/O support.
3342 noconfigdirs="$noconfigdirs target-libssp"
3343 ;;
3344 rl78-*-*)
3345 # libssp uses a misaligned load to trigger a fault, but the RL78
3346 # doesn't fault for those - instead, it gives a build-time error
3347 # for explicit misaligned loads.
3348 noconfigdirs="$noconfigdirs target-libssp"
3349 ;;
3350 visium-*-*)
3351 # No hosted I/O support.
3352 noconfigdirs="$noconfigdirs target-libssp"
3353 ;;
3354 esac
3355
3356 # Disable libstdc++-v3 for some systems.
3357 # Allow user to override this if they pass --enable-libstdcxx
3358 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3359 case "${target}" in
3360 *-*-vxworks*)
3361 # VxWorks uses the Dinkumware C++ library.
3362 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 ;;
3364 amdgcn*-*-*)
3365 # Not ported/fails to build when using newlib.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 arm*-wince-pe*)
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 ;;
3372 avr-*-*)
3373 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 ;;
3375 bpf-*-*)
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ;;
3378 ft32-*-*)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 ;;
3381 esac
3382 fi
3383
3384 # Disable C++ on systems where it is known to not work.
3385 # For testing, you can override this with --enable-languages=c++.
3386 case ,${enable_languages}, in
3387 *,c++,*)
3388 ;;
3389 *)
3390 case "${target}" in
3391 bpf-*-*)
3392 unsupported_languages="$unsupported_languages c++"
3393 ;;
3394 esac
3395 ;;
3396 esac
3397
3398 # Disable Objc on systems where it is known to not work.
3399 # For testing, you can override this with --enable-languages=objc.
3400 case ,${enable_languages}, in
3401 *,objc,*)
3402 ;;
3403 *)
3404 case "${target}" in
3405 bpf-*-*)
3406 unsupported_languages="$unsupported_languages objc"
3407 ;;
3408 esac
3409 ;;
3410 esac
3411
3412 # Disable D on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=d.
3414 case ,${enable_languages}, in
3415 *,d,*)
3416 ;;
3417 *)
3418 case "${target}" in
3419 bpf-*-*)
3420 unsupported_languages="$unsupported_languages d"
3421 ;;
3422 esac
3423 ;;
3424 esac
3425
3426 # Disable libphobos on unsupported systems.
3427 # For testing, you can override this with --enable-libphobos.
3428 if test -d ${srcdir}/libphobos; then
3429 if test x$enable_libphobos = x; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3431 $as_echo_n "checking for libphobos support... " >&6; }
3432 if (srcdir=${srcdir}/libphobos; \
3433 . ${srcdir}/configure.tgt; \
3434 test "$LIBPHOBOS_SUPPORTED" != "yes")
3435 then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 noconfigdirs="$noconfigdirs target-libphobos"
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 $as_echo "yes" >&6; }
3442 fi
3443 fi
3444 fi
3445
3446 # Disable Fortran for some systems.
3447 case "${target}" in
3448 mmix-*-*)
3449 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3450 unsupported_languages="$unsupported_languages fortran"
3451 ;;
3452 bpf-*-*)
3453 unsupported_languages="$unsupported_languages fortran"
3454 ;;
3455 esac
3456
3457 # Disable libffi for some systems.
3458 case "${target}" in
3459 powerpc-*-darwin*)
3460 ;;
3461 i[3456789]86-*-darwin*)
3462 ;;
3463 x86_64-*-darwin[912]*)
3464 ;;
3465 *-*-darwin*)
3466 noconfigdirs="$noconfigdirs target-libffi"
3467 ;;
3468 *-*-netware*)
3469 noconfigdirs="$noconfigdirs target-libffi"
3470 ;;
3471 *-*-phoenix*)
3472 noconfigdirs="$noconfigdirs target-libffi"
3473 ;;
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs target-libffi"
3476 ;;
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs target-libffi"
3479 ;;
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs target-libffi"
3482 ;;
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs target-libffi"
3485 ;;
3486 aarch64*-*-freebsd*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3488 ;;
3489 alpha*-*-*vms*)
3490 noconfigdirs="$noconfigdirs target-libffi"
3491 ;;
3492 arm*-*-freebsd*)
3493 noconfigdirs="$noconfigdirs target-libffi"
3494 ;;
3495 arm-wince-pe)
3496 noconfigdirs="$noconfigdirs target-libffi"
3497 ;;
3498 arm*-*-symbianelf*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3500 ;;
3501 bpf-*-*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 cris-*-* | crisv32-*-*)
3505 case "${target}" in
3506 *-*-linux*)
3507 ;;
3508 *) # See PR46792 regarding target-libffi.
3509 noconfigdirs="$noconfigdirs target-libffi";;
3510 esac
3511 ;;
3512 hppa*64*-*-hpux*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
3515 ia64*-*-*vms*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518 i[3456789]86-w64-mingw*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 i[3456789]86-*-mingw*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 x86_64-*-mingw*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 mmix-*-*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 powerpc-*-aix*)
3531 ;;
3532 rs6000-*-aix*)
3533 ;;
3534 ft32-*-*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
3537 *-*-lynxos*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
3540 esac
3541
3542 # Disable the go frontend on systems where it is known to not work. Please keep
3543 # this in sync with contrib/config-list.mk.
3544 case "${target}" in
3545 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3546 unsupported_languages="$unsupported_languages go"
3547 ;;
3548 esac
3549
3550 # Only allow gdbserver on some systems.
3551 if test -d ${srcdir}/gdbserver; then
3552 if test x$enable_gdbserver = x; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3554 $as_echo_n "checking for gdbserver support... " >&6; }
3555 if (srcdir=${srcdir}/gdbserver; \
3556 . ${srcdir}/configure.srv; \
3557 test -n "$UNSUPPORTED")
3558 then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 noconfigdirs="$noconfigdirs gdbserver"
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565 fi
3566 fi
3567 fi
3568
3569 # Disable libgo for some systems where it is known to not work.
3570 # For testing, you can easily override this with --enable-libgo.
3571 if test x$enable_libgo = x; then
3572 case "${target}" in
3573 *-*-darwin*)
3574 # PR 46986
3575 noconfigdirs="$noconfigdirs target-libgo"
3576 ;;
3577 *-*-cygwin* | *-*-mingw*)
3578 noconfigdirs="$noconfigdirs target-libgo"
3579 ;;
3580 bpf-*-*)
3581 noconfigdirs="$noconfigdirs target-libgo"
3582 ;;
3583 esac
3584 fi
3585
3586 # Default libgloss CPU subdirectory.
3587 libgloss_dir="$target_cpu"
3588
3589 case "${target}" in
3590 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3591 libgloss_dir=wince
3592 ;;
3593 aarch64*-*-* )
3594 libgloss_dir=aarch64
3595 ;;
3596 arm*-*-*)
3597 libgloss_dir=arm
3598 ;;
3599 cris-*-* | crisv32-*-*)
3600 libgloss_dir=cris
3601 ;;
3602 hppa*-*-*)
3603 libgloss_dir=pa
3604 ;;
3605 i[3456789]86-*-*)
3606 libgloss_dir=i386
3607 ;;
3608 loongarch*-*-*)
3609 libgloss_dir=loongarch
3610 ;;
3611 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3612 libgloss_dir=m68hc11
3613 ;;
3614 m68*-*-* | fido-*-*)
3615 libgloss_dir=m68k
3616 ;;
3617 mips*-*-*)
3618 libgloss_dir=mips
3619 ;;
3620 powerpc*-*-*)
3621 libgloss_dir=rs6000
3622 ;;
3623 pru-*-*)
3624 libgloss_dir=pru
3625 ;;
3626 sparc*-*-*)
3627 libgloss_dir=sparc
3628 ;;
3629 esac
3630
3631 # Disable newlib and libgloss for various target OSes.
3632 case "${target}" in
3633 alpha*-dec-osf*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 ;;
3636 i[3456789]86-*-linux*)
3637 # This section makes it possible to build newlib natively on linux.
3638 # If we are using a cross compiler then don't configure newlib.
3639 if test x${is_cross_compiler} != xno ; then
3640 noconfigdirs="$noconfigdirs target-newlib"
3641 fi
3642 noconfigdirs="$noconfigdirs target-libgloss"
3643 # If we are not using a cross compiler, do configure newlib.
3644 # Note however, that newlib will only be configured in this situation
3645 # if the --with-newlib option has been given, because otherwise
3646 # 'target-newlib' will appear in skipdirs.
3647 ;;
3648 i[3456789]86-*-rdos*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 ;;
3651 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 sparc-*-sunos4*)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 ;;
3657 bpf-*-*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 ;;
3660 *-*-aix*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 ;;
3663 *-*-beos*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 ;;
3666 *-*-chorusos)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 ;;
3669 *-*-dragonfly*)
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 ;;
3672 *-*-freebsd*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 ;;
3675 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 ;;
3678 *-*-lynxos*)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 *-*-mingw*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
3684 *-*-netbsd*)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
3687 *-*-netware*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 *-*-tpf*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 *-*-uclinux*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 *-*-vxworks*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 esac
3700
3701 case "${target}" in
3702 *-*-chorusos)
3703 ;;
3704 aarch64-*-darwin*)
3705 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3707 ;;
3708 amdgcn*-*-*)
3709 ;;
3710 arm-*-darwin*)
3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs="$noconfigdirs sim target-rda"
3713 ;;
3714 powerpc-*-darwin*)
3715 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3716 noconfigdirs="$noconfigdirs sim target-rda"
3717 ;;
3718 i[3456789]86-*-darwin*)
3719 noconfigdirs="$noconfigdirs ld gprof"
3720 noconfigdirs="$noconfigdirs sim target-rda"
3721 ;;
3722 x86_64-*-darwin[912]*)
3723 noconfigdirs="$noconfigdirs ld gas gprof"
3724 noconfigdirs="$noconfigdirs sim target-rda"
3725 ;;
3726 *-*-darwin*)
3727 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3728 noconfigdirs="$noconfigdirs sim target-rda"
3729 ;;
3730 *-*-dragonfly*)
3731 ;;
3732 *-*-freebsd*)
3733 if test "x$with_gmp" = x \
3734 && ! test -d ${srcdir}/gmp \
3735 && test -f /usr/local/include/gmp.h; then
3736 with_gmp=/usr/local
3737 fi
3738 ;;
3739 *-*-kaos*)
3740 # Remove unsupported stuff on all kaOS configurations.
3741 noconfigdirs="$noconfigdirs target-libgloss"
3742 ;;
3743 *-*-netbsd*)
3744 ;;
3745 *-*-netware*)
3746 ;;
3747 *-*-phoenix*)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3749 ;;
3750 *-*-rtems*)
3751 noconfigdirs="$noconfigdirs target-libgloss"
3752 ;;
3753 # The tpf target doesn't support gdb yet.
3754 *-*-tpf*)
3755 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3756 ;;
3757 *-*-uclinux*)
3758 noconfigdirs="$noconfigdirs target-rda"
3759 ;;
3760 *-*-vxworks*)
3761 ;;
3762 alpha*-dec-osf*)
3763 # ld works, but does not support shared libraries.
3764 # gas doesn't generate exception information.
3765 noconfigdirs="$noconfigdirs gas ld"
3766 ;;
3767 alpha*-*-*vms*)
3768 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3769 ;;
3770 alpha*-*-*)
3771 # newlib is not 64 bit ready
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 ;;
3774 bpf-*-*)
3775 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3776 ;;
3777 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3778 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3779 ;;
3780 arc*-*-*)
3781 noconfigdirs="$noconfigdirs sim"
3782 ;;
3783 arm-*-pe*)
3784 noconfigdirs="$noconfigdirs target-libgloss"
3785 ;;
3786 arm-*-riscix*)
3787 noconfigdirs="$noconfigdirs ld target-libgloss"
3788 ;;
3789 avr-*-*)
3790 if test x${with_avrlibc} != xno; then
3791 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3792 fi
3793 ;;
3794 c4x-*-* | tic4x-*-*)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3796 ;;
3797 tic54x-*-*)
3798 noconfigdirs="$noconfigdirs target-libgloss gdb"
3799 ;;
3800 d10v-*-*)
3801 noconfigdirs="$noconfigdirs target-libgloss"
3802 ;;
3803 d30v-*-*)
3804 noconfigdirs="$noconfigdirs gdb"
3805 ;;
3806 fr30-*-elf*)
3807 noconfigdirs="$noconfigdirs gdb"
3808 ;;
3809 ft32-*-*)
3810 noconfigdirs="$noconfigdirs target-rda gprof"
3811 ;;
3812 moxie-*-*)
3813 noconfigdirs="$noconfigdirs"
3814 ;;
3815 h8300*-*-*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 h8500-*-*)
3819 noconfigdirs="$noconfigdirs target-libgloss"
3820 ;;
3821 hppa*64*-*-hpux*)
3822 noconfigdirs="$noconfigdirs gdb"
3823 ;;
3824 hppa*64*-*-linux*)
3825 ;;
3826 hppa*-*-linux*)
3827 ;;
3828 hppa*-*-*elf* | \
3829 hppa*-*-lites* | \
3830 hppa*-*-openbsd* | \
3831 hppa*64*-*-*)
3832 ;;
3833 hppa*-*-pro*)
3834 ;;
3835 hppa*-*-*)
3836 noconfigdirs="$noconfigdirs ld"
3837 ;;
3838 i960-*-*)
3839 noconfigdirs="$noconfigdirs gdb"
3840 ;;
3841 ia64*-*-elf*)
3842 # No gdb support yet.
3843 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3844 ;;
3845 ia64*-**-hpux*)
3846 # No ld support yet.
3847 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3848 ;;
3849 ia64*-*-*vms*)
3850 # No ld support yet.
3851 noconfigdirs="$noconfigdirs libgui itcl ld"
3852 ;;
3853 i[3456789]86-w64-mingw*)
3854 ;;
3855 i[3456789]86-*-mingw*)
3856 target_configdirs="$target_configdirs target-winsup"
3857 ;;
3858 *-*-cygwin*)
3859 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3860 noconfigdirs="$noconfigdirs target-libgloss"
3861 # always build newlib if winsup directory is present.
3862 if test -d "$srcdir/winsup/cygwin"; then
3863 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864 elif test -d "$srcdir/newlib"; then
3865 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3866 fi
3867 ;;
3868 i[3456789]86-*-pe)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3870 ;;
3871 i[3456789]86-*-sco3.2v5*)
3872 # The linker does not yet know about weak symbols in COFF,
3873 # and is not configured to handle mixed ELF and COFF.
3874 noconfigdirs="$noconfigdirs ld target-libgloss"
3875 ;;
3876 i[3456789]86-*-sco*)
3877 noconfigdirs="$noconfigdirs gprof target-libgloss"
3878 ;;
3879 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3880 noconfigdirs="$noconfigdirs target-libgloss"
3881 ;;
3882 i[3456789]86-*-sysv4*)
3883 noconfigdirs="$noconfigdirs target-libgloss"
3884 ;;
3885 i[3456789]86-*-beos*)
3886 noconfigdirs="$noconfigdirs gdb"
3887 ;;
3888 i[3456789]86-*-rdos*)
3889 noconfigdirs="$noconfigdirs gdb"
3890 ;;
3891 mmix-*-*)
3892 noconfigdirs="$noconfigdirs gdb"
3893 ;;
3894 mt-*-*)
3895 noconfigdirs="$noconfigdirs sim"
3896 ;;
3897 nfp-*-*)
3898 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3899 noconfigdirs="$noconfigdirs $target_libraries"
3900 ;;
3901 pdp11-*-*)
3902 noconfigdirs="$noconfigdirs gdb gprof"
3903 ;;
3904 powerpc-*-aix*)
3905 # copied from rs6000-*-* entry
3906 noconfigdirs="$noconfigdirs gprof"
3907 ;;
3908 powerpc*-*-winnt* | powerpc*-*-pe*)
3909 target_configdirs="$target_configdirs target-winsup"
3910 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3911 # always build newlib.
3912 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 ;;
3914 # This is temporary until we can link against shared libraries
3915 powerpcle-*-solaris*)
3916 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3917 ;;
3918 powerpc-*-beos*)
3919 noconfigdirs="$noconfigdirs gdb"
3920 ;;
3921 rs6000-*-lynxos*)
3922 noconfigdirs="$noconfigdirs gprof"
3923 ;;
3924 rs6000-*-aix*)
3925 noconfigdirs="$noconfigdirs gprof"
3926 ;;
3927 rs6000-*-*)
3928 noconfigdirs="$noconfigdirs gprof"
3929 ;;
3930 m68k-apollo-*)
3931 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3932 ;;
3933 microblaze*)
3934 noconfigdirs="$noconfigdirs gprof"
3935 ;;
3936 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3937 if test x$with_newlib = xyes; then
3938 noconfigdirs="$noconfigdirs gprof"
3939 fi
3940 ;;
3941 mips*-*-irix5*)
3942 noconfigdirs="$noconfigdirs gprof target-libgloss"
3943 ;;
3944 mips*-*-irix6*)
3945 noconfigdirs="$noconfigdirs gprof target-libgloss"
3946 ;;
3947 mips*-*-bsd*)
3948 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3949 ;;
3950 mips*-*-linux*)
3951 ;;
3952 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3953 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3954 noconfigdirs="$noconfigdirs ld gas gprof"
3955 ;;
3956 mips*-*-*)
3957 noconfigdirs="$noconfigdirs gprof"
3958 ;;
3959 nvptx*-*-*)
3960 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3961 ;;
3962 sh-*-*)
3963 case "${target}" in
3964 sh*-*-elf)
3965 ;;
3966 *)
3967 noconfigdirs="$noconfigdirs target-libgloss" ;;
3968 esac
3969 ;;
3970 sparc-*-sunos4*)
3971 if test x${is_cross_compiler} = xno ; then
3972 use_gnu_ld=no
3973 fi
3974 ;;
3975 tic6x-*-*)
3976 noconfigdirs="$noconfigdirs sim"
3977 ;;
3978 v810-*-*)
3979 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3980 ;;
3981 vax-*-*)
3982 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3983 ;;
3984 wasm32-*-*)
3985 noconfigdirs="$noconfigdirs ld"
3986 ;;
3987 loongarch*-*-linux*)
3988 ;;
3989 loongarch*-*-*)
3990 noconfigdirs="$noconfigdirs gprof"
3991 ;;
3992 esac
3993
3994 # If we aren't building newlib, then don't build libgloss, since libgloss
3995 # depends upon some newlib header files.
3996 case "${noconfigdirs}" in
3997 *target-libgloss*) ;;
3998 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3999 esac
4000
4001 # Work in distributions that contain no compiler tools, like Autoconf.
4002 host_makefile_frag=/dev/null
4003 if test -d ${srcdir}/config ; then
4004 case "${host}" in
4005 i[3456789]86-*-msdosdjgpp*)
4006 host_makefile_frag="config/mh-djgpp"
4007 ;;
4008 *-cygwin*)
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4011 $as_echo_n "checking to see if cat works as expected... " >&6; }
4012 echo a >cygwin-cat-check
4013 if test `cat cygwin-cat-check` = a ; then
4014 rm cygwin-cat-check
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4017 else
4018 rm cygwin-cat-check
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 as_fn_error $? "The cat command does not ignore carriage return characters.
4022 Please either mount the build directory in binary mode or run the following
4023 commands before running any configure script:
4024 set -o igncr
4025 export SHELLOPTS
4026 " "$LINENO" 5
4027 fi
4028
4029 host_makefile_frag="config/mh-cygwin"
4030 ;;
4031 *-mingw*)
4032 host_makefile_frag="config/mh-mingw"
4033 ;;
4034 alpha*-linux*)
4035 host_makefile_frag="config/mh-alpha-linux"
4036 ;;
4037 hppa*-hp-hpux*)
4038 host_makefile_frag="config/mh-pa"
4039 ;;
4040 hppa*-*)
4041 host_makefile_frag="config/mh-pa"
4042 ;;
4043 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4044 host_makefile_frag="config/mh-darwin"
4045 ;;
4046 powerpc-*-aix*)
4047 host_makefile_frag="config/mh-ppc-aix"
4048 ;;
4049 rs6000-*-aix*)
4050 host_makefile_frag="config/mh-ppc-aix"
4051 ;;
4052 esac
4053 fi
4054
4055 if test "${build}" != "${host}" ; then
4056 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4057 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4058 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4059 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4060 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4061 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4062 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4063 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4064 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4065 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4066 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4067 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4068 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4069 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4070 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4071 else
4072 AR_FOR_BUILD="\$(AR)"
4073 AS_FOR_BUILD="\$(AS)"
4074 CC_FOR_BUILD="\$(CC)"
4075 CXX_FOR_BUILD="\$(CXX)"
4076 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4077 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4078 GOC_FOR_BUILD="\$(GOC)"
4079 GDC_FOR_BUILD="\$(GDC)"
4080 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4081 LD_FOR_BUILD="\$(LD)"
4082 NM_FOR_BUILD="\$(NM)"
4083 RANLIB_FOR_BUILD="\$(RANLIB)"
4084 WINDRES_FOR_BUILD="\$(WINDRES)"
4085 WINDMC_FOR_BUILD="\$(WINDMC)"
4086 fi
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113 break 2
4114 fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 CC=$ac_cv_prog_CC
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4125 else
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_CC"; then
4133 ac_ct_CC=$CC
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170 if test "x$ac_ct_CC" = x; then
4171 CC=""
4172 else
4173 case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4178 esac
4179 CC=$ac_ct_CC
4180 fi
4181 else
4182 CC="$ac_cv_prog_CC"
4183 fi
4184
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208 done
4209 done
4210 IFS=$as_save_IFS
4211
4212 fi
4213 fi
4214 CC=$ac_cv_prog_CC
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4221 fi
4222
4223
4224 fi
4225 fi
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4236 else
4237 ac_prog_rejected=no
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4247 continue
4248 fi
4249 ac_cv_prog_CC="cc"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4260 shift
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4265 shift
4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4267 fi
4268 fi
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 fi
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in cl.exe
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 fi
4312 fi
4313 CC=$ac_cv_prog_CC
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4320 fi
4321
4322
4323 test -n "$CC" && break
4324 done
4325 fi
4326 if test -z "$CC"; then
4327 ac_ct_CC=$CC
4328 for ac_prog in cl.exe
4329 do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365
4366
4367 test -n "$ac_ct_CC" && break
4368 done
4369
4370 if test "x$ac_ct_CC" = x; then
4371 CC=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CC=$ac_ct_CC
4380 fi
4381 fi
4382
4383 fi
4384
4385
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4390
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4393 set X $ac_compile
4394 ac_compiler=$2
4395 for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4404 ac_status=$?
4405 if test -s conftest.err; then
4406 sed '10a\
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4410 fi
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4414 done
4415
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418
4419 int
4420 main ()
4421 {
4422
4423 ;
4424 return 0;
4425 }
4426 _ACEOF
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4431 # of exeext.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438
4439 ac_rmfiles=
4440 for ac_file in $ac_files
4441 do
4442 case $ac_file in
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4445 esac
4446 done
4447 rm -f $ac_rmfiles
4448
4449 if { { ac_try="$ac_link_default"
4450 case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4457 ac_status=$?
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4464 # Autoconf.
4465 for ac_file in $ac_files ''
4466 do
4467 test -f "$ac_file" || continue
4468 case $ac_file in
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470 ;;
4471 [ab].out )
4472 # We found the default executable, but exeext='' is most
4473 # certainly right.
4474 break;;
4475 *.* )
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4477 then :; else
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 fi
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4484 # actually working.
4485 break;;
4486 * )
4487 break;;
4488 esac
4489 done
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4491
4492 else
4493 ac_file=''
4494 fi
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4514
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4520 case "(($ac_try" in
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4527 ac_status=$?
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4533 # `rm'.
4534 for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4536 case $ac_file in
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4539 break;;
4540 * ) break;;
4541 esac
4542 done
4543 else
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4552
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4555 ac_exeext=$EXEEXT
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <stdio.h>
4559 int
4560 main ()
4561 {
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4583 ac_status=$?
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4597 cross_compiling=no
4598 else
4599 if test "$cross_compiling" = maybe; then
4600 cross_compiling=yes
4601 else
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4607 fi
4608 fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4612
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622
4623 int
4624 main ()
4625 {
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4645 case $ac_file in
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4648 break;;
4649 esac
4650 done
4651 else
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4659 fi
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4665 ac_objext=$OBJEXT
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673
4674 int
4675 main ()
4676 {
4677 #ifndef __GNUC__
4678 choke me
4679 #endif
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_compile "$LINENO"; then :
4686 ac_compiler_gnu=yes
4687 else
4688 ac_compiler_gnu=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4697 GCC=yes
4698 else
4699 GCC=
4700 fi
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4710 ac_cv_prog_cc_g=no
4711 CFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_prog_cc_g=yes
4725 else
4726 CFLAGS=""
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729
4730 int
4731 main ()
4732 {
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739
4740 else
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4742 CFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746 int
4747 main ()
4748 {
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_g=yes
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4770 CFLAGS="-g -O2"
4771 else
4772 CFLAGS="-g"
4773 fi
4774 else
4775 if test "$GCC" = yes; then
4776 CFLAGS="-O2"
4777 else
4778 CFLAGS=
4779 fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_cv_prog_cc_c89=no
4787 ac_save_CC=$CC
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <stdarg.h>
4791 #include <stdio.h>
4792 struct stat;
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4797 char **p;
4798 int i;
4799 {
4800 return p[i];
4801 }
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4803 {
4804 char *s;
4805 va_list v;
4806 va_start (v,p);
4807 s = g (p, va_arg (v,int));
4808 va_end (v);
4809 return s;
4810 }
4811
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4823 #define FOO(x) 'x'
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4830 int argc;
4831 char **argv;
4832 int
4833 main ()
4834 {
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 do
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4849 done
4850 rm -f conftest.$ac_ext
4851 CC=$ac_save_CC
4852
4853 fi
4854 # AC_CACHE_VAL
4855 case "x$ac_cv_prog_cc_c89" in
4856 x)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4859 xno)
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4862 *)
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4866 esac
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4868
4869 fi
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4878 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4879 if ${ac_cv_prog_cc_c99+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 ac_cv_prog_cc_c99=no
4883 ac_save_CC=$CC
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <stdarg.h>
4887 #include <stdbool.h>
4888 #include <stdlib.h>
4889 #include <wchar.h>
4890 #include <stdio.h>
4891
4892 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4893 #define debug(...) fprintf (stderr, __VA_ARGS__)
4894 #define showlist(...) puts (#__VA_ARGS__)
4895 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4896 static void
4897 test_varargs_macros (void)
4898 {
4899 int x = 1234;
4900 int y = 5678;
4901 debug ("Flag");
4902 debug ("X = %d\n", x);
4903 showlist (The first, second, and third items.);
4904 report (x>y, "x is %d but y is %d", x, y);
4905 }
4906
4907 // Check long long types.
4908 #define BIG64 18446744073709551615ull
4909 #define BIG32 4294967295ul
4910 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4911 #if !BIG_OK
4912 your preprocessor is broken;
4913 #endif
4914 #if BIG_OK
4915 #else
4916 your preprocessor is broken;
4917 #endif
4918 static long long int bignum = -9223372036854775807LL;
4919 static unsigned long long int ubignum = BIG64;
4920
4921 struct incomplete_array
4922 {
4923 int datasize;
4924 double data[];
4925 };
4926
4927 struct named_init {
4928 int number;
4929 const wchar_t *name;
4930 double average;
4931 };
4932
4933 typedef const char *ccp;
4934
4935 static inline int
4936 test_restrict (ccp restrict text)
4937 {
4938 // See if C++-style comments work.
4939 // Iterate through items via the restricted pointer.
4940 // Also check for declarations in for loops.
4941 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4942 continue;
4943 return 0;
4944 }
4945
4946 // Check varargs and va_copy.
4947 static void
4948 test_varargs (const char *format, ...)
4949 {
4950 va_list args;
4951 va_start (args, format);
4952 va_list args_copy;
4953 va_copy (args_copy, args);
4954
4955 const char *str;
4956 int number;
4957 float fnumber;
4958
4959 while (*format)
4960 {
4961 switch (*format++)
4962 {
4963 case 's': // string
4964 str = va_arg (args_copy, const char *);
4965 break;
4966 case 'd': // int
4967 number = va_arg (args_copy, int);
4968 break;
4969 case 'f': // float
4970 fnumber = va_arg (args_copy, double);
4971 break;
4972 default:
4973 break;
4974 }
4975 }
4976 va_end (args_copy);
4977 va_end (args);
4978 }
4979
4980 int
4981 main ()
4982 {
4983
4984 // Check bool.
4985 _Bool success = false;
4986
4987 // Check restrict.
4988 if (test_restrict ("String literal") == 0)
4989 success = true;
4990 char *restrict newvar = "Another string";
4991
4992 // Check varargs.
4993 test_varargs ("s, d' f .", "string", 65, 34.234);
4994 test_varargs_macros ();
4995
4996 // Check flexible array members.
4997 struct incomplete_array *ia =
4998 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4999 ia->datasize = 10;
5000 for (int i = 0; i < ia->datasize; ++i)
5001 ia->data[i] = i * 1.234;
5002
5003 // Check named initializers.
5004 struct named_init ni = {
5005 .number = 34,
5006 .name = L"Test wide string",
5007 .average = 543.34343,
5008 };
5009
5010 ni.number = 58;
5011
5012 int dynamic_array[ni.number];
5013 dynamic_array[ni.number - 1] = 543;
5014
5015 // work around unused variable warnings
5016 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5017 || dynamic_array[ni.number - 1] != 543);
5018
5019 ;
5020 return 0;
5021 }
5022 _ACEOF
5023 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5024 do
5025 CC="$ac_save_CC $ac_arg"
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_prog_cc_c99=$ac_arg
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext
5030 test "x$ac_cv_prog_cc_c99" != "xno" && break
5031 done
5032 rm -f conftest.$ac_ext
5033 CC=$ac_save_CC
5034
5035 fi
5036 # AC_CACHE_VAL
5037 case "x$ac_cv_prog_cc_c99" in
5038 x)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5040 $as_echo "none needed" >&6; } ;;
5041 xno)
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5043 $as_echo "unsupported" >&6; } ;;
5044 *)
5045 CC="$CC $ac_cv_prog_cc_c99"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5047 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5048 esac
5049 if test "x$ac_cv_prog_cc_c99" != xno; then :
5050
5051 fi
5052
5053
5054 ac_ext=cpp
5055 ac_cpp='$CXXCPP $CPPFLAGS'
5056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5059 if test -z "$CXX"; then
5060 if test -n "$CCC"; then
5061 CXX=$CCC
5062 else
5063 if test -n "$ac_tool_prefix"; then
5064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5065 do
5066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CXX+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$CXX"; then
5074 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 CXX=$ac_cv_prog_CXX
5094 if test -n "$CXX"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5096 $as_echo "$CXX" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 test -n "$CXX" && break
5104 done
5105 fi
5106 if test -z "$CXX"; then
5107 ac_ct_CXX=$CXX
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5109 do
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$ac_ct_CXX"; then
5118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_ac_ct_CXX="$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5138 if test -n "$ac_ct_CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5140 $as_echo "$ac_ct_CXX" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 test -n "$ac_ct_CXX" && break
5148 done
5149
5150 if test "x$ac_ct_CXX" = x; then
5151 CXX="g++"
5152 else
5153 case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5158 esac
5159 CXX=$ac_ct_CXX
5160 fi
5161 fi
5162
5163 fi
5164 fi
5165 # Provide some information about the compiler.
5166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5167 set X $ac_compile
5168 ac_compiler=$2
5169 for ac_option in --version -v -V -qversion; do
5170 { { ac_try="$ac_compiler $ac_option >&5"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5178 ac_status=$?
5179 if test -s conftest.err; then
5180 sed '10a\
5181 ... rest of stderr output deleted ...
5182 10q' conftest.err >conftest.er1
5183 cat conftest.er1 >&5
5184 fi
5185 rm -f conftest.er1 conftest.err
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5188 done
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5191 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5192 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197
5198 int
5199 main ()
5200 {
5201 #ifndef __GNUC__
5202 choke me
5203 #endif
5204
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 if ac_fn_cxx_try_compile "$LINENO"; then :
5210 ac_compiler_gnu=yes
5211 else
5212 ac_compiler_gnu=no
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5216
5217 fi
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5219 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5220 if test $ac_compiler_gnu = yes; then
5221 GXX=yes
5222 else
5223 GXX=
5224 fi
5225 ac_test_CXXFLAGS=${CXXFLAGS+set}
5226 ac_save_CXXFLAGS=$CXXFLAGS
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5228 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5229 if ${ac_cv_prog_cxx_g+:} false; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5233 ac_cxx_werror_flag=yes
5234 ac_cv_prog_cxx_g=no
5235 CXXFLAGS="-g"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_cxx_try_compile "$LINENO"; then :
5248 ac_cv_prog_cxx_g=yes
5249 else
5250 CXXFLAGS=""
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253
5254 int
5255 main ()
5256 {
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_cxx_try_compile "$LINENO"; then :
5263
5264 else
5265 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5266 CXXFLAGS="-g"
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5269
5270 int
5271 main ()
5272 {
5273
5274 ;
5275 return 0;
5276 }
5277 _ACEOF
5278 if ac_fn_cxx_try_compile "$LINENO"; then :
5279 ac_cv_prog_cxx_g=yes
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5287 fi
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5289 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5290 if test "$ac_test_CXXFLAGS" = set; then
5291 CXXFLAGS=$ac_save_CXXFLAGS
5292 elif test $ac_cv_prog_cxx_g = yes; then
5293 if test "$GXX" = yes; then
5294 CXXFLAGS="-g -O2"
5295 else
5296 CXXFLAGS="-g"
5297 fi
5298 else
5299 if test "$GXX" = yes; then
5300 CXXFLAGS="-O2"
5301 else
5302 CXXFLAGS=
5303 fi
5304 fi
5305 ac_ext=c
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310
5311
5312 # We must set the default linker to the linker used by gcc for the correct
5313 # operation of libtool. If LD is not defined and we are using gcc, try to
5314 # set the LD default to the ld used by gcc.
5315 if test -z "$LD"; then
5316 if test "$GCC" = yes; then
5317 case $build in
5318 *-*-mingw*)
5319 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5320 *)
5321 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5322 esac
5323 case $gcc_prog_ld in
5324 # Accept absolute paths.
5325 [\\/]* | [A-Za-z]:[\\/]*)
5326 LD="$gcc_prog_ld" ;;
5327 esac
5328 fi
5329 fi
5330
5331 # Check whether -static-libstdc++ -static-libgcc is supported.
5332 have_static_libs=no
5333 if test "$GCC" = yes; then
5334 saved_LDFLAGS="$LDFLAGS"
5335
5336 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5338 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5339 ac_ext=cpp
5340 ac_cpp='$CXXCPP $CPPFLAGS'
5341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5344
5345
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5350 #error -static-libstdc++ not implemented
5351 #endif
5352 int main() {}
5353 _ACEOF
5354 if ac_fn_cxx_try_link "$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }; have_static_libs=yes
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 ac_ext=c
5364 ac_cpp='$CPP $CPPFLAGS'
5365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5368
5369
5370 LDFLAGS="$saved_LDFLAGS"
5371 fi
5372
5373
5374
5375
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5378 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_GNATBIND+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$GNATBIND"; then
5385 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 fi
5403 fi
5404 GNATBIND=$ac_cv_prog_GNATBIND
5405 if test -n "$GNATBIND"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5407 $as_echo "$GNATBIND" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412
5413
5414 fi
5415 if test -z "$ac_cv_prog_GNATBIND"; then
5416 ac_ct_GNATBIND=$GNATBIND
5417 # Extract the first word of "gnatbind", so it can be a program name with args.
5418 set dummy gnatbind; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -n "$ac_ct_GNATBIND"; then
5425 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5426 else
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5437 fi
5438 done
5439 done
5440 IFS=$as_save_IFS
5441
5442 fi
5443 fi
5444 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5445 if test -n "$ac_ct_GNATBIND"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5447 $as_echo "$ac_ct_GNATBIND" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452
5453 if test "x$ac_ct_GNATBIND" = x; then
5454 GNATBIND="no"
5455 else
5456 case $cross_compiling:$ac_tool_warned in
5457 yes:)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned=yes ;;
5461 esac
5462 GNATBIND=$ac_ct_GNATBIND
5463 fi
5464 else
5465 GNATBIND="$ac_cv_prog_GNATBIND"
5466 fi
5467
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5470 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_GNATMAKE+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$GNATMAKE"; then
5477 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 GNATMAKE=$ac_cv_prog_GNATMAKE
5497 if test -n "$GNATMAKE"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5499 $as_echo "$GNATMAKE" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 fi
5507 if test -z "$ac_cv_prog_GNATMAKE"; then
5508 ac_ct_GNATMAKE=$GNATMAKE
5509 # Extract the first word of "gnatmake", so it can be a program name with args.
5510 set dummy gnatmake; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_GNATMAKE"; then
5517 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5537 if test -n "$ac_ct_GNATMAKE"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5539 $as_echo "$ac_ct_GNATMAKE" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545 if test "x$ac_ct_GNATMAKE" = x; then
5546 GNATMAKE="no"
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 GNATMAKE=$ac_ct_GNATMAKE
5555 fi
5556 else
5557 GNATMAKE="$ac_cv_prog_GNATMAKE"
5558 fi
5559
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5561 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5562 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 cat >conftest.adb <<EOF
5566 pragma Warnings (Off);
5567 with System.CRTL;
5568 pragma Warnings (On);
5569 use type System.CRTL.int64;
5570 procedure conftest is begin null; end conftest;
5571 EOF
5572 acx_cv_cc_gcc_supports_ada=no
5573 # There is a bug in old released versions of GCC which causes the
5574 # driver to exit successfully when the appropriate language module
5575 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5576 # Therefore we must check for the error message as well as an
5577 # unsuccessful exit.
5578 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5579 # given a .adb file, but produce no object file. So we must check
5580 # if an object file was really produced to guard against this.
5581 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5582 if test x"$errors" = x && test -f conftest.$ac_objext; then
5583 acx_cv_cc_gcc_supports_ada=yes
5584 fi
5585 rm -f conftest.*
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5588 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5589
5590 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5591 have_gnat=yes
5592 else
5593 have_gnat=no
5594 fi
5595
5596
5597
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_GDC+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$GDC"; then
5607 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 GDC=$ac_cv_prog_GDC
5627 if test -n "$GDC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5629 $as_echo "$GDC" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 fi
5637 if test -z "$ac_cv_prog_GDC"; then
5638 ac_ct_GDC=$GDC
5639 # Extract the first word of "gdc", so it can be a program name with args.
5640 set dummy gdc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$ac_ct_GDC"; then
5647 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_GDC="gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660 done
5661 done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5667 if test -n "$ac_ct_GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5669 $as_echo "$ac_ct_GDC" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675 if test "x$ac_ct_GDC" = x; then
5676 GDC="no"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 GDC=$ac_ct_GDC
5685 fi
5686 else
5687 GDC="$ac_cv_prog_GDC"
5688 fi
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5691 $as_echo_n "checking whether the D compiler works... " >&6; }
5692 if ${acx_cv_d_compiler_works+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat >conftest.d <<EOF
5696 module conftest; int main() { return 0; }
5697 EOF
5698 acx_cv_d_compiler_works=no
5699 if test "x$GDC" != xno; then
5700 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5701 if test x"$errors" = x && test -f conftest.$ac_objext; then
5702 acx_cv_d_compiler_works=yes
5703 fi
5704 rm -f conftest.*
5705 fi
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5708 $as_echo "$acx_cv_d_compiler_works" >&6; }
5709 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5710 have_gdc=yes
5711 else
5712 have_gdc=no
5713 fi
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5716 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5717 if ${gcc_cv_prog_cmp_skip+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 echo abfoo >t1
5721 echo cdfoo >t2
5722 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5723 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5724 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5725 :
5726 else
5727 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5728 fi
5729 fi
5730 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5731 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5732 :
5733 else
5734 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5735 fi
5736 fi
5737 rm t1 t2
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5741 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5742 do_compare="$gcc_cv_prog_cmp_skip"
5743
5744
5745
5746 # Check whether --enable-bootstrap was given.
5747 if test "${enable_bootstrap+set}" = set; then :
5748 enableval=$enable_bootstrap;
5749 else
5750 enable_bootstrap=default
5751 fi
5752
5753
5754 # Issue errors and warnings for invalid/strange bootstrap combinations.
5755 if test -r $srcdir/gcc/configure; then
5756 have_compiler=yes
5757 else
5758 have_compiler=no
5759 fi
5760
5761 case "$have_compiler:$host:$target:$enable_bootstrap" in
5762 *:*:*:no) ;;
5763
5764 # Default behavior. Enable bootstrap if we have a compiler
5765 # and we are in a native configuration.
5766 yes:$build:$build:default)
5767 enable_bootstrap=yes ;;
5768
5769 *:*:*:default)
5770 enable_bootstrap=no ;;
5771
5772 # We have a compiler and we are in a native configuration, bootstrap is ok
5773 yes:$build:$build:yes)
5774 ;;
5775
5776 # Other configurations, but we have a compiler. Assume the user knows
5777 # what he's doing.
5778 yes:*:*:yes)
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5780 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5781 ;;
5782
5783 # No compiler: if they passed --enable-bootstrap explicitly, fail
5784 no:*:*:yes)
5785 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5786
5787 # Fail if wrong command line
5788 *)
5789 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5790 ;;
5791 esac
5792
5793 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5794 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5795 # require C++11 (or higher).
5796 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5797 CXX="$CXX -std=c++11"
5798 elif test "$have_compiler" = yes; then
5799 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5800 ac_ext=cpp
5801 ac_cpp='$CXXCPP $CPPFLAGS'
5802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5805 ac_success=no
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5808 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5809 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814
5815
5816 // If the compiler admits that it is not ready for C++11, why torture it?
5817 // Hopefully, this will speed up the test.
5818
5819 #ifndef __cplusplus
5820
5821 #error "This is not a C++ compiler"
5822
5823 #elif __cplusplus < 201103L
5824
5825 #error "This is not a C++11 compiler"
5826
5827 #else
5828
5829 namespace cxx11
5830 {
5831
5832 namespace test_static_assert
5833 {
5834
5835 template <typename T>
5836 struct check
5837 {
5838 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5839 };
5840
5841 }
5842
5843 namespace test_final_override
5844 {
5845
5846 struct Base
5847 {
5848 virtual ~Base() {}
5849 virtual void f() {}
5850 };
5851
5852 struct Derived : public Base
5853 {
5854 virtual ~Derived() override {}
5855 virtual void f() override {}
5856 };
5857
5858 }
5859
5860 namespace test_double_right_angle_brackets
5861 {
5862
5863 template < typename T >
5864 struct check {};
5865
5866 typedef check<void> single_type;
5867 typedef check<check<void>> double_type;
5868 typedef check<check<check<void>>> triple_type;
5869 typedef check<check<check<check<void>>>> quadruple_type;
5870
5871 }
5872
5873 namespace test_decltype
5874 {
5875
5876 int
5877 f()
5878 {
5879 int a = 1;
5880 decltype(a) b = 2;
5881 return a + b;
5882 }
5883
5884 }
5885
5886 namespace test_type_deduction
5887 {
5888
5889 template < typename T1, typename T2 >
5890 struct is_same
5891 {
5892 static const bool value = false;
5893 };
5894
5895 template < typename T >
5896 struct is_same<T, T>
5897 {
5898 static const bool value = true;
5899 };
5900
5901 template < typename T1, typename T2 >
5902 auto
5903 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5904 {
5905 return a1 + a2;
5906 }
5907
5908 int
5909 test(const int c, volatile int v)
5910 {
5911 static_assert(is_same<int, decltype(0)>::value == true, "");
5912 static_assert(is_same<int, decltype(c)>::value == false, "");
5913 static_assert(is_same<int, decltype(v)>::value == false, "");
5914 auto ac = c;
5915 auto av = v;
5916 auto sumi = ac + av + 'x';
5917 auto sumf = ac + av + 1.0;
5918 static_assert(is_same<int, decltype(ac)>::value == true, "");
5919 static_assert(is_same<int, decltype(av)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5921 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5922 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5923 return (sumf > 0.0) ? sumi : add(c, v);
5924 }
5925
5926 }
5927
5928 namespace test_noexcept
5929 {
5930
5931 int f() { return 0; }
5932 int g() noexcept { return 0; }
5933
5934 static_assert(noexcept(f()) == false, "");
5935 static_assert(noexcept(g()) == true, "");
5936
5937 }
5938
5939 namespace test_constexpr
5940 {
5941
5942 template < typename CharT >
5943 unsigned long constexpr
5944 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5945 {
5946 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5947 }
5948
5949 template < typename CharT >
5950 unsigned long constexpr
5951 strlen_c(const CharT *const s) noexcept
5952 {
5953 return strlen_c_r(s, 0UL);
5954 }
5955
5956 static_assert(strlen_c("") == 0UL, "");
5957 static_assert(strlen_c("1") == 1UL, "");
5958 static_assert(strlen_c("example") == 7UL, "");
5959 static_assert(strlen_c("another\0example") == 7UL, "");
5960
5961 }
5962
5963 namespace test_rvalue_references
5964 {
5965
5966 template < int N >
5967 struct answer
5968 {
5969 static constexpr int value = N;
5970 };
5971
5972 answer<1> f(int&) { return answer<1>(); }
5973 answer<2> f(const int&) { return answer<2>(); }
5974 answer<3> f(int&&) { return answer<3>(); }
5975
5976 void
5977 test()
5978 {
5979 int i = 0;
5980 const int c = 0;
5981 static_assert(decltype(f(i))::value == 1, "");
5982 static_assert(decltype(f(c))::value == 2, "");
5983 static_assert(decltype(f(0))::value == 3, "");
5984 }
5985
5986 }
5987
5988 namespace test_uniform_initialization
5989 {
5990
5991 struct test
5992 {
5993 static const int zero {};
5994 static const int one {1};
5995 };
5996
5997 static_assert(test::zero == 0, "");
5998 static_assert(test::one == 1, "");
5999
6000 }
6001
6002 namespace test_lambdas
6003 {
6004
6005 void
6006 test1()
6007 {
6008 auto lambda1 = [](){};
6009 auto lambda2 = lambda1;
6010 lambda1();
6011 lambda2();
6012 }
6013
6014 int
6015 test2()
6016 {
6017 auto a = [](int i, int j){ return i + j; }(1, 2);
6018 auto b = []() -> int { return '0'; }();
6019 auto c = [=](){ return a + b; }();
6020 auto d = [&](){ return c; }();
6021 auto e = [a, &b](int x) mutable {
6022 const auto identity = [](int y){ return y; };
6023 for (auto i = 0; i < a; ++i)
6024 a += b--;
6025 return x + identity(a + b);
6026 }(0);
6027 return a + b + c + d + e;
6028 }
6029
6030 int
6031 test3()
6032 {
6033 const auto nullary = [](){ return 0; };
6034 const auto unary = [](int x){ return x; };
6035 using nullary_t = decltype(nullary);
6036 using unary_t = decltype(unary);
6037 const auto higher1st = [](nullary_t f){ return f(); };
6038 const auto higher2nd = [unary](nullary_t f1){
6039 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6040 };
6041 return higher1st(nullary) + higher2nd(nullary)(unary);
6042 }
6043
6044 }
6045
6046 namespace test_variadic_templates
6047 {
6048
6049 template <int...>
6050 struct sum;
6051
6052 template <int N0, int... N1toN>
6053 struct sum<N0, N1toN...>
6054 {
6055 static constexpr auto value = N0 + sum<N1toN...>::value;
6056 };
6057
6058 template <>
6059 struct sum<>
6060 {
6061 static constexpr auto value = 0;
6062 };
6063
6064 static_assert(sum<>::value == 0, "");
6065 static_assert(sum<1>::value == 1, "");
6066 static_assert(sum<23>::value == 23, "");
6067 static_assert(sum<1, 2>::value == 3, "");
6068 static_assert(sum<5, 5, 11>::value == 21, "");
6069 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6070
6071 }
6072
6073 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6074 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6075 // because of this.
6076 namespace test_template_alias_sfinae
6077 {
6078
6079 struct foo {};
6080
6081 template<typename T>
6082 using member = typename T::member_type;
6083
6084 template<typename T>
6085 void func(...) {}
6086
6087 template<typename T>
6088 void func(member<T>*) {}
6089
6090 void test();
6091
6092 void test() { func<foo>(0); }
6093
6094 }
6095
6096 } // namespace cxx11
6097
6098 #endif // __cplusplus >= 201103L
6099
6100
6101
6102 _ACEOF
6103 if ac_fn_cxx_try_compile "$LINENO"; then :
6104 ax_cv_cxx_compile_cxx11=yes
6105 else
6106 ax_cv_cxx_compile_cxx11=no
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 fi
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6111 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6112 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6113 ac_success=yes
6114 fi
6115
6116 if test x$ac_success = xno; then
6117 for alternative in ${ax_cxx_compile_alternatives}; do
6118 switch="-std=gnu++${alternative}"
6119 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6121 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6122 if eval \${$cachevar+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 ac_save_CXX="$CXX"
6126 CXX="$CXX $switch"
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129
6130
6131 // If the compiler admits that it is not ready for C++11, why torture it?
6132 // Hopefully, this will speed up the test.
6133
6134 #ifndef __cplusplus
6135
6136 #error "This is not a C++ compiler"
6137
6138 #elif __cplusplus < 201103L
6139
6140 #error "This is not a C++11 compiler"
6141
6142 #else
6143
6144 namespace cxx11
6145 {
6146
6147 namespace test_static_assert
6148 {
6149
6150 template <typename T>
6151 struct check
6152 {
6153 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6154 };
6155
6156 }
6157
6158 namespace test_final_override
6159 {
6160
6161 struct Base
6162 {
6163 virtual ~Base() {}
6164 virtual void f() {}
6165 };
6166
6167 struct Derived : public Base
6168 {
6169 virtual ~Derived() override {}
6170 virtual void f() override {}
6171 };
6172
6173 }
6174
6175 namespace test_double_right_angle_brackets
6176 {
6177
6178 template < typename T >
6179 struct check {};
6180
6181 typedef check<void> single_type;
6182 typedef check<check<void>> double_type;
6183 typedef check<check<check<void>>> triple_type;
6184 typedef check<check<check<check<void>>>> quadruple_type;
6185
6186 }
6187
6188 namespace test_decltype
6189 {
6190
6191 int
6192 f()
6193 {
6194 int a = 1;
6195 decltype(a) b = 2;
6196 return a + b;
6197 }
6198
6199 }
6200
6201 namespace test_type_deduction
6202 {
6203
6204 template < typename T1, typename T2 >
6205 struct is_same
6206 {
6207 static const bool value = false;
6208 };
6209
6210 template < typename T >
6211 struct is_same<T, T>
6212 {
6213 static const bool value = true;
6214 };
6215
6216 template < typename T1, typename T2 >
6217 auto
6218 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6219 {
6220 return a1 + a2;
6221 }
6222
6223 int
6224 test(const int c, volatile int v)
6225 {
6226 static_assert(is_same<int, decltype(0)>::value == true, "");
6227 static_assert(is_same<int, decltype(c)>::value == false, "");
6228 static_assert(is_same<int, decltype(v)>::value == false, "");
6229 auto ac = c;
6230 auto av = v;
6231 auto sumi = ac + av + 'x';
6232 auto sumf = ac + av + 1.0;
6233 static_assert(is_same<int, decltype(ac)>::value == true, "");
6234 static_assert(is_same<int, decltype(av)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6236 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6237 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6238 return (sumf > 0.0) ? sumi : add(c, v);
6239 }
6240
6241 }
6242
6243 namespace test_noexcept
6244 {
6245
6246 int f() { return 0; }
6247 int g() noexcept { return 0; }
6248
6249 static_assert(noexcept(f()) == false, "");
6250 static_assert(noexcept(g()) == true, "");
6251
6252 }
6253
6254 namespace test_constexpr
6255 {
6256
6257 template < typename CharT >
6258 unsigned long constexpr
6259 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6260 {
6261 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6262 }
6263
6264 template < typename CharT >
6265 unsigned long constexpr
6266 strlen_c(const CharT *const s) noexcept
6267 {
6268 return strlen_c_r(s, 0UL);
6269 }
6270
6271 static_assert(strlen_c("") == 0UL, "");
6272 static_assert(strlen_c("1") == 1UL, "");
6273 static_assert(strlen_c("example") == 7UL, "");
6274 static_assert(strlen_c("another\0example") == 7UL, "");
6275
6276 }
6277
6278 namespace test_rvalue_references
6279 {
6280
6281 template < int N >
6282 struct answer
6283 {
6284 static constexpr int value = N;
6285 };
6286
6287 answer<1> f(int&) { return answer<1>(); }
6288 answer<2> f(const int&) { return answer<2>(); }
6289 answer<3> f(int&&) { return answer<3>(); }
6290
6291 void
6292 test()
6293 {
6294 int i = 0;
6295 const int c = 0;
6296 static_assert(decltype(f(i))::value == 1, "");
6297 static_assert(decltype(f(c))::value == 2, "");
6298 static_assert(decltype(f(0))::value == 3, "");
6299 }
6300
6301 }
6302
6303 namespace test_uniform_initialization
6304 {
6305
6306 struct test
6307 {
6308 static const int zero {};
6309 static const int one {1};
6310 };
6311
6312 static_assert(test::zero == 0, "");
6313 static_assert(test::one == 1, "");
6314
6315 }
6316
6317 namespace test_lambdas
6318 {
6319
6320 void
6321 test1()
6322 {
6323 auto lambda1 = [](){};
6324 auto lambda2 = lambda1;
6325 lambda1();
6326 lambda2();
6327 }
6328
6329 int
6330 test2()
6331 {
6332 auto a = [](int i, int j){ return i + j; }(1, 2);
6333 auto b = []() -> int { return '0'; }();
6334 auto c = [=](){ return a + b; }();
6335 auto d = [&](){ return c; }();
6336 auto e = [a, &b](int x) mutable {
6337 const auto identity = [](int y){ return y; };
6338 for (auto i = 0; i < a; ++i)
6339 a += b--;
6340 return x + identity(a + b);
6341 }(0);
6342 return a + b + c + d + e;
6343 }
6344
6345 int
6346 test3()
6347 {
6348 const auto nullary = [](){ return 0; };
6349 const auto unary = [](int x){ return x; };
6350 using nullary_t = decltype(nullary);
6351 using unary_t = decltype(unary);
6352 const auto higher1st = [](nullary_t f){ return f(); };
6353 const auto higher2nd = [unary](nullary_t f1){
6354 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6355 };
6356 return higher1st(nullary) + higher2nd(nullary)(unary);
6357 }
6358
6359 }
6360
6361 namespace test_variadic_templates
6362 {
6363
6364 template <int...>
6365 struct sum;
6366
6367 template <int N0, int... N1toN>
6368 struct sum<N0, N1toN...>
6369 {
6370 static constexpr auto value = N0 + sum<N1toN...>::value;
6371 };
6372
6373 template <>
6374 struct sum<>
6375 {
6376 static constexpr auto value = 0;
6377 };
6378
6379 static_assert(sum<>::value == 0, "");
6380 static_assert(sum<1>::value == 1, "");
6381 static_assert(sum<23>::value == 23, "");
6382 static_assert(sum<1, 2>::value == 3, "");
6383 static_assert(sum<5, 5, 11>::value == 21, "");
6384 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6385
6386 }
6387
6388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6390 // because of this.
6391 namespace test_template_alias_sfinae
6392 {
6393
6394 struct foo {};
6395
6396 template<typename T>
6397 using member = typename T::member_type;
6398
6399 template<typename T>
6400 void func(...) {}
6401
6402 template<typename T>
6403 void func(member<T>*) {}
6404
6405 void test();
6406
6407 void test() { func<foo>(0); }
6408
6409 }
6410
6411 } // namespace cxx11
6412
6413 #endif // __cplusplus >= 201103L
6414
6415
6416
6417 _ACEOF
6418 if ac_fn_cxx_try_compile "$LINENO"; then :
6419 eval $cachevar=yes
6420 else
6421 eval $cachevar=no
6422 fi
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 CXX="$ac_save_CXX"
6425 fi
6426 eval ac_res=\$$cachevar
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429 if eval test x\$$cachevar = xyes; then
6430 CXX="$CXX $switch"
6431 if test -n "$CXXCPP" ; then
6432 CXXCPP="$CXXCPP $switch"
6433 fi
6434 ac_success=yes
6435 break
6436 fi
6437 done
6438 fi
6439
6440 if test x$ac_success = xno; then
6441 for alternative in ${ax_cxx_compile_alternatives}; do
6442 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6443 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6445 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6446 if eval \${$cachevar+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 ac_save_CXX="$CXX"
6450 CXX="$CXX $switch"
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453
6454
6455 // If the compiler admits that it is not ready for C++11, why torture it?
6456 // Hopefully, this will speed up the test.
6457
6458 #ifndef __cplusplus
6459
6460 #error "This is not a C++ compiler"
6461
6462 #elif __cplusplus < 201103L
6463
6464 #error "This is not a C++11 compiler"
6465
6466 #else
6467
6468 namespace cxx11
6469 {
6470
6471 namespace test_static_assert
6472 {
6473
6474 template <typename T>
6475 struct check
6476 {
6477 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6478 };
6479
6480 }
6481
6482 namespace test_final_override
6483 {
6484
6485 struct Base
6486 {
6487 virtual ~Base() {}
6488 virtual void f() {}
6489 };
6490
6491 struct Derived : public Base
6492 {
6493 virtual ~Derived() override {}
6494 virtual void f() override {}
6495 };
6496
6497 }
6498
6499 namespace test_double_right_angle_brackets
6500 {
6501
6502 template < typename T >
6503 struct check {};
6504
6505 typedef check<void> single_type;
6506 typedef check<check<void>> double_type;
6507 typedef check<check<check<void>>> triple_type;
6508 typedef check<check<check<check<void>>>> quadruple_type;
6509
6510 }
6511
6512 namespace test_decltype
6513 {
6514
6515 int
6516 f()
6517 {
6518 int a = 1;
6519 decltype(a) b = 2;
6520 return a + b;
6521 }
6522
6523 }
6524
6525 namespace test_type_deduction
6526 {
6527
6528 template < typename T1, typename T2 >
6529 struct is_same
6530 {
6531 static const bool value = false;
6532 };
6533
6534 template < typename T >
6535 struct is_same<T, T>
6536 {
6537 static const bool value = true;
6538 };
6539
6540 template < typename T1, typename T2 >
6541 auto
6542 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6543 {
6544 return a1 + a2;
6545 }
6546
6547 int
6548 test(const int c, volatile int v)
6549 {
6550 static_assert(is_same<int, decltype(0)>::value == true, "");
6551 static_assert(is_same<int, decltype(c)>::value == false, "");
6552 static_assert(is_same<int, decltype(v)>::value == false, "");
6553 auto ac = c;
6554 auto av = v;
6555 auto sumi = ac + av + 'x';
6556 auto sumf = ac + av + 1.0;
6557 static_assert(is_same<int, decltype(ac)>::value == true, "");
6558 static_assert(is_same<int, decltype(av)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6560 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6561 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6562 return (sumf > 0.0) ? sumi : add(c, v);
6563 }
6564
6565 }
6566
6567 namespace test_noexcept
6568 {
6569
6570 int f() { return 0; }
6571 int g() noexcept { return 0; }
6572
6573 static_assert(noexcept(f()) == false, "");
6574 static_assert(noexcept(g()) == true, "");
6575
6576 }
6577
6578 namespace test_constexpr
6579 {
6580
6581 template < typename CharT >
6582 unsigned long constexpr
6583 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6584 {
6585 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6586 }
6587
6588 template < typename CharT >
6589 unsigned long constexpr
6590 strlen_c(const CharT *const s) noexcept
6591 {
6592 return strlen_c_r(s, 0UL);
6593 }
6594
6595 static_assert(strlen_c("") == 0UL, "");
6596 static_assert(strlen_c("1") == 1UL, "");
6597 static_assert(strlen_c("example") == 7UL, "");
6598 static_assert(strlen_c("another\0example") == 7UL, "");
6599
6600 }
6601
6602 namespace test_rvalue_references
6603 {
6604
6605 template < int N >
6606 struct answer
6607 {
6608 static constexpr int value = N;
6609 };
6610
6611 answer<1> f(int&) { return answer<1>(); }
6612 answer<2> f(const int&) { return answer<2>(); }
6613 answer<3> f(int&&) { return answer<3>(); }
6614
6615 void
6616 test()
6617 {
6618 int i = 0;
6619 const int c = 0;
6620 static_assert(decltype(f(i))::value == 1, "");
6621 static_assert(decltype(f(c))::value == 2, "");
6622 static_assert(decltype(f(0))::value == 3, "");
6623 }
6624
6625 }
6626
6627 namespace test_uniform_initialization
6628 {
6629
6630 struct test
6631 {
6632 static const int zero {};
6633 static const int one {1};
6634 };
6635
6636 static_assert(test::zero == 0, "");
6637 static_assert(test::one == 1, "");
6638
6639 }
6640
6641 namespace test_lambdas
6642 {
6643
6644 void
6645 test1()
6646 {
6647 auto lambda1 = [](){};
6648 auto lambda2 = lambda1;
6649 lambda1();
6650 lambda2();
6651 }
6652
6653 int
6654 test2()
6655 {
6656 auto a = [](int i, int j){ return i + j; }(1, 2);
6657 auto b = []() -> int { return '0'; }();
6658 auto c = [=](){ return a + b; }();
6659 auto d = [&](){ return c; }();
6660 auto e = [a, &b](int x) mutable {
6661 const auto identity = [](int y){ return y; };
6662 for (auto i = 0; i < a; ++i)
6663 a += b--;
6664 return x + identity(a + b);
6665 }(0);
6666 return a + b + c + d + e;
6667 }
6668
6669 int
6670 test3()
6671 {
6672 const auto nullary = [](){ return 0; };
6673 const auto unary = [](int x){ return x; };
6674 using nullary_t = decltype(nullary);
6675 using unary_t = decltype(unary);
6676 const auto higher1st = [](nullary_t f){ return f(); };
6677 const auto higher2nd = [unary](nullary_t f1){
6678 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6679 };
6680 return higher1st(nullary) + higher2nd(nullary)(unary);
6681 }
6682
6683 }
6684
6685 namespace test_variadic_templates
6686 {
6687
6688 template <int...>
6689 struct sum;
6690
6691 template <int N0, int... N1toN>
6692 struct sum<N0, N1toN...>
6693 {
6694 static constexpr auto value = N0 + sum<N1toN...>::value;
6695 };
6696
6697 template <>
6698 struct sum<>
6699 {
6700 static constexpr auto value = 0;
6701 };
6702
6703 static_assert(sum<>::value == 0, "");
6704 static_assert(sum<1>::value == 1, "");
6705 static_assert(sum<23>::value == 23, "");
6706 static_assert(sum<1, 2>::value == 3, "");
6707 static_assert(sum<5, 5, 11>::value == 21, "");
6708 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6709
6710 }
6711
6712 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6713 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6714 // because of this.
6715 namespace test_template_alias_sfinae
6716 {
6717
6718 struct foo {};
6719
6720 template<typename T>
6721 using member = typename T::member_type;
6722
6723 template<typename T>
6724 void func(...) {}
6725
6726 template<typename T>
6727 void func(member<T>*) {}
6728
6729 void test();
6730
6731 void test() { func<foo>(0); }
6732
6733 }
6734
6735 } // namespace cxx11
6736
6737 #endif // __cplusplus >= 201103L
6738
6739
6740
6741 _ACEOF
6742 if ac_fn_cxx_try_compile "$LINENO"; then :
6743 eval $cachevar=yes
6744 else
6745 eval $cachevar=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 CXX="$ac_save_CXX"
6749 fi
6750 eval ac_res=\$$cachevar
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6752 $as_echo "$ac_res" >&6; }
6753 if eval test x\$$cachevar = xyes; then
6754 CXX="$CXX $switch"
6755 if test -n "$CXXCPP" ; then
6756 CXXCPP="$CXXCPP $switch"
6757 fi
6758 ac_success=yes
6759 break
6760 fi
6761 done
6762 if test x$ac_success = xyes; then
6763 break
6764 fi
6765 done
6766 fi
6767
6768 ac_ext=c
6769 ac_cpp='$CPP $CPPFLAGS'
6770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6775 if test x$ac_success = xno; then
6776 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6777 fi
6778 fi
6779 if test x$ac_success = xno; then
6780 HAVE_CXX11=0
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6782 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6783 else
6784 HAVE_CXX11=1
6785
6786 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6787
6788 fi
6789
6790
6791
6792 if test "${build}" != "${host}"; then
6793 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6794 ac_ext=cpp
6795 ac_cpp='$CXXCPP $CPPFLAGS'
6796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6799 ac_success=no
6800 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6801 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6802 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6803 CXX="$CXX_FOR_BUILD"
6804 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6805 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6807 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6808 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6813
6814
6815 // If the compiler admits that it is not ready for C++11, why torture it?
6816 // Hopefully, this will speed up the test.
6817
6818 #ifndef __cplusplus
6819
6820 #error "This is not a C++ compiler"
6821
6822 #elif __cplusplus < 201103L
6823
6824 #error "This is not a C++11 compiler"
6825
6826 #else
6827
6828 namespace cxx11
6829 {
6830
6831 namespace test_static_assert
6832 {
6833
6834 template <typename T>
6835 struct check
6836 {
6837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6838 };
6839
6840 }
6841
6842 namespace test_final_override
6843 {
6844
6845 struct Base
6846 {
6847 virtual ~Base() {}
6848 virtual void f() {}
6849 };
6850
6851 struct Derived : public Base
6852 {
6853 virtual ~Derived() override {}
6854 virtual void f() override {}
6855 };
6856
6857 }
6858
6859 namespace test_double_right_angle_brackets
6860 {
6861
6862 template < typename T >
6863 struct check {};
6864
6865 typedef check<void> single_type;
6866 typedef check<check<void>> double_type;
6867 typedef check<check<check<void>>> triple_type;
6868 typedef check<check<check<check<void>>>> quadruple_type;
6869
6870 }
6871
6872 namespace test_decltype
6873 {
6874
6875 int
6876 f()
6877 {
6878 int a = 1;
6879 decltype(a) b = 2;
6880 return a + b;
6881 }
6882
6883 }
6884
6885 namespace test_type_deduction
6886 {
6887
6888 template < typename T1, typename T2 >
6889 struct is_same
6890 {
6891 static const bool value = false;
6892 };
6893
6894 template < typename T >
6895 struct is_same<T, T>
6896 {
6897 static const bool value = true;
6898 };
6899
6900 template < typename T1, typename T2 >
6901 auto
6902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6903 {
6904 return a1 + a2;
6905 }
6906
6907 int
6908 test(const int c, volatile int v)
6909 {
6910 static_assert(is_same<int, decltype(0)>::value == true, "");
6911 static_assert(is_same<int, decltype(c)>::value == false, "");
6912 static_assert(is_same<int, decltype(v)>::value == false, "");
6913 auto ac = c;
6914 auto av = v;
6915 auto sumi = ac + av + 'x';
6916 auto sumf = ac + av + 1.0;
6917 static_assert(is_same<int, decltype(ac)>::value == true, "");
6918 static_assert(is_same<int, decltype(av)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6922 return (sumf > 0.0) ? sumi : add(c, v);
6923 }
6924
6925 }
6926
6927 namespace test_noexcept
6928 {
6929
6930 int f() { return 0; }
6931 int g() noexcept { return 0; }
6932
6933 static_assert(noexcept(f()) == false, "");
6934 static_assert(noexcept(g()) == true, "");
6935
6936 }
6937
6938 namespace test_constexpr
6939 {
6940
6941 template < typename CharT >
6942 unsigned long constexpr
6943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6944 {
6945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6946 }
6947
6948 template < typename CharT >
6949 unsigned long constexpr
6950 strlen_c(const CharT *const s) noexcept
6951 {
6952 return strlen_c_r(s, 0UL);
6953 }
6954
6955 static_assert(strlen_c("") == 0UL, "");
6956 static_assert(strlen_c("1") == 1UL, "");
6957 static_assert(strlen_c("example") == 7UL, "");
6958 static_assert(strlen_c("another\0example") == 7UL, "");
6959
6960 }
6961
6962 namespace test_rvalue_references
6963 {
6964
6965 template < int N >
6966 struct answer
6967 {
6968 static constexpr int value = N;
6969 };
6970
6971 answer<1> f(int&) { return answer<1>(); }
6972 answer<2> f(const int&) { return answer<2>(); }
6973 answer<3> f(int&&) { return answer<3>(); }
6974
6975 void
6976 test()
6977 {
6978 int i = 0;
6979 const int c = 0;
6980 static_assert(decltype(f(i))::value == 1, "");
6981 static_assert(decltype(f(c))::value == 2, "");
6982 static_assert(decltype(f(0))::value == 3, "");
6983 }
6984
6985 }
6986
6987 namespace test_uniform_initialization
6988 {
6989
6990 struct test
6991 {
6992 static const int zero {};
6993 static const int one {1};
6994 };
6995
6996 static_assert(test::zero == 0, "");
6997 static_assert(test::one == 1, "");
6998
6999 }
7000
7001 namespace test_lambdas
7002 {
7003
7004 void
7005 test1()
7006 {
7007 auto lambda1 = [](){};
7008 auto lambda2 = lambda1;
7009 lambda1();
7010 lambda2();
7011 }
7012
7013 int
7014 test2()
7015 {
7016 auto a = [](int i, int j){ return i + j; }(1, 2);
7017 auto b = []() -> int { return '0'; }();
7018 auto c = [=](){ return a + b; }();
7019 auto d = [&](){ return c; }();
7020 auto e = [a, &b](int x) mutable {
7021 const auto identity = [](int y){ return y; };
7022 for (auto i = 0; i < a; ++i)
7023 a += b--;
7024 return x + identity(a + b);
7025 }(0);
7026 return a + b + c + d + e;
7027 }
7028
7029 int
7030 test3()
7031 {
7032 const auto nullary = [](){ return 0; };
7033 const auto unary = [](int x){ return x; };
7034 using nullary_t = decltype(nullary);
7035 using unary_t = decltype(unary);
7036 const auto higher1st = [](nullary_t f){ return f(); };
7037 const auto higher2nd = [unary](nullary_t f1){
7038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7039 };
7040 return higher1st(nullary) + higher2nd(nullary)(unary);
7041 }
7042
7043 }
7044
7045 namespace test_variadic_templates
7046 {
7047
7048 template <int...>
7049 struct sum;
7050
7051 template <int N0, int... N1toN>
7052 struct sum<N0, N1toN...>
7053 {
7054 static constexpr auto value = N0 + sum<N1toN...>::value;
7055 };
7056
7057 template <>
7058 struct sum<>
7059 {
7060 static constexpr auto value = 0;
7061 };
7062
7063 static_assert(sum<>::value == 0, "");
7064 static_assert(sum<1>::value == 1, "");
7065 static_assert(sum<23>::value == 23, "");
7066 static_assert(sum<1, 2>::value == 3, "");
7067 static_assert(sum<5, 5, 11>::value == 21, "");
7068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7069
7070 }
7071
7072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7074 // because of this.
7075 namespace test_template_alias_sfinae
7076 {
7077
7078 struct foo {};
7079
7080 template<typename T>
7081 using member = typename T::member_type;
7082
7083 template<typename T>
7084 void func(...) {}
7085
7086 template<typename T>
7087 void func(member<T>*) {}
7088
7089 void test();
7090
7091 void test() { func<foo>(0); }
7092
7093 }
7094
7095 } // namespace cxx11
7096
7097 #endif // __cplusplus >= 201103L
7098
7099
7100
7101 _ACEOF
7102 if ac_fn_cxx_try_compile "$LINENO"; then :
7103 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7104 else
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 fi
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7110 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7111 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7112 ac_success=yes
7113 fi
7114
7115 if test x$ac_success = xno; then
7116 for alternative in ${ax_cxx_compile_alternatives}; do
7117 switch="-std=gnu++${alternative}"
7118 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7120 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7121 if eval \${$cachevar+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 ac_save_CXX="$CXX"
7125 CXX="$CXX $switch"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128
7129
7130 // If the compiler admits that it is not ready for C++11, why torture it?
7131 // Hopefully, this will speed up the test.
7132
7133 #ifndef __cplusplus
7134
7135 #error "This is not a C++ compiler"
7136
7137 #elif __cplusplus < 201103L
7138
7139 #error "This is not a C++11 compiler"
7140
7141 #else
7142
7143 namespace cxx11
7144 {
7145
7146 namespace test_static_assert
7147 {
7148
7149 template <typename T>
7150 struct check
7151 {
7152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7153 };
7154
7155 }
7156
7157 namespace test_final_override
7158 {
7159
7160 struct Base
7161 {
7162 virtual ~Base() {}
7163 virtual void f() {}
7164 };
7165
7166 struct Derived : public Base
7167 {
7168 virtual ~Derived() override {}
7169 virtual void f() override {}
7170 };
7171
7172 }
7173
7174 namespace test_double_right_angle_brackets
7175 {
7176
7177 template < typename T >
7178 struct check {};
7179
7180 typedef check<void> single_type;
7181 typedef check<check<void>> double_type;
7182 typedef check<check<check<void>>> triple_type;
7183 typedef check<check<check<check<void>>>> quadruple_type;
7184
7185 }
7186
7187 namespace test_decltype
7188 {
7189
7190 int
7191 f()
7192 {
7193 int a = 1;
7194 decltype(a) b = 2;
7195 return a + b;
7196 }
7197
7198 }
7199
7200 namespace test_type_deduction
7201 {
7202
7203 template < typename T1, typename T2 >
7204 struct is_same
7205 {
7206 static const bool value = false;
7207 };
7208
7209 template < typename T >
7210 struct is_same<T, T>
7211 {
7212 static const bool value = true;
7213 };
7214
7215 template < typename T1, typename T2 >
7216 auto
7217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7218 {
7219 return a1 + a2;
7220 }
7221
7222 int
7223 test(const int c, volatile int v)
7224 {
7225 static_assert(is_same<int, decltype(0)>::value == true, "");
7226 static_assert(is_same<int, decltype(c)>::value == false, "");
7227 static_assert(is_same<int, decltype(v)>::value == false, "");
7228 auto ac = c;
7229 auto av = v;
7230 auto sumi = ac + av + 'x';
7231 auto sumf = ac + av + 1.0;
7232 static_assert(is_same<int, decltype(ac)>::value == true, "");
7233 static_assert(is_same<int, decltype(av)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7237 return (sumf > 0.0) ? sumi : add(c, v);
7238 }
7239
7240 }
7241
7242 namespace test_noexcept
7243 {
7244
7245 int f() { return 0; }
7246 int g() noexcept { return 0; }
7247
7248 static_assert(noexcept(f()) == false, "");
7249 static_assert(noexcept(g()) == true, "");
7250
7251 }
7252
7253 namespace test_constexpr
7254 {
7255
7256 template < typename CharT >
7257 unsigned long constexpr
7258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7259 {
7260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7261 }
7262
7263 template < typename CharT >
7264 unsigned long constexpr
7265 strlen_c(const CharT *const s) noexcept
7266 {
7267 return strlen_c_r(s, 0UL);
7268 }
7269
7270 static_assert(strlen_c("") == 0UL, "");
7271 static_assert(strlen_c("1") == 1UL, "");
7272 static_assert(strlen_c("example") == 7UL, "");
7273 static_assert(strlen_c("another\0example") == 7UL, "");
7274
7275 }
7276
7277 namespace test_rvalue_references
7278 {
7279
7280 template < int N >
7281 struct answer
7282 {
7283 static constexpr int value = N;
7284 };
7285
7286 answer<1> f(int&) { return answer<1>(); }
7287 answer<2> f(const int&) { return answer<2>(); }
7288 answer<3> f(int&&) { return answer<3>(); }
7289
7290 void
7291 test()
7292 {
7293 int i = 0;
7294 const int c = 0;
7295 static_assert(decltype(f(i))::value == 1, "");
7296 static_assert(decltype(f(c))::value == 2, "");
7297 static_assert(decltype(f(0))::value == 3, "");
7298 }
7299
7300 }
7301
7302 namespace test_uniform_initialization
7303 {
7304
7305 struct test
7306 {
7307 static const int zero {};
7308 static const int one {1};
7309 };
7310
7311 static_assert(test::zero == 0, "");
7312 static_assert(test::one == 1, "");
7313
7314 }
7315
7316 namespace test_lambdas
7317 {
7318
7319 void
7320 test1()
7321 {
7322 auto lambda1 = [](){};
7323 auto lambda2 = lambda1;
7324 lambda1();
7325 lambda2();
7326 }
7327
7328 int
7329 test2()
7330 {
7331 auto a = [](int i, int j){ return i + j; }(1, 2);
7332 auto b = []() -> int { return '0'; }();
7333 auto c = [=](){ return a + b; }();
7334 auto d = [&](){ return c; }();
7335 auto e = [a, &b](int x) mutable {
7336 const auto identity = [](int y){ return y; };
7337 for (auto i = 0; i < a; ++i)
7338 a += b--;
7339 return x + identity(a + b);
7340 }(0);
7341 return a + b + c + d + e;
7342 }
7343
7344 int
7345 test3()
7346 {
7347 const auto nullary = [](){ return 0; };
7348 const auto unary = [](int x){ return x; };
7349 using nullary_t = decltype(nullary);
7350 using unary_t = decltype(unary);
7351 const auto higher1st = [](nullary_t f){ return f(); };
7352 const auto higher2nd = [unary](nullary_t f1){
7353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7354 };
7355 return higher1st(nullary) + higher2nd(nullary)(unary);
7356 }
7357
7358 }
7359
7360 namespace test_variadic_templates
7361 {
7362
7363 template <int...>
7364 struct sum;
7365
7366 template <int N0, int... N1toN>
7367 struct sum<N0, N1toN...>
7368 {
7369 static constexpr auto value = N0 + sum<N1toN...>::value;
7370 };
7371
7372 template <>
7373 struct sum<>
7374 {
7375 static constexpr auto value = 0;
7376 };
7377
7378 static_assert(sum<>::value == 0, "");
7379 static_assert(sum<1>::value == 1, "");
7380 static_assert(sum<23>::value == 23, "");
7381 static_assert(sum<1, 2>::value == 3, "");
7382 static_assert(sum<5, 5, 11>::value == 21, "");
7383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7384
7385 }
7386
7387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7389 // because of this.
7390 namespace test_template_alias_sfinae
7391 {
7392
7393 struct foo {};
7394
7395 template<typename T>
7396 using member = typename T::member_type;
7397
7398 template<typename T>
7399 void func(...) {}
7400
7401 template<typename T>
7402 void func(member<T>*) {}
7403
7404 void test();
7405
7406 void test() { func<foo>(0); }
7407
7408 }
7409
7410 } // namespace cxx11
7411
7412 #endif // __cplusplus >= 201103L
7413
7414
7415
7416 _ACEOF
7417 if ac_fn_cxx_try_compile "$LINENO"; then :
7418 eval $cachevar=yes
7419 else
7420 eval $cachevar=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CXX="$ac_save_CXX"
7424 fi
7425 eval ac_res=\$$cachevar
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7427 $as_echo "$ac_res" >&6; }
7428 if eval test x\$$cachevar = xyes; then
7429 CXX="$CXX $switch"
7430 if test -n "$CXXCPP" ; then
7431 CXXCPP="$CXXCPP $switch"
7432 fi
7433 ac_success=yes
7434 break
7435 fi
7436 done
7437 fi
7438
7439 if test x$ac_success = xno; then
7440 for alternative in ${ax_cxx_compile_alternatives}; do
7441 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7444 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7445 if eval \${$cachevar+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 ac_save_CXX="$CXX"
7449 CXX="$CXX $switch"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452
7453
7454 // If the compiler admits that it is not ready for C++11, why torture it?
7455 // Hopefully, this will speed up the test.
7456
7457 #ifndef __cplusplus
7458
7459 #error "This is not a C++ compiler"
7460
7461 #elif __cplusplus < 201103L
7462
7463 #error "This is not a C++11 compiler"
7464
7465 #else
7466
7467 namespace cxx11
7468 {
7469
7470 namespace test_static_assert
7471 {
7472
7473 template <typename T>
7474 struct check
7475 {
7476 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7477 };
7478
7479 }
7480
7481 namespace test_final_override
7482 {
7483
7484 struct Base
7485 {
7486 virtual ~Base() {}
7487 virtual void f() {}
7488 };
7489
7490 struct Derived : public Base
7491 {
7492 virtual ~Derived() override {}
7493 virtual void f() override {}
7494 };
7495
7496 }
7497
7498 namespace test_double_right_angle_brackets
7499 {
7500
7501 template < typename T >
7502 struct check {};
7503
7504 typedef check<void> single_type;
7505 typedef check<check<void>> double_type;
7506 typedef check<check<check<void>>> triple_type;
7507 typedef check<check<check<check<void>>>> quadruple_type;
7508
7509 }
7510
7511 namespace test_decltype
7512 {
7513
7514 int
7515 f()
7516 {
7517 int a = 1;
7518 decltype(a) b = 2;
7519 return a + b;
7520 }
7521
7522 }
7523
7524 namespace test_type_deduction
7525 {
7526
7527 template < typename T1, typename T2 >
7528 struct is_same
7529 {
7530 static const bool value = false;
7531 };
7532
7533 template < typename T >
7534 struct is_same<T, T>
7535 {
7536 static const bool value = true;
7537 };
7538
7539 template < typename T1, typename T2 >
7540 auto
7541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7542 {
7543 return a1 + a2;
7544 }
7545
7546 int
7547 test(const int c, volatile int v)
7548 {
7549 static_assert(is_same<int, decltype(0)>::value == true, "");
7550 static_assert(is_same<int, decltype(c)>::value == false, "");
7551 static_assert(is_same<int, decltype(v)>::value == false, "");
7552 auto ac = c;
7553 auto av = v;
7554 auto sumi = ac + av + 'x';
7555 auto sumf = ac + av + 1.0;
7556 static_assert(is_same<int, decltype(ac)>::value == true, "");
7557 static_assert(is_same<int, decltype(av)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7561 return (sumf > 0.0) ? sumi : add(c, v);
7562 }
7563
7564 }
7565
7566 namespace test_noexcept
7567 {
7568
7569 int f() { return 0; }
7570 int g() noexcept { return 0; }
7571
7572 static_assert(noexcept(f()) == false, "");
7573 static_assert(noexcept(g()) == true, "");
7574
7575 }
7576
7577 namespace test_constexpr
7578 {
7579
7580 template < typename CharT >
7581 unsigned long constexpr
7582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7583 {
7584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7585 }
7586
7587 template < typename CharT >
7588 unsigned long constexpr
7589 strlen_c(const CharT *const s) noexcept
7590 {
7591 return strlen_c_r(s, 0UL);
7592 }
7593
7594 static_assert(strlen_c("") == 0UL, "");
7595 static_assert(strlen_c("1") == 1UL, "");
7596 static_assert(strlen_c("example") == 7UL, "");
7597 static_assert(strlen_c("another\0example") == 7UL, "");
7598
7599 }
7600
7601 namespace test_rvalue_references
7602 {
7603
7604 template < int N >
7605 struct answer
7606 {
7607 static constexpr int value = N;
7608 };
7609
7610 answer<1> f(int&) { return answer<1>(); }
7611 answer<2> f(const int&) { return answer<2>(); }
7612 answer<3> f(int&&) { return answer<3>(); }
7613
7614 void
7615 test()
7616 {
7617 int i = 0;
7618 const int c = 0;
7619 static_assert(decltype(f(i))::value == 1, "");
7620 static_assert(decltype(f(c))::value == 2, "");
7621 static_assert(decltype(f(0))::value == 3, "");
7622 }
7623
7624 }
7625
7626 namespace test_uniform_initialization
7627 {
7628
7629 struct test
7630 {
7631 static const int zero {};
7632 static const int one {1};
7633 };
7634
7635 static_assert(test::zero == 0, "");
7636 static_assert(test::one == 1, "");
7637
7638 }
7639
7640 namespace test_lambdas
7641 {
7642
7643 void
7644 test1()
7645 {
7646 auto lambda1 = [](){};
7647 auto lambda2 = lambda1;
7648 lambda1();
7649 lambda2();
7650 }
7651
7652 int
7653 test2()
7654 {
7655 auto a = [](int i, int j){ return i + j; }(1, 2);
7656 auto b = []() -> int { return '0'; }();
7657 auto c = [=](){ return a + b; }();
7658 auto d = [&](){ return c; }();
7659 auto e = [a, &b](int x) mutable {
7660 const auto identity = [](int y){ return y; };
7661 for (auto i = 0; i < a; ++i)
7662 a += b--;
7663 return x + identity(a + b);
7664 }(0);
7665 return a + b + c + d + e;
7666 }
7667
7668 int
7669 test3()
7670 {
7671 const auto nullary = [](){ return 0; };
7672 const auto unary = [](int x){ return x; };
7673 using nullary_t = decltype(nullary);
7674 using unary_t = decltype(unary);
7675 const auto higher1st = [](nullary_t f){ return f(); };
7676 const auto higher2nd = [unary](nullary_t f1){
7677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7678 };
7679 return higher1st(nullary) + higher2nd(nullary)(unary);
7680 }
7681
7682 }
7683
7684 namespace test_variadic_templates
7685 {
7686
7687 template <int...>
7688 struct sum;
7689
7690 template <int N0, int... N1toN>
7691 struct sum<N0, N1toN...>
7692 {
7693 static constexpr auto value = N0 + sum<N1toN...>::value;
7694 };
7695
7696 template <>
7697 struct sum<>
7698 {
7699 static constexpr auto value = 0;
7700 };
7701
7702 static_assert(sum<>::value == 0, "");
7703 static_assert(sum<1>::value == 1, "");
7704 static_assert(sum<23>::value == 23, "");
7705 static_assert(sum<1, 2>::value == 3, "");
7706 static_assert(sum<5, 5, 11>::value == 21, "");
7707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7708
7709 }
7710
7711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7713 // because of this.
7714 namespace test_template_alias_sfinae
7715 {
7716
7717 struct foo {};
7718
7719 template<typename T>
7720 using member = typename T::member_type;
7721
7722 template<typename T>
7723 void func(...) {}
7724
7725 template<typename T>
7726 void func(member<T>*) {}
7727
7728 void test();
7729
7730 void test() { func<foo>(0); }
7731
7732 }
7733
7734 } // namespace cxx11
7735
7736 #endif // __cplusplus >= 201103L
7737
7738
7739
7740 _ACEOF
7741 if ac_fn_cxx_try_compile "$LINENO"; then :
7742 eval $cachevar=yes
7743 else
7744 eval $cachevar=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 CXX="$ac_save_CXX"
7748 fi
7749 eval ac_res=\$$cachevar
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7751 $as_echo "$ac_res" >&6; }
7752 if eval test x\$$cachevar = xyes; then
7753 CXX="$CXX $switch"
7754 if test -n "$CXXCPP" ; then
7755 CXXCPP="$CXXCPP $switch"
7756 fi
7757 ac_success=yes
7758 break
7759 fi
7760 done
7761 if test x$ac_success = xyes; then
7762 break
7763 fi
7764 done
7765 fi
7766 CXX_FOR_BUILD="$CXX"
7767 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7768 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7769 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7770 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7771 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7772 ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7779 if test x$ac_success = xno; then
7780 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7781 fi
7782 fi
7783 if test x$ac_success = xno; then
7784 HAVE_CXX11_FOR_BUILD=0
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7786 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7787 else
7788 HAVE_CXX11_FOR_BUILD=1
7789
7790 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7791
7792 fi
7793
7794
7795 fi
7796 fi
7797
7798 # Check whether --enable-pgo-build was given.
7799 if test "${enable_pgo_build+set}" = set; then :
7800 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7801 else
7802 enable_pgo_build=no
7803 fi
7804
7805
7806 # Issue errors and warnings for invalid/strange PGO build combinations.
7807 case "$have_compiler:$host:$target:$enable_pgo_build" in
7808 *:*:*:no) ;;
7809
7810 # Allow the PGO build only if we aren't building a compiler and
7811 # we are in a native configuration.
7812 no:$build:$build:yes | no:$build:$build:lto) ;;
7813
7814 # Disallow the PGO bootstrap if we are building a compiler.
7815 yes:*:*:yes | yes:*:*:lto)
7816 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7817
7818 *)
7819 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7820 ;;
7821 esac
7822
7823 if test "$enable_pgo_build" != "no"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7825 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7826 old_CFLAGS="$CFLAGS"
7827 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7828 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7829
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832 int foo;
7833 _ACEOF
7834 if ac_fn_c_try_compile "$LINENO"; then :
7835
7836 else
7837 PGO_BUILD_GEN_CFLAGS=
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 CFLAGS="$old_CFLAGS"
7841 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843 $as_echo "yes" >&6; }
7844 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7849 fi
7850
7851 if test "$enable_pgo_build" = "lto"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7853 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7854 old_CFLAGS="$CFLAGS"
7855 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7856 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859 int foo;
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862
7863 else
7864 PGO_BUILD_LTO_CFLAGS=
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$old_CFLAGS"
7868 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7875 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7876 fi
7877 fi
7878 fi
7879
7880
7881
7882
7883 # Used for setting $lt_cv_objdir
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885 $as_echo_n "checking for objdir... " >&6; }
7886 if ${lt_cv_objdir+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 rm -f .libs 2>/dev/null
7890 mkdir .libs 2>/dev/null
7891 if test -d .libs; then
7892 lt_cv_objdir=.libs
7893 else
7894 # MS-DOS does not allow filenames that begin with a dot.
7895 lt_cv_objdir=_libs
7896 fi
7897 rmdir .libs 2>/dev/null
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900 $as_echo "$lt_cv_objdir" >&6; }
7901 objdir=$lt_cv_objdir
7902
7903
7904
7905
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define LT_OBJDIR "$lt_cv_objdir/"
7909 _ACEOF
7910
7911
7912
7913 # Check for GMP, MPFR and MPC
7914 require_gmp=no
7915 require_mpc=no
7916 if test -d ${srcdir}/gcc ; then
7917 require_gmp=yes
7918 require_mpc=yes
7919 fi
7920 if test -d ${srcdir}/gdb ; then
7921 if test "x$enable_gdb" != xno; then
7922 require_gmp=yes
7923 fi
7924 fi
7925
7926 gmplibs="-lmpfr -lgmp"
7927 if test x"$require_mpc" = "xyes" ; then
7928 gmplibs="-lmpc $gmplibs"
7929 fi
7930 gmpinc=
7931 have_gmp=no
7932
7933 # Specify a location for mpc
7934 # check for this first so it ends up on the link line before mpfr.
7935
7936 # Check whether --with-mpc was given.
7937 if test "${with_mpc+set}" = set; then :
7938 withval=$with_mpc;
7939 fi
7940
7941
7942 # Check whether --with-mpc-include was given.
7943 if test "${with_mpc_include+set}" = set; then :
7944 withval=$with_mpc_include;
7945 fi
7946
7947
7948 # Check whether --with-mpc-lib was given.
7949 if test "${with_mpc_lib+set}" = set; then :
7950 withval=$with_mpc_lib;
7951 fi
7952
7953
7954 if test "x$with_mpc" != x; then
7955 gmplibs="-L$with_mpc/lib $gmplibs"
7956 gmpinc="-I$with_mpc/include $gmpinc"
7957 fi
7958 if test "x$with_mpc_include" != x; then
7959 gmpinc="-I$with_mpc_include $gmpinc"
7960 fi
7961 if test "x$with_mpc_lib" != x; then
7962 gmplibs="-L$with_mpc_lib $gmplibs"
7963 fi
7964 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7965 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7966 gmpinc='-I$$s/mpc/src '"$gmpinc"
7967 # Do not test the mpc version. Assume that it is sufficient, since
7968 # it is in the source tree, and the library has not been built yet
7969 # but it would be included on the link line in the version check below
7970 # hence making the test fail.
7971 have_gmp=yes
7972 fi
7973
7974 # Specify a location for mpfr
7975 # check for this first so it ends up on the link line before gmp.
7976
7977 # Check whether --with-mpfr was given.
7978 if test "${with_mpfr+set}" = set; then :
7979 withval=$with_mpfr;
7980 fi
7981
7982
7983 # Check whether --with-mpfr-include was given.
7984 if test "${with_mpfr_include+set}" = set; then :
7985 withval=$with_mpfr_include;
7986 fi
7987
7988
7989 # Check whether --with-mpfr-lib was given.
7990 if test "${with_mpfr_lib+set}" = set; then :
7991 withval=$with_mpfr_lib;
7992 fi
7993
7994
7995 if test "x$with_mpfr" != x; then
7996 gmplibs="-L$with_mpfr/lib $gmplibs"
7997 gmpinc="-I$with_mpfr/include $gmpinc"
7998 fi
7999 if test "x$with_mpfr_include" != x; then
8000 gmpinc="-I$with_mpfr_include $gmpinc"
8001 fi
8002 if test "x$with_mpfr_lib" != x; then
8003 gmplibs="-L$with_mpfr_lib $gmplibs"
8004 fi
8005 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8006 # MPFR v3.1.0 moved the sources into a src sub-directory.
8007 if ! test -d ${srcdir}/mpfr/src; then
8008 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8009 fi
8010 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8011 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8012 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8013 # Do not test the mpfr version. Assume that it is sufficient, since
8014 # it is in the source tree, and the library has not been built yet
8015 # but it would be included on the link line in the version check below
8016 # hence making the test fail.
8017 have_gmp=yes
8018 fi
8019
8020 # Specify a location for gmp
8021
8022 # Check whether --with-gmp was given.
8023 if test "${with_gmp+set}" = set; then :
8024 withval=$with_gmp;
8025 fi
8026
8027
8028 # Check whether --with-gmp-include was given.
8029 if test "${with_gmp_include+set}" = set; then :
8030 withval=$with_gmp_include;
8031 fi
8032
8033
8034 # Check whether --with-gmp-lib was given.
8035 if test "${with_gmp_lib+set}" = set; then :
8036 withval=$with_gmp_lib;
8037 fi
8038
8039
8040
8041 if test "x$with_gmp" != x; then
8042 gmplibs="-L$with_gmp/lib $gmplibs"
8043 gmpinc="-I$with_gmp/include $gmpinc"
8044 fi
8045 if test "x$with_gmp_include" != x; then
8046 gmpinc="-I$with_gmp_include $gmpinc"
8047 fi
8048 if test "x$with_gmp_lib" != x; then
8049 gmplibs="-L$with_gmp_lib $gmplibs"
8050 fi
8051 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8052 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8053 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8054 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8055 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8056 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8057 # Do not test the gmp version. Assume that it is sufficient, since
8058 # it is in the source tree, and the library has not been built yet
8059 # but it would be included on the link line in the version check below
8060 # hence making the test fail.
8061 have_gmp=yes
8062 fi
8063
8064 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8065 have_gmp=yes
8066 saved_CFLAGS="$CFLAGS"
8067 CFLAGS="$CFLAGS $gmpinc"
8068 # Check for the recommended and required versions of GMP.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8070 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include "gmp.h"
8074 int
8075 main ()
8076 {
8077
8078 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8079 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8080 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8081 choke me
8082 #endif
8083
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"; then :
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 #include <gmp.h>
8092 int
8093 main ()
8094 {
8095
8096 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8097 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8098 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8099 choke me
8100 #endif
8101
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 if ac_fn_c_try_compile "$LINENO"; then :
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8111 $as_echo "buggy but acceptable" >&6; }
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }; have_gmp=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119
8120 # If we have GMP, check the MPFR version.
8121 if test x"$have_gmp" = xyes; then
8122 # Check for the recommended and required versions of MPFR.
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8124 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #include <gmp.h>
8128 #include <mpfr.h>
8129 int
8130 main ()
8131 {
8132
8133 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8134 choke me
8135 #endif
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <gmp.h>
8145 #include <mpfr.h>
8146 int
8147 main ()
8148 {
8149
8150 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8151 choke me
8152 #endif
8153
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"; then :
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160 $as_echo "yes" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8163 $as_echo "buggy but acceptable" >&6; }
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 else
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }; have_gmp=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 fi
8172
8173 # Check for the MPC header version.
8174 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8175 # Check for the recommended and required versions of MPC.
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8177 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <mpc.h>
8181 int
8182 main ()
8183 {
8184
8185 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8186 choke me
8187 #endif
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #include <mpc.h>
8197 int
8198 main ()
8199 {
8200
8201 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8202 choke me
8203 #endif
8204
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8212 else
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8214 $as_echo "buggy but acceptable" >&6; }
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }; have_gmp=no
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 fi
8223
8224 # Now check the MPFR library.
8225 if test x"$have_gmp" = xyes; then
8226 saved_LIBS="$LIBS"
8227 LIBS="$LIBS $gmplibs"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8229 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 #include <mpfr.h>
8233 int
8234 main ()
8235 {
8236
8237 mpfr_t n;
8238 mpfr_t x;
8239 int t;
8240 mpfr_init (n);
8241 mpfr_init (x);
8242 mpfr_atan2 (n, n, x, MPFR_RNDN);
8243 mpfr_erfc (n, x, MPFR_RNDN);
8244 mpfr_subnormalize (x, t, MPFR_RNDN);
8245 mpfr_clear(n);
8246 mpfr_clear(x);
8247
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }; have_gmp=no
8258 fi
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS="$saved_LIBS"
8262 fi
8263
8264 # Now check the MPC library
8265 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8266 saved_LIBS="$LIBS"
8267 LIBS="$LIBS $gmplibs"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8269 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 #include <mpc.h>
8273 int
8274 main ()
8275 {
8276
8277 mpc_t c;
8278 mpc_init2 (c, 53);
8279 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8280 mpc_cosh (c, c, MPC_RNDNN);
8281 mpc_pow (c, c, c, MPC_RNDNN);
8282 mpc_acosh (c, c, MPC_RNDNN);
8283 mpc_clear (c);
8284
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291 $as_echo "yes" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }; have_gmp=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 LIBS="$saved_LIBS"
8299 fi
8300
8301 CFLAGS="$saved_CFLAGS"
8302
8303 # The library versions listed in the error message below should match
8304 # the HARD-minimums enforced above.
8305 if test x$have_gmp != xyes; then
8306 if test -d ${srcdir}/gcc ; then
8307 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8308 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8309 their locations. Source code for these libraries can be found at
8310 their respective hosting sites as well as at
8311 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8312 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8313 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8314 make sure that you have installed both the libraries and the header
8315 files. They may be located in separate packages." "$LINENO" 5
8316 else
8317 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8318 Try the --with-gmp and/or --with-mpfr options to specify
8319 their locations. If you obtained GMP and/or MPFR from a vendor
8320 distribution package, make sure that you have installed both the libraries
8321 and the header files. They may be located in separate packages." "$LINENO" 5
8322 fi
8323 fi
8324 fi
8325
8326 # Flags needed for both GMP, MPFR and/or MPC.
8327
8328
8329
8330
8331
8332
8333
8334 # Libraries to use for stage1 or when not bootstrapping.
8335
8336 # Check whether --with-stage1-libs was given.
8337 if test "${with_stage1_libs+set}" = set; then :
8338 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8339 stage1_libs=
8340 else
8341 stage1_libs=$withval
8342 fi
8343 else
8344 stage1_libs=
8345 fi
8346
8347
8348
8349 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8350 # default is yes if gcc is being built; no otherwise. The reason for
8351 # this default is that gdb is sometimes linked against GNU Source
8352 # Highlight, which is a shared library that uses C++ exceptions. In
8353 # this case, -static-libstdc++ will cause crashes.
8354
8355 # Check whether --with-static-standard-libraries was given.
8356 if test "${with_static_standard_libraries+set}" = set; then :
8357 withval=$with_static_standard_libraries;
8358 else
8359 with_static_standard_libraries=auto
8360 fi
8361
8362 if test "$with_static_standard_libraries" = auto; then
8363 with_static_standard_libraries=$have_compiler
8364 fi
8365
8366 # Linker flags to use for stage1 or when not bootstrapping.
8367
8368 # Check whether --with-stage1-ldflags was given.
8369 if test "${with_stage1_ldflags+set}" = set; then :
8370 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8371 stage1_ldflags=
8372 else
8373 stage1_ldflags=$withval
8374 fi
8375 else
8376 stage1_ldflags=
8377 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8378 # if supported. But if the user explicitly specified the libraries to use,
8379 # trust that they are doing what they want.
8380 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8381 -a "$have_static_libs" = yes; then
8382 stage1_ldflags="-static-libstdc++ -static-libgcc"
8383 fi
8384 fi
8385
8386
8387
8388 # Libraries to use for stage2 and later builds.
8389
8390 # Check whether --with-boot-libs was given.
8391 if test "${with_boot_libs+set}" = set; then :
8392 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8393 poststage1_libs=
8394 else
8395 poststage1_libs=$withval
8396 fi
8397 else
8398 poststage1_libs=
8399 fi
8400
8401
8402
8403 # Linker flags to use for stage2 and later builds.
8404
8405 # Check whether --with-boot-ldflags was given.
8406 if test "${with_boot_ldflags+set}" = set; then :
8407 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8408 poststage1_ldflags=
8409 else
8410 poststage1_ldflags=$withval
8411 fi
8412 else
8413 poststage1_ldflags=
8414 # In stages 2 and 3, default to linking libstdc++ and libgcc
8415 # statically. But if the user explicitly specified the libraries to
8416 # use, trust that they are doing what they want.
8417 if test "$poststage1_libs" = ""; then
8418 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8419 fi
8420 fi
8421
8422
8423
8424 # GCC GRAPHITE dependency isl.
8425 # Basic setup is inlined here, actual checks are in config/isl.m4
8426
8427
8428 # Check whether --with-isl was given.
8429 if test "${with_isl+set}" = set; then :
8430 withval=$with_isl;
8431 fi
8432
8433
8434 # Treat --without-isl as a request to disable
8435 # GRAPHITE support and skip all following checks.
8436 if test "x$with_isl" != "xno"; then
8437 # Check for isl
8438
8439
8440 # Check whether --with-isl-include was given.
8441 if test "${with_isl_include+set}" = set; then :
8442 withval=$with_isl_include;
8443 fi
8444
8445
8446 # Check whether --with-isl-lib was given.
8447 if test "${with_isl_lib+set}" = set; then :
8448 withval=$with_isl_lib;
8449 fi
8450
8451
8452 # Check whether --enable-isl-version-check was given.
8453 if test "${enable_isl_version_check+set}" = set; then :
8454 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8455 else
8456 ENABLE_ISL_CHECK=yes
8457 fi
8458
8459
8460 # Initialize isllibs and islinc.
8461 case $with_isl in
8462 no)
8463 isllibs=
8464 islinc=
8465 ;;
8466 "" | yes)
8467 ;;
8468 *)
8469 isllibs="-L$with_isl/lib"
8470 islinc="-I$with_isl/include"
8471 ;;
8472 esac
8473 if test "x${with_isl_include}" != x ; then
8474 islinc="-I$with_isl_include"
8475 fi
8476 if test "x${with_isl_lib}" != x; then
8477 isllibs="-L$with_isl_lib"
8478 fi
8479 if test "x${islinc}" = x && test "x${isllibs}" = x \
8480 && test -d ${srcdir}/isl; then
8481 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8482 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8483 ENABLE_ISL_CHECK=no
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8485 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8486 fi
8487
8488 isllibs="${isllibs} -lisl"
8489
8490
8491
8492 if test "${ENABLE_ISL_CHECK}" = yes ; then
8493 _isl_saved_CFLAGS=$CFLAGS
8494 _isl_saved_LDFLAGS=$LDFLAGS
8495 _isl_saved_LIBS=$LIBS
8496
8497 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8498 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8499 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8500
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8502 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <isl/schedule.h>
8506 int
8507 main ()
8508 {
8509 isl_options_set_schedule_serialize_sccs (NULL, 0);
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 if ac_fn_c_try_link "$LINENO"; then :
8515 gcc_cv_isl=yes
8516 else
8517 gcc_cv_isl=no
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8522 $as_echo "$gcc_cv_isl" >&6; }
8523
8524 if test "${gcc_cv_isl}" = no ; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8526 $as_echo "required isl version is 0.15 or later" >&6; }
8527 fi
8528
8529 CFLAGS=$_isl_saved_CFLAGS
8530 LDFLAGS=$_isl_saved_LDFLAGS
8531 LIBS=$_isl_saved_LIBS
8532 fi
8533
8534
8535
8536
8537
8538
8539 if test "x${with_isl}" = xno; then
8540 graphite_requested=no
8541 elif test "x${with_isl}" != x \
8542 || test "x${with_isl_include}" != x \
8543 || test "x${with_isl_lib}" != x ; then
8544 graphite_requested=yes
8545 else
8546 graphite_requested=no
8547 fi
8548
8549
8550
8551 if test "${gcc_cv_isl}" = no ; then
8552 isllibs=
8553 islinc=
8554 fi
8555
8556 if test "${graphite_requested}" = yes \
8557 && test "x${isllibs}" = x \
8558 && test "x${islinc}" = x ; then
8559
8560 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8561 fi
8562
8563
8564 fi
8565
8566 # If the isl check failed, disable builds of in-tree variant of isl
8567 if test "x$with_isl" = xno ||
8568 test "x$gcc_cv_isl" = xno; then
8569 noconfigdirs="$noconfigdirs isl"
8570 islinc=
8571 fi
8572
8573
8574
8575
8576 # Check for LTO support.
8577 # Check whether --enable-lto was given.
8578 if test "${enable_lto+set}" = set; then :
8579 enableval=$enable_lto; enable_lto=$enableval
8580 else
8581 enable_lto=yes; default_enable_lto=yes
8582 fi
8583
8584
8585
8586
8587
8588 target_elf=no
8589 case $target in
8590 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8591 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8592 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8593 nvptx-*-none)
8594 target_elf=no
8595 ;;
8596 *)
8597 target_elf=yes
8598 ;;
8599 esac
8600
8601 if test $target_elf = yes; then :
8602 # ELF platforms build the lto-plugin always.
8603 build_lto_plugin=yes
8604
8605 else
8606 if test x"$default_enable_lto" = x"yes" ; then
8607 case $target in
8608 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8609 # On other non-ELF platforms, LTO has yet to be validated.
8610 *) enable_lto=no ;;
8611 esac
8612 else
8613 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8614 # It would also be nice to check the binutils support, but we don't
8615 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8616 # warn during gcc/ subconfigure; unless you're bootstrapping with
8617 # -flto it won't be needed until after installation anyway.
8618 case $target in
8619 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8620 *) if test x"$enable_lto" = x"yes"; then
8621 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8622 fi
8623 ;;
8624 esac
8625 fi
8626 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8627 # Build it unless LTO was explicitly disabled.
8628 case $target in
8629 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8630 *) ;;
8631 esac
8632
8633 fi
8634
8635
8636 # Check whether --enable-linker-plugin-configure-flags was given.
8637 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8638 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8639 else
8640 extra_linker_plugin_configure_flags=
8641 fi
8642
8643
8644 # Check whether --enable-linker-plugin-flags was given.
8645 if test "${enable_linker_plugin_flags+set}" = set; then :
8646 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8647 else
8648 extra_linker_plugin_flags=
8649 fi
8650
8651
8652
8653 # Handle --enable-host-pie
8654 # If host PIE executables are the default (or must be forced on) for some host,
8655 # we must pass that configuration to the gcc directory.
8656 gcc_host_pie=
8657 # Check whether --enable-host-pie was given.
8658 if test "${enable_host_pie+set}" = set; then :
8659 enableval=$enable_host_pie; host_pie=$enableval
8660 case $host in
8661 *-*-darwin2*)
8662 if test x$host_pie != xyes ; then
8663 # for Darwin20+ this is required.
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8665 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8666 host_pie=yes
8667 gcc_host_pie=--enable-host-pie
8668 fi ;;
8669 *) ;;
8670 esac
8671 else
8672 case $host in
8673 *-*-darwin2*)
8674 # Default to PIE (mandatory for aarch64).
8675 host_pie=yes
8676 gcc_host_pie=--enable-host-pie
8677 ;;
8678 *) host_pie=no ;;
8679 esac
8680 fi
8681
8682
8683
8684
8685
8686 # Enable --enable-host-shared.
8687 # Checked early to determine whether jit is an 'all' language
8688 # Check whether --enable-host-shared was given.
8689 if test "${enable_host_shared+set}" = set; then :
8690 enableval=$enable_host_shared; host_shared=$enableval
8691 case $host in
8692 x86_64-*-darwin* | aarch64-*-darwin*)
8693 if test x$host_shared != xyes ; then
8694 # PIC is the default, and actually cannot be switched off.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8696 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8697 host_shared=yes
8698 fi ;;
8699 *-*-darwin*)
8700 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8702 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8703 host_shared=yes
8704 fi ;;
8705 *) ;;
8706 esac
8707 else
8708 case $host in
8709 # 64B x86_64 and Aarch64 Darwin default to PIC.
8710 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8711 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8712 *-*-darwin*) host_shared=$host_pie ;;
8713 *) host_shared=no;;
8714 esac
8715 fi
8716
8717
8718
8719
8720 if test x$host_shared = xyes; then
8721 case $host in
8722 *-*-darwin*)
8723 # Since host shared is the default for 64b Darwin, and also enabled for
8724 # host_pie, ensure that we present the PIE flag when host_pie is active.
8725 if test x$host_pie = xyes; then
8726 PICFLAG=-fPIE
8727 fi
8728 ;;
8729 *)
8730 PICFLAG=-fPIC
8731 ;;
8732 esac
8733 elif test x$host_pie = xyes; then
8734 PICFLAG=-fPIE
8735 else
8736 PICFLAG=
8737 fi
8738
8739
8740
8741 # If we are building PIC/PIE host executables, and we are building dependent
8742 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8743 # code.
8744 host_libs_picflag=
8745 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8746 host_libs_picflag='--with-pic'
8747 fi
8748
8749
8750 # By default, C and C++ are the only stage 1 languages.
8751 stage1_languages=,c,
8752
8753 # Target libraries that we bootstrap.
8754 bootstrap_target_libs=,target-libgcc,
8755
8756 # Figure out what language subdirectories are present.
8757 # Look if the user specified --enable-languages="..."; if not, use
8758 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8759 # go away some day.
8760 # NB: embedded tabs in this IF block -- do not untabify
8761 if test -d ${srcdir}/gcc; then
8762 if test x"${enable_languages+set}" != xset; then
8763 if test x"${LANGUAGES+set}" = xset; then
8764 enable_languages="${LANGUAGES}"
8765 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8766 else
8767 enable_languages=default
8768 fi
8769 else
8770 if test x"${enable_languages}" = x ||
8771 test x"${enable_languages}" = xyes;
8772 then
8773 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8774 exit 1
8775 fi
8776 fi
8777 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8778
8779 # 'f95' is the old name for the 'fortran' language. We issue a warning
8780 # and make the substitution.
8781 case ,${enable_languages}, in
8782 *,f95,*)
8783 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8784 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8785 ;;
8786 esac
8787
8788 # If bootstrapping, C++ must be enabled.
8789 case ",$enable_languages,:$enable_bootstrap" in
8790 *,c++,*:*) ;;
8791 *:yes)
8792 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8793 enable_languages="${enable_languages},c++"
8794 else
8795 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8796 fi
8797 ;;
8798 esac
8799
8800 # First scan to see if an enabled language requires some other language.
8801 # We assume that a given config-lang.in will list all the language
8802 # front ends it requires, even if some are required indirectly.
8803 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8804 case ${lang_frag} in
8805 ..) ;;
8806 # The odd quoting in the next line works around
8807 # an apparent bug in bash 1.12 on linux.
8808 ${srcdir}/gcc/[*]/config-lang.in) ;;
8809 *)
8810 # From the config-lang.in, get $language, $lang_requires, and
8811 # $lang_requires_boot_languages.
8812 language=
8813 lang_requires=
8814 lang_requires_boot_languages=
8815 # set srcdir during sourcing lang_frag to the gcc dir.
8816 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8817 # polutes this shell
8818 saved_srcdir=${srcdir}
8819 srcdir=${srcdir}/gcc . ${lang_frag}
8820 srcdir=${saved_srcdir}
8821 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8822 case ,${enable_languages}, in
8823 *,$other,*) ;;
8824 *,default,*) ;;
8825 *,all,*) ;;
8826 *,$language,*)
8827 echo " \`$other' language required by \`$language'; enabling" 1>&2
8828 enable_languages="${enable_languages},${other}"
8829 ;;
8830 esac
8831 done
8832 for other in ${lang_requires_boot_languages} ; do
8833 if test "$other" != "c"; then
8834 case ,${enable_stage1_languages}, in
8835 *,$other,*) ;;
8836 *,default,*) ;;
8837 *,all,*) ;;
8838 *)
8839 case ,${enable_languages}, in
8840 *,$language,*)
8841 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8842 enable_stage1_languages="$enable_stage1_languages,${other}"
8843 ;;
8844 esac
8845 ;;
8846 esac
8847 fi
8848 done
8849 ;;
8850 esac
8851 done
8852
8853 new_enable_languages=,c,
8854
8855 # If LTO is enabled, add the LTO front end.
8856 if test "$enable_lto" = "yes" ; then
8857 case ,${enable_languages}, in
8858 *,lto,*) ;;
8859 *) enable_languages="${enable_languages},lto" ;;
8860 esac
8861 if test "${build_lto_plugin}" = "yes" ; then
8862 configdirs="$configdirs lto-plugin"
8863 fi
8864 fi
8865
8866 # If we're building an offloading compiler, add the LTO front end.
8867 if test x"$enable_as_accelerator_for" != x ; then
8868 case ,${enable_languages}, in
8869 *,lto,*) ;;
8870 *) enable_languages="${enable_languages},lto" ;;
8871 esac
8872 fi
8873
8874 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8875 potential_languages=,c,
8876
8877 enabled_target_libs=
8878 disabled_target_libs=
8879
8880 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8881 case ${lang_frag} in
8882 ..) ;;
8883 # The odd quoting in the next line works around
8884 # an apparent bug in bash 1.12 on linux.
8885 ${srcdir}/gcc/[*]/config-lang.in) ;;
8886 *)
8887 # From the config-lang.in, get $language, $target_libs,
8888 # $lang_dirs, $boot_language, and $build_by_default
8889 language=
8890 target_libs=
8891 lang_dirs=
8892 subdir_requires=
8893 boot_language=no
8894 build_by_default=yes
8895 # set srcdir during sourcing. See above about save & restore
8896 saved_srcdir=${srcdir}
8897 srcdir=${srcdir}/gcc . ${lang_frag}
8898 srcdir=${saved_srcdir}
8899 if test x${language} = x; then
8900 echo "${lang_frag} doesn't set \$language." 1>&2
8901 exit 1
8902 fi
8903
8904 if test "$language" = "c++"; then
8905 boot_language=yes
8906 fi
8907
8908 add_this_lang=no
8909 # C is always enabled, so no need to add it again
8910 if test "$language" != "c"; then
8911 case ,${enable_languages}, in
8912 *,${language},*)
8913 # Language was explicitly selected; include it
8914 add_this_lang=yes
8915 ;;
8916 *,all,*)
8917 # All languages are enabled
8918 add_this_lang=all
8919 ;;
8920 *,default,*)
8921 # 'default' was selected, select it if it is a default language
8922 add_this_lang=${build_by_default}
8923 ;;
8924 esac
8925 fi
8926
8927 # Disable languages that need other directories if these aren't available.
8928 for i in $subdir_requires; do
8929 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8930 case ${add_this_lang} in
8931 yes)
8932 # Specifically requested language; tell them.
8933 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8934 ;;
8935 all)
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8937 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8938 add_this_lang=unsupported
8939 ;;
8940 *)
8941 # Silently disable.
8942 add_this_lang=unsupported
8943 ;;
8944 esac
8945 done
8946
8947 # Disable Ada if no preexisting GNAT is available.
8948 case ${add_this_lang}:${language}:${have_gnat} in
8949 yes:ada:no)
8950 # Specifically requested language; tell them.
8951 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8952 ;;
8953 all:ada:no)
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8955 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8956 add_this_lang=unsupported
8957 ;;
8958 *:ada:no)
8959 # Silently disable.
8960 add_this_lang=unsupported
8961 ;;
8962 esac
8963
8964 # Disable D if no preexisting GDC is available.
8965 case ${add_this_lang}:${language}:${have_gdc} in
8966 yes:d:no)
8967 # Specifically requested language; tell them.
8968 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8969 ;;
8970 all:d:no)
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8972 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8973 add_this_lang=unsupported
8974 ;;
8975 *:d:no)
8976 # Silently disable.
8977 add_this_lang=unsupported
8978 ;;
8979 esac
8980
8981 # Disable jit if -enable-host-shared not specified
8982 # but not if building for Mingw. All code in Windows
8983 # is position independent code (PIC).
8984 case $target in
8985 *mingw*) ;;
8986 *)
8987 case ${add_this_lang}:${language}:${host_shared} in
8988 yes:jit:no)
8989 # PR jit/64780: explicitly specify --enable-host-shared
8990 as_fn_error $? "
8991 Enabling language \"jit\" requires --enable-host-shared.
8992
8993 --enable-host-shared typically slows the rest of the compiler down by
8994 a few %, so you must explicitly enable it.
8995
8996 If you want to build both the jit and the regular compiler, it is often
8997 best to do this via two separate configure/builds, in separate
8998 directories, to avoid imposing the performance cost of
8999 --enable-host-shared on the regular compiler." "$LINENO" 5
9000 ;;
9001 all:jit:no)
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9003 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9004 add_this_lang=unsupported
9005 ;;
9006 *:jit:no)
9007 # Silently disable.
9008 add_this_lang=unsupported
9009 ;;
9010 esac
9011 ;;
9012 esac
9013
9014 # Disable a language that is unsupported by the target.
9015 case "${add_this_lang}: $unsupported_languages " in
9016 no:*) ;;
9017 unsupported:*) ;;
9018 *:*" $language "*)
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9020 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9021 add_this_lang=unsupported
9022 ;;
9023 esac
9024
9025 case $add_this_lang in
9026 unsupported)
9027 # Remove language-dependent dirs.
9028 disabled_target_libs="$disabled_target_libs $target_libs"
9029 noconfigdirs="$noconfigdirs $lang_dirs"
9030 ;;
9031 no)
9032 # Remove language-dependent dirs; still show language as supported.
9033 disabled_target_libs="$disabled_target_libs $target_libs"
9034 noconfigdirs="$noconfigdirs $lang_dirs"
9035 potential_languages="${potential_languages}${language},"
9036 ;;
9037 all|yes)
9038 new_enable_languages="${new_enable_languages}${language},"
9039 potential_languages="${potential_languages}${language},"
9040 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9041 enabled_target_libs="$enabled_target_libs $target_libs"
9042 case "${boot_language}:,$enable_stage1_languages," in
9043 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9044 # Add to (comma-separated) list of stage 1 languages.
9045 case ",$stage1_languages," in
9046 *,$language,* | ,yes, | ,all,) ;;
9047 *) stage1_languages="${stage1_languages}${language}," ;;
9048 esac
9049 # We need to bootstrap any supporting libraries.
9050 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9051 ;;
9052 esac
9053 ;;
9054 esac
9055 ;;
9056 esac
9057 done
9058
9059 # Add target libraries which are only needed for disabled languages
9060 # to noconfigdirs.
9061 if test -n "$disabled_target_libs"; then
9062 for dir in $disabled_target_libs; do
9063 case " $enabled_target_libs " in
9064 *" ${dir} "*) ;;
9065 *) noconfigdirs="$noconfigdirs $dir" ;;
9066 esac
9067 done
9068 fi
9069
9070 # Check whether --enable-stage1-languages was given.
9071 if test "${enable_stage1_languages+set}" = set; then :
9072 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9073 ,no,|,,)
9074 # Set it to something that will have no effect in the loop below
9075 enable_stage1_languages=c ;;
9076 ,yes,)
9077 enable_stage1_languages=`echo $new_enable_languages | \
9078 sed -e "s/^,//" -e "s/,$//" ` ;;
9079 *,all,*)
9080 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9081 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9082 esac
9083
9084 # Add "good" languages from enable_stage1_languages to stage1_languages,
9085 # while "bad" languages go in missing_languages. Leave no duplicates.
9086 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9087 case $potential_languages in
9088 *,$i,*)
9089 case $stage1_languages in
9090 *,$i,*) ;;
9091 *) stage1_languages="$stage1_languages$i," ;;
9092 esac ;;
9093 *)
9094 case $missing_languages in
9095 *,$i,*) ;;
9096 *) missing_languages="$missing_languages$i," ;;
9097 esac ;;
9098 esac
9099 done
9100 fi
9101
9102
9103 # Remove leading/trailing commas that were added for simplicity
9104 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9105 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9106 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9108
9109 if test "x$missing_languages" != x; then
9110 as_fn_error $? "
9111 The following requested languages could not be built: ${missing_languages}
9112 Supported languages are: ${potential_languages}" "$LINENO" 5
9113 fi
9114 if test "x$new_enable_languages" != "x$enable_languages"; then
9115 echo The following languages will be built: ${new_enable_languages}
9116 enable_languages="$new_enable_languages"
9117 fi
9118
9119
9120 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9121 fi
9122
9123 # Handle --disable-<component> generically.
9124 for dir in $configdirs $build_configdirs $target_configdirs ; do
9125 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9126 varname=`echo $dirname | sed -e s/+/_/g`
9127 if eval test x\${enable_${varname}} "=" xno ; then
9128 noconfigdirs="$noconfigdirs $dir"
9129 fi
9130 done
9131
9132 # Check for Boehm's garbage collector
9133 # Check whether --enable-objc-gc was given.
9134 if test "${enable_objc_gc+set}" = set; then :
9135 enableval=$enable_objc_gc;
9136 fi
9137
9138
9139 # Check whether --with-target-bdw-gc was given.
9140 if test "${with_target_bdw_gc+set}" = set; then :
9141 withval=$with_target_bdw_gc;
9142 fi
9143
9144
9145 # Check whether --with-target-bdw-gc-include was given.
9146 if test "${with_target_bdw_gc_include+set}" = set; then :
9147 withval=$with_target_bdw_gc_include;
9148 fi
9149
9150
9151 # Check whether --with-target-bdw-gc-lib was given.
9152 if test "${with_target_bdw_gc_lib+set}" = set; then :
9153 withval=$with_target_bdw_gc_lib;
9154 fi
9155
9156
9157 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9159 $as_echo_n "checking for bdw garbage collector... " >&6; }
9160 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9162 $as_echo "using bdw-gc in default locations" >&6; }
9163 else
9164 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9165 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9166 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9167 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9168 else
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9170 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9171 fi
9172 fi
9173 esac
9174
9175 # Disable libitm, libsanitizer, libvtv if we're not building C++
9176 case ,${enable_languages}, in
9177 *,c++,*)
9178 # Disable libitm, libsanitizer if we're not building libstdc++
9179 case "${noconfigdirs}" in
9180 *target-libstdc++-v3*)
9181 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9182 ;;
9183 *) ;;
9184 esac
9185 ;;
9186 *)
9187 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9188 ;;
9189 esac
9190
9191 # If gcc/ is not in the source tree then we'll not be building a
9192 # target compiler, assume in that case we don't want to build any
9193 # target libraries or tools.
9194 #
9195 # This was added primarily for the benefit for binutils-gdb who reuse
9196 # this configure script, but don't always have target tools available.
9197 if test ! -d ${srcdir}/gcc; then
9198 skipdirs="${skipdirs} ${target_configdirs}"
9199 fi
9200
9201 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9202 # $build_configdirs and $target_configdirs.
9203 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9204
9205 notsupp=""
9206 for dir in . $skipdirs $noconfigdirs ; do
9207 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9208 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9209 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure ; then
9211 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9212 true
9213 else
9214 notsupp="$notsupp $dir"
9215 fi
9216 fi
9217 fi
9218 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9219 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9220 if test -r $srcdir/$dirname/configure ; then
9221 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9222 true
9223 else
9224 notsupp="$notsupp $dir"
9225 fi
9226 fi
9227 fi
9228 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9229 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9230 if test -r $srcdir/$dirname/configure ; then
9231 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9232 true
9233 else
9234 notsupp="$notsupp $dir"
9235 fi
9236 fi
9237 fi
9238 done
9239
9240 # Quietly strip out all directories which aren't configurable in this tree.
9241 # This relies on all configurable subdirectories being autoconfiscated, which
9242 # is now the case.
9243 build_configdirs_all="$build_configdirs"
9244 build_configdirs=
9245 for i in ${build_configdirs_all} ; do
9246 j=`echo $i | sed -e s/build-//g`
9247 if test -f ${srcdir}/$j/configure ; then
9248 build_configdirs="${build_configdirs} $i"
9249 fi
9250 done
9251
9252 configdirs_all="$configdirs"
9253 configdirs=
9254 for i in ${configdirs_all} ; do
9255 if test -f ${srcdir}/$i/configure ; then
9256 configdirs="${configdirs} $i"
9257 fi
9258 done
9259
9260 target_configdirs_all="$target_configdirs"
9261 target_configdirs=
9262 for i in ${target_configdirs_all} ; do
9263 j=`echo $i | sed -e s/target-//g`
9264 if test -f ${srcdir}/$j/configure ; then
9265 target_configdirs="${target_configdirs} $i"
9266 fi
9267 done
9268
9269 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9270 # so we have to add it after the preceding checks.
9271 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9272 then
9273 case " $configdirs " in
9274 *" libiberty "*)
9275 # If we can build libiberty, we can also build libiberty-linker-plugin.
9276 configdirs="$configdirs libiberty-linker-plugin"
9277 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9278 --with-libiberty=../libiberty-linker-plugin";;
9279 *)
9280 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9281 esac
9282 fi
9283
9284 # Sometimes we have special requirements for the host libiberty.
9285 extra_host_libiberty_configure_flags=
9286 case " $configdirs " in
9287 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9288 # When these are to be built as shared libraries, the same applies to
9289 # libiberty.
9290 extra_host_libiberty_configure_flags=--enable-shared
9291 ;;
9292 esac
9293
9294
9295 # Sometimes we have special requirements for the host zlib.
9296 extra_host_zlib_configure_flags=
9297 case " $configdirs " in
9298 *" bfd "*)
9299 # When bfd is to be built as a shared library, the same applies to
9300 # zlib.
9301 if test "$enable_shared" = "yes"; then
9302 extra_host_zlib_configure_flags=--enable-host-shared
9303 fi
9304 ;;
9305 esac
9306
9307
9308 # Produce a warning message for the subdirs we can't configure.
9309 # This isn't especially interesting in the Cygnus tree, but in the individual
9310 # FSF releases, it's important to let people know when their machine isn't
9311 # supported by the one or two programs in a package.
9312
9313 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9314 # If $appdirs is non-empty, at least one of those directories must still
9315 # be configured, or we error out. (E.g., if the gas release supports a
9316 # specified target in some subdirs but not the gas subdir, we shouldn't
9317 # pretend that all is well.)
9318 if test -n "$appdirs" ; then
9319 for dir in $appdirs ; do
9320 if test -r $dir/Makefile.in ; then
9321 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9322 appdirs=""
9323 break
9324 fi
9325 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9326 appdirs=""
9327 break
9328 fi
9329 fi
9330 done
9331 if test -n "$appdirs" ; then
9332 echo "*** This configuration is not supported by this package." 1>&2
9333 exit 1
9334 fi
9335 fi
9336 # Okay, some application will build, or we don't care to check. Still
9337 # notify of subdirs not getting built.
9338 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9339 echo " ${notsupp}" 1>&2
9340 echo " (Any other directories should still work fine.)" 1>&2
9341 fi
9342
9343 case "$host" in
9344 *msdosdjgpp*)
9345 enable_gdbtk=no ;;
9346 esac
9347
9348 # To find our prefix, in gcc_cv_tool_prefix.
9349
9350 # The user is always right.
9351 if test "${PATH_SEPARATOR+set}" != set; then
9352 echo "#! /bin/sh" >conf$$.sh
9353 echo "exit 0" >>conf$$.sh
9354 chmod +x conf$$.sh
9355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9356 PATH_SEPARATOR=';'
9357 else
9358 PATH_SEPARATOR=:
9359 fi
9360 rm -f conf$$.sh
9361 fi
9362
9363
9364 get_gcc_base_ver="cat"
9365
9366 # Check whether --with-gcc-major-version-only was given.
9367 if test "${with_gcc_major_version_only+set}" = set; then :
9368 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9369 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9370 fi
9371
9372 fi
9373
9374
9375
9376
9377
9378
9379 if test "x$exec_prefix" = xNONE; then
9380 if test "x$prefix" = xNONE; then
9381 gcc_cv_tool_prefix=$ac_default_prefix
9382 else
9383 gcc_cv_tool_prefix=$prefix
9384 fi
9385 else
9386 gcc_cv_tool_prefix=$exec_prefix
9387 fi
9388
9389 # If there is no compiler in the tree, use the PATH only. In any
9390 # case, if there is no compiler in the tree nobody should use
9391 # AS_FOR_TARGET and LD_FOR_TARGET.
9392 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9393 if test x$with_gcc_major_version_only = xyes ; then
9394 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9395 else
9396 gcc_version=`cat $srcdir/gcc/BASE-VER`
9397 fi
9398 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9399 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9400 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9404 else
9405 gcc_cv_tool_dirs=
9406 fi
9407
9408 if test x$build = x$target && test -n "$md_exec_prefix"; then
9409 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9410 fi
9411
9412
9413
9414 copy_dirs=
9415
9416
9417 # Check whether --with-build-sysroot was given.
9418 if test "${with_build_sysroot+set}" = set; then :
9419 withval=$with_build_sysroot; if test x"$withval" != x ; then
9420 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9421 fi
9422 else
9423 SYSROOT_CFLAGS_FOR_TARGET=
9424 fi
9425
9426
9427
9428
9429 # Check whether --with-debug-prefix-map was given.
9430 if test "${with_debug_prefix_map+set}" = set; then :
9431 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9432 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9433 for debug_map in $withval; do
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9435 done
9436 fi
9437 else
9438 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9439 fi
9440
9441
9442
9443 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9444 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9445 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9446 # We want to ensure that TARGET libraries (which we know are built with
9447 # gcc) are built with "-O2 -g", so include those options when setting
9448 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9449 if test "x$CFLAGS_FOR_TARGET" = x; then
9450 if test "x${is_cross_compiler}" = xyes; then
9451 CFLAGS_FOR_TARGET="-g -O2"
9452 else
9453 CFLAGS_FOR_TARGET=$CFLAGS
9454 case " $CFLAGS " in
9455 *" -O2 "*) ;;
9456 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9457 esac
9458 case " $CFLAGS " in
9459 *" -g "* | *" -g3 "*) ;;
9460 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9461 esac
9462 fi
9463 fi
9464
9465
9466 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9467 if test "x${is_cross_compiler}" = xyes; then
9468 CXXFLAGS_FOR_TARGET="-g -O2"
9469 else
9470 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9471 case " $CXXFLAGS " in
9472 *" -O2 "*) ;;
9473 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9474 esac
9475 case " $CXXFLAGS " in
9476 *" -g "* | *" -g3 "*) ;;
9477 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9478 esac
9479 fi
9480 fi
9481
9482
9483
9484
9485 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9486 # the named directory are copied to $(tooldir)/sys-include.
9487 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9488 if test x${is_cross_compiler} = xno ; then
9489 echo 1>&2 '***' --with-headers is only supported when cross compiling
9490 exit 1
9491 fi
9492 if test x"${with_headers}" != xyes ; then
9493 x=${gcc_cv_tool_prefix}
9494 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9495 fi
9496 fi
9497
9498 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9499 # the name directories are copied to $(tooldir)/lib. Multiple directories
9500 # are permitted.
9501 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9502 if test x${is_cross_compiler} = xno ; then
9503 echo 1>&2 '***' --with-libs is only supported when cross compiling
9504 exit 1
9505 fi
9506 if test x"${with_libs}" != xyes ; then
9507 # Copy the libraries in reverse order, so that files in the first named
9508 # library override files in subsequent libraries.
9509 x=${gcc_cv_tool_prefix}
9510 for l in ${with_libs}; do
9511 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9512 done
9513 fi
9514 fi
9515
9516 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9517 #
9518 # This is done by determining whether or not the appropriate directory
9519 # is available, and by checking whether or not specific configurations
9520 # have requested that this magic not happen.
9521 #
9522 # The command line options always override the explicit settings in
9523 # configure.ac, and the settings in configure.ac override this magic.
9524 #
9525 # If the default for a toolchain is to use GNU as and ld, and you don't
9526 # want to do that, then you should use the --without-gnu-as and
9527 # --without-gnu-ld options for the configure script. Similarly, if
9528 # the default is to use the included zlib and you don't want to do that,
9529 # you should use the --with-system-zlib option for the configure script.
9530
9531 if test x${use_gnu_as} = x &&
9532 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9533 with_gnu_as=yes
9534 extra_host_args="$extra_host_args --with-gnu-as"
9535 fi
9536
9537 if test x${use_gnu_ld} = x &&
9538 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9539 with_gnu_ld=yes
9540 extra_host_args="$extra_host_args --with-gnu-ld"
9541 fi
9542
9543 if test x${use_included_zlib} = x &&
9544 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9545 :
9546 else
9547 with_system_zlib=yes
9548 extra_host_args="$extra_host_args --with-system-zlib"
9549 fi
9550
9551 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9552 # can detect this case.
9553
9554 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9555 with_newlib=yes
9556 extra_host_args="$extra_host_args --with-newlib"
9557 fi
9558
9559 # Handle ${copy_dirs}
9560 set fnord ${copy_dirs}
9561 shift
9562 while test $# != 0 ; do
9563 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9564 :
9565 else
9566 echo Copying $1 to $2
9567
9568 # Use the install script to create the directory and all required
9569 # parent directories.
9570 if test -d $2 ; then
9571 :
9572 else
9573 echo >config.temp
9574 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9575 fi
9576
9577 # Copy the directory, assuming we have tar.
9578 # FIXME: Should we use B in the second tar? Not all systems support it.
9579 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9580
9581 # It is the responsibility of the user to correctly adjust all
9582 # symlinks. If somebody can figure out how to handle them correctly
9583 # here, feel free to add the code.
9584
9585 echo $1 > $2/COPIED
9586 fi
9587 shift; shift
9588 done
9589
9590 # Determine a target-dependent exec_prefix that the installed
9591 # gcc will search in. Keep this list sorted by triplet, with
9592 # the *-*-osname triplets last.
9593 md_exec_prefix=
9594 case "${target}" in
9595 i[34567]86-pc-msdosdjgpp*)
9596 md_exec_prefix=/dev/env/DJDIR/bin
9597 ;;
9598 *-*-hpux* | \
9599 *-*-nto-qnx* | \
9600 *-*-solaris2*)
9601 md_exec_prefix=/usr/ccs/bin
9602 ;;
9603 esac
9604
9605 extra_arflags_for_target=
9606 extra_nmflags_for_target=
9607 extra_ranlibflags_for_target=
9608 target_makefile_frag=/dev/null
9609 case "${target}" in
9610 spu-*-*)
9611 target_makefile_frag="config/mt-spu"
9612 ;;
9613 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9614 target_makefile_frag="config/mt-sde"
9615 ;;
9616 mipsisa*-*-elfoabi*)
9617 target_makefile_frag="config/mt-mips-elfoabi"
9618 ;;
9619 mips*-*-*linux* | mips*-*-gnu*)
9620 target_makefile_frag="config/mt-mips-gnu"
9621 ;;
9622 nios2-*-elf*)
9623 target_makefile_frag="config/mt-nios2-elf"
9624 ;;
9625 *-*-linux-android*)
9626 target_makefile_frag="config/mt-android"
9627 ;;
9628 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9629 target_makefile_frag="config/mt-gnu"
9630 ;;
9631 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9632 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9633 # commands to handle both 32-bit and 64-bit objects. These flags are
9634 # harmless if we're using GNU nm or ar.
9635 extra_arflags_for_target=" -X32_64"
9636 extra_nmflags_for_target=" -B -X32_64"
9637 ;;
9638 esac
9639
9640 alphaieee_frag=/dev/null
9641 case $target in
9642 alpha*-*-*)
9643 # This just makes sure to use the -mieee option to build target libs.
9644 # This should probably be set individually by each library.
9645 alphaieee_frag="config/mt-alphaieee"
9646 ;;
9647 esac
9648
9649 # If --enable-target-optspace always use -Os instead of -O2 to build
9650 # the target libraries, similarly if it is not specified, use -Os
9651 # on selected platforms.
9652 ospace_frag=/dev/null
9653 case "${enable_target_optspace}:${target}" in
9654 yes:*)
9655 ospace_frag="config/mt-ospace"
9656 ;;
9657 :d30v-*)
9658 ospace_frag="config/mt-d30v"
9659 ;;
9660 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9661 ospace_frag="config/mt-ospace"
9662 ;;
9663 no:* | :*)
9664 ;;
9665 *)
9666 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9667 ;;
9668 esac
9669
9670 # Some systems (e.g., one of the i386-aix systems the gas testers are
9671 # using) don't handle "\$" correctly, so don't use it here.
9672 tooldir='${exec_prefix}'/${target_noncanonical}
9673 build_tooldir=${tooldir}
9674
9675 # Create a .gdbinit file which runs the one in srcdir
9676 # and tells GDB to look there for source files.
9677
9678 if test -r ${srcdir}/.gdbinit ; then
9679 case ${srcdir} in
9680 .) ;;
9681 *) cat > ./.gdbinit <<EOF
9682 # ${NO_EDIT}
9683 dir ${srcdir}
9684 dir .
9685 source ${srcdir}/.gdbinit
9686 EOF
9687 ;;
9688 esac
9689 fi
9690
9691 # Make sure that the compiler is able to generate an executable. If it
9692 # can't, we are probably in trouble. We don't care whether we can run the
9693 # executable--we might be using a cross compiler--we only care whether it
9694 # can be created. At this point the main configure script has set CC.
9695 we_are_ok=no
9696 echo "int main () { return 0; }" > conftest.c
9697 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9698 if test $? = 0 ; then
9699 if test -s conftest || test -s conftest.exe ; then
9700 we_are_ok=yes
9701 fi
9702 fi
9703 case $we_are_ok in
9704 no)
9705 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9706 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9707 rm -f conftest*
9708 exit 1
9709 ;;
9710 esac
9711 rm -f conftest*
9712
9713 # Decide which environment variable is used to find dynamic libraries.
9714 case "${host}" in
9715 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9716 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9717 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9718 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9719 esac
9720
9721 # On systems where the dynamic library environment variable is PATH,
9722 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9723 # built executables to PATH.
9724 if test "$RPATH_ENVVAR" = PATH; then
9725 GCC_SHLIB_SUBDIR=/shlib
9726 else
9727 GCC_SHLIB_SUBDIR=
9728 fi
9729
9730 # Adjust the toplevel makefile according to whether bootstrap was selected.
9731 case $enable_bootstrap in
9732 yes)
9733 bootstrap_suffix=bootstrap
9734 BUILD_CONFIG=bootstrap-debug
9735 ;;
9736 no)
9737 bootstrap_suffix=no-bootstrap
9738 BUILD_CONFIG=
9739 ;;
9740 esac
9741
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9743 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9744
9745
9746 # Check whether --with-build-config was given.
9747 if test "${with_build_config+set}" = set; then :
9748 withval=$with_build_config; case $with_build_config in
9749 yes) with_build_config= ;;
9750 no) with_build_config= BUILD_CONFIG= ;;
9751 esac
9752 fi
9753
9754
9755 if test "x${with_build_config}" != x; then
9756 BUILD_CONFIG=$with_build_config
9757 else
9758 case $BUILD_CONFIG in
9759 bootstrap-debug)
9760 if echo "int f (void) { return 0; }" > conftest.c &&
9761 ${CC} -c conftest.c &&
9762 mv conftest.o conftest.o.g0 &&
9763 ${CC} -c -g conftest.c &&
9764 mv conftest.o conftest.o.g &&
9765 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9766 :
9767 else
9768 BUILD_CONFIG=
9769 fi
9770 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9771 ;;
9772 esac
9773 fi
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9775 $as_echo "$BUILD_CONFIG" >&6; }
9776
9777
9778 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9780 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9781 # Check whether --enable-vtable-verify was given.
9782 if test "${enable_vtable_verify+set}" = set; then :
9783 enableval=$enable_vtable_verify; case "$enableval" in
9784 yes) enable_vtable_verify=yes ;;
9785 no) enable_vtable_verify=no ;;
9786 *) enable_vtable_verify=no;;
9787 esac
9788 else
9789 enable_vtable_verify=no
9790 fi
9791
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9793 $as_echo "$enable_vtable_verify" >&6; }
9794
9795 # Record target_configdirs and the configure arguments for target and
9796 # build configuration in Makefile.
9797 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9798 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9799 bootstrap_fixincludes=no
9800
9801 # If we are building libgomp, bootstrap it.
9802 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9803 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9804 fi
9805
9806 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9807 # or bootstrap-ubsan, bootstrap it.
9808 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9809 case "$BUILD_CONFIG" in
9810 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9811 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9812 bootstrap_fixincludes=yes
9813 ;;
9814 esac
9815 fi
9816
9817 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9818 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9819 test "$enable_vtable_verify" != no; then
9820 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9821 fi
9822
9823 # If we are building libatomic and the list of enabled languages includes the
9824 # D frontend, bootstrap it.
9825 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9826 case ,${enable_languages}, in
9827 *,d,*)
9828 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9829 ;;
9830 esac
9831 fi
9832
9833 # Determine whether gdb needs tk/tcl or not.
9834 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9835 # and in that case we want gdb to be built without tk. Ugh!
9836 # In fact I believe gdb is the *only* package directly dependent on tk,
9837 # so we should be able to put the 'maybe's in unconditionally and
9838 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9839 # 100% sure that that's safe though.
9840
9841 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9842 case "$enable_gdbtk" in
9843 no)
9844 GDB_TK="" ;;
9845 yes)
9846 GDB_TK="${gdb_tk}" ;;
9847 *)
9848 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9849 # distro. Eventually someone will fix this and move Insight, nee
9850 # gdbtk to a separate directory.
9851 if test -d ${srcdir}/gdb/gdbtk ; then
9852 GDB_TK="${gdb_tk}"
9853 else
9854 GDB_TK=""
9855 fi
9856 ;;
9857 esac
9858 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9859 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9860
9861 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9862 # else does, only include them if one of these is built. The Makefile
9863 # provides the ordering, so it's enough here to add to the list.
9864 case " ${configdirs} " in
9865 *\ gdb\ *)
9866 configdirs="${configdirs} gnulib gdbsupport"
9867 ;;
9868 *\ gdbserver\ *)
9869 configdirs="${configdirs} gnulib gdbsupport"
9870 ;;
9871 *\ sim\ *)
9872 configdirs="${configdirs} gnulib"
9873 ;;
9874 esac
9875
9876 # Strip out unwanted targets.
9877
9878 # While at that, we remove Makefiles if we were started for recursive
9879 # configuration, so that the top-level Makefile reconfigures them,
9880 # like we used to do when configure itself was recursive.
9881
9882 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9883 # but now we're fixing up the Makefile ourselves with the additional
9884 # commands passed to AC_CONFIG_FILES. Use separate variables
9885 # extrasub-{build,host,target} not because there is any reason to split
9886 # the substitutions up that way, but only to remain below the limit of
9887 # 99 commands in a script, for HP-UX sed.
9888
9889 # Do not nest @if/@endif or @unless/@endunless pairs, because
9890 # configure will not warn you at all.
9891
9892 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9893 yes:yes:*\ gold\ *:*,c++,*) ;;
9894 yes:yes:*\ gold\ *:*)
9895 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9896 ;;
9897 esac
9898
9899 extrasub_build=
9900 for module in ${build_configdirs} ; do
9901 if test -z "${no_recursion}" \
9902 && test -f ${build_subdir}/${module}/Makefile; then
9903 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9904 rm -f ${build_subdir}/${module}/Makefile
9905 fi
9906 extrasub_build="$extrasub_build
9907 /^@if build-$module\$/d
9908 /^@endif build-$module\$/d
9909 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9910 /^@if build-$module-$bootstrap_suffix\$/d
9911 /^@endif build-$module-$bootstrap_suffix\$/d
9912 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9913 done
9914 extrasub_host=
9915 for module in ${configdirs} ; do
9916 if test -z "${no_recursion}"; then
9917 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9918 if test -f ${file}; then
9919 echo 1>&2 "*** removing ${file} to force reconfigure"
9920 rm -f ${file}
9921 fi
9922 done
9923 fi
9924 case ${module},${bootstrap_fixincludes} in
9925 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9926 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9927 esac
9928 extrasub_host="$extrasub_host
9929 /^@if $module\$/d
9930 /^@endif $module\$/d
9931 /^@unless $module\$/,/^@endunless $module\$/d
9932 /^@if $module-$host_bootstrap_suffix\$/d
9933 /^@endif $module-$host_bootstrap_suffix\$/d
9934 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9935 done
9936 extrasub_target=
9937 for module in ${target_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${target_subdir}/${module}/Makefile; then
9940 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${target_subdir}/${module}/Makefile
9942 fi
9943
9944 # We only bootstrap target libraries listed in bootstrap_target_libs.
9945 case $bootstrap_target_libs in
9946 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9947 *) target_bootstrap_suffix=no-bootstrap ;;
9948 esac
9949
9950 extrasub_target="$extrasub_target
9951 /^@if target-$module\$/d
9952 /^@endif target-$module\$/d
9953 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9954 /^@if target-$module-$target_bootstrap_suffix\$/d
9955 /^@endif target-$module-$target_bootstrap_suffix\$/d
9956 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9957 done
9958
9959 # Do the final fixup along with target modules.
9960 extrasub_target="$extrasub_target
9961 /^@if /,/^@endif /d
9962 /^@unless /d
9963 /^@endunless /d"
9964
9965 if test "$enable_pgo_build" != "no"; then
9966 extrasub_build="$extrasub_build
9967 /^@if pgo-build\$/d
9968 /^@endif pgo-build\$/d"
9969 fi
9970
9971 # Create the serialization dependencies. This uses a temporary file.
9972
9973 # Check whether --enable-serial-configure was given.
9974 if test "${enable_serial_configure+set}" = set; then :
9975 enableval=$enable_serial_configure;
9976 fi
9977
9978
9979 case ${enable_serial_configure} in
9980 yes)
9981 enable_serial_build_configure=yes
9982 enable_serial_host_configure=yes
9983 enable_serial_target_configure=yes
9984 ;;
9985 esac
9986
9987 # These force 'configure's to be done one at a time, to avoid problems
9988 # with contention over a shared config.cache.
9989 rm -f serdep.tmp
9990 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
9991 echo '# serdep.tmp' > serdep.tmp
9992 fi
9993 olditem=
9994 test "x${enable_serial_build_configure}" = xyes &&
9995 for item in ${build_configdirs} ; do
9996 case ${olditem} in
9997 "") ;;
9998 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9999 esac
10000 olditem=${item}
10001 done
10002 olditem=
10003 test "x${enable_serial_host_configure}" = xyes &&
10004 for item in ${configdirs} ; do
10005 case ${olditem} in
10006 "") ;;
10007 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
10008 esac
10009 olditem=${item}
10010 done
10011 olditem=
10012 test "x${enable_serial_target_configure}" = xyes &&
10013 for item in ${target_configdirs} ; do
10014 case ${olditem} in
10015 "") ;;
10016 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
10017 esac
10018 olditem=${item}
10019 done
10020 serialization_dependencies=serdep.tmp
10021
10022
10023 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10024 # target, nonopt, and variable assignments. These are the ones we
10025 # might not want to pass down to subconfigures. The exception being
10026 # --cache-file=/dev/null, which is used to turn off the use of cache
10027 # files altogether, and which should be passed on to subconfigures.
10028 # Also strip program-prefix, program-suffix, and program-transform-name,
10029 # so that we can pass down a consistent program-transform-name.
10030 baseargs=
10031 tbaseargs=
10032 keep_next=no
10033 skip_next=no
10034 eval "set -- $ac_configure_args"
10035 for ac_arg
10036 do
10037 if test X"$skip_next" = X"yes"; then
10038 skip_next=no
10039 continue
10040 fi
10041 if test X"$keep_next" = X"yes"; then
10042 case $ac_arg in
10043 *\'*)
10044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10045 esac
10046 baseargs="$baseargs '$ac_arg'"
10047 tbaseargs="$tbaseargs '$ac_arg'"
10048 keep_next=no
10049 continue
10050 fi
10051
10052 # Handle separated arguments. Based on the logic generated by
10053 # autoconf 2.59.
10054 case $ac_arg in
10055 *=* | --config-cache | -C | -disable-* | --disable-* \
10056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10058 | -with-* | --with-* | -without-* | --without-* | --x)
10059 separate_arg=no
10060 ;;
10061 -*)
10062 separate_arg=yes
10063 ;;
10064 *)
10065 separate_arg=no
10066 ;;
10067 esac
10068
10069 skip_targ=no
10070 case $ac_arg in
10071
10072 --with-* | --without-*)
10073 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10074
10075 case $libopt in
10076 *[-_]include)
10077 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10078 ;;
10079 *[-_]lib)
10080 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10081 ;;
10082 *)
10083 lib=$libopt
10084 ;;
10085 esac
10086
10087
10088 case $lib in
10089 mpc | mpfr | gmp | isl)
10090 # If we're processing --with-$lib, --with-$lib-include or
10091 # --with-$lib-lib, for one of the libs above, and target is
10092 # different from host, don't pass the current argument to any
10093 # target library's configure.
10094 if test x$is_cross_compiler = xyes; then
10095 skip_targ=yes
10096 fi
10097 ;;
10098 esac
10099 ;;
10100 esac
10101
10102 case "$ac_arg" in
10103 --cache-file=/dev/null | \
10104 -cache-file=/dev/null )
10105 # Handled here to avoid the test to skip args below.
10106 baseargs="$baseargs '$ac_arg'"
10107 tbaseargs="$tbaseargs '$ac_arg'"
10108 # Assert: $separate_arg should always be no.
10109 keep_next=$separate_arg
10110 ;;
10111 --no*)
10112 continue
10113 ;;
10114 --c* | \
10115 --sr* | \
10116 --ho* | \
10117 --bu* | \
10118 --t* | \
10119 --program-* | \
10120 -cache_file* | \
10121 -srcdir* | \
10122 -host* | \
10123 -build* | \
10124 -target* | \
10125 -program-prefix* | \
10126 -program-suffix* | \
10127 -program-transform-name* )
10128 skip_next=$separate_arg
10129 continue
10130 ;;
10131 -*)
10132 # An option. Add it.
10133 case $ac_arg in
10134 *\'*)
10135 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10136 esac
10137 baseargs="$baseargs '$ac_arg'"
10138 if test X"$skip_targ" = Xno; then
10139 tbaseargs="$tbaseargs '$ac_arg'"
10140 fi
10141 keep_next=$separate_arg
10142 ;;
10143 *)
10144 # Either a variable assignment, or a nonopt (triplet). Don't
10145 # pass it down; let the Makefile handle this.
10146 continue
10147 ;;
10148 esac
10149 done
10150 # Remove the initial space we just introduced and, as these will be
10151 # expanded by make, quote '$'.
10152 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10153
10154 # Add in --program-transform-name, after --program-prefix and
10155 # --program-suffix have been applied to it. Autoconf has already
10156 # doubled dollar signs and backslashes in program_transform_name; we want
10157 # the backslashes un-doubled, and then the entire thing wrapped in single
10158 # quotes, because this will be expanded first by make and then by the shell.
10159 # Also, because we want to override the logic in subdir configure scripts to
10160 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10161 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10162 ${program_transform_name}
10163 EOF_SED
10164 gcc_transform_name=`cat conftestsed.out`
10165 rm -f conftestsed.out
10166 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10167 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10168 if test "$silent" = yes; then
10169 baseargs="$baseargs --silent"
10170 tbaseargs="$tbaseargs --silent"
10171 fi
10172 baseargs="$baseargs --disable-option-checking"
10173 tbaseargs="$tbaseargs --disable-option-checking"
10174
10175 # Record and document user additions to sub configure arguments.
10176
10177
10178
10179
10180 # For the build-side libraries, we just need to pretend we're native,
10181 # and not use the same cache file. Multilibs are neither needed nor
10182 # desired. We can't even use the same cache file for all build-side
10183 # libraries, as they're compiled differently; some with C, some with
10184 # C++ or with different feature-enabling options.
10185 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10186
10187 # For host modules, accept cache file option, or specification as blank.
10188 case "${cache_file}" in
10189 "") # empty
10190 cache_file_option="" ;;
10191 /* | [A-Za-z]:[\\/]* ) # absolute path
10192 cache_file_option="--cache-file=${cache_file}" ;;
10193 *) # relative path
10194 cache_file_option="--cache-file=../${cache_file}" ;;
10195 esac
10196
10197 # Host dirs don't like to share a cache file either, horribly enough.
10198 # This seems to be due to autoconf 2.5x stupidity.
10199 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10200
10201 target_configargs="$target_configargs ${tbaseargs}"
10202
10203 # Passing a --with-cross-host argument lets the target libraries know
10204 # whether they are being built with a cross-compiler or being built
10205 # native. However, it would be better to use other mechanisms to make the
10206 # sorts of decisions they want to make on this basis. Please consider
10207 # this option to be deprecated. FIXME.
10208 if test x${is_cross_compiler} = xyes ; then
10209 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10210 fi
10211
10212 # Special user-friendly check for native x86_64-linux build, if
10213 # multilib is not explicitly enabled.
10214 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10215 x86_64-*linux*:yes:$build:$build:)
10216 # Make sure we have a development environment that handles 32-bit
10217 dev64=no
10218 echo "int main () { return 0; }" > conftest.c
10219 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10220 if test $? = 0 ; then
10221 if test -s conftest || test -s conftest.exe ; then
10222 dev64=yes
10223 fi
10224 fi
10225 rm -f conftest*
10226 if test x${dev64} != xyes ; then
10227 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
10228 fi
10229 ;;
10230 esac
10231
10232 # Default to --enable-multilib.
10233 if test x${enable_multilib} = x ; then
10234 target_configargs="--enable-multilib ${target_configargs}"
10235 fi
10236
10237 # Pass --with-newlib if appropriate. Note that target_configdirs has
10238 # changed from the earlier setting of with_newlib.
10239 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10240 target_configargs="--with-newlib ${target_configargs}"
10241 fi
10242
10243 # Different target subdirs use different values of certain variables
10244 # (notably CXX). Worse, multilibs use *lots* of different values.
10245 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10246 # it doesn't automatically accept command-line overrides of them.
10247 # This means it's not safe for target subdirs to share a cache file,
10248 # which is disgusting, but there you have it. Hopefully this can be
10249 # fixed in future. It's still worthwhile to use a cache file for each
10250 # directory. I think.
10251
10252 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10253 # We need to pass --target, as newer autoconf's requires consistency
10254 # for target_alias and gcc doesn't manage it consistently.
10255 target_configargs="--cache-file=./config.cache ${target_configargs}"
10256
10257 FLAGS_FOR_TARGET=
10258 case " $target_configdirs " in
10259 *" newlib "*)
10260 case " $target_configargs " in
10261 *" --with-newlib "*)
10262 case "$target" in
10263 *-cygwin*)
10264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10265 ;;
10266 esac
10267
10268 # If we're not building GCC, don't discard standard headers.
10269 if test -d ${srcdir}/gcc; then
10270 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10271
10272 if test "${build}" != "${host}"; then
10273 # On Canadian crosses, CC_FOR_TARGET will have already been set
10274 # by `configure', so we won't have an opportunity to add -Bgcc/
10275 # to it. This is right: we don't want to search that directory
10276 # for binaries, but we want the header files in there, so add
10277 # them explicitly.
10278 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10279
10280 # Someone might think of using the pre-installed headers on
10281 # Canadian crosses, in case the installed compiler is not fully
10282 # compatible with the compiler being built. In this case, it
10283 # would be better to flag an error than risking having
10284 # incompatible object files being constructed. We can't
10285 # guarantee that an error will be flagged, but let's hope the
10286 # compiler will do it, when presented with incompatible header
10287 # files.
10288 fi
10289 fi
10290
10291 case "${target}-${is_cross_compiler}" in
10292 i[3456789]86-*-linux*-no)
10293 # Here host == target, so we don't need to build gcc,
10294 # so we don't want to discard standard headers.
10295 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10296 ;;
10297 *)
10298 # If we're building newlib, use its generic headers last, but search
10299 # for any libc-related directories first (so make it the last -B
10300 # switch).
10301 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10302
10303 # If we're building libgloss, find the startup file, simulator library
10304 # and linker script.
10305 case " $target_configdirs " in
10306 *" libgloss "*)
10307 # Look for startup file, simulator library and maybe linker script.
10308 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10309 # Look for libnosys.a in case the target needs it.
10310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10311 # Most targets have the linker script in the source directory.
10312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10313 ;;
10314 esac
10315 ;;
10316 esac
10317 ;;
10318 esac
10319 ;;
10320 esac
10321
10322 case "$target" in
10323 x86_64-*mingw* | *-w64-mingw*)
10324 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10325 # however, use a symlink named 'mingw' in ${prefix} .
10326 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10327 ;;
10328 *-mingw*)
10329 # MinGW can't be handled as Cygwin above since it does not use newlib.
10330 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'
10331 ;;
10332 esac
10333
10334 # Allow the user to override the flags for
10335 # our build compiler if desired.
10336 if test x"${build}" = x"${host}" ; then
10337 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10338 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10339 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10340 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10341 fi
10342
10343 # On Canadian crosses, we'll be searching the right directories for
10344 # the previously-installed cross compiler, so don't bother to add
10345 # flags for directories within the install tree of the compiler
10346 # being built; programs in there won't even run.
10347 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10348 # Search for pre-installed headers if nothing else fits.
10349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10350 fi
10351
10352 if test "x${use_gnu_ld}" = x &&
10353 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10354 # Arrange for us to find uninstalled linker scripts.
10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10356 fi
10357
10358 # Search for other target-specific linker scripts and such.
10359 case "${target}" in
10360 mep*)
10361 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10362 ;;
10363 # The VxWorks support for shared libraries is getting in
10364 # incrementally. Make sure it doesn't get activated implicitly:
10365 *vxworks*)
10366 if test "${enable_shared-unset}" = unset ; then
10367 enable_shared=no
10368 # So the build of libraries knows ...
10369 target_configargs="${target_configargs} --disable-shared"
10370 # So gcc knows ...
10371 host_configargs="${host_configargs} --disable-shared"
10372 fi
10373 ;;
10374 esac
10375
10376 # Makefile fragments.
10377 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10378 do
10379 eval fragval=\$$frag
10380 if test $fragval != /dev/null; then
10381 eval $frag=${srcdir}/$fragval
10382 fi
10383 done
10384
10385
10386
10387
10388
10389 # Miscellanea: directories, flags, etc.
10390
10391
10392
10393
10394
10395
10396
10397
10398 # Build module lists & subconfigure args.
10399
10400
10401
10402 # Host module lists & subconfigure args.
10403
10404
10405
10406
10407 # Target module lists & subconfigure args.
10408
10409
10410
10411 # Build tools.
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 # Generate default definitions for YACC, M4, LEX and other programs that run
10433 # on the build machine. These are used if the Makefile can't locate these
10434 # programs in objdir.
10435 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10436
10437 for ac_prog in 'bison -y' byacc yacc
10438 do
10439 # Extract the first word of "$ac_prog", so it can be a program name with args.
10440 set dummy $ac_prog; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_YACC+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 if test -n "$YACC"; then
10447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_YACC="$ac_prog"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460 done
10461 done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 YACC=$ac_cv_prog_YACC
10467 if test -n "$YACC"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10469 $as_echo "$YACC" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475
10476 test -n "$YACC" && break
10477 done
10478 test -n "$YACC" || YACC="$MISSING bison -y"
10479
10480 case " $build_configdirs " in
10481 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10482 esac
10483
10484 for ac_prog in bison
10485 do
10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
10487 set dummy $ac_prog; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_prog_BISON+:} false; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test -n "$BISON"; then
10494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_BISON="$ac_prog"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507 done
10508 done
10509 IFS=$as_save_IFS
10510
10511 fi
10512 fi
10513 BISON=$ac_cv_prog_BISON
10514 if test -n "$BISON"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10516 $as_echo "$BISON" >&6; }
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 fi
10521
10522
10523 test -n "$BISON" && break
10524 done
10525 test -n "$BISON" || BISON="$MISSING bison"
10526
10527 case " $build_configdirs " in
10528 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10529 esac
10530
10531 for ac_prog in gm4 gnum4 m4
10532 do
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536 $as_echo_n "checking for $ac_word... " >&6; }
10537 if ${ac_cv_prog_M4+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test -n "$M4"; then
10541 ac_cv_prog_M4="$M4" # Let the user override the test.
10542 else
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_M4="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554 done
10555 done
10556 IFS=$as_save_IFS
10557
10558 fi
10559 fi
10560 M4=$ac_cv_prog_M4
10561 if test -n "$M4"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10563 $as_echo "$M4" >&6; }
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10567 fi
10568
10569
10570 test -n "$M4" && break
10571 done
10572 test -n "$M4" || M4="$MISSING m4"
10573
10574 case " $build_configdirs " in
10575 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10576 esac
10577
10578 for ac_prog in flex lex
10579 do
10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
10581 set dummy $ac_prog; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_prog_LEX+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -n "$LEX"; then
10588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_LEX="$ac_prog"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 LEX=$ac_cv_prog_LEX
10608 if test -n "$LEX"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10610 $as_echo "$LEX" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617 test -n "$LEX" && break
10618 done
10619 test -n "$LEX" || LEX="$MISSING flex"
10620
10621 case " $build_configdirs " in
10622 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10623 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10624 esac
10625
10626 for ac_prog in flex
10627 do
10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
10629 set dummy $ac_prog; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_prog_FLEX+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test -n "$FLEX"; then
10636 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10640 do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_FLEX="$ac_prog"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10648 fi
10649 done
10650 done
10651 IFS=$as_save_IFS
10652
10653 fi
10654 fi
10655 FLEX=$ac_cv_prog_FLEX
10656 if test -n "$FLEX"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10658 $as_echo "$FLEX" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663
10664
10665 test -n "$FLEX" && break
10666 done
10667 test -n "$FLEX" || FLEX="$MISSING flex"
10668
10669 case " $build_configdirs " in
10670 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10671 esac
10672
10673 for ac_prog in makeinfo
10674 do
10675 # Extract the first word of "$ac_prog", so it can be a program name with args.
10676 set dummy $ac_prog; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10678 $as_echo_n "checking for $ac_word... " >&6; }
10679 if ${ac_cv_prog_MAKEINFO+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 if test -n "$MAKEINFO"; then
10683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10684 else
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10687 do
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_MAKEINFO="$ac_prog"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10695 fi
10696 done
10697 done
10698 IFS=$as_save_IFS
10699
10700 fi
10701 fi
10702 MAKEINFO=$ac_cv_prog_MAKEINFO
10703 if test -n "$MAKEINFO"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10705 $as_echo "$MAKEINFO" >&6; }
10706 else
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10709 fi
10710
10711
10712 test -n "$MAKEINFO" && break
10713 done
10714 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10715
10716 case " $build_configdirs " in
10717 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10718 *)
10719
10720 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10721 # higher, else we use the "missing" dummy.
10722 if ${MAKEINFO} --version \
10723 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10724 :
10725 else
10726 MAKEINFO="$MISSING makeinfo"
10727 fi
10728 ;;
10729
10730 esac
10731
10732 # FIXME: expect and dejagnu may become build tools?
10733
10734 for ac_prog in expect
10735 do
10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
10737 set dummy $ac_prog; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 $as_echo_n "checking for $ac_word... " >&6; }
10740 if ${ac_cv_prog_EXPECT+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 if test -n "$EXPECT"; then
10744 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10745 else
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10748 do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10753 ac_cv_prog_EXPECT="$ac_prog"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757 done
10758 done
10759 IFS=$as_save_IFS
10760
10761 fi
10762 fi
10763 EXPECT=$ac_cv_prog_EXPECT
10764 if test -n "$EXPECT"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10766 $as_echo "$EXPECT" >&6; }
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10770 fi
10771
10772
10773 test -n "$EXPECT" && break
10774 done
10775 test -n "$EXPECT" || EXPECT="expect"
10776
10777 case " $configdirs " in
10778 *" expect "*)
10779 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10780 ;;
10781 esac
10782
10783 for ac_prog in runtest
10784 do
10785 # Extract the first word of "$ac_prog", so it can be a program name with args.
10786 set dummy $ac_prog; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788 $as_echo_n "checking for $ac_word... " >&6; }
10789 if ${ac_cv_prog_RUNTEST+:} false; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 if test -n "$RUNTEST"; then
10793 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10794 else
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10797 do
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_RUNTEST="$ac_prog"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10805 fi
10806 done
10807 done
10808 IFS=$as_save_IFS
10809
10810 fi
10811 fi
10812 RUNTEST=$ac_cv_prog_RUNTEST
10813 if test -n "$RUNTEST"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10815 $as_echo "$RUNTEST" >&6; }
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818 $as_echo "no" >&6; }
10819 fi
10820
10821
10822 test -n "$RUNTEST" && break
10823 done
10824 test -n "$RUNTEST" || RUNTEST="runtest"
10825
10826 case " $configdirs " in
10827 *" dejagnu "*)
10828 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10829 ;;
10830 esac
10831
10832
10833 # Host tools.
10834 ncn_tool_prefix=
10835 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10836 ncn_target_tool_prefix=
10837 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10838
10839
10840
10841 if test -n "$AR"; then
10842 ac_cv_prog_AR=$AR
10843 elif test -n "$ac_cv_prog_AR"; then
10844 AR=$ac_cv_prog_AR
10845 fi
10846
10847 if test -n "$ac_cv_prog_AR"; then
10848 for ncn_progname in ar; do
10849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852 $as_echo_n "checking for $ac_word... " >&6; }
10853 if ${ac_cv_prog_AR+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 if test -n "$AR"; then
10857 ac_cv_prog_AR="$AR" # Let the user override the test.
10858 else
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_prog_AR="${ncn_progname}"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874 fi
10875 fi
10876 AR=$ac_cv_prog_AR
10877 if test -n "$AR"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10879 $as_echo "$AR" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10883 fi
10884
10885
10886 done
10887 fi
10888
10889 for ncn_progname in ar; do
10890 if test -n "$ncn_tool_prefix"; then
10891 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if ${ac_cv_prog_AR+:} false; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 if test -n "$AR"; then
10899 ac_cv_prog_AR="$AR" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10911 fi
10912 done
10913 done
10914 IFS=$as_save_IFS
10915
10916 fi
10917 fi
10918 AR=$ac_cv_prog_AR
10919 if test -n "$AR"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10921 $as_echo "$AR" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10925 fi
10926
10927
10928 fi
10929 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_prog_AR+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 if test -n "$AR"; then
10938 ac_cv_prog_AR="$AR" # Let the user override the test.
10939 else
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_AR="${ncn_progname}"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951 done
10952 done
10953 IFS=$as_save_IFS
10954
10955 fi
10956 fi
10957 AR=$ac_cv_prog_AR
10958 if test -n "$AR"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10960 $as_echo "$AR" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10964 fi
10965
10966
10967 fi
10968 test -n "$ac_cv_prog_AR" && break
10969 done
10970
10971 if test -z "$ac_cv_prog_AR" ; then
10972 set dummy ar
10973 if test $build = $host ; then
10974 AR="$2"
10975 else
10976 AR="${ncn_tool_prefix}$2"
10977 fi
10978 fi
10979
10980
10981
10982 if test -n "$AS"; then
10983 ac_cv_prog_AS=$AS
10984 elif test -n "$ac_cv_prog_AS"; then
10985 AS=$ac_cv_prog_AS
10986 fi
10987
10988 if test -n "$ac_cv_prog_AS"; then
10989 for ncn_progname in as; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if ${ac_cv_prog_AS+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$AS"; then
10998 ac_cv_prog_AS="$AS" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11002 do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_AS="${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011 done
11012 done
11013 IFS=$as_save_IFS
11014
11015 fi
11016 fi
11017 AS=$ac_cv_prog_AS
11018 if test -n "$AS"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11020 $as_echo "$AS" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11024 fi
11025
11026
11027 done
11028 fi
11029
11030 for ncn_progname in as; do
11031 if test -n "$ncn_tool_prefix"; then
11032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035 $as_echo_n "checking for $ac_word... " >&6; }
11036 if ${ac_cv_prog_AS+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 if test -n "$AS"; then
11040 ac_cv_prog_AS="$AS" # Let the user override the test.
11041 else
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11044 do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 break 2
11052 fi
11053 done
11054 done
11055 IFS=$as_save_IFS
11056
11057 fi
11058 fi
11059 AS=$ac_cv_prog_AS
11060 if test -n "$AS"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11062 $as_echo "$AS" >&6; }
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11066 fi
11067
11068
11069 fi
11070 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072 set dummy ${ncn_progname}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 $as_echo_n "checking for $ac_word... " >&6; }
11075 if ${ac_cv_prog_AS+:} false; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11078 if test -n "$AS"; then
11079 ac_cv_prog_AS="$AS" # Let the user override the test.
11080 else
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11083 do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_AS="${ncn_progname}"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11091 fi
11092 done
11093 done
11094 IFS=$as_save_IFS
11095
11096 fi
11097 fi
11098 AS=$ac_cv_prog_AS
11099 if test -n "$AS"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11101 $as_echo "$AS" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11105 fi
11106
11107
11108 fi
11109 test -n "$ac_cv_prog_AS" && break
11110 done
11111
11112 if test -z "$ac_cv_prog_AS" ; then
11113 set dummy as
11114 if test $build = $host ; then
11115 AS="$2"
11116 else
11117 AS="${ncn_tool_prefix}$2"
11118 fi
11119 fi
11120
11121
11122
11123 if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL=$DLLTOOL
11125 elif test -n "$ac_cv_prog_DLLTOOL"; then
11126 DLLTOOL=$ac_cv_prog_DLLTOOL
11127 fi
11128
11129 if test -n "$ac_cv_prog_DLLTOOL"; then
11130 for ncn_progname in dlltool; do
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11132 set dummy ${ncn_progname}; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_prog_DLLTOOL+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 if test -n "$DLLTOOL"; then
11139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11140 else
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11143 do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_DLLTOOL="${ncn_progname}"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11151 fi
11152 done
11153 done
11154 IFS=$as_save_IFS
11155
11156 fi
11157 fi
11158 DLLTOOL=$ac_cv_prog_DLLTOOL
11159 if test -n "$DLLTOOL"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11161 $as_echo "$DLLTOOL" >&6; }
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11166
11167
11168 done
11169 fi
11170
11171 for ncn_progname in dlltool; do
11172 if test -n "$ncn_tool_prefix"; then
11173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176 $as_echo_n "checking for $ac_word... " >&6; }
11177 if ${ac_cv_prog_DLLTOOL+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11182 else
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11185 do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194 done
11195 done
11196 IFS=$as_save_IFS
11197
11198 fi
11199 fi
11200 DLLTOOL=$ac_cv_prog_DLLTOOL
11201 if test -n "$DLLTOOL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11203 $as_echo "$DLLTOOL" >&6; }
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11207 fi
11208
11209
11210 fi
11211 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if ${ac_cv_prog_DLLTOOL+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 if test -n "$DLLTOOL"; then
11220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11221 else
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_prog_DLLTOOL="${ncn_progname}"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11232 fi
11233 done
11234 done
11235 IFS=$as_save_IFS
11236
11237 fi
11238 fi
11239 DLLTOOL=$ac_cv_prog_DLLTOOL
11240 if test -n "$DLLTOOL"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11242 $as_echo "$DLLTOOL" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247
11248
11249 fi
11250 test -n "$ac_cv_prog_DLLTOOL" && break
11251 done
11252
11253 if test -z "$ac_cv_prog_DLLTOOL" ; then
11254 set dummy dlltool
11255 if test $build = $host ; then
11256 DLLTOOL="$2"
11257 else
11258 DLLTOOL="${ncn_tool_prefix}$2"
11259 fi
11260 fi
11261
11262
11263
11264 if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11266 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11268 fi
11269
11270 if test -n "$ac_cv_prog_DSYMUTIL"; then
11271 for ncn_progname in dsymutil; do
11272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 if test -n "$DSYMUTIL"; then
11280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11281 else
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293 done
11294 done
11295 IFS=$as_save_IFS
11296
11297 fi
11298 fi
11299 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11300 if test -n "$DSYMUTIL"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11302 $as_echo "$DSYMUTIL" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11306 fi
11307
11308
11309 done
11310 fi
11311
11312 for ncn_progname in dsymutil; do
11313 if test -n "$ncn_tool_prefix"; then
11314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 if test -n "$DSYMUTIL"; then
11322 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11326 do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335 done
11336 done
11337 IFS=$as_save_IFS
11338
11339 fi
11340 fi
11341 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11342 if test -n "$DSYMUTIL"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11344 $as_echo "$DSYMUTIL" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11348 fi
11349
11350
11351 fi
11352 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 if test -n "$DSYMUTIL"; then
11361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11365 do
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11373 fi
11374 done
11375 done
11376 IFS=$as_save_IFS
11377
11378 fi
11379 fi
11380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381 if test -n "$DSYMUTIL"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11383 $as_echo "$DSYMUTIL" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388
11389
11390 fi
11391 test -n "$ac_cv_prog_DSYMUTIL" && break
11392 done
11393
11394 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11395 set dummy dsymutil
11396 if test $build = $host ; then
11397 DSYMUTIL="$2"
11398 else
11399 DSYMUTIL="${ncn_tool_prefix}$2"
11400 fi
11401 fi
11402
11403
11404
11405 if test -n "$LD"; then
11406 ac_cv_prog_LD=$LD
11407 elif test -n "$ac_cv_prog_LD"; then
11408 LD=$ac_cv_prog_LD
11409 fi
11410
11411 if test -n "$ac_cv_prog_LD"; then
11412 for ncn_progname in ld; do
11413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11414 set dummy ${ncn_progname}; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416 $as_echo_n "checking for $ac_word... " >&6; }
11417 if ${ac_cv_prog_LD+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 if test -n "$LD"; then
11421 ac_cv_prog_LD="$LD" # Let the user override the test.
11422 else
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11425 do
11426 IFS=$as_save_IFS
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_LD="${ncn_progname}"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 break 2
11433 fi
11434 done
11435 done
11436 IFS=$as_save_IFS
11437
11438 fi
11439 fi
11440 LD=$ac_cv_prog_LD
11441 if test -n "$LD"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11443 $as_echo "$LD" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11447 fi
11448
11449
11450 done
11451 fi
11452
11453 for ncn_progname in ld; do
11454 if test -n "$ncn_tool_prefix"; then
11455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if ${ac_cv_prog_LD+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 if test -n "$LD"; then
11463 ac_cv_prog_LD="$LD" # Let the user override the test.
11464 else
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11467 do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11475 fi
11476 done
11477 done
11478 IFS=$as_save_IFS
11479
11480 fi
11481 fi
11482 LD=$ac_cv_prog_LD
11483 if test -n "$LD"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11485 $as_echo "$LD" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11489 fi
11490
11491
11492 fi
11493 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_prog_LD+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 if test -n "$LD"; then
11502 ac_cv_prog_LD="$LD" # Let the user override the test.
11503 else
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11506 do
11507 IFS=$as_save_IFS
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_prog_LD="${ncn_progname}"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 break 2
11514 fi
11515 done
11516 done
11517 IFS=$as_save_IFS
11518
11519 fi
11520 fi
11521 LD=$ac_cv_prog_LD
11522 if test -n "$LD"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11524 $as_echo "$LD" >&6; }
11525 else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11528 fi
11529
11530
11531 fi
11532 test -n "$ac_cv_prog_LD" && break
11533 done
11534
11535 if test -z "$ac_cv_prog_LD" ; then
11536 set dummy ld
11537 if test $build = $host ; then
11538 LD="$2"
11539 else
11540 LD="${ncn_tool_prefix}$2"
11541 fi
11542 fi
11543
11544
11545
11546 if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO=$LIPO
11548 elif test -n "$ac_cv_prog_LIPO"; then
11549 LIPO=$ac_cv_prog_LIPO
11550 fi
11551
11552 if test -n "$ac_cv_prog_LIPO"; then
11553 for ncn_progname in lipo; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if ${ac_cv_prog_LIPO+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$LIPO"; then
11562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_LIPO="${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 LIPO=$ac_cv_prog_LIPO
11582 if test -n "$LIPO"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11584 $as_echo "$LIPO" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591 done
11592 fi
11593
11594 for ncn_progname in lipo; do
11595 if test -n "$ncn_tool_prefix"; then
11596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_LIPO+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 if test -n "$LIPO"; then
11604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11605 else
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11608 do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617 done
11618 done
11619 IFS=$as_save_IFS
11620
11621 fi
11622 fi
11623 LIPO=$ac_cv_prog_LIPO
11624 if test -n "$LIPO"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11626 $as_echo "$LIPO" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11630 fi
11631
11632
11633 fi
11634 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_LIPO+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test -n "$LIPO"; then
11643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11647 do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_LIPO="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656 done
11657 done
11658 IFS=$as_save_IFS
11659
11660 fi
11661 fi
11662 LIPO=$ac_cv_prog_LIPO
11663 if test -n "$LIPO"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11665 $as_echo "$LIPO" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 fi
11670
11671
11672 fi
11673 test -n "$ac_cv_prog_LIPO" && break
11674 done
11675
11676 if test -z "$ac_cv_prog_LIPO" ; then
11677 set dummy lipo
11678 if test $build = $host ; then
11679 LIPO="$2"
11680 else
11681 LIPO="${ncn_tool_prefix}$2"
11682 fi
11683 fi
11684
11685
11686
11687 if test -n "$NM"; then
11688 ac_cv_prog_NM=$NM
11689 elif test -n "$ac_cv_prog_NM"; then
11690 NM=$ac_cv_prog_NM
11691 fi
11692
11693 if test -n "$ac_cv_prog_NM"; then
11694 for ncn_progname in nm; do
11695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11696 set dummy ${ncn_progname}; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_prog_NM+:} false; then :
11700 $as_echo_n "(cached) " >&6
11701 else
11702 if test -n "$NM"; then
11703 ac_cv_prog_NM="$NM" # Let the user override the test.
11704 else
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11707 do
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_NM="${ncn_progname}"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11715 fi
11716 done
11717 done
11718 IFS=$as_save_IFS
11719
11720 fi
11721 fi
11722 NM=$ac_cv_prog_NM
11723 if test -n "$NM"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11725 $as_echo "$NM" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729 fi
11730
11731
11732 done
11733 fi
11734
11735 for ncn_progname in nm; do
11736 if test -n "$ncn_tool_prefix"; then
11737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_prog_NM+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 if test -n "$NM"; then
11745 ac_cv_prog_NM="$NM" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758 done
11759 done
11760 IFS=$as_save_IFS
11761
11762 fi
11763 fi
11764 NM=$ac_cv_prog_NM
11765 if test -n "$NM"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11767 $as_echo "$NM" >&6; }
11768 else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770 $as_echo "no" >&6; }
11771 fi
11772
11773
11774 fi
11775 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_prog_NM+:} false; then :
11781 $as_echo_n "(cached) " >&6
11782 else
11783 if test -n "$NM"; then
11784 ac_cv_prog_NM="$NM" # Let the user override the test.
11785 else
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11788 do
11789 IFS=$as_save_IFS
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_NM="${ncn_progname}"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 break 2
11796 fi
11797 done
11798 done
11799 IFS=$as_save_IFS
11800
11801 fi
11802 fi
11803 NM=$ac_cv_prog_NM
11804 if test -n "$NM"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11806 $as_echo "$NM" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 fi
11811
11812
11813 fi
11814 test -n "$ac_cv_prog_NM" && break
11815 done
11816
11817 if test -z "$ac_cv_prog_NM" ; then
11818 set dummy nm
11819 if test $build = $host ; then
11820 NM="$2"
11821 else
11822 NM="${ncn_tool_prefix}$2"
11823 fi
11824 fi
11825
11826
11827
11828 if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB=$RANLIB
11830 elif test -n "$ac_cv_prog_RANLIB"; then
11831 RANLIB=$ac_cv_prog_RANLIB
11832 fi
11833
11834 if test -n "$ac_cv_prog_RANLIB"; then
11835 for ncn_progname in ranlib; do
11836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11837 set dummy ${ncn_progname}; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if ${ac_cv_prog_RANLIB+:} false; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 if test -n "$RANLIB"; then
11844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11845 else
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11848 do
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_RANLIB="${ncn_progname}"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11856 fi
11857 done
11858 done
11859 IFS=$as_save_IFS
11860
11861 fi
11862 fi
11863 RANLIB=$ac_cv_prog_RANLIB
11864 if test -n "$RANLIB"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11866 $as_echo "$RANLIB" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871
11872
11873 done
11874 fi
11875
11876 for ncn_progname in ranlib; do
11877 if test -n "$ncn_tool_prefix"; then
11878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if ${ac_cv_prog_RANLIB+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 if test -n "$RANLIB"; then
11886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11887 else
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11890 do
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 break 2
11898 fi
11899 done
11900 done
11901 IFS=$as_save_IFS
11902
11903 fi
11904 fi
11905 RANLIB=$ac_cv_prog_RANLIB
11906 if test -n "$RANLIB"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11908 $as_echo "$RANLIB" >&6; }
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 fi
11913
11914
11915 fi
11916 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_prog_RANLIB+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 if test -n "$RANLIB"; then
11925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_prog_RANLIB="${ncn_progname}"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11937 fi
11938 done
11939 done
11940 IFS=$as_save_IFS
11941
11942 fi
11943 fi
11944 RANLIB=$ac_cv_prog_RANLIB
11945 if test -n "$RANLIB"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11947 $as_echo "$RANLIB" >&6; }
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952
11953
11954 fi
11955 test -n "$ac_cv_prog_RANLIB" && break
11956 done
11957
11958 if test -z "$ac_cv_prog_RANLIB" ; then
11959 RANLIB="true"
11960 fi
11961
11962
11963
11964 if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP=$STRIP
11966 elif test -n "$ac_cv_prog_STRIP"; then
11967 STRIP=$ac_cv_prog_STRIP
11968 fi
11969
11970 if test -n "$ac_cv_prog_STRIP"; then
11971 for ncn_progname in strip; do
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11973 set dummy ${ncn_progname}; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11975 $as_echo_n "checking for $ac_word... " >&6; }
11976 if ${ac_cv_prog_STRIP+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 if test -n "$STRIP"; then
11980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11981 else
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_prog_STRIP="${ncn_progname}"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11992 fi
11993 done
11994 done
11995 IFS=$as_save_IFS
11996
11997 fi
11998 fi
11999 STRIP=$ac_cv_prog_STRIP
12000 if test -n "$STRIP"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12002 $as_echo "$STRIP" >&6; }
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 fi
12007
12008
12009 done
12010 fi
12011
12012 for ncn_progname in strip; do
12013 if test -n "$ncn_tool_prefix"; then
12014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if ${ac_cv_prog_STRIP+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
12041 STRIP=$ac_cv_prog_STRIP
12042 if test -n "$STRIP"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12044 $as_echo "$STRIP" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 fi
12052 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if ${ac_cv_prog_STRIP+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test -n "$STRIP"; then
12061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12065 do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_STRIP="${ncn_progname}"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074 done
12075 done
12076 IFS=$as_save_IFS
12077
12078 fi
12079 fi
12080 STRIP=$ac_cv_prog_STRIP
12081 if test -n "$STRIP"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12083 $as_echo "$STRIP" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087 fi
12088
12089
12090 fi
12091 test -n "$ac_cv_prog_STRIP" && break
12092 done
12093
12094 if test -z "$ac_cv_prog_STRIP" ; then
12095 STRIP="true"
12096 fi
12097
12098
12099
12100 if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES=$WINDRES
12102 elif test -n "$ac_cv_prog_WINDRES"; then
12103 WINDRES=$ac_cv_prog_WINDRES
12104 fi
12105
12106 if test -n "$ac_cv_prog_WINDRES"; then
12107 for ncn_progname in windres; do
12108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12109 set dummy ${ncn_progname}; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if ${ac_cv_prog_WINDRES+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 if test -n "$WINDRES"; then
12116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12117 else
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12125 ac_cv_prog_WINDRES="${ncn_progname}"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12128 fi
12129 done
12130 done
12131 IFS=$as_save_IFS
12132
12133 fi
12134 fi
12135 WINDRES=$ac_cv_prog_WINDRES
12136 if test -n "$WINDRES"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12138 $as_echo "$WINDRES" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145 done
12146 fi
12147
12148 for ncn_progname in windres; do
12149 if test -n "$ncn_tool_prefix"; then
12150 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153 $as_echo_n "checking for $ac_word... " >&6; }
12154 if ${ac_cv_prog_WINDRES+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -n "$WINDRES"; then
12158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12159 else
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 fi
12176 fi
12177 WINDRES=$ac_cv_prog_WINDRES
12178 if test -n "$WINDRES"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12180 $as_echo "$WINDRES" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187 fi
12188 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190 set dummy ${ncn_progname}; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_prog_WINDRES+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 if test -n "$WINDRES"; then
12197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12198 else
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12201 do
12202 IFS=$as_save_IFS
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_WINDRES="${ncn_progname}"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208 break 2
12209 fi
12210 done
12211 done
12212 IFS=$as_save_IFS
12213
12214 fi
12215 fi
12216 WINDRES=$ac_cv_prog_WINDRES
12217 if test -n "$WINDRES"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12219 $as_echo "$WINDRES" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12223 fi
12224
12225
12226 fi
12227 test -n "$ac_cv_prog_WINDRES" && break
12228 done
12229
12230 if test -z "$ac_cv_prog_WINDRES" ; then
12231 set dummy windres
12232 if test $build = $host ; then
12233 WINDRES="$2"
12234 else
12235 WINDRES="${ncn_tool_prefix}$2"
12236 fi
12237 fi
12238
12239
12240
12241 if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC=$WINDMC
12243 elif test -n "$ac_cv_prog_WINDMC"; then
12244 WINDMC=$ac_cv_prog_WINDMC
12245 fi
12246
12247 if test -n "$ac_cv_prog_WINDMC"; then
12248 for ncn_progname in windmc; do
12249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250 set dummy ${ncn_progname}; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if ${ac_cv_prog_WINDMC+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -n "$WINDMC"; then
12257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12261 do
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_prog_WINDMC="${ncn_progname}"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12269 fi
12270 done
12271 done
12272 IFS=$as_save_IFS
12273
12274 fi
12275 fi
12276 WINDMC=$ac_cv_prog_WINDMC
12277 if test -n "$WINDMC"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12279 $as_echo "$WINDMC" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 fi
12284
12285
12286 done
12287 fi
12288
12289 for ncn_progname in windmc; do
12290 if test -n "$ncn_tool_prefix"; then
12291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12292 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_prog_WINDMC+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 if test -n "$WINDMC"; then
12299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12300 else
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12303 do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12310 break 2
12311 fi
12312 done
12313 done
12314 IFS=$as_save_IFS
12315
12316 fi
12317 fi
12318 WINDMC=$ac_cv_prog_WINDMC
12319 if test -n "$WINDMC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12321 $as_echo "$WINDMC" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328 fi
12329 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_prog_WINDMC+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -n "$WINDMC"; then
12338 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12342 do
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_WINDMC="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12350 fi
12351 done
12352 done
12353 IFS=$as_save_IFS
12354
12355 fi
12356 fi
12357 WINDMC=$ac_cv_prog_WINDMC
12358 if test -n "$WINDMC"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12360 $as_echo "$WINDMC" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12364 fi
12365
12366
12367 fi
12368 test -n "$ac_cv_prog_WINDMC" && break
12369 done
12370
12371 if test -z "$ac_cv_prog_WINDMC" ; then
12372 set dummy windmc
12373 if test $build = $host ; then
12374 WINDMC="$2"
12375 else
12376 WINDMC="${ncn_tool_prefix}$2"
12377 fi
12378 fi
12379
12380
12381
12382 if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY=$OBJCOPY
12384 elif test -n "$ac_cv_prog_OBJCOPY"; then
12385 OBJCOPY=$ac_cv_prog_OBJCOPY
12386 fi
12387
12388 if test -n "$ac_cv_prog_OBJCOPY"; then
12389 for ncn_progname in objcopy; do
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12391 set dummy ${ncn_progname}; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393 $as_echo_n "checking for $ac_word... " >&6; }
12394 if ${ac_cv_prog_OBJCOPY+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 if test -n "$OBJCOPY"; then
12398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12399 else
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12402 do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_prog_OBJCOPY="${ncn_progname}"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12409 break 2
12410 fi
12411 done
12412 done
12413 IFS=$as_save_IFS
12414
12415 fi
12416 fi
12417 OBJCOPY=$ac_cv_prog_OBJCOPY
12418 if test -n "$OBJCOPY"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12420 $as_echo "$OBJCOPY" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 fi
12425
12426
12427 done
12428 fi
12429
12430 for ncn_progname in objcopy; do
12431 if test -n "$ncn_tool_prefix"; then
12432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12433 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_prog_OBJCOPY+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 if test -n "$OBJCOPY"; then
12440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12441 else
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12444 do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12452 fi
12453 done
12454 done
12455 IFS=$as_save_IFS
12456
12457 fi
12458 fi
12459 OBJCOPY=$ac_cv_prog_OBJCOPY
12460 if test -n "$OBJCOPY"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12462 $as_echo "$OBJCOPY" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466 fi
12467
12468
12469 fi
12470 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472 set dummy ${ncn_progname}; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_prog_OBJCOPY+:} false; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 if test -n "$OBJCOPY"; then
12479 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12480 else
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_prog_OBJCOPY="${ncn_progname}"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12491 fi
12492 done
12493 done
12494 IFS=$as_save_IFS
12495
12496 fi
12497 fi
12498 OBJCOPY=$ac_cv_prog_OBJCOPY
12499 if test -n "$OBJCOPY"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12501 $as_echo "$OBJCOPY" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12505 fi
12506
12507
12508 fi
12509 test -n "$ac_cv_prog_OBJCOPY" && break
12510 done
12511
12512 if test -z "$ac_cv_prog_OBJCOPY" ; then
12513 set dummy objcopy
12514 if test $build = $host ; then
12515 OBJCOPY="$2"
12516 else
12517 OBJCOPY="${ncn_tool_prefix}$2"
12518 fi
12519 fi
12520
12521
12522
12523 if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP=$OBJDUMP
12525 elif test -n "$ac_cv_prog_OBJDUMP"; then
12526 OBJDUMP=$ac_cv_prog_OBJDUMP
12527 fi
12528
12529 if test -n "$ac_cv_prog_OBJDUMP"; then
12530 for ncn_progname in objdump; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if ${ac_cv_prog_OBJDUMP+:} false; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test -n "$OBJDUMP"; then
12539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12543 do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_prog_OBJDUMP="${ncn_progname}"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12551 fi
12552 done
12553 done
12554 IFS=$as_save_IFS
12555
12556 fi
12557 fi
12558 OBJDUMP=$ac_cv_prog_OBJDUMP
12559 if test -n "$OBJDUMP"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12561 $as_echo "$OBJDUMP" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565 fi
12566
12567
12568 done
12569 fi
12570
12571 for ncn_progname in objdump; do
12572 if test -n "$ncn_tool_prefix"; then
12573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if ${ac_cv_prog_OBJDUMP+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test -n "$OBJDUMP"; then
12581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12582 else
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12585 do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594 done
12595 done
12596 IFS=$as_save_IFS
12597
12598 fi
12599 fi
12600 OBJDUMP=$ac_cv_prog_OBJDUMP
12601 if test -n "$OBJDUMP"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12603 $as_echo "$OBJDUMP" >&6; }
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12607 fi
12608
12609
12610 fi
12611 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_prog_OBJDUMP+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12621 else
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12624 do
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_OBJDUMP="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12632 fi
12633 done
12634 done
12635 IFS=$as_save_IFS
12636
12637 fi
12638 fi
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640 if test -n "$OBJDUMP"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12642 $as_echo "$OBJDUMP" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12646 fi
12647
12648
12649 fi
12650 test -n "$ac_cv_prog_OBJDUMP" && break
12651 done
12652
12653 if test -z "$ac_cv_prog_OBJDUMP" ; then
12654 set dummy objdump
12655 if test $build = $host ; then
12656 OBJDUMP="$2"
12657 else
12658 OBJDUMP="${ncn_tool_prefix}$2"
12659 fi
12660 fi
12661
12662
12663
12664 if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL=$OTOOL
12666 elif test -n "$ac_cv_prog_OTOOL"; then
12667 OTOOL=$ac_cv_prog_OTOOL
12668 fi
12669
12670 if test -n "$ac_cv_prog_OTOOL"; then
12671 for ncn_progname in otool; do
12672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12673 set dummy ${ncn_progname}; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675 $as_echo_n "checking for $ac_word... " >&6; }
12676 if ${ac_cv_prog_OTOOL+:} false; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 if test -n "$OTOOL"; then
12680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12681 else
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12684 do
12685 IFS=$as_save_IFS
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_prog_OTOOL="${ncn_progname}"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12691 break 2
12692 fi
12693 done
12694 done
12695 IFS=$as_save_IFS
12696
12697 fi
12698 fi
12699 OTOOL=$ac_cv_prog_OTOOL
12700 if test -n "$OTOOL"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12702 $as_echo "$OTOOL" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707
12708
12709 done
12710 fi
12711
12712 for ncn_progname in otool; do
12713 if test -n "$ncn_tool_prefix"; then
12714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_prog_OTOOL+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -n "$OTOOL"; then
12722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12723 else
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12726 do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12734 fi
12735 done
12736 done
12737 IFS=$as_save_IFS
12738
12739 fi
12740 fi
12741 OTOOL=$ac_cv_prog_OTOOL
12742 if test -n "$OTOOL"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12744 $as_echo "$OTOOL" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 fi
12749
12750
12751 fi
12752 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12754 set dummy ${ncn_progname}; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if ${ac_cv_prog_OTOOL+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 if test -n "$OTOOL"; then
12761 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12762 else
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766 IFS=$as_save_IFS
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_OTOOL="${ncn_progname}"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 break 2
12773 fi
12774 done
12775 done
12776 IFS=$as_save_IFS
12777
12778 fi
12779 fi
12780 OTOOL=$ac_cv_prog_OTOOL
12781 if test -n "$OTOOL"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12783 $as_echo "$OTOOL" >&6; }
12784 else
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788
12789
12790 fi
12791 test -n "$ac_cv_prog_OTOOL" && break
12792 done
12793
12794 if test -z "$ac_cv_prog_OTOOL" ; then
12795 set dummy otool
12796 if test $build = $host ; then
12797 OTOOL="$2"
12798 else
12799 OTOOL="${ncn_tool_prefix}$2"
12800 fi
12801 fi
12802
12803
12804
12805 if test -n "$READELF"; then
12806 ac_cv_prog_READELF=$READELF
12807 elif test -n "$ac_cv_prog_READELF"; then
12808 READELF=$ac_cv_prog_READELF
12809 fi
12810
12811 if test -n "$ac_cv_prog_READELF"; then
12812 for ncn_progname in readelf; do
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if ${ac_cv_prog_READELF+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if test -n "$READELF"; then
12821 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12822 else
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12825 do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_prog_READELF="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 break 2
12833 fi
12834 done
12835 done
12836 IFS=$as_save_IFS
12837
12838 fi
12839 fi
12840 READELF=$ac_cv_prog_READELF
12841 if test -n "$READELF"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12843 $as_echo "$READELF" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 fi
12848
12849
12850 done
12851 fi
12852
12853 for ncn_progname in readelf; do
12854 if test -n "$ncn_tool_prefix"; then
12855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if ${ac_cv_prog_READELF+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 if test -n "$READELF"; then
12863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12864 else
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12867 do
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12875 fi
12876 done
12877 done
12878 IFS=$as_save_IFS
12879
12880 fi
12881 fi
12882 READELF=$ac_cv_prog_READELF
12883 if test -n "$READELF"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12885 $as_echo "$READELF" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 fi
12890
12891
12892 fi
12893 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12895 set dummy ${ncn_progname}; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if ${ac_cv_prog_READELF+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 if test -n "$READELF"; then
12902 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12903 else
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12906 do
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_prog_READELF="${ncn_progname}"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12914 fi
12915 done
12916 done
12917 IFS=$as_save_IFS
12918
12919 fi
12920 fi
12921 READELF=$ac_cv_prog_READELF
12922 if test -n "$READELF"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12924 $as_echo "$READELF" >&6; }
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928 fi
12929
12930
12931 fi
12932 test -n "$ac_cv_prog_READELF" && break
12933 done
12934
12935 if test -z "$ac_cv_prog_READELF" ; then
12936 set dummy readelf
12937 if test $build = $host ; then
12938 READELF="$2"
12939 else
12940 READELF="${ncn_tool_prefix}$2"
12941 fi
12942 fi
12943
12944
12945
12946
12947
12948
12949
12950
12951 # Target tools.
12952
12953 # Check whether --with-build-time-tools was given.
12954 if test "${with_build_time_tools+set}" = set; then :
12955 withval=$with_build_time_tools; case x"$withval" in
12956 x/*) ;;
12957 *)
12958 with_build_time_tools=
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12960 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12961 ;;
12962 esac
12963 else
12964 with_build_time_tools=
12965 fi
12966
12967
12968
12969
12970 if test -n "$CC_FOR_TARGET"; then
12971 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12972 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12973 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12974 fi
12975
12976 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12977 for ncn_progname in cc gcc; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 if test -n "$CC_FOR_TARGET"; then
12986 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12990 do
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12998 fi
12999 done
13000 done
13001 IFS=$as_save_IFS
13002
13003 fi
13004 fi
13005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13006 if test -n "$CC_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13008 $as_echo "$CC_FOR_TARGET" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13012 fi
13013
13014
13015 done
13016 fi
13017
13018 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in cc gcc; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13021 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13025 $as_echo "yes" >&6; }
13026 break
13027 else
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029 $as_echo "no" >&6; }
13030 fi
13031 done
13032 fi
13033
13034 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13035 for ncn_progname in cc gcc; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_target_tool_prefix}${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_CC_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$CC_FOR_TARGET"; then
13045 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # 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_CC_FOR_TARGET="${ncn_target_tool_prefix}${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 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13065 if test -n "$CC_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13067 $as_echo "$CC_FOR_TARGET" >&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 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079 $as_echo_n "checking for $ac_word... " >&6; }
13080 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 if test -n "$CC_FOR_TARGET"; then
13084 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13085 else
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 break 2
13096 fi
13097 done
13098 done
13099 IFS=$as_save_IFS
13100
13101 fi
13102 fi
13103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13104 if test -n "$CC_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13106 $as_echo "$CC_FOR_TARGET" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111
13112
13113 fi
13114 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13115 done
13116 fi
13117
13118 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13119 set dummy cc gcc
13120 if test $build = $target ; then
13121 CC_FOR_TARGET="$2"
13122 else
13123 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13124 fi
13125 else
13126 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13127 fi
13128
13129
13130
13131 if test -n "$CXX_FOR_TARGET"; then
13132 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13133 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13134 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13135 fi
13136
13137 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13138 for ncn_progname in c++ g++ cxx gxx; do
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140 set dummy ${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_CXX_FOR_TARGET+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$CXX_FOR_TARGET"; then
13147 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13167 if test -n "$CXX_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13169 $as_echo "$CXX_FOR_TARGET" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173 fi
13174
13175
13176 done
13177 fi
13178
13179 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13180 for ncn_progname in c++ g++ cxx gxx; do
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13182 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13187 break
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 fi
13192 done
13193 fi
13194
13195 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13196 for ncn_progname in c++ g++ cxx gxx; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test -n "$CXX_FOR_TARGET"; then
13206 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13226 if test -n "$CXX_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13228 $as_echo "$CXX_FOR_TARGET" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233
13234
13235 fi
13236 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13238 set dummy ${ncn_progname}; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240 $as_echo_n "checking for $ac_word... " >&6; }
13241 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 if test -n "$CXX_FOR_TARGET"; then
13245 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13246 else
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13249 do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13254 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13257 fi
13258 done
13259 done
13260 IFS=$as_save_IFS
13261
13262 fi
13263 fi
13264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13265 if test -n "$CXX_FOR_TARGET"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13267 $as_echo "$CXX_FOR_TARGET" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13271 fi
13272
13273
13274 fi
13275 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13276 done
13277 fi
13278
13279 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13280 set dummy c++ g++ cxx gxx
13281 if test $build = $target ; then
13282 CXX_FOR_TARGET="$2"
13283 else
13284 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13285 fi
13286 else
13287 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13288 fi
13289
13290
13291
13292 if test -n "$GCC_FOR_TARGET"; then
13293 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13294 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13296 fi
13297
13298 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13299 for ncn_progname in gcc; do
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13301 set dummy ${ncn_progname}; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 if test -n "$GCC_FOR_TARGET"; then
13308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13309 else
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 break 2
13320 fi
13321 done
13322 done
13323 IFS=$as_save_IFS
13324
13325 fi
13326 fi
13327 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13328 if test -n "$GCC_FOR_TARGET"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13330 $as_echo "$GCC_FOR_TARGET" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335
13336
13337 done
13338 fi
13339
13340 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13341 for ncn_progname in gcc; do
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13343 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13344 if test -x $with_build_time_tools/${ncn_progname}; then
13345 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13347 $as_echo "yes" >&6; }
13348 break
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352 fi
13353 done
13354 fi
13355
13356 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13357 for ncn_progname in gcc; do
13358 if test -n "$ncn_target_tool_prefix"; then
13359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13360 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13362 $as_echo_n "checking for $ac_word... " >&6; }
13363 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 if test -n "$GCC_FOR_TARGET"; then
13367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13368 else
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13371 do
13372 IFS=$as_save_IFS
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378 break 2
13379 fi
13380 done
13381 done
13382 IFS=$as_save_IFS
13383
13384 fi
13385 fi
13386 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13387 if test -n "$GCC_FOR_TARGET"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13389 $as_echo "$GCC_FOR_TARGET" >&6; }
13390 else
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13393 fi
13394
13395
13396 fi
13397 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13399 set dummy ${ncn_progname}; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401 $as_echo_n "checking for $ac_word... " >&6; }
13402 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 if test -n "$GCC_FOR_TARGET"; then
13406 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13407 else
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13410 do
13411 IFS=$as_save_IFS
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 break 2
13418 fi
13419 done
13420 done
13421 IFS=$as_save_IFS
13422
13423 fi
13424 fi
13425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13426 if test -n "$GCC_FOR_TARGET"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13428 $as_echo "$GCC_FOR_TARGET" >&6; }
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13432 fi
13433
13434
13435 fi
13436 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13437 done
13438 fi
13439
13440 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13441 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13442 else
13443 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13444 fi
13445
13446
13447
13448 if test -n "$GFORTRAN_FOR_TARGET"; then
13449 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13450 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13451 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13452 fi
13453
13454 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13455 for ncn_progname in gfortran; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13457 set dummy ${ncn_progname}; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459 $as_echo_n "checking for $ac_word... " >&6; }
13460 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 if test -n "$GFORTRAN_FOR_TARGET"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13465 else
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13468 do
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475 break 2
13476 fi
13477 done
13478 done
13479 IFS=$as_save_IFS
13480
13481 fi
13482 fi
13483 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13484 if test -n "$GFORTRAN_FOR_TARGET"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13486 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13487 else
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489 $as_echo "no" >&6; }
13490 fi
13491
13492
13493 done
13494 fi
13495
13496 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13497 for ncn_progname in gfortran; do
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13499 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13504 break
13505 else
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509 done
13510 fi
13511
13512 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13513 for ncn_progname in gfortran; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$GFORTRAN_FOR_TARGET"; then
13523 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13527 do
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13535 fi
13536 done
13537 done
13538 IFS=$as_save_IFS
13539
13540 fi
13541 fi
13542 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13543 if test -n "$GFORTRAN_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13545 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13549 fi
13550
13551
13552 fi
13553 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13555 set dummy ${ncn_progname}; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test -n "$GFORTRAN_FOR_TARGET"; then
13562 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13566 do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575 done
13576 done
13577 IFS=$as_save_IFS
13578
13579 fi
13580 fi
13581 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13582 if test -n "$GFORTRAN_FOR_TARGET"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13584 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588 fi
13589
13590
13591 fi
13592 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13593 done
13594 fi
13595
13596 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13597 set dummy gfortran
13598 if test $build = $target ; then
13599 GFORTRAN_FOR_TARGET="$2"
13600 else
13601 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13602 fi
13603 else
13604 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13605 fi
13606
13607
13608
13609 if test -n "$GOC_FOR_TARGET"; then
13610 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13611 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13612 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13613 fi
13614
13615 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13616 for ncn_progname in gccgo; do
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620 $as_echo_n "checking for $ac_word... " >&6; }
13621 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 if test -n "$GOC_FOR_TARGET"; then
13625 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630 IFS=$as_save_IFS
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 break 2
13637 fi
13638 done
13639 done
13640 IFS=$as_save_IFS
13641
13642 fi
13643 fi
13644 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13645 if test -n "$GOC_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13647 $as_echo "$GOC_FOR_TARGET" >&6; }
13648 else
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654 done
13655 fi
13656
13657 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13658 for ncn_progname in gccgo; do
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13660 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13661 if test -x $with_build_time_tools/${ncn_progname}; then
13662 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664 $as_echo "yes" >&6; }
13665 break
13666 else
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13669 fi
13670 done
13671 fi
13672
13673 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13674 for ncn_progname in gccgo; do
13675 if test -n "$ncn_target_tool_prefix"; then
13676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679 $as_echo_n "checking for $ac_word... " >&6; }
13680 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 if test -n "$GOC_FOR_TARGET"; then
13684 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13685 else
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13688 do
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13693 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13696 fi
13697 done
13698 done
13699 IFS=$as_save_IFS
13700
13701 fi
13702 fi
13703 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13704 if test -n "$GOC_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13706 $as_echo "$GOC_FOR_TARGET" >&6; }
13707 else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13710 fi
13711
13712
13713 fi
13714 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13716 set dummy ${ncn_progname}; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 if test -n "$GOC_FOR_TARGET"; then
13723 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13724 else
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13727 do
13728 IFS=$as_save_IFS
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13734 break 2
13735 fi
13736 done
13737 done
13738 IFS=$as_save_IFS
13739
13740 fi
13741 fi
13742 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13743 if test -n "$GOC_FOR_TARGET"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13745 $as_echo "$GOC_FOR_TARGET" >&6; }
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13749 fi
13750
13751
13752 fi
13753 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13754 done
13755 fi
13756
13757 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13758 set dummy gccgo
13759 if test $build = $target ; then
13760 GOC_FOR_TARGET="$2"
13761 else
13762 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13763 fi
13764 else
13765 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13766 fi
13767
13768
13769
13770 if test -n "$GDC_FOR_TARGET"; then
13771 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13772 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13773 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13774 fi
13775
13776 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13777 for ncn_progname in gdc; do
13778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13779 set dummy ${ncn_progname}; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 if test -n "$GDC_FOR_TARGET"; then
13786 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13787 else
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13790 do
13791 IFS=$as_save_IFS
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13797 break 2
13798 fi
13799 done
13800 done
13801 IFS=$as_save_IFS
13802
13803 fi
13804 fi
13805 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13806 if test -n "$GDC_FOR_TARGET"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13808 $as_echo "$GDC_FOR_TARGET" >&6; }
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13812 fi
13813
13814
13815 done
13816 fi
13817
13818 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13819 for ncn_progname in gdc; do
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13821 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13822 if test -x $with_build_time_tools/${ncn_progname}; then
13823 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826 break
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13830 fi
13831 done
13832 fi
13833
13834 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13835 for ncn_progname in gdc; do
13836 if test -n "$ncn_target_tool_prefix"; then
13837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13838 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840 $as_echo_n "checking for $ac_word... " >&6; }
13841 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 if test -n "$GDC_FOR_TARGET"; then
13845 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13846 else
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13849 do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13854 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13857 fi
13858 done
13859 done
13860 IFS=$as_save_IFS
13861
13862 fi
13863 fi
13864 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13865 if test -n "$GDC_FOR_TARGET"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13867 $as_echo "$GDC_FOR_TARGET" >&6; }
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13871 fi
13872
13873
13874 fi
13875 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13877 set dummy ${ncn_progname}; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 if test -n "$GDC_FOR_TARGET"; then
13884 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13885 else
13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887 for as_dir in $PATH
13888 do
13889 IFS=$as_save_IFS
13890 test -z "$as_dir" && as_dir=.
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13893 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13895 break 2
13896 fi
13897 done
13898 done
13899 IFS=$as_save_IFS
13900
13901 fi
13902 fi
13903 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13904 if test -n "$GDC_FOR_TARGET"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13906 $as_echo "$GDC_FOR_TARGET" >&6; }
13907 else
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13910 fi
13911
13912
13913 fi
13914 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13915 done
13916 fi
13917
13918 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13919 set dummy gdc
13920 if test $build = $target ; then
13921 GDC_FOR_TARGET="$2"
13922 else
13923 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13924 fi
13925 else
13926 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13927 fi
13928
13929
13930
13931 if test -n "$GM2_FOR_TARGET"; then
13932 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13933 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13934 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13935 fi
13936
13937 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13938 for ncn_progname in gm2; do
13939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13940 set dummy ${ncn_progname}; ac_word=$2
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13942 $as_echo_n "checking for $ac_word... " >&6; }
13943 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 if test -n "$GM2_FOR_TARGET"; then
13947 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13948 else
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952 IFS=$as_save_IFS
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13958 break 2
13959 fi
13960 done
13961 done
13962 IFS=$as_save_IFS
13963
13964 fi
13965 fi
13966 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13967 if test -n "$GM2_FOR_TARGET"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13969 $as_echo "$GM2_FOR_TARGET" >&6; }
13970 else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13973 fi
13974
13975
13976 done
13977 fi
13978
13979 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13980 for ncn_progname in gm2; do
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13982 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13983 if test -x $with_build_time_tools/${ncn_progname}; then
13984 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13986 $as_echo "yes" >&6; }
13987 break
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13991 fi
13992 done
13993 fi
13994
13995 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13996 for ncn_progname in gm2; do
13997 if test -n "$ncn_target_tool_prefix"; then
13998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13999 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001 $as_echo_n "checking for $ac_word... " >&6; }
14002 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 if test -n "$GM2_FOR_TARGET"; then
14006 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14007 else
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14010 do
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14018 fi
14019 done
14020 done
14021 IFS=$as_save_IFS
14022
14023 fi
14024 fi
14025 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14026 if test -n "$GM2_FOR_TARGET"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14028 $as_echo "$GM2_FOR_TARGET" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14032 fi
14033
14034
14035 fi
14036 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14038 set dummy ${ncn_progname}; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14040 $as_echo_n "checking for $ac_word... " >&6; }
14041 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 if test -n "$GM2_FOR_TARGET"; then
14045 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14046 else
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14049 do
14050 IFS=$as_save_IFS
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14056 break 2
14057 fi
14058 done
14059 done
14060 IFS=$as_save_IFS
14061
14062 fi
14063 fi
14064 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14065 if test -n "$GM2_FOR_TARGET"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14067 $as_echo "$GM2_FOR_TARGET" >&6; }
14068 else
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14070 $as_echo "no" >&6; }
14071 fi
14072
14073
14074 fi
14075 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14076 done
14077 fi
14078
14079 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14080 set dummy gm2
14081 if test $build = $target ; then
14082 GM2_FOR_TARGET="$2"
14083 else
14084 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14085 fi
14086 else
14087 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14088 fi
14089
14090
14091
14092 cat > conftest.c << \EOF
14093 #ifdef __GNUC__
14094 gcc_yay;
14095 #endif
14096 EOF
14097 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14098 have_gcc_for_target=yes
14099 else
14100 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14101 have_gcc_for_target=no
14102 fi
14103 rm conftest.c
14104
14105
14106
14107
14108 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14109 if test -n "$with_build_time_tools"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14111 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14112 if test -x $with_build_time_tools/ar; then
14113 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14114 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14116 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 fi
14121 elif test $build != $host && test $have_gcc_for_target = yes; then
14122 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14123 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14124 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14125 fi
14126 fi
14127 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14128 # Extract the first word of "ar", so it can be a program name with args.
14129 set dummy ar; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 case $AR_FOR_TARGET in
14136 [\\/]* | ?:[\\/]*)
14137 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14138 ;;
14139 *)
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $gcc_cv_tool_dirs
14142 do
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14150 fi
14151 done
14152 done
14153 IFS=$as_save_IFS
14154
14155 ;;
14156 esac
14157 fi
14158 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14159 if test -n "$AR_FOR_TARGET"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14161 $as_echo "$AR_FOR_TARGET" >&6; }
14162 else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164 $as_echo "no" >&6; }
14165 fi
14166
14167
14168 fi
14169 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14170
14171
14172 if test -n "$AR_FOR_TARGET"; then
14173 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14174 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14175 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14176 fi
14177
14178 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14179 for ncn_progname in ar; do
14180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14181 set dummy ${ncn_progname}; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$AR_FOR_TARGET"; then
14188 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14192 do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201 done
14202 done
14203 IFS=$as_save_IFS
14204
14205 fi
14206 fi
14207 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14208 if test -n "$AR_FOR_TARGET"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14210 $as_echo "$AR_FOR_TARGET" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14214 fi
14215
14216
14217 done
14218 fi
14219
14220 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14221 for ncn_progname in ar; do
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14223 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14224 if test -x $with_build_time_tools/${ncn_progname}; then
14225 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14227 $as_echo "yes" >&6; }
14228 break
14229 else
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14232 fi
14233 done
14234 fi
14235
14236 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14237 for ncn_progname in ar; do
14238 if test -n "$ncn_target_tool_prefix"; then
14239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$AR_FOR_TARGET"; then
14247 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14259 fi
14260 done
14261 done
14262 IFS=$as_save_IFS
14263
14264 fi
14265 fi
14266 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14267 if test -n "$AR_FOR_TARGET"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14269 $as_echo "$AR_FOR_TARGET" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14273 fi
14274
14275
14276 fi
14277 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279 set dummy ${ncn_progname}; ac_word=$2
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14281 $as_echo_n "checking for $ac_word... " >&6; }
14282 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 if test -n "$AR_FOR_TARGET"; then
14286 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14287 else
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14290 do
14291 IFS=$as_save_IFS
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14297 break 2
14298 fi
14299 done
14300 done
14301 IFS=$as_save_IFS
14302
14303 fi
14304 fi
14305 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14306 if test -n "$AR_FOR_TARGET"; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14308 $as_echo "$AR_FOR_TARGET" >&6; }
14309 else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14312 fi
14313
14314
14315 fi
14316 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14317 done
14318 fi
14319
14320 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14321 set dummy ar
14322 if test $build = $target ; then
14323 AR_FOR_TARGET="$2"
14324 else
14325 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14326 fi
14327 else
14328 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14329 fi
14330
14331 else
14332 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14333 fi
14334
14335
14336
14337
14338 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14339 if test -n "$with_build_time_tools"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14341 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14342 if test -x $with_build_time_tools/as; then
14343 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14344 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14346 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351 elif test $build != $host && test $have_gcc_for_target = yes; then
14352 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14353 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14354 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14355 fi
14356 fi
14357 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14358 # Extract the first word of "as", so it can be a program name with args.
14359 set dummy as; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14361 $as_echo_n "checking for $ac_word... " >&6; }
14362 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 case $AS_FOR_TARGET in
14366 [\\/]* | ?:[\\/]*)
14367 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14368 ;;
14369 *)
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371 for as_dir in $gcc_cv_tool_dirs
14372 do
14373 IFS=$as_save_IFS
14374 test -z "$as_dir" && as_dir=.
14375 for ac_exec_ext in '' $ac_executable_extensions; do
14376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14377 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14379 break 2
14380 fi
14381 done
14382 done
14383 IFS=$as_save_IFS
14384
14385 ;;
14386 esac
14387 fi
14388 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14389 if test -n "$AS_FOR_TARGET"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14391 $as_echo "$AS_FOR_TARGET" >&6; }
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14395 fi
14396
14397
14398 fi
14399 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14400
14401
14402 if test -n "$AS_FOR_TARGET"; then
14403 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14404 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14405 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14406 fi
14407
14408 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14409 for ncn_progname in as; do
14410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14411 set dummy ${ncn_progname}; ac_word=$2
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14413 $as_echo_n "checking for $ac_word... " >&6; }
14414 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 if test -n "$AS_FOR_TARGET"; then
14418 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14419 else
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14422 do
14423 IFS=$as_save_IFS
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14429 break 2
14430 fi
14431 done
14432 done
14433 IFS=$as_save_IFS
14434
14435 fi
14436 fi
14437 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14438 if test -n "$AS_FOR_TARGET"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14440 $as_echo "$AS_FOR_TARGET" >&6; }
14441 else
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443 $as_echo "no" >&6; }
14444 fi
14445
14446
14447 done
14448 fi
14449
14450 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14451 for ncn_progname in as; do
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14453 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14454 if test -x $with_build_time_tools/${ncn_progname}; then
14455 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 $as_echo "yes" >&6; }
14458 break
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 $as_echo "no" >&6; }
14462 fi
14463 done
14464 fi
14465
14466 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14467 for ncn_progname in as; do
14468 if test -n "$ncn_target_tool_prefix"; then
14469 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14470 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14474 $as_echo_n "(cached) " >&6
14475 else
14476 if test -n "$AS_FOR_TARGET"; then
14477 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14478 else
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14481 do
14482 IFS=$as_save_IFS
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14488 break 2
14489 fi
14490 done
14491 done
14492 IFS=$as_save_IFS
14493
14494 fi
14495 fi
14496 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14497 if test -n "$AS_FOR_TARGET"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14499 $as_echo "$AS_FOR_TARGET" >&6; }
14500 else
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503 fi
14504
14505
14506 fi
14507 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14509 set dummy ${ncn_progname}; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511 $as_echo_n "checking for $ac_word... " >&6; }
14512 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 if test -n "$AS_FOR_TARGET"; then
14516 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14517 else
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14520 do
14521 IFS=$as_save_IFS
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14525 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14527 break 2
14528 fi
14529 done
14530 done
14531 IFS=$as_save_IFS
14532
14533 fi
14534 fi
14535 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14536 if test -n "$AS_FOR_TARGET"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14538 $as_echo "$AS_FOR_TARGET" >&6; }
14539 else
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14542 fi
14543
14544
14545 fi
14546 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14547 done
14548 fi
14549
14550 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14551 set dummy as
14552 if test $build = $target ; then
14553 AS_FOR_TARGET="$2"
14554 else
14555 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14556 fi
14557 else
14558 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14559 fi
14560
14561 else
14562 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14563 fi
14564
14565
14566
14567
14568 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14569 if test -n "$with_build_time_tools"; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14571 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14572 if test -x $with_build_time_tools/dlltool; then
14573 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14574 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14576 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14580 fi
14581 elif test $build != $host && test $have_gcc_for_target = yes; then
14582 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14583 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14584 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14585 fi
14586 fi
14587 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14588 # Extract the first word of "dlltool", so it can be a program name with args.
14589 set dummy dlltool; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591 $as_echo_n "checking for $ac_word... " >&6; }
14592 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14593 $as_echo_n "(cached) " >&6
14594 else
14595 case $DLLTOOL_FOR_TARGET in
14596 [\\/]* | ?:[\\/]*)
14597 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14598 ;;
14599 *)
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 for as_dir in $gcc_cv_tool_dirs
14602 do
14603 IFS=$as_save_IFS
14604 test -z "$as_dir" && as_dir=.
14605 for ac_exec_ext in '' $ac_executable_extensions; do
14606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14607 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14609 break 2
14610 fi
14611 done
14612 done
14613 IFS=$as_save_IFS
14614
14615 ;;
14616 esac
14617 fi
14618 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14619 if test -n "$DLLTOOL_FOR_TARGET"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14621 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14622 else
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14625 fi
14626
14627
14628 fi
14629 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14630
14631
14632 if test -n "$DLLTOOL_FOR_TARGET"; then
14633 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14634 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14635 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14636 fi
14637
14638 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14639 for ncn_progname in dlltool; do
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_DLLTOOL_FOR_TARGET+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test -n "$DLLTOOL_FOR_TARGET"; then
14648 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_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 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14668 if test -n "$DLLTOOL_FOR_TARGET"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14670 $as_echo "$DLLTOOL_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 done
14678 fi
14679
14680 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14681 for ncn_progname in dlltool; do
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14683 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14684 if test -x $with_build_time_tools/${ncn_progname}; then
14685 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14687 $as_echo "yes" >&6; }
14688 break
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14692 fi
14693 done
14694 fi
14695
14696 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14697 for ncn_progname in dlltool; do
14698 if test -n "$ncn_target_tool_prefix"; then
14699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14702 $as_echo_n "checking for $ac_word... " >&6; }
14703 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14704 $as_echo_n "(cached) " >&6
14705 else
14706 if test -n "$DLLTOOL_FOR_TARGET"; then
14707 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14708 else
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14711 do
14712 IFS=$as_save_IFS
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14718 break 2
14719 fi
14720 done
14721 done
14722 IFS=$as_save_IFS
14723
14724 fi
14725 fi
14726 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14727 if test -n "$DLLTOOL_FOR_TARGET"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14729 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14733 fi
14734
14735
14736 fi
14737 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14739 set dummy ${ncn_progname}; ac_word=$2
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14741 $as_echo_n "checking for $ac_word... " >&6; }
14742 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744 else
14745 if test -n "$DLLTOOL_FOR_TARGET"; then
14746 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14747 else
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14750 do
14751 IFS=$as_save_IFS
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14757 break 2
14758 fi
14759 done
14760 done
14761 IFS=$as_save_IFS
14762
14763 fi
14764 fi
14765 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14766 if test -n "$DLLTOOL_FOR_TARGET"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14768 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14769 else
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771 $as_echo "no" >&6; }
14772 fi
14773
14774
14775 fi
14776 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14777 done
14778 fi
14779
14780 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14781 set dummy dlltool
14782 if test $build = $target ; then
14783 DLLTOOL_FOR_TARGET="$2"
14784 else
14785 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14786 fi
14787 else
14788 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14789 fi
14790
14791 else
14792 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14793 fi
14794
14795
14796
14797
14798 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14799 if test -n "$with_build_time_tools"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14801 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14802 if test -x $with_build_time_tools/dsymutil; then
14803 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14804 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14806 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14807 else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809 $as_echo "no" >&6; }
14810 fi
14811 elif test $build != $host && test $have_gcc_for_target = yes; then
14812 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14813 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14814 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14815 fi
14816 fi
14817 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14818 # Extract the first word of "dsymutil", so it can be a program name with args.
14819 set dummy dsymutil; ac_word=$2
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14821 $as_echo_n "checking for $ac_word... " >&6; }
14822 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 case $DSYMUTIL_FOR_TARGET in
14826 [\\/]* | ?:[\\/]*)
14827 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14828 ;;
14829 *)
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $gcc_cv_tool_dirs
14832 do
14833 IFS=$as_save_IFS
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 break 2
14840 fi
14841 done
14842 done
14843 IFS=$as_save_IFS
14844
14845 ;;
14846 esac
14847 fi
14848 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14849 if test -n "$DSYMUTIL_FOR_TARGET"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14851 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14852 else
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854 $as_echo "no" >&6; }
14855 fi
14856
14857
14858 fi
14859 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14860
14861
14862 if test -n "$DSYMUTIL_FOR_TARGET"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14864 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14865 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14866 fi
14867
14868 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14869 for ncn_progname in dsymutil; do
14870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14871 set dummy ${ncn_progname}; ac_word=$2
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14873 $as_echo_n "checking for $ac_word... " >&6; }
14874 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 if test -n "$DSYMUTIL_FOR_TARGET"; then
14878 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14879 else
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14882 do
14883 IFS=$as_save_IFS
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14889 break 2
14890 fi
14891 done
14892 done
14893 IFS=$as_save_IFS
14894
14895 fi
14896 fi
14897 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14898 if test -n "$DSYMUTIL_FOR_TARGET"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14900 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14901 else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903 $as_echo "no" >&6; }
14904 fi
14905
14906
14907 done
14908 fi
14909
14910 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14911 for ncn_progname in dsymutil; do
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14913 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14914 if test -x $with_build_time_tools/${ncn_progname}; then
14915 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14918 break
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14922 fi
14923 done
14924 fi
14925
14926 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14927 for ncn_progname in dsymutil; do
14928 if test -n "$ncn_target_tool_prefix"; then
14929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14930 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14932 $as_echo_n "checking for $ac_word... " >&6; }
14933 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 if test -n "$DSYMUTIL_FOR_TARGET"; then
14937 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14938 else
14939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940 for as_dir in $PATH
14941 do
14942 IFS=$as_save_IFS
14943 test -z "$as_dir" && as_dir=.
14944 for ac_exec_ext in '' $ac_executable_extensions; do
14945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14946 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14948 break 2
14949 fi
14950 done
14951 done
14952 IFS=$as_save_IFS
14953
14954 fi
14955 fi
14956 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14957 if test -n "$DSYMUTIL_FOR_TARGET"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14959 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14960 else
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14963 fi
14964
14965
14966 fi
14967 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14969 set dummy ${ncn_progname}; ac_word=$2
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14971 $as_echo_n "checking for $ac_word... " >&6; }
14972 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 if test -n "$DSYMUTIL_FOR_TARGET"; then
14976 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14977 else
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14980 do
14981 IFS=$as_save_IFS
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14987 break 2
14988 fi
14989 done
14990 done
14991 IFS=$as_save_IFS
14992
14993 fi
14994 fi
14995 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14996 if test -n "$DSYMUTIL_FOR_TARGET"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14998 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14999 else
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15002 fi
15003
15004
15005 fi
15006 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15007 done
15008 fi
15009
15010 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15011 set dummy dsymutil
15012 if test $build = $target ; then
15013 DSYMUTIL_FOR_TARGET="$2"
15014 else
15015 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15016 fi
15017 else
15018 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15019 fi
15020
15021 else
15022 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15023 fi
15024
15025
15026
15027
15028 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15029 if test -n "$with_build_time_tools"; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15031 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15032 if test -x $with_build_time_tools/ld; then
15033 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15034 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15036 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15037 else
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15040 fi
15041 elif test $build != $host && test $have_gcc_for_target = yes; then
15042 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15043 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15044 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15045 fi
15046 fi
15047 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15048 # Extract the first word of "ld", so it can be a program name with args.
15049 set dummy ld; ac_word=$2
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15051 $as_echo_n "checking for $ac_word... " >&6; }
15052 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 case $LD_FOR_TARGET in
15056 [\\/]* | ?:[\\/]*)
15057 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15058 ;;
15059 *)
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061 for as_dir in $gcc_cv_tool_dirs
15062 do
15063 IFS=$as_save_IFS
15064 test -z "$as_dir" && as_dir=.
15065 for ac_exec_ext in '' $ac_executable_extensions; do
15066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15067 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15069 break 2
15070 fi
15071 done
15072 done
15073 IFS=$as_save_IFS
15074
15075 ;;
15076 esac
15077 fi
15078 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15079 if test -n "$LD_FOR_TARGET"; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15081 $as_echo "$LD_FOR_TARGET" >&6; }
15082 else
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15084 $as_echo "no" >&6; }
15085 fi
15086
15087
15088 fi
15089 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15090
15091
15092 if test -n "$LD_FOR_TARGET"; then
15093 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15094 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15095 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15096 fi
15097
15098 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15099 for ncn_progname in ld; do
15100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15101 set dummy ${ncn_progname}; ac_word=$2
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15103 $as_echo_n "checking for $ac_word... " >&6; }
15104 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107 if test -n "$LD_FOR_TARGET"; then
15108 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15109 else
15110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111 for as_dir in $PATH
15112 do
15113 IFS=$as_save_IFS
15114 test -z "$as_dir" && as_dir=.
15115 for ac_exec_ext in '' $ac_executable_extensions; do
15116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15117 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15119 break 2
15120 fi
15121 done
15122 done
15123 IFS=$as_save_IFS
15124
15125 fi
15126 fi
15127 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15128 if test -n "$LD_FOR_TARGET"; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15130 $as_echo "$LD_FOR_TARGET" >&6; }
15131 else
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 $as_echo "no" >&6; }
15134 fi
15135
15136
15137 done
15138 fi
15139
15140 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15141 for ncn_progname in ld; do
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15143 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15144 if test -x $with_build_time_tools/${ncn_progname}; then
15145 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15147 $as_echo "yes" >&6; }
15148 break
15149 else
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15152 fi
15153 done
15154 fi
15155
15156 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15157 for ncn_progname in ld; do
15158 if test -n "$ncn_target_tool_prefix"; then
15159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15160 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15162 $as_echo_n "checking for $ac_word... " >&6; }
15163 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 if test -n "$LD_FOR_TARGET"; then
15167 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15168 else
15169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 for as_dir in $PATH
15171 do
15172 IFS=$as_save_IFS
15173 test -z "$as_dir" && as_dir=.
15174 for ac_exec_ext in '' $ac_executable_extensions; do
15175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15176 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15178 break 2
15179 fi
15180 done
15181 done
15182 IFS=$as_save_IFS
15183
15184 fi
15185 fi
15186 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15187 if test -n "$LD_FOR_TARGET"; then
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15189 $as_echo "$LD_FOR_TARGET" >&6; }
15190 else
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15192 $as_echo "no" >&6; }
15193 fi
15194
15195
15196 fi
15197 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15199 set dummy ${ncn_progname}; ac_word=$2
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15201 $as_echo_n "checking for $ac_word... " >&6; }
15202 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15203 $as_echo_n "(cached) " >&6
15204 else
15205 if test -n "$LD_FOR_TARGET"; then
15206 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15207 else
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15210 do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 break 2
15218 fi
15219 done
15220 done
15221 IFS=$as_save_IFS
15222
15223 fi
15224 fi
15225 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15226 if test -n "$LD_FOR_TARGET"; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15228 $as_echo "$LD_FOR_TARGET" >&6; }
15229 else
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15232 fi
15233
15234
15235 fi
15236 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15237 done
15238 fi
15239
15240 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15241 set dummy ld
15242 if test $build = $target ; then
15243 LD_FOR_TARGET="$2"
15244 else
15245 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15246 fi
15247 else
15248 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15249 fi
15250
15251 else
15252 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15253 fi
15254
15255
15256
15257
15258 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15259 if test -n "$with_build_time_tools"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15261 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15262 if test -x $with_build_time_tools/lipo; then
15263 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15264 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15266 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15267 else
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269 $as_echo "no" >&6; }
15270 fi
15271 elif test $build != $host && test $have_gcc_for_target = yes; then
15272 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15273 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15274 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15275 fi
15276 fi
15277 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15278 # Extract the first word of "lipo", so it can be a program name with args.
15279 set dummy lipo; ac_word=$2
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15281 $as_echo_n "checking for $ac_word... " >&6; }
15282 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 case $LIPO_FOR_TARGET in
15286 [\\/]* | ?:[\\/]*)
15287 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15288 ;;
15289 *)
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $gcc_cv_tool_dirs
15292 do
15293 IFS=$as_save_IFS
15294 test -z "$as_dir" && as_dir=.
15295 for ac_exec_ext in '' $ac_executable_extensions; do
15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15299 break 2
15300 fi
15301 done
15302 done
15303 IFS=$as_save_IFS
15304
15305 ;;
15306 esac
15307 fi
15308 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15309 if test -n "$LIPO_FOR_TARGET"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15311 $as_echo "$LIPO_FOR_TARGET" >&6; }
15312 else
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314 $as_echo "no" >&6; }
15315 fi
15316
15317
15318 fi
15319 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15320
15321
15322 if test -n "$LIPO_FOR_TARGET"; then
15323 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15324 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15325 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15326 fi
15327
15328 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15329 for ncn_progname in lipo; do
15330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15331 set dummy ${ncn_progname}; ac_word=$2
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15333 $as_echo_n "checking for $ac_word... " >&6; }
15334 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 if test -n "$LIPO_FOR_TARGET"; then
15338 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15339 else
15340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341 for as_dir in $PATH
15342 do
15343 IFS=$as_save_IFS
15344 test -z "$as_dir" && as_dir=.
15345 for ac_exec_ext in '' $ac_executable_extensions; do
15346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15347 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15349 break 2
15350 fi
15351 done
15352 done
15353 IFS=$as_save_IFS
15354
15355 fi
15356 fi
15357 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15358 if test -n "$LIPO_FOR_TARGET"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15360 $as_echo "$LIPO_FOR_TARGET" >&6; }
15361 else
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15364 fi
15365
15366
15367 done
15368 fi
15369
15370 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15371 for ncn_progname in lipo; do
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15373 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15374 if test -x $with_build_time_tools/${ncn_progname}; then
15375 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15377 $as_echo "yes" >&6; }
15378 break
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15382 fi
15383 done
15384 fi
15385
15386 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15387 for ncn_progname in lipo; do
15388 if test -n "$ncn_target_tool_prefix"; then
15389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15390 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15392 $as_echo_n "checking for $ac_word... " >&6; }
15393 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 if test -n "$LIPO_FOR_TARGET"; then
15397 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15398 else
15399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15401 do
15402 IFS=$as_save_IFS
15403 test -z "$as_dir" && as_dir=.
15404 for ac_exec_ext in '' $ac_executable_extensions; do
15405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15408 break 2
15409 fi
15410 done
15411 done
15412 IFS=$as_save_IFS
15413
15414 fi
15415 fi
15416 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15417 if test -n "$LIPO_FOR_TARGET"; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15419 $as_echo "$LIPO_FOR_TARGET" >&6; }
15420 else
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422 $as_echo "no" >&6; }
15423 fi
15424
15425
15426 fi
15427 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15429 set dummy ${ncn_progname}; ac_word=$2
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15431 $as_echo_n "checking for $ac_word... " >&6; }
15432 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 if test -n "$LIPO_FOR_TARGET"; then
15436 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15437 else
15438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439 for as_dir in $PATH
15440 do
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
15443 for ac_exec_ext in '' $ac_executable_extensions; do
15444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15445 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15447 break 2
15448 fi
15449 done
15450 done
15451 IFS=$as_save_IFS
15452
15453 fi
15454 fi
15455 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15456 if test -n "$LIPO_FOR_TARGET"; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15458 $as_echo "$LIPO_FOR_TARGET" >&6; }
15459 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15461 $as_echo "no" >&6; }
15462 fi
15463
15464
15465 fi
15466 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15467 done
15468 fi
15469
15470 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15471 set dummy lipo
15472 if test $build = $target ; then
15473 LIPO_FOR_TARGET="$2"
15474 else
15475 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15476 fi
15477 else
15478 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15479 fi
15480
15481 else
15482 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15483 fi
15484
15485
15486
15487
15488 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15489 if test -n "$with_build_time_tools"; then
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15491 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15492 if test -x $with_build_time_tools/nm; then
15493 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15494 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15496 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499 $as_echo "no" >&6; }
15500 fi
15501 elif test $build != $host && test $have_gcc_for_target = yes; then
15502 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15503 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15504 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15505 fi
15506 fi
15507 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15508 # Extract the first word of "nm", so it can be a program name with args.
15509 set dummy nm; ac_word=$2
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15511 $as_echo_n "checking for $ac_word... " >&6; }
15512 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 case $NM_FOR_TARGET in
15516 [\\/]* | ?:[\\/]*)
15517 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15518 ;;
15519 *)
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $gcc_cv_tool_dirs
15522 do
15523 IFS=$as_save_IFS
15524 test -z "$as_dir" && as_dir=.
15525 for ac_exec_ext in '' $ac_executable_extensions; do
15526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15527 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15529 break 2
15530 fi
15531 done
15532 done
15533 IFS=$as_save_IFS
15534
15535 ;;
15536 esac
15537 fi
15538 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15539 if test -n "$NM_FOR_TARGET"; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15541 $as_echo "$NM_FOR_TARGET" >&6; }
15542 else
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544 $as_echo "no" >&6; }
15545 fi
15546
15547
15548 fi
15549 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15550
15551
15552 if test -n "$NM_FOR_TARGET"; then
15553 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15554 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15555 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15556 fi
15557
15558 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15559 for ncn_progname in nm; do
15560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15561 set dummy ${ncn_progname}; ac_word=$2
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15563 $as_echo_n "checking for $ac_word... " >&6; }
15564 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 if test -n "$NM_FOR_TARGET"; then
15568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15569 else
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in $PATH
15572 do
15573 IFS=$as_save_IFS
15574 test -z "$as_dir" && as_dir=.
15575 for ac_exec_ext in '' $ac_executable_extensions; do
15576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15579 break 2
15580 fi
15581 done
15582 done
15583 IFS=$as_save_IFS
15584
15585 fi
15586 fi
15587 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15588 if test -n "$NM_FOR_TARGET"; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15590 $as_echo "$NM_FOR_TARGET" >&6; }
15591 else
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15594 fi
15595
15596
15597 done
15598 fi
15599
15600 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15601 for ncn_progname in nm; do
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15603 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15604 if test -x $with_build_time_tools/${ncn_progname}; then
15605 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15607 $as_echo "yes" >&6; }
15608 break
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15612 fi
15613 done
15614 fi
15615
15616 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15617 for ncn_progname in nm; do
15618 if test -n "$ncn_target_tool_prefix"; then
15619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15620 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15622 $as_echo_n "checking for $ac_word... " >&6; }
15623 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 if test -n "$NM_FOR_TARGET"; then
15627 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15628 else
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15631 do
15632 IFS=$as_save_IFS
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15638 break 2
15639 fi
15640 done
15641 done
15642 IFS=$as_save_IFS
15643
15644 fi
15645 fi
15646 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15647 if test -n "$NM_FOR_TARGET"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15649 $as_echo "$NM_FOR_TARGET" >&6; }
15650 else
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15652 $as_echo "no" >&6; }
15653 fi
15654
15655
15656 fi
15657 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15659 set dummy ${ncn_progname}; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15661 $as_echo_n "checking for $ac_word... " >&6; }
15662 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 if test -n "$NM_FOR_TARGET"; then
15666 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15667 else
15668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15670 do
15671 IFS=$as_save_IFS
15672 test -z "$as_dir" && as_dir=.
15673 for ac_exec_ext in '' $ac_executable_extensions; do
15674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15675 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15677 break 2
15678 fi
15679 done
15680 done
15681 IFS=$as_save_IFS
15682
15683 fi
15684 fi
15685 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15686 if test -n "$NM_FOR_TARGET"; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15688 $as_echo "$NM_FOR_TARGET" >&6; }
15689 else
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15692 fi
15693
15694
15695 fi
15696 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15697 done
15698 fi
15699
15700 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15701 set dummy nm
15702 if test $build = $target ; then
15703 NM_FOR_TARGET="$2"
15704 else
15705 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15706 fi
15707 else
15708 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15709 fi
15710
15711 else
15712 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15713 fi
15714
15715
15716
15717
15718 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15719 if test -n "$with_build_time_tools"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15721 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15722 if test -x $with_build_time_tools/objcopy; then
15723 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15724 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15726 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15727 else
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15730 fi
15731 elif test $build != $host && test $have_gcc_for_target = yes; then
15732 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15733 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15734 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15735 fi
15736 fi
15737 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15738 # Extract the first word of "objcopy", so it can be a program name with args.
15739 set dummy objcopy; ac_word=$2
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15741 $as_echo_n "checking for $ac_word... " >&6; }
15742 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 case $OBJCOPY_FOR_TARGET in
15746 [\\/]* | ?:[\\/]*)
15747 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15748 ;;
15749 *)
15750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751 for as_dir in $gcc_cv_tool_dirs
15752 do
15753 IFS=$as_save_IFS
15754 test -z "$as_dir" && as_dir=.
15755 for ac_exec_ext in '' $ac_executable_extensions; do
15756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15757 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15759 break 2
15760 fi
15761 done
15762 done
15763 IFS=$as_save_IFS
15764
15765 ;;
15766 esac
15767 fi
15768 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15769 if test -n "$OBJCOPY_FOR_TARGET"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15771 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15772 else
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774 $as_echo "no" >&6; }
15775 fi
15776
15777
15778 fi
15779 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15780
15781
15782 if test -n "$OBJCOPY_FOR_TARGET"; then
15783 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15784 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15785 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15786 fi
15787
15788 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15789 for ncn_progname in objcopy; do
15790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15791 set dummy ${ncn_progname}; ac_word=$2
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793 $as_echo_n "checking for $ac_word... " >&6; }
15794 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15795 $as_echo_n "(cached) " >&6
15796 else
15797 if test -n "$OBJCOPY_FOR_TARGET"; then
15798 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15799 else
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15802 do
15803 IFS=$as_save_IFS
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15809 break 2
15810 fi
15811 done
15812 done
15813 IFS=$as_save_IFS
15814
15815 fi
15816 fi
15817 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15818 if test -n "$OBJCOPY_FOR_TARGET"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15820 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15821 else
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823 $as_echo "no" >&6; }
15824 fi
15825
15826
15827 done
15828 fi
15829
15830 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15831 for ncn_progname in objcopy; do
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15834 if test -x $with_build_time_tools/${ncn_progname}; then
15835 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15837 $as_echo "yes" >&6; }
15838 break
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15842 fi
15843 done
15844 fi
15845
15846 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15847 for ncn_progname in objcopy; do
15848 if test -n "$ncn_target_tool_prefix"; then
15849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852 $as_echo_n "checking for $ac_word... " >&6; }
15853 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15854 $as_echo_n "(cached) " >&6
15855 else
15856 if test -n "$OBJCOPY_FOR_TARGET"; then
15857 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15858 else
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15861 do
15862 IFS=$as_save_IFS
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15868 break 2
15869 fi
15870 done
15871 done
15872 IFS=$as_save_IFS
15873
15874 fi
15875 fi
15876 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15877 if test -n "$OBJCOPY_FOR_TARGET"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15879 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15883 fi
15884
15885
15886 fi
15887 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15889 set dummy ${ncn_progname}; ac_word=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15891 $as_echo_n "checking for $ac_word... " >&6; }
15892 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 if test -n "$OBJCOPY_FOR_TARGET"; then
15896 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15897 else
15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899 for as_dir in $PATH
15900 do
15901 IFS=$as_save_IFS
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15905 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 break 2
15908 fi
15909 done
15910 done
15911 IFS=$as_save_IFS
15912
15913 fi
15914 fi
15915 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15916 if test -n "$OBJCOPY_FOR_TARGET"; then
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15918 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15919 else
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15921 $as_echo "no" >&6; }
15922 fi
15923
15924
15925 fi
15926 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15927 done
15928 fi
15929
15930 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15931 set dummy objcopy
15932 if test $build = $target ; then
15933 OBJCOPY_FOR_TARGET="$2"
15934 else
15935 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15936 fi
15937 else
15938 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15939 fi
15940
15941 else
15942 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15943 fi
15944
15945
15946
15947
15948 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15949 if test -n "$with_build_time_tools"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15951 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15952 if test -x $with_build_time_tools/objdump; then
15953 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15954 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15956 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15957 else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959 $as_echo "no" >&6; }
15960 fi
15961 elif test $build != $host && test $have_gcc_for_target = yes; then
15962 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15963 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15964 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15965 fi
15966 fi
15967 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15968 # Extract the first word of "objdump", so it can be a program name with args.
15969 set dummy objdump; ac_word=$2
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15971 $as_echo_n "checking for $ac_word... " >&6; }
15972 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 case $OBJDUMP_FOR_TARGET in
15976 [\\/]* | ?:[\\/]*)
15977 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15978 ;;
15979 *)
15980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15981 for as_dir in $gcc_cv_tool_dirs
15982 do
15983 IFS=$as_save_IFS
15984 test -z "$as_dir" && as_dir=.
15985 for ac_exec_ext in '' $ac_executable_extensions; do
15986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15987 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15989 break 2
15990 fi
15991 done
15992 done
15993 IFS=$as_save_IFS
15994
15995 ;;
15996 esac
15997 fi
15998 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15999 if test -n "$OBJDUMP_FOR_TARGET"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16001 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16002 else
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16004 $as_echo "no" >&6; }
16005 fi
16006
16007
16008 fi
16009 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16010
16011
16012 if test -n "$OBJDUMP_FOR_TARGET"; then
16013 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16014 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16015 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16016 fi
16017
16018 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16019 for ncn_progname in objdump; do
16020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16021 set dummy ${ncn_progname}; ac_word=$2
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16023 $as_echo_n "checking for $ac_word... " >&6; }
16024 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16025 $as_echo_n "(cached) " >&6
16026 else
16027 if test -n "$OBJDUMP_FOR_TARGET"; then
16028 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16029 else
16030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031 for as_dir in $PATH
16032 do
16033 IFS=$as_save_IFS
16034 test -z "$as_dir" && as_dir=.
16035 for ac_exec_ext in '' $ac_executable_extensions; do
16036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16037 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16039 break 2
16040 fi
16041 done
16042 done
16043 IFS=$as_save_IFS
16044
16045 fi
16046 fi
16047 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16048 if test -n "$OBJDUMP_FOR_TARGET"; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16050 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16051 else
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053 $as_echo "no" >&6; }
16054 fi
16055
16056
16057 done
16058 fi
16059
16060 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16061 for ncn_progname in objdump; do
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16063 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16064 if test -x $with_build_time_tools/${ncn_progname}; then
16065 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16067 $as_echo "yes" >&6; }
16068 break
16069 else
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16071 $as_echo "no" >&6; }
16072 fi
16073 done
16074 fi
16075
16076 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16077 for ncn_progname in objdump; do
16078 if test -n "$ncn_target_tool_prefix"; then
16079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16082 $as_echo_n "checking for $ac_word... " >&6; }
16083 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 if test -n "$OBJDUMP_FOR_TARGET"; then
16087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16088 else
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16091 do
16092 IFS=$as_save_IFS
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16098 break 2
16099 fi
16100 done
16101 done
16102 IFS=$as_save_IFS
16103
16104 fi
16105 fi
16106 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16107 if test -n "$OBJDUMP_FOR_TARGET"; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16109 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16110 else
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16112 $as_echo "no" >&6; }
16113 fi
16114
16115
16116 fi
16117 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16119 set dummy ${ncn_progname}; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121 $as_echo_n "checking for $ac_word... " >&6; }
16122 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124 else
16125 if test -n "$OBJDUMP_FOR_TARGET"; then
16126 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16127 else
16128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16129 for as_dir in $PATH
16130 do
16131 IFS=$as_save_IFS
16132 test -z "$as_dir" && as_dir=.
16133 for ac_exec_ext in '' $ac_executable_extensions; do
16134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16135 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16137 break 2
16138 fi
16139 done
16140 done
16141 IFS=$as_save_IFS
16142
16143 fi
16144 fi
16145 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16146 if test -n "$OBJDUMP_FOR_TARGET"; then
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16148 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16149 else
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152 fi
16153
16154
16155 fi
16156 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16157 done
16158 fi
16159
16160 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16161 set dummy objdump
16162 if test $build = $target ; then
16163 OBJDUMP_FOR_TARGET="$2"
16164 else
16165 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16166 fi
16167 else
16168 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16169 fi
16170
16171 else
16172 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16173 fi
16174
16175
16176
16177
16178 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16179 if test -n "$with_build_time_tools"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16181 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16182 if test -x $with_build_time_tools/otool; then
16183 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16184 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16186 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191 elif test $build != $host && test $have_gcc_for_target = yes; then
16192 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16193 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16194 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16195 fi
16196 fi
16197 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16198 # Extract the first word of "otool", so it can be a program name with args.
16199 set dummy otool; ac_word=$2
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16201 $as_echo_n "checking for $ac_word... " >&6; }
16202 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16203 $as_echo_n "(cached) " >&6
16204 else
16205 case $OTOOL_FOR_TARGET in
16206 [\\/]* | ?:[\\/]*)
16207 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16208 ;;
16209 *)
16210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16211 for as_dir in $gcc_cv_tool_dirs
16212 do
16213 IFS=$as_save_IFS
16214 test -z "$as_dir" && as_dir=.
16215 for ac_exec_ext in '' $ac_executable_extensions; do
16216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16217 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16219 break 2
16220 fi
16221 done
16222 done
16223 IFS=$as_save_IFS
16224
16225 ;;
16226 esac
16227 fi
16228 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16229 if test -n "$OTOOL_FOR_TARGET"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16231 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16232 else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16235 fi
16236
16237
16238 fi
16239 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16240
16241
16242 if test -n "$OTOOL_FOR_TARGET"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16244 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16245 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16246 fi
16247
16248 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16249 for ncn_progname in otool; do
16250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16251 set dummy ${ncn_progname}; ac_word=$2
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16253 $as_echo_n "checking for $ac_word... " >&6; }
16254 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16255 $as_echo_n "(cached) " >&6
16256 else
16257 if test -n "$OTOOL_FOR_TARGET"; then
16258 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16259 else
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16262 do
16263 IFS=$as_save_IFS
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16269 break 2
16270 fi
16271 done
16272 done
16273 IFS=$as_save_IFS
16274
16275 fi
16276 fi
16277 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16278 if test -n "$OTOOL_FOR_TARGET"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16280 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16281 else
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16283 $as_echo "no" >&6; }
16284 fi
16285
16286
16287 done
16288 fi
16289
16290 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16291 for ncn_progname in otool; do
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16293 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16294 if test -x $with_build_time_tools/${ncn_progname}; then
16295 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297 $as_echo "yes" >&6; }
16298 break
16299 else
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16301 $as_echo "no" >&6; }
16302 fi
16303 done
16304 fi
16305
16306 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16307 for ncn_progname in otool; do
16308 if test -n "$ncn_target_tool_prefix"; then
16309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16312 $as_echo_n "checking for $ac_word... " >&6; }
16313 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315 else
16316 if test -n "$OTOOL_FOR_TARGET"; then
16317 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16318 else
16319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16320 for as_dir in $PATH
16321 do
16322 IFS=$as_save_IFS
16323 test -z "$as_dir" && as_dir=.
16324 for ac_exec_ext in '' $ac_executable_extensions; do
16325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16326 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16328 break 2
16329 fi
16330 done
16331 done
16332 IFS=$as_save_IFS
16333
16334 fi
16335 fi
16336 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16337 if test -n "$OTOOL_FOR_TARGET"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16339 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16340 else
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342 $as_echo "no" >&6; }
16343 fi
16344
16345
16346 fi
16347 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16349 set dummy ${ncn_progname}; ac_word=$2
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16351 $as_echo_n "checking for $ac_word... " >&6; }
16352 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16353 $as_echo_n "(cached) " >&6
16354 else
16355 if test -n "$OTOOL_FOR_TARGET"; then
16356 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16357 else
16358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16359 for as_dir in $PATH
16360 do
16361 IFS=$as_save_IFS
16362 test -z "$as_dir" && as_dir=.
16363 for ac_exec_ext in '' $ac_executable_extensions; do
16364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16365 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16367 break 2
16368 fi
16369 done
16370 done
16371 IFS=$as_save_IFS
16372
16373 fi
16374 fi
16375 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16376 if test -n "$OTOOL_FOR_TARGET"; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16378 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16379 else
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16381 $as_echo "no" >&6; }
16382 fi
16383
16384
16385 fi
16386 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16387 done
16388 fi
16389
16390 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16391 set dummy otool
16392 if test $build = $target ; then
16393 OTOOL_FOR_TARGET="$2"
16394 else
16395 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16396 fi
16397 else
16398 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16399 fi
16400
16401 else
16402 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16403 fi
16404
16405
16406
16407
16408 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16409 if test -n "$with_build_time_tools"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16411 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16412 if test -x $with_build_time_tools/ranlib; then
16413 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16414 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16416 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16420 fi
16421 elif test $build != $host && test $have_gcc_for_target = yes; then
16422 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16423 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16424 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16425 fi
16426 fi
16427 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16428 # Extract the first word of "ranlib", so it can be a program name with args.
16429 set dummy ranlib; ac_word=$2
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16431 $as_echo_n "checking for $ac_word... " >&6; }
16432 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 case $RANLIB_FOR_TARGET in
16436 [\\/]* | ?:[\\/]*)
16437 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16438 ;;
16439 *)
16440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $gcc_cv_tool_dirs
16442 do
16443 IFS=$as_save_IFS
16444 test -z "$as_dir" && as_dir=.
16445 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16447 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16449 break 2
16450 fi
16451 done
16452 done
16453 IFS=$as_save_IFS
16454
16455 ;;
16456 esac
16457 fi
16458 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16459 if test -n "$RANLIB_FOR_TARGET"; then
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16461 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16462 else
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 $as_echo "no" >&6; }
16465 fi
16466
16467
16468 fi
16469 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16470
16471
16472 if test -n "$RANLIB_FOR_TARGET"; then
16473 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16474 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16475 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16476 fi
16477
16478 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16479 for ncn_progname in ranlib; do
16480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16481 set dummy ${ncn_progname}; ac_word=$2
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16483 $as_echo_n "checking for $ac_word... " >&6; }
16484 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16485 $as_echo_n "(cached) " >&6
16486 else
16487 if test -n "$RANLIB_FOR_TARGET"; then
16488 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16489 else
16490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16491 for as_dir in $PATH
16492 do
16493 IFS=$as_save_IFS
16494 test -z "$as_dir" && as_dir=.
16495 for ac_exec_ext in '' $ac_executable_extensions; do
16496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16497 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16499 break 2
16500 fi
16501 done
16502 done
16503 IFS=$as_save_IFS
16504
16505 fi
16506 fi
16507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16508 if test -n "$RANLIB_FOR_TARGET"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16510 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16511 else
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16514 fi
16515
16516
16517 done
16518 fi
16519
16520 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16521 for ncn_progname in ranlib; do
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16524 if test -x $with_build_time_tools/${ncn_progname}; then
16525 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16527 $as_echo "yes" >&6; }
16528 break
16529 else
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16531 $as_echo "no" >&6; }
16532 fi
16533 done
16534 fi
16535
16536 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16537 for ncn_progname in ranlib; do
16538 if test -n "$ncn_target_tool_prefix"; then
16539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16544 $as_echo_n "(cached) " >&6
16545 else
16546 if test -n "$RANLIB_FOR_TARGET"; then
16547 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16548 else
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16551 do
16552 IFS=$as_save_IFS
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 break 2
16559 fi
16560 done
16561 done
16562 IFS=$as_save_IFS
16563
16564 fi
16565 fi
16566 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16567 if test -n "$RANLIB_FOR_TARGET"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16569 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16570 else
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16573 fi
16574
16575
16576 fi
16577 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16579 set dummy ${ncn_progname}; ac_word=$2
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16581 $as_echo_n "checking for $ac_word... " >&6; }
16582 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 if test -n "$RANLIB_FOR_TARGET"; then
16586 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16587 else
16588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589 for as_dir in $PATH
16590 do
16591 IFS=$as_save_IFS
16592 test -z "$as_dir" && as_dir=.
16593 for ac_exec_ext in '' $ac_executable_extensions; do
16594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16595 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16597 break 2
16598 fi
16599 done
16600 done
16601 IFS=$as_save_IFS
16602
16603 fi
16604 fi
16605 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16606 if test -n "$RANLIB_FOR_TARGET"; then
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16608 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16609 else
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16612 fi
16613
16614
16615 fi
16616 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16617 done
16618 fi
16619
16620 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16621 set dummy ranlib
16622 if test $build = $target ; then
16623 RANLIB_FOR_TARGET="$2"
16624 else
16625 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16626 fi
16627 else
16628 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16629 fi
16630
16631 else
16632 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16633 fi
16634
16635
16636
16637
16638 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16639 if test -n "$with_build_time_tools"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16641 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16642 if test -x $with_build_time_tools/readelf; then
16643 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16644 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16646 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16647 else
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649 $as_echo "no" >&6; }
16650 fi
16651 elif test $build != $host && test $have_gcc_for_target = yes; then
16652 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16653 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16654 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16655 fi
16656 fi
16657 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16658 # Extract the first word of "readelf", so it can be a program name with args.
16659 set dummy readelf; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16661 $as_echo_n "checking for $ac_word... " >&6; }
16662 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 case $READELF_FOR_TARGET in
16666 [\\/]* | ?:[\\/]*)
16667 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16668 ;;
16669 *)
16670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $gcc_cv_tool_dirs
16672 do
16673 IFS=$as_save_IFS
16674 test -z "$as_dir" && as_dir=.
16675 for ac_exec_ext in '' $ac_executable_extensions; do
16676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16677 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16679 break 2
16680 fi
16681 done
16682 done
16683 IFS=$as_save_IFS
16684
16685 ;;
16686 esac
16687 fi
16688 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16689 if test -n "$READELF_FOR_TARGET"; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16691 $as_echo "$READELF_FOR_TARGET" >&6; }
16692 else
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695 fi
16696
16697
16698 fi
16699 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16700
16701
16702 if test -n "$READELF_FOR_TARGET"; then
16703 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16704 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16705 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16706 fi
16707
16708 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16709 for ncn_progname in readelf; do
16710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16711 set dummy ${ncn_progname}; ac_word=$2
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16713 $as_echo_n "checking for $ac_word... " >&6; }
16714 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16715 $as_echo_n "(cached) " >&6
16716 else
16717 if test -n "$READELF_FOR_TARGET"; then
16718 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16719 else
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16722 do
16723 IFS=$as_save_IFS
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16729 break 2
16730 fi
16731 done
16732 done
16733 IFS=$as_save_IFS
16734
16735 fi
16736 fi
16737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16738 if test -n "$READELF_FOR_TARGET"; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16740 $as_echo "$READELF_FOR_TARGET" >&6; }
16741 else
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16743 $as_echo "no" >&6; }
16744 fi
16745
16746
16747 done
16748 fi
16749
16750 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16751 for ncn_progname in readelf; do
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16753 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16754 if test -x $with_build_time_tools/${ncn_progname}; then
16755 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 $as_echo "yes" >&6; }
16758 break
16759 else
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16762 fi
16763 done
16764 fi
16765
16766 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16767 for ncn_progname in readelf; do
16768 if test -n "$ncn_target_tool_prefix"; then
16769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16772 $as_echo_n "checking for $ac_word... " >&6; }
16773 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 if test -n "$READELF_FOR_TARGET"; then
16777 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16778 else
16779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780 for as_dir in $PATH
16781 do
16782 IFS=$as_save_IFS
16783 test -z "$as_dir" && as_dir=.
16784 for ac_exec_ext in '' $ac_executable_extensions; do
16785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16786 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16788 break 2
16789 fi
16790 done
16791 done
16792 IFS=$as_save_IFS
16793
16794 fi
16795 fi
16796 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16797 if test -n "$READELF_FOR_TARGET"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16799 $as_echo "$READELF_FOR_TARGET" >&6; }
16800 else
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802 $as_echo "no" >&6; }
16803 fi
16804
16805
16806 fi
16807 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16809 set dummy ${ncn_progname}; ac_word=$2
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16811 $as_echo_n "checking for $ac_word... " >&6; }
16812 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 if test -n "$READELF_FOR_TARGET"; then
16816 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16817 else
16818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821 IFS=$as_save_IFS
16822 test -z "$as_dir" && as_dir=.
16823 for ac_exec_ext in '' $ac_executable_extensions; do
16824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16825 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16827 break 2
16828 fi
16829 done
16830 done
16831 IFS=$as_save_IFS
16832
16833 fi
16834 fi
16835 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16836 if test -n "$READELF_FOR_TARGET"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16838 $as_echo "$READELF_FOR_TARGET" >&6; }
16839 else
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16842 fi
16843
16844
16845 fi
16846 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16847 done
16848 fi
16849
16850 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16851 set dummy readelf
16852 if test $build = $target ; then
16853 READELF_FOR_TARGET="$2"
16854 else
16855 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16856 fi
16857 else
16858 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16859 fi
16860
16861 else
16862 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16863 fi
16864
16865
16866
16867
16868 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16869 if test -n "$with_build_time_tools"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16871 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16872 if test -x $with_build_time_tools/strip; then
16873 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16874 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16876 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16877 else
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16879 $as_echo "no" >&6; }
16880 fi
16881 elif test $build != $host && test $have_gcc_for_target = yes; then
16882 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16883 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16884 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16885 fi
16886 fi
16887 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16888 # Extract the first word of "strip", so it can be a program name with args.
16889 set dummy strip; ac_word=$2
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16891 $as_echo_n "checking for $ac_word... " >&6; }
16892 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16893 $as_echo_n "(cached) " >&6
16894 else
16895 case $STRIP_FOR_TARGET in
16896 [\\/]* | ?:[\\/]*)
16897 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16898 ;;
16899 *)
16900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901 for as_dir in $gcc_cv_tool_dirs
16902 do
16903 IFS=$as_save_IFS
16904 test -z "$as_dir" && as_dir=.
16905 for ac_exec_ext in '' $ac_executable_extensions; do
16906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16907 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16909 break 2
16910 fi
16911 done
16912 done
16913 IFS=$as_save_IFS
16914
16915 ;;
16916 esac
16917 fi
16918 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16919 if test -n "$STRIP_FOR_TARGET"; then
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16921 $as_echo "$STRIP_FOR_TARGET" >&6; }
16922 else
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 $as_echo "no" >&6; }
16925 fi
16926
16927
16928 fi
16929 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16930
16931
16932 if test -n "$STRIP_FOR_TARGET"; then
16933 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16934 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16935 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16936 fi
16937
16938 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16939 for ncn_progname in strip; do
16940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16941 set dummy ${ncn_progname}; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16945 $as_echo_n "(cached) " >&6
16946 else
16947 if test -n "$STRIP_FOR_TARGET"; then
16948 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16949 else
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16952 do
16953 IFS=$as_save_IFS
16954 test -z "$as_dir" && as_dir=.
16955 for ac_exec_ext in '' $ac_executable_extensions; do
16956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16959 break 2
16960 fi
16961 done
16962 done
16963 IFS=$as_save_IFS
16964
16965 fi
16966 fi
16967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16968 if test -n "$STRIP_FOR_TARGET"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16970 $as_echo "$STRIP_FOR_TARGET" >&6; }
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16974 fi
16975
16976
16977 done
16978 fi
16979
16980 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16981 for ncn_progname in strip; do
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16983 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16984 if test -x $with_build_time_tools/${ncn_progname}; then
16985 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16987 $as_echo "yes" >&6; }
16988 break
16989 else
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16992 fi
16993 done
16994 fi
16995
16996 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16997 for ncn_progname in strip; do
16998 if test -n "$ncn_target_tool_prefix"; then
16999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17002 $as_echo_n "checking for $ac_word... " >&6; }
17003 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17004 $as_echo_n "(cached) " >&6
17005 else
17006 if test -n "$STRIP_FOR_TARGET"; then
17007 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17008 else
17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17011 do
17012 IFS=$as_save_IFS
17013 test -z "$as_dir" && as_dir=.
17014 for ac_exec_ext in '' $ac_executable_extensions; do
17015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17016 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17018 break 2
17019 fi
17020 done
17021 done
17022 IFS=$as_save_IFS
17023
17024 fi
17025 fi
17026 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17027 if test -n "$STRIP_FOR_TARGET"; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17029 $as_echo "$STRIP_FOR_TARGET" >&6; }
17030 else
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033 fi
17034
17035
17036 fi
17037 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17039 set dummy ${ncn_progname}; ac_word=$2
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17041 $as_echo_n "checking for $ac_word... " >&6; }
17042 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 if test -n "$STRIP_FOR_TARGET"; then
17046 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17047 else
17048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17049 for as_dir in $PATH
17050 do
17051 IFS=$as_save_IFS
17052 test -z "$as_dir" && as_dir=.
17053 for ac_exec_ext in '' $ac_executable_extensions; do
17054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17055 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17057 break 2
17058 fi
17059 done
17060 done
17061 IFS=$as_save_IFS
17062
17063 fi
17064 fi
17065 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17066 if test -n "$STRIP_FOR_TARGET"; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17068 $as_echo "$STRIP_FOR_TARGET" >&6; }
17069 else
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17072 fi
17073
17074
17075 fi
17076 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17077 done
17078 fi
17079
17080 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17081 set dummy strip
17082 if test $build = $target ; then
17083 STRIP_FOR_TARGET="$2"
17084 else
17085 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17086 fi
17087 else
17088 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17089 fi
17090
17091 else
17092 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17093 fi
17094
17095
17096
17097
17098 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17099 if test -n "$with_build_time_tools"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17101 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17102 if test -x $with_build_time_tools/windres; then
17103 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17104 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17106 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17107 else
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109 $as_echo "no" >&6; }
17110 fi
17111 elif test $build != $host && test $have_gcc_for_target = yes; then
17112 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17113 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17114 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17115 fi
17116 fi
17117 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17118 # Extract the first word of "windres", so it can be a program name with args.
17119 set dummy windres; ac_word=$2
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17121 $as_echo_n "checking for $ac_word... " >&6; }
17122 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 case $WINDRES_FOR_TARGET in
17126 [\\/]* | ?:[\\/]*)
17127 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17128 ;;
17129 *)
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $gcc_cv_tool_dirs
17132 do
17133 IFS=$as_save_IFS
17134 test -z "$as_dir" && as_dir=.
17135 for ac_exec_ext in '' $ac_executable_extensions; do
17136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17137 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17139 break 2
17140 fi
17141 done
17142 done
17143 IFS=$as_save_IFS
17144
17145 ;;
17146 esac
17147 fi
17148 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17149 if test -n "$WINDRES_FOR_TARGET"; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17151 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17152 else
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 $as_echo "no" >&6; }
17155 fi
17156
17157
17158 fi
17159 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17160
17161
17162 if test -n "$WINDRES_FOR_TARGET"; then
17163 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17164 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17165 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17166 fi
17167
17168 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17169 for ncn_progname in windres; do
17170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17171 set dummy ${ncn_progname}; ac_word=$2
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17173 $as_echo_n "checking for $ac_word... " >&6; }
17174 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17175 $as_echo_n "(cached) " >&6
17176 else
17177 if test -n "$WINDRES_FOR_TARGET"; then
17178 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17179 else
17180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $PATH
17182 do
17183 IFS=$as_save_IFS
17184 test -z "$as_dir" && as_dir=.
17185 for ac_exec_ext in '' $ac_executable_extensions; do
17186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17187 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17189 break 2
17190 fi
17191 done
17192 done
17193 IFS=$as_save_IFS
17194
17195 fi
17196 fi
17197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17198 if test -n "$WINDRES_FOR_TARGET"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17200 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17201 else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17204 fi
17205
17206
17207 done
17208 fi
17209
17210 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17211 for ncn_progname in windres; do
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17213 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17214 if test -x $with_build_time_tools/${ncn_progname}; then
17215 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17217 $as_echo "yes" >&6; }
17218 break
17219 else
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17221 $as_echo "no" >&6; }
17222 fi
17223 done
17224 fi
17225
17226 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17227 for ncn_progname in windres; do
17228 if test -n "$ncn_target_tool_prefix"; then
17229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 $as_echo_n "checking for $ac_word... " >&6; }
17233 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 if test -n "$WINDRES_FOR_TARGET"; then
17237 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17238 else
17239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240 for as_dir in $PATH
17241 do
17242 IFS=$as_save_IFS
17243 test -z "$as_dir" && as_dir=.
17244 for ac_exec_ext in '' $ac_executable_extensions; do
17245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17246 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17248 break 2
17249 fi
17250 done
17251 done
17252 IFS=$as_save_IFS
17253
17254 fi
17255 fi
17256 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17257 if test -n "$WINDRES_FOR_TARGET"; then
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17259 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17260 else
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17263 fi
17264
17265
17266 fi
17267 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17269 set dummy ${ncn_progname}; ac_word=$2
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17271 $as_echo_n "checking for $ac_word... " >&6; }
17272 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 if test -n "$WINDRES_FOR_TARGET"; then
17276 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17277 else
17278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17279 for as_dir in $PATH
17280 do
17281 IFS=$as_save_IFS
17282 test -z "$as_dir" && as_dir=.
17283 for ac_exec_ext in '' $ac_executable_extensions; do
17284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17285 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17287 break 2
17288 fi
17289 done
17290 done
17291 IFS=$as_save_IFS
17292
17293 fi
17294 fi
17295 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17296 if test -n "$WINDRES_FOR_TARGET"; then
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17298 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17299 else
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17301 $as_echo "no" >&6; }
17302 fi
17303
17304
17305 fi
17306 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17307 done
17308 fi
17309
17310 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17311 set dummy windres
17312 if test $build = $target ; then
17313 WINDRES_FOR_TARGET="$2"
17314 else
17315 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17316 fi
17317 else
17318 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17319 fi
17320
17321 else
17322 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17323 fi
17324
17325
17326
17327
17328 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17329 if test -n "$with_build_time_tools"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17331 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17332 if test -x $with_build_time_tools/windmc; then
17333 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17334 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17336 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17337 else
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 elif test $build != $host && test $have_gcc_for_target = yes; then
17342 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17343 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17344 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17345 fi
17346 fi
17347 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17348 # Extract the first word of "windmc", so it can be a program name with args.
17349 set dummy windmc; ac_word=$2
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17351 $as_echo_n "checking for $ac_word... " >&6; }
17352 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17355 case $WINDMC_FOR_TARGET in
17356 [\\/]* | ?:[\\/]*)
17357 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17358 ;;
17359 *)
17360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361 for as_dir in $gcc_cv_tool_dirs
17362 do
17363 IFS=$as_save_IFS
17364 test -z "$as_dir" && as_dir=.
17365 for ac_exec_ext in '' $ac_executable_extensions; do
17366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17367 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17369 break 2
17370 fi
17371 done
17372 done
17373 IFS=$as_save_IFS
17374
17375 ;;
17376 esac
17377 fi
17378 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17379 if test -n "$WINDMC_FOR_TARGET"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17381 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17382 else
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386
17387
17388 fi
17389 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17390
17391
17392 if test -n "$WINDMC_FOR_TARGET"; then
17393 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17394 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17395 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17396 fi
17397
17398 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17399 for ncn_progname in windmc; do
17400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17401 set dummy ${ncn_progname}; ac_word=$2
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17403 $as_echo_n "checking for $ac_word... " >&6; }
17404 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17405 $as_echo_n "(cached) " >&6
17406 else
17407 if test -n "$WINDMC_FOR_TARGET"; then
17408 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17409 else
17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411 for as_dir in $PATH
17412 do
17413 IFS=$as_save_IFS
17414 test -z "$as_dir" && as_dir=.
17415 for ac_exec_ext in '' $ac_executable_extensions; do
17416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17417 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17419 break 2
17420 fi
17421 done
17422 done
17423 IFS=$as_save_IFS
17424
17425 fi
17426 fi
17427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17428 if test -n "$WINDMC_FOR_TARGET"; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17430 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17431 else
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433 $as_echo "no" >&6; }
17434 fi
17435
17436
17437 done
17438 fi
17439
17440 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17441 for ncn_progname in windmc; do
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17443 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17444 if test -x $with_build_time_tools/${ncn_progname}; then
17445 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17447 $as_echo "yes" >&6; }
17448 break
17449 else
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17451 $as_echo "no" >&6; }
17452 fi
17453 done
17454 fi
17455
17456 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17457 for ncn_progname in windmc; do
17458 if test -n "$ncn_target_tool_prefix"; then
17459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17462 $as_echo_n "checking for $ac_word... " >&6; }
17463 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17464 $as_echo_n "(cached) " >&6
17465 else
17466 if test -n "$WINDMC_FOR_TARGET"; then
17467 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17468 else
17469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470 for as_dir in $PATH
17471 do
17472 IFS=$as_save_IFS
17473 test -z "$as_dir" && as_dir=.
17474 for ac_exec_ext in '' $ac_executable_extensions; do
17475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17476 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17478 break 2
17479 fi
17480 done
17481 done
17482 IFS=$as_save_IFS
17483
17484 fi
17485 fi
17486 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17487 if test -n "$WINDMC_FOR_TARGET"; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17489 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17490 else
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492 $as_echo "no" >&6; }
17493 fi
17494
17495
17496 fi
17497 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17499 set dummy ${ncn_progname}; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17501 $as_echo_n "checking for $ac_word... " >&6; }
17502 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17505 if test -n "$WINDMC_FOR_TARGET"; then
17506 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17507 else
17508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in $PATH
17510 do
17511 IFS=$as_save_IFS
17512 test -z "$as_dir" && as_dir=.
17513 for ac_exec_ext in '' $ac_executable_extensions; do
17514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17517 break 2
17518 fi
17519 done
17520 done
17521 IFS=$as_save_IFS
17522
17523 fi
17524 fi
17525 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17526 if test -n "$WINDMC_FOR_TARGET"; then
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17528 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17529 else
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 $as_echo "no" >&6; }
17532 fi
17533
17534
17535 fi
17536 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17537 done
17538 fi
17539
17540 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17541 set dummy windmc
17542 if test $build = $target ; then
17543 WINDMC_FOR_TARGET="$2"
17544 else
17545 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17546 fi
17547 else
17548 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17549 fi
17550
17551 else
17552 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17553 fi
17554
17555
17556 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17557
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17559 $as_echo_n "checking where to find the target ar... " >&6; }
17560 if test "x${build}" != "x${host}" ; then
17561 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17562 # We already found the complete path
17563 ac_dir=`dirname $AR_FOR_TARGET`
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17565 $as_echo "pre-installed in $ac_dir" >&6; }
17566 else
17567 # Canadian cross, just use what we found
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569 $as_echo "pre-installed" >&6; }
17570 fi
17571 else
17572 ok=yes
17573 case " ${configdirs} " in
17574 *" binutils "*) ;;
17575 *) ok=no ;;
17576 esac
17577
17578 if test $ok = yes; then
17579 # An in-tree tool is available and we can use it
17580 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17582 $as_echo "just compiled" >&6; }
17583 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17584 # We already found the complete path
17585 ac_dir=`dirname $AR_FOR_TARGET`
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17587 $as_echo "pre-installed in $ac_dir" >&6; }
17588 elif test "x$target" = "x$host"; then
17589 # We can use an host tool
17590 AR_FOR_TARGET='$(AR)'
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17592 $as_echo "host tool" >&6; }
17593 else
17594 # We need a cross tool
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17596 $as_echo "pre-installed" >&6; }
17597 fi
17598 fi
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17601 $as_echo_n "checking where to find the target as... " >&6; }
17602 if test "x${build}" != "x${host}" ; then
17603 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17604 # We already found the complete path
17605 ac_dir=`dirname $AS_FOR_TARGET`
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17607 $as_echo "pre-installed in $ac_dir" >&6; }
17608 else
17609 # Canadian cross, just use what we found
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17611 $as_echo "pre-installed" >&6; }
17612 fi
17613 else
17614 ok=yes
17615 case " ${configdirs} " in
17616 *" gas "*) ;;
17617 *) ok=no ;;
17618 esac
17619
17620 if test $ok = yes; then
17621 # An in-tree tool is available and we can use it
17622 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17624 $as_echo "just compiled" >&6; }
17625 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17626 # We already found the complete path
17627 ac_dir=`dirname $AS_FOR_TARGET`
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17629 $as_echo "pre-installed in $ac_dir" >&6; }
17630 elif test "x$target" = "x$host"; then
17631 # We can use an host tool
17632 AS_FOR_TARGET='$(AS)'
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17634 $as_echo "host tool" >&6; }
17635 else
17636 # We need a cross tool
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17638 $as_echo "pre-installed" >&6; }
17639 fi
17640 fi
17641
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17643 $as_echo_n "checking where to find the target cc... " >&6; }
17644 if test "x${build}" != "x${host}" ; then
17645 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17646 # We already found the complete path
17647 ac_dir=`dirname $CC_FOR_TARGET`
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17649 $as_echo "pre-installed in $ac_dir" >&6; }
17650 else
17651 # Canadian cross, just use what we found
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17653 $as_echo "pre-installed" >&6; }
17654 fi
17655 else
17656 ok=yes
17657 case " ${configdirs} " in
17658 *" gcc "*) ;;
17659 *) ok=no ;;
17660 esac
17661
17662 if test $ok = yes; then
17663 # An in-tree tool is available and we can use it
17664 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17666 $as_echo "just compiled" >&6; }
17667 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17668 # We already found the complete path
17669 ac_dir=`dirname $CC_FOR_TARGET`
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17671 $as_echo "pre-installed in $ac_dir" >&6; }
17672 elif test "x$target" = "x$host"; then
17673 # We can use an host tool
17674 CC_FOR_TARGET='$(CC)'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17676 $as_echo "host tool" >&6; }
17677 else
17678 # We need a cross tool
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17680 $as_echo "pre-installed" >&6; }
17681 fi
17682 fi
17683
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17685 $as_echo_n "checking where to find the target c++... " >&6; }
17686 if test "x${build}" != "x${host}" ; then
17687 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17688 # We already found the complete path
17689 ac_dir=`dirname $CXX_FOR_TARGET`
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17691 $as_echo "pre-installed in $ac_dir" >&6; }
17692 else
17693 # Canadian cross, just use what we found
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17695 $as_echo "pre-installed" >&6; }
17696 fi
17697 else
17698 ok=yes
17699 case " ${configdirs} " in
17700 *" gcc "*) ;;
17701 *) ok=no ;;
17702 esac
17703 case ,${enable_languages}, in
17704 *,c++,*) ;;
17705 *) ok=no ;;
17706 esac
17707 if test $ok = yes; then
17708 # An in-tree tool is available and we can use it
17709 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'
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17711 $as_echo "just compiled" >&6; }
17712 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17713 # We already found the complete path
17714 ac_dir=`dirname $CXX_FOR_TARGET`
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17716 $as_echo "pre-installed in $ac_dir" >&6; }
17717 elif test "x$target" = "x$host"; then
17718 # We can use an host tool
17719 CXX_FOR_TARGET='$(CXX)'
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17721 $as_echo "host tool" >&6; }
17722 else
17723 # We need a cross tool
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17725 $as_echo "pre-installed" >&6; }
17726 fi
17727 fi
17728
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17730 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17731 if test "x${build}" != "x${host}" ; then
17732 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17733 # We already found the complete path
17734 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17736 $as_echo "pre-installed in $ac_dir" >&6; }
17737 else
17738 # Canadian cross, just use what we found
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17740 $as_echo "pre-installed" >&6; }
17741 fi
17742 else
17743 ok=yes
17744 case " ${configdirs} " in
17745 *" gcc "*) ;;
17746 *) ok=no ;;
17747 esac
17748 case ,${enable_languages}, in
17749 *,c++,*) ;;
17750 *) ok=no ;;
17751 esac
17752 if test $ok = yes; then
17753 # An in-tree tool is available and we can use it
17754 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'
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17756 $as_echo "just compiled" >&6; }
17757 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17758 # We already found the complete path
17759 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17761 $as_echo "pre-installed in $ac_dir" >&6; }
17762 elif test "x$target" = "x$host"; then
17763 # We can use an host tool
17764 RAW_CXX_FOR_TARGET='$(CXX)'
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17766 $as_echo "host tool" >&6; }
17767 else
17768 # We need a cross tool
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17770 $as_echo "pre-installed" >&6; }
17771 fi
17772 fi
17773
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17775 $as_echo_n "checking where to find the target dlltool... " >&6; }
17776 if test "x${build}" != "x${host}" ; then
17777 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17781 $as_echo "pre-installed in $ac_dir" >&6; }
17782 else
17783 # Canadian cross, just use what we found
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17785 $as_echo "pre-installed" >&6; }
17786 fi
17787 else
17788 ok=yes
17789 case " ${configdirs} " in
17790 *" binutils "*) ;;
17791 *) ok=no ;;
17792 esac
17793
17794 if test $ok = yes; then
17795 # An in-tree tool is available and we can use it
17796 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17798 $as_echo "just compiled" >&6; }
17799 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17800 # We already found the complete path
17801 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17803 $as_echo "pre-installed in $ac_dir" >&6; }
17804 elif test "x$target" = "x$host"; then
17805 # We can use an host tool
17806 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17808 $as_echo "host tool" >&6; }
17809 else
17810 # We need a cross tool
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17812 $as_echo "pre-installed" >&6; }
17813 fi
17814 fi
17815
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17817 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17818 if test "x${build}" != "x${host}" ; then
17819 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823 $as_echo "pre-installed in $ac_dir" >&6; }
17824 else
17825 # Canadian cross, just use what we found
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17827 $as_echo "pre-installed" >&6; }
17828 fi
17829 else
17830 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17831 # We already found the complete path
17832 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17834 $as_echo "pre-installed in $ac_dir" >&6; }
17835 elif test "x$target" = "x$host"; then
17836 # We can use an host tool
17837 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17839 $as_echo "host tool" >&6; }
17840 else
17841 # We need a cross tool
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17843 $as_echo "pre-installed" >&6; }
17844 fi
17845 fi
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17848 $as_echo_n "checking where to find the target gcc... " >&6; }
17849 if test "x${build}" != "x${host}" ; then
17850 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17851 # We already found the complete path
17852 ac_dir=`dirname $GCC_FOR_TARGET`
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17854 $as_echo "pre-installed in $ac_dir" >&6; }
17855 else
17856 # Canadian cross, just use what we found
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17858 $as_echo "pre-installed" >&6; }
17859 fi
17860 else
17861 ok=yes
17862 case " ${configdirs} " in
17863 *" gcc "*) ;;
17864 *) ok=no ;;
17865 esac
17866
17867 if test $ok = yes; then
17868 # An in-tree tool is available and we can use it
17869 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17871 $as_echo "just compiled" >&6; }
17872 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17873 # We already found the complete path
17874 ac_dir=`dirname $GCC_FOR_TARGET`
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17876 $as_echo "pre-installed in $ac_dir" >&6; }
17877 elif test "x$target" = "x$host"; then
17878 # We can use an host tool
17879 GCC_FOR_TARGET='$()'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17881 $as_echo "host tool" >&6; }
17882 else
17883 # We need a cross tool
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17885 $as_echo "pre-installed" >&6; }
17886 fi
17887 fi
17888
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17890 $as_echo_n "checking where to find the target gfortran... " >&6; }
17891 if test "x${build}" != "x${host}" ; then
17892 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17893 # We already found the complete path
17894 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17896 $as_echo "pre-installed in $ac_dir" >&6; }
17897 else
17898 # Canadian cross, just use what we found
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17900 $as_echo "pre-installed" >&6; }
17901 fi
17902 else
17903 ok=yes
17904 case " ${configdirs} " in
17905 *" gcc "*) ;;
17906 *) ok=no ;;
17907 esac
17908 case ,${enable_languages}, in
17909 *,fortran,*) ;;
17910 *) ok=no ;;
17911 esac
17912 if test $ok = yes; then
17913 # An in-tree tool is available and we can use it
17914 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17916 $as_echo "just compiled" >&6; }
17917 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17918 # We already found the complete path
17919 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17921 $as_echo "pre-installed in $ac_dir" >&6; }
17922 elif test "x$target" = "x$host"; then
17923 # We can use an host tool
17924 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17926 $as_echo "host tool" >&6; }
17927 else
17928 # We need a cross tool
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17930 $as_echo "pre-installed" >&6; }
17931 fi
17932 fi
17933
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17935 $as_echo_n "checking where to find the target gccgo... " >&6; }
17936 if test "x${build}" != "x${host}" ; then
17937 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17938 # We already found the complete path
17939 ac_dir=`dirname $GOC_FOR_TARGET`
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17941 $as_echo "pre-installed in $ac_dir" >&6; }
17942 else
17943 # Canadian cross, just use what we found
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17945 $as_echo "pre-installed" >&6; }
17946 fi
17947 else
17948 ok=yes
17949 case " ${configdirs} " in
17950 *" gcc "*) ;;
17951 *) ok=no ;;
17952 esac
17953 case ,${enable_languages}, in
17954 *,go,*) ;;
17955 *) ok=no ;;
17956 esac
17957 if test $ok = yes; then
17958 # An in-tree tool is available and we can use it
17959 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17961 $as_echo "just compiled" >&6; }
17962 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17963 # We already found the complete path
17964 ac_dir=`dirname $GOC_FOR_TARGET`
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17966 $as_echo "pre-installed in $ac_dir" >&6; }
17967 elif test "x$target" = "x$host"; then
17968 # We can use an host tool
17969 GOC_FOR_TARGET='$(GOC)'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17971 $as_echo "host tool" >&6; }
17972 else
17973 # We need a cross tool
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17975 $as_echo "pre-installed" >&6; }
17976 fi
17977 fi
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17980 $as_echo_n "checking where to find the target gdc... " >&6; }
17981 if test "x${build}" != "x${host}" ; then
17982 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17983 # We already found the complete path
17984 ac_dir=`dirname $GDC_FOR_TARGET`
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17986 $as_echo "pre-installed in $ac_dir" >&6; }
17987 else
17988 # Canadian cross, just use what we found
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17990 $as_echo "pre-installed" >&6; }
17991 fi
17992 else
17993 ok=yes
17994 case " ${configdirs} " in
17995 *" gcc "*) ;;
17996 *) ok=no ;;
17997 esac
17998 case ,${enable_languages}, in
17999 *,d,*) ;;
18000 *) ok=no ;;
18001 esac
18002 if test $ok = yes; then
18003 # An in-tree tool is available and we can use it
18004 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18006 $as_echo "just compiled" >&6; }
18007 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18008 # We already found the complete path
18009 ac_dir=`dirname $GDC_FOR_TARGET`
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18011 $as_echo "pre-installed in $ac_dir" >&6; }
18012 elif test "x$target" = "x$host"; then
18013 # We can use an host tool
18014 GDC_FOR_TARGET='$(GDC)'
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18016 $as_echo "host tool" >&6; }
18017 else
18018 # We need a cross tool
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18020 $as_echo "pre-installed" >&6; }
18021 fi
18022 fi
18023
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18025 $as_echo_n "checking where to find the target gm2... " >&6; }
18026 if test "x${build}" != "x${host}" ; then
18027 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18028 # We already found the complete path
18029 ac_dir=`dirname $GM2_FOR_TARGET`
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18031 $as_echo "pre-installed in $ac_dir" >&6; }
18032 else
18033 # Canadian cross, just use what we found
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18035 $as_echo "pre-installed" >&6; }
18036 fi
18037 else
18038 ok=yes
18039 case " ${configdirs} " in
18040 *" gcc "*) ;;
18041 *) ok=no ;;
18042 esac
18043 case ,${enable_languages}, in
18044 *,m2,*) ;;
18045 *) ok=no ;;
18046 esac
18047 if test $ok = yes; then
18048 # An in-tree tool is available and we can use it
18049 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18051 $as_echo "just compiled" >&6; }
18052 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $GM2_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056 $as_echo "pre-installed in $ac_dir" >&6; }
18057 elif test "x$target" = "x$host"; then
18058 # We can use an host tool
18059 GM2_FOR_TARGET='$(GM2)'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18061 $as_echo "host tool" >&6; }
18062 else
18063 # We need a cross tool
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18065 $as_echo "pre-installed" >&6; }
18066 fi
18067 fi
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18070 $as_echo_n "checking where to find the target ld... " >&6; }
18071 if test "x${build}" != "x${host}" ; then
18072 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $LD_FOR_TARGET`
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18076 $as_echo "pre-installed in $ac_dir" >&6; }
18077 else
18078 # Canadian cross, just use what we found
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18080 $as_echo "pre-installed" >&6; }
18081 fi
18082 else
18083 ok=yes
18084 case " ${configdirs} " in
18085 *" ld "*) ;;
18086 *) ok=no ;;
18087 esac
18088
18089 if test $ok = yes; then
18090 # An in-tree tool is available and we can use it
18091 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18093 $as_echo "just compiled" >&6; }
18094 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18095 # We already found the complete path
18096 ac_dir=`dirname $LD_FOR_TARGET`
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18098 $as_echo "pre-installed in $ac_dir" >&6; }
18099 elif test "x$target" = "x$host"; then
18100 # We can use an host tool
18101 LD_FOR_TARGET='$(LD)'
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18103 $as_echo "host tool" >&6; }
18104 else
18105 # We need a cross tool
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18107 $as_echo "pre-installed" >&6; }
18108 fi
18109 fi
18110
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18112 $as_echo_n "checking where to find the target lipo... " >&6; }
18113 if test "x${build}" != "x${host}" ; then
18114 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
18116 ac_dir=`dirname $LIPO_FOR_TARGET`
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18118 $as_echo "pre-installed in $ac_dir" >&6; }
18119 else
18120 # Canadian cross, just use what we found
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18122 $as_echo "pre-installed" >&6; }
18123 fi
18124 else
18125 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18126 # We already found the complete path
18127 ac_dir=`dirname $LIPO_FOR_TARGET`
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18129 $as_echo "pre-installed in $ac_dir" >&6; }
18130 elif test "x$target" = "x$host"; then
18131 # We can use an host tool
18132 LIPO_FOR_TARGET='$(LIPO)'
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18134 $as_echo "host tool" >&6; }
18135 else
18136 # We need a cross tool
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18138 $as_echo "pre-installed" >&6; }
18139 fi
18140 fi
18141
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18143 $as_echo_n "checking where to find the target nm... " >&6; }
18144 if test "x${build}" != "x${host}" ; then
18145 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18146 # We already found the complete path
18147 ac_dir=`dirname $NM_FOR_TARGET`
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18149 $as_echo "pre-installed in $ac_dir" >&6; }
18150 else
18151 # Canadian cross, just use what we found
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18153 $as_echo "pre-installed" >&6; }
18154 fi
18155 else
18156 ok=yes
18157 case " ${configdirs} " in
18158 *" binutils "*) ;;
18159 *) ok=no ;;
18160 esac
18161
18162 if test $ok = yes; then
18163 # An in-tree tool is available and we can use it
18164 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18166 $as_echo "just compiled" >&6; }
18167 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18168 # We already found the complete path
18169 ac_dir=`dirname $NM_FOR_TARGET`
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18171 $as_echo "pre-installed in $ac_dir" >&6; }
18172 elif test "x$target" = "x$host"; then
18173 # We can use an host tool
18174 NM_FOR_TARGET='$(NM)'
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18176 $as_echo "host tool" >&6; }
18177 else
18178 # We need a cross tool
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18180 $as_echo "pre-installed" >&6; }
18181 fi
18182 fi
18183
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18185 $as_echo_n "checking where to find the target objcopy... " >&6; }
18186 if test "x${build}" != "x${host}" ; then
18187 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18188 # We already found the complete path
18189 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18191 $as_echo "pre-installed in $ac_dir" >&6; }
18192 else
18193 # Canadian cross, just use what we found
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18195 $as_echo "pre-installed" >&6; }
18196 fi
18197 else
18198 ok=yes
18199 case " ${configdirs} " in
18200 *" binutils "*) ;;
18201 *) ok=no ;;
18202 esac
18203
18204 if test $ok = yes; then
18205 # An in-tree tool is available and we can use it
18206 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18208 $as_echo "just compiled" >&6; }
18209 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18210 # We already found the complete path
18211 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18213 $as_echo "pre-installed in $ac_dir" >&6; }
18214 elif test "x$target" = "x$host"; then
18215 # We can use an host tool
18216 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18218 $as_echo "host tool" >&6; }
18219 else
18220 # We need a cross tool
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18222 $as_echo "pre-installed" >&6; }
18223 fi
18224 fi
18225
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18227 $as_echo_n "checking where to find the target objdump... " >&6; }
18228 if test "x${build}" != "x${host}" ; then
18229 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18230 # We already found the complete path
18231 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18233 $as_echo "pre-installed in $ac_dir" >&6; }
18234 else
18235 # Canadian cross, just use what we found
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18237 $as_echo "pre-installed" >&6; }
18238 fi
18239 else
18240 ok=yes
18241 case " ${configdirs} " in
18242 *" binutils "*) ;;
18243 *) ok=no ;;
18244 esac
18245
18246 if test $ok = yes; then
18247 # An in-tree tool is available and we can use it
18248 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18250 $as_echo "just compiled" >&6; }
18251 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18252 # We already found the complete path
18253 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18255 $as_echo "pre-installed in $ac_dir" >&6; }
18256 elif test "x$target" = "x$host"; then
18257 # We can use an host tool
18258 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18260 $as_echo "host tool" >&6; }
18261 else
18262 # We need a cross tool
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18264 $as_echo "pre-installed" >&6; }
18265 fi
18266 fi
18267
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18269 $as_echo_n "checking where to find the target otool... " >&6; }
18270 if test "x${build}" != "x${host}" ; then
18271 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18272 # We already found the complete path
18273 ac_dir=`dirname $OTOOL_FOR_TARGET`
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18275 $as_echo "pre-installed in $ac_dir" >&6; }
18276 else
18277 # Canadian cross, just use what we found
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18279 $as_echo "pre-installed" >&6; }
18280 fi
18281 else
18282 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18283 # We already found the complete path
18284 ac_dir=`dirname $OTOOL_FOR_TARGET`
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18286 $as_echo "pre-installed in $ac_dir" >&6; }
18287 elif test "x$target" = "x$host"; then
18288 # We can use an host tool
18289 OTOOL_FOR_TARGET='$(OTOOL)'
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18291 $as_echo "host tool" >&6; }
18292 else
18293 # We need a cross tool
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18295 $as_echo "pre-installed" >&6; }
18296 fi
18297 fi
18298
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18300 $as_echo_n "checking where to find the target ranlib... " >&6; }
18301 if test "x${build}" != "x${host}" ; then
18302 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18303 # We already found the complete path
18304 ac_dir=`dirname $RANLIB_FOR_TARGET`
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18306 $as_echo "pre-installed in $ac_dir" >&6; }
18307 else
18308 # Canadian cross, just use what we found
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18310 $as_echo "pre-installed" >&6; }
18311 fi
18312 else
18313 ok=yes
18314 case " ${configdirs} " in
18315 *" binutils "*) ;;
18316 *) ok=no ;;
18317 esac
18318
18319 if test $ok = yes; then
18320 # An in-tree tool is available and we can use it
18321 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18323 $as_echo "just compiled" >&6; }
18324 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18325 # We already found the complete path
18326 ac_dir=`dirname $RANLIB_FOR_TARGET`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18328 $as_echo "pre-installed in $ac_dir" >&6; }
18329 elif test "x$target" = "x$host"; then
18330 # We can use an host tool
18331 RANLIB_FOR_TARGET='$(RANLIB)'
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18333 $as_echo "host tool" >&6; }
18334 else
18335 # We need a cross tool
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18337 $as_echo "pre-installed" >&6; }
18338 fi
18339 fi
18340
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18342 $as_echo_n "checking where to find the target readelf... " >&6; }
18343 if test "x${build}" != "x${host}" ; then
18344 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18345 # We already found the complete path
18346 ac_dir=`dirname $READELF_FOR_TARGET`
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18348 $as_echo "pre-installed in $ac_dir" >&6; }
18349 else
18350 # Canadian cross, just use what we found
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18352 $as_echo "pre-installed" >&6; }
18353 fi
18354 else
18355 ok=yes
18356 case " ${configdirs} " in
18357 *" binutils "*) ;;
18358 *) ok=no ;;
18359 esac
18360
18361 if test $ok = yes; then
18362 # An in-tree tool is available and we can use it
18363 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18365 $as_echo "just compiled" >&6; }
18366 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18367 # We already found the complete path
18368 ac_dir=`dirname $READELF_FOR_TARGET`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18370 $as_echo "pre-installed in $ac_dir" >&6; }
18371 elif test "x$target" = "x$host"; then
18372 # We can use an host tool
18373 READELF_FOR_TARGET='$(READELF)'
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18375 $as_echo "host tool" >&6; }
18376 else
18377 # We need a cross tool
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18379 $as_echo "pre-installed" >&6; }
18380 fi
18381 fi
18382
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18384 $as_echo_n "checking where to find the target strip... " >&6; }
18385 if test "x${build}" != "x${host}" ; then
18386 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18387 # We already found the complete path
18388 ac_dir=`dirname $STRIP_FOR_TARGET`
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18390 $as_echo "pre-installed in $ac_dir" >&6; }
18391 else
18392 # Canadian cross, just use what we found
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18394 $as_echo "pre-installed" >&6; }
18395 fi
18396 else
18397 ok=yes
18398 case " ${configdirs} " in
18399 *" binutils "*) ;;
18400 *) ok=no ;;
18401 esac
18402
18403 if test $ok = yes; then
18404 # An in-tree tool is available and we can use it
18405 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18407 $as_echo "just compiled" >&6; }
18408 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18409 # We already found the complete path
18410 ac_dir=`dirname $STRIP_FOR_TARGET`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18412 $as_echo "pre-installed in $ac_dir" >&6; }
18413 elif test "x$target" = "x$host"; then
18414 # We can use an host tool
18415 STRIP_FOR_TARGET='$(STRIP)'
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18417 $as_echo "host tool" >&6; }
18418 else
18419 # We need a cross tool
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18421 $as_echo "pre-installed" >&6; }
18422 fi
18423 fi
18424
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18426 $as_echo_n "checking where to find the target windres... " >&6; }
18427 if test "x${build}" != "x${host}" ; then
18428 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18429 # We already found the complete path
18430 ac_dir=`dirname $WINDRES_FOR_TARGET`
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18432 $as_echo "pre-installed in $ac_dir" >&6; }
18433 else
18434 # Canadian cross, just use what we found
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18436 $as_echo "pre-installed" >&6; }
18437 fi
18438 else
18439 ok=yes
18440 case " ${configdirs} " in
18441 *" binutils "*) ;;
18442 *) ok=no ;;
18443 esac
18444
18445 if test $ok = yes; then
18446 # An in-tree tool is available and we can use it
18447 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18449 $as_echo "just compiled" >&6; }
18450 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18451 # We already found the complete path
18452 ac_dir=`dirname $WINDRES_FOR_TARGET`
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18454 $as_echo "pre-installed in $ac_dir" >&6; }
18455 elif test "x$target" = "x$host"; then
18456 # We can use an host tool
18457 WINDRES_FOR_TARGET='$(WINDRES)'
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18459 $as_echo "host tool" >&6; }
18460 else
18461 # We need a cross tool
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18463 $as_echo "pre-installed" >&6; }
18464 fi
18465 fi
18466
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18468 $as_echo_n "checking where to find the target windmc... " >&6; }
18469 if test "x${build}" != "x${host}" ; then
18470 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18471 # We already found the complete path
18472 ac_dir=`dirname $WINDMC_FOR_TARGET`
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18474 $as_echo "pre-installed in $ac_dir" >&6; }
18475 else
18476 # Canadian cross, just use what we found
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18478 $as_echo "pre-installed" >&6; }
18479 fi
18480 else
18481 ok=yes
18482 case " ${configdirs} " in
18483 *" binutils "*) ;;
18484 *) ok=no ;;
18485 esac
18486
18487 if test $ok = yes; then
18488 # An in-tree tool is available and we can use it
18489 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18491 $as_echo "just compiled" >&6; }
18492 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $WINDMC_FOR_TARGET`
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18496 $as_echo "pre-installed in $ac_dir" >&6; }
18497 elif test "x$target" = "x$host"; then
18498 # We can use an host tool
18499 WINDMC_FOR_TARGET='$(WINDMC)'
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18501 $as_echo "host tool" >&6; }
18502 else
18503 # We need a cross tool
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18505 $as_echo "pre-installed" >&6; }
18506 fi
18507 fi
18508
18509
18510
18511
18512
18513 # Certain tools may need extra flags.
18514 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18515 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18516 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18517
18518 # When building target libraries, except in a Canadian cross, we use
18519 # the same toolchain as the compiler we just built.
18520 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18521 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18522 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18523 if test $host = $build; then
18524 case " $configdirs " in
18525 *" gcc "*)
18526 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18527 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18528 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18529 ;;
18530 esac
18531 fi
18532
18533
18534
18535
18536
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18538 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18539 # Check whether --enable-maintainer-mode was given.
18540 if test "${enable_maintainer_mode+set}" = set; then :
18541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18542 else
18543 USE_MAINTAINER_MODE=no
18544 fi
18545
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18547 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18548
18549
18550 if test "$USE_MAINTAINER_MODE" = yes; then
18551 MAINTAINER_MODE_TRUE=
18552 MAINTAINER_MODE_FALSE='#'
18553 else
18554 MAINTAINER_MODE_TRUE='#'
18555 MAINTAINER_MODE_FALSE=
18556 fi
18557 MAINT=$MAINTAINER_MODE_TRUE
18558
18559 # ---------------------
18560 # GCC bootstrap support
18561 # ---------------------
18562
18563 # Stage specific cflags for build.
18564 stage1_cflags="-g"
18565 case $build in
18566 vax-*-*)
18567 case ${GCC} in
18568 yes) stage1_cflags="-g -Wa,-J" ;;
18569 *) stage1_cflags="-g -J" ;;
18570 esac ;;
18571 esac
18572
18573
18574
18575 # Enable --enable-checking in stage1 of the compiler.
18576 # Check whether --enable-stage1-checking was given.
18577 if test "${enable_stage1_checking+set}" = set; then :
18578 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18579 else
18580 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18581 # For --disable-checking or implicit --enable-checking=release, avoid
18582 # setting --enable-checking=gc in the default stage1 checking for LTO
18583 # bootstraps. See PR62077.
18584 case $BUILD_CONFIG in
18585 *lto*)
18586 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18587 *)
18588 stage1_checking=--enable-checking=yes,types;;
18589 esac
18590 if test "x$enable_checking" = x && \
18591 test -d ${srcdir}/gcc && \
18592 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18593 stage1_checking=--enable-checking=yes,types,extra
18594 fi
18595 else
18596 stage1_checking=--enable-checking=$enable_checking,types
18597 fi
18598 fi
18599
18600
18601
18602 # Enable -Werror in bootstrap stage2 and later.
18603 # Check whether --enable-werror was given.
18604 if test "${enable_werror+set}" = set; then :
18605 enableval=$enable_werror;
18606 case ${enable_werror} in
18607 yes) stage2_werror_flag="--enable-werror-always" ;;
18608 *) stage2_werror_flag="" ;;
18609 esac
18610
18611 else
18612
18613 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18614 case $BUILD_CONFIG in
18615 bootstrap-debug)
18616 stage2_werror_flag="--enable-werror-always" ;;
18617 "")
18618 stage2_werror_flag="--enable-werror-always" ;;
18619 esac
18620 fi
18621
18622 fi
18623
18624
18625
18626
18627 # Specify what files to not compare during bootstrap.
18628
18629 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18630 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18631 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18632 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18633 case "$target" in
18634 hppa*64*-*-hpux*) ;;
18635 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18636 esac
18637
18638
18639 ac_config_files="$ac_config_files Makefile"
18640
18641 cat >confcache <<\_ACEOF
18642 # This file is a shell script that caches the results of configure
18643 # tests run on this system so they can be shared between configure
18644 # scripts and configure runs, see configure's option --config-cache.
18645 # It is not useful on other systems. If it contains results you don't
18646 # want to keep, you may remove or edit it.
18647 #
18648 # config.status only pays attention to the cache file if you give it
18649 # the --recheck option to rerun configure.
18650 #
18651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18653 # following values.
18654
18655 _ACEOF
18656
18657 # The following way of writing the cache mishandles newlines in values,
18658 # but we know of no workaround that is simple, portable, and efficient.
18659 # So, we kill variables containing newlines.
18660 # Ultrix sh set writes to stderr and can't be redirected directly,
18661 # and sets the high bit in the cache file unless we assign to the vars.
18662 (
18663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18664 eval ac_val=\$$ac_var
18665 case $ac_val in #(
18666 *${as_nl}*)
18667 case $ac_var in #(
18668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18670 esac
18671 case $ac_var in #(
18672 _ | IFS | as_nl) ;; #(
18673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18674 *) { eval $ac_var=; unset $ac_var;} ;;
18675 esac ;;
18676 esac
18677 done
18678
18679 (set) 2>&1 |
18680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18681 *${as_nl}ac_space=\ *)
18682 # `set' does not quote correctly, so add quotes: double-quote
18683 # substitution turns \\\\ into \\, and sed turns \\ into \.
18684 sed -n \
18685 "s/'/'\\\\''/g;
18686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18687 ;; #(
18688 *)
18689 # `set' quotes correctly as required by POSIX, so do not add quotes.
18690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18691 ;;
18692 esac |
18693 sort
18694 ) |
18695 sed '
18696 /^ac_cv_env_/b end
18697 t clear
18698 :clear
18699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18700 t end
18701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18702 :end' >>confcache
18703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18704 if test -w "$cache_file"; then
18705 if test "x$cache_file" != "x/dev/null"; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18707 $as_echo "$as_me: updating cache $cache_file" >&6;}
18708 if test ! -f "$cache_file" || test -h "$cache_file"; then
18709 cat confcache >"$cache_file"
18710 else
18711 case $cache_file in #(
18712 */* | ?:*)
18713 mv -f confcache "$cache_file"$$ &&
18714 mv -f "$cache_file"$$ "$cache_file" ;; #(
18715 *)
18716 mv -f confcache "$cache_file" ;;
18717 esac
18718 fi
18719 fi
18720 else
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18722 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18723 fi
18724 fi
18725 rm -f confcache
18726
18727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18728 # Let make expand exec_prefix.
18729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18730
18731 # Transform confdefs.h into DEFS.
18732 # Protect against shell expansion while executing Makefile rules.
18733 # Protect against Makefile macro expansion.
18734 #
18735 # If the first sed substitution is executed (which looks for macros that
18736 # take arguments), then branch to the quote section. Otherwise,
18737 # look for a macro that doesn't take arguments.
18738 ac_script='
18739 :mline
18740 /\\$/{
18741 N
18742 s,\\\n,,
18743 b mline
18744 }
18745 t clear
18746 :clear
18747 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18748 t quote
18749 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18750 t quote
18751 b any
18752 :quote
18753 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18754 s/\[/\\&/g
18755 s/\]/\\&/g
18756 s/\$/$$/g
18757 H
18758 :any
18759 ${
18760 g
18761 s/^\n//
18762 s/\n/ /g
18763 p
18764 }
18765 '
18766 DEFS=`sed -n "$ac_script" confdefs.h`
18767
18768
18769 ac_libobjs=
18770 ac_ltlibobjs=
18771 U=
18772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18773 # 1. Remove the extension, and $U if already installed.
18774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18777 # will be set to the directory where LIBOBJS objects are built.
18778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18780 done
18781 LIBOBJS=$ac_libobjs
18782
18783 LTLIBOBJS=$ac_ltlibobjs
18784
18785
18786
18787 : "${CONFIG_STATUS=./config.status}"
18788 ac_write_fail=0
18789 ac_clean_files_save=$ac_clean_files
18790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18793 as_write_fail=0
18794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18795 #! $SHELL
18796 # Generated by $as_me.
18797 # Run this file to recreate the current configuration.
18798 # Compiler output produced by configure, useful for debugging
18799 # configure, is in config.log if it exists.
18800
18801 debug=false
18802 ac_cs_recheck=false
18803 ac_cs_silent=false
18804
18805 SHELL=\${CONFIG_SHELL-$SHELL}
18806 export SHELL
18807 _ASEOF
18808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18809 ## -------------------- ##
18810 ## M4sh Initialization. ##
18811 ## -------------------- ##
18812
18813 # Be more Bourne compatible
18814 DUALCASE=1; export DUALCASE # for MKS sh
18815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18816 emulate sh
18817 NULLCMD=:
18818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18819 # is contrary to our usage. Disable this feature.
18820 alias -g '${1+"$@"}'='"$@"'
18821 setopt NO_GLOB_SUBST
18822 else
18823 case `(set -o) 2>/dev/null` in #(
18824 *posix*) :
18825 set -o posix ;; #(
18826 *) :
18827 ;;
18828 esac
18829 fi
18830
18831
18832 as_nl='
18833 '
18834 export as_nl
18835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18839 # Prefer a ksh shell builtin over an external printf program on Solaris,
18840 # but without wasting forks for bash or zsh.
18841 if test -z "$BASH_VERSION$ZSH_VERSION" \
18842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18843 as_echo='print -r --'
18844 as_echo_n='print -rn --'
18845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18846 as_echo='printf %s\n'
18847 as_echo_n='printf %s'
18848 else
18849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18851 as_echo_n='/usr/ucb/echo -n'
18852 else
18853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18854 as_echo_n_body='eval
18855 arg=$1;
18856 case $arg in #(
18857 *"$as_nl"*)
18858 expr "X$arg" : "X\\(.*\\)$as_nl";
18859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18860 esac;
18861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18862 '
18863 export as_echo_n_body
18864 as_echo_n='sh -c $as_echo_n_body as_echo'
18865 fi
18866 export as_echo_body
18867 as_echo='sh -c $as_echo_body as_echo'
18868 fi
18869
18870 # The user is always right.
18871 if test "${PATH_SEPARATOR+set}" != set; then
18872 PATH_SEPARATOR=:
18873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18875 PATH_SEPARATOR=';'
18876 }
18877 fi
18878
18879
18880 # IFS
18881 # We need space, tab and new line, in precisely that order. Quoting is
18882 # there to prevent editors from complaining about space-tab.
18883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18884 # splitting by setting IFS to empty value.)
18885 IFS=" "" $as_nl"
18886
18887 # Find who we are. Look in the path if we contain no directory separator.
18888 as_myself=
18889 case $0 in #((
18890 *[\\/]* ) as_myself=$0 ;;
18891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18897 done
18898 IFS=$as_save_IFS
18899
18900 ;;
18901 esac
18902 # We did not find ourselves, most probably we were run as `sh COMMAND'
18903 # in which case we are not to be found in the path.
18904 if test "x$as_myself" = x; then
18905 as_myself=$0
18906 fi
18907 if test ! -f "$as_myself"; then
18908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18909 exit 1
18910 fi
18911
18912 # Unset variables that we do not need and which cause bugs (e.g. in
18913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18914 # suppresses any "Segmentation fault" message there. '((' could
18915 # trigger a bug in pdksh 5.2.14.
18916 for as_var in BASH_ENV ENV MAIL MAILPATH
18917 do eval test x\${$as_var+set} = xset \
18918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18919 done
18920 PS1='$ '
18921 PS2='> '
18922 PS4='+ '
18923
18924 # NLS nuisances.
18925 LC_ALL=C
18926 export LC_ALL
18927 LANGUAGE=C
18928 export LANGUAGE
18929
18930 # CDPATH.
18931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18932
18933
18934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18935 # ----------------------------------------
18936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18938 # script with STATUS, using 1 if that was 0.
18939 as_fn_error ()
18940 {
18941 as_status=$1; test $as_status -eq 0 && as_status=1
18942 if test "$4"; then
18943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18945 fi
18946 $as_echo "$as_me: error: $2" >&2
18947 as_fn_exit $as_status
18948 } # as_fn_error
18949
18950
18951 # as_fn_set_status STATUS
18952 # -----------------------
18953 # Set $? to STATUS, without forking.
18954 as_fn_set_status ()
18955 {
18956 return $1
18957 } # as_fn_set_status
18958
18959 # as_fn_exit STATUS
18960 # -----------------
18961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18962 as_fn_exit ()
18963 {
18964 set +e
18965 as_fn_set_status $1
18966 exit $1
18967 } # as_fn_exit
18968
18969 # as_fn_unset VAR
18970 # ---------------
18971 # Portably unset VAR.
18972 as_fn_unset ()
18973 {
18974 { eval $1=; unset $1;}
18975 }
18976 as_unset=as_fn_unset
18977 # as_fn_append VAR VALUE
18978 # ----------------------
18979 # Append the text in VALUE to the end of the definition contained in VAR. Take
18980 # advantage of any shell optimizations that allow amortized linear growth over
18981 # repeated appends, instead of the typical quadratic growth present in naive
18982 # implementations.
18983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18984 eval 'as_fn_append ()
18985 {
18986 eval $1+=\$2
18987 }'
18988 else
18989 as_fn_append ()
18990 {
18991 eval $1=\$$1\$2
18992 }
18993 fi # as_fn_append
18994
18995 # as_fn_arith ARG...
18996 # ------------------
18997 # Perform arithmetic evaluation on the ARGs, and store the result in the
18998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18999 # must be portable across $(()) and expr.
19000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19001 eval 'as_fn_arith ()
19002 {
19003 as_val=$(( $* ))
19004 }'
19005 else
19006 as_fn_arith ()
19007 {
19008 as_val=`expr "$@" || test $? -eq 1`
19009 }
19010 fi # as_fn_arith
19011
19012
19013 if expr a : '\(a\)' >/dev/null 2>&1 &&
19014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19015 as_expr=expr
19016 else
19017 as_expr=false
19018 fi
19019
19020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19021 as_basename=basename
19022 else
19023 as_basename=false
19024 fi
19025
19026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19027 as_dirname=dirname
19028 else
19029 as_dirname=false
19030 fi
19031
19032 as_me=`$as_basename -- "$0" ||
19033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19034 X"$0" : 'X\(//\)$' \| \
19035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19036 $as_echo X/"$0" |
19037 sed '/^.*\/\([^/][^/]*\)\/*$/{
19038 s//\1/
19039 q
19040 }
19041 /^X\/\(\/\/\)$/{
19042 s//\1/
19043 q
19044 }
19045 /^X\/\(\/\).*/{
19046 s//\1/
19047 q
19048 }
19049 s/.*/./; q'`
19050
19051 # Avoid depending upon Character Ranges.
19052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19055 as_cr_digits='0123456789'
19056 as_cr_alnum=$as_cr_Letters$as_cr_digits
19057
19058 ECHO_C= ECHO_N= ECHO_T=
19059 case `echo -n x` in #(((((
19060 -n*)
19061 case `echo 'xy\c'` in
19062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19063 xy) ECHO_C='\c';;
19064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19065 ECHO_T=' ';;
19066 esac;;
19067 *)
19068 ECHO_N='-n';;
19069 esac
19070
19071 rm -f conf$$ conf$$.exe conf$$.file
19072 if test -d conf$$.dir; then
19073 rm -f conf$$.dir/conf$$.file
19074 else
19075 rm -f conf$$.dir
19076 mkdir conf$$.dir 2>/dev/null
19077 fi
19078 if (echo >conf$$.file) 2>/dev/null; then
19079 if ln -s conf$$.file conf$$ 2>/dev/null; then
19080 as_ln_s='ln -s'
19081 # ... but there are two gotchas:
19082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19084 # In both cases, we have to default to `cp -pR'.
19085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19086 as_ln_s='cp -pR'
19087 elif ln conf$$.file conf$$ 2>/dev/null; then
19088 as_ln_s=ln
19089 else
19090 as_ln_s='cp -pR'
19091 fi
19092 else
19093 as_ln_s='cp -pR'
19094 fi
19095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19096 rmdir conf$$.dir 2>/dev/null
19097
19098
19099 # as_fn_mkdir_p
19100 # -------------
19101 # Create "$as_dir" as a directory, including parents if necessary.
19102 as_fn_mkdir_p ()
19103 {
19104
19105 case $as_dir in #(
19106 -*) as_dir=./$as_dir;;
19107 esac
19108 test -d "$as_dir" || eval $as_mkdir_p || {
19109 as_dirs=
19110 while :; do
19111 case $as_dir in #(
19112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19113 *) as_qdir=$as_dir;;
19114 esac
19115 as_dirs="'$as_qdir' $as_dirs"
19116 as_dir=`$as_dirname -- "$as_dir" ||
19117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$as_dir" : 'X\(//\)[^/]' \| \
19119 X"$as_dir" : 'X\(//\)$' \| \
19120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19121 $as_echo X"$as_dir" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\/\)[^/].*/{
19127 s//\1/
19128 q
19129 }
19130 /^X\(\/\/\)$/{
19131 s//\1/
19132 q
19133 }
19134 /^X\(\/\).*/{
19135 s//\1/
19136 q
19137 }
19138 s/.*/./; q'`
19139 test -d "$as_dir" && break
19140 done
19141 test -z "$as_dirs" || eval "mkdir $as_dirs"
19142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19143
19144
19145 } # as_fn_mkdir_p
19146 if mkdir -p . 2>/dev/null; then
19147 as_mkdir_p='mkdir -p "$as_dir"'
19148 else
19149 test -d ./-p && rmdir ./-p
19150 as_mkdir_p=false
19151 fi
19152
19153
19154 # as_fn_executable_p FILE
19155 # -----------------------
19156 # Test if FILE is an executable regular file.
19157 as_fn_executable_p ()
19158 {
19159 test -f "$1" && test -x "$1"
19160 } # as_fn_executable_p
19161 as_test_x='test -x'
19162 as_executable_p=as_fn_executable_p
19163
19164 # Sed expression to map a string onto a valid CPP name.
19165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19166
19167 # Sed expression to map a string onto a valid variable name.
19168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19169
19170
19171 exec 6>&1
19172 ## ----------------------------------- ##
19173 ## Main body of $CONFIG_STATUS script. ##
19174 ## ----------------------------------- ##
19175 _ASEOF
19176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19177
19178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19179 # Save the log message, to keep $0 and so on meaningful, and to
19180 # report actual input values of CONFIG_FILES etc. instead of their
19181 # values after options handling.
19182 ac_log="
19183 This file was extended by $as_me, which was
19184 generated by GNU Autoconf 2.69. Invocation command line was
19185
19186 CONFIG_FILES = $CONFIG_FILES
19187 CONFIG_HEADERS = $CONFIG_HEADERS
19188 CONFIG_LINKS = $CONFIG_LINKS
19189 CONFIG_COMMANDS = $CONFIG_COMMANDS
19190 $ $0 $@
19191
19192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19193 "
19194
19195 _ACEOF
19196
19197 case $ac_config_files in *"
19198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19199 esac
19200
19201
19202
19203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19204 # Files that config.status was made for.
19205 config_files="$ac_config_files"
19206
19207 _ACEOF
19208
19209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19210 ac_cs_usage="\
19211 \`$as_me' instantiates files and other configuration actions
19212 from templates according to the current configuration. Unless the files
19213 and actions are specified as TAGs, all are instantiated by default.
19214
19215 Usage: $0 [OPTION]... [TAG]...
19216
19217 -h, --help print this help, then exit
19218 -V, --version print version number and configuration settings, then exit
19219 --config print configuration, then exit
19220 -q, --quiet, --silent
19221 do not print progress messages
19222 -d, --debug don't remove temporary files
19223 --recheck update $as_me by reconfiguring in the same conditions
19224 --file=FILE[:TEMPLATE]
19225 instantiate the configuration file FILE
19226
19227 Configuration files:
19228 $config_files
19229
19230 Report bugs to the package provider."
19231
19232 _ACEOF
19233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19235 ac_cs_version="\\
19236 config.status
19237 configured by $0, generated by GNU Autoconf 2.69,
19238 with options \\"\$ac_cs_config\\"
19239
19240 Copyright (C) 2012 Free Software Foundation, Inc.
19241 This config.status script is free software; the Free Software Foundation
19242 gives unlimited permission to copy, distribute and modify it."
19243
19244 ac_pwd='$ac_pwd'
19245 srcdir='$srcdir'
19246 INSTALL='$INSTALL'
19247 AWK='$AWK'
19248 test -n "\$AWK" || AWK=awk
19249 _ACEOF
19250
19251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19252 # The default lists apply if the user does not specify any file.
19253 ac_need_defaults=:
19254 while test $# != 0
19255 do
19256 case $1 in
19257 --*=?*)
19258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19260 ac_shift=:
19261 ;;
19262 --*=)
19263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19264 ac_optarg=
19265 ac_shift=:
19266 ;;
19267 *)
19268 ac_option=$1
19269 ac_optarg=$2
19270 ac_shift=shift
19271 ;;
19272 esac
19273
19274 case $ac_option in
19275 # Handling of the options.
19276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19277 ac_cs_recheck=: ;;
19278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19279 $as_echo "$ac_cs_version"; exit ;;
19280 --config | --confi | --conf | --con | --co | --c )
19281 $as_echo "$ac_cs_config"; exit ;;
19282 --debug | --debu | --deb | --de | --d | -d )
19283 debug=: ;;
19284 --file | --fil | --fi | --f )
19285 $ac_shift
19286 case $ac_optarg in
19287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19288 '') as_fn_error $? "missing file argument" ;;
19289 esac
19290 as_fn_append CONFIG_FILES " '$ac_optarg'"
19291 ac_need_defaults=false;;
19292 --he | --h | --help | --hel | -h )
19293 $as_echo "$ac_cs_usage"; exit ;;
19294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19296 ac_cs_silent=: ;;
19297
19298 # This is an error.
19299 -*) as_fn_error $? "unrecognized option: \`$1'
19300 Try \`$0 --help' for more information." ;;
19301
19302 *) as_fn_append ac_config_targets " $1"
19303 ac_need_defaults=false ;;
19304
19305 esac
19306 shift
19307 done
19308
19309 ac_configure_extra_args=
19310
19311 if $ac_cs_silent; then
19312 exec 6>/dev/null
19313 ac_configure_extra_args="$ac_configure_extra_args --silent"
19314 fi
19315
19316 _ACEOF
19317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19318 if \$ac_cs_recheck; then
19319 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19320 shift
19321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19322 CONFIG_SHELL='$SHELL'
19323 export CONFIG_SHELL
19324 exec "\$@"
19325 fi
19326
19327 _ACEOF
19328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19329 exec 5>>config.log
19330 {
19331 echo
19332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19333 ## Running $as_me. ##
19334 _ASBOX
19335 $as_echo "$ac_log"
19336 } >&5
19337
19338 _ACEOF
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 #
19341 # INIT-COMMANDS
19342 #
19343 extrasub_build="$extrasub_build"
19344 extrasub_host="$extrasub_host"
19345 extrasub_target="$extrasub_target"
19346
19347 _ACEOF
19348
19349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19350
19351 # Handling of arguments.
19352 for ac_config_target in $ac_config_targets
19353 do
19354 case $ac_config_target in
19355 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19356
19357 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19358 esac
19359 done
19360
19361
19362 # If the user did not use the arguments to specify the items to instantiate,
19363 # then the envvar interface is used. Set only those that are not.
19364 # We use the long form for the default assignment because of an extremely
19365 # bizarre bug on SunOS 4.1.3.
19366 if $ac_need_defaults; then
19367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19368 fi
19369
19370 # Have a temporary directory for convenience. Make it in the build tree
19371 # simply because there is no reason against having it here, and in addition,
19372 # creating and moving files from /tmp can sometimes cause problems.
19373 # Hook for its removal unless debugging.
19374 # Note that there is a small window in which the directory will not be cleaned:
19375 # after its creation but before its name has been assigned to `$tmp'.
19376 $debug ||
19377 {
19378 tmp= ac_tmp=
19379 trap 'exit_status=$?
19380 : "${ac_tmp:=$tmp}"
19381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19382 ' 0
19383 trap 'as_fn_exit 1' 1 2 13 15
19384 }
19385 # Create a (secure) tmp directory for tmp files.
19386
19387 {
19388 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19389 test -d "$tmp"
19390 } ||
19391 {
19392 tmp=./conf$$-$RANDOM
19393 (umask 077 && mkdir "$tmp")
19394 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19395 ac_tmp=$tmp
19396
19397 # Set up the scripts for CONFIG_FILES section.
19398 # No need to generate them if there are no CONFIG_FILES.
19399 # This happens for instance with `./config.status config.h'.
19400 if test -n "$CONFIG_FILES"; then
19401
19402 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19403 ac_cs_awk_getline=:
19404 ac_cs_awk_pipe_init=
19405 ac_cs_awk_read_file='
19406 while ((getline aline < (F[key])) > 0)
19407 print(aline)
19408 close(F[key])'
19409 ac_cs_awk_pipe_fini=
19410 else
19411 ac_cs_awk_getline=false
19412 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19413 ac_cs_awk_read_file='
19414 print "|#_!!_#|"
19415 print "cat " F[key] " &&"
19416 '$ac_cs_awk_pipe_init
19417 # The final `:' finishes the AND list.
19418 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19419 fi
19420 ac_cr=`echo X | tr X '\015'`
19421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19422 # But we know of no other shell where ac_cr would be empty at this
19423 # point, so we can use a bashism as a fallback.
19424 if test "x$ac_cr" = x; then
19425 eval ac_cr=\$\'\\r\'
19426 fi
19427 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19429 ac_cs_awk_cr='\\r'
19430 else
19431 ac_cs_awk_cr=$ac_cr
19432 fi
19433
19434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19435 _ACEOF
19436
19437 # Create commands to substitute file output variables.
19438 {
19439 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19440 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19441 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19442 echo "_ACAWK" &&
19443 echo "_ACEOF"
19444 } >conf$$files.sh &&
19445 . ./conf$$files.sh ||
19446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19447 rm -f conf$$files.sh
19448
19449 {
19450 echo "cat >conf$$subs.awk <<_ACEOF" &&
19451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19452 echo "_ACEOF"
19453 } >conf$$subs.sh ||
19454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19455 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19456 ac_delim='%!_!# '
19457 for ac_last_try in false false false false false :; do
19458 . ./conf$$subs.sh ||
19459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19460
19461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19462 if test $ac_delim_n = $ac_delim_num; then
19463 break
19464 elif $ac_last_try; then
19465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19466 else
19467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19468 fi
19469 done
19470 rm -f conf$$subs.sh
19471
19472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19473 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19474 _ACEOF
19475 sed -n '
19476 h
19477 s/^/S["/; s/!.*/"]=/
19478 p
19479 g
19480 s/^[^!]*!//
19481 :repl
19482 t repl
19483 s/'"$ac_delim"'$//
19484 t delim
19485 :nl
19486 h
19487 s/\(.\{148\}\)..*/\1/
19488 t more1
19489 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19490 p
19491 n
19492 b repl
19493 :more1
19494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19495 p
19496 g
19497 s/.\{148\}//
19498 t nl
19499 :delim
19500 h
19501 s/\(.\{148\}\)..*/\1/
19502 t more2
19503 s/["\\]/\\&/g; s/^/"/; s/$/"/
19504 p
19505 b
19506 :more2
19507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19508 p
19509 g
19510 s/.\{148\}//
19511 t delim
19512 ' <conf$$subs.awk | sed '
19513 /^[^""]/{
19514 N
19515 s/\n//
19516 }
19517 ' >>$CONFIG_STATUS || ac_write_fail=1
19518 rm -f conf$$subs.awk
19519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19520 _ACAWK
19521 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19522 for (key in S) S_is_set[key] = 1
19523 FS = "\a"
19524 \$ac_cs_awk_pipe_init
19525 }
19526 {
19527 line = $ 0
19528 nfields = split(line, field, "@")
19529 substed = 0
19530 len = length(field[1])
19531 for (i = 2; i < nfields; i++) {
19532 key = field[i]
19533 keylen = length(key)
19534 if (S_is_set[key]) {
19535 value = S[key]
19536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19537 len += length(value) + length(field[++i])
19538 substed = 1
19539 } else
19540 len += 1 + keylen
19541 }
19542 if (nfields == 3 && !substed) {
19543 key = field[2]
19544 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19545 \$ac_cs_awk_read_file
19546 next
19547 }
19548 }
19549 print line
19550 }
19551 \$ac_cs_awk_pipe_fini
19552 _ACAWK
19553 _ACEOF
19554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19557 else
19558 cat
19559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19561 _ACEOF
19562
19563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19565 # trailing colons and then remove the whole line if VPATH becomes empty
19566 # (actually we leave an empty line to preserve line numbers).
19567 if test "x$srcdir" = x.; then
19568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19569 h
19570 s///
19571 s/^/:/
19572 s/[ ]*$/:/
19573 s/:\$(srcdir):/:/g
19574 s/:\${srcdir}:/:/g
19575 s/:@srcdir@:/:/g
19576 s/^:*//
19577 s/:*$//
19578 x
19579 s/\(=[ ]*\).*/\1/
19580 G
19581 s/\n//
19582 s/^[^=]*=[ ]*$//
19583 }'
19584 fi
19585
19586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19587 fi # test -n "$CONFIG_FILES"
19588
19589
19590 eval set X " :F $CONFIG_FILES "
19591 shift
19592 for ac_tag
19593 do
19594 case $ac_tag in
19595 :[FHLC]) ac_mode=$ac_tag; continue;;
19596 esac
19597 case $ac_mode$ac_tag in
19598 :[FHL]*:*);;
19599 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19600 :[FH]-) ac_tag=-:-;;
19601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19602 esac
19603 ac_save_IFS=$IFS
19604 IFS=:
19605 set x $ac_tag
19606 IFS=$ac_save_IFS
19607 shift
19608 ac_file=$1
19609 shift
19610
19611 case $ac_mode in
19612 :L) ac_source=$1;;
19613 :[FH])
19614 ac_file_inputs=
19615 for ac_f
19616 do
19617 case $ac_f in
19618 -) ac_f="$ac_tmp/stdin";;
19619 *) # Look for the file first in the build tree, then in the source tree
19620 # (if the path is not absolute). The absolute path cannot be DOS-style,
19621 # because $ac_f cannot contain `:'.
19622 test -f "$ac_f" ||
19623 case $ac_f in
19624 [\\/$]*) false;;
19625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19626 esac ||
19627 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19628 esac
19629 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19630 as_fn_append ac_file_inputs " '$ac_f'"
19631 done
19632
19633 # Let's still pretend it is `configure' which instantiates (i.e., don't
19634 # use $as_me), people would be surprised to read:
19635 # /* config.h. Generated by config.status. */
19636 configure_input='Generated from '`
19637 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19638 `' by configure.'
19639 if test x"$ac_file" != x-; then
19640 configure_input="$ac_file. $configure_input"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19642 $as_echo "$as_me: creating $ac_file" >&6;}
19643 fi
19644 # Neutralize special characters interpreted by sed in replacement strings.
19645 case $configure_input in #(
19646 *\&* | *\|* | *\\* )
19647 ac_sed_conf_input=`$as_echo "$configure_input" |
19648 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19649 *) ac_sed_conf_input=$configure_input;;
19650 esac
19651
19652 case $ac_tag in
19653 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19654 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19655 esac
19656 ;;
19657 esac
19658
19659 ac_dir=`$as_dirname -- "$ac_file" ||
19660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19661 X"$ac_file" : 'X\(//\)[^/]' \| \
19662 X"$ac_file" : 'X\(//\)$' \| \
19663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19664 $as_echo X"$ac_file" |
19665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19666 s//\1/
19667 q
19668 }
19669 /^X\(\/\/\)[^/].*/{
19670 s//\1/
19671 q
19672 }
19673 /^X\(\/\/\)$/{
19674 s//\1/
19675 q
19676 }
19677 /^X\(\/\).*/{
19678 s//\1/
19679 q
19680 }
19681 s/.*/./; q'`
19682 as_dir="$ac_dir"; as_fn_mkdir_p
19683 ac_builddir=.
19684
19685 case "$ac_dir" in
19686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19687 *)
19688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19689 # A ".." for each directory in $ac_dir_suffix.
19690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19691 case $ac_top_builddir_sub in
19692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19694 esac ;;
19695 esac
19696 ac_abs_top_builddir=$ac_pwd
19697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19698 # for backward compatibility:
19699 ac_top_builddir=$ac_top_build_prefix
19700
19701 case $srcdir in
19702 .) # We are building in place.
19703 ac_srcdir=.
19704 ac_top_srcdir=$ac_top_builddir_sub
19705 ac_abs_top_srcdir=$ac_pwd ;;
19706 [\\/]* | ?:[\\/]* ) # Absolute name.
19707 ac_srcdir=$srcdir$ac_dir_suffix;
19708 ac_top_srcdir=$srcdir
19709 ac_abs_top_srcdir=$srcdir ;;
19710 *) # Relative name.
19711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19712 ac_top_srcdir=$ac_top_build_prefix$srcdir
19713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19714 esac
19715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19716
19717
19718 case $ac_mode in
19719 :F)
19720 #
19721 # CONFIG_FILE
19722 #
19723
19724 case $INSTALL in
19725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19727 esac
19728 _ACEOF
19729
19730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731 # If the template does not know about datarootdir, expand it.
19732 # FIXME: This hack should be removed a few years after 2.60.
19733 ac_datarootdir_hack=; ac_datarootdir_seen=
19734 ac_sed_dataroot='
19735 /datarootdir/ {
19736 p
19737 q
19738 }
19739 /@datadir@/p
19740 /@docdir@/p
19741 /@infodir@/p
19742 /@localedir@/p
19743 /@mandir@/p'
19744 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19745 *datarootdir*) ac_datarootdir_seen=yes;;
19746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19748 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19749 _ACEOF
19750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19751 ac_datarootdir_hack='
19752 s&@datadir@&$datadir&g
19753 s&@docdir@&$docdir&g
19754 s&@infodir@&$infodir&g
19755 s&@localedir@&$localedir&g
19756 s&@mandir@&$mandir&g
19757 s&\\\${datarootdir}&$datarootdir&g' ;;
19758 esac
19759 _ACEOF
19760
19761 # Neutralize VPATH when `$srcdir' = `.'.
19762 # Shell code in configure.ac might set extrasub.
19763 # FIXME: do we really want to maintain this feature?
19764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19765 ac_sed_extra="$ac_vpsub
19766 $extrasub
19767 _ACEOF
19768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19769 :t
19770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19771 s|@configure_input@|$ac_sed_conf_input|;t t
19772 s&@top_builddir@&$ac_top_builddir_sub&;t t
19773 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19774 s&@srcdir@&$ac_srcdir&;t t
19775 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19776 s&@top_srcdir@&$ac_top_srcdir&;t t
19777 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19778 s&@builddir@&$ac_builddir&;t t
19779 s&@abs_builddir@&$ac_abs_builddir&;t t
19780 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19781 s&@INSTALL@&$ac_INSTALL&;t t
19782 $ac_datarootdir_hack
19783 "
19784 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19785 if $ac_cs_awk_getline; then
19786 $AWK -f "$ac_tmp/subs.awk"
19787 else
19788 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19789 fi \
19790 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19791
19792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19795 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19797 which seems to be undefined. Please make sure it is defined" >&5
19798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19799 which seems to be undefined. Please make sure it is defined" >&2;}
19800
19801 rm -f "$ac_tmp/stdin"
19802 case $ac_file in
19803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19805 esac \
19806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19807 ;;
19808
19809
19810
19811 esac
19812
19813
19814 case $ac_file$ac_mode in
19815 "Makefile":F) sed "$extrasub_build" Makefile |
19816 sed "$extrasub_host" |
19817 sed "$extrasub_target" > mf$$
19818 mv -f mf$$ Makefile ;;
19819
19820 esac
19821 done # for ac_tag
19822
19823
19824 as_fn_exit 0
19825 _ACEOF
19826 ac_clean_files=$ac_clean_files_save
19827
19828 test $ac_write_fail = 0 ||
19829 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19830
19831
19832 # configure is writing to config.log, and then calls config.status.
19833 # config.status does its own redirection, appending to config.log.
19834 # Unfortunately, on DOS this fails, as config.log is still kept open
19835 # by configure, so config.status won't be able to write to it; its
19836 # output is simply discarded. So we exec the FD to /dev/null,
19837 # effectively closing config.log, so it can be properly (re)opened and
19838 # appended to by config.status. When coming back to configure, we
19839 # need to make the FD available again.
19840 if test "$no_create" != yes; then
19841 ac_cs_success=:
19842 ac_config_status_args=
19843 test "$silent" = yes &&
19844 ac_config_status_args="$ac_config_status_args --quiet"
19845 exec 5>/dev/null
19846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19847 exec 5>>config.log
19848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19849 # would make configure fail if this is the last instruction.
19850 $ac_cs_success || as_fn_exit 1
19851 fi
19852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19855 fi
19856