]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
Fix profiledbootstrap
[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 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12951
12952 # Target tools.
12953
12954 # Check whether --with-build-time-tools was given.
12955 if test "${with_build_time_tools+set}" = set; then :
12956 withval=$with_build_time_tools; case x"$withval" in
12957 x/*) ;;
12958 *)
12959 with_build_time_tools=
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12961 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12962 ;;
12963 esac
12964 else
12965 with_build_time_tools=
12966 fi
12967
12968
12969
12970
12971 if test -n "$CC_FOR_TARGET"; then
12972 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12973 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12974 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12975 fi
12976
12977 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12978 for ncn_progname in cc gcc; do
12979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12980 set dummy ${ncn_progname}; ac_word=$2
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982 $as_echo_n "checking for $ac_word... " >&6; }
12983 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 if test -n "$CC_FOR_TARGET"; then
12987 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12988 else
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12991 do
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998 break 2
12999 fi
13000 done
13001 done
13002 IFS=$as_save_IFS
13003
13004 fi
13005 fi
13006 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13007 if test -n "$CC_FOR_TARGET"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13009 $as_echo "$CC_FOR_TARGET" >&6; }
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13013 fi
13014
13015
13016 done
13017 fi
13018
13019 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13020 for ncn_progname in cc gcc; do
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13022 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13023 if test -x $with_build_time_tools/${ncn_progname}; then
13024 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13026 $as_echo "yes" >&6; }
13027 break
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032 done
13033 fi
13034
13035 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13036 for ncn_progname in cc gcc; do
13037 if test -n "$ncn_target_tool_prefix"; then
13038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 if test -n "$CC_FOR_TARGET"; then
13046 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13055 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 break 2
13058 fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063 fi
13064 fi
13065 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13066 if test -n "$CC_FOR_TARGET"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13068 $as_echo "$CC_FOR_TARGET" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13072 fi
13073
13074
13075 fi
13076 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13078 set dummy ${ncn_progname}; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test -n "$CC_FOR_TARGET"; then
13085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13089 do
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13094 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13097 fi
13098 done
13099 done
13100 IFS=$as_save_IFS
13101
13102 fi
13103 fi
13104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13105 if test -n "$CC_FOR_TARGET"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13107 $as_echo "$CC_FOR_TARGET" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112
13113
13114 fi
13115 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13116 done
13117 fi
13118
13119 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13120 set dummy cc gcc
13121 if test $build = $target ; then
13122 CC_FOR_TARGET="$2"
13123 else
13124 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13125 fi
13126 else
13127 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13128 fi
13129
13130
13131
13132 if test -n "$CXX_FOR_TARGET"; then
13133 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13134 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13135 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13136 fi
13137
13138 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13139 for ncn_progname in c++ g++ cxx gxx; do
13140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13141 set dummy ${ncn_progname}; ac_word=$2
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143 $as_echo_n "checking for $ac_word... " >&6; }
13144 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 if test -n "$CXX_FOR_TARGET"; then
13148 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13149 else
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $PATH
13152 do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13157 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13160 fi
13161 done
13162 done
13163 IFS=$as_save_IFS
13164
13165 fi
13166 fi
13167 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13168 if test -n "$CXX_FOR_TARGET"; then
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13170 $as_echo "$CXX_FOR_TARGET" >&6; }
13171 else
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174 fi
13175
13176
13177 done
13178 fi
13179
13180 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13181 for ncn_progname in c++ g++ cxx gxx; do
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13183 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13184 if test -x $with_build_time_tools/${ncn_progname}; then
13185 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188 break
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13192 fi
13193 done
13194 fi
13195
13196 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13197 for ncn_progname in c++ g++ cxx gxx; do
13198 if test -n "$ncn_target_tool_prefix"; then
13199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13202 $as_echo_n "checking for $ac_word... " >&6; }
13203 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 if test -n "$CXX_FOR_TARGET"; then
13207 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13208 else
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13211 do
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13216 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13219 fi
13220 done
13221 done
13222 IFS=$as_save_IFS
13223
13224 fi
13225 fi
13226 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13227 if test -n "$CXX_FOR_TARGET"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13229 $as_echo "$CXX_FOR_TARGET" >&6; }
13230 else
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 fi
13234
13235
13236 fi
13237 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 if test -n "$CXX_FOR_TARGET"; then
13246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251 IFS=$as_save_IFS
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257 break 2
13258 fi
13259 done
13260 done
13261 IFS=$as_save_IFS
13262
13263 fi
13264 fi
13265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13266 if test -n "$CXX_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13268 $as_echo "$CXX_FOR_TARGET" >&6; }
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13272 fi
13273
13274
13275 fi
13276 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13277 done
13278 fi
13279
13280 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13281 set dummy c++ g++ cxx gxx
13282 if test $build = $target ; then
13283 CXX_FOR_TARGET="$2"
13284 else
13285 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13286 fi
13287 else
13288 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13289 fi
13290
13291
13292
13293 if test -n "$GCC_FOR_TARGET"; then
13294 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13295 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13296 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13297 fi
13298
13299 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13300 for ncn_progname in gcc; do
13301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13302 set dummy ${ncn_progname}; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$GCC_FOR_TARGET"; then
13309 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13321 fi
13322 done
13323 done
13324 IFS=$as_save_IFS
13325
13326 fi
13327 fi
13328 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13329 if test -n "$GCC_FOR_TARGET"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13331 $as_echo "$GCC_FOR_TARGET" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13335 fi
13336
13337
13338 done
13339 fi
13340
13341 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13342 for ncn_progname in gcc; do
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13344 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13345 if test -x $with_build_time_tools/${ncn_progname}; then
13346 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13348 $as_echo "yes" >&6; }
13349 break
13350 else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13352 $as_echo "no" >&6; }
13353 fi
13354 done
13355 fi
13356
13357 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13358 for ncn_progname in gcc; do
13359 if test -n "$ncn_target_tool_prefix"; then
13360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 if test -n "$GCC_FOR_TARGET"; then
13368 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381 done
13382 done
13383 IFS=$as_save_IFS
13384
13385 fi
13386 fi
13387 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13388 if test -n "$GCC_FOR_TARGET"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13390 $as_echo "$GCC_FOR_TARGET" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13394 fi
13395
13396
13397 fi
13398 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13400 set dummy ${ncn_progname}; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13404 $as_echo_n "(cached) " >&6
13405 else
13406 if test -n "$GCC_FOR_TARGET"; then
13407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 break 2
13419 fi
13420 done
13421 done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13427 if test -n "$GCC_FOR_TARGET"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13429 $as_echo "$GCC_FOR_TARGET" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 fi
13437 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13438 done
13439 fi
13440
13441 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13442 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13443 else
13444 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13445 fi
13446
13447
13448
13449 if test -n "$GFORTRAN_FOR_TARGET"; then
13450 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13451 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13452 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13453 fi
13454
13455 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13456 for ncn_progname in gfortran; do
13457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13458 set dummy ${ncn_progname}; ac_word=$2
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13460 $as_echo_n "checking for $ac_word... " >&6; }
13461 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 if test -n "$GFORTRAN_FOR_TARGET"; then
13465 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13466 else
13467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13468 for as_dir in $PATH
13469 do
13470 IFS=$as_save_IFS
13471 test -z "$as_dir" && as_dir=.
13472 for ac_exec_ext in '' $ac_executable_extensions; do
13473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13474 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 break 2
13477 fi
13478 done
13479 done
13480 IFS=$as_save_IFS
13481
13482 fi
13483 fi
13484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13485 if test -n "$GFORTRAN_FOR_TARGET"; then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13487 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13488 else
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491 fi
13492
13493
13494 done
13495 fi
13496
13497 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13498 for ncn_progname in gfortran; do
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13500 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13501 if test -x $with_build_time_tools/${ncn_progname}; then
13502 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13504 $as_echo "yes" >&6; }
13505 break
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 fi
13510 done
13511 fi
13512
13513 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13514 for ncn_progname in gfortran; do
13515 if test -n "$ncn_target_tool_prefix"; then
13516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13517 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519 $as_echo_n "checking for $ac_word... " >&6; }
13520 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 if test -n "$GFORTRAN_FOR_TARGET"; then
13524 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13525 else
13526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527 for as_dir in $PATH
13528 do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537 done
13538 done
13539 IFS=$as_save_IFS
13540
13541 fi
13542 fi
13543 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13544 if test -n "$GFORTRAN_FOR_TARGET"; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13546 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13549 $as_echo "no" >&6; }
13550 fi
13551
13552
13553 fi
13554 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$GFORTRAN_FOR_TARGET"; then
13563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13567 do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13575 fi
13576 done
13577 done
13578 IFS=$as_save_IFS
13579
13580 fi
13581 fi
13582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13583 if test -n "$GFORTRAN_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591
13592 fi
13593 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13594 done
13595 fi
13596
13597 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13598 set dummy gfortran
13599 if test $build = $target ; then
13600 GFORTRAN_FOR_TARGET="$2"
13601 else
13602 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13603 fi
13604 else
13605 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13606 fi
13607
13608
13609
13610 if test -n "$GOC_FOR_TARGET"; then
13611 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13612 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13613 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13614 fi
13615
13616 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13617 for ncn_progname in gccgo; do
13618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13619 set dummy ${ncn_progname}; ac_word=$2
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621 $as_echo_n "checking for $ac_word... " >&6; }
13622 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 if test -n "$GOC_FOR_TARGET"; then
13626 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13627 else
13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629 for as_dir in $PATH
13630 do
13631 IFS=$as_save_IFS
13632 test -z "$as_dir" && as_dir=.
13633 for ac_exec_ext in '' $ac_executable_extensions; do
13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637 break 2
13638 fi
13639 done
13640 done
13641 IFS=$as_save_IFS
13642
13643 fi
13644 fi
13645 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13646 if test -n "$GOC_FOR_TARGET"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13648 $as_echo "$GOC_FOR_TARGET" >&6; }
13649 else
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653
13654
13655 done
13656 fi
13657
13658 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13659 for ncn_progname in gccgo; do
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13661 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13662 if test -x $with_build_time_tools/${ncn_progname}; then
13663 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13665 $as_echo "yes" >&6; }
13666 break
13667 else
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669 $as_echo "no" >&6; }
13670 fi
13671 done
13672 fi
13673
13674 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13675 for ncn_progname in gccgo; do
13676 if test -n "$ncn_target_tool_prefix"; then
13677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13680 $as_echo_n "checking for $ac_word... " >&6; }
13681 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684 if test -n "$GOC_FOR_TARGET"; then
13685 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13686 else
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13689 do
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13697 fi
13698 done
13699 done
13700 IFS=$as_save_IFS
13701
13702 fi
13703 fi
13704 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13705 if test -n "$GOC_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13707 $as_echo "$GOC_FOR_TARGET" >&6; }
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13711 fi
13712
13713
13714 fi
13715 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$GOC_FOR_TARGET"; then
13724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13728 do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13736 fi
13737 done
13738 done
13739 IFS=$as_save_IFS
13740
13741 fi
13742 fi
13743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13744 if test -n "$GOC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13746 $as_echo "$GOC_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13750 fi
13751
13752
13753 fi
13754 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13755 done
13756 fi
13757
13758 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13759 set dummy gccgo
13760 if test $build = $target ; then
13761 GOC_FOR_TARGET="$2"
13762 else
13763 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13764 fi
13765 else
13766 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13767 fi
13768
13769
13770
13771 if test -n "$GDC_FOR_TARGET"; then
13772 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13773 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13774 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13775 fi
13776
13777 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13778 for ncn_progname in gdc; do
13779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13780 set dummy ${ncn_progname}; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 if test -n "$GDC_FOR_TARGET"; then
13787 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13788 else
13789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13790 for as_dir in $PATH
13791 do
13792 IFS=$as_save_IFS
13793 test -z "$as_dir" && as_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13796 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13798 break 2
13799 fi
13800 done
13801 done
13802 IFS=$as_save_IFS
13803
13804 fi
13805 fi
13806 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13807 if test -n "$GDC_FOR_TARGET"; then
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13809 $as_echo "$GDC_FOR_TARGET" >&6; }
13810 else
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812 $as_echo "no" >&6; }
13813 fi
13814
13815
13816 done
13817 fi
13818
13819 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13820 for ncn_progname in gdc; do
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13822 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13823 if test -x $with_build_time_tools/${ncn_progname}; then
13824 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13826 $as_echo "yes" >&6; }
13827 break
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13831 fi
13832 done
13833 fi
13834
13835 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13836 for ncn_progname in gdc; do
13837 if test -n "$ncn_target_tool_prefix"; then
13838 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13839 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13841 $as_echo_n "checking for $ac_word... " >&6; }
13842 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 if test -n "$GDC_FOR_TARGET"; then
13846 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13847 else
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851 IFS=$as_save_IFS
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13857 break 2
13858 fi
13859 done
13860 done
13861 IFS=$as_save_IFS
13862
13863 fi
13864 fi
13865 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13866 if test -n "$GDC_FOR_TARGET"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13868 $as_echo "$GDC_FOR_TARGET" >&6; }
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13872 fi
13873
13874
13875 fi
13876 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13878 set dummy ${ncn_progname}; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13880 $as_echo_n "checking for $ac_word... " >&6; }
13881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 if test -n "$GDC_FOR_TARGET"; then
13885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13886 else
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13889 do
13890 IFS=$as_save_IFS
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13896 break 2
13897 fi
13898 done
13899 done
13900 IFS=$as_save_IFS
13901
13902 fi
13903 fi
13904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13905 if test -n "$GDC_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13907 $as_echo "$GDC_FOR_TARGET" >&6; }
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910 $as_echo "no" >&6; }
13911 fi
13912
13913
13914 fi
13915 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13916 done
13917 fi
13918
13919 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13920 set dummy gdc
13921 if test $build = $target ; then
13922 GDC_FOR_TARGET="$2"
13923 else
13924 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13925 fi
13926 else
13927 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13928 fi
13929
13930
13931
13932 if test -n "$GM2_FOR_TARGET"; then
13933 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13934 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13935 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13936 fi
13937
13938 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13939 for ncn_progname in gm2; do
13940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13941 set dummy ${ncn_progname}; ac_word=$2
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 if test -n "$GM2_FOR_TARGET"; then
13948 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13952 do
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13960 fi
13961 done
13962 done
13963 IFS=$as_save_IFS
13964
13965 fi
13966 fi
13967 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13968 if test -n "$GM2_FOR_TARGET"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13970 $as_echo "$GM2_FOR_TARGET" >&6; }
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13974 fi
13975
13976
13977 done
13978 fi
13979
13980 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13981 for ncn_progname in gm2; do
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13983 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13984 if test -x $with_build_time_tools/${ncn_progname}; then
13985 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13987 $as_echo "yes" >&6; }
13988 break
13989 else
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 $as_echo "no" >&6; }
13992 fi
13993 done
13994 fi
13995
13996 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13997 for ncn_progname in gm2; do
13998 if test -n "$ncn_target_tool_prefix"; then
13999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002 $as_echo_n "checking for $ac_word... " >&6; }
14003 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 if test -n "$GM2_FOR_TARGET"; then
14007 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14008 else
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14011 do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14019 fi
14020 done
14021 done
14022 IFS=$as_save_IFS
14023
14024 fi
14025 fi
14026 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14027 if test -n "$GM2_FOR_TARGET"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14029 $as_echo "$GM2_FOR_TARGET" >&6; }
14030 else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14033 fi
14034
14035
14036 fi
14037 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14039 set dummy ${ncn_progname}; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$GM2_FOR_TARGET"; then
14046 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14050 do
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14058 fi
14059 done
14060 done
14061 IFS=$as_save_IFS
14062
14063 fi
14064 fi
14065 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14066 if test -n "$GM2_FOR_TARGET"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14068 $as_echo "$GM2_FOR_TARGET" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14072 fi
14073
14074
14075 fi
14076 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14077 done
14078 fi
14079
14080 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14081 set dummy gm2
14082 if test $build = $target ; then
14083 GM2_FOR_TARGET="$2"
14084 else
14085 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14086 fi
14087 else
14088 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14089 fi
14090
14091
14092
14093 cat > conftest.c << \EOF
14094 #ifdef __GNUC__
14095 gcc_yay;
14096 #endif
14097 EOF
14098 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14099 have_gcc_for_target=yes
14100 else
14101 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14102 have_gcc_for_target=no
14103 fi
14104 rm conftest.c
14105
14106
14107
14108
14109 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14110 if test -n "$with_build_time_tools"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14112 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14113 if test -x $with_build_time_tools/ar; then
14114 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14115 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14117 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14118 else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14121 fi
14122 elif test $build != $host && test $have_gcc_for_target = yes; then
14123 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14124 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14125 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14126 fi
14127 fi
14128 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14129 # Extract the first word of "ar", so it can be a program name with args.
14130 set dummy ar; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 case $AR_FOR_TARGET in
14137 [\\/]* | ?:[\\/]*)
14138 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14139 ;;
14140 *)
14141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $gcc_cv_tool_dirs
14143 do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152 done
14153 done
14154 IFS=$as_save_IFS
14155
14156 ;;
14157 esac
14158 fi
14159 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14160 if test -n "$AR_FOR_TARGET"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14162 $as_echo "$AR_FOR_TARGET" >&6; }
14163 else
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167
14168
14169 fi
14170 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14171
14172
14173 if test -n "$AR_FOR_TARGET"; then
14174 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14175 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14176 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14177 fi
14178
14179 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14180 for ncn_progname in ar; do
14181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14182 set dummy ${ncn_progname}; ac_word=$2
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14184 $as_echo_n "checking for $ac_word... " >&6; }
14185 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 if test -n "$AR_FOR_TARGET"; then
14189 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14190 else
14191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14192 for as_dir in $PATH
14193 do
14194 IFS=$as_save_IFS
14195 test -z "$as_dir" && as_dir=.
14196 for ac_exec_ext in '' $ac_executable_extensions; do
14197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14198 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 break 2
14201 fi
14202 done
14203 done
14204 IFS=$as_save_IFS
14205
14206 fi
14207 fi
14208 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14209 if test -n "$AR_FOR_TARGET"; then
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14211 $as_echo "$AR_FOR_TARGET" >&6; }
14212 else
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214 $as_echo "no" >&6; }
14215 fi
14216
14217
14218 done
14219 fi
14220
14221 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14222 for ncn_progname in ar; do
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14224 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14225 if test -x $with_build_time_tools/${ncn_progname}; then
14226 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14228 $as_echo "yes" >&6; }
14229 break
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 fi
14234 done
14235 fi
14236
14237 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14238 for ncn_progname in ar; do
14239 if test -n "$ncn_target_tool_prefix"; then
14240 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14241 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$AR_FOR_TARGET"; then
14248 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14252 do
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14257 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14260 fi
14261 done
14262 done
14263 IFS=$as_save_IFS
14264
14265 fi
14266 fi
14267 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14268 if test -n "$AR_FOR_TARGET"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14270 $as_echo "$AR_FOR_TARGET" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275
14276
14277 fi
14278 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$AR_FOR_TARGET"; then
14287 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14291 do
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14299 fi
14300 done
14301 done
14302 IFS=$as_save_IFS
14303
14304 fi
14305 fi
14306 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14307 if test -n "$AR_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14309 $as_echo "$AR_FOR_TARGET" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14313 fi
14314
14315
14316 fi
14317 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14318 done
14319 fi
14320
14321 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14322 set dummy ar
14323 if test $build = $target ; then
14324 AR_FOR_TARGET="$2"
14325 else
14326 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14327 fi
14328 else
14329 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14330 fi
14331
14332 else
14333 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14334 fi
14335
14336
14337
14338
14339 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14340 if test -n "$with_build_time_tools"; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14342 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14343 if test -x $with_build_time_tools/as; then
14344 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14345 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14347 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14348 else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350 $as_echo "no" >&6; }
14351 fi
14352 elif test $build != $host && test $have_gcc_for_target = yes; then
14353 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14354 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14355 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14356 fi
14357 fi
14358 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14359 # Extract the first word of "as", so it can be a program name with args.
14360 set dummy as; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362 $as_echo_n "checking for $ac_word... " >&6; }
14363 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 case $AS_FOR_TARGET in
14367 [\\/]* | ?:[\\/]*)
14368 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14369 ;;
14370 *)
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $gcc_cv_tool_dirs
14373 do
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14381 fi
14382 done
14383 done
14384 IFS=$as_save_IFS
14385
14386 ;;
14387 esac
14388 fi
14389 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14390 if test -n "$AS_FOR_TARGET"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14392 $as_echo "$AS_FOR_TARGET" >&6; }
14393 else
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14396 fi
14397
14398
14399 fi
14400 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14401
14402
14403 if test -n "$AS_FOR_TARGET"; then
14404 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14405 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14406 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14407 fi
14408
14409 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14410 for ncn_progname in as; do
14411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14412 set dummy ${ncn_progname}; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14414 $as_echo_n "checking for $ac_word... " >&6; }
14415 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 if test -n "$AS_FOR_TARGET"; then
14419 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14420 else
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14423 do
14424 IFS=$as_save_IFS
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14428 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14430 break 2
14431 fi
14432 done
14433 done
14434 IFS=$as_save_IFS
14435
14436 fi
14437 fi
14438 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14439 if test -n "$AS_FOR_TARGET"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14441 $as_echo "$AS_FOR_TARGET" >&6; }
14442 else
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444 $as_echo "no" >&6; }
14445 fi
14446
14447
14448 done
14449 fi
14450
14451 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14452 for ncn_progname in as; do
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14454 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14455 if test -x $with_build_time_tools/${ncn_progname}; then
14456 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14458 $as_echo "yes" >&6; }
14459 break
14460 else
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14463 fi
14464 done
14465 fi
14466
14467 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14468 for ncn_progname in as; do
14469 if test -n "$ncn_target_tool_prefix"; then
14470 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14471 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$AS_FOR_TARGET"; then
14478 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14482 do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14487 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491 done
14492 done
14493 IFS=$as_save_IFS
14494
14495 fi
14496 fi
14497 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14498 if test -n "$AS_FOR_TARGET"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14500 $as_echo "$AS_FOR_TARGET" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 fi
14505
14506
14507 fi
14508 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$AS_FOR_TARGET"; then
14517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14521 do
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14529 fi
14530 done
14531 done
14532 IFS=$as_save_IFS
14533
14534 fi
14535 fi
14536 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14537 if test -n "$AS_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14539 $as_echo "$AS_FOR_TARGET" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543 fi
14544
14545
14546 fi
14547 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14548 done
14549 fi
14550
14551 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14552 set dummy as
14553 if test $build = $target ; then
14554 AS_FOR_TARGET="$2"
14555 else
14556 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14557 fi
14558 else
14559 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14560 fi
14561
14562 else
14563 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14564 fi
14565
14566
14567
14568
14569 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14570 if test -n "$with_build_time_tools"; then
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14572 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14573 if test -x $with_build_time_tools/dlltool; then
14574 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14575 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14577 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14578 else
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14581 fi
14582 elif test $build != $host && test $have_gcc_for_target = yes; then
14583 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14584 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14585 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14586 fi
14587 fi
14588 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14589 # Extract the first word of "dlltool", so it can be a program name with args.
14590 set dummy dlltool; ac_word=$2
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592 $as_echo_n "checking for $ac_word... " >&6; }
14593 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595 else
14596 case $DLLTOOL_FOR_TARGET in
14597 [\\/]* | ?:[\\/]*)
14598 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14599 ;;
14600 *)
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $gcc_cv_tool_dirs
14603 do
14604 IFS=$as_save_IFS
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14608 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14610 break 2
14611 fi
14612 done
14613 done
14614 IFS=$as_save_IFS
14615
14616 ;;
14617 esac
14618 fi
14619 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14620 if test -n "$DLLTOOL_FOR_TARGET"; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14622 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14623 else
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14625 $as_echo "no" >&6; }
14626 fi
14627
14628
14629 fi
14630 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14631
14632
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14635 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14636 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14637 fi
14638
14639 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14640 for ncn_progname in dlltool; do
14641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14642 set dummy ${ncn_progname}; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644 $as_echo_n "checking for $ac_word... " >&6; }
14645 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 if test -n "$DLLTOOL_FOR_TARGET"; then
14649 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14653 do
14654 IFS=$as_save_IFS
14655 test -z "$as_dir" && as_dir=.
14656 for ac_exec_ext in '' $ac_executable_extensions; do
14657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14658 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660 break 2
14661 fi
14662 done
14663 done
14664 IFS=$as_save_IFS
14665
14666 fi
14667 fi
14668 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14669 if test -n "$DLLTOOL_FOR_TARGET"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14671 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14675 fi
14676
14677
14678 done
14679 fi
14680
14681 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14682 for ncn_progname in dlltool; do
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14684 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14685 if test -x $with_build_time_tools/${ncn_progname}; then
14686 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14688 $as_echo "yes" >&6; }
14689 break
14690 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14693 fi
14694 done
14695 fi
14696
14697 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14698 for ncn_progname in dlltool; do
14699 if test -n "$ncn_target_tool_prefix"; then
14700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14701 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 if test -n "$DLLTOOL_FOR_TARGET"; then
14708 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14709 else
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14712 do
14713 IFS=$as_save_IFS
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14717 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 break 2
14720 fi
14721 done
14722 done
14723 IFS=$as_save_IFS
14724
14725 fi
14726 fi
14727 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14728 if test -n "$DLLTOOL_FOR_TARGET"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14730 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14731 else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14734 fi
14735
14736
14737 fi
14738 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 if test -n "$DLLTOOL_FOR_TARGET"; then
14747 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14748 else
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14751 do
14752 IFS=$as_save_IFS
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14758 break 2
14759 fi
14760 done
14761 done
14762 IFS=$as_save_IFS
14763
14764 fi
14765 fi
14766 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14767 if test -n "$DLLTOOL_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14769 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14773 fi
14774
14775
14776 fi
14777 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14778 done
14779 fi
14780
14781 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14782 set dummy dlltool
14783 if test $build = $target ; then
14784 DLLTOOL_FOR_TARGET="$2"
14785 else
14786 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14787 fi
14788 else
14789 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14790 fi
14791
14792 else
14793 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14794 fi
14795
14796
14797
14798
14799 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14800 if test -n "$with_build_time_tools"; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14802 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14803 if test -x $with_build_time_tools/dsymutil; then
14804 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14805 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14807 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14808 else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14811 fi
14812 elif test $build != $host && test $have_gcc_for_target = yes; then
14813 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14814 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14815 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14816 fi
14817 fi
14818 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14819 # Extract the first word of "dsymutil", so it can be a program name with args.
14820 set dummy dsymutil; ac_word=$2
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14822 $as_echo_n "checking for $ac_word... " >&6; }
14823 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 case $DSYMUTIL_FOR_TARGET in
14827 [\\/]* | ?:[\\/]*)
14828 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14829 ;;
14830 *)
14831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832 for as_dir in $gcc_cv_tool_dirs
14833 do
14834 IFS=$as_save_IFS
14835 test -z "$as_dir" && as_dir=.
14836 for ac_exec_ext in '' $ac_executable_extensions; do
14837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14838 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14840 break 2
14841 fi
14842 done
14843 done
14844 IFS=$as_save_IFS
14845
14846 ;;
14847 esac
14848 fi
14849 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14850 if test -n "$DSYMUTIL_FOR_TARGET"; then
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14852 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14853 else
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14855 $as_echo "no" >&6; }
14856 fi
14857
14858
14859 fi
14860 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14861
14862
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14865 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14866 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14867 fi
14868
14869 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14870 for ncn_progname in dsymutil; do
14871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14872 set dummy ${ncn_progname}; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 if test -n "$DSYMUTIL_FOR_TARGET"; then
14879 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14880 else
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14883 do
14884 IFS=$as_save_IFS
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890 break 2
14891 fi
14892 done
14893 done
14894 IFS=$as_save_IFS
14895
14896 fi
14897 fi
14898 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14899 if test -n "$DSYMUTIL_FOR_TARGET"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14901 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14905 fi
14906
14907
14908 done
14909 fi
14910
14911 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14912 for ncn_progname in dsymutil; do
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14914 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14915 if test -x $with_build_time_tools/${ncn_progname}; then
14916 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14918 $as_echo "yes" >&6; }
14919 break
14920 else
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14922 $as_echo "no" >&6; }
14923 fi
14924 done
14925 fi
14926
14927 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14928 for ncn_progname in dsymutil; do
14929 if test -n "$ncn_target_tool_prefix"; then
14930 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14931 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933 $as_echo_n "checking for $ac_word... " >&6; }
14934 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 if test -n "$DSYMUTIL_FOR_TARGET"; then
14938 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14939 else
14940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941 for as_dir in $PATH
14942 do
14943 IFS=$as_save_IFS
14944 test -z "$as_dir" && as_dir=.
14945 for ac_exec_ext in '' $ac_executable_extensions; do
14946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949 break 2
14950 fi
14951 done
14952 done
14953 IFS=$as_save_IFS
14954
14955 fi
14956 fi
14957 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14958 if test -n "$DSYMUTIL_FOR_TARGET"; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14960 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14961 else
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964 fi
14965
14966
14967 fi
14968 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$DSYMUTIL_FOR_TARGET"; then
14977 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
14990 done
14991 done
14992 IFS=$as_save_IFS
14993
14994 fi
14995 fi
14996 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14997 if test -n "$DSYMUTIL_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14999 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15003 fi
15004
15005
15006 fi
15007 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15008 done
15009 fi
15010
15011 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15012 set dummy dsymutil
15013 if test $build = $target ; then
15014 DSYMUTIL_FOR_TARGET="$2"
15015 else
15016 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15017 fi
15018 else
15019 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15020 fi
15021
15022 else
15023 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15024 fi
15025
15026
15027
15028
15029 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15030 if test -n "$with_build_time_tools"; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15032 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15033 if test -x $with_build_time_tools/ld; then
15034 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15035 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15037 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 $as_echo "no" >&6; }
15041 fi
15042 elif test $build != $host && test $have_gcc_for_target = yes; then
15043 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15044 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15045 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15046 fi
15047 fi
15048 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15049 # Extract the first word of "ld", so it can be a program name with args.
15050 set dummy ld; ac_word=$2
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15052 $as_echo_n "checking for $ac_word... " >&6; }
15053 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055 else
15056 case $LD_FOR_TARGET in
15057 [\\/]* | ?:[\\/]*)
15058 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15059 ;;
15060 *)
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $gcc_cv_tool_dirs
15063 do
15064 IFS=$as_save_IFS
15065 test -z "$as_dir" && as_dir=.
15066 for ac_exec_ext in '' $ac_executable_extensions; do
15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15070 break 2
15071 fi
15072 done
15073 done
15074 IFS=$as_save_IFS
15075
15076 ;;
15077 esac
15078 fi
15079 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15080 if test -n "$LD_FOR_TARGET"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15082 $as_echo "$LD_FOR_TARGET" >&6; }
15083 else
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15086 fi
15087
15088
15089 fi
15090 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15091
15092
15093 if test -n "$LD_FOR_TARGET"; then
15094 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15095 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15096 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15097 fi
15098
15099 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15100 for ncn_progname in ld; do
15101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15102 set dummy ${ncn_progname}; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15104 $as_echo_n "checking for $ac_word... " >&6; }
15105 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15106 $as_echo_n "(cached) " >&6
15107 else
15108 if test -n "$LD_FOR_TARGET"; then
15109 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15110 else
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15113 do
15114 IFS=$as_save_IFS
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15120 break 2
15121 fi
15122 done
15123 done
15124 IFS=$as_save_IFS
15125
15126 fi
15127 fi
15128 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15129 if test -n "$LD_FOR_TARGET"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15131 $as_echo "$LD_FOR_TARGET" >&6; }
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15134 $as_echo "no" >&6; }
15135 fi
15136
15137
15138 done
15139 fi
15140
15141 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15142 for ncn_progname in ld; do
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15144 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15145 if test -x $with_build_time_tools/${ncn_progname}; then
15146 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15148 $as_echo "yes" >&6; }
15149 break
15150 else
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152 $as_echo "no" >&6; }
15153 fi
15154 done
15155 fi
15156
15157 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15158 for ncn_progname in ld; do
15159 if test -n "$ncn_target_tool_prefix"; then
15160 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15161 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15163 $as_echo_n "checking for $ac_word... " >&6; }
15164 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 if test -n "$LD_FOR_TARGET"; then
15168 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15169 else
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15172 do
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15180 fi
15181 done
15182 done
15183 IFS=$as_save_IFS
15184
15185 fi
15186 fi
15187 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15188 if test -n "$LD_FOR_TARGET"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15190 $as_echo "$LD_FOR_TARGET" >&6; }
15191 else
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15194 fi
15195
15196
15197 fi
15198 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15202 $as_echo_n "checking for $ac_word... " >&6; }
15203 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 if test -n "$LD_FOR_TARGET"; then
15207 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15208 else
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15211 do
15212 IFS=$as_save_IFS
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15218 break 2
15219 fi
15220 done
15221 done
15222 IFS=$as_save_IFS
15223
15224 fi
15225 fi
15226 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15227 if test -n "$LD_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15229 $as_echo "$LD_FOR_TARGET" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15233 fi
15234
15235
15236 fi
15237 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15238 done
15239 fi
15240
15241 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15242 set dummy ld
15243 if test $build = $target ; then
15244 LD_FOR_TARGET="$2"
15245 else
15246 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15247 fi
15248 else
15249 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15250 fi
15251
15252 else
15253 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15254 fi
15255
15256
15257
15258
15259 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15260 if test -n "$with_build_time_tools"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15262 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15263 if test -x $with_build_time_tools/lipo; then
15264 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15265 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15267 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15268 else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270 $as_echo "no" >&6; }
15271 fi
15272 elif test $build != $host && test $have_gcc_for_target = yes; then
15273 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15274 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15275 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15276 fi
15277 fi
15278 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15279 # Extract the first word of "lipo", so it can be a program name with args.
15280 set dummy lipo; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15282 $as_echo_n "checking for $ac_word... " >&6; }
15283 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 case $LIPO_FOR_TARGET in
15287 [\\/]* | ?:[\\/]*)
15288 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15289 ;;
15290 *)
15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $gcc_cv_tool_dirs
15293 do
15294 IFS=$as_save_IFS
15295 test -z "$as_dir" && as_dir=.
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15298 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15300 break 2
15301 fi
15302 done
15303 done
15304 IFS=$as_save_IFS
15305
15306 ;;
15307 esac
15308 fi
15309 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15310 if test -n "$LIPO_FOR_TARGET"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15312 $as_echo "$LIPO_FOR_TARGET" >&6; }
15313 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 $as_echo "no" >&6; }
15316 fi
15317
15318
15319 fi
15320 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15321
15322
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15325 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15326 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15327 fi
15328
15329 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15330 for ncn_progname in lipo; do
15331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15332 set dummy ${ncn_progname}; ac_word=$2
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15334 $as_echo_n "checking for $ac_word... " >&6; }
15335 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15336 $as_echo_n "(cached) " >&6
15337 else
15338 if test -n "$LIPO_FOR_TARGET"; then
15339 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15340 else
15341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15343 do
15344 IFS=$as_save_IFS
15345 test -z "$as_dir" && as_dir=.
15346 for ac_exec_ext in '' $ac_executable_extensions; do
15347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15348 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15350 break 2
15351 fi
15352 done
15353 done
15354 IFS=$as_save_IFS
15355
15356 fi
15357 fi
15358 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15359 if test -n "$LIPO_FOR_TARGET"; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15361 $as_echo "$LIPO_FOR_TARGET" >&6; }
15362 else
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15364 $as_echo "no" >&6; }
15365 fi
15366
15367
15368 done
15369 fi
15370
15371 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15372 for ncn_progname in lipo; do
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15374 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15375 if test -x $with_build_time_tools/${ncn_progname}; then
15376 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15378 $as_echo "yes" >&6; }
15379 break
15380 else
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382 $as_echo "no" >&6; }
15383 fi
15384 done
15385 fi
15386
15387 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15388 for ncn_progname in lipo; do
15389 if test -n "$ncn_target_tool_prefix"; then
15390 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15391 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 if test -n "$LIPO_FOR_TARGET"; then
15398 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15399 else
15400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15401 for as_dir in $PATH
15402 do
15403 IFS=$as_save_IFS
15404 test -z "$as_dir" && as_dir=.
15405 for ac_exec_ext in '' $ac_executable_extensions; do
15406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15407 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15409 break 2
15410 fi
15411 done
15412 done
15413 IFS=$as_save_IFS
15414
15415 fi
15416 fi
15417 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15418 if test -n "$LIPO_FOR_TARGET"; then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15420 $as_echo "$LIPO_FOR_TARGET" >&6; }
15421 else
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15423 $as_echo "no" >&6; }
15424 fi
15425
15426
15427 fi
15428 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 if test -n "$LIPO_FOR_TARGET"; then
15437 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15438 else
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15441 do
15442 IFS=$as_save_IFS
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15448 break 2
15449 fi
15450 done
15451 done
15452 IFS=$as_save_IFS
15453
15454 fi
15455 fi
15456 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15457 if test -n "$LIPO_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15459 $as_echo "$LIPO_FOR_TARGET" >&6; }
15460 else
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15463 fi
15464
15465
15466 fi
15467 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15468 done
15469 fi
15470
15471 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15472 set dummy lipo
15473 if test $build = $target ; then
15474 LIPO_FOR_TARGET="$2"
15475 else
15476 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15477 fi
15478 else
15479 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15480 fi
15481
15482 else
15483 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15484 fi
15485
15486
15487
15488
15489 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15490 if test -n "$with_build_time_tools"; then
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15492 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15493 if test -x $with_build_time_tools/nm; then
15494 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15495 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15497 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15498 else
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15500 $as_echo "no" >&6; }
15501 fi
15502 elif test $build != $host && test $have_gcc_for_target = yes; then
15503 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15504 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15505 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15506 fi
15507 fi
15508 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15509 # Extract the first word of "nm", so it can be a program name with args.
15510 set dummy nm; ac_word=$2
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15512 $as_echo_n "checking for $ac_word... " >&6; }
15513 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15514 $as_echo_n "(cached) " >&6
15515 else
15516 case $NM_FOR_TARGET in
15517 [\\/]* | ?:[\\/]*)
15518 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15519 ;;
15520 *)
15521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15522 for as_dir in $gcc_cv_tool_dirs
15523 do
15524 IFS=$as_save_IFS
15525 test -z "$as_dir" && as_dir=.
15526 for ac_exec_ext in '' $ac_executable_extensions; do
15527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15528 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15530 break 2
15531 fi
15532 done
15533 done
15534 IFS=$as_save_IFS
15535
15536 ;;
15537 esac
15538 fi
15539 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15540 if test -n "$NM_FOR_TARGET"; then
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15542 $as_echo "$NM_FOR_TARGET" >&6; }
15543 else
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15546 fi
15547
15548
15549 fi
15550 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15551
15552
15553 if test -n "$NM_FOR_TARGET"; then
15554 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15555 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15556 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15557 fi
15558
15559 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15560 for ncn_progname in nm; do
15561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15562 set dummy ${ncn_progname}; ac_word=$2
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15564 $as_echo_n "checking for $ac_word... " >&6; }
15565 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15566 $as_echo_n "(cached) " >&6
15567 else
15568 if test -n "$NM_FOR_TARGET"; then
15569 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15570 else
15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15572 for as_dir in $PATH
15573 do
15574 IFS=$as_save_IFS
15575 test -z "$as_dir" && as_dir=.
15576 for ac_exec_ext in '' $ac_executable_extensions; do
15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15578 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15580 break 2
15581 fi
15582 done
15583 done
15584 IFS=$as_save_IFS
15585
15586 fi
15587 fi
15588 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15589 if test -n "$NM_FOR_TARGET"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15591 $as_echo "$NM_FOR_TARGET" >&6; }
15592 else
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15594 $as_echo "no" >&6; }
15595 fi
15596
15597
15598 done
15599 fi
15600
15601 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15602 for ncn_progname in nm; do
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15604 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15605 if test -x $with_build_time_tools/${ncn_progname}; then
15606 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15608 $as_echo "yes" >&6; }
15609 break
15610 else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15613 fi
15614 done
15615 fi
15616
15617 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15618 for ncn_progname in nm; do
15619 if test -n "$ncn_target_tool_prefix"; then
15620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15621 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 if test -n "$NM_FOR_TARGET"; then
15628 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15629 else
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15632 do
15633 IFS=$as_save_IFS
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15639 break 2
15640 fi
15641 done
15642 done
15643 IFS=$as_save_IFS
15644
15645 fi
15646 fi
15647 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15648 if test -n "$NM_FOR_TARGET"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15650 $as_echo "$NM_FOR_TARGET" >&6; }
15651 else
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15654 fi
15655
15656
15657 fi
15658 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 if test -n "$NM_FOR_TARGET"; then
15667 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15668 else
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15671 do
15672 IFS=$as_save_IFS
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15678 break 2
15679 fi
15680 done
15681 done
15682 IFS=$as_save_IFS
15683
15684 fi
15685 fi
15686 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15687 if test -n "$NM_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15689 $as_echo "$NM_FOR_TARGET" >&6; }
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 fi
15694
15695
15696 fi
15697 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15698 done
15699 fi
15700
15701 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15702 set dummy nm
15703 if test $build = $target ; then
15704 NM_FOR_TARGET="$2"
15705 else
15706 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15707 fi
15708 else
15709 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15710 fi
15711
15712 else
15713 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15714 fi
15715
15716
15717
15718
15719 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15720 if test -n "$with_build_time_tools"; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15722 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15723 if test -x $with_build_time_tools/objcopy; then
15724 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15725 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15727 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15728 else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15731 fi
15732 elif test $build != $host && test $have_gcc_for_target = yes; then
15733 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15734 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15735 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15736 fi
15737 fi
15738 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15739 # Extract the first word of "objcopy", so it can be a program name with args.
15740 set dummy objcopy; ac_word=$2
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15742 $as_echo_n "checking for $ac_word... " >&6; }
15743 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15744 $as_echo_n "(cached) " >&6
15745 else
15746 case $OBJCOPY_FOR_TARGET in
15747 [\\/]* | ?:[\\/]*)
15748 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15749 ;;
15750 *)
15751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752 for as_dir in $gcc_cv_tool_dirs
15753 do
15754 IFS=$as_save_IFS
15755 test -z "$as_dir" && as_dir=.
15756 for ac_exec_ext in '' $ac_executable_extensions; do
15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15760 break 2
15761 fi
15762 done
15763 done
15764 IFS=$as_save_IFS
15765
15766 ;;
15767 esac
15768 fi
15769 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15770 if test -n "$OBJCOPY_FOR_TARGET"; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15772 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15773 else
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775 $as_echo "no" >&6; }
15776 fi
15777
15778
15779 fi
15780 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15781
15782
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15785 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15786 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15787 fi
15788
15789 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15790 for ncn_progname in objcopy; do
15791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15792 set dummy ${ncn_progname}; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15794 $as_echo_n "checking for $ac_word... " >&6; }
15795 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798 if test -n "$OBJCOPY_FOR_TARGET"; then
15799 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15800 else
15801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802 for as_dir in $PATH
15803 do
15804 IFS=$as_save_IFS
15805 test -z "$as_dir" && as_dir=.
15806 for ac_exec_ext in '' $ac_executable_extensions; do
15807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15808 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 break 2
15811 fi
15812 done
15813 done
15814 IFS=$as_save_IFS
15815
15816 fi
15817 fi
15818 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15819 if test -n "$OBJCOPY_FOR_TARGET"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15821 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15822 else
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15825 fi
15826
15827
15828 done
15829 fi
15830
15831 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15832 for ncn_progname in objcopy; do
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15835 if test -x $with_build_time_tools/${ncn_progname}; then
15836 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15838 $as_echo "yes" >&6; }
15839 break
15840 else
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15843 fi
15844 done
15845 fi
15846
15847 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15848 for ncn_progname in objcopy; do
15849 if test -n "$ncn_target_tool_prefix"; then
15850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15853 $as_echo_n "checking for $ac_word... " >&6; }
15854 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 if test -n "$OBJCOPY_FOR_TARGET"; then
15858 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15859 else
15860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15861 for as_dir in $PATH
15862 do
15863 IFS=$as_save_IFS
15864 test -z "$as_dir" && as_dir=.
15865 for ac_exec_ext in '' $ac_executable_extensions; do
15866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15867 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15869 break 2
15870 fi
15871 done
15872 done
15873 IFS=$as_save_IFS
15874
15875 fi
15876 fi
15877 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15878 if test -n "$OBJCOPY_FOR_TARGET"; then
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15880 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15881 else
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883 $as_echo "no" >&6; }
15884 fi
15885
15886
15887 fi
15888 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 if test -n "$OBJCOPY_FOR_TARGET"; then
15897 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15898 else
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15901 do
15902 IFS=$as_save_IFS
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908 break 2
15909 fi
15910 done
15911 done
15912 IFS=$as_save_IFS
15913
15914 fi
15915 fi
15916 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15917 if test -n "$OBJCOPY_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15919 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15920 else
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923 fi
15924
15925
15926 fi
15927 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15928 done
15929 fi
15930
15931 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15932 set dummy objcopy
15933 if test $build = $target ; then
15934 OBJCOPY_FOR_TARGET="$2"
15935 else
15936 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15937 fi
15938 else
15939 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15940 fi
15941
15942 else
15943 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15944 fi
15945
15946
15947
15948
15949 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15950 if test -n "$with_build_time_tools"; then
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15952 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15953 if test -x $with_build_time_tools/objdump; then
15954 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15955 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15957 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15958 else
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15961 fi
15962 elif test $build != $host && test $have_gcc_for_target = yes; then
15963 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15964 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15965 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15966 fi
15967 fi
15968 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15969 # Extract the first word of "objdump", so it can be a program name with args.
15970 set dummy objdump; ac_word=$2
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972 $as_echo_n "checking for $ac_word... " >&6; }
15973 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 case $OBJDUMP_FOR_TARGET in
15977 [\\/]* | ?:[\\/]*)
15978 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15979 ;;
15980 *)
15981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15982 for as_dir in $gcc_cv_tool_dirs
15983 do
15984 IFS=$as_save_IFS
15985 test -z "$as_dir" && as_dir=.
15986 for ac_exec_ext in '' $ac_executable_extensions; do
15987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15988 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15990 break 2
15991 fi
15992 done
15993 done
15994 IFS=$as_save_IFS
15995
15996 ;;
15997 esac
15998 fi
15999 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16000 if test -n "$OBJDUMP_FOR_TARGET"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16002 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16003 else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16005 $as_echo "no" >&6; }
16006 fi
16007
16008
16009 fi
16010 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16011
16012
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16015 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16016 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16017 fi
16018
16019 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16020 for ncn_progname in objdump; do
16021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16022 set dummy ${ncn_progname}; ac_word=$2
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16024 $as_echo_n "checking for $ac_word... " >&6; }
16025 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 if test -n "$OBJDUMP_FOR_TARGET"; then
16029 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16030 else
16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16032 for as_dir in $PATH
16033 do
16034 IFS=$as_save_IFS
16035 test -z "$as_dir" && as_dir=.
16036 for ac_exec_ext in '' $ac_executable_extensions; do
16037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16038 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16040 break 2
16041 fi
16042 done
16043 done
16044 IFS=$as_save_IFS
16045
16046 fi
16047 fi
16048 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16049 if test -n "$OBJDUMP_FOR_TARGET"; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16051 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16052 else
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054 $as_echo "no" >&6; }
16055 fi
16056
16057
16058 done
16059 fi
16060
16061 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16062 for ncn_progname in objdump; do
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16064 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16065 if test -x $with_build_time_tools/${ncn_progname}; then
16066 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16068 $as_echo "yes" >&6; }
16069 break
16070 else
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073 fi
16074 done
16075 fi
16076
16077 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16078 for ncn_progname in objdump; do
16079 if test -n "$ncn_target_tool_prefix"; then
16080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16083 $as_echo_n "checking for $ac_word... " >&6; }
16084 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16085 $as_echo_n "(cached) " >&6
16086 else
16087 if test -n "$OBJDUMP_FOR_TARGET"; then
16088 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16089 else
16090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16091 for as_dir in $PATH
16092 do
16093 IFS=$as_save_IFS
16094 test -z "$as_dir" && as_dir=.
16095 for ac_exec_ext in '' $ac_executable_extensions; do
16096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16097 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16099 break 2
16100 fi
16101 done
16102 done
16103 IFS=$as_save_IFS
16104
16105 fi
16106 fi
16107 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16108 if test -n "$OBJDUMP_FOR_TARGET"; then
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16110 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16111 else
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114 fi
16115
16116
16117 fi
16118 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 if test -n "$OBJDUMP_FOR_TARGET"; then
16127 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16128 else
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 break 2
16139 fi
16140 done
16141 done
16142 IFS=$as_save_IFS
16143
16144 fi
16145 fi
16146 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16147 if test -n "$OBJDUMP_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16149 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16153 fi
16154
16155
16156 fi
16157 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16158 done
16159 fi
16160
16161 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16162 set dummy objdump
16163 if test $build = $target ; then
16164 OBJDUMP_FOR_TARGET="$2"
16165 else
16166 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16167 fi
16168 else
16169 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16170 fi
16171
16172 else
16173 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16174 fi
16175
16176
16177
16178
16179 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16180 if test -n "$with_build_time_tools"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16182 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16183 if test -x $with_build_time_tools/otool; then
16184 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16185 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16187 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16191 fi
16192 elif test $build != $host && test $have_gcc_for_target = yes; then
16193 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16194 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16195 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16196 fi
16197 fi
16198 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16199 # Extract the first word of "otool", so it can be a program name with args.
16200 set dummy otool; ac_word=$2
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16202 $as_echo_n "checking for $ac_word... " >&6; }
16203 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16204 $as_echo_n "(cached) " >&6
16205 else
16206 case $OTOOL_FOR_TARGET in
16207 [\\/]* | ?:[\\/]*)
16208 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16209 ;;
16210 *)
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $gcc_cv_tool_dirs
16213 do
16214 IFS=$as_save_IFS
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16218 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16220 break 2
16221 fi
16222 done
16223 done
16224 IFS=$as_save_IFS
16225
16226 ;;
16227 esac
16228 fi
16229 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16230 if test -n "$OTOOL_FOR_TARGET"; then
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16232 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16233 else
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16235 $as_echo "no" >&6; }
16236 fi
16237
16238
16239 fi
16240 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16241
16242
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16245 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16246 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16247 fi
16248
16249 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16250 for ncn_progname in otool; do
16251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16252 set dummy ${ncn_progname}; ac_word=$2
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16254 $as_echo_n "checking for $ac_word... " >&6; }
16255 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16256 $as_echo_n "(cached) " >&6
16257 else
16258 if test -n "$OTOOL_FOR_TARGET"; then
16259 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16260 else
16261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16262 for as_dir in $PATH
16263 do
16264 IFS=$as_save_IFS
16265 test -z "$as_dir" && as_dir=.
16266 for ac_exec_ext in '' $ac_executable_extensions; do
16267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16268 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16270 break 2
16271 fi
16272 done
16273 done
16274 IFS=$as_save_IFS
16275
16276 fi
16277 fi
16278 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16279 if test -n "$OTOOL_FOR_TARGET"; then
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16281 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16282 else
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16285 fi
16286
16287
16288 done
16289 fi
16290
16291 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16292 for ncn_progname in otool; do
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16295 if test -x $with_build_time_tools/${ncn_progname}; then
16296 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299 break
16300 else
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16303 fi
16304 done
16305 fi
16306
16307 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16308 for ncn_progname in otool; do
16309 if test -n "$ncn_target_tool_prefix"; then
16310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 if test -n "$OTOOL_FOR_TARGET"; then
16318 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323 IFS=$as_save_IFS
16324 test -z "$as_dir" && as_dir=.
16325 for ac_exec_ext in '' $ac_executable_extensions; do
16326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16327 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16329 break 2
16330 fi
16331 done
16332 done
16333 IFS=$as_save_IFS
16334
16335 fi
16336 fi
16337 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16338 if test -n "$OTOOL_FOR_TARGET"; then
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16340 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16341 else
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16343 $as_echo "no" >&6; }
16344 fi
16345
16346
16347 fi
16348 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 if test -n "$OTOOL_FOR_TARGET"; then
16357 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16358 else
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16361 do
16362 IFS=$as_save_IFS
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16368 break 2
16369 fi
16370 done
16371 done
16372 IFS=$as_save_IFS
16373
16374 fi
16375 fi
16376 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16377 if test -n "$OTOOL_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16379 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16380 else
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16383 fi
16384
16385
16386 fi
16387 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16388 done
16389 fi
16390
16391 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16392 set dummy otool
16393 if test $build = $target ; then
16394 OTOOL_FOR_TARGET="$2"
16395 else
16396 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16397 fi
16398 else
16399 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16400 fi
16401
16402 else
16403 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16404 fi
16405
16406
16407
16408
16409 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16410 if test -n "$with_build_time_tools"; then
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16412 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16413 if test -x $with_build_time_tools/ranlib; then
16414 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16415 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16417 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16418 else
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420 $as_echo "no" >&6; }
16421 fi
16422 elif test $build != $host && test $have_gcc_for_target = yes; then
16423 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16424 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16425 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16426 fi
16427 fi
16428 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16429 # Extract the first word of "ranlib", so it can be a program name with args.
16430 set dummy ranlib; ac_word=$2
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16432 $as_echo_n "checking for $ac_word... " >&6; }
16433 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16434 $as_echo_n "(cached) " >&6
16435 else
16436 case $RANLIB_FOR_TARGET in
16437 [\\/]* | ?:[\\/]*)
16438 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16439 ;;
16440 *)
16441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $gcc_cv_tool_dirs
16443 do
16444 IFS=$as_save_IFS
16445 test -z "$as_dir" && as_dir=.
16446 for ac_exec_ext in '' $ac_executable_extensions; do
16447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16448 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16450 break 2
16451 fi
16452 done
16453 done
16454 IFS=$as_save_IFS
16455
16456 ;;
16457 esac
16458 fi
16459 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16460 if test -n "$RANLIB_FOR_TARGET"; then
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16462 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16463 else
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16466 fi
16467
16468
16469 fi
16470 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16471
16472
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16475 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16476 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16477 fi
16478
16479 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16480 for ncn_progname in ranlib; do
16481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16482 set dummy ${ncn_progname}; ac_word=$2
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16484 $as_echo_n "checking for $ac_word... " >&6; }
16485 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16486 $as_echo_n "(cached) " >&6
16487 else
16488 if test -n "$RANLIB_FOR_TARGET"; then
16489 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16490 else
16491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16492 for as_dir in $PATH
16493 do
16494 IFS=$as_save_IFS
16495 test -z "$as_dir" && as_dir=.
16496 for ac_exec_ext in '' $ac_executable_extensions; do
16497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16498 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16500 break 2
16501 fi
16502 done
16503 done
16504 IFS=$as_save_IFS
16505
16506 fi
16507 fi
16508 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16509 if test -n "$RANLIB_FOR_TARGET"; then
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16511 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16512 else
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16514 $as_echo "no" >&6; }
16515 fi
16516
16517
16518 done
16519 fi
16520
16521 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16522 for ncn_progname in ranlib; do
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16525 if test -x $with_build_time_tools/${ncn_progname}; then
16526 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16528 $as_echo "yes" >&6; }
16529 break
16530 else
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16532 $as_echo "no" >&6; }
16533 fi
16534 done
16535 fi
16536
16537 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16538 for ncn_progname in ranlib; do
16539 if test -n "$ncn_target_tool_prefix"; then
16540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 if test -n "$RANLIB_FOR_TARGET"; then
16548 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16549 else
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16552 do
16553 IFS=$as_save_IFS
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16559 break 2
16560 fi
16561 done
16562 done
16563 IFS=$as_save_IFS
16564
16565 fi
16566 fi
16567 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16568 if test -n "$RANLIB_FOR_TARGET"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16570 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16571 else
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 fi
16575
16576
16577 fi
16578 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 if test -n "$RANLIB_FOR_TARGET"; then
16587 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16588 else
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16591 do
16592 IFS=$as_save_IFS
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598 break 2
16599 fi
16600 done
16601 done
16602 IFS=$as_save_IFS
16603
16604 fi
16605 fi
16606 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16607 if test -n "$RANLIB_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16609 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16610 else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 fi
16614
16615
16616 fi
16617 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16618 done
16619 fi
16620
16621 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16622 set dummy ranlib
16623 if test $build = $target ; then
16624 RANLIB_FOR_TARGET="$2"
16625 else
16626 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16627 fi
16628 else
16629 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16630 fi
16631
16632 else
16633 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16634 fi
16635
16636
16637
16638
16639 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16640 if test -n "$with_build_time_tools"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16642 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16643 if test -x $with_build_time_tools/readelf; then
16644 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16645 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16647 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16648 else
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651 fi
16652 elif test $build != $host && test $have_gcc_for_target = yes; then
16653 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16654 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16655 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16656 fi
16657 fi
16658 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16659 # Extract the first word of "readelf", so it can be a program name with args.
16660 set dummy readelf; ac_word=$2
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16662 $as_echo_n "checking for $ac_word... " >&6; }
16663 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16664 $as_echo_n "(cached) " >&6
16665 else
16666 case $READELF_FOR_TARGET in
16667 [\\/]* | ?:[\\/]*)
16668 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16669 ;;
16670 *)
16671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16672 for as_dir in $gcc_cv_tool_dirs
16673 do
16674 IFS=$as_save_IFS
16675 test -z "$as_dir" && as_dir=.
16676 for ac_exec_ext in '' $ac_executable_extensions; do
16677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16678 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16680 break 2
16681 fi
16682 done
16683 done
16684 IFS=$as_save_IFS
16685
16686 ;;
16687 esac
16688 fi
16689 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16690 if test -n "$READELF_FOR_TARGET"; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16692 $as_echo "$READELF_FOR_TARGET" >&6; }
16693 else
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 $as_echo "no" >&6; }
16696 fi
16697
16698
16699 fi
16700 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16701
16702
16703 if test -n "$READELF_FOR_TARGET"; then
16704 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16705 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16706 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16707 fi
16708
16709 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16710 for ncn_progname in readelf; do
16711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16712 set dummy ${ncn_progname}; ac_word=$2
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16714 $as_echo_n "checking for $ac_word... " >&6; }
16715 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16716 $as_echo_n "(cached) " >&6
16717 else
16718 if test -n "$READELF_FOR_TARGET"; then
16719 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16720 else
16721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16722 for as_dir in $PATH
16723 do
16724 IFS=$as_save_IFS
16725 test -z "$as_dir" && as_dir=.
16726 for ac_exec_ext in '' $ac_executable_extensions; do
16727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16728 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16730 break 2
16731 fi
16732 done
16733 done
16734 IFS=$as_save_IFS
16735
16736 fi
16737 fi
16738 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16739 if test -n "$READELF_FOR_TARGET"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16741 $as_echo "$READELF_FOR_TARGET" >&6; }
16742 else
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16744 $as_echo "no" >&6; }
16745 fi
16746
16747
16748 done
16749 fi
16750
16751 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16752 for ncn_progname in readelf; do
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16755 if test -x $with_build_time_tools/${ncn_progname}; then
16756 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16759 break
16760 else
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16763 fi
16764 done
16765 fi
16766
16767 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16768 for ncn_progname in readelf; do
16769 if test -n "$ncn_target_tool_prefix"; then
16770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 if test -n "$READELF_FOR_TARGET"; then
16778 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16779 else
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16782 do
16783 IFS=$as_save_IFS
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16789 break 2
16790 fi
16791 done
16792 done
16793 IFS=$as_save_IFS
16794
16795 fi
16796 fi
16797 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16798 if test -n "$READELF_FOR_TARGET"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16800 $as_echo "$READELF_FOR_TARGET" >&6; }
16801 else
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16803 $as_echo "no" >&6; }
16804 fi
16805
16806
16807 fi
16808 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 if test -n "$READELF_FOR_TARGET"; then
16817 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16818 else
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16821 do
16822 IFS=$as_save_IFS
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828 break 2
16829 fi
16830 done
16831 done
16832 IFS=$as_save_IFS
16833
16834 fi
16835 fi
16836 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16837 if test -n "$READELF_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16839 $as_echo "$READELF_FOR_TARGET" >&6; }
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16843 fi
16844
16845
16846 fi
16847 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16848 done
16849 fi
16850
16851 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16852 set dummy readelf
16853 if test $build = $target ; then
16854 READELF_FOR_TARGET="$2"
16855 else
16856 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16857 fi
16858 else
16859 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16860 fi
16861
16862 else
16863 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16864 fi
16865
16866
16867
16868
16869 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16870 if test -n "$with_build_time_tools"; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16872 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16873 if test -x $with_build_time_tools/strip; then
16874 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16875 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16877 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16878 else
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16881 fi
16882 elif test $build != $host && test $have_gcc_for_target = yes; then
16883 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16884 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16885 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16886 fi
16887 fi
16888 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16889 # Extract the first word of "strip", so it can be a program name with args.
16890 set dummy strip; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 case $STRIP_FOR_TARGET in
16897 [\\/]* | ?:[\\/]*)
16898 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16899 ;;
16900 *)
16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in $gcc_cv_tool_dirs
16903 do
16904 IFS=$as_save_IFS
16905 test -z "$as_dir" && as_dir=.
16906 for ac_exec_ext in '' $ac_executable_extensions; do
16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16908 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16910 break 2
16911 fi
16912 done
16913 done
16914 IFS=$as_save_IFS
16915
16916 ;;
16917 esac
16918 fi
16919 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16920 if test -n "$STRIP_FOR_TARGET"; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16922 $as_echo "$STRIP_FOR_TARGET" >&6; }
16923 else
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925 $as_echo "no" >&6; }
16926 fi
16927
16928
16929 fi
16930 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16931
16932
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16935 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16936 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16937 fi
16938
16939 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16940 for ncn_progname in strip; do
16941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16942 set dummy ${ncn_progname}; ac_word=$2
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16944 $as_echo_n "checking for $ac_word... " >&6; }
16945 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16946 $as_echo_n "(cached) " >&6
16947 else
16948 if test -n "$STRIP_FOR_TARGET"; then
16949 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16950 else
16951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16953 do
16954 IFS=$as_save_IFS
16955 test -z "$as_dir" && as_dir=.
16956 for ac_exec_ext in '' $ac_executable_extensions; do
16957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16958 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16960 break 2
16961 fi
16962 done
16963 done
16964 IFS=$as_save_IFS
16965
16966 fi
16967 fi
16968 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16969 if test -n "$STRIP_FOR_TARGET"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16971 $as_echo "$STRIP_FOR_TARGET" >&6; }
16972 else
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16975 fi
16976
16977
16978 done
16979 fi
16980
16981 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16982 for ncn_progname in strip; do
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16985 if test -x $with_build_time_tools/${ncn_progname}; then
16986 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16988 $as_echo "yes" >&6; }
16989 break
16990 else
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16993 fi
16994 done
16995 fi
16996
16997 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16998 for ncn_progname in strip; do
16999 if test -n "$ncn_target_tool_prefix"; then
17000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17003 $as_echo_n "checking for $ac_word... " >&6; }
17004 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 if test -n "$STRIP_FOR_TARGET"; then
17008 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17009 else
17010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17011 for as_dir in $PATH
17012 do
17013 IFS=$as_save_IFS
17014 test -z "$as_dir" && as_dir=.
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019 break 2
17020 fi
17021 done
17022 done
17023 IFS=$as_save_IFS
17024
17025 fi
17026 fi
17027 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17028 if test -n "$STRIP_FOR_TARGET"; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17030 $as_echo "$STRIP_FOR_TARGET" >&6; }
17031 else
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034 fi
17035
17036
17037 fi
17038 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached) " >&6
17045 else
17046 if test -n "$STRIP_FOR_TARGET"; then
17047 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17048 else
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17051 do
17052 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17058 break 2
17059 fi
17060 done
17061 done
17062 IFS=$as_save_IFS
17063
17064 fi
17065 fi
17066 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17067 if test -n "$STRIP_FOR_TARGET"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17069 $as_echo "$STRIP_FOR_TARGET" >&6; }
17070 else
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072 $as_echo "no" >&6; }
17073 fi
17074
17075
17076 fi
17077 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17078 done
17079 fi
17080
17081 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17082 set dummy strip
17083 if test $build = $target ; then
17084 STRIP_FOR_TARGET="$2"
17085 else
17086 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17087 fi
17088 else
17089 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17090 fi
17091
17092 else
17093 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17094 fi
17095
17096
17097
17098
17099 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17100 if test -n "$with_build_time_tools"; then
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17102 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17103 if test -x $with_build_time_tools/windres; then
17104 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17105 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17107 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17108 else
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17110 $as_echo "no" >&6; }
17111 fi
17112 elif test $build != $host && test $have_gcc_for_target = yes; then
17113 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17114 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17115 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17116 fi
17117 fi
17118 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17119 # Extract the first word of "windres", so it can be a program name with args.
17120 set dummy windres; ac_word=$2
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17122 $as_echo_n "checking for $ac_word... " >&6; }
17123 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17124 $as_echo_n "(cached) " >&6
17125 else
17126 case $WINDRES_FOR_TARGET in
17127 [\\/]* | ?:[\\/]*)
17128 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17129 ;;
17130 *)
17131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17132 for as_dir in $gcc_cv_tool_dirs
17133 do
17134 IFS=$as_save_IFS
17135 test -z "$as_dir" && as_dir=.
17136 for ac_exec_ext in '' $ac_executable_extensions; do
17137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17138 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17140 break 2
17141 fi
17142 done
17143 done
17144 IFS=$as_save_IFS
17145
17146 ;;
17147 esac
17148 fi
17149 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17150 if test -n "$WINDRES_FOR_TARGET"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17152 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17153 else
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155 $as_echo "no" >&6; }
17156 fi
17157
17158
17159 fi
17160 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17161
17162
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17165 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17166 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17167 fi
17168
17169 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17170 for ncn_progname in windres; do
17171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17172 set dummy ${ncn_progname}; ac_word=$2
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17174 $as_echo_n "checking for $ac_word... " >&6; }
17175 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 if test -n "$WINDRES_FOR_TARGET"; then
17179 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17180 else
17181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17183 do
17184 IFS=$as_save_IFS
17185 test -z "$as_dir" && as_dir=.
17186 for ac_exec_ext in '' $ac_executable_extensions; do
17187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17188 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17190 break 2
17191 fi
17192 done
17193 done
17194 IFS=$as_save_IFS
17195
17196 fi
17197 fi
17198 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17199 if test -n "$WINDRES_FOR_TARGET"; then
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17201 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17202 else
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17204 $as_echo "no" >&6; }
17205 fi
17206
17207
17208 done
17209 fi
17210
17211 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17212 for ncn_progname in windres; do
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17215 if test -x $with_build_time_tools/${ncn_progname}; then
17216 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17218 $as_echo "yes" >&6; }
17219 break
17220 else
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17223 fi
17224 done
17225 fi
17226
17227 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17228 for ncn_progname in windres; do
17229 if test -n "$ncn_target_tool_prefix"; then
17230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17233 $as_echo_n "checking for $ac_word... " >&6; }
17234 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17235 $as_echo_n "(cached) " >&6
17236 else
17237 if test -n "$WINDRES_FOR_TARGET"; then
17238 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17239 else
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17242 do
17243 IFS=$as_save_IFS
17244 test -z "$as_dir" && as_dir=.
17245 for ac_exec_ext in '' $ac_executable_extensions; do
17246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17247 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17249 break 2
17250 fi
17251 done
17252 done
17253 IFS=$as_save_IFS
17254
17255 fi
17256 fi
17257 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17258 if test -n "$WINDRES_FOR_TARGET"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17260 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17261 else
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17263 $as_echo "no" >&6; }
17264 fi
17265
17266
17267 fi
17268 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272 $as_echo_n "checking for $ac_word... " >&6; }
17273 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached) " >&6
17275 else
17276 if test -n "$WINDRES_FOR_TARGET"; then
17277 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17278 else
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17281 do
17282 IFS=$as_save_IFS
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288 break 2
17289 fi
17290 done
17291 done
17292 IFS=$as_save_IFS
17293
17294 fi
17295 fi
17296 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17297 if test -n "$WINDRES_FOR_TARGET"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17299 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17300 else
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17302 $as_echo "no" >&6; }
17303 fi
17304
17305
17306 fi
17307 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17308 done
17309 fi
17310
17311 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17312 set dummy windres
17313 if test $build = $target ; then
17314 WINDRES_FOR_TARGET="$2"
17315 else
17316 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17317 fi
17318 else
17319 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17320 fi
17321
17322 else
17323 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17324 fi
17325
17326
17327
17328
17329 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17330 if test -n "$with_build_time_tools"; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17332 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17333 if test -x $with_build_time_tools/windmc; then
17334 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17335 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17337 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17338 else
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17340 $as_echo "no" >&6; }
17341 fi
17342 elif test $build != $host && test $have_gcc_for_target = yes; then
17343 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17344 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17345 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17346 fi
17347 fi
17348 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17349 # Extract the first word of "windmc", so it can be a program name with args.
17350 set dummy windmc; ac_word=$2
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17352 $as_echo_n "checking for $ac_word... " >&6; }
17353 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17354 $as_echo_n "(cached) " >&6
17355 else
17356 case $WINDMC_FOR_TARGET in
17357 [\\/]* | ?:[\\/]*)
17358 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17359 ;;
17360 *)
17361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17362 for as_dir in $gcc_cv_tool_dirs
17363 do
17364 IFS=$as_save_IFS
17365 test -z "$as_dir" && as_dir=.
17366 for ac_exec_ext in '' $ac_executable_extensions; do
17367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17368 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17370 break 2
17371 fi
17372 done
17373 done
17374 IFS=$as_save_IFS
17375
17376 ;;
17377 esac
17378 fi
17379 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17380 if test -n "$WINDMC_FOR_TARGET"; then
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17382 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17383 else
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385 $as_echo "no" >&6; }
17386 fi
17387
17388
17389 fi
17390 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17391
17392
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17395 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17396 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17397 fi
17398
17399 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17400 for ncn_progname in windmc; do
17401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17402 set dummy ${ncn_progname}; ac_word=$2
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17404 $as_echo_n "checking for $ac_word... " >&6; }
17405 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17406 $as_echo_n "(cached) " >&6
17407 else
17408 if test -n "$WINDMC_FOR_TARGET"; then
17409 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17410 else
17411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412 for as_dir in $PATH
17413 do
17414 IFS=$as_save_IFS
17415 test -z "$as_dir" && as_dir=.
17416 for ac_exec_ext in '' $ac_executable_extensions; do
17417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17418 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17420 break 2
17421 fi
17422 done
17423 done
17424 IFS=$as_save_IFS
17425
17426 fi
17427 fi
17428 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17429 if test -n "$WINDMC_FOR_TARGET"; then
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17431 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17432 else
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17434 $as_echo "no" >&6; }
17435 fi
17436
17437
17438 done
17439 fi
17440
17441 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17442 for ncn_progname in windmc; do
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17445 if test -x $with_build_time_tools/${ncn_progname}; then
17446 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17448 $as_echo "yes" >&6; }
17449 break
17450 else
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17452 $as_echo "no" >&6; }
17453 fi
17454 done
17455 fi
17456
17457 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17458 for ncn_progname in windmc; do
17459 if test -n "$ncn_target_tool_prefix"; then
17460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17463 $as_echo_n "checking for $ac_word... " >&6; }
17464 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17465 $as_echo_n "(cached) " >&6
17466 else
17467 if test -n "$WINDMC_FOR_TARGET"; then
17468 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17469 else
17470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17471 for as_dir in $PATH
17472 do
17473 IFS=$as_save_IFS
17474 test -z "$as_dir" && as_dir=.
17475 for ac_exec_ext in '' $ac_executable_extensions; do
17476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17477 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17479 break 2
17480 fi
17481 done
17482 done
17483 IFS=$as_save_IFS
17484
17485 fi
17486 fi
17487 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17488 if test -n "$WINDMC_FOR_TARGET"; then
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17490 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17491 else
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17493 $as_echo "no" >&6; }
17494 fi
17495
17496
17497 fi
17498 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17500 set dummy ${ncn_progname}; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17502 $as_echo_n "checking for $ac_word... " >&6; }
17503 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 if test -n "$WINDMC_FOR_TARGET"; then
17507 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17508 else
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510 for as_dir in $PATH
17511 do
17512 IFS=$as_save_IFS
17513 test -z "$as_dir" && as_dir=.
17514 for ac_exec_ext in '' $ac_executable_extensions; do
17515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17516 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17518 break 2
17519 fi
17520 done
17521 done
17522 IFS=$as_save_IFS
17523
17524 fi
17525 fi
17526 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17527 if test -n "$WINDMC_FOR_TARGET"; then
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17529 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17530 else
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534
17535
17536 fi
17537 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17538 done
17539 fi
17540
17541 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17542 set dummy windmc
17543 if test $build = $target ; then
17544 WINDMC_FOR_TARGET="$2"
17545 else
17546 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17547 fi
17548 else
17549 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17550 fi
17551
17552 else
17553 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17554 fi
17555
17556
17557 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17558
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17560 $as_echo_n "checking where to find the target ar... " >&6; }
17561 if test "x${build}" != "x${host}" ; then
17562 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17563 # We already found the complete path
17564 ac_dir=`dirname $AR_FOR_TARGET`
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17566 $as_echo "pre-installed in $ac_dir" >&6; }
17567 else
17568 # Canadian cross, just use what we found
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17570 $as_echo "pre-installed" >&6; }
17571 fi
17572 else
17573 ok=yes
17574 case " ${configdirs} " in
17575 *" binutils "*) ;;
17576 *) ok=no ;;
17577 esac
17578
17579 if test $ok = yes; then
17580 # An in-tree tool is available and we can use it
17581 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17583 $as_echo "just compiled" >&6; }
17584 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17585 # We already found the complete path
17586 ac_dir=`dirname $AR_FOR_TARGET`
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17588 $as_echo "pre-installed in $ac_dir" >&6; }
17589 elif test "x$target" = "x$host"; then
17590 # We can use an host tool
17591 AR_FOR_TARGET='$(AR)'
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17593 $as_echo "host tool" >&6; }
17594 else
17595 # We need a cross tool
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17597 $as_echo "pre-installed" >&6; }
17598 fi
17599 fi
17600
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17602 $as_echo_n "checking where to find the target as... " >&6; }
17603 if test "x${build}" != "x${host}" ; then
17604 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17605 # We already found the complete path
17606 ac_dir=`dirname $AS_FOR_TARGET`
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17608 $as_echo "pre-installed in $ac_dir" >&6; }
17609 else
17610 # Canadian cross, just use what we found
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17612 $as_echo "pre-installed" >&6; }
17613 fi
17614 else
17615 ok=yes
17616 case " ${configdirs} " in
17617 *" gas "*) ;;
17618 *) ok=no ;;
17619 esac
17620
17621 if test $ok = yes; then
17622 # An in-tree tool is available and we can use it
17623 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17625 $as_echo "just compiled" >&6; }
17626 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17627 # We already found the complete path
17628 ac_dir=`dirname $AS_FOR_TARGET`
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17630 $as_echo "pre-installed in $ac_dir" >&6; }
17631 elif test "x$target" = "x$host"; then
17632 # We can use an host tool
17633 AS_FOR_TARGET='$(AS)'
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17635 $as_echo "host tool" >&6; }
17636 else
17637 # We need a cross tool
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17639 $as_echo "pre-installed" >&6; }
17640 fi
17641 fi
17642
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17644 $as_echo_n "checking where to find the target cc... " >&6; }
17645 if test "x${build}" != "x${host}" ; then
17646 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17647 # We already found the complete path
17648 ac_dir=`dirname $CC_FOR_TARGET`
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17650 $as_echo "pre-installed in $ac_dir" >&6; }
17651 else
17652 # Canadian cross, just use what we found
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17654 $as_echo "pre-installed" >&6; }
17655 fi
17656 else
17657 ok=yes
17658 case " ${configdirs} " in
17659 *" gcc "*) ;;
17660 *) ok=no ;;
17661 esac
17662
17663 if test $ok = yes; then
17664 # An in-tree tool is available and we can use it
17665 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17667 $as_echo "just compiled" >&6; }
17668 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17669 # We already found the complete path
17670 ac_dir=`dirname $CC_FOR_TARGET`
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17672 $as_echo "pre-installed in $ac_dir" >&6; }
17673 elif test "x$target" = "x$host"; then
17674 # We can use an host tool
17675 CC_FOR_TARGET='$(CC)'
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17677 $as_echo "host tool" >&6; }
17678 else
17679 # We need a cross tool
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17681 $as_echo "pre-installed" >&6; }
17682 fi
17683 fi
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17686 $as_echo_n "checking where to find the target c++... " >&6; }
17687 if test "x${build}" != "x${host}" ; then
17688 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $CXX_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692 $as_echo "pre-installed in $ac_dir" >&6; }
17693 else
17694 # Canadian cross, just use what we found
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17696 $as_echo "pre-installed" >&6; }
17697 fi
17698 else
17699 ok=yes
17700 case " ${configdirs} " in
17701 *" gcc "*) ;;
17702 *) ok=no ;;
17703 esac
17704 case ,${enable_languages}, in
17705 *,c++,*) ;;
17706 *) ok=no ;;
17707 esac
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 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'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712 $as_echo "just compiled" >&6; }
17713 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $CXX_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 CXX_FOR_TARGET='$(CXX)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722 $as_echo "host tool" >&6; }
17723 else
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17727 fi
17728 fi
17729
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17731 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17732 if test "x${build}" != "x${host}" ; then
17733 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738 else
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741 $as_echo "pre-installed" >&6; }
17742 fi
17743 else
17744 ok=yes
17745 case " ${configdirs} " in
17746 *" gcc "*) ;;
17747 *) ok=no ;;
17748 esac
17749 case ,${enable_languages}, in
17750 *,c++,*) ;;
17751 *) ok=no ;;
17752 esac
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 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'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757 $as_echo "just compiled" >&6; }
17758 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 RAW_CXX_FOR_TARGET='$(CXX)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767 $as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771 $as_echo "pre-installed" >&6; }
17772 fi
17773 fi
17774
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17776 $as_echo_n "checking where to find the target dlltool... " >&6; }
17777 if test "x${build}" != "x${host}" ; then
17778 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786 $as_echo "pre-installed" >&6; }
17787 fi
17788 else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" binutils "*) ;;
17792 *) ok=no ;;
17793 esac
17794
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799 $as_echo "just compiled" >&6; }
17800 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804 $as_echo "pre-installed in $ac_dir" >&6; }
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
17807 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809 $as_echo "host tool" >&6; }
17810 else
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813 $as_echo "pre-installed" >&6; }
17814 fi
17815 fi
17816
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17818 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17819 if test "x${build}" != "x${host}" ; then
17820 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825 else
17826 # Canadian cross, just use what we found
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828 $as_echo "pre-installed" >&6; }
17829 fi
17830 else
17831 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17832 # We already found the complete path
17833 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17835 $as_echo "pre-installed in $ac_dir" >&6; }
17836 elif test "x$target" = "x$host"; then
17837 # We can use an host tool
17838 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17840 $as_echo "host tool" >&6; }
17841 else
17842 # We need a cross tool
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17844 $as_echo "pre-installed" >&6; }
17845 fi
17846 fi
17847
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17849 $as_echo_n "checking where to find the target gcc... " >&6; }
17850 if test "x${build}" != "x${host}" ; then
17851 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $GCC_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17855 $as_echo "pre-installed in $ac_dir" >&6; }
17856 else
17857 # Canadian cross, just use what we found
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17859 $as_echo "pre-installed" >&6; }
17860 fi
17861 else
17862 ok=yes
17863 case " ${configdirs} " in
17864 *" gcc "*) ;;
17865 *) ok=no ;;
17866 esac
17867
17868 if test $ok = yes; then
17869 # An in-tree tool is available and we can use it
17870 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17872 $as_echo "just compiled" >&6; }
17873 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $GCC_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877 $as_echo "pre-installed in $ac_dir" >&6; }
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 GCC_FOR_TARGET='$()'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882 $as_echo "host tool" >&6; }
17883 else
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17887 fi
17888 fi
17889
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17891 $as_echo_n "checking where to find the target gfortran... " >&6; }
17892 if test "x${build}" != "x${host}" ; then
17893 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898 else
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901 $as_echo "pre-installed" >&6; }
17902 fi
17903 else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" gcc "*) ;;
17907 *) ok=no ;;
17908 esac
17909 case ,${enable_languages}, in
17910 *,fortran,*) ;;
17911 *) ok=no ;;
17912 esac
17913 if test $ok = yes; then
17914 # An in-tree tool is available and we can use it
17915 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17917 $as_echo "just compiled" >&6; }
17918 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17919 # We already found the complete path
17920 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17922 $as_echo "pre-installed in $ac_dir" >&6; }
17923 elif test "x$target" = "x$host"; then
17924 # We can use an host tool
17925 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17927 $as_echo "host tool" >&6; }
17928 else
17929 # We need a cross tool
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17931 $as_echo "pre-installed" >&6; }
17932 fi
17933 fi
17934
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17936 $as_echo_n "checking where to find the target gccgo... " >&6; }
17937 if test "x${build}" != "x${host}" ; then
17938 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17939 # We already found the complete path
17940 ac_dir=`dirname $GOC_FOR_TARGET`
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17942 $as_echo "pre-installed in $ac_dir" >&6; }
17943 else
17944 # Canadian cross, just use what we found
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17946 $as_echo "pre-installed" >&6; }
17947 fi
17948 else
17949 ok=yes
17950 case " ${configdirs} " in
17951 *" gcc "*) ;;
17952 *) ok=no ;;
17953 esac
17954 case ,${enable_languages}, in
17955 *,go,*) ;;
17956 *) ok=no ;;
17957 esac
17958 if test $ok = yes; then
17959 # An in-tree tool is available and we can use it
17960 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17962 $as_echo "just compiled" >&6; }
17963 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17964 # We already found the complete path
17965 ac_dir=`dirname $GOC_FOR_TARGET`
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17967 $as_echo "pre-installed in $ac_dir" >&6; }
17968 elif test "x$target" = "x$host"; then
17969 # We can use an host tool
17970 GOC_FOR_TARGET='$(GOC)'
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17972 $as_echo "host tool" >&6; }
17973 else
17974 # We need a cross tool
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17976 $as_echo "pre-installed" >&6; }
17977 fi
17978 fi
17979
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17981 $as_echo_n "checking where to find the target gdc... " >&6; }
17982 if test "x${build}" != "x${host}" ; then
17983 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $GDC_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17987 $as_echo "pre-installed in $ac_dir" >&6; }
17988 else
17989 # Canadian cross, just use what we found
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17991 $as_echo "pre-installed" >&6; }
17992 fi
17993 else
17994 ok=yes
17995 case " ${configdirs} " in
17996 *" gcc "*) ;;
17997 *) ok=no ;;
17998 esac
17999 case ,${enable_languages}, in
18000 *,d,*) ;;
18001 *) ok=no ;;
18002 esac
18003 if test $ok = yes; then
18004 # An in-tree tool is available and we can use it
18005 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18007 $as_echo "just compiled" >&6; }
18008 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18009 # We already found the complete path
18010 ac_dir=`dirname $GDC_FOR_TARGET`
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18012 $as_echo "pre-installed in $ac_dir" >&6; }
18013 elif test "x$target" = "x$host"; then
18014 # We can use an host tool
18015 GDC_FOR_TARGET='$(GDC)'
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18017 $as_echo "host tool" >&6; }
18018 else
18019 # We need a cross tool
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18021 $as_echo "pre-installed" >&6; }
18022 fi
18023 fi
18024
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18026 $as_echo_n "checking where to find the target gm2... " >&6; }
18027 if test "x${build}" != "x${host}" ; then
18028 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18029 # We already found the complete path
18030 ac_dir=`dirname $GM2_FOR_TARGET`
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18032 $as_echo "pre-installed in $ac_dir" >&6; }
18033 else
18034 # Canadian cross, just use what we found
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18036 $as_echo "pre-installed" >&6; }
18037 fi
18038 else
18039 ok=yes
18040 case " ${configdirs} " in
18041 *" gcc "*) ;;
18042 *) ok=no ;;
18043 esac
18044 case ,${enable_languages}, in
18045 *,m2,*) ;;
18046 *) ok=no ;;
18047 esac
18048 if test $ok = yes; then
18049 # An in-tree tool is available and we can use it
18050 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18052 $as_echo "just compiled" >&6; }
18053 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18054 # We already found the complete path
18055 ac_dir=`dirname $GM2_FOR_TARGET`
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18057 $as_echo "pre-installed in $ac_dir" >&6; }
18058 elif test "x$target" = "x$host"; then
18059 # We can use an host tool
18060 GM2_FOR_TARGET='$(GM2)'
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18062 $as_echo "host tool" >&6; }
18063 else
18064 # We need a cross tool
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18066 $as_echo "pre-installed" >&6; }
18067 fi
18068 fi
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18071 $as_echo_n "checking where to find the target ld... " >&6; }
18072 if test "x${build}" != "x${host}" ; then
18073 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18074 # We already found the complete path
18075 ac_dir=`dirname $LD_FOR_TARGET`
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18077 $as_echo "pre-installed in $ac_dir" >&6; }
18078 else
18079 # Canadian cross, just use what we found
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18081 $as_echo "pre-installed" >&6; }
18082 fi
18083 else
18084 ok=yes
18085 case " ${configdirs} " in
18086 *" ld "*) ;;
18087 *) ok=no ;;
18088 esac
18089
18090 if test $ok = yes; then
18091 # An in-tree tool is available and we can use it
18092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18094 $as_echo "just compiled" >&6; }
18095 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18096 # We already found the complete path
18097 ac_dir=`dirname $LD_FOR_TARGET`
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18099 $as_echo "pre-installed in $ac_dir" >&6; }
18100 elif test "x$target" = "x$host"; then
18101 # We can use an host tool
18102 LD_FOR_TARGET='$(LD)'
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18104 $as_echo "host tool" >&6; }
18105 else
18106 # We need a cross tool
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18108 $as_echo "pre-installed" >&6; }
18109 fi
18110 fi
18111
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18113 $as_echo_n "checking where to find the target lipo... " >&6; }
18114 if test "x${build}" != "x${host}" ; then
18115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18116 # We already found the complete path
18117 ac_dir=`dirname $LIPO_FOR_TARGET`
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18119 $as_echo "pre-installed in $ac_dir" >&6; }
18120 else
18121 # Canadian cross, just use what we found
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18123 $as_echo "pre-installed" >&6; }
18124 fi
18125 else
18126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18127 # We already found the complete path
18128 ac_dir=`dirname $LIPO_FOR_TARGET`
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18130 $as_echo "pre-installed in $ac_dir" >&6; }
18131 elif test "x$target" = "x$host"; then
18132 # We can use an host tool
18133 LIPO_FOR_TARGET='$(LIPO)'
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18135 $as_echo "host tool" >&6; }
18136 else
18137 # We need a cross tool
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18139 $as_echo "pre-installed" >&6; }
18140 fi
18141 fi
18142
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18144 $as_echo_n "checking where to find the target nm... " >&6; }
18145 if test "x${build}" != "x${host}" ; then
18146 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18147 # We already found the complete path
18148 ac_dir=`dirname $NM_FOR_TARGET`
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18150 $as_echo "pre-installed in $ac_dir" >&6; }
18151 else
18152 # Canadian cross, just use what we found
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18154 $as_echo "pre-installed" >&6; }
18155 fi
18156 else
18157 ok=yes
18158 case " ${configdirs} " in
18159 *" binutils "*) ;;
18160 *) ok=no ;;
18161 esac
18162
18163 if test $ok = yes; then
18164 # An in-tree tool is available and we can use it
18165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18167 $as_echo "just compiled" >&6; }
18168 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18169 # We already found the complete path
18170 ac_dir=`dirname $NM_FOR_TARGET`
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18172 $as_echo "pre-installed in $ac_dir" >&6; }
18173 elif test "x$target" = "x$host"; then
18174 # We can use an host tool
18175 NM_FOR_TARGET='$(NM)'
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18177 $as_echo "host tool" >&6; }
18178 else
18179 # We need a cross tool
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18181 $as_echo "pre-installed" >&6; }
18182 fi
18183 fi
18184
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18186 $as_echo_n "checking where to find the target objcopy... " >&6; }
18187 if test "x${build}" != "x${host}" ; then
18188 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18189 # We already found the complete path
18190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18192 $as_echo "pre-installed in $ac_dir" >&6; }
18193 else
18194 # Canadian cross, just use what we found
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18196 $as_echo "pre-installed" >&6; }
18197 fi
18198 else
18199 ok=yes
18200 case " ${configdirs} " in
18201 *" binutils "*) ;;
18202 *) ok=no ;;
18203 esac
18204
18205 if test $ok = yes; then
18206 # An in-tree tool is available and we can use it
18207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18209 $as_echo "just compiled" >&6; }
18210 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18211 # We already found the complete path
18212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18214 $as_echo "pre-installed in $ac_dir" >&6; }
18215 elif test "x$target" = "x$host"; then
18216 # We can use an host tool
18217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18219 $as_echo "host tool" >&6; }
18220 else
18221 # We need a cross tool
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18223 $as_echo "pre-installed" >&6; }
18224 fi
18225 fi
18226
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18228 $as_echo_n "checking where to find the target objdump... " >&6; }
18229 if test "x${build}" != "x${host}" ; then
18230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18231 # We already found the complete path
18232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18234 $as_echo "pre-installed in $ac_dir" >&6; }
18235 else
18236 # Canadian cross, just use what we found
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18238 $as_echo "pre-installed" >&6; }
18239 fi
18240 else
18241 ok=yes
18242 case " ${configdirs} " in
18243 *" binutils "*) ;;
18244 *) ok=no ;;
18245 esac
18246
18247 if test $ok = yes; then
18248 # An in-tree tool is available and we can use it
18249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18251 $as_echo "just compiled" >&6; }
18252 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18253 # We already found the complete path
18254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18256 $as_echo "pre-installed in $ac_dir" >&6; }
18257 elif test "x$target" = "x$host"; then
18258 # We can use an host tool
18259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18261 $as_echo "host tool" >&6; }
18262 else
18263 # We need a cross tool
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18265 $as_echo "pre-installed" >&6; }
18266 fi
18267 fi
18268
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18270 $as_echo_n "checking where to find the target otool... " >&6; }
18271 if test "x${build}" != "x${host}" ; then
18272 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18273 # We already found the complete path
18274 ac_dir=`dirname $OTOOL_FOR_TARGET`
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18276 $as_echo "pre-installed in $ac_dir" >&6; }
18277 else
18278 # Canadian cross, just use what we found
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18280 $as_echo "pre-installed" >&6; }
18281 fi
18282 else
18283 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18284 # We already found the complete path
18285 ac_dir=`dirname $OTOOL_FOR_TARGET`
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18287 $as_echo "pre-installed in $ac_dir" >&6; }
18288 elif test "x$target" = "x$host"; then
18289 # We can use an host tool
18290 OTOOL_FOR_TARGET='$(OTOOL)'
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18292 $as_echo "host tool" >&6; }
18293 else
18294 # We need a cross tool
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18296 $as_echo "pre-installed" >&6; }
18297 fi
18298 fi
18299
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18301 $as_echo_n "checking where to find the target ranlib... " >&6; }
18302 if test "x${build}" != "x${host}" ; then
18303 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18304 # We already found the complete path
18305 ac_dir=`dirname $RANLIB_FOR_TARGET`
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18307 $as_echo "pre-installed in $ac_dir" >&6; }
18308 else
18309 # Canadian cross, just use what we found
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18311 $as_echo "pre-installed" >&6; }
18312 fi
18313 else
18314 ok=yes
18315 case " ${configdirs} " in
18316 *" binutils "*) ;;
18317 *) ok=no ;;
18318 esac
18319
18320 if test $ok = yes; then
18321 # An in-tree tool is available and we can use it
18322 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18324 $as_echo "just compiled" >&6; }
18325 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18326 # We already found the complete path
18327 ac_dir=`dirname $RANLIB_FOR_TARGET`
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18329 $as_echo "pre-installed in $ac_dir" >&6; }
18330 elif test "x$target" = "x$host"; then
18331 # We can use an host tool
18332 RANLIB_FOR_TARGET='$(RANLIB)'
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18334 $as_echo "host tool" >&6; }
18335 else
18336 # We need a cross tool
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18338 $as_echo "pre-installed" >&6; }
18339 fi
18340 fi
18341
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18343 $as_echo_n "checking where to find the target readelf... " >&6; }
18344 if test "x${build}" != "x${host}" ; then
18345 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18346 # We already found the complete path
18347 ac_dir=`dirname $READELF_FOR_TARGET`
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18349 $as_echo "pre-installed in $ac_dir" >&6; }
18350 else
18351 # Canadian cross, just use what we found
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18353 $as_echo "pre-installed" >&6; }
18354 fi
18355 else
18356 ok=yes
18357 case " ${configdirs} " in
18358 *" binutils "*) ;;
18359 *) ok=no ;;
18360 esac
18361
18362 if test $ok = yes; then
18363 # An in-tree tool is available and we can use it
18364 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18366 $as_echo "just compiled" >&6; }
18367 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18368 # We already found the complete path
18369 ac_dir=`dirname $READELF_FOR_TARGET`
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18371 $as_echo "pre-installed in $ac_dir" >&6; }
18372 elif test "x$target" = "x$host"; then
18373 # We can use an host tool
18374 READELF_FOR_TARGET='$(READELF)'
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18376 $as_echo "host tool" >&6; }
18377 else
18378 # We need a cross tool
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18380 $as_echo "pre-installed" >&6; }
18381 fi
18382 fi
18383
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18385 $as_echo_n "checking where to find the target strip... " >&6; }
18386 if test "x${build}" != "x${host}" ; then
18387 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18388 # We already found the complete path
18389 ac_dir=`dirname $STRIP_FOR_TARGET`
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18391 $as_echo "pre-installed in $ac_dir" >&6; }
18392 else
18393 # Canadian cross, just use what we found
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18395 $as_echo "pre-installed" >&6; }
18396 fi
18397 else
18398 ok=yes
18399 case " ${configdirs} " in
18400 *" binutils "*) ;;
18401 *) ok=no ;;
18402 esac
18403
18404 if test $ok = yes; then
18405 # An in-tree tool is available and we can use it
18406 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18408 $as_echo "just compiled" >&6; }
18409 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18410 # We already found the complete path
18411 ac_dir=`dirname $STRIP_FOR_TARGET`
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18413 $as_echo "pre-installed in $ac_dir" >&6; }
18414 elif test "x$target" = "x$host"; then
18415 # We can use an host tool
18416 STRIP_FOR_TARGET='$(STRIP)'
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18418 $as_echo "host tool" >&6; }
18419 else
18420 # We need a cross tool
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18422 $as_echo "pre-installed" >&6; }
18423 fi
18424 fi
18425
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18427 $as_echo_n "checking where to find the target windres... " >&6; }
18428 if test "x${build}" != "x${host}" ; then
18429 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18430 # We already found the complete path
18431 ac_dir=`dirname $WINDRES_FOR_TARGET`
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18433 $as_echo "pre-installed in $ac_dir" >&6; }
18434 else
18435 # Canadian cross, just use what we found
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18437 $as_echo "pre-installed" >&6; }
18438 fi
18439 else
18440 ok=yes
18441 case " ${configdirs} " in
18442 *" binutils "*) ;;
18443 *) ok=no ;;
18444 esac
18445
18446 if test $ok = yes; then
18447 # An in-tree tool is available and we can use it
18448 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18450 $as_echo "just compiled" >&6; }
18451 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18452 # We already found the complete path
18453 ac_dir=`dirname $WINDRES_FOR_TARGET`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18455 $as_echo "pre-installed in $ac_dir" >&6; }
18456 elif test "x$target" = "x$host"; then
18457 # We can use an host tool
18458 WINDRES_FOR_TARGET='$(WINDRES)'
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18460 $as_echo "host tool" >&6; }
18461 else
18462 # We need a cross tool
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18464 $as_echo "pre-installed" >&6; }
18465 fi
18466 fi
18467
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18469 $as_echo_n "checking where to find the target windmc... " >&6; }
18470 if test "x${build}" != "x${host}" ; then
18471 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18472 # We already found the complete path
18473 ac_dir=`dirname $WINDMC_FOR_TARGET`
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18475 $as_echo "pre-installed in $ac_dir" >&6; }
18476 else
18477 # Canadian cross, just use what we found
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18479 $as_echo "pre-installed" >&6; }
18480 fi
18481 else
18482 ok=yes
18483 case " ${configdirs} " in
18484 *" binutils "*) ;;
18485 *) ok=no ;;
18486 esac
18487
18488 if test $ok = yes; then
18489 # An in-tree tool is available and we can use it
18490 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18492 $as_echo "just compiled" >&6; }
18493 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18494 # We already found the complete path
18495 ac_dir=`dirname $WINDMC_FOR_TARGET`
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18497 $as_echo "pre-installed in $ac_dir" >&6; }
18498 elif test "x$target" = "x$host"; then
18499 # We can use an host tool
18500 WINDMC_FOR_TARGET='$(WINDMC)'
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18502 $as_echo "host tool" >&6; }
18503 else
18504 # We need a cross tool
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18506 $as_echo "pre-installed" >&6; }
18507 fi
18508 fi
18509
18510
18511
18512
18513
18514 # Certain tools may need extra flags.
18515 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18516 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18517 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18518
18519 # When building target libraries, except in a Canadian cross, we use
18520 # the same toolchain as the compiler we just built.
18521 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18522 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18523 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18524 if test $host = $build; then
18525 case " $configdirs " in
18526 *" gcc "*)
18527 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18528 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18529 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18530 ;;
18531 esac
18532 fi
18533
18534
18535
18536
18537
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18539 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18540 # Check whether --enable-maintainer-mode was given.
18541 if test "${enable_maintainer_mode+set}" = set; then :
18542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18543 else
18544 USE_MAINTAINER_MODE=no
18545 fi
18546
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18548 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18549
18550
18551 if test "$USE_MAINTAINER_MODE" = yes; then
18552 MAINTAINER_MODE_TRUE=
18553 MAINTAINER_MODE_FALSE='#'
18554 else
18555 MAINTAINER_MODE_TRUE='#'
18556 MAINTAINER_MODE_FALSE=
18557 fi
18558 MAINT=$MAINTAINER_MODE_TRUE
18559
18560 # ---------------------
18561 # GCC bootstrap support
18562 # ---------------------
18563
18564 # Stage specific cflags for build.
18565 stage1_cflags="-g"
18566 case $build in
18567 vax-*-*)
18568 case ${GCC} in
18569 yes) stage1_cflags="-g -Wa,-J" ;;
18570 *) stage1_cflags="-g -J" ;;
18571 esac ;;
18572 esac
18573
18574
18575
18576 # Enable --enable-checking in stage1 of the compiler.
18577 # Check whether --enable-stage1-checking was given.
18578 if test "${enable_stage1_checking+set}" = set; then :
18579 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18580 else
18581 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18582 # For --disable-checking or implicit --enable-checking=release, avoid
18583 # setting --enable-checking=gc in the default stage1 checking for LTO
18584 # bootstraps. See PR62077.
18585 case $BUILD_CONFIG in
18586 *lto*)
18587 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18588 *)
18589 stage1_checking=--enable-checking=yes,types;;
18590 esac
18591 if test "x$enable_checking" = x && \
18592 test -d ${srcdir}/gcc && \
18593 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18594 stage1_checking=--enable-checking=yes,types,extra
18595 fi
18596 else
18597 stage1_checking=--enable-checking=$enable_checking,types
18598 fi
18599 fi
18600
18601
18602
18603 # Enable -Werror in bootstrap stage2 and later.
18604 # Check whether --enable-werror was given.
18605 if test "${enable_werror+set}" = set; then :
18606 enableval=$enable_werror;
18607 case ${enable_werror} in
18608 yes) stage2_werror_flag="--enable-werror-always" ;;
18609 *) stage2_werror_flag="" ;;
18610 esac
18611
18612 else
18613
18614 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18615 case $BUILD_CONFIG in
18616 bootstrap-debug)
18617 stage2_werror_flag="--enable-werror-always" ;;
18618 "")
18619 stage2_werror_flag="--enable-werror-always" ;;
18620 esac
18621 fi
18622
18623 fi
18624
18625
18626
18627
18628 # Specify what files to not compare during bootstrap.
18629
18630 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18631 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18632 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18633 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18634 case "$target" in
18635 hppa*64*-*-hpux*) ;;
18636 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18637 esac
18638
18639
18640 ac_config_files="$ac_config_files Makefile"
18641
18642 cat >confcache <<\_ACEOF
18643 # This file is a shell script that caches the results of configure
18644 # tests run on this system so they can be shared between configure
18645 # scripts and configure runs, see configure's option --config-cache.
18646 # It is not useful on other systems. If it contains results you don't
18647 # want to keep, you may remove or edit it.
18648 #
18649 # config.status only pays attention to the cache file if you give it
18650 # the --recheck option to rerun configure.
18651 #
18652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18654 # following values.
18655
18656 _ACEOF
18657
18658 # The following way of writing the cache mishandles newlines in values,
18659 # but we know of no workaround that is simple, portable, and efficient.
18660 # So, we kill variables containing newlines.
18661 # Ultrix sh set writes to stderr and can't be redirected directly,
18662 # and sets the high bit in the cache file unless we assign to the vars.
18663 (
18664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18665 eval ac_val=\$$ac_var
18666 case $ac_val in #(
18667 *${as_nl}*)
18668 case $ac_var in #(
18669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18670 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18671 esac
18672 case $ac_var in #(
18673 _ | IFS | as_nl) ;; #(
18674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18675 *) { eval $ac_var=; unset $ac_var;} ;;
18676 esac ;;
18677 esac
18678 done
18679
18680 (set) 2>&1 |
18681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18682 *${as_nl}ac_space=\ *)
18683 # `set' does not quote correctly, so add quotes: double-quote
18684 # substitution turns \\\\ into \\, and sed turns \\ into \.
18685 sed -n \
18686 "s/'/'\\\\''/g;
18687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18688 ;; #(
18689 *)
18690 # `set' quotes correctly as required by POSIX, so do not add quotes.
18691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18692 ;;
18693 esac |
18694 sort
18695 ) |
18696 sed '
18697 /^ac_cv_env_/b end
18698 t clear
18699 :clear
18700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18701 t end
18702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18703 :end' >>confcache
18704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18705 if test -w "$cache_file"; then
18706 if test "x$cache_file" != "x/dev/null"; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18708 $as_echo "$as_me: updating cache $cache_file" >&6;}
18709 if test ! -f "$cache_file" || test -h "$cache_file"; then
18710 cat confcache >"$cache_file"
18711 else
18712 case $cache_file in #(
18713 */* | ?:*)
18714 mv -f confcache "$cache_file"$$ &&
18715 mv -f "$cache_file"$$ "$cache_file" ;; #(
18716 *)
18717 mv -f confcache "$cache_file" ;;
18718 esac
18719 fi
18720 fi
18721 else
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18724 fi
18725 fi
18726 rm -f confcache
18727
18728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18729 # Let make expand exec_prefix.
18730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18731
18732 # Transform confdefs.h into DEFS.
18733 # Protect against shell expansion while executing Makefile rules.
18734 # Protect against Makefile macro expansion.
18735 #
18736 # If the first sed substitution is executed (which looks for macros that
18737 # take arguments), then branch to the quote section. Otherwise,
18738 # look for a macro that doesn't take arguments.
18739 ac_script='
18740 :mline
18741 /\\$/{
18742 N
18743 s,\\\n,,
18744 b mline
18745 }
18746 t clear
18747 :clear
18748 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18749 t quote
18750 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18751 t quote
18752 b any
18753 :quote
18754 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18755 s/\[/\\&/g
18756 s/\]/\\&/g
18757 s/\$/$$/g
18758 H
18759 :any
18760 ${
18761 g
18762 s/^\n//
18763 s/\n/ /g
18764 p
18765 }
18766 '
18767 DEFS=`sed -n "$ac_script" confdefs.h`
18768
18769
18770 ac_libobjs=
18771 ac_ltlibobjs=
18772 U=
18773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18774 # 1. Remove the extension, and $U if already installed.
18775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18778 # will be set to the directory where LIBOBJS objects are built.
18779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18781 done
18782 LIBOBJS=$ac_libobjs
18783
18784 LTLIBOBJS=$ac_ltlibobjs
18785
18786
18787
18788 : "${CONFIG_STATUS=./config.status}"
18789 ac_write_fail=0
18790 ac_clean_files_save=$ac_clean_files
18791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18794 as_write_fail=0
18795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18796 #! $SHELL
18797 # Generated by $as_me.
18798 # Run this file to recreate the current configuration.
18799 # Compiler output produced by configure, useful for debugging
18800 # configure, is in config.log if it exists.
18801
18802 debug=false
18803 ac_cs_recheck=false
18804 ac_cs_silent=false
18805
18806 SHELL=\${CONFIG_SHELL-$SHELL}
18807 export SHELL
18808 _ASEOF
18809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18810 ## -------------------- ##
18811 ## M4sh Initialization. ##
18812 ## -------------------- ##
18813
18814 # Be more Bourne compatible
18815 DUALCASE=1; export DUALCASE # for MKS sh
18816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18817 emulate sh
18818 NULLCMD=:
18819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18820 # is contrary to our usage. Disable this feature.
18821 alias -g '${1+"$@"}'='"$@"'
18822 setopt NO_GLOB_SUBST
18823 else
18824 case `(set -o) 2>/dev/null` in #(
18825 *posix*) :
18826 set -o posix ;; #(
18827 *) :
18828 ;;
18829 esac
18830 fi
18831
18832
18833 as_nl='
18834 '
18835 export as_nl
18836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18840 # Prefer a ksh shell builtin over an external printf program on Solaris,
18841 # but without wasting forks for bash or zsh.
18842 if test -z "$BASH_VERSION$ZSH_VERSION" \
18843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18844 as_echo='print -r --'
18845 as_echo_n='print -rn --'
18846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18847 as_echo='printf %s\n'
18848 as_echo_n='printf %s'
18849 else
18850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18852 as_echo_n='/usr/ucb/echo -n'
18853 else
18854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18855 as_echo_n_body='eval
18856 arg=$1;
18857 case $arg in #(
18858 *"$as_nl"*)
18859 expr "X$arg" : "X\\(.*\\)$as_nl";
18860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18861 esac;
18862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18863 '
18864 export as_echo_n_body
18865 as_echo_n='sh -c $as_echo_n_body as_echo'
18866 fi
18867 export as_echo_body
18868 as_echo='sh -c $as_echo_body as_echo'
18869 fi
18870
18871 # The user is always right.
18872 if test "${PATH_SEPARATOR+set}" != set; then
18873 PATH_SEPARATOR=:
18874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18876 PATH_SEPARATOR=';'
18877 }
18878 fi
18879
18880
18881 # IFS
18882 # We need space, tab and new line, in precisely that order. Quoting is
18883 # there to prevent editors from complaining about space-tab.
18884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18885 # splitting by setting IFS to empty value.)
18886 IFS=" "" $as_nl"
18887
18888 # Find who we are. Look in the path if we contain no directory separator.
18889 as_myself=
18890 case $0 in #((
18891 *[\\/]* ) as_myself=$0 ;;
18892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18893 for as_dir in $PATH
18894 do
18895 IFS=$as_save_IFS
18896 test -z "$as_dir" && as_dir=.
18897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18898 done
18899 IFS=$as_save_IFS
18900
18901 ;;
18902 esac
18903 # We did not find ourselves, most probably we were run as `sh COMMAND'
18904 # in which case we are not to be found in the path.
18905 if test "x$as_myself" = x; then
18906 as_myself=$0
18907 fi
18908 if test ! -f "$as_myself"; then
18909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18910 exit 1
18911 fi
18912
18913 # Unset variables that we do not need and which cause bugs (e.g. in
18914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18915 # suppresses any "Segmentation fault" message there. '((' could
18916 # trigger a bug in pdksh 5.2.14.
18917 for as_var in BASH_ENV ENV MAIL MAILPATH
18918 do eval test x\${$as_var+set} = xset \
18919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18920 done
18921 PS1='$ '
18922 PS2='> '
18923 PS4='+ '
18924
18925 # NLS nuisances.
18926 LC_ALL=C
18927 export LC_ALL
18928 LANGUAGE=C
18929 export LANGUAGE
18930
18931 # CDPATH.
18932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18933
18934
18935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18936 # ----------------------------------------
18937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18939 # script with STATUS, using 1 if that was 0.
18940 as_fn_error ()
18941 {
18942 as_status=$1; test $as_status -eq 0 && as_status=1
18943 if test "$4"; then
18944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18946 fi
18947 $as_echo "$as_me: error: $2" >&2
18948 as_fn_exit $as_status
18949 } # as_fn_error
18950
18951
18952 # as_fn_set_status STATUS
18953 # -----------------------
18954 # Set $? to STATUS, without forking.
18955 as_fn_set_status ()
18956 {
18957 return $1
18958 } # as_fn_set_status
18959
18960 # as_fn_exit STATUS
18961 # -----------------
18962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18963 as_fn_exit ()
18964 {
18965 set +e
18966 as_fn_set_status $1
18967 exit $1
18968 } # as_fn_exit
18969
18970 # as_fn_unset VAR
18971 # ---------------
18972 # Portably unset VAR.
18973 as_fn_unset ()
18974 {
18975 { eval $1=; unset $1;}
18976 }
18977 as_unset=as_fn_unset
18978 # as_fn_append VAR VALUE
18979 # ----------------------
18980 # Append the text in VALUE to the end of the definition contained in VAR. Take
18981 # advantage of any shell optimizations that allow amortized linear growth over
18982 # repeated appends, instead of the typical quadratic growth present in naive
18983 # implementations.
18984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18985 eval 'as_fn_append ()
18986 {
18987 eval $1+=\$2
18988 }'
18989 else
18990 as_fn_append ()
18991 {
18992 eval $1=\$$1\$2
18993 }
18994 fi # as_fn_append
18995
18996 # as_fn_arith ARG...
18997 # ------------------
18998 # Perform arithmetic evaluation on the ARGs, and store the result in the
18999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19000 # must be portable across $(()) and expr.
19001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19002 eval 'as_fn_arith ()
19003 {
19004 as_val=$(( $* ))
19005 }'
19006 else
19007 as_fn_arith ()
19008 {
19009 as_val=`expr "$@" || test $? -eq 1`
19010 }
19011 fi # as_fn_arith
19012
19013
19014 if expr a : '\(a\)' >/dev/null 2>&1 &&
19015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19016 as_expr=expr
19017 else
19018 as_expr=false
19019 fi
19020
19021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19022 as_basename=basename
19023 else
19024 as_basename=false
19025 fi
19026
19027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19028 as_dirname=dirname
19029 else
19030 as_dirname=false
19031 fi
19032
19033 as_me=`$as_basename -- "$0" ||
19034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19035 X"$0" : 'X\(//\)$' \| \
19036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X/"$0" |
19038 sed '/^.*\/\([^/][^/]*\)\/*$/{
19039 s//\1/
19040 q
19041 }
19042 /^X\/\(\/\/\)$/{
19043 s//\1/
19044 q
19045 }
19046 /^X\/\(\/\).*/{
19047 s//\1/
19048 q
19049 }
19050 s/.*/./; q'`
19051
19052 # Avoid depending upon Character Ranges.
19053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19056 as_cr_digits='0123456789'
19057 as_cr_alnum=$as_cr_Letters$as_cr_digits
19058
19059 ECHO_C= ECHO_N= ECHO_T=
19060 case `echo -n x` in #(((((
19061 -n*)
19062 case `echo 'xy\c'` in
19063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19064 xy) ECHO_C='\c';;
19065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19066 ECHO_T=' ';;
19067 esac;;
19068 *)
19069 ECHO_N='-n';;
19070 esac
19071
19072 rm -f conf$$ conf$$.exe conf$$.file
19073 if test -d conf$$.dir; then
19074 rm -f conf$$.dir/conf$$.file
19075 else
19076 rm -f conf$$.dir
19077 mkdir conf$$.dir 2>/dev/null
19078 fi
19079 if (echo >conf$$.file) 2>/dev/null; then
19080 if ln -s conf$$.file conf$$ 2>/dev/null; then
19081 as_ln_s='ln -s'
19082 # ... but there are two gotchas:
19083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19085 # In both cases, we have to default to `cp -pR'.
19086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19087 as_ln_s='cp -pR'
19088 elif ln conf$$.file conf$$ 2>/dev/null; then
19089 as_ln_s=ln
19090 else
19091 as_ln_s='cp -pR'
19092 fi
19093 else
19094 as_ln_s='cp -pR'
19095 fi
19096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19097 rmdir conf$$.dir 2>/dev/null
19098
19099
19100 # as_fn_mkdir_p
19101 # -------------
19102 # Create "$as_dir" as a directory, including parents if necessary.
19103 as_fn_mkdir_p ()
19104 {
19105
19106 case $as_dir in #(
19107 -*) as_dir=./$as_dir;;
19108 esac
19109 test -d "$as_dir" || eval $as_mkdir_p || {
19110 as_dirs=
19111 while :; do
19112 case $as_dir in #(
19113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19114 *) as_qdir=$as_dir;;
19115 esac
19116 as_dirs="'$as_qdir' $as_dirs"
19117 as_dir=`$as_dirname -- "$as_dir" ||
19118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19119 X"$as_dir" : 'X\(//\)[^/]' \| \
19120 X"$as_dir" : 'X\(//\)$' \| \
19121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19122 $as_echo X"$as_dir" |
19123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19124 s//\1/
19125 q
19126 }
19127 /^X\(\/\/\)[^/].*/{
19128 s//\1/
19129 q
19130 }
19131 /^X\(\/\/\)$/{
19132 s//\1/
19133 q
19134 }
19135 /^X\(\/\).*/{
19136 s//\1/
19137 q
19138 }
19139 s/.*/./; q'`
19140 test -d "$as_dir" && break
19141 done
19142 test -z "$as_dirs" || eval "mkdir $as_dirs"
19143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19144
19145
19146 } # as_fn_mkdir_p
19147 if mkdir -p . 2>/dev/null; then
19148 as_mkdir_p='mkdir -p "$as_dir"'
19149 else
19150 test -d ./-p && rmdir ./-p
19151 as_mkdir_p=false
19152 fi
19153
19154
19155 # as_fn_executable_p FILE
19156 # -----------------------
19157 # Test if FILE is an executable regular file.
19158 as_fn_executable_p ()
19159 {
19160 test -f "$1" && test -x "$1"
19161 } # as_fn_executable_p
19162 as_test_x='test -x'
19163 as_executable_p=as_fn_executable_p
19164
19165 # Sed expression to map a string onto a valid CPP name.
19166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19167
19168 # Sed expression to map a string onto a valid variable name.
19169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19170
19171
19172 exec 6>&1
19173 ## ----------------------------------- ##
19174 ## Main body of $CONFIG_STATUS script. ##
19175 ## ----------------------------------- ##
19176 _ASEOF
19177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19178
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19180 # Save the log message, to keep $0 and so on meaningful, and to
19181 # report actual input values of CONFIG_FILES etc. instead of their
19182 # values after options handling.
19183 ac_log="
19184 This file was extended by $as_me, which was
19185 generated by GNU Autoconf 2.69. Invocation command line was
19186
19187 CONFIG_FILES = $CONFIG_FILES
19188 CONFIG_HEADERS = $CONFIG_HEADERS
19189 CONFIG_LINKS = $CONFIG_LINKS
19190 CONFIG_COMMANDS = $CONFIG_COMMANDS
19191 $ $0 $@
19192
19193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19194 "
19195
19196 _ACEOF
19197
19198 case $ac_config_files in *"
19199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19200 esac
19201
19202
19203
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 # Files that config.status was made for.
19206 config_files="$ac_config_files"
19207
19208 _ACEOF
19209
19210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19211 ac_cs_usage="\
19212 \`$as_me' instantiates files and other configuration actions
19213 from templates according to the current configuration. Unless the files
19214 and actions are specified as TAGs, all are instantiated by default.
19215
19216 Usage: $0 [OPTION]... [TAG]...
19217
19218 -h, --help print this help, then exit
19219 -V, --version print version number and configuration settings, then exit
19220 --config print configuration, then exit
19221 -q, --quiet, --silent
19222 do not print progress messages
19223 -d, --debug don't remove temporary files
19224 --recheck update $as_me by reconfiguring in the same conditions
19225 --file=FILE[:TEMPLATE]
19226 instantiate the configuration file FILE
19227
19228 Configuration files:
19229 $config_files
19230
19231 Report bugs to the package provider."
19232
19233 _ACEOF
19234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19235 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19236 ac_cs_version="\\
19237 config.status
19238 configured by $0, generated by GNU Autoconf 2.69,
19239 with options \\"\$ac_cs_config\\"
19240
19241 Copyright (C) 2012 Free Software Foundation, Inc.
19242 This config.status script is free software; the Free Software Foundation
19243 gives unlimited permission to copy, distribute and modify it."
19244
19245 ac_pwd='$ac_pwd'
19246 srcdir='$srcdir'
19247 INSTALL='$INSTALL'
19248 AWK='$AWK'
19249 test -n "\$AWK" || AWK=awk
19250 _ACEOF
19251
19252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19253 # The default lists apply if the user does not specify any file.
19254 ac_need_defaults=:
19255 while test $# != 0
19256 do
19257 case $1 in
19258 --*=?*)
19259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19261 ac_shift=:
19262 ;;
19263 --*=)
19264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19265 ac_optarg=
19266 ac_shift=:
19267 ;;
19268 *)
19269 ac_option=$1
19270 ac_optarg=$2
19271 ac_shift=shift
19272 ;;
19273 esac
19274
19275 case $ac_option in
19276 # Handling of the options.
19277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19278 ac_cs_recheck=: ;;
19279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19280 $as_echo "$ac_cs_version"; exit ;;
19281 --config | --confi | --conf | --con | --co | --c )
19282 $as_echo "$ac_cs_config"; exit ;;
19283 --debug | --debu | --deb | --de | --d | -d )
19284 debug=: ;;
19285 --file | --fil | --fi | --f )
19286 $ac_shift
19287 case $ac_optarg in
19288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19289 '') as_fn_error $? "missing file argument" ;;
19290 esac
19291 as_fn_append CONFIG_FILES " '$ac_optarg'"
19292 ac_need_defaults=false;;
19293 --he | --h | --help | --hel | -h )
19294 $as_echo "$ac_cs_usage"; exit ;;
19295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19297 ac_cs_silent=: ;;
19298
19299 # This is an error.
19300 -*) as_fn_error $? "unrecognized option: \`$1'
19301 Try \`$0 --help' for more information." ;;
19302
19303 *) as_fn_append ac_config_targets " $1"
19304 ac_need_defaults=false ;;
19305
19306 esac
19307 shift
19308 done
19309
19310 ac_configure_extra_args=
19311
19312 if $ac_cs_silent; then
19313 exec 6>/dev/null
19314 ac_configure_extra_args="$ac_configure_extra_args --silent"
19315 fi
19316
19317 _ACEOF
19318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19319 if \$ac_cs_recheck; then
19320 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19321 shift
19322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19323 CONFIG_SHELL='$SHELL'
19324 export CONFIG_SHELL
19325 exec "\$@"
19326 fi
19327
19328 _ACEOF
19329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19330 exec 5>>config.log
19331 {
19332 echo
19333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19334 ## Running $as_me. ##
19335 _ASBOX
19336 $as_echo "$ac_log"
19337 } >&5
19338
19339 _ACEOF
19340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19341 #
19342 # INIT-COMMANDS
19343 #
19344 extrasub_build="$extrasub_build"
19345 extrasub_host="$extrasub_host"
19346 extrasub_target="$extrasub_target"
19347
19348 _ACEOF
19349
19350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19351
19352 # Handling of arguments.
19353 for ac_config_target in $ac_config_targets
19354 do
19355 case $ac_config_target in
19356 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19357
19358 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19359 esac
19360 done
19361
19362
19363 # If the user did not use the arguments to specify the items to instantiate,
19364 # then the envvar interface is used. Set only those that are not.
19365 # We use the long form for the default assignment because of an extremely
19366 # bizarre bug on SunOS 4.1.3.
19367 if $ac_need_defaults; then
19368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19369 fi
19370
19371 # Have a temporary directory for convenience. Make it in the build tree
19372 # simply because there is no reason against having it here, and in addition,
19373 # creating and moving files from /tmp can sometimes cause problems.
19374 # Hook for its removal unless debugging.
19375 # Note that there is a small window in which the directory will not be cleaned:
19376 # after its creation but before its name has been assigned to `$tmp'.
19377 $debug ||
19378 {
19379 tmp= ac_tmp=
19380 trap 'exit_status=$?
19381 : "${ac_tmp:=$tmp}"
19382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19383 ' 0
19384 trap 'as_fn_exit 1' 1 2 13 15
19385 }
19386 # Create a (secure) tmp directory for tmp files.
19387
19388 {
19389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19390 test -d "$tmp"
19391 } ||
19392 {
19393 tmp=./conf$$-$RANDOM
19394 (umask 077 && mkdir "$tmp")
19395 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19396 ac_tmp=$tmp
19397
19398 # Set up the scripts for CONFIG_FILES section.
19399 # No need to generate them if there are no CONFIG_FILES.
19400 # This happens for instance with `./config.status config.h'.
19401 if test -n "$CONFIG_FILES"; then
19402
19403 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19404 ac_cs_awk_getline=:
19405 ac_cs_awk_pipe_init=
19406 ac_cs_awk_read_file='
19407 while ((getline aline < (F[key])) > 0)
19408 print(aline)
19409 close(F[key])'
19410 ac_cs_awk_pipe_fini=
19411 else
19412 ac_cs_awk_getline=false
19413 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19414 ac_cs_awk_read_file='
19415 print "|#_!!_#|"
19416 print "cat " F[key] " &&"
19417 '$ac_cs_awk_pipe_init
19418 # The final `:' finishes the AND list.
19419 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19420 fi
19421 ac_cr=`echo X | tr X '\015'`
19422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19423 # But we know of no other shell where ac_cr would be empty at this
19424 # point, so we can use a bashism as a fallback.
19425 if test "x$ac_cr" = x; then
19426 eval ac_cr=\$\'\\r\'
19427 fi
19428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19430 ac_cs_awk_cr='\\r'
19431 else
19432 ac_cs_awk_cr=$ac_cr
19433 fi
19434
19435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19436 _ACEOF
19437
19438 # Create commands to substitute file output variables.
19439 {
19440 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19441 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19442 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19443 echo "_ACAWK" &&
19444 echo "_ACEOF"
19445 } >conf$$files.sh &&
19446 . ./conf$$files.sh ||
19447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19448 rm -f conf$$files.sh
19449
19450 {
19451 echo "cat >conf$$subs.awk <<_ACEOF" &&
19452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19453 echo "_ACEOF"
19454 } >conf$$subs.sh ||
19455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19457 ac_delim='%!_!# '
19458 for ac_last_try in false false false false false :; do
19459 . ./conf$$subs.sh ||
19460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19461
19462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19463 if test $ac_delim_n = $ac_delim_num; then
19464 break
19465 elif $ac_last_try; then
19466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19467 else
19468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19469 fi
19470 done
19471 rm -f conf$$subs.sh
19472
19473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19474 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19475 _ACEOF
19476 sed -n '
19477 h
19478 s/^/S["/; s/!.*/"]=/
19479 p
19480 g
19481 s/^[^!]*!//
19482 :repl
19483 t repl
19484 s/'"$ac_delim"'$//
19485 t delim
19486 :nl
19487 h
19488 s/\(.\{148\}\)..*/\1/
19489 t more1
19490 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19491 p
19492 n
19493 b repl
19494 :more1
19495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19496 p
19497 g
19498 s/.\{148\}//
19499 t nl
19500 :delim
19501 h
19502 s/\(.\{148\}\)..*/\1/
19503 t more2
19504 s/["\\]/\\&/g; s/^/"/; s/$/"/
19505 p
19506 b
19507 :more2
19508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19509 p
19510 g
19511 s/.\{148\}//
19512 t delim
19513 ' <conf$$subs.awk | sed '
19514 /^[^""]/{
19515 N
19516 s/\n//
19517 }
19518 ' >>$CONFIG_STATUS || ac_write_fail=1
19519 rm -f conf$$subs.awk
19520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19521 _ACAWK
19522 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19523 for (key in S) S_is_set[key] = 1
19524 FS = "\a"
19525 \$ac_cs_awk_pipe_init
19526 }
19527 {
19528 line = $ 0
19529 nfields = split(line, field, "@")
19530 substed = 0
19531 len = length(field[1])
19532 for (i = 2; i < nfields; i++) {
19533 key = field[i]
19534 keylen = length(key)
19535 if (S_is_set[key]) {
19536 value = S[key]
19537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19538 len += length(value) + length(field[++i])
19539 substed = 1
19540 } else
19541 len += 1 + keylen
19542 }
19543 if (nfields == 3 && !substed) {
19544 key = field[2]
19545 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19546 \$ac_cs_awk_read_file
19547 next
19548 }
19549 }
19550 print line
19551 }
19552 \$ac_cs_awk_pipe_fini
19553 _ACAWK
19554 _ACEOF
19555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19557 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19558 else
19559 cat
19560 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19561 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19562 _ACEOF
19563
19564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19566 # trailing colons and then remove the whole line if VPATH becomes empty
19567 # (actually we leave an empty line to preserve line numbers).
19568 if test "x$srcdir" = x.; then
19569 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19570 h
19571 s///
19572 s/^/:/
19573 s/[ ]*$/:/
19574 s/:\$(srcdir):/:/g
19575 s/:\${srcdir}:/:/g
19576 s/:@srcdir@:/:/g
19577 s/^:*//
19578 s/:*$//
19579 x
19580 s/\(=[ ]*\).*/\1/
19581 G
19582 s/\n//
19583 s/^[^=]*=[ ]*$//
19584 }'
19585 fi
19586
19587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19588 fi # test -n "$CONFIG_FILES"
19589
19590
19591 eval set X " :F $CONFIG_FILES "
19592 shift
19593 for ac_tag
19594 do
19595 case $ac_tag in
19596 :[FHLC]) ac_mode=$ac_tag; continue;;
19597 esac
19598 case $ac_mode$ac_tag in
19599 :[FHL]*:*);;
19600 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19601 :[FH]-) ac_tag=-:-;;
19602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19603 esac
19604 ac_save_IFS=$IFS
19605 IFS=:
19606 set x $ac_tag
19607 IFS=$ac_save_IFS
19608 shift
19609 ac_file=$1
19610 shift
19611
19612 case $ac_mode in
19613 :L) ac_source=$1;;
19614 :[FH])
19615 ac_file_inputs=
19616 for ac_f
19617 do
19618 case $ac_f in
19619 -) ac_f="$ac_tmp/stdin";;
19620 *) # Look for the file first in the build tree, then in the source tree
19621 # (if the path is not absolute). The absolute path cannot be DOS-style,
19622 # because $ac_f cannot contain `:'.
19623 test -f "$ac_f" ||
19624 case $ac_f in
19625 [\\/$]*) false;;
19626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19627 esac ||
19628 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19629 esac
19630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19631 as_fn_append ac_file_inputs " '$ac_f'"
19632 done
19633
19634 # Let's still pretend it is `configure' which instantiates (i.e., don't
19635 # use $as_me), people would be surprised to read:
19636 # /* config.h. Generated by config.status. */
19637 configure_input='Generated from '`
19638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19639 `' by configure.'
19640 if test x"$ac_file" != x-; then
19641 configure_input="$ac_file. $configure_input"
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19643 $as_echo "$as_me: creating $ac_file" >&6;}
19644 fi
19645 # Neutralize special characters interpreted by sed in replacement strings.
19646 case $configure_input in #(
19647 *\&* | *\|* | *\\* )
19648 ac_sed_conf_input=`$as_echo "$configure_input" |
19649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19650 *) ac_sed_conf_input=$configure_input;;
19651 esac
19652
19653 case $ac_tag in
19654 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19656 esac
19657 ;;
19658 esac
19659
19660 ac_dir=`$as_dirname -- "$ac_file" ||
19661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19662 X"$ac_file" : 'X\(//\)[^/]' \| \
19663 X"$ac_file" : 'X\(//\)$' \| \
19664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19665 $as_echo X"$ac_file" |
19666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19667 s//\1/
19668 q
19669 }
19670 /^X\(\/\/\)[^/].*/{
19671 s//\1/
19672 q
19673 }
19674 /^X\(\/\/\)$/{
19675 s//\1/
19676 q
19677 }
19678 /^X\(\/\).*/{
19679 s//\1/
19680 q
19681 }
19682 s/.*/./; q'`
19683 as_dir="$ac_dir"; as_fn_mkdir_p
19684 ac_builddir=.
19685
19686 case "$ac_dir" in
19687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19688 *)
19689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19690 # A ".." for each directory in $ac_dir_suffix.
19691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19692 case $ac_top_builddir_sub in
19693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19695 esac ;;
19696 esac
19697 ac_abs_top_builddir=$ac_pwd
19698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19699 # for backward compatibility:
19700 ac_top_builddir=$ac_top_build_prefix
19701
19702 case $srcdir in
19703 .) # We are building in place.
19704 ac_srcdir=.
19705 ac_top_srcdir=$ac_top_builddir_sub
19706 ac_abs_top_srcdir=$ac_pwd ;;
19707 [\\/]* | ?:[\\/]* ) # Absolute name.
19708 ac_srcdir=$srcdir$ac_dir_suffix;
19709 ac_top_srcdir=$srcdir
19710 ac_abs_top_srcdir=$srcdir ;;
19711 *) # Relative name.
19712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19713 ac_top_srcdir=$ac_top_build_prefix$srcdir
19714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19715 esac
19716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19717
19718
19719 case $ac_mode in
19720 :F)
19721 #
19722 # CONFIG_FILE
19723 #
19724
19725 case $INSTALL in
19726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19728 esac
19729 _ACEOF
19730
19731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19732 # If the template does not know about datarootdir, expand it.
19733 # FIXME: This hack should be removed a few years after 2.60.
19734 ac_datarootdir_hack=; ac_datarootdir_seen=
19735 ac_sed_dataroot='
19736 /datarootdir/ {
19737 p
19738 q
19739 }
19740 /@datadir@/p
19741 /@docdir@/p
19742 /@infodir@/p
19743 /@localedir@/p
19744 /@mandir@/p'
19745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19746 *datarootdir*) ac_datarootdir_seen=yes;;
19747 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19750 _ACEOF
19751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752 ac_datarootdir_hack='
19753 s&@datadir@&$datadir&g
19754 s&@docdir@&$docdir&g
19755 s&@infodir@&$infodir&g
19756 s&@localedir@&$localedir&g
19757 s&@mandir@&$mandir&g
19758 s&\\\${datarootdir}&$datarootdir&g' ;;
19759 esac
19760 _ACEOF
19761
19762 # Neutralize VPATH when `$srcdir' = `.'.
19763 # Shell code in configure.ac might set extrasub.
19764 # FIXME: do we really want to maintain this feature?
19765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766 ac_sed_extra="$ac_vpsub
19767 $extrasub
19768 _ACEOF
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19770 :t
19771 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19772 s|@configure_input@|$ac_sed_conf_input|;t t
19773 s&@top_builddir@&$ac_top_builddir_sub&;t t
19774 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19775 s&@srcdir@&$ac_srcdir&;t t
19776 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19777 s&@top_srcdir@&$ac_top_srcdir&;t t
19778 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19779 s&@builddir@&$ac_builddir&;t t
19780 s&@abs_builddir@&$ac_abs_builddir&;t t
19781 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19782 s&@INSTALL@&$ac_INSTALL&;t t
19783 $ac_datarootdir_hack
19784 "
19785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19786 if $ac_cs_awk_getline; then
19787 $AWK -f "$ac_tmp/subs.awk"
19788 else
19789 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19790 fi \
19791 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19792
19793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19796 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19798 which seems to be undefined. Please make sure it is defined" >&5
19799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19800 which seems to be undefined. Please make sure it is defined" >&2;}
19801
19802 rm -f "$ac_tmp/stdin"
19803 case $ac_file in
19804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19806 esac \
19807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19808 ;;
19809
19810
19811
19812 esac
19813
19814
19815 case $ac_file$ac_mode in
19816 "Makefile":F) sed "$extrasub_build" Makefile |
19817 sed "$extrasub_host" |
19818 sed "$extrasub_target" > mf$$
19819 mv -f mf$$ Makefile ;;
19820
19821 esac
19822 done # for ac_tag
19823
19824
19825 as_fn_exit 0
19826 _ACEOF
19827 ac_clean_files=$ac_clean_files_save
19828
19829 test $ac_write_fail = 0 ||
19830 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19831
19832
19833 # configure is writing to config.log, and then calls config.status.
19834 # config.status does its own redirection, appending to config.log.
19835 # Unfortunately, on DOS this fails, as config.log is still kept open
19836 # by configure, so config.status won't be able to write to it; its
19837 # output is simply discarded. So we exec the FD to /dev/null,
19838 # effectively closing config.log, so it can be properly (re)opened and
19839 # appended to by config.status. When coming back to configure, we
19840 # need to make the FD available again.
19841 if test "$no_create" != yes; then
19842 ac_cs_success=:
19843 ac_config_status_args=
19844 test "$silent" = yes &&
19845 ac_config_status_args="$ac_config_status_args --quiet"
19846 exec 5>/dev/null
19847 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19848 exec 5>>config.log
19849 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19850 # would make configure fail if this is the last instruction.
19851 $ac_cs_success || as_fn_exit 1
19852 fi
19853 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19855 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19856 fi
19857