RISC-V: Add autovec FP unary operations.
[official-gcc.git] / configure
blob57159126f3c3064d430e5fde0b45b399925b9352
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
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
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
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."
272 exit 1
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
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
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 ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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 ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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 ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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 ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
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
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
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
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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
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;;
510 ECHO_N='-n';;
511 esac
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
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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
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
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
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'"
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'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
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`
566 # Initializations.
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=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
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
633 LIPO
635 DSYMUTIL
636 DLLTOOL
639 RUNTEST
640 EXPECT
641 MAKEINFO
642 FLEX
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 host_pie
693 extra_linker_plugin_flags
694 extra_linker_plugin_configure_flags
695 islinc
696 isllibs
697 poststage1_ldflags
698 poststage1_libs
699 stage1_ldflags
700 stage1_libs
701 extra_isl_gmp_configure_flags
702 extra_mpc_mpfr_configure_flags
703 extra_mpc_gmp_configure_flags
704 extra_mpfr_configure_flags
705 gmpinc
706 gmplibs
707 PGO_BUILD_LTO_CFLAGS
708 PGO_BUILD_USE_CFLAGS
709 PGO_BUILD_GEN_CFLAGS
710 HAVE_CXX11_FOR_BUILD
711 HAVE_CXX11
712 do_compare
714 GNATMAKE
715 GNATBIND
716 ac_ct_CXX
717 CXXFLAGS
719 OBJEXT
720 EXEEXT
721 ac_ct_CC
722 CPPFLAGS
723 LDFLAGS
724 CFLAGS
726 target_subdir
727 host_subdir
728 build_subdir
729 build_libsubdir
732 LN_S
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 target_noncanonical
746 host_noncanonical
747 build_noncanonical
748 build_os
749 build_vendor
750 build_cpu
751 build
752 TOPLEVEL_CONFIGURE_ARGUMENTS
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files='serialization_dependencies
792 host_makefile_frag
793 target_makefile_frag
794 alphaieee_frag
795 ospace_frag'
796 ac_user_opts='
797 enable_option_checking
798 with_build_libsubdir
799 with_system_zlib
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
803 enable_gold
804 enable_ld
805 enable_compressed_debug_sections
806 enable_libquadmath
807 enable_libquadmath_support
808 enable_libada
809 enable_libgm2
810 enable_libssp
811 enable_libstdcxx
812 enable_bootstrap
813 enable_pgo_build
814 with_mpc
815 with_mpc_include
816 with_mpc_lib
817 with_mpfr
818 with_mpfr_include
819 with_mpfr_lib
820 with_gmp
821 with_gmp_include
822 with_gmp_lib
823 with_stage1_libs
824 with_static_standard_libraries
825 with_stage1_ldflags
826 with_boot_libs
827 with_boot_ldflags
828 with_isl
829 with_isl_include
830 with_isl_lib
831 enable_isl_version_check
832 enable_lto
833 enable_linker_plugin_configure_flags
834 enable_linker_plugin_flags
835 enable_host_pie
836 enable_host_shared
837 enable_stage1_languages
838 enable_objc_gc
839 with_target_bdw_gc
840 with_target_bdw_gc_include
841 with_target_bdw_gc_lib
842 with_gcc_major_version_only
843 with_build_sysroot
844 with_debug_prefix_map
845 with_build_config
846 enable_vtable_verify
847 enable_serial_configure
848 with_build_time_tools
849 enable_maintainer_mode
850 enable_stage1_checking
851 enable_werror
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
862 CXXFLAGS
864 build_configargs
865 host_configargs
866 target_configargs
869 DLLTOOL
870 DSYMUTIL
872 LIPO
874 RANLIB
875 STRIP
876 WINDRES
877 WINDMC
878 OBJCOPY
879 OBJDUMP
880 OTOOL
881 READELF
882 CC_FOR_TARGET
883 CXX_FOR_TARGET
884 GCC_FOR_TARGET
885 GFORTRAN_FOR_TARGET
886 GOC_FOR_TARGET
887 GDC_FOR_TARGET
888 GM2_FOR_TARGET
889 AR_FOR_TARGET
890 AS_FOR_TARGET
891 DLLTOOL_FOR_TARGET
892 DSYMUTIL_FOR_TARGET
893 LD_FOR_TARGET
894 LIPO_FOR_TARGET
895 NM_FOR_TARGET
896 OBJCOPY_FOR_TARGET
897 OBJDUMP_FOR_TARGET
898 OTOOL_FOR_TARGET
899 RANLIB_FOR_TARGET
900 READELF_FOR_TARGET
901 STRIP_FOR_TARGET
902 WINDRES_FOR_TARGET
903 WINDMC_FOR_TARGET'
906 # Initialize some variables set by options.
907 ac_init_help=
908 ac_init_version=false
909 ac_unrecognized_opts=
910 ac_unrecognized_sep=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
913 cache_file=/dev/null
914 exec_prefix=NONE
915 no_create=
916 no_recursion=
917 prefix=NONE
918 program_prefix=NONE
919 program_suffix=NONE
920 program_transform_name=s,x,x,
921 silent=
922 site=
923 srcdir=
924 verbose=
925 x_includes=NONE
926 x_libraries=NONE
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE}'
945 infodir='${datarootdir}/info'
946 htmldir='${docdir}'
947 dvidir='${docdir}'
948 pdfdir='${docdir}'
949 psdir='${docdir}'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
954 ac_prev=
955 ac_dashdash=
956 for ac_option
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
961 ac_prev=
962 continue
965 case $ac_option in
966 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *=) ac_optarg= ;;
968 *) ac_optarg=yes ;;
969 esac
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
975 ac_dashdash=yes ;;
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
994 --config-cache | -C)
995 cache_file=config.cache ;;
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1009 -disable-* | --disable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1035 -enable-* | --enable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=\$ac_optarg ;;
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1129 no_create=yes ;;
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
1198 sbindir=$ac_optarg ;;
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
1209 sharedstatedir=$ac_optarg ;;
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
1214 site=$ac_optarg ;;
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1239 -with-* | --with-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=\$ac_optarg ;;
1255 -without-* | --without-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1264 "with_$ac_useropt"
1265 "*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299 esac
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311 esac
1312 done
1314 if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $? "missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324 esac
1327 # Check all directory arguments for consistency.
1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val=\$$ac_var
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
1341 case $ac_val in
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 esac
1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1346 done
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1351 build=$build_alias
1352 host=$host_alias
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $? "pwd does not report name of working directory"
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1396 /^X\(\/\/\)$/{
1397 s//\1/
1400 /^X\(\/\).*/{
1401 s//\1/
1404 s/.*/./; q'`
1405 srcdir=$ac_confdir
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1407 srcdir=..
1409 else
1410 ac_srcdir_defaulted=no
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 ac_abs_confdir=`(
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 pwd)`
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1427 case $srcdir in
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 esac
1430 case $srcdir in
1431 *" "*)
1432 as_fn_error $? "path to source, $srcdir, contains spaces"
1434 esac
1435 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437 for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442 done
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1450 cat <<_ACEOF
1451 \`configure' configures this package to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1460 Configuration:
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 [PREFIX]
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1504 _ACEOF
1506 cat <<\_ACEOF
1508 Program names:
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517 _ACEOF
1520 if test -n "$ac_init_help"; then
1522 cat <<\_ACEOF
1524 Optional Features:
1525 --disable-option-checking ignore unrecognized --enable/--with options
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-as-accelerator-for=ARG
1529 build as offload target compiler. Specify offload
1530 host triple by ARG
1531 --enable-offload-targets=LIST
1532 enable offloading to devices from comma-separated
1533 LIST of TARGET[=DIR]. Use optional path to find
1534 offload target compiler during the build
1535 --enable-offload-defaulted
1536 If enabled, configured but not installed offload compilers and
1537 libgomp plugins are silently ignored. Useful for distribution
1538 compilers where those are in separate optional packages.
1540 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1541 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1542 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1543 Enable compressed debug sections for gas, gold or ld
1544 by default
1545 --disable-libquadmath do not build libquadmath directory
1546 --disable-libquadmath-support
1547 disable libquadmath support for Fortran
1548 --enable-libada build libada directory
1549 --enable-libgm2 build libgm2 directory
1550 --enable-libssp build libssp directory
1551 --disable-libstdcxx do not build libstdc++-v3 directory
1552 --enable-bootstrap enable bootstrapping [yes if native build]
1553 --enable-pgo-build[=lto]
1554 enable the PGO build
1555 --disable-isl-version-check
1556 disable check for isl version
1557 --enable-lto enable link time optimization support
1558 --enable-linker-plugin-configure-flags=FLAGS
1559 additional flags for configuring linker plugins
1560 [none]
1561 --enable-linker-plugin-flags=FLAGS
1562 additional flags for configuring and building linker
1563 plugins [none]
1564 --enable-host-pie build position independent host executables
1565 --enable-host-shared build host code as shared libraries
1566 --enable-stage1-languages[=all]
1567 choose additional languages to build during stage1.
1568 Mostly useful for compiler development
1569 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1570 Objective-C runtime
1571 --enable-vtable-verify Enable vtable verification feature
1572 --enable-serial-[{host,target,build}-]configure
1573 force sequential configuration of sub-packages for
1574 the host, target or build machine, or all
1575 sub-packages
1576 --enable-maintainer-mode
1577 enable make rules and dependencies not useful (and
1578 sometimes confusing) to the casual installer
1579 --enable-stage1-checking[=all]
1580 choose additional checking for stage1 of the
1581 compiler
1582 --enable-werror enable -Werror in bootstrap stage2 and later
1584 Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-build-libsubdir=DIR Directory where to find libraries for build system
1588 --with-system-zlib use installed libz
1589 --with-mpc=PATH specify prefix directory for installed MPC package.
1590 Equivalent to --with-mpc-include=PATH/include plus
1591 --with-mpc-lib=PATH/lib
1592 --with-mpc-include=PATH specify directory for installed MPC include files
1593 --with-mpc-lib=PATH specify directory for the installed MPC library
1594 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1595 Equivalent to --with-mpfr-include=PATH/include plus
1596 --with-mpfr-lib=PATH/lib
1597 --with-mpfr-include=PATH
1598 specify directory for installed MPFR include files
1599 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1600 --with-gmp=PATH specify prefix directory for the installed GMP
1601 package. Equivalent to
1602 --with-gmp-include=PATH/include plus
1603 --with-gmp-lib=PATH/lib
1604 --with-gmp-include=PATH specify directory for installed GMP include files
1605 --with-gmp-lib=PATH specify directory for the installed GMP library
1606 --with-stage1-libs=LIBS libraries for stage1
1607 --with-static-standard-libraries
1608 use -static-libstdc++ and -static-libgcc
1609 (default=auto)
1610 --with-stage1-ldflags=FLAGS
1611 linker flags for stage1
1612 --with-boot-libs=LIBS libraries for stage2 and later
1613 --with-boot-ldflags=FLAGS
1614 linker flags for stage2 and later
1615 --with-isl=PATH Specify prefix directory for the installed isl
1616 package. Equivalent to
1617 --with-isl-include=PATH/include plus
1618 --with-isl-lib=PATH/lib
1619 --with-isl-include=PATH Specify directory for installed isl include files
1620 --with-isl-lib=PATH Specify the directory for the installed isl library
1621 --with-target-bdw-gc=PATHLIST
1622 specify prefix directory for installed bdw-gc
1623 package. Equivalent to
1624 --with-target-bdw-gc-include=PATH/include plus
1625 --with-target-bdw-gc-lib=PATH/lib
1626 --with-target-bdw-gc-include=PATHLIST
1627 specify directories for installed bdw-gc include
1628 files
1629 --with-target-bdw-gc-lib=PATHLIST
1630 specify directories for installed bdw-gc library
1631 --with-gcc-major-version-only
1632 use only GCC major number in filesystem paths
1633 --with-build-sysroot=SYSROOT
1634 use sysroot as the system root during the build
1635 --with-debug-prefix-map='A=B C=D ...'
1636 map A to B, C to D ... in debug information
1637 --with-build-config='NAME NAME2...'
1638 use config/NAME.mk build configuration
1639 --with-build-time-tools=PATH
1640 use given path to find target tools during the build
1642 Some influential environment variables:
1643 CC C compiler command
1644 CFLAGS C compiler flags
1645 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1646 nonstandard directory <lib dir>
1647 LIBS libraries to pass to the linker, e.g. -l<library>
1648 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1649 you have headers in a nonstandard directory <include dir>
1650 CXX C++ compiler command
1651 CXXFLAGS C++ compiler flags
1652 build_configargs
1653 additional configure arguments for build directories
1654 host_configargs
1655 additional configure arguments for host directories
1656 target_configargs
1657 additional configure arguments for target directories
1658 AR AR for the host
1659 AS AS for the host
1660 DLLTOOL DLLTOOL for the host
1661 DSYMUTIL DSYMUTIL for the host
1662 LD LD for the host
1663 LIPO LIPO for the host
1664 NM NM for the host
1665 RANLIB RANLIB for the host
1666 STRIP STRIP for the host
1667 WINDRES WINDRES for the host
1668 WINDMC WINDMC for the host
1669 OBJCOPY OBJCOPY for the host
1670 OBJDUMP OBJDUMP for the host
1671 OTOOL OTOOL for the host
1672 READELF READELF for the host
1673 CC_FOR_TARGET
1674 CC for the target
1675 CXX_FOR_TARGET
1676 CXX for the target
1677 GCC_FOR_TARGET
1678 GCC for the target
1679 GFORTRAN_FOR_TARGET
1680 GFORTRAN for the target
1681 GOC_FOR_TARGET
1682 GOC for the target
1683 GDC_FOR_TARGET
1684 GDC for the target
1685 GM2_FOR_TARGET
1686 GM2 for the target
1687 AR_FOR_TARGET
1688 AR for the target
1689 AS_FOR_TARGET
1690 AS for the target
1691 DLLTOOL_FOR_TARGET
1692 DLLTOOL for the target
1693 DSYMUTIL_FOR_TARGET
1694 DSYMUTIL for the target
1695 LD_FOR_TARGET
1696 LD for the target
1697 LIPO_FOR_TARGET
1698 LIPO for the target
1699 NM_FOR_TARGET
1700 NM for the target
1701 OBJCOPY_FOR_TARGET
1702 OBJCOPY for the target
1703 OBJDUMP_FOR_TARGET
1704 OBJDUMP for the target
1705 OTOOL_FOR_TARGET
1706 OTOOL for the target
1707 RANLIB_FOR_TARGET
1708 RANLIB for the target
1709 READELF_FOR_TARGET
1710 READELF for the target
1711 STRIP_FOR_TARGET
1712 STRIP for the target
1713 WINDRES_FOR_TARGET
1714 WINDRES for the target
1715 WINDMC_FOR_TARGET
1716 WINDMC for the target
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1721 Report bugs to the package provider.
1722 _ACEOF
1723 ac_status=$?
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1731 continue
1732 ac_builddir=.
1734 case "$ac_dir" in
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 esac ;;
1744 esac
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1750 case $srcdir in
1751 .) # We are building in place.
1752 ac_srcdir=.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1759 *) # Relative name.
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1763 esac
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1772 echo &&
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1774 else
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1776 fi || ac_status=$?
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1778 done
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1783 cat <<\_ACEOF
1784 configure
1785 generated by GNU Autoconf 2.69
1787 Copyright (C) 2012 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1790 _ACEOF
1791 exit
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_cxx_try_compile LINENO
1837 # ----------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_cxx_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_cxx_try_compile
1874 # ac_fn_cxx_try_link LINENO
1875 # -------------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_link ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext conftest$ac_exeext
1881 if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_cxx_try_link
1920 # ac_fn_c_try_link LINENO
1921 # -----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_link ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext conftest$ac_exeext
1927 if { { ac_try="$ac_link"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest$ac_exeext && {
1946 test "$cross_compiling" = yes ||
1947 test -x conftest$ac_exeext
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1957 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1958 # interfere with the next link command; also delete a directory that is
1959 # left behind by Apple's compiler. We do this before executing the actions.
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_c_try_link
1965 cat >config.log <<_ACEOF
1966 This file contains any messages produced by compilers while
1967 running configure, to aid debugging if configure makes a mistake.
1969 It was created by $as_me, which was
1970 generated by GNU Autoconf 2.69. Invocation command line was
1972 $ $0 $@
1974 _ACEOF
1975 exec 5>>config.log
1977 cat <<_ASUNAME
1978 ## --------- ##
1979 ## Platform. ##
1980 ## --------- ##
1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1999 _ASUNAME
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 $as_echo "PATH: $as_dir"
2007 done
2008 IFS=$as_save_IFS
2010 } >&5
2012 cat >&5 <<_ACEOF
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2019 _ACEOF
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2033 for ac_arg
2035 case $ac_arg in
2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038 | -silent | --silent | --silen | --sile | --sil)
2039 continue ;;
2040 *\'*)
2041 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 esac
2043 case $ac_pass in
2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046 as_fn_append ac_configure_args1 " '$ac_arg'"
2047 if test $ac_must_keep_next = true; then
2048 ac_must_keep_next=false # Got value, back to normal.
2049 else
2050 case $ac_arg in
2051 *=* | --config-cache | -C | -disable-* | --disable-* \
2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054 | -with-* | --with-* | -without-* | --without-* | --x)
2055 case "$ac_configure_args0 " in
2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057 esac
2059 -* ) ac_must_keep_next=true ;;
2060 esac
2062 as_fn_append ac_configure_args " '$ac_arg'"
2064 esac
2065 done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log. We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076 # Save into config.log some information that might help in debugging.
2078 echo
2080 $as_echo "## ---------------- ##
2081 ## Cache variables. ##
2082 ## ---------------- ##"
2083 echo
2084 # The following way of writing the cache mishandles newlines in values,
2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087 eval ac_val=\$$ac_var
2088 case $ac_val in #(
2089 *${as_nl}*)
2090 case $ac_var in #(
2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 esac
2094 case $ac_var in #(
2095 _ | IFS | as_nl) ;; #(
2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097 *) { eval $ac_var=; unset $ac_var;} ;;
2098 esac ;;
2099 esac
2100 done
2101 (set) 2>&1 |
2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103 *${as_nl}ac_space=\ *)
2104 sed -n \
2105 "s/'\''/'\''\\\\'\'''\''/g;
2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 ;; #(
2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 esac |
2112 sort
2114 echo
2116 $as_echo "## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##"
2119 echo
2120 for ac_var in $ac_subst_vars
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2130 if test -n "$ac_subst_files"; then
2131 $as_echo "## ------------------- ##
2132 ## File substitutions. ##
2133 ## ------------------- ##"
2134 echo
2135 for ac_var in $ac_subst_files
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2146 if test -s confdefs.h; then
2147 $as_echo "## ----------- ##
2148 ## confdefs.h. ##
2149 ## ----------- ##"
2150 echo
2151 cat confdefs.h
2152 echo
2154 test "$ac_signal" != 0 &&
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
2157 } >&5
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 exit $exit_status
2162 for ac_signal in 1 2 13 15; do
2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164 done
2165 ac_signal=0
2167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2168 rm -f -r conftest* confdefs.h
2170 $as_echo "/* confdefs.h */" > confdefs.h
2172 # Predefined preprocessor variables.
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 _ACEOF
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 _ACEOF
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_URL "$PACKAGE_URL"
2196 _ACEOF
2199 # Let the site file select an alternate cache file if it wants to.
2200 # Prefer an explicitly selected file to automatically selected ones.
2201 ac_site_file1=NONE
2202 ac_site_file2=NONE
2203 if test -n "$CONFIG_SITE"; then
2204 # We do not want a PATH search for config.site.
2205 case $CONFIG_SITE in #((
2206 -*) ac_site_file1=./$CONFIG_SITE;;
2207 */*) ac_site_file1=$CONFIG_SITE;;
2208 *) ac_site_file1=./$CONFIG_SITE;;
2209 esac
2210 elif test "x$prefix" != xNONE; then
2211 ac_site_file1=$prefix/share/config.site
2212 ac_site_file2=$prefix/etc/config.site
2213 else
2214 ac_site_file1=$ac_default_prefix/share/config.site
2215 ac_site_file2=$ac_default_prefix/etc/config.site
2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 test "x$ac_site_file" = xNONE && continue
2220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2224 . "$ac_site_file" \
2225 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 as_fn_error $? "failed to load site script $ac_site_file
2228 See \`config.log' for more details" "$LINENO" 5; }
2230 done
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special files
2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 $as_echo "$as_me: loading cache $cache_file" >&6;}
2238 case $cache_file in
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
2241 esac
2243 else
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 $as_echo "$as_me: creating cache $cache_file" >&6;}
2246 >$cache_file
2249 # Check that the precious variables saved in the cache have kept the same
2250 # value.
2251 ac_cache_corrupted=false
2252 for ac_var in $ac_precious_vars; do
2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254 eval ac_new_set=\$ac_env_${ac_var}_set
2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256 eval ac_new_val=\$ac_env_${ac_var}_value
2257 case $ac_old_set,$ac_new_set in
2258 set,)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,set)
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265 ac_cache_corrupted=: ;;
2266 ,);;
2268 if test "x$ac_old_val" != "x$ac_new_val"; then
2269 # differences in whitespace do not lead to failure.
2270 ac_old_val_w=`echo x $ac_old_val`
2271 ac_new_val_w=`echo x $ac_new_val`
2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275 ac_cache_corrupted=:
2276 else
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279 eval $ac_var=\$ac_old_val
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 fi;;
2286 esac
2287 # Pass precious variables to config.status.
2288 if test "$ac_new_set" = set; then
2289 case $ac_new_val in
2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 *) ac_arg=$ac_var=$ac_new_val ;;
2292 esac
2293 case " $ac_configure_args " in
2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296 esac
2298 done
2299 if $ac_cache_corrupted; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306 ## -------------------- ##
2307 ## Main body of script. ##
2308 ## -------------------- ##
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 progname=$0
2324 # if PWD already has a value, it is probably wrong.
2325 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2327 # Export original configure arguments for use by sub-configures.
2328 # Quote arguments with shell meta charatcers.
2329 TOPLEVEL_CONFIGURE_ARGUMENTS=
2330 set -- "$progname" "$@"
2331 for ac_arg
2333 case "$ac_arg" in
2334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2335 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2336 # if the argument is of the form -foo=baz, quote the baz part only
2337 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2338 *) ;;
2339 esac
2340 # Add the quoted argument to the list.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2342 done
2343 if test "$silent" = yes; then
2344 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2346 # Remove the initial space we just introduced and, as these will be
2347 # expanded by make, quote '$'.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2351 # Find the build, host, and target systems.
2352 ac_aux_dir=
2353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2354 if test -f "$ac_dir/install-sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install-sh -c"
2357 break
2358 elif test -f "$ac_dir/install.sh"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/install.sh -c"
2361 break
2362 elif test -f "$ac_dir/shtool"; then
2363 ac_aux_dir=$ac_dir
2364 ac_install_sh="$ac_aux_dir/shtool install -c"
2365 break
2367 done
2368 if test -z "$ac_aux_dir"; then
2369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372 # These three variables are undocumented and unsupported,
2373 # and are intended to be withdrawn in a future Autoconf release.
2374 # They can cause serious problems if a builder's source tree is in a directory
2375 # whose full name contains unusual characters.
2376 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381 # Make sure we can run config.sub.
2382 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386 $as_echo_n "checking build system type... " >&6; }
2387 if ${ac_cv_build+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 ac_build_alias=$build_alias
2391 test "x$ac_build_alias" = x &&
2392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393 test "x$ac_build_alias" = x &&
2394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2395 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400 $as_echo "$ac_cv_build" >&6; }
2401 case $ac_cv_build in
2402 *-*-*) ;;
2403 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2404 esac
2405 build=$ac_cv_build
2406 ac_save_IFS=$IFS; IFS='-'
2407 set x $ac_cv_build
2408 shift
2409 build_cpu=$1
2410 build_vendor=$2
2411 shift; shift
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2414 build_os=$*
2415 IFS=$ac_save_IFS
2416 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2419 case ${build_alias} in
2420 "") build_noncanonical=${build} ;;
2421 *) build_noncanonical=${build_alias} ;;
2422 esac
2426 case ${host_alias} in
2427 "") host_noncanonical=${build_noncanonical} ;;
2428 *) host_noncanonical=${host_alias} ;;
2429 esac
2433 case ${target_alias} in
2434 "") target_noncanonical=${host_noncanonical} ;;
2435 *) target_noncanonical=${target_alias} ;;
2436 esac
2441 test "$host_noncanonical" = "$target_noncanonical" &&
2442 test "$program_prefix$program_suffix$program_transform_name" = \
2443 NONENONEs,x,x, &&
2444 program_transform_name=s,y,y,
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2447 $as_echo_n "checking host system type... " >&6; }
2448 if ${ac_cv_host+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 if test "x$host_alias" = x; then
2452 ac_cv_host=$ac_cv_build
2453 else
2454 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2460 $as_echo "$ac_cv_host" >&6; }
2461 case $ac_cv_host in
2462 *-*-*) ;;
2463 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2464 esac
2465 host=$ac_cv_host
2466 ac_save_IFS=$IFS; IFS='-'
2467 set x $ac_cv_host
2468 shift
2469 host_cpu=$1
2470 host_vendor=$2
2471 shift; shift
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2474 host_os=$*
2475 IFS=$ac_save_IFS
2476 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2480 $as_echo_n "checking target system type... " >&6; }
2481 if ${ac_cv_target+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test "x$target_alias" = x; then
2485 ac_cv_target=$ac_cv_host
2486 else
2487 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2488 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2493 $as_echo "$ac_cv_target" >&6; }
2494 case $ac_cv_target in
2495 *-*-*) ;;
2496 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2497 esac
2498 target=$ac_cv_target
2499 ac_save_IFS=$IFS; IFS='-'
2500 set x $ac_cv_target
2501 shift
2502 target_cpu=$1
2503 target_vendor=$2
2504 shift; shift
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2507 target_os=$*
2508 IFS=$ac_save_IFS
2509 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2512 # The aliases save the names the user supplied, while $host etc.
2513 # will get canonicalized.
2514 test -n "$target_alias" &&
2515 test "$program_prefix$program_suffix$program_transform_name" = \
2516 NONENONEs,x,x, &&
2517 program_prefix=${target_alias}-
2519 test "$program_prefix" != NONE &&
2520 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2521 # Use a double $ so make ignores it.
2522 test "$program_suffix" != NONE &&
2523 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2524 # Double any \ or $.
2525 # By default was `s,x,x', remove it if useless.
2526 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2527 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 # Get 'install' or 'install-sh' and its variants.
2532 # Find a good install program. We prefer a C program (faster),
2533 # so one script is as good as another. But avoid the broken or
2534 # incompatible versions:
2535 # SysV /etc/install, /usr/sbin/install
2536 # SunOS /usr/etc/install
2537 # IRIX /sbin/install
2538 # AIX /bin/install
2539 # AmigaOS /C/install, which installs bootblocks on floppy discs
2540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2543 # OS/2's system install, which has a completely different semantic
2544 # ./install, which can be erroneously created by make from ./install.sh.
2545 # Reject install programs that cannot install multiple files.
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2548 if test -z "$INSTALL"; then
2549 if ${ac_cv_path_install+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 # Account for people who put trailing slashes in PATH elements.
2558 case $as_dir/ in #((
2559 ./ | .// | /[cC]/* | \
2560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2562 /usr/ucb/* ) ;;
2564 # OSF1 and SCO ODT 3.0 have their own names for install.
2565 # Don't use installbsd from OSF since it installs stuff as root
2566 # by default.
2567 for ac_prog in ginstall scoinst install; do
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2570 if test $ac_prog = install &&
2571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # AIX install. It has an incompatible calling convention.
2574 elif test $ac_prog = install &&
2575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576 # program-specific install script used by HP pwplus--don't use.
2578 else
2579 rm -rf conftest.one conftest.two conftest.dir
2580 echo one > conftest.one
2581 echo two > conftest.two
2582 mkdir conftest.dir
2583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2584 test -s conftest.one && test -s conftest.two &&
2585 test -s conftest.dir/conftest.one &&
2586 test -s conftest.dir/conftest.two
2587 then
2588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2589 break 3
2593 done
2594 done
2596 esac
2598 done
2599 IFS=$as_save_IFS
2601 rm -rf conftest.one conftest.two conftest.dir
2604 if test "${ac_cv_path_install+set}" = set; then
2605 INSTALL=$ac_cv_path_install
2606 else
2607 # As a last resort, use the slow shell script. Don't cache a
2608 # value for INSTALL within a source directory, because that will
2609 # break other packages using the cache if that directory is
2610 # removed, or if the value is a relative name.
2611 INSTALL=$ac_install_sh
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2615 $as_echo "$INSTALL" >&6; }
2617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2618 # It thinks the first close brace ends the variable substitution.
2619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2623 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2626 $as_echo_n "checking whether ln works... " >&6; }
2627 if ${acx_cv_prog_LN+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 rm -f conftestdata_t
2631 echo >conftestdata_f
2632 if ln conftestdata_f conftestdata_t 2>/dev/null
2633 then
2634 acx_cv_prog_LN=ln
2635 else
2636 acx_cv_prog_LN=no
2638 rm -f conftestdata_f conftestdata_t
2641 if test $acx_cv_prog_LN = no; then
2642 LN="cp"
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2644 $as_echo "no, using $LN" >&6; }
2645 else
2646 LN="$acx_cv_prog_LN"
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2652 $as_echo_n "checking whether ln -s works... " >&6; }
2653 LN_S=$as_ln_s
2654 if test "$LN_S" = "ln -s"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2656 $as_echo "yes" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2659 $as_echo "no, using $LN_S" >&6; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2663 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2664 if ${ac_cv_path_SED+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2668 for ac_i in 1 2 3 4 5 6 7; do
2669 ac_script="$ac_script$as_nl$ac_script"
2670 done
2671 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2672 { ac_script=; unset ac_script;}
2673 if test -z "$SED"; then
2674 ac_path_SED_found=false
2675 # Loop through the user's path and test for each of PROGNAME-LIST
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_prog in sed gsed; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2684 as_fn_executable_p "$ac_path_SED" || continue
2685 # Check for GNU ac_path_SED and select it if it is found.
2686 # Check for GNU $ac_path_SED
2687 case `"$ac_path_SED" --version 2>&1` in
2688 *GNU*)
2689 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2691 ac_count=0
2692 $as_echo_n 0123456789 >"conftest.in"
2693 while :
2695 cat "conftest.in" "conftest.in" >"conftest.tmp"
2696 mv "conftest.tmp" "conftest.in"
2697 cp "conftest.in" "conftest.nl"
2698 $as_echo '' >> "conftest.nl"
2699 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2701 as_fn_arith $ac_count + 1 && ac_count=$as_val
2702 if test $ac_count -gt ${ac_path_SED_max-0}; then
2703 # Best one so far, save it but keep looking for a better one
2704 ac_cv_path_SED="$ac_path_SED"
2705 ac_path_SED_max=$ac_count
2707 # 10*(2^10) chars as input seems more than enough
2708 test $ac_count -gt 10 && break
2709 done
2710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2711 esac
2713 $ac_path_SED_found && break 3
2714 done
2715 done
2716 done
2717 IFS=$as_save_IFS
2718 if test -z "$ac_cv_path_SED"; then
2719 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2721 else
2722 ac_cv_path_SED=$SED
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2727 $as_echo "$ac_cv_path_SED" >&6; }
2728 SED="$ac_cv_path_SED"
2729 rm -f conftest.sed
2731 for ac_prog in gawk mawk nawk awk
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_AWK+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$AWK"; then
2741 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_AWK="$ac_prog"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2754 done
2755 done
2756 IFS=$as_save_IFS
2760 AWK=$ac_cv_prog_AWK
2761 if test -n "$AWK"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2763 $as_echo "$AWK" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2770 test -n "$AWK" && break
2771 done
2774 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2776 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2777 # a relative path.
2778 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2779 INSTALL="${srcpwd}/install-sh -c"
2782 # Set srcdir to "." if that's what it is.
2783 # This is important for multilib support.
2784 pwd=`${PWDCMD-pwd}`
2785 if test "${pwd}" = "${srcpwd}" ; then
2786 srcdir=.
2789 topsrcdir=$srcpwd
2791 extra_host_args=
2793 ### To add a new directory to the tree, first choose whether it is a target
2794 ### or a host dependent tool. Then put it into the appropriate list
2795 ### (library or tools, host or target), doing a dependency sort.
2797 # Subdirs will be configured in the order listed in build_configdirs,
2798 # configdirs, or target_configdirs; see the serialization section below.
2800 # Dependency sorting is only needed when *configuration* must be done in
2801 # a particular order. In all cases a dependency should be specified in
2802 # the Makefile, whether or not it's implicitly specified here.
2804 # Double entries in build_configdirs, configdirs, or target_configdirs may
2805 # cause circular dependencies and break everything horribly.
2807 # these library is used by various programs built for the build
2808 # environment
2810 build_libs="build-libiberty build-libcpp"
2812 # these tools are built for the build environment
2813 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2815 # these libraries are used by various programs built for the host environment
2817 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2819 # these tools are built for the host environment
2820 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2821 # know that we are building the simulator.
2822 # binutils, gas and ld appear in that order because it makes sense to run
2823 # "make check" in that particular order.
2824 # If --enable-gold is used, "gold" may replace "ld".
2825 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 # these libraries are built for the target environment, and are built after
2828 # the host libraries and the host tools (which may be a cross compiler)
2829 # Note that libiberty is not a target library.
2830 target_libraries="target-libgcc \
2831 target-libbacktrace \
2832 target-libgloss \
2833 target-newlib \
2834 target-libgomp \
2835 target-libatomic \
2836 target-libitm \
2837 target-libstdc++-v3 \
2838 target-libsanitizer \
2839 target-libvtv \
2840 target-libssp \
2841 target-libquadmath \
2842 target-libgfortran \
2843 target-libffi \
2844 target-libobjc \
2845 target-libada \
2846 target-libgm2 \
2847 target-libgo \
2848 target-libphobos \
2849 target-zlib"
2851 # these tools are built using the target libraries, and are intended to
2852 # run only in the target environment
2854 # note: any program that *uses* libraries that are in the "target_libraries"
2855 # list belongs in this list.
2857 target_tools="target-rda"
2859 ################################################################################
2861 ## All tools belong in one of the four categories, and are assigned above
2862 ## We assign ${configdirs} this way to remove all embedded newlines. This
2863 ## is important because configure will choke if they ever get through.
2864 ## ${configdirs} is directories we build using the host tools.
2865 ## ${target_configdirs} is directories we build using the target tools.
2866 configdirs=`echo ${host_libs} ${host_tools}`
2867 target_configdirs=`echo ${target_libraries} ${target_tools}`
2868 build_configdirs=`echo ${build_libs} ${build_tools}`
2872 ################################################################################
2874 srcname="gnu development package"
2876 # This gets set non-empty for some net releases of packages.
2877 appdirs=""
2879 # Define is_cross_compiler to save on calls to 'test'.
2880 is_cross_compiler=
2881 if test x"${host}" = x"${target}" ; then
2882 is_cross_compiler=no
2883 else
2884 is_cross_compiler=yes
2887 # Find the build and target subdir names.
2889 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2890 # have matching libraries, they should use host libraries: Makefile.tpl
2891 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2892 # However, they still use the build modules, because the corresponding
2893 # host modules (e.g. bison) are only built for the host when bootstrap
2894 # finishes. So:
2895 # - build_subdir is where we find build modules, and never changes.
2896 # - build_libsubdir is where we find build libraries, and can be overridden.
2898 # Prefix 'build-' so this never conflicts with target_subdir.
2899 build_subdir="build-${build_noncanonical}"
2901 # Check whether --with-build-libsubdir was given.
2902 if test "${with_build_libsubdir+set}" = set; then :
2903 withval=$with_build_libsubdir; build_libsubdir="$withval"
2904 else
2905 build_libsubdir="$build_subdir"
2908 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2909 if ( test $srcdir = . && test -d gcc ) \
2910 || test -d $srcdir/../host-${host_noncanonical}; then
2911 host_subdir="host-${host_noncanonical}"
2912 else
2913 host_subdir=.
2915 # No prefix.
2916 target_subdir=${target_noncanonical}
2918 # Be sure to cover against remnants of an in-tree build.
2919 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2920 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2921 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2924 # Skipdirs are removed silently.
2925 skipdirs=
2926 # Noconfigdirs are removed loudly.
2927 noconfigdirs=""
2929 use_gnu_ld=
2930 # Make sure we don't let GNU ld be added if we didn't want it.
2931 if test x$with_gnu_ld = xno ; then
2932 use_gnu_ld=no
2933 noconfigdirs="$noconfigdirs ld gold"
2936 use_gnu_as=
2937 # Make sure we don't let GNU as be added if we didn't want it.
2938 if test x$with_gnu_as = xno ; then
2939 use_gnu_as=no
2940 noconfigdirs="$noconfigdirs gas"
2943 use_included_zlib=
2945 # Check whether --with-system-zlib was given.
2946 if test "${with_system_zlib+set}" = set; then :
2947 withval=$with_system_zlib;
2950 # Make sure we don't let ZLIB be added if we didn't want it.
2951 if test x$with_system_zlib = xyes ; then
2952 use_included_zlib=no
2953 noconfigdirs="$noconfigdirs zlib"
2956 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2957 # is provided.
2958 if test x$with_system_readline = xyes ; then
2959 noconfigdirs="$noconfigdirs readline"
2962 # some tools are so dependent upon X11 that if we're not building with X,
2963 # it's not even worth trying to configure, much less build, that tool.
2965 case ${with_x} in
2966 yes | "") ;; # the default value for this tree is that X11 is available
2968 skipdirs="${skipdirs} tk itcl libgui"
2969 # We won't be able to build gdbtk without X.
2970 enable_gdbtk=no
2972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2973 esac
2975 # Some are only suitable for cross toolchains.
2976 # Remove these if host=target.
2977 cross_only="target-libgloss target-newlib target-opcodes"
2979 case $is_cross_compiler in
2980 no) skipdirs="${skipdirs} ${cross_only}" ;;
2981 esac
2983 # If both --with-headers and --with-libs are specified, default to
2984 # --without-newlib.
2985 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2986 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2987 if test x"${with_newlib}" = x ; then
2988 with_newlib=no
2992 # Recognize --with-newlib/--without-newlib.
2993 case ${with_newlib} in
2994 no) skipdirs="${skipdirs} target-newlib" ;;
2995 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2996 esac
2998 # Check whether --enable-as-accelerator-for was given.
2999 if test "${enable_as_accelerator_for+set}" = set; then :
3000 enableval=$enable_as_accelerator_for;
3004 # Check whether --enable-offload-targets was given.
3005 if test "${enable_offload_targets+set}" = set; then :
3006 enableval=$enable_offload_targets;
3007 if test x"$enable_offload_targets" = x; then
3008 as_fn_error $? "no offload targets specified" "$LINENO" 5
3011 else
3012 enable_offload_targets=
3016 # Check whether --enable-offload-defaulted was given.
3017 if test "${enable_offload_defaulted+set}" = set; then :
3018 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3019 else
3020 enable_offload_defaulted=
3024 # Handle --enable-gold, --enable-ld.
3025 # --disable-gold [--enable-ld]
3026 # Build only ld. Default option.
3027 # --enable-gold [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold", install ld
3029 # as "ld.bfd" and "ld".
3030 # --enable-gold=default [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3032 # install ld as "ld.bfd".
3033 # --enable-gold[=default] --disable-ld
3034 # Build only gold, which is then installed as both "ld.gold" and "ld".
3035 # --enable-gold --enable-ld=default
3036 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3037 # and ld.bfd).
3038 # In other words, ld is default
3039 # --enable-gold=default --enable-ld=default
3040 # Error.
3042 default_ld=
3043 # Check whether --enable-gold was given.
3044 if test "${enable_gold+set}" = set; then :
3045 enableval=$enable_gold; ENABLE_GOLD=$enableval
3046 else
3047 ENABLE_GOLD=no
3050 case "${ENABLE_GOLD}" in
3051 yes|default)
3052 # Check for ELF target.
3053 is_elf=no
3054 case "${target}" in
3055 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3056 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3057 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3058 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3059 case "${target}" in
3060 *-*-linux*aout* | *-*-linux*oldld*)
3063 is_elf=yes
3065 esac
3066 esac
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
3070 case "${target}" in
3071 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3072 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3073 configdirs="$configdirs gold"
3074 if test x${ENABLE_GOLD} = xdefault; then
3075 default_ld=gold
3077 ENABLE_GOLD=yes
3079 esac
3085 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3087 esac
3089 # Check whether --enable-ld was given.
3090 if test "${enable_ld+set}" = set; then :
3091 enableval=$enable_ld; ENABLE_LD=$enableval
3092 else
3093 ENABLE_LD=yes
3097 case "${ENABLE_LD}" in
3098 default)
3099 if test x${default_ld} != x; then
3100 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3103 yes)
3106 if test x${ENABLE_GOLD} != xyes; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3113 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3115 esac
3117 # PR gas/19109
3118 # Decide the default method for compressing debug sections.
3119 # Provide a configure time option to override our default.
3120 # Check whether --enable-compressed_debug_sections was given.
3121 if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval=$enable_compressed_debug_sections;
3123 if test x"$enable_compressed_debug_sections" = xyes; then
3124 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3127 else
3128 enable_compressed_debug_sections=
3132 # Configure extra directories which are host specific
3134 case "${host}" in
3135 *-cygwin*)
3136 configdirs="$configdirs libtermcap" ;;
3137 esac
3139 # A target can indicate whether a language isn't supported for some reason.
3140 # Only spaces may be used in this macro; not newlines or tabs.
3141 unsupported_languages=
3143 # Remove more programs from consideration, based on the host or
3144 # target this usually means that a port of the program doesn't
3145 # exist yet.
3147 case "${host}" in
3148 i[3456789]86-*-msdosdjgpp*)
3149 noconfigdirs="$noconfigdirs tcl tk itcl"
3151 esac
3154 # Check whether --enable-libquadmath was given.
3155 if test "${enable_libquadmath+set}" = set; then :
3156 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3157 else
3158 ENABLE_LIBQUADMATH=yes
3161 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs="$noconfigdirs target-libquadmath"
3166 # Check whether --enable-libquadmath-support was given.
3167 if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3169 else
3170 ENABLE_LIBQUADMATH_SUPPORT=yes
3173 enable_libquadmath_support=
3174 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support=no
3179 # Check whether --enable-libada was given.
3180 if test "${enable_libada+set}" = set; then :
3181 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3182 else
3183 ENABLE_LIBADA=yes
3186 if test "${ENABLE_LIBADA}" != "yes" ; then
3187 noconfigdirs="$noconfigdirs gnattools"
3190 # Check whether --enable-libgm2 was given.
3191 if test "${enable_libgm2+set}" = set; then :
3192 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3193 else
3194 ENABLE_LIBGM2=no
3197 if test "${ENABLE_LIBGM2}" != "yes" ; then
3198 noconfigdirs="$noconfigdirs gm2tools"
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3204 else
3205 ENABLE_LIBSSP=yes
3209 # Check whether --enable-libstdcxx was given.
3210 if test "${enable_libstdcxx+set}" = set; then :
3211 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3212 else
3213 ENABLE_LIBSTDCXX=default
3216 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3217 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3220 # Enable libgomp by default on hosted POSIX systems, and a few others.
3221 if test x$enable_libgomp = x ; then
3222 case "${target}" in
3223 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3225 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3227 *-*-solaris2* | *-*-hpux11*)
3229 *-*-darwin* | *-*-aix*)
3231 nvptx*-*-* | amdgcn*-*-*)
3234 noconfigdirs="$noconfigdirs target-libgomp"
3236 esac
3239 # Disable libatomic on unsupported systems.
3240 if test -d ${srcdir}/libatomic; then
3241 if test x$enable_libatomic = x; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3243 $as_echo_n "checking for libatomic support... " >&6; }
3244 if (srcdir=${srcdir}/libatomic; \
3245 . ${srcdir}/configure.tgt; \
3246 test -n "$UNSUPPORTED")
3247 then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 noconfigdirs="$noconfigdirs target-libatomic"
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3258 # Disable libitm on unsupported systems.
3259 if test -d ${srcdir}/libitm; then
3260 if test x$enable_libitm = x; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3262 $as_echo_n "checking for libitm support... " >&6; }
3263 if (srcdir=${srcdir}/libitm; \
3264 . ${srcdir}/configure.tgt; \
3265 test -n "$UNSUPPORTED")
3266 then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 noconfigdirs="$noconfigdirs target-libitm"
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3277 # Disable libsanitizer on unsupported systems.
3278 if test -d ${srcdir}/libsanitizer; then
3279 if test x$enable_libsanitizer = x; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3281 $as_echo_n "checking for libsanitizer support... " >&6; }
3282 if (srcdir=${srcdir}/libsanitizer; \
3283 . ${srcdir}/configure.tgt; \
3284 test -n "$UNSUPPORTED")
3285 then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs="$noconfigdirs target-libsanitizer"
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3296 # Disable libvtv on unsupported systems.
3297 if test -d ${srcdir}/libvtv; then
3298 if test x$enable_libvtv = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3300 $as_echo_n "checking for libvtv support... " >&6; }
3301 if (srcdir=${srcdir}/libvtv; \
3302 . ${srcdir}/configure.tgt; \
3303 test "$VTV_SUPPORTED" != "yes")
3304 then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs="$noconfigdirs target-libvtv"
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3315 # Disable libquadmath for some systems.
3316 case "${target}" in
3317 avr-*-*)
3318 noconfigdirs="$noconfigdirs target-libquadmath"
3320 # libquadmath is unused on AIX and libquadmath build process use of
3321 # LD_LIBRARY_PATH can break AIX bootstrap.
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libquadmath"
3325 esac
3327 # Disable libssp for some systems.
3328 case "${target}" in
3329 avr-*-*)
3330 # No hosted I/O support.
3331 noconfigdirs="$noconfigdirs target-libssp"
3333 bpf-*-*)
3334 noconfigdirs="$noconfigdirs target-libssp"
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libssp"
3339 pru-*-*)
3340 # No hosted I/O support.
3341 noconfigdirs="$noconfigdirs target-libssp"
3343 rl78-*-*)
3344 # libssp uses a misaligned load to trigger a fault, but the RL78
3345 # doesn't fault for those - instead, it gives a build-time error
3346 # for explicit misaligned loads.
3347 noconfigdirs="$noconfigdirs target-libssp"
3349 visium-*-*)
3350 # No hosted I/O support.
3351 noconfigdirs="$noconfigdirs target-libssp"
3353 esac
3355 # Disable libstdc++-v3 for some systems.
3356 # Allow user to override this if they pass --enable-libstdcxx
3357 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3358 case "${target}" in
3359 *-*-vxworks*)
3360 # VxWorks uses the Dinkumware C++ library.
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 amdgcn*-*-*)
3364 # Not ported/fails to build when using newlib.
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 arm*-wince-pe*)
3368 # the C++ libraries don't build on top of CE's C libraries
3369 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3371 avr-*-*)
3372 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3374 bpf-*-*)
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 ft32-*-*)
3378 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3380 esac
3383 # Disable C++ on systems where it is known to not work.
3384 # For testing, you can override this with --enable-languages=c++.
3385 case ,${enable_languages}, in
3386 *,c++,*)
3389 case "${target}" in
3390 bpf-*-*)
3391 unsupported_languages="$unsupported_languages c++"
3393 esac
3395 esac
3397 # Disable Objc on systems where it is known to not work.
3398 # For testing, you can override this with --enable-languages=objc.
3399 case ,${enable_languages}, in
3400 *,objc,*)
3403 case "${target}" in
3404 bpf-*-*)
3405 unsupported_languages="$unsupported_languages objc"
3407 esac
3409 esac
3411 # Disable D on systems where it is known to not work.
3412 # For testing, you can override this with --enable-languages=d.
3413 case ,${enable_languages}, in
3414 *,d,*)
3417 case "${target}" in
3418 bpf-*-*)
3419 unsupported_languages="$unsupported_languages d"
3421 esac
3423 esac
3425 # Disable libphobos on unsupported systems.
3426 # For testing, you can override this with --enable-libphobos.
3427 if test -d ${srcdir}/libphobos; then
3428 if test x$enable_libphobos = x; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3430 $as_echo_n "checking for libphobos support... " >&6; }
3431 if (srcdir=${srcdir}/libphobos; \
3432 . ${srcdir}/configure.tgt; \
3433 test "$LIBPHOBOS_SUPPORTED" != "yes")
3434 then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 noconfigdirs="$noconfigdirs target-libphobos"
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 $as_echo "yes" >&6; }
3445 # Disable Fortran for some systems.
3446 case "${target}" in
3447 mmix-*-*)
3448 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3449 unsupported_languages="$unsupported_languages fortran"
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages fortran"
3454 esac
3456 # Disable libffi for some systems.
3457 case "${target}" in
3458 powerpc-*-darwin*)
3460 i[3456789]86-*-darwin*)
3462 x86_64-*-darwin[912]*)
3464 *-*-darwin*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3467 *-*-netware*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3470 *-*-phoenix*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3473 *-*-rtems*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3476 *-*-tpf*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3479 *-*-uclinux*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3482 *-*-vxworks*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3485 aarch64*-*-freebsd*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3488 alpha*-*-*vms*)
3489 noconfigdirs="$noconfigdirs target-libffi"
3491 arm*-*-freebsd*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3494 arm-wince-pe)
3495 noconfigdirs="$noconfigdirs target-libffi"
3497 arm*-*-symbianelf*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3500 bpf-*-*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3503 cris-*-* | crisv32-*-*)
3504 case "${target}" in
3505 *-*-linux*)
3507 *) # See PR46792 regarding target-libffi.
3508 noconfigdirs="$noconfigdirs target-libffi";;
3509 esac
3511 hppa*64*-*-hpux*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3514 ia64*-*-*vms*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3517 i[3456789]86-w64-mingw*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3520 i[3456789]86-*-mingw*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3523 x86_64-*-mingw*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3526 mmix-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3529 powerpc-*-aix*)
3531 rs6000-*-aix*)
3533 ft32-*-*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 *-*-lynxos*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3539 esac
3541 # Disable the go frontend on systems where it is known to not work. Please keep
3542 # this in sync with contrib/config-list.mk.
3543 case "${target}" in
3544 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3545 unsupported_languages="$unsupported_languages go"
3547 esac
3549 # Only allow gdbserver on some systems.
3550 if test -d ${srcdir}/gdbserver; then
3551 if test x$enable_gdbserver = x; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3553 $as_echo_n "checking for gdbserver support... " >&6; }
3554 if (srcdir=${srcdir}/gdbserver; \
3555 . ${srcdir}/configure.srv; \
3556 test -n "$UNSUPPORTED")
3557 then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3560 noconfigdirs="$noconfigdirs gdbserver"
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3563 $as_echo "yes" >&6; }
3568 # Disable libgo for some systems where it is known to not work.
3569 # For testing, you can easily override this with --enable-libgo.
3570 if test x$enable_libgo = x; then
3571 case "${target}" in
3572 *-*-darwin*)
3573 # PR 46986
3574 noconfigdirs="$noconfigdirs target-libgo"
3576 *-*-cygwin* | *-*-mingw*)
3577 noconfigdirs="$noconfigdirs target-libgo"
3579 bpf-*-*)
3580 noconfigdirs="$noconfigdirs target-libgo"
3582 esac
3585 # Default libgloss CPU subdirectory.
3586 libgloss_dir="$target_cpu"
3588 case "${target}" in
3589 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3590 libgloss_dir=wince
3592 aarch64*-*-* )
3593 libgloss_dir=aarch64
3595 arm*-*-*)
3596 libgloss_dir=arm
3598 cris-*-* | crisv32-*-*)
3599 libgloss_dir=cris
3601 hppa*-*-*)
3602 libgloss_dir=pa
3604 i[3456789]86-*-*)
3605 libgloss_dir=i386
3607 loongarch*-*-*)
3608 libgloss_dir=loongarch
3610 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3611 libgloss_dir=m68hc11
3613 m68*-*-* | fido-*-*)
3614 libgloss_dir=m68k
3616 mips*-*-*)
3617 libgloss_dir=mips
3619 powerpc*-*-*)
3620 libgloss_dir=rs6000
3622 pru-*-*)
3623 libgloss_dir=pru
3625 sparc*-*-*)
3626 libgloss_dir=sparc
3628 esac
3630 # Disable newlib and libgloss for various target OSes.
3631 case "${target}" in
3632 alpha*-dec-osf*)
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 i[3456789]86-*-linux*)
3636 # This section makes it possible to build newlib natively on linux.
3637 # If we are using a cross compiler then don't configure newlib.
3638 if test x${is_cross_compiler} != xno ; then
3639 noconfigdirs="$noconfigdirs target-newlib"
3641 noconfigdirs="$noconfigdirs target-libgloss"
3642 # If we are not using a cross compiler, do configure newlib.
3643 # Note however, that newlib will only be configured in this situation
3644 # if the --with-newlib option has been given, because otherwise
3645 # 'target-newlib' will appear in skipdirs.
3647 i[3456789]86-*-rdos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 sparc-*-sunos4*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 bpf-*-*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 *-*-aix*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 *-*-beos*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 *-*-chorusos)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 *-*-dragonfly*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 *-*-freebsd*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 *-*-lynxos*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 *-*-mingw*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 *-*-netbsd*)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 *-*-netware*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 *-*-tpf*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 *-*-uclinux*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 *-*-vxworks*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 esac
3700 case "${target}" in
3701 *-*-chorusos)
3703 aarch64-*-darwin*)
3704 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3705 noconfigdirs="$noconfigdirs sim target-rda"
3707 amdgcn*-*-*)
3709 arm-*-darwin*)
3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711 noconfigdirs="$noconfigdirs sim target-rda"
3713 powerpc-*-darwin*)
3714 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3715 noconfigdirs="$noconfigdirs sim target-rda"
3717 i[3456789]86-*-darwin*)
3718 noconfigdirs="$noconfigdirs ld gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3721 x86_64-*-darwin[912]*)
3722 noconfigdirs="$noconfigdirs ld gas gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
3725 *-*-darwin*)
3726 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3727 noconfigdirs="$noconfigdirs sim target-rda"
3729 *-*-dragonfly*)
3731 *-*-freebsd*)
3732 if test "x$with_gmp" = x \
3733 && ! test -d ${srcdir}/gmp \
3734 && test -f /usr/local/include/gmp.h; then
3735 with_gmp=/usr/local
3738 *-*-kaos*)
3739 # Remove unsupported stuff on all kaOS configurations.
3740 noconfigdirs="$noconfigdirs target-libgloss"
3742 *-*-netbsd*)
3744 *-*-netware*)
3746 *-*-phoenix*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3749 *-*-rtems*)
3750 noconfigdirs="$noconfigdirs target-libgloss"
3752 # The tpf target doesn't support gdb yet.
3753 *-*-tpf*)
3754 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3756 *-*-uclinux*)
3757 noconfigdirs="$noconfigdirs target-rda"
3759 *-*-vxworks*)
3761 alpha*-dec-osf*)
3762 # ld works, but does not support shared libraries.
3763 # gas doesn't generate exception information.
3764 noconfigdirs="$noconfigdirs gas ld"
3766 alpha*-*-*vms*)
3767 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3769 alpha*-*-*)
3770 # newlib is not 64 bit ready
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 bpf-*-*)
3774 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3776 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3777 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3779 arc*-*-*)
3780 noconfigdirs="$noconfigdirs sim"
3782 arm-*-pe*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3785 arm-*-riscix*)
3786 noconfigdirs="$noconfigdirs ld target-libgloss"
3788 avr-*-*)
3789 if test x${with_avrlibc} != xno; then
3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3793 c4x-*-* | tic4x-*-*)
3794 noconfigdirs="$noconfigdirs target-libgloss"
3796 tic54x-*-*)
3797 noconfigdirs="$noconfigdirs target-libgloss gdb"
3799 d10v-*-*)
3800 noconfigdirs="$noconfigdirs target-libgloss"
3802 d30v-*-*)
3803 noconfigdirs="$noconfigdirs gdb"
3805 fr30-*-elf*)
3806 noconfigdirs="$noconfigdirs gdb"
3808 ft32-*-*)
3809 noconfigdirs="$noconfigdirs target-rda gprof"
3811 moxie-*-*)
3812 noconfigdirs="$noconfigdirs"
3814 h8300*-*-*)
3815 noconfigdirs="$noconfigdirs target-libgloss"
3817 h8500-*-*)
3818 noconfigdirs="$noconfigdirs target-libgloss"
3820 hppa*64*-*-hpux*)
3821 noconfigdirs="$noconfigdirs gdb"
3823 hppa*64*-*-linux*)
3825 hppa*-*-linux*)
3827 hppa*-*-*elf* | \
3828 hppa*-*-lites* | \
3829 hppa*-*-openbsd* | \
3830 hppa*64*-*-*)
3832 hppa*-*-pro*)
3834 hppa*-*-*)
3835 noconfigdirs="$noconfigdirs ld"
3837 i960-*-*)
3838 noconfigdirs="$noconfigdirs gdb"
3840 ia64*-*-elf*)
3841 # No gdb support yet.
3842 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3844 ia64*-**-hpux*)
3845 # No ld support yet.
3846 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3848 ia64*-*-*vms*)
3849 # No ld support yet.
3850 noconfigdirs="$noconfigdirs libgui itcl ld"
3852 i[3456789]86-w64-mingw*)
3854 i[3456789]86-*-mingw*)
3855 target_configdirs="$target_configdirs target-winsup"
3857 *-*-cygwin*)
3858 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3859 noconfigdirs="$noconfigdirs target-libgloss"
3860 # always build newlib if winsup directory is present.
3861 if test -d "$srcdir/winsup/cygwin"; then
3862 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3863 elif test -d "$srcdir/newlib"; then
3864 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3867 i[3456789]86-*-pe)
3868 noconfigdirs="$noconfigdirs target-libgloss"
3870 i[3456789]86-*-sco3.2v5*)
3871 # The linker does not yet know about weak symbols in COFF,
3872 # and is not configured to handle mixed ELF and COFF.
3873 noconfigdirs="$noconfigdirs ld target-libgloss"
3875 i[3456789]86-*-sco*)
3876 noconfigdirs="$noconfigdirs gprof target-libgloss"
3878 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3879 noconfigdirs="$noconfigdirs target-libgloss"
3881 i[3456789]86-*-sysv4*)
3882 noconfigdirs="$noconfigdirs target-libgloss"
3884 i[3456789]86-*-beos*)
3885 noconfigdirs="$noconfigdirs gdb"
3887 i[3456789]86-*-rdos*)
3888 noconfigdirs="$noconfigdirs gdb"
3890 mmix-*-*)
3891 noconfigdirs="$noconfigdirs gdb"
3893 mt-*-*)
3894 noconfigdirs="$noconfigdirs sim"
3896 nfp-*-*)
3897 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3898 noconfigdirs="$noconfigdirs $target_libraries"
3900 pdp11-*-*)
3901 noconfigdirs="$noconfigdirs gdb gprof"
3903 powerpc-*-aix*)
3904 # copied from rs6000-*-* entry
3905 noconfigdirs="$noconfigdirs gprof"
3907 powerpc*-*-winnt* | powerpc*-*-pe*)
3908 target_configdirs="$target_configdirs target-winsup"
3909 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3910 # always build newlib.
3911 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 # This is temporary until we can link against shared libraries
3914 powerpcle-*-solaris*)
3915 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3917 powerpc-*-beos*)
3918 noconfigdirs="$noconfigdirs gdb"
3920 rs6000-*-lynxos*)
3921 noconfigdirs="$noconfigdirs gprof"
3923 rs6000-*-aix*)
3924 noconfigdirs="$noconfigdirs gprof"
3926 rs6000-*-*)
3927 noconfigdirs="$noconfigdirs gprof"
3929 m68k-apollo-*)
3930 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3932 microblaze*)
3933 noconfigdirs="$noconfigdirs gprof"
3935 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3936 if test x$with_newlib = xyes; then
3937 noconfigdirs="$noconfigdirs gprof"
3940 mips*-*-irix5*)
3941 noconfigdirs="$noconfigdirs gprof target-libgloss"
3943 mips*-*-irix6*)
3944 noconfigdirs="$noconfigdirs gprof target-libgloss"
3946 mips*-*-bsd*)
3947 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3949 mips*-*-linux*)
3951 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3952 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3953 noconfigdirs="$noconfigdirs ld gas gprof"
3955 mips*-*-*)
3956 noconfigdirs="$noconfigdirs gprof"
3958 nvptx*-*-*)
3959 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3961 sh-*-*)
3962 case "${target}" in
3963 sh*-*-elf)
3966 noconfigdirs="$noconfigdirs target-libgloss" ;;
3967 esac
3969 sparc-*-sunos4*)
3970 if test x${is_cross_compiler} = xno ; then
3971 use_gnu_ld=no
3974 tic6x-*-*)
3975 noconfigdirs="$noconfigdirs sim"
3977 v810-*-*)
3978 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3980 vax-*-*)
3981 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3983 wasm32-*-*)
3984 noconfigdirs="$noconfigdirs ld"
3986 loongarch*-*-linux*)
3988 loongarch*-*-*)
3989 noconfigdirs="$noconfigdirs gprof"
3991 esac
3993 # If we aren't building newlib, then don't build libgloss, since libgloss
3994 # depends upon some newlib header files.
3995 case "${noconfigdirs}" in
3996 *target-libgloss*) ;;
3997 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3998 esac
4000 # Work in distributions that contain no compiler tools, like Autoconf.
4001 host_makefile_frag=/dev/null
4002 if test -d ${srcdir}/config ; then
4003 case "${host}" in
4004 i[3456789]86-*-msdosdjgpp*)
4005 host_makefile_frag="config/mh-djgpp"
4007 *-cygwin*)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4010 $as_echo_n "checking to see if cat works as expected... " >&6; }
4011 echo a >cygwin-cat-check
4012 if test `cat cygwin-cat-check` = a ; then
4013 rm cygwin-cat-check
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4016 else
4017 rm cygwin-cat-check
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 as_fn_error $? "The cat command does not ignore carriage return characters.
4021 Please either mount the build directory in binary mode or run the following
4022 commands before running any configure script:
4023 set -o igncr
4024 export SHELLOPTS
4025 " "$LINENO" 5
4028 host_makefile_frag="config/mh-cygwin"
4030 *-mingw*)
4031 host_makefile_frag="config/mh-mingw"
4033 alpha*-linux*)
4034 host_makefile_frag="config/mh-alpha-linux"
4036 hppa*-hp-hpux*)
4037 host_makefile_frag="config/mh-pa"
4039 hppa*-*)
4040 host_makefile_frag="config/mh-pa"
4042 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4043 host_makefile_frag="config/mh-darwin"
4045 powerpc-*-aix*)
4046 host_makefile_frag="config/mh-ppc-aix"
4048 rs6000-*-aix*)
4049 host_makefile_frag="config/mh-ppc-aix"
4051 esac
4054 if test "${build}" != "${host}" ; then
4055 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4056 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4057 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4058 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4059 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4060 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4061 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4062 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4063 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4064 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4065 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4066 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4067 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4068 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4069 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4070 else
4071 AR_FOR_BUILD="\$(AR)"
4072 AS_FOR_BUILD="\$(AS)"
4073 CC_FOR_BUILD="\$(CC)"
4074 CXX_FOR_BUILD="\$(CXX)"
4075 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4076 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4077 GOC_FOR_BUILD="\$(GOC)"
4078 GDC_FOR_BUILD="\$(GDC)"
4079 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4080 LD_FOR_BUILD="\$(LD)"
4081 NM_FOR_BUILD="\$(NM)"
4082 RANLIB_FOR_BUILD="\$(RANLIB)"
4083 WINDRES_FOR_BUILD="\$(WINDRES)"
4084 WINDMC_FOR_BUILD="\$(WINDMC)"
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 if test -n "$ac_tool_prefix"; then
4093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CC+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4114 done
4115 done
4116 IFS=$as_save_IFS
4120 CC=$ac_cv_prog_CC
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4124 else
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4131 if test -z "$ac_cv_prog_CC"; then
4132 ac_ct_CC=$CC
4133 # Extract the first word of "gcc", so it can be a program name with args.
4134 set dummy gcc; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test -n "$ac_ct_CC"; then
4141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_ac_ct_CC="gcc"
4151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4156 IFS=$as_save_IFS
4160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 if test -n "$ac_ct_CC"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 $as_echo "$ac_ct_CC" >&6; }
4164 else
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4169 if test "x$ac_ct_CC" = x; then
4170 CC=""
4171 else
4172 case $cross_compiling:$ac_tool_warned in
4173 yes:)
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 ac_tool_warned=yes ;;
4177 esac
4178 CC=$ac_ct_CC
4180 else
4181 CC="$ac_cv_prog_CC"
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}cc; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_prog_CC+:} false; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$CC"; then
4194 ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_CC="${ac_tool_prefix}cc"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4207 done
4208 done
4209 IFS=$as_save_IFS
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4225 if test -z "$CC"; then
4226 # Extract the first word of "cc", so it can be a program name with args.
4227 set dummy cc; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_CC+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC="$CC" # Let the user override the test.
4235 else
4236 ac_prog_rejected=no
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 ac_prog_rejected=yes
4246 continue
4248 ac_cv_prog_CC="cc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4256 if test $ac_prog_rejected = yes; then
4257 # We found a bogon in the path, so make sure we never use it.
4258 set dummy $ac_cv_prog_CC
4259 shift
4260 if test $# != 0; then
4261 # We chose a different compiler from the bogus one.
4262 # However, it has the same basename, so the bogon will be chosen
4263 # first if we set CC to just the basename; use the full file name.
4264 shift
4265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270 CC=$ac_cv_prog_CC
4271 if test -n "$CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 $as_echo "$CC" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4281 if test -z "$CC"; then
4282 if test -n "$ac_tool_prefix"; then
4283 for ac_prog in cl.exe
4285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_CC+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$CC"; then
4293 ac_cv_prog_CC="$CC" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 CC=$ac_cv_prog_CC
4313 if test -n "$CC"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4315 $as_echo "$CC" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4322 test -n "$CC" && break
4323 done
4325 if test -z "$CC"; then
4326 ac_ct_CC=$CC
4327 for ac_prog in cl.exe
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$ac_ct_CC"; then
4337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_ac_ct_CC="$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4350 done
4351 done
4352 IFS=$as_save_IFS
4356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4357 if test -n "$ac_ct_CC"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4359 $as_echo "$ac_ct_CC" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4366 test -n "$ac_ct_CC" && break
4367 done
4369 if test "x$ac_ct_CC" = x; then
4370 CC=""
4371 else
4372 case $cross_compiling:$ac_tool_warned in
4373 yes:)
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4376 ac_tool_warned=yes ;;
4377 esac
4378 CC=$ac_ct_CC
4385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $? "no acceptable C compiler found in \$PATH
4388 See \`config.log' for more details" "$LINENO" 5; }
4390 # Provide some information about the compiler.
4391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4392 set X $ac_compile
4393 ac_compiler=$2
4394 for ac_option in --version -v -V -qversion; do
4395 { { ac_try="$ac_compiler $ac_option >&5"
4396 case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399 esac
4400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401 $as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4403 ac_status=$?
4404 if test -s conftest.err; then
4405 sed '10a\
4406 ... rest of stderr output deleted ...
4407 10q' conftest.err >conftest.er1
4408 cat conftest.er1 >&5
4410 rm -f conftest.er1 conftest.err
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }
4413 done
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4419 main ()
4423 return 0;
4425 _ACEOF
4426 ac_clean_files_save=$ac_clean_files
4427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4428 # Try to create an executable without -o first, disregard a.out.
4429 # It will help us diagnose broken compilers, and finding out an intuition
4430 # of exeext.
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4432 $as_echo_n "checking whether the C compiler works... " >&6; }
4433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4435 # The possible output files:
4436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4438 ac_rmfiles=
4439 for ac_file in $ac_files
4441 case $ac_file in
4442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4444 esac
4445 done
4446 rm -f $ac_rmfiles
4448 if { { ac_try="$ac_link_default"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_link_default") 2>&5
4456 ac_status=$?
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; then :
4459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4462 # so that the user can short-circuit this test for compilers unknown to
4463 # Autoconf.
4464 for ac_file in $ac_files ''
4466 test -f "$ac_file" || continue
4467 case $ac_file in
4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4470 [ab].out )
4471 # We found the default executable, but exeext='' is most
4472 # certainly right.
4473 break;;
4474 *.* )
4475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4476 then :; else
4477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4479 # We set ac_cv_exeext here because the later test for it is not
4480 # safe: cross compilers may not add the suffix if given an `-o'
4481 # argument, so we may need to know it at that point already.
4482 # Even if this section looks crufty: it has the advantage of
4483 # actually working.
4484 break;;
4486 break;;
4487 esac
4488 done
4489 test "$ac_cv_exeext" = no && ac_cv_exeext=
4491 else
4492 ac_file=''
4494 if test -z "$ac_file"; then :
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error 77 "C compiler cannot create executables
4503 See \`config.log' for more details" "$LINENO" 5; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506 $as_echo "yes" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4509 $as_echo_n "checking for C compiler default output file name... " >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4511 $as_echo "$ac_file" >&6; }
4512 ac_exeext=$ac_cv_exeext
4514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4515 ac_clean_files=$ac_clean_files_save
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4517 $as_echo_n "checking for suffix of executables... " >&6; }
4518 if { { ac_try="$ac_link"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_link") 2>&5
4526 ac_status=$?
4527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4528 test $ac_status = 0; }; then :
4529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4531 # work properly (i.e., refer to `conftest.exe'), while it won't with
4532 # `rm'.
4533 for ac_file in conftest.exe conftest conftest.*; do
4534 test -f "$ac_file" || continue
4535 case $ac_file in
4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4538 break;;
4539 * ) break;;
4540 esac
4541 done
4542 else
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4546 See \`config.log' for more details" "$LINENO" 5; }
4548 rm -f conftest conftest$ac_cv_exeext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4550 $as_echo "$ac_cv_exeext" >&6; }
4552 rm -f conftest.$ac_ext
4553 EXEEXT=$ac_cv_exeext
4554 ac_exeext=$EXEEXT
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 #include <stdio.h>
4559 main ()
4561 FILE *f = fopen ("conftest.out", "w");
4562 return ferror (f) || fclose (f) != 0;
4565 return 0;
4567 _ACEOF
4568 ac_clean_files="$ac_clean_files conftest.out"
4569 # Check that the compiler produces executables we can run. If not, either
4570 # the compiler is broken, or we cross compile.
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4572 $as_echo_n "checking whether we are cross compiling... " >&6; }
4573 if test "$cross_compiling" != yes; then
4574 { { ac_try="$ac_link"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_link") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }
4585 if { ac_try='./conftest$ac_cv_exeext'
4586 { { case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589 esac
4590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4591 $as_echo "$ac_try_echo"; } >&5
4592 (eval "$ac_try") 2>&5
4593 ac_status=$?
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }; }; then
4596 cross_compiling=no
4597 else
4598 if test "$cross_compiling" = maybe; then
4599 cross_compiling=yes
4600 else
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "cannot run C compiled programs.
4604 If you meant to cross compile, use \`--host'.
4605 See \`config.log' for more details" "$LINENO" 5; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4610 $as_echo "$cross_compiling" >&6; }
4612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4613 ac_clean_files=$ac_clean_files_save
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4615 $as_echo_n "checking for suffix of object files... " >&6; }
4616 if ${ac_cv_objext+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 main ()
4627 return 0;
4629 _ACEOF
4630 rm -f conftest.o conftest.obj
4631 if { { ac_try="$ac_compile"
4632 case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637 $as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_compile") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; then :
4642 for ac_file in conftest.o conftest.obj conftest.*; do
4643 test -f "$ac_file" || continue;
4644 case $ac_file in
4645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4647 break;;
4648 esac
4649 done
4650 else
4651 $as_echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4656 as_fn_error $? "cannot compute suffix of object files: cannot compile
4657 See \`config.log' for more details" "$LINENO" 5; }
4659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4662 $as_echo "$ac_cv_objext" >&6; }
4663 OBJEXT=$ac_cv_objext
4664 ac_objext=$OBJEXT
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4667 if ${ac_cv_c_compiler_gnu+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4674 main ()
4676 #ifndef __GNUC__
4677 choke me
4678 #endif
4681 return 0;
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_compiler_gnu=yes
4686 else
4687 ac_compiler_gnu=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4696 GCC=yes
4697 else
4698 GCC=
4700 ac_test_CFLAGS=${CFLAGS+set}
4701 ac_save_CFLAGS=$CFLAGS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4704 if ${ac_cv_prog_cc_g+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 ac_save_c_werror_flag=$ac_c_werror_flag
4708 ac_c_werror_flag=yes
4709 ac_cv_prog_cc_g=no
4710 CFLAGS="-g"
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_prog_cc_g=yes
4724 else
4725 CFLAGS=""
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4739 else
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4741 CFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4746 main ()
4750 return 0;
4752 _ACEOF
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_g=yes
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4764 $as_echo "$ac_cv_prog_cc_g" >&6; }
4765 if test "$ac_test_CFLAGS" = set; then
4766 CFLAGS=$ac_save_CFLAGS
4767 elif test $ac_cv_prog_cc_g = yes; then
4768 if test "$GCC" = yes; then
4769 CFLAGS="-g -O2"
4770 else
4771 CFLAGS="-g"
4773 else
4774 if test "$GCC" = yes; then
4775 CFLAGS="-O2"
4776 else
4777 CFLAGS=
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4782 if ${ac_cv_prog_cc_c89+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 ac_cv_prog_cc_c89=no
4786 ac_save_CC=$CC
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #include <stdarg.h>
4790 #include <stdio.h>
4791 struct stat;
4792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4793 struct buf { int x; };
4794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4795 static char *e (p, i)
4796 char **p;
4797 int i;
4799 return p[i];
4801 static char *f (char * (*g) (char **, int), char **p, ...)
4803 char *s;
4804 va_list v;
4805 va_start (v,p);
4806 s = g (p, va_arg (v,int));
4807 va_end (v);
4808 return s;
4811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4812 function prototypes and stuff, but not '\xHH' hex character constants.
4813 These don't provoke an error unfortunately, instead are silently treated
4814 as 'x'. The following induces an error, until -std is added to get
4815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4816 array size at least. It's necessary to write '\x00'==0 to get something
4817 that's true only with -std. */
4818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4821 inside strings and character constants. */
4822 #define FOO(x) 'x'
4823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4825 int test (int i, double x);
4826 struct s1 {int (*f) (int a);};
4827 struct s2 {int (*f) (double a);};
4828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4829 int argc;
4830 char **argv;
4832 main ()
4834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4836 return 0;
4838 _ACEOF
4839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4842 CC="$ac_save_CC $ac_arg"
4843 if ac_fn_c_try_compile "$LINENO"; then :
4844 ac_cv_prog_cc_c89=$ac_arg
4846 rm -f core conftest.err conftest.$ac_objext
4847 test "x$ac_cv_prog_cc_c89" != "xno" && break
4848 done
4849 rm -f conftest.$ac_ext
4850 CC=$ac_save_CC
4853 # AC_CACHE_VAL
4854 case "x$ac_cv_prog_cc_c89" in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4857 $as_echo "none needed" >&6; } ;;
4858 xno)
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4860 $as_echo "unsupported" >&6; } ;;
4862 CC="$CC $ac_cv_prog_cc_c89"
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4865 esac
4866 if test "x$ac_cv_prog_cc_c89" != xno; then :
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4877 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4878 if ${ac_cv_prog_cc_c99+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 ac_cv_prog_cc_c99=no
4882 ac_save_CC=$CC
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <stdarg.h>
4886 #include <stdbool.h>
4887 #include <stdlib.h>
4888 #include <wchar.h>
4889 #include <stdio.h>
4891 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4892 #define debug(...) fprintf (stderr, __VA_ARGS__)
4893 #define showlist(...) puts (#__VA_ARGS__)
4894 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4895 static void
4896 test_varargs_macros (void)
4898 int x = 1234;
4899 int y = 5678;
4900 debug ("Flag");
4901 debug ("X = %d\n", x);
4902 showlist (The first, second, and third items.);
4903 report (x>y, "x is %d but y is %d", x, y);
4906 // Check long long types.
4907 #define BIG64 18446744073709551615ull
4908 #define BIG32 4294967295ul
4909 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4910 #if !BIG_OK
4911 your preprocessor is broken;
4912 #endif
4913 #if BIG_OK
4914 #else
4915 your preprocessor is broken;
4916 #endif
4917 static long long int bignum = -9223372036854775807LL;
4918 static unsigned long long int ubignum = BIG64;
4920 struct incomplete_array
4922 int datasize;
4923 double data[];
4926 struct named_init {
4927 int number;
4928 const wchar_t *name;
4929 double average;
4932 typedef const char *ccp;
4934 static inline int
4935 test_restrict (ccp restrict text)
4937 // See if C++-style comments work.
4938 // Iterate through items via the restricted pointer.
4939 // Also check for declarations in for loops.
4940 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4941 continue;
4942 return 0;
4945 // Check varargs and va_copy.
4946 static void
4947 test_varargs (const char *format, ...)
4949 va_list args;
4950 va_start (args, format);
4951 va_list args_copy;
4952 va_copy (args_copy, args);
4954 const char *str;
4955 int number;
4956 float fnumber;
4958 while (*format)
4960 switch (*format++)
4962 case 's': // string
4963 str = va_arg (args_copy, const char *);
4964 break;
4965 case 'd': // int
4966 number = va_arg (args_copy, int);
4967 break;
4968 case 'f': // float
4969 fnumber = va_arg (args_copy, double);
4970 break;
4971 default:
4972 break;
4975 va_end (args_copy);
4976 va_end (args);
4980 main ()
4983 // Check bool.
4984 _Bool success = false;
4986 // Check restrict.
4987 if (test_restrict ("String literal") == 0)
4988 success = true;
4989 char *restrict newvar = "Another string";
4991 // Check varargs.
4992 test_varargs ("s, d' f .", "string", 65, 34.234);
4993 test_varargs_macros ();
4995 // Check flexible array members.
4996 struct incomplete_array *ia =
4997 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4998 ia->datasize = 10;
4999 for (int i = 0; i < ia->datasize; ++i)
5000 ia->data[i] = i * 1.234;
5002 // Check named initializers.
5003 struct named_init ni = {
5004 .number = 34,
5005 .name = L"Test wide string",
5006 .average = 543.34343,
5009 ni.number = 58;
5011 int dynamic_array[ni.number];
5012 dynamic_array[ni.number - 1] = 543;
5014 // work around unused variable warnings
5015 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5016 || dynamic_array[ni.number - 1] != 543);
5019 return 0;
5021 _ACEOF
5022 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5024 CC="$ac_save_CC $ac_arg"
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 ac_cv_prog_cc_c99=$ac_arg
5028 rm -f core conftest.err conftest.$ac_objext
5029 test "x$ac_cv_prog_cc_c99" != "xno" && break
5030 done
5031 rm -f conftest.$ac_ext
5032 CC=$ac_save_CC
5035 # AC_CACHE_VAL
5036 case "x$ac_cv_prog_cc_c99" in
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5039 $as_echo "none needed" >&6; } ;;
5040 xno)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5042 $as_echo "unsupported" >&6; } ;;
5044 CC="$CC $ac_cv_prog_cc_c99"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5046 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5047 esac
5048 if test "x$ac_cv_prog_cc_c99" != xno; then :
5053 ac_ext=cpp
5054 ac_cpp='$CXXCPP $CPPFLAGS'
5055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058 if test -z "$CXX"; then
5059 if test -n "$CCC"; then
5060 CXX=$CCC
5061 else
5062 if test -n "$ac_tool_prefix"; then
5063 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_CXX+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$CXX"; then
5073 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 CXX=$ac_cv_prog_CXX
5093 if test -n "$CXX"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5095 $as_echo "$CXX" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5102 test -n "$CXX" && break
5103 done
5105 if test -z "$CXX"; then
5106 ac_ct_CXX=$CXX
5107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110 set dummy $ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$ac_ct_CXX"; then
5117 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_CXX="$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5130 done
5131 done
5132 IFS=$as_save_IFS
5136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5137 if test -n "$ac_ct_CXX"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5139 $as_echo "$ac_ct_CXX" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$ac_ct_CXX" && break
5147 done
5149 if test "x$ac_ct_CXX" = x; then
5150 CXX="g++"
5151 else
5152 case $cross_compiling:$ac_tool_warned in
5153 yes:)
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156 ac_tool_warned=yes ;;
5157 esac
5158 CXX=$ac_ct_CXX
5164 # Provide some information about the compiler.
5165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5166 set X $ac_compile
5167 ac_compiler=$2
5168 for ac_option in --version -v -V -qversion; do
5169 { { ac_try="$ac_compiler $ac_option >&5"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5175 $as_echo "$ac_try_echo"; } >&5
5176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5177 ac_status=$?
5178 if test -s conftest.err; then
5179 sed '10a\
5180 ... rest of stderr output deleted ...
5181 10q' conftest.err >conftest.er1
5182 cat conftest.er1 >&5
5184 rm -f conftest.er1 conftest.err
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }
5187 done
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5190 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5191 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5198 main ()
5200 #ifndef __GNUC__
5201 choke me
5202 #endif
5205 return 0;
5207 _ACEOF
5208 if ac_fn_cxx_try_compile "$LINENO"; then :
5209 ac_compiler_gnu=yes
5210 else
5211 ac_compiler_gnu=no
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5218 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5219 if test $ac_compiler_gnu = yes; then
5220 GXX=yes
5221 else
5222 GXX=
5224 ac_test_CXXFLAGS=${CXXFLAGS+set}
5225 ac_save_CXXFLAGS=$CXXFLAGS
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5227 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5228 if ${ac_cv_prog_cxx_g+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5232 ac_cxx_werror_flag=yes
5233 ac_cv_prog_cxx_g=no
5234 CXXFLAGS="-g"
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5239 main ()
5243 return 0;
5245 _ACEOF
5246 if ac_fn_cxx_try_compile "$LINENO"; then :
5247 ac_cv_prog_cxx_g=yes
5248 else
5249 CXXFLAGS=""
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_cxx_try_compile "$LINENO"; then :
5263 else
5264 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5265 CXXFLAGS="-g"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5270 main ()
5274 return 0;
5276 _ACEOF
5277 if ac_fn_cxx_try_compile "$LINENO"; then :
5278 ac_cv_prog_cxx_g=yes
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5288 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5289 if test "$ac_test_CXXFLAGS" = set; then
5290 CXXFLAGS=$ac_save_CXXFLAGS
5291 elif test $ac_cv_prog_cxx_g = yes; then
5292 if test "$GXX" = yes; then
5293 CXXFLAGS="-g -O2"
5294 else
5295 CXXFLAGS="-g"
5297 else
5298 if test "$GXX" = yes; then
5299 CXXFLAGS="-O2"
5300 else
5301 CXXFLAGS=
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 # We must set the default linker to the linker used by gcc for the correct
5312 # operation of libtool. If LD is not defined and we are using gcc, try to
5313 # set the LD default to the ld used by gcc.
5314 if test -z "$LD"; then
5315 if test "$GCC" = yes; then
5316 case $build in
5317 *-*-mingw*)
5318 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5320 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5321 esac
5322 case $gcc_prog_ld in
5323 # Accept absolute paths.
5324 [\\/]* | [A-Za-z]:[\\/]*)
5325 LD="$gcc_prog_ld" ;;
5326 esac
5330 # Check whether -static-libstdc++ -static-libgcc is supported.
5331 have_static_libs=no
5332 if test "$GCC" = yes; then
5333 saved_LDFLAGS="$LDFLAGS"
5335 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5337 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5338 ac_ext=cpp
5339 ac_cpp='$CXXCPP $CPPFLAGS'
5340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5348 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5349 #error -static-libstdc++ not implemented
5350 #endif
5351 int main() {}
5352 _ACEOF
5353 if ac_fn_cxx_try_link "$LINENO"; then :
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5355 $as_echo "yes" >&6; }; have_static_libs=yes
5356 else
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5360 rm -f core conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
5362 ac_ext=c
5363 ac_cpp='$CPP $CPPFLAGS'
5364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369 LDFLAGS="$saved_LDFLAGS"
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_GNATBIND+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$GNATBIND"; then
5384 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 GNATBIND=$ac_cv_prog_GNATBIND
5404 if test -n "$GNATBIND"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5406 $as_echo "$GNATBIND" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_GNATBIND"; then
5415 ac_ct_GNATBIND=$GNATBIND
5416 # Extract the first word of "gnatbind", so it can be a program name with args.
5417 set dummy gnatbind; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$ac_ct_GNATBIND"; then
5424 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5444 if test -n "$ac_ct_GNATBIND"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5446 $as_echo "$ac_ct_GNATBIND" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_GNATBIND" = x; then
5453 GNATBIND="no"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456 yes:)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5460 esac
5461 GNATBIND=$ac_ct_GNATBIND
5463 else
5464 GNATBIND="$ac_cv_prog_GNATBIND"
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5469 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_GNATMAKE+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$GNATMAKE"; then
5476 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5491 IFS=$as_save_IFS
5495 GNATMAKE=$ac_cv_prog_GNATMAKE
5496 if test -n "$GNATMAKE"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5498 $as_echo "$GNATMAKE" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test -z "$ac_cv_prog_GNATMAKE"; then
5507 ac_ct_GNATMAKE=$GNATMAKE
5508 # Extract the first word of "gnatmake", so it can be a program name with args.
5509 set dummy gnatmake; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$ac_ct_GNATMAKE"; then
5516 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5536 if test -n "$ac_ct_GNATMAKE"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5538 $as_echo "$ac_ct_GNATMAKE" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5544 if test "x$ac_ct_GNATMAKE" = x; then
5545 GNATMAKE="no"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 GNATMAKE=$ac_ct_GNATMAKE
5555 else
5556 GNATMAKE="$ac_cv_prog_GNATMAKE"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5560 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5561 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat >conftest.adb <<EOF
5565 pragma Warnings (Off);
5566 with System.CRTL;
5567 pragma Warnings (On);
5568 use type System.CRTL.int64;
5569 procedure conftest is begin null; end conftest;
5571 acx_cv_cc_gcc_supports_ada=no
5572 # There is a bug in old released versions of GCC which causes the
5573 # driver to exit successfully when the appropriate language module
5574 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5575 # Therefore we must check for the error message as well as an
5576 # unsuccessful exit.
5577 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5578 # given a .adb file, but produce no object file. So we must check
5579 # if an object file was really produced to guard against this.
5580 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5581 if test x"$errors" = x && test -f conftest.$ac_objext; then
5582 acx_cv_cc_gcc_supports_ada=yes
5584 rm -f conftest.*
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5587 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5589 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5590 have_gnat=yes
5591 else
5592 have_gnat=no
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_GDC+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$GDC"; then
5606 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5619 done
5620 done
5621 IFS=$as_save_IFS
5625 GDC=$ac_cv_prog_GDC
5626 if test -n "$GDC"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5628 $as_echo "$GDC" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_GDC"; then
5637 ac_ct_GDC=$GDC
5638 # Extract the first word of "gdc", so it can be a program name with args.
5639 set dummy gdc; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$ac_ct_GDC"; then
5646 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_prog_ac_ct_GDC="gdc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5665 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5666 if test -n "$ac_ct_GDC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5668 $as_echo "$ac_ct_GDC" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_GDC" = x; then
5675 GDC="no"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 GDC=$ac_ct_GDC
5685 else
5686 GDC="$ac_cv_prog_GDC"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5690 $as_echo_n "checking whether the D compiler works... " >&6; }
5691 if ${acx_cv_d_compiler_works+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 cat >conftest.d <<EOF
5695 module conftest; int main() { return 0; }
5697 acx_cv_d_compiler_works=no
5698 if test "x$GDC" != xno; then
5699 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5700 if test x"$errors" = x && test -f conftest.$ac_objext; then
5701 acx_cv_d_compiler_works=yes
5703 rm -f conftest.*
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5707 $as_echo "$acx_cv_d_compiler_works" >&6; }
5708 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5709 have_gdc=yes
5710 else
5711 have_gdc=no
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5715 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5716 if ${gcc_cv_prog_cmp_skip+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 echo abfoo >t1
5720 echo cdfoo >t2
5721 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5722 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5723 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5725 else
5726 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5729 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5730 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5732 else
5733 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5736 rm t1 t2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5740 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5741 do_compare="$gcc_cv_prog_cmp_skip"
5745 # Check whether --enable-bootstrap was given.
5746 if test "${enable_bootstrap+set}" = set; then :
5747 enableval=$enable_bootstrap;
5748 else
5749 enable_bootstrap=default
5753 # Issue errors and warnings for invalid/strange bootstrap combinations.
5754 if test -r $srcdir/gcc/configure; then
5755 have_compiler=yes
5756 else
5757 have_compiler=no
5760 case "$have_compiler:$host:$target:$enable_bootstrap" in
5761 *:*:*:no) ;;
5763 # Default behavior. Enable bootstrap if we have a compiler
5764 # and we are in a native configuration.
5765 yes:$build:$build:default)
5766 enable_bootstrap=yes ;;
5768 *:*:*:default)
5769 enable_bootstrap=no ;;
5771 # We have a compiler and we are in a native configuration, bootstrap is ok
5772 yes:$build:$build:yes)
5775 # Other configurations, but we have a compiler. Assume the user knows
5776 # what he's doing.
5777 yes:*:*:yes)
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5779 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5782 # No compiler: if they passed --enable-bootstrap explicitly, fail
5783 no:*:*:yes)
5784 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5786 # Fail if wrong command line
5788 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5790 esac
5792 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5793 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5794 # require C++11 (or higher).
5795 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5796 CXX="$CXX -std=c++11"
5797 elif test "$have_compiler" = yes; then
5798 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5799 ac_ext=cpp
5800 ac_cpp='$CXXCPP $CPPFLAGS'
5801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5804 ac_success=no
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5807 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5808 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5815 // If the compiler admits that it is not ready for C++11, why torture it?
5816 // Hopefully, this will speed up the test.
5818 #ifndef __cplusplus
5820 #error "This is not a C++ compiler"
5822 #elif __cplusplus < 201103L
5824 #error "This is not a C++11 compiler"
5826 #else
5828 namespace cxx11
5831 namespace test_static_assert
5834 template <typename T>
5835 struct check
5837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5842 namespace test_final_override
5845 struct Base
5847 virtual ~Base() {}
5848 virtual void f() {}
5851 struct Derived : public Base
5853 virtual ~Derived() override {}
5854 virtual void f() override {}
5859 namespace test_double_right_angle_brackets
5862 template < typename T >
5863 struct check {};
5865 typedef check<void> single_type;
5866 typedef check<check<void>> double_type;
5867 typedef check<check<check<void>>> triple_type;
5868 typedef check<check<check<check<void>>>> quadruple_type;
5872 namespace test_decltype
5878 int a = 1;
5879 decltype(a) b = 2;
5880 return a + b;
5885 namespace test_type_deduction
5888 template < typename T1, typename T2 >
5889 struct is_same
5891 static const bool value = false;
5894 template < typename T >
5895 struct is_same<T, T>
5897 static const bool value = true;
5900 template < typename T1, typename T2 >
5901 auto
5902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5904 return a1 + a2;
5908 test(const int c, volatile int v)
5910 static_assert(is_same<int, decltype(0)>::value == true, "");
5911 static_assert(is_same<int, decltype(c)>::value == false, "");
5912 static_assert(is_same<int, decltype(v)>::value == false, "");
5913 auto ac = c;
5914 auto av = v;
5915 auto sumi = ac + av + 'x';
5916 auto sumf = ac + av + 1.0;
5917 static_assert(is_same<int, decltype(ac)>::value == true, "");
5918 static_assert(is_same<int, decltype(av)>::value == true, "");
5919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5922 return (sumf > 0.0) ? sumi : add(c, v);
5927 namespace test_noexcept
5930 int f() { return 0; }
5931 int g() noexcept { return 0; }
5933 static_assert(noexcept(f()) == false, "");
5934 static_assert(noexcept(g()) == true, "");
5938 namespace test_constexpr
5941 template < typename CharT >
5942 unsigned long constexpr
5943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5948 template < typename CharT >
5949 unsigned long constexpr
5950 strlen_c(const CharT *const s) noexcept
5952 return strlen_c_r(s, 0UL);
5955 static_assert(strlen_c("") == 0UL, "");
5956 static_assert(strlen_c("1") == 1UL, "");
5957 static_assert(strlen_c("example") == 7UL, "");
5958 static_assert(strlen_c("another\0example") == 7UL, "");
5962 namespace test_rvalue_references
5965 template < int N >
5966 struct answer
5968 static constexpr int value = N;
5971 answer<1> f(int&) { return answer<1>(); }
5972 answer<2> f(const int&) { return answer<2>(); }
5973 answer<3> f(int&&) { return answer<3>(); }
5975 void
5976 test()
5978 int i = 0;
5979 const int c = 0;
5980 static_assert(decltype(f(i))::value == 1, "");
5981 static_assert(decltype(f(c))::value == 2, "");
5982 static_assert(decltype(f(0))::value == 3, "");
5987 namespace test_uniform_initialization
5990 struct test
5992 static const int zero {};
5993 static const int one {1};
5996 static_assert(test::zero == 0, "");
5997 static_assert(test::one == 1, "");
6001 namespace test_lambdas
6004 void
6005 test1()
6007 auto lambda1 = [](){};
6008 auto lambda2 = lambda1;
6009 lambda1();
6010 lambda2();
6014 test2()
6016 auto a = [](int i, int j){ return i + j; }(1, 2);
6017 auto b = []() -> int { return '0'; }();
6018 auto c = [=](){ return a + b; }();
6019 auto d = [&](){ return c; }();
6020 auto e = [a, &b](int x) mutable {
6021 const auto identity = [](int y){ return y; };
6022 for (auto i = 0; i < a; ++i)
6023 a += b--;
6024 return x + identity(a + b);
6025 }(0);
6026 return a + b + c + d + e;
6030 test3()
6032 const auto nullary = [](){ return 0; };
6033 const auto unary = [](int x){ return x; };
6034 using nullary_t = decltype(nullary);
6035 using unary_t = decltype(unary);
6036 const auto higher1st = [](nullary_t f){ return f(); };
6037 const auto higher2nd = [unary](nullary_t f1){
6038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6040 return higher1st(nullary) + higher2nd(nullary)(unary);
6045 namespace test_variadic_templates
6048 template <int...>
6049 struct sum;
6051 template <int N0, int... N1toN>
6052 struct sum<N0, N1toN...>
6054 static constexpr auto value = N0 + sum<N1toN...>::value;
6057 template <>
6058 struct sum<>
6060 static constexpr auto value = 0;
6063 static_assert(sum<>::value == 0, "");
6064 static_assert(sum<1>::value == 1, "");
6065 static_assert(sum<23>::value == 23, "");
6066 static_assert(sum<1, 2>::value == 3, "");
6067 static_assert(sum<5, 5, 11>::value == 21, "");
6068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6074 // because of this.
6075 namespace test_template_alias_sfinae
6078 struct foo {};
6080 template<typename T>
6081 using member = typename T::member_type;
6083 template<typename T>
6084 void func(...) {}
6086 template<typename T>
6087 void func(member<T>*) {}
6089 void test();
6091 void test() { func<foo>(0); }
6095 } // namespace cxx11
6097 #endif // __cplusplus >= 201103L
6101 _ACEOF
6102 if ac_fn_cxx_try_compile "$LINENO"; then :
6103 ax_cv_cxx_compile_cxx11=yes
6104 else
6105 ax_cv_cxx_compile_cxx11=no
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6110 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6111 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6112 ac_success=yes
6115 if test x$ac_success = xno; then
6116 for alternative in ${ax_cxx_compile_alternatives}; do
6117 switch="-std=gnu++${alternative}"
6118 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6120 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6121 if eval \${$cachevar+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 ac_save_CXX="$CXX"
6125 CXX="$CXX $switch"
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6130 // If the compiler admits that it is not ready for C++11, why torture it?
6131 // Hopefully, this will speed up the test.
6133 #ifndef __cplusplus
6135 #error "This is not a C++ compiler"
6137 #elif __cplusplus < 201103L
6139 #error "This is not a C++11 compiler"
6141 #else
6143 namespace cxx11
6146 namespace test_static_assert
6149 template <typename T>
6150 struct check
6152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6157 namespace test_final_override
6160 struct Base
6162 virtual ~Base() {}
6163 virtual void f() {}
6166 struct Derived : public Base
6168 virtual ~Derived() override {}
6169 virtual void f() override {}
6174 namespace test_double_right_angle_brackets
6177 template < typename T >
6178 struct check {};
6180 typedef check<void> single_type;
6181 typedef check<check<void>> double_type;
6182 typedef check<check<check<void>>> triple_type;
6183 typedef check<check<check<check<void>>>> quadruple_type;
6187 namespace test_decltype
6193 int a = 1;
6194 decltype(a) b = 2;
6195 return a + b;
6200 namespace test_type_deduction
6203 template < typename T1, typename T2 >
6204 struct is_same
6206 static const bool value = false;
6209 template < typename T >
6210 struct is_same<T, T>
6212 static const bool value = true;
6215 template < typename T1, typename T2 >
6216 auto
6217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6219 return a1 + a2;
6223 test(const int c, volatile int v)
6225 static_assert(is_same<int, decltype(0)>::value == true, "");
6226 static_assert(is_same<int, decltype(c)>::value == false, "");
6227 static_assert(is_same<int, decltype(v)>::value == false, "");
6228 auto ac = c;
6229 auto av = v;
6230 auto sumi = ac + av + 'x';
6231 auto sumf = ac + av + 1.0;
6232 static_assert(is_same<int, decltype(ac)>::value == true, "");
6233 static_assert(is_same<int, decltype(av)>::value == true, "");
6234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6237 return (sumf > 0.0) ? sumi : add(c, v);
6242 namespace test_noexcept
6245 int f() { return 0; }
6246 int g() noexcept { return 0; }
6248 static_assert(noexcept(f()) == false, "");
6249 static_assert(noexcept(g()) == true, "");
6253 namespace test_constexpr
6256 template < typename CharT >
6257 unsigned long constexpr
6258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6263 template < typename CharT >
6264 unsigned long constexpr
6265 strlen_c(const CharT *const s) noexcept
6267 return strlen_c_r(s, 0UL);
6270 static_assert(strlen_c("") == 0UL, "");
6271 static_assert(strlen_c("1") == 1UL, "");
6272 static_assert(strlen_c("example") == 7UL, "");
6273 static_assert(strlen_c("another\0example") == 7UL, "");
6277 namespace test_rvalue_references
6280 template < int N >
6281 struct answer
6283 static constexpr int value = N;
6286 answer<1> f(int&) { return answer<1>(); }
6287 answer<2> f(const int&) { return answer<2>(); }
6288 answer<3> f(int&&) { return answer<3>(); }
6290 void
6291 test()
6293 int i = 0;
6294 const int c = 0;
6295 static_assert(decltype(f(i))::value == 1, "");
6296 static_assert(decltype(f(c))::value == 2, "");
6297 static_assert(decltype(f(0))::value == 3, "");
6302 namespace test_uniform_initialization
6305 struct test
6307 static const int zero {};
6308 static const int one {1};
6311 static_assert(test::zero == 0, "");
6312 static_assert(test::one == 1, "");
6316 namespace test_lambdas
6319 void
6320 test1()
6322 auto lambda1 = [](){};
6323 auto lambda2 = lambda1;
6324 lambda1();
6325 lambda2();
6329 test2()
6331 auto a = [](int i, int j){ return i + j; }(1, 2);
6332 auto b = []() -> int { return '0'; }();
6333 auto c = [=](){ return a + b; }();
6334 auto d = [&](){ return c; }();
6335 auto e = [a, &b](int x) mutable {
6336 const auto identity = [](int y){ return y; };
6337 for (auto i = 0; i < a; ++i)
6338 a += b--;
6339 return x + identity(a + b);
6340 }(0);
6341 return a + b + c + d + e;
6345 test3()
6347 const auto nullary = [](){ return 0; };
6348 const auto unary = [](int x){ return x; };
6349 using nullary_t = decltype(nullary);
6350 using unary_t = decltype(unary);
6351 const auto higher1st = [](nullary_t f){ return f(); };
6352 const auto higher2nd = [unary](nullary_t f1){
6353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6355 return higher1st(nullary) + higher2nd(nullary)(unary);
6360 namespace test_variadic_templates
6363 template <int...>
6364 struct sum;
6366 template <int N0, int... N1toN>
6367 struct sum<N0, N1toN...>
6369 static constexpr auto value = N0 + sum<N1toN...>::value;
6372 template <>
6373 struct sum<>
6375 static constexpr auto value = 0;
6378 static_assert(sum<>::value == 0, "");
6379 static_assert(sum<1>::value == 1, "");
6380 static_assert(sum<23>::value == 23, "");
6381 static_assert(sum<1, 2>::value == 3, "");
6382 static_assert(sum<5, 5, 11>::value == 21, "");
6383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6389 // because of this.
6390 namespace test_template_alias_sfinae
6393 struct foo {};
6395 template<typename T>
6396 using member = typename T::member_type;
6398 template<typename T>
6399 void func(...) {}
6401 template<typename T>
6402 void func(member<T>*) {}
6404 void test();
6406 void test() { func<foo>(0); }
6410 } // namespace cxx11
6412 #endif // __cplusplus >= 201103L
6416 _ACEOF
6417 if ac_fn_cxx_try_compile "$LINENO"; then :
6418 eval $cachevar=yes
6419 else
6420 eval $cachevar=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 CXX="$ac_save_CXX"
6425 eval ac_res=\$$cachevar
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6428 if eval test x\$$cachevar = xyes; then
6429 CXX="$CXX $switch"
6430 if test -n "$CXXCPP" ; then
6431 CXXCPP="$CXXCPP $switch"
6433 ac_success=yes
6434 break
6436 done
6439 if test x$ac_success = xno; then
6440 for alternative in ${ax_cxx_compile_alternatives}; do
6441 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6444 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6445 if eval \${$cachevar+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 ac_save_CXX="$CXX"
6449 CXX="$CXX $switch"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6454 // If the compiler admits that it is not ready for C++11, why torture it?
6455 // Hopefully, this will speed up the test.
6457 #ifndef __cplusplus
6459 #error "This is not a C++ compiler"
6461 #elif __cplusplus < 201103L
6463 #error "This is not a C++11 compiler"
6465 #else
6467 namespace cxx11
6470 namespace test_static_assert
6473 template <typename T>
6474 struct check
6476 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6481 namespace test_final_override
6484 struct Base
6486 virtual ~Base() {}
6487 virtual void f() {}
6490 struct Derived : public Base
6492 virtual ~Derived() override {}
6493 virtual void f() override {}
6498 namespace test_double_right_angle_brackets
6501 template < typename T >
6502 struct check {};
6504 typedef check<void> single_type;
6505 typedef check<check<void>> double_type;
6506 typedef check<check<check<void>>> triple_type;
6507 typedef check<check<check<check<void>>>> quadruple_type;
6511 namespace test_decltype
6517 int a = 1;
6518 decltype(a) b = 2;
6519 return a + b;
6524 namespace test_type_deduction
6527 template < typename T1, typename T2 >
6528 struct is_same
6530 static const bool value = false;
6533 template < typename T >
6534 struct is_same<T, T>
6536 static const bool value = true;
6539 template < typename T1, typename T2 >
6540 auto
6541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6543 return a1 + a2;
6547 test(const int c, volatile int v)
6549 static_assert(is_same<int, decltype(0)>::value == true, "");
6550 static_assert(is_same<int, decltype(c)>::value == false, "");
6551 static_assert(is_same<int, decltype(v)>::value == false, "");
6552 auto ac = c;
6553 auto av = v;
6554 auto sumi = ac + av + 'x';
6555 auto sumf = ac + av + 1.0;
6556 static_assert(is_same<int, decltype(ac)>::value == true, "");
6557 static_assert(is_same<int, decltype(av)>::value == true, "");
6558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6561 return (sumf > 0.0) ? sumi : add(c, v);
6566 namespace test_noexcept
6569 int f() { return 0; }
6570 int g() noexcept { return 0; }
6572 static_assert(noexcept(f()) == false, "");
6573 static_assert(noexcept(g()) == true, "");
6577 namespace test_constexpr
6580 template < typename CharT >
6581 unsigned long constexpr
6582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6587 template < typename CharT >
6588 unsigned long constexpr
6589 strlen_c(const CharT *const s) noexcept
6591 return strlen_c_r(s, 0UL);
6594 static_assert(strlen_c("") == 0UL, "");
6595 static_assert(strlen_c("1") == 1UL, "");
6596 static_assert(strlen_c("example") == 7UL, "");
6597 static_assert(strlen_c("another\0example") == 7UL, "");
6601 namespace test_rvalue_references
6604 template < int N >
6605 struct answer
6607 static constexpr int value = N;
6610 answer<1> f(int&) { return answer<1>(); }
6611 answer<2> f(const int&) { return answer<2>(); }
6612 answer<3> f(int&&) { return answer<3>(); }
6614 void
6615 test()
6617 int i = 0;
6618 const int c = 0;
6619 static_assert(decltype(f(i))::value == 1, "");
6620 static_assert(decltype(f(c))::value == 2, "");
6621 static_assert(decltype(f(0))::value == 3, "");
6626 namespace test_uniform_initialization
6629 struct test
6631 static const int zero {};
6632 static const int one {1};
6635 static_assert(test::zero == 0, "");
6636 static_assert(test::one == 1, "");
6640 namespace test_lambdas
6643 void
6644 test1()
6646 auto lambda1 = [](){};
6647 auto lambda2 = lambda1;
6648 lambda1();
6649 lambda2();
6653 test2()
6655 auto a = [](int i, int j){ return i + j; }(1, 2);
6656 auto b = []() -> int { return '0'; }();
6657 auto c = [=](){ return a + b; }();
6658 auto d = [&](){ return c; }();
6659 auto e = [a, &b](int x) mutable {
6660 const auto identity = [](int y){ return y; };
6661 for (auto i = 0; i < a; ++i)
6662 a += b--;
6663 return x + identity(a + b);
6664 }(0);
6665 return a + b + c + d + e;
6669 test3()
6671 const auto nullary = [](){ return 0; };
6672 const auto unary = [](int x){ return x; };
6673 using nullary_t = decltype(nullary);
6674 using unary_t = decltype(unary);
6675 const auto higher1st = [](nullary_t f){ return f(); };
6676 const auto higher2nd = [unary](nullary_t f1){
6677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6679 return higher1st(nullary) + higher2nd(nullary)(unary);
6684 namespace test_variadic_templates
6687 template <int...>
6688 struct sum;
6690 template <int N0, int... N1toN>
6691 struct sum<N0, N1toN...>
6693 static constexpr auto value = N0 + sum<N1toN...>::value;
6696 template <>
6697 struct sum<>
6699 static constexpr auto value = 0;
6702 static_assert(sum<>::value == 0, "");
6703 static_assert(sum<1>::value == 1, "");
6704 static_assert(sum<23>::value == 23, "");
6705 static_assert(sum<1, 2>::value == 3, "");
6706 static_assert(sum<5, 5, 11>::value == 21, "");
6707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6713 // because of this.
6714 namespace test_template_alias_sfinae
6717 struct foo {};
6719 template<typename T>
6720 using member = typename T::member_type;
6722 template<typename T>
6723 void func(...) {}
6725 template<typename T>
6726 void func(member<T>*) {}
6728 void test();
6730 void test() { func<foo>(0); }
6734 } // namespace cxx11
6736 #endif // __cplusplus >= 201103L
6740 _ACEOF
6741 if ac_fn_cxx_try_compile "$LINENO"; then :
6742 eval $cachevar=yes
6743 else
6744 eval $cachevar=no
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 CXX="$ac_save_CXX"
6749 eval ac_res=\$$cachevar
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6751 $as_echo "$ac_res" >&6; }
6752 if eval test x\$$cachevar = xyes; then
6753 CXX="$CXX $switch"
6754 if test -n "$CXXCPP" ; then
6755 CXXCPP="$CXXCPP $switch"
6757 ac_success=yes
6758 break
6760 done
6761 if test x$ac_success = xyes; then
6762 break
6764 done
6767 ac_ext=c
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6774 if test x$ac_success = xno; then
6775 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6778 if test x$ac_success = xno; then
6779 HAVE_CXX11=0
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6781 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6782 else
6783 HAVE_CXX11=1
6785 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6791 if test "${build}" != "${host}"; then
6792 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6793 ac_ext=cpp
6794 ac_cpp='$CXXCPP $CPPFLAGS'
6795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6798 ac_success=no
6799 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6800 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6801 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6802 CXX="$CXX_FOR_BUILD"
6803 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6804 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6806 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6807 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6814 // If the compiler admits that it is not ready for C++11, why torture it?
6815 // Hopefully, this will speed up the test.
6817 #ifndef __cplusplus
6819 #error "This is not a C++ compiler"
6821 #elif __cplusplus < 201103L
6823 #error "This is not a C++11 compiler"
6825 #else
6827 namespace cxx11
6830 namespace test_static_assert
6833 template <typename T>
6834 struct check
6836 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6841 namespace test_final_override
6844 struct Base
6846 virtual ~Base() {}
6847 virtual void f() {}
6850 struct Derived : public Base
6852 virtual ~Derived() override {}
6853 virtual void f() override {}
6858 namespace test_double_right_angle_brackets
6861 template < typename T >
6862 struct check {};
6864 typedef check<void> single_type;
6865 typedef check<check<void>> double_type;
6866 typedef check<check<check<void>>> triple_type;
6867 typedef check<check<check<check<void>>>> quadruple_type;
6871 namespace test_decltype
6877 int a = 1;
6878 decltype(a) b = 2;
6879 return a + b;
6884 namespace test_type_deduction
6887 template < typename T1, typename T2 >
6888 struct is_same
6890 static const bool value = false;
6893 template < typename T >
6894 struct is_same<T, T>
6896 static const bool value = true;
6899 template < typename T1, typename T2 >
6900 auto
6901 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6903 return a1 + a2;
6907 test(const int c, volatile int v)
6909 static_assert(is_same<int, decltype(0)>::value == true, "");
6910 static_assert(is_same<int, decltype(c)>::value == false, "");
6911 static_assert(is_same<int, decltype(v)>::value == false, "");
6912 auto ac = c;
6913 auto av = v;
6914 auto sumi = ac + av + 'x';
6915 auto sumf = ac + av + 1.0;
6916 static_assert(is_same<int, decltype(ac)>::value == true, "");
6917 static_assert(is_same<int, decltype(av)>::value == true, "");
6918 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6920 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6921 return (sumf > 0.0) ? sumi : add(c, v);
6926 namespace test_noexcept
6929 int f() { return 0; }
6930 int g() noexcept { return 0; }
6932 static_assert(noexcept(f()) == false, "");
6933 static_assert(noexcept(g()) == true, "");
6937 namespace test_constexpr
6940 template < typename CharT >
6941 unsigned long constexpr
6942 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6944 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6947 template < typename CharT >
6948 unsigned long constexpr
6949 strlen_c(const CharT *const s) noexcept
6951 return strlen_c_r(s, 0UL);
6954 static_assert(strlen_c("") == 0UL, "");
6955 static_assert(strlen_c("1") == 1UL, "");
6956 static_assert(strlen_c("example") == 7UL, "");
6957 static_assert(strlen_c("another\0example") == 7UL, "");
6961 namespace test_rvalue_references
6964 template < int N >
6965 struct answer
6967 static constexpr int value = N;
6970 answer<1> f(int&) { return answer<1>(); }
6971 answer<2> f(const int&) { return answer<2>(); }
6972 answer<3> f(int&&) { return answer<3>(); }
6974 void
6975 test()
6977 int i = 0;
6978 const int c = 0;
6979 static_assert(decltype(f(i))::value == 1, "");
6980 static_assert(decltype(f(c))::value == 2, "");
6981 static_assert(decltype(f(0))::value == 3, "");
6986 namespace test_uniform_initialization
6989 struct test
6991 static const int zero {};
6992 static const int one {1};
6995 static_assert(test::zero == 0, "");
6996 static_assert(test::one == 1, "");
7000 namespace test_lambdas
7003 void
7004 test1()
7006 auto lambda1 = [](){};
7007 auto lambda2 = lambda1;
7008 lambda1();
7009 lambda2();
7013 test2()
7015 auto a = [](int i, int j){ return i + j; }(1, 2);
7016 auto b = []() -> int { return '0'; }();
7017 auto c = [=](){ return a + b; }();
7018 auto d = [&](){ return c; }();
7019 auto e = [a, &b](int x) mutable {
7020 const auto identity = [](int y){ return y; };
7021 for (auto i = 0; i < a; ++i)
7022 a += b--;
7023 return x + identity(a + b);
7024 }(0);
7025 return a + b + c + d + e;
7029 test3()
7031 const auto nullary = [](){ return 0; };
7032 const auto unary = [](int x){ return x; };
7033 using nullary_t = decltype(nullary);
7034 using unary_t = decltype(unary);
7035 const auto higher1st = [](nullary_t f){ return f(); };
7036 const auto higher2nd = [unary](nullary_t f1){
7037 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7039 return higher1st(nullary) + higher2nd(nullary)(unary);
7044 namespace test_variadic_templates
7047 template <int...>
7048 struct sum;
7050 template <int N0, int... N1toN>
7051 struct sum<N0, N1toN...>
7053 static constexpr auto value = N0 + sum<N1toN...>::value;
7056 template <>
7057 struct sum<>
7059 static constexpr auto value = 0;
7062 static_assert(sum<>::value == 0, "");
7063 static_assert(sum<1>::value == 1, "");
7064 static_assert(sum<23>::value == 23, "");
7065 static_assert(sum<1, 2>::value == 3, "");
7066 static_assert(sum<5, 5, 11>::value == 21, "");
7067 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7071 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7072 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7073 // because of this.
7074 namespace test_template_alias_sfinae
7077 struct foo {};
7079 template<typename T>
7080 using member = typename T::member_type;
7082 template<typename T>
7083 void func(...) {}
7085 template<typename T>
7086 void func(member<T>*) {}
7088 void test();
7090 void test() { func<foo>(0); }
7094 } // namespace cxx11
7096 #endif // __cplusplus >= 201103L
7100 _ACEOF
7101 if ac_fn_cxx_try_compile "$LINENO"; then :
7102 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7103 else
7104 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7109 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7110 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7111 ac_success=yes
7114 if test x$ac_success = xno; then
7115 for alternative in ${ax_cxx_compile_alternatives}; do
7116 switch="-std=gnu++${alternative}"
7117 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7119 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7120 if eval \${$cachevar+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 ac_save_CXX="$CXX"
7124 CXX="$CXX $switch"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 // If the compiler admits that it is not ready for C++11, why torture it?
7130 // Hopefully, this will speed up the test.
7132 #ifndef __cplusplus
7134 #error "This is not a C++ compiler"
7136 #elif __cplusplus < 201103L
7138 #error "This is not a C++11 compiler"
7140 #else
7142 namespace cxx11
7145 namespace test_static_assert
7148 template <typename T>
7149 struct check
7151 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7156 namespace test_final_override
7159 struct Base
7161 virtual ~Base() {}
7162 virtual void f() {}
7165 struct Derived : public Base
7167 virtual ~Derived() override {}
7168 virtual void f() override {}
7173 namespace test_double_right_angle_brackets
7176 template < typename T >
7177 struct check {};
7179 typedef check<void> single_type;
7180 typedef check<check<void>> double_type;
7181 typedef check<check<check<void>>> triple_type;
7182 typedef check<check<check<check<void>>>> quadruple_type;
7186 namespace test_decltype
7192 int a = 1;
7193 decltype(a) b = 2;
7194 return a + b;
7199 namespace test_type_deduction
7202 template < typename T1, typename T2 >
7203 struct is_same
7205 static const bool value = false;
7208 template < typename T >
7209 struct is_same<T, T>
7211 static const bool value = true;
7214 template < typename T1, typename T2 >
7215 auto
7216 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7218 return a1 + a2;
7222 test(const int c, volatile int v)
7224 static_assert(is_same<int, decltype(0)>::value == true, "");
7225 static_assert(is_same<int, decltype(c)>::value == false, "");
7226 static_assert(is_same<int, decltype(v)>::value == false, "");
7227 auto ac = c;
7228 auto av = v;
7229 auto sumi = ac + av + 'x';
7230 auto sumf = ac + av + 1.0;
7231 static_assert(is_same<int, decltype(ac)>::value == true, "");
7232 static_assert(is_same<int, decltype(av)>::value == true, "");
7233 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7235 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7236 return (sumf > 0.0) ? sumi : add(c, v);
7241 namespace test_noexcept
7244 int f() { return 0; }
7245 int g() noexcept { return 0; }
7247 static_assert(noexcept(f()) == false, "");
7248 static_assert(noexcept(g()) == true, "");
7252 namespace test_constexpr
7255 template < typename CharT >
7256 unsigned long constexpr
7257 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7259 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7262 template < typename CharT >
7263 unsigned long constexpr
7264 strlen_c(const CharT *const s) noexcept
7266 return strlen_c_r(s, 0UL);
7269 static_assert(strlen_c("") == 0UL, "");
7270 static_assert(strlen_c("1") == 1UL, "");
7271 static_assert(strlen_c("example") == 7UL, "");
7272 static_assert(strlen_c("another\0example") == 7UL, "");
7276 namespace test_rvalue_references
7279 template < int N >
7280 struct answer
7282 static constexpr int value = N;
7285 answer<1> f(int&) { return answer<1>(); }
7286 answer<2> f(const int&) { return answer<2>(); }
7287 answer<3> f(int&&) { return answer<3>(); }
7289 void
7290 test()
7292 int i = 0;
7293 const int c = 0;
7294 static_assert(decltype(f(i))::value == 1, "");
7295 static_assert(decltype(f(c))::value == 2, "");
7296 static_assert(decltype(f(0))::value == 3, "");
7301 namespace test_uniform_initialization
7304 struct test
7306 static const int zero {};
7307 static const int one {1};
7310 static_assert(test::zero == 0, "");
7311 static_assert(test::one == 1, "");
7315 namespace test_lambdas
7318 void
7319 test1()
7321 auto lambda1 = [](){};
7322 auto lambda2 = lambda1;
7323 lambda1();
7324 lambda2();
7328 test2()
7330 auto a = [](int i, int j){ return i + j; }(1, 2);
7331 auto b = []() -> int { return '0'; }();
7332 auto c = [=](){ return a + b; }();
7333 auto d = [&](){ return c; }();
7334 auto e = [a, &b](int x) mutable {
7335 const auto identity = [](int y){ return y; };
7336 for (auto i = 0; i < a; ++i)
7337 a += b--;
7338 return x + identity(a + b);
7339 }(0);
7340 return a + b + c + d + e;
7344 test3()
7346 const auto nullary = [](){ return 0; };
7347 const auto unary = [](int x){ return x; };
7348 using nullary_t = decltype(nullary);
7349 using unary_t = decltype(unary);
7350 const auto higher1st = [](nullary_t f){ return f(); };
7351 const auto higher2nd = [unary](nullary_t f1){
7352 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7354 return higher1st(nullary) + higher2nd(nullary)(unary);
7359 namespace test_variadic_templates
7362 template <int...>
7363 struct sum;
7365 template <int N0, int... N1toN>
7366 struct sum<N0, N1toN...>
7368 static constexpr auto value = N0 + sum<N1toN...>::value;
7371 template <>
7372 struct sum<>
7374 static constexpr auto value = 0;
7377 static_assert(sum<>::value == 0, "");
7378 static_assert(sum<1>::value == 1, "");
7379 static_assert(sum<23>::value == 23, "");
7380 static_assert(sum<1, 2>::value == 3, "");
7381 static_assert(sum<5, 5, 11>::value == 21, "");
7382 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7386 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7387 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7388 // because of this.
7389 namespace test_template_alias_sfinae
7392 struct foo {};
7394 template<typename T>
7395 using member = typename T::member_type;
7397 template<typename T>
7398 void func(...) {}
7400 template<typename T>
7401 void func(member<T>*) {}
7403 void test();
7405 void test() { func<foo>(0); }
7409 } // namespace cxx11
7411 #endif // __cplusplus >= 201103L
7415 _ACEOF
7416 if ac_fn_cxx_try_compile "$LINENO"; then :
7417 eval $cachevar=yes
7418 else
7419 eval $cachevar=no
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 CXX="$ac_save_CXX"
7424 eval ac_res=\$$cachevar
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7426 $as_echo "$ac_res" >&6; }
7427 if eval test x\$$cachevar = xyes; then
7428 CXX="$CXX $switch"
7429 if test -n "$CXXCPP" ; then
7430 CXXCPP="$CXXCPP $switch"
7432 ac_success=yes
7433 break
7435 done
7438 if test x$ac_success = xno; then
7439 for alternative in ${ax_cxx_compile_alternatives}; do
7440 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7441 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7443 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7444 if eval \${$cachevar+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 ac_save_CXX="$CXX"
7448 CXX="$CXX $switch"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 // If the compiler admits that it is not ready for C++11, why torture it?
7454 // Hopefully, this will speed up the test.
7456 #ifndef __cplusplus
7458 #error "This is not a C++ compiler"
7460 #elif __cplusplus < 201103L
7462 #error "This is not a C++11 compiler"
7464 #else
7466 namespace cxx11
7469 namespace test_static_assert
7472 template <typename T>
7473 struct check
7475 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7480 namespace test_final_override
7483 struct Base
7485 virtual ~Base() {}
7486 virtual void f() {}
7489 struct Derived : public Base
7491 virtual ~Derived() override {}
7492 virtual void f() override {}
7497 namespace test_double_right_angle_brackets
7500 template < typename T >
7501 struct check {};
7503 typedef check<void> single_type;
7504 typedef check<check<void>> double_type;
7505 typedef check<check<check<void>>> triple_type;
7506 typedef check<check<check<check<void>>>> quadruple_type;
7510 namespace test_decltype
7516 int a = 1;
7517 decltype(a) b = 2;
7518 return a + b;
7523 namespace test_type_deduction
7526 template < typename T1, typename T2 >
7527 struct is_same
7529 static const bool value = false;
7532 template < typename T >
7533 struct is_same<T, T>
7535 static const bool value = true;
7538 template < typename T1, typename T2 >
7539 auto
7540 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7542 return a1 + a2;
7546 test(const int c, volatile int v)
7548 static_assert(is_same<int, decltype(0)>::value == true, "");
7549 static_assert(is_same<int, decltype(c)>::value == false, "");
7550 static_assert(is_same<int, decltype(v)>::value == false, "");
7551 auto ac = c;
7552 auto av = v;
7553 auto sumi = ac + av + 'x';
7554 auto sumf = ac + av + 1.0;
7555 static_assert(is_same<int, decltype(ac)>::value == true, "");
7556 static_assert(is_same<int, decltype(av)>::value == true, "");
7557 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7559 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7560 return (sumf > 0.0) ? sumi : add(c, v);
7565 namespace test_noexcept
7568 int f() { return 0; }
7569 int g() noexcept { return 0; }
7571 static_assert(noexcept(f()) == false, "");
7572 static_assert(noexcept(g()) == true, "");
7576 namespace test_constexpr
7579 template < typename CharT >
7580 unsigned long constexpr
7581 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7583 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7586 template < typename CharT >
7587 unsigned long constexpr
7588 strlen_c(const CharT *const s) noexcept
7590 return strlen_c_r(s, 0UL);
7593 static_assert(strlen_c("") == 0UL, "");
7594 static_assert(strlen_c("1") == 1UL, "");
7595 static_assert(strlen_c("example") == 7UL, "");
7596 static_assert(strlen_c("another\0example") == 7UL, "");
7600 namespace test_rvalue_references
7603 template < int N >
7604 struct answer
7606 static constexpr int value = N;
7609 answer<1> f(int&) { return answer<1>(); }
7610 answer<2> f(const int&) { return answer<2>(); }
7611 answer<3> f(int&&) { return answer<3>(); }
7613 void
7614 test()
7616 int i = 0;
7617 const int c = 0;
7618 static_assert(decltype(f(i))::value == 1, "");
7619 static_assert(decltype(f(c))::value == 2, "");
7620 static_assert(decltype(f(0))::value == 3, "");
7625 namespace test_uniform_initialization
7628 struct test
7630 static const int zero {};
7631 static const int one {1};
7634 static_assert(test::zero == 0, "");
7635 static_assert(test::one == 1, "");
7639 namespace test_lambdas
7642 void
7643 test1()
7645 auto lambda1 = [](){};
7646 auto lambda2 = lambda1;
7647 lambda1();
7648 lambda2();
7652 test2()
7654 auto a = [](int i, int j){ return i + j; }(1, 2);
7655 auto b = []() -> int { return '0'; }();
7656 auto c = [=](){ return a + b; }();
7657 auto d = [&](){ return c; }();
7658 auto e = [a, &b](int x) mutable {
7659 const auto identity = [](int y){ return y; };
7660 for (auto i = 0; i < a; ++i)
7661 a += b--;
7662 return x + identity(a + b);
7663 }(0);
7664 return a + b + c + d + e;
7668 test3()
7670 const auto nullary = [](){ return 0; };
7671 const auto unary = [](int x){ return x; };
7672 using nullary_t = decltype(nullary);
7673 using unary_t = decltype(unary);
7674 const auto higher1st = [](nullary_t f){ return f(); };
7675 const auto higher2nd = [unary](nullary_t f1){
7676 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7678 return higher1st(nullary) + higher2nd(nullary)(unary);
7683 namespace test_variadic_templates
7686 template <int...>
7687 struct sum;
7689 template <int N0, int... N1toN>
7690 struct sum<N0, N1toN...>
7692 static constexpr auto value = N0 + sum<N1toN...>::value;
7695 template <>
7696 struct sum<>
7698 static constexpr auto value = 0;
7701 static_assert(sum<>::value == 0, "");
7702 static_assert(sum<1>::value == 1, "");
7703 static_assert(sum<23>::value == 23, "");
7704 static_assert(sum<1, 2>::value == 3, "");
7705 static_assert(sum<5, 5, 11>::value == 21, "");
7706 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7710 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7711 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7712 // because of this.
7713 namespace test_template_alias_sfinae
7716 struct foo {};
7718 template<typename T>
7719 using member = typename T::member_type;
7721 template<typename T>
7722 void func(...) {}
7724 template<typename T>
7725 void func(member<T>*) {}
7727 void test();
7729 void test() { func<foo>(0); }
7733 } // namespace cxx11
7735 #endif // __cplusplus >= 201103L
7739 _ACEOF
7740 if ac_fn_cxx_try_compile "$LINENO"; then :
7741 eval $cachevar=yes
7742 else
7743 eval $cachevar=no
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 CXX="$ac_save_CXX"
7748 eval ac_res=\$$cachevar
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7750 $as_echo "$ac_res" >&6; }
7751 if eval test x\$$cachevar = xyes; then
7752 CXX="$CXX $switch"
7753 if test -n "$CXXCPP" ; then
7754 CXXCPP="$CXXCPP $switch"
7756 ac_success=yes
7757 break
7759 done
7760 if test x$ac_success = xyes; then
7761 break
7763 done
7765 CXX_FOR_BUILD="$CXX"
7766 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7767 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7768 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7769 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7770 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7778 if test x$ac_success = xno; then
7779 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7782 if test x$ac_success = xno; then
7783 HAVE_CXX11_FOR_BUILD=0
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7785 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7786 else
7787 HAVE_CXX11_FOR_BUILD=1
7789 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7797 # Check whether --enable-pgo-build was given.
7798 if test "${enable_pgo_build+set}" = set; then :
7799 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7800 else
7801 enable_pgo_build=no
7805 # Issue errors and warnings for invalid/strange PGO build combinations.
7806 case "$have_compiler:$host:$target:$enable_pgo_build" in
7807 *:*:*:no) ;;
7809 # Allow the PGO build only if we aren't building a compiler and
7810 # we are in a native configuration.
7811 no:$build:$build:yes | no:$build:$build:lto) ;;
7813 # Disallow the PGO bootstrap if we are building a compiler.
7814 yes:*:*:yes | yes:*:*:lto)
7815 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7818 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7820 esac
7822 if test "$enable_pgo_build" != "no"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7824 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7825 old_CFLAGS="$CFLAGS"
7826 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7827 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 int foo;
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7835 else
7836 PGO_BUILD_GEN_CFLAGS=
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 CFLAGS="$old_CFLAGS"
7840 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7843 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7850 if test "$enable_pgo_build" = "lto"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7852 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7853 old_CFLAGS="$CFLAGS"
7854 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7855 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 int foo;
7859 _ACEOF
7860 if ac_fn_c_try_compile "$LINENO"; then :
7862 else
7863 PGO_BUILD_LTO_CFLAGS=
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 CFLAGS="$old_CFLAGS"
7867 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7874 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7882 # Used for setting $lt_cv_objdir
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7884 $as_echo_n "checking for objdir... " >&6; }
7885 if ${lt_cv_objdir+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 rm -f .libs 2>/dev/null
7889 mkdir .libs 2>/dev/null
7890 if test -d .libs; then
7891 lt_cv_objdir=.libs
7892 else
7893 # MS-DOS does not allow filenames that begin with a dot.
7894 lt_cv_objdir=_libs
7896 rmdir .libs 2>/dev/null
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7899 $as_echo "$lt_cv_objdir" >&6; }
7900 objdir=$lt_cv_objdir
7906 cat >>confdefs.h <<_ACEOF
7907 #define LT_OBJDIR "$lt_cv_objdir/"
7908 _ACEOF
7912 # Check for GMP, MPFR and MPC
7913 require_gmp=no
7914 require_mpc=no
7915 if test -d ${srcdir}/gcc ; then
7916 require_gmp=yes
7917 require_mpc=yes
7919 if test -d ${srcdir}/gdb ; then
7920 if test "x$enable_gdb" != xno; then
7921 require_gmp=yes
7925 gmplibs="-lmpfr -lgmp"
7926 if test x"$require_mpc" = "xyes" ; then
7927 gmplibs="-lmpc $gmplibs"
7929 gmpinc=
7930 have_gmp=no
7932 # Specify a location for mpc
7933 # check for this first so it ends up on the link line before mpfr.
7935 # Check whether --with-mpc was given.
7936 if test "${with_mpc+set}" = set; then :
7937 withval=$with_mpc;
7941 # Check whether --with-mpc-include was given.
7942 if test "${with_mpc_include+set}" = set; then :
7943 withval=$with_mpc_include;
7947 # Check whether --with-mpc-lib was given.
7948 if test "${with_mpc_lib+set}" = set; then :
7949 withval=$with_mpc_lib;
7953 if test "x$with_mpc" != x; then
7954 gmplibs="-L$with_mpc/lib $gmplibs"
7955 gmpinc="-I$with_mpc/include $gmpinc"
7957 if test "x$with_mpc_include" != x; then
7958 gmpinc="-I$with_mpc_include $gmpinc"
7960 if test "x$with_mpc_lib" != x; then
7961 gmplibs="-L$with_mpc_lib $gmplibs"
7963 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7964 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7965 gmpinc='-I$$s/mpc/src '"$gmpinc"
7966 # Do not test the mpc version. Assume that it is sufficient, since
7967 # it is in the source tree, and the library has not been built yet
7968 # but it would be included on the link line in the version check below
7969 # hence making the test fail.
7970 have_gmp=yes
7973 # Specify a location for mpfr
7974 # check for this first so it ends up on the link line before gmp.
7976 # Check whether --with-mpfr was given.
7977 if test "${with_mpfr+set}" = set; then :
7978 withval=$with_mpfr;
7982 # Check whether --with-mpfr-include was given.
7983 if test "${with_mpfr_include+set}" = set; then :
7984 withval=$with_mpfr_include;
7988 # Check whether --with-mpfr-lib was given.
7989 if test "${with_mpfr_lib+set}" = set; then :
7990 withval=$with_mpfr_lib;
7994 if test "x$with_mpfr" != x; then
7995 gmplibs="-L$with_mpfr/lib $gmplibs"
7996 gmpinc="-I$with_mpfr/include $gmpinc"
7998 if test "x$with_mpfr_include" != x; then
7999 gmpinc="-I$with_mpfr_include $gmpinc"
8001 if test "x$with_mpfr_lib" != x; then
8002 gmplibs="-L$with_mpfr_lib $gmplibs"
8004 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8005 # MPFR v3.1.0 moved the sources into a src sub-directory.
8006 if ! test -d ${srcdir}/mpfr/src; then
8007 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8009 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8010 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8011 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8012 # Do not test the mpfr version. Assume that it is sufficient, since
8013 # it is in the source tree, and the library has not been built yet
8014 # but it would be included on the link line in the version check below
8015 # hence making the test fail.
8016 have_gmp=yes
8019 # Specify a location for gmp
8021 # Check whether --with-gmp was given.
8022 if test "${with_gmp+set}" = set; then :
8023 withval=$with_gmp;
8027 # Check whether --with-gmp-include was given.
8028 if test "${with_gmp_include+set}" = set; then :
8029 withval=$with_gmp_include;
8033 # Check whether --with-gmp-lib was given.
8034 if test "${with_gmp_lib+set}" = set; then :
8035 withval=$with_gmp_lib;
8040 if test "x$with_gmp" != x; then
8041 gmplibs="-L$with_gmp/lib $gmplibs"
8042 gmpinc="-I$with_gmp/include $gmpinc"
8044 if test "x$with_gmp_include" != x; then
8045 gmpinc="-I$with_gmp_include $gmpinc"
8047 if test "x$with_gmp_lib" != x; then
8048 gmplibs="-L$with_gmp_lib $gmplibs"
8050 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8051 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8052 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8053 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8054 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8055 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8056 # Do not test the gmp version. Assume that it is sufficient, since
8057 # it is in the source tree, and the library has not been built yet
8058 # but it would be included on the link line in the version check below
8059 # hence making the test fail.
8060 have_gmp=yes
8063 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8064 have_gmp=yes
8065 saved_CFLAGS="$CFLAGS"
8066 CFLAGS="$CFLAGS $gmpinc"
8067 # Check for the recommended and required versions of GMP.
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8069 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 #include "gmp.h"
8074 main ()
8077 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8078 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8079 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8080 choke me
8081 #endif
8084 return 0;
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 #include <gmp.h>
8092 main ()
8095 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8096 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8097 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8098 choke me
8099 #endif
8102 return 0;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107 $as_echo "yes" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8110 $as_echo "buggy but acceptable" >&6; }
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }; have_gmp=no
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 # If we have GMP, check the MPFR version.
8120 if test x"$have_gmp" = xyes; then
8121 # Check for the recommended and required versions of MPFR.
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8123 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 #include <gmp.h>
8127 #include <mpfr.h>
8129 main ()
8132 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8133 choke me
8134 #endif
8137 return 0;
8139 _ACEOF
8140 if ac_fn_c_try_compile "$LINENO"; then :
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #include <gmp.h>
8144 #include <mpfr.h>
8146 main ()
8149 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8150 choke me
8151 #endif
8154 return 0;
8156 _ACEOF
8157 if ac_fn_c_try_compile "$LINENO"; then :
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159 $as_echo "yes" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8162 $as_echo "buggy but acceptable" >&6; }
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }; have_gmp=no
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 # Check for the MPC header version.
8173 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8174 # Check for the recommended and required versions of MPC.
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8176 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <mpc.h>
8181 main ()
8184 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8185 choke me
8186 #endif
8189 return 0;
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <mpc.h>
8197 main ()
8200 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8201 choke me
8202 #endif
8205 return 0;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210 $as_echo "yes" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8213 $as_echo "buggy but acceptable" >&6; }
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }; have_gmp=no
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 # Now check the MPFR library.
8224 if test x"$have_gmp" = xyes; then
8225 saved_LIBS="$LIBS"
8226 LIBS="$LIBS $gmplibs"
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8228 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #include <mpfr.h>
8233 main ()
8236 mpfr_t n;
8237 mpfr_t x;
8238 int t;
8239 mpfr_init (n);
8240 mpfr_init (x);
8241 mpfr_atan2 (n, n, x, MPFR_RNDN);
8242 mpfr_erfc (n, x, MPFR_RNDN);
8243 mpfr_subnormalize (x, t, MPFR_RNDN);
8244 mpfr_clear(n);
8245 mpfr_clear(x);
8248 return 0;
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }; have_gmp=no
8258 rm -f core conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS="$saved_LIBS"
8263 # Now check the MPC library
8264 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8265 saved_LIBS="$LIBS"
8266 LIBS="$LIBS $gmplibs"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8268 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 #include <mpc.h>
8273 main ()
8276 mpc_t c;
8277 mpc_init2 (c, 53);
8278 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8279 mpc_cosh (c, c, MPC_RNDNN);
8280 mpc_pow (c, c, c, MPC_RNDNN);
8281 mpc_acosh (c, c, MPC_RNDNN);
8282 mpc_clear (c);
8285 return 0;
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8290 $as_echo "yes" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }; have_gmp=no
8295 rm -f core conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 LIBS="$saved_LIBS"
8300 CFLAGS="$saved_CFLAGS"
8302 # The library versions listed in the error message below should match
8303 # the HARD-minimums enforced above.
8304 if test x$have_gmp != xyes; then
8305 if test -d ${srcdir}/gcc ; then
8306 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8307 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8308 their locations. Source code for these libraries can be found at
8309 their respective hosting sites as well as at
8310 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8311 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8312 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8313 make sure that you have installed both the libraries and the header
8314 files. They may be located in separate packages." "$LINENO" 5
8315 else
8316 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8317 Try the --with-gmp and/or --with-mpfr options to specify
8318 their locations. If you obtained GMP and/or MPFR from a vendor
8319 distribution package, make sure that you have installed both the libraries
8320 and the header files. They may be located in separate packages." "$LINENO" 5
8325 # Flags needed for both GMP, MPFR and/or MPC.
8333 # Libraries to use for stage1 or when not bootstrapping.
8335 # Check whether --with-stage1-libs was given.
8336 if test "${with_stage1_libs+set}" = set; then :
8337 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8338 stage1_libs=
8339 else
8340 stage1_libs=$withval
8342 else
8343 stage1_libs=
8348 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8349 # default is yes if gcc is being built; no otherwise. The reason for
8350 # this default is that gdb is sometimes linked against GNU Source
8351 # Highlight, which is a shared library that uses C++ exceptions. In
8352 # this case, -static-libstdc++ will cause crashes.
8354 # Check whether --with-static-standard-libraries was given.
8355 if test "${with_static_standard_libraries+set}" = set; then :
8356 withval=$with_static_standard_libraries;
8357 else
8358 with_static_standard_libraries=auto
8361 if test "$with_static_standard_libraries" = auto; then
8362 with_static_standard_libraries=$have_compiler
8365 # Linker flags to use for stage1 or when not bootstrapping.
8367 # Check whether --with-stage1-ldflags was given.
8368 if test "${with_stage1_ldflags+set}" = set; then :
8369 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8370 stage1_ldflags=
8371 else
8372 stage1_ldflags=$withval
8374 else
8375 stage1_ldflags=
8376 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8377 # if supported. But if the user explicitly specified the libraries to use,
8378 # trust that they are doing what they want.
8379 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8380 -a "$have_static_libs" = yes; then
8381 stage1_ldflags="-static-libstdc++ -static-libgcc"
8387 # Libraries to use for stage2 and later builds.
8389 # Check whether --with-boot-libs was given.
8390 if test "${with_boot_libs+set}" = set; then :
8391 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8392 poststage1_libs=
8393 else
8394 poststage1_libs=$withval
8396 else
8397 poststage1_libs=
8402 # Linker flags to use for stage2 and later builds.
8404 # Check whether --with-boot-ldflags was given.
8405 if test "${with_boot_ldflags+set}" = set; then :
8406 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8407 poststage1_ldflags=
8408 else
8409 poststage1_ldflags=$withval
8411 else
8412 poststage1_ldflags=
8413 # In stages 2 and 3, default to linking libstdc++ and libgcc
8414 # statically. But if the user explicitly specified the libraries to
8415 # use, trust that they are doing what they want.
8416 if test "$poststage1_libs" = ""; then
8417 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8423 # GCC GRAPHITE dependency isl.
8424 # Basic setup is inlined here, actual checks are in config/isl.m4
8427 # Check whether --with-isl was given.
8428 if test "${with_isl+set}" = set; then :
8429 withval=$with_isl;
8433 # Treat --without-isl as a request to disable
8434 # GRAPHITE support and skip all following checks.
8435 if test "x$with_isl" != "xno"; then
8436 # Check for isl
8439 # Check whether --with-isl-include was given.
8440 if test "${with_isl_include+set}" = set; then :
8441 withval=$with_isl_include;
8445 # Check whether --with-isl-lib was given.
8446 if test "${with_isl_lib+set}" = set; then :
8447 withval=$with_isl_lib;
8451 # Check whether --enable-isl-version-check was given.
8452 if test "${enable_isl_version_check+set}" = set; then :
8453 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8454 else
8455 ENABLE_ISL_CHECK=yes
8459 # Initialize isllibs and islinc.
8460 case $with_isl in
8462 isllibs=
8463 islinc=
8465 "" | yes)
8468 isllibs="-L$with_isl/lib"
8469 islinc="-I$with_isl/include"
8471 esac
8472 if test "x${with_isl_include}" != x ; then
8473 islinc="-I$with_isl_include"
8475 if test "x${with_isl_lib}" != x; then
8476 isllibs="-L$with_isl_lib"
8478 if test "x${islinc}" = x && test "x${isllibs}" = x \
8479 && test -d ${srcdir}/isl; then
8480 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8481 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8482 ENABLE_ISL_CHECK=no
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8484 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8487 isllibs="${isllibs} -lisl"
8491 if test "${ENABLE_ISL_CHECK}" = yes ; then
8492 _isl_saved_CFLAGS=$CFLAGS
8493 _isl_saved_LDFLAGS=$LDFLAGS
8494 _isl_saved_LIBS=$LIBS
8496 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8497 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8498 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8501 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <isl/schedule.h>
8506 main ()
8508 isl_options_set_schedule_serialize_sccs (NULL, 0);
8510 return 0;
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514 gcc_cv_isl=yes
8515 else
8516 gcc_cv_isl=no
8518 rm -f core conftest.err conftest.$ac_objext \
8519 conftest$ac_exeext conftest.$ac_ext
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8521 $as_echo "$gcc_cv_isl" >&6; }
8523 if test "${gcc_cv_isl}" = no ; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8525 $as_echo "required isl version is 0.15 or later" >&6; }
8528 CFLAGS=$_isl_saved_CFLAGS
8529 LDFLAGS=$_isl_saved_LDFLAGS
8530 LIBS=$_isl_saved_LIBS
8538 if test "x${with_isl}" = xno; then
8539 graphite_requested=no
8540 elif test "x${with_isl}" != x \
8541 || test "x${with_isl_include}" != x \
8542 || test "x${with_isl_lib}" != x ; then
8543 graphite_requested=yes
8544 else
8545 graphite_requested=no
8550 if test "${gcc_cv_isl}" = no ; then
8551 isllibs=
8552 islinc=
8555 if test "${graphite_requested}" = yes \
8556 && test "x${isllibs}" = x \
8557 && test "x${islinc}" = x ; then
8559 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8565 # If the isl check failed, disable builds of in-tree variant of isl
8566 if test "x$with_isl" = xno ||
8567 test "x$gcc_cv_isl" = xno; then
8568 noconfigdirs="$noconfigdirs isl"
8569 islinc=
8575 # Check for LTO support.
8576 # Check whether --enable-lto was given.
8577 if test "${enable_lto+set}" = set; then :
8578 enableval=$enable_lto; enable_lto=$enableval
8579 else
8580 enable_lto=yes; default_enable_lto=yes
8587 target_elf=no
8588 case $target in
8589 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8590 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8591 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8592 nvptx-*-none)
8593 target_elf=no
8596 target_elf=yes
8598 esac
8600 if test $target_elf = yes; then :
8601 # ELF platforms build the lto-plugin always.
8602 build_lto_plugin=yes
8604 else
8605 if test x"$default_enable_lto" = x"yes" ; then
8606 case $target in
8607 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8608 # On other non-ELF platforms, LTO has yet to be validated.
8609 *) enable_lto=no ;;
8610 esac
8611 else
8612 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8613 # It would also be nice to check the binutils support, but we don't
8614 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8615 # warn during gcc/ subconfigure; unless you're bootstrapping with
8616 # -flto it won't be needed until after installation anyway.
8617 case $target in
8618 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8619 *) if test x"$enable_lto" = x"yes"; then
8620 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8623 esac
8625 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8626 # Build it unless LTO was explicitly disabled.
8627 case $target in
8628 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8629 *) ;;
8630 esac
8635 # Check whether --enable-linker-plugin-configure-flags was given.
8636 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8637 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8638 else
8639 extra_linker_plugin_configure_flags=
8643 # Check whether --enable-linker-plugin-flags was given.
8644 if test "${enable_linker_plugin_flags+set}" = set; then :
8645 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8646 else
8647 extra_linker_plugin_flags=
8652 # Enable --enable-host-pie.
8653 # Checked early to determine whether jit is an 'all' language
8654 # Check whether --enable-host-pie was given.
8655 if test "${enable_host_pie+set}" = set; then :
8656 enableval=$enable_host_pie; host_pie=$enableval
8657 case $host in
8658 x86_64-*-darwin* | aarch64-*-darwin*)
8659 if test x$host_pie != xyes ; then
8660 # PIC is the default, and actually cannot be switched off.
8661 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8662 host_pie=yes
8663 fi ;;
8664 *) ;;
8665 esac
8666 else
8667 case $host in
8668 *-*-darwin2*) host_pie=yes ;;
8669 *) host_pie=no ;;
8670 esac
8676 # Enable --enable-host-shared.
8677 # Checked early to determine whether jit is an 'all' language
8678 # Check whether --enable-host-shared was given.
8679 if test "${enable_host_shared+set}" = set; then :
8680 enableval=$enable_host_shared; host_shared=$enableval
8681 case $host in
8682 x86_64-*-darwin* | aarch64-*-darwin*)
8683 if test x$host_shared != xyes ; then
8684 # PIC is the default, and actually cannot be switched off.
8685 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8686 host_shared=yes
8687 fi ;;
8688 *-*-darwin*)
8689 if test x$host_pie == xyes ; then
8690 echo configure.ac: warning: PIC code is required for PIE executables. 1>&2
8691 host_shared=yes
8692 fi ;;
8693 *) ;;
8694 esac
8695 else
8696 case $host in
8697 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8698 # Darwin needs PIC objects to link PIE executables.
8699 *-*-darwin*) host_shared=host_pie ;;
8700 *) host_shared=no;;
8701 esac
8707 if test x$host_shared = xyes; then
8708 PICFLAG=-fPIC
8709 elif test x$host_pie = xyes; then
8710 PICFLAG=-fPIE
8711 else
8712 PICFLAG=
8717 # If we are building PIC/PIE host executables, and we are building dependent
8718 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8719 # code.
8720 host_libs_picflag=
8721 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8722 host_libs_picflag='--with-pic'
8726 # By default, C and C++ are the only stage 1 languages.
8727 stage1_languages=,c,
8729 # Target libraries that we bootstrap.
8730 bootstrap_target_libs=,target-libgcc,
8732 # Figure out what language subdirectories are present.
8733 # Look if the user specified --enable-languages="..."; if not, use
8734 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8735 # go away some day.
8736 # NB: embedded tabs in this IF block -- do not untabify
8737 if test -d ${srcdir}/gcc; then
8738 if test x"${enable_languages+set}" != xset; then
8739 if test x"${LANGUAGES+set}" = xset; then
8740 enable_languages="${LANGUAGES}"
8741 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8742 else
8743 enable_languages=default
8745 else
8746 if test x"${enable_languages}" = x ||
8747 test x"${enable_languages}" = xyes;
8748 then
8749 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8750 exit 1
8753 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8755 # 'f95' is the old name for the 'fortran' language. We issue a warning
8756 # and make the substitution.
8757 case ,${enable_languages}, in
8758 *,f95,*)
8759 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8760 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8762 esac
8764 # If bootstrapping, C++ must be enabled.
8765 case ",$enable_languages,:$enable_bootstrap" in
8766 *,c++,*:*) ;;
8767 *:yes)
8768 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8769 enable_languages="${enable_languages},c++"
8770 else
8771 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8774 esac
8776 # First scan to see if an enabled language requires some other language.
8777 # We assume that a given config-lang.in will list all the language
8778 # front ends it requires, even if some are required indirectly.
8779 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8780 case ${lang_frag} in
8781 ..) ;;
8782 # The odd quoting in the next line works around
8783 # an apparent bug in bash 1.12 on linux.
8784 ${srcdir}/gcc/[*]/config-lang.in) ;;
8786 # From the config-lang.in, get $language, $lang_requires, and
8787 # $lang_requires_boot_languages.
8788 language=
8789 lang_requires=
8790 lang_requires_boot_languages=
8791 # set srcdir during sourcing lang_frag to the gcc dir.
8792 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8793 # polutes this shell
8794 saved_srcdir=${srcdir}
8795 srcdir=${srcdir}/gcc . ${lang_frag}
8796 srcdir=${saved_srcdir}
8797 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8798 case ,${enable_languages}, in
8799 *,$other,*) ;;
8800 *,default,*) ;;
8801 *,all,*) ;;
8802 *,$language,*)
8803 echo " \`$other' language required by \`$language'; enabling" 1>&2
8804 enable_languages="${enable_languages},${other}"
8806 esac
8807 done
8808 for other in ${lang_requires_boot_languages} ; do
8809 if test "$other" != "c"; then
8810 case ,${enable_stage1_languages}, in
8811 *,$other,*) ;;
8812 *,default,*) ;;
8813 *,all,*) ;;
8815 case ,${enable_languages}, in
8816 *,$language,*)
8817 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8818 enable_stage1_languages="$enable_stage1_languages,${other}"
8820 esac
8822 esac
8824 done
8826 esac
8827 done
8829 new_enable_languages=,c,
8831 # If LTO is enabled, add the LTO front end.
8832 if test "$enable_lto" = "yes" ; then
8833 case ,${enable_languages}, in
8834 *,lto,*) ;;
8835 *) enable_languages="${enable_languages},lto" ;;
8836 esac
8837 if test "${build_lto_plugin}" = "yes" ; then
8838 configdirs="$configdirs lto-plugin"
8842 # If we're building an offloading compiler, add the LTO front end.
8843 if test x"$enable_as_accelerator_for" != x ; then
8844 case ,${enable_languages}, in
8845 *,lto,*) ;;
8846 *) enable_languages="${enable_languages},lto" ;;
8847 esac
8850 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8851 potential_languages=,c,
8853 enabled_target_libs=
8854 disabled_target_libs=
8856 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8857 case ${lang_frag} in
8858 ..) ;;
8859 # The odd quoting in the next line works around
8860 # an apparent bug in bash 1.12 on linux.
8861 ${srcdir}/gcc/[*]/config-lang.in) ;;
8863 # From the config-lang.in, get $language, $target_libs,
8864 # $lang_dirs, $boot_language, and $build_by_default
8865 language=
8866 target_libs=
8867 lang_dirs=
8868 subdir_requires=
8869 boot_language=no
8870 build_by_default=yes
8871 # set srcdir during sourcing. See above about save & restore
8872 saved_srcdir=${srcdir}
8873 srcdir=${srcdir}/gcc . ${lang_frag}
8874 srcdir=${saved_srcdir}
8875 if test x${language} = x; then
8876 echo "${lang_frag} doesn't set \$language." 1>&2
8877 exit 1
8880 if test "$language" = "c++"; then
8881 boot_language=yes
8884 add_this_lang=no
8885 # C is always enabled, so no need to add it again
8886 if test "$language" != "c"; then
8887 case ,${enable_languages}, in
8888 *,${language},*)
8889 # Language was explicitly selected; include it
8890 add_this_lang=yes
8892 *,all,*)
8893 # All languages are enabled
8894 add_this_lang=all
8896 *,default,*)
8897 # 'default' was selected, select it if it is a default language
8898 add_this_lang=${build_by_default}
8900 esac
8903 # Disable languages that need other directories if these aren't available.
8904 for i in $subdir_requires; do
8905 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8906 case ${add_this_lang} in
8907 yes)
8908 # Specifically requested language; tell them.
8909 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8911 all)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8913 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8914 add_this_lang=unsupported
8917 # Silently disable.
8918 add_this_lang=unsupported
8920 esac
8921 done
8923 # Disable Ada if no preexisting GNAT is available.
8924 case ${add_this_lang}:${language}:${have_gnat} in
8925 yes:ada:no)
8926 # Specifically requested language; tell them.
8927 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8929 all:ada:no)
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8931 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8932 add_this_lang=unsupported
8934 *:ada:no)
8935 # Silently disable.
8936 add_this_lang=unsupported
8938 esac
8940 # Disable D if no preexisting GDC is available.
8941 case ${add_this_lang}:${language}:${have_gdc} in
8942 yes:d:no)
8943 # Specifically requested language; tell them.
8944 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8946 all:d:no)
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8948 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8949 add_this_lang=unsupported
8951 *:d:no)
8952 # Silently disable.
8953 add_this_lang=unsupported
8955 esac
8957 # Disable jit if -enable-host-shared not specified
8958 # but not if building for Mingw. All code in Windows
8959 # is position independent code (PIC).
8960 case $target in
8961 *mingw*) ;;
8963 case ${add_this_lang}:${language}:${host_shared} in
8964 yes:jit:no)
8965 # PR jit/64780: explicitly specify --enable-host-shared
8966 as_fn_error $? "
8967 Enabling language \"jit\" requires --enable-host-shared.
8969 --enable-host-shared typically slows the rest of the compiler down by
8970 a few %, so you must explicitly enable it.
8972 If you want to build both the jit and the regular compiler, it is often
8973 best to do this via two separate configure/builds, in separate
8974 directories, to avoid imposing the performance cost of
8975 --enable-host-shared on the regular compiler." "$LINENO" 5
8977 all:jit:no)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8979 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8980 add_this_lang=unsupported
8982 *:jit:no)
8983 # Silently disable.
8984 add_this_lang=unsupported
8986 esac
8988 esac
8990 # Disable a language that is unsupported by the target.
8991 case "${add_this_lang}: $unsupported_languages " in
8992 no:*) ;;
8993 unsupported:*) ;;
8994 *:*" $language "*)
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8996 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8997 add_this_lang=unsupported
8999 esac
9001 case $add_this_lang in
9002 unsupported)
9003 # Remove language-dependent dirs.
9004 disabled_target_libs="$disabled_target_libs $target_libs"
9005 noconfigdirs="$noconfigdirs $lang_dirs"
9008 # Remove language-dependent dirs; still show language as supported.
9009 disabled_target_libs="$disabled_target_libs $target_libs"
9010 noconfigdirs="$noconfigdirs $lang_dirs"
9011 potential_languages="${potential_languages}${language},"
9013 all|yes)
9014 new_enable_languages="${new_enable_languages}${language},"
9015 potential_languages="${potential_languages}${language},"
9016 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9017 enabled_target_libs="$enabled_target_libs $target_libs"
9018 case "${boot_language}:,$enable_stage1_languages," in
9019 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
9020 # Add to (comma-separated) list of stage 1 languages.
9021 case ",$stage1_languages," in
9022 *,$language,* | ,yes, | ,all,) ;;
9023 *) stage1_languages="${stage1_languages}${language}," ;;
9024 esac
9025 # We need to bootstrap any supporting libraries.
9026 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9028 esac
9030 esac
9032 esac
9033 done
9035 # Add target libraries which are only needed for disabled languages
9036 # to noconfigdirs.
9037 if test -n "$disabled_target_libs"; then
9038 for dir in $disabled_target_libs; do
9039 case " $enabled_target_libs " in
9040 *" ${dir} "*) ;;
9041 *) noconfigdirs="$noconfigdirs $dir" ;;
9042 esac
9043 done
9046 # Check whether --enable-stage1-languages was given.
9047 if test "${enable_stage1_languages+set}" = set; then :
9048 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9049 ,no,|,,)
9050 # Set it to something that will have no effect in the loop below
9051 enable_stage1_languages=c ;;
9052 ,yes,)
9053 enable_stage1_languages=`echo $new_enable_languages | \
9054 sed -e "s/^,//" -e "s/,$//" ` ;;
9055 *,all,*)
9056 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9057 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9058 esac
9060 # Add "good" languages from enable_stage1_languages to stage1_languages,
9061 # while "bad" languages go in missing_languages. Leave no duplicates.
9062 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9063 case $potential_languages in
9064 *,$i,*)
9065 case $stage1_languages in
9066 *,$i,*) ;;
9067 *) stage1_languages="$stage1_languages$i," ;;
9068 esac ;;
9070 case $missing_languages in
9071 *,$i,*) ;;
9072 *) missing_languages="$missing_languages$i," ;;
9073 esac ;;
9074 esac
9075 done
9079 # Remove leading/trailing commas that were added for simplicity
9080 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9081 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9082 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9083 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9085 if test "x$missing_languages" != x; then
9086 as_fn_error $? "
9087 The following requested languages could not be built: ${missing_languages}
9088 Supported languages are: ${potential_languages}" "$LINENO" 5
9090 if test "x$new_enable_languages" != "x$enable_languages"; then
9091 echo The following languages will be built: ${new_enable_languages}
9092 enable_languages="$new_enable_languages"
9096 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9099 # Handle --disable-<component> generically.
9100 for dir in $configdirs $build_configdirs $target_configdirs ; do
9101 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9102 varname=`echo $dirname | sed -e s/+/_/g`
9103 if eval test x\${enable_${varname}} "=" xno ; then
9104 noconfigdirs="$noconfigdirs $dir"
9106 done
9108 # Check for Boehm's garbage collector
9109 # Check whether --enable-objc-gc was given.
9110 if test "${enable_objc_gc+set}" = set; then :
9111 enableval=$enable_objc_gc;
9115 # Check whether --with-target-bdw-gc was given.
9116 if test "${with_target_bdw_gc+set}" = set; then :
9117 withval=$with_target_bdw_gc;
9121 # Check whether --with-target-bdw-gc-include was given.
9122 if test "${with_target_bdw_gc_include+set}" = set; then :
9123 withval=$with_target_bdw_gc_include;
9127 # Check whether --with-target-bdw-gc-lib was given.
9128 if test "${with_target_bdw_gc_lib+set}" = set; then :
9129 withval=$with_target_bdw_gc_lib;
9133 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9135 $as_echo_n "checking for bdw garbage collector... " >&6; }
9136 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9138 $as_echo "using bdw-gc in default locations" >&6; }
9139 else
9140 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9141 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9142 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9143 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9146 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9149 esac
9151 # Disable libitm, libsanitizer, libvtv if we're not building C++
9152 case ,${enable_languages}, in
9153 *,c++,*)
9154 # Disable libitm, libsanitizer if we're not building libstdc++
9155 case "${noconfigdirs}" in
9156 *target-libstdc++-v3*)
9157 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9159 *) ;;
9160 esac
9163 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9165 esac
9167 # If gcc/ is not in the source tree then we'll not be building a
9168 # target compiler, assume in that case we don't want to build any
9169 # target libraries or tools.
9171 # This was added primarily for the benefit for binutils-gdb who reuse
9172 # this configure script, but don't always have target tools available.
9173 if test ! -d ${srcdir}/gcc; then
9174 skipdirs="${skipdirs} ${target_configdirs}"
9177 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9178 # $build_configdirs and $target_configdirs.
9179 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9181 notsupp=""
9182 for dir in . $skipdirs $noconfigdirs ; do
9183 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9184 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9185 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9186 if test -r $srcdir/$dirname/configure ; then
9187 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9188 true
9189 else
9190 notsupp="$notsupp $dir"
9194 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9195 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9196 if test -r $srcdir/$dirname/configure ; then
9197 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9198 true
9199 else
9200 notsupp="$notsupp $dir"
9204 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9205 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9206 if test -r $srcdir/$dirname/configure ; then
9207 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9208 true
9209 else
9210 notsupp="$notsupp $dir"
9214 done
9216 # Quietly strip out all directories which aren't configurable in this tree.
9217 # This relies on all configurable subdirectories being autoconfiscated, which
9218 # is now the case.
9219 build_configdirs_all="$build_configdirs"
9220 build_configdirs=
9221 for i in ${build_configdirs_all} ; do
9222 j=`echo $i | sed -e s/build-//g`
9223 if test -f ${srcdir}/$j/configure ; then
9224 build_configdirs="${build_configdirs} $i"
9226 done
9228 configdirs_all="$configdirs"
9229 configdirs=
9230 for i in ${configdirs_all} ; do
9231 if test -f ${srcdir}/$i/configure ; then
9232 configdirs="${configdirs} $i"
9234 done
9236 target_configdirs_all="$target_configdirs"
9237 target_configdirs=
9238 for i in ${target_configdirs_all} ; do
9239 j=`echo $i | sed -e s/target-//g`
9240 if test -f ${srcdir}/$j/configure ; then
9241 target_configdirs="${target_configdirs} $i"
9243 done
9245 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9246 # so we have to add it after the preceding checks.
9247 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9248 then
9249 case " $configdirs " in
9250 *" libiberty "*)
9251 # If we can build libiberty, we can also build libiberty-linker-plugin.
9252 configdirs="$configdirs libiberty-linker-plugin"
9253 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9254 --with-libiberty=../libiberty-linker-plugin";;
9256 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9257 esac
9260 # Sometimes we have special requirements for the host libiberty.
9261 extra_host_libiberty_configure_flags=
9262 case " $configdirs " in
9263 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9264 # When these are to be built as shared libraries, the same applies to
9265 # libiberty.
9266 extra_host_libiberty_configure_flags=--enable-shared
9268 esac
9271 # Sometimes we have special requirements for the host zlib.
9272 extra_host_zlib_configure_flags=
9273 case " $configdirs " in
9274 *" bfd "*)
9275 # When bfd is to be built as a shared library, the same applies to
9276 # zlib.
9277 if test "$enable_shared" = "yes"; then
9278 extra_host_zlib_configure_flags=--enable-host-shared
9281 esac
9284 # Produce a warning message for the subdirs we can't configure.
9285 # This isn't especially interesting in the Cygnus tree, but in the individual
9286 # FSF releases, it's important to let people know when their machine isn't
9287 # supported by the one or two programs in a package.
9289 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9290 # If $appdirs is non-empty, at least one of those directories must still
9291 # be configured, or we error out. (E.g., if the gas release supports a
9292 # specified target in some subdirs but not the gas subdir, we shouldn't
9293 # pretend that all is well.)
9294 if test -n "$appdirs" ; then
9295 for dir in $appdirs ; do
9296 if test -r $dir/Makefile.in ; then
9297 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9298 appdirs=""
9299 break
9301 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9302 appdirs=""
9303 break
9306 done
9307 if test -n "$appdirs" ; then
9308 echo "*** This configuration is not supported by this package." 1>&2
9309 exit 1
9312 # Okay, some application will build, or we don't care to check. Still
9313 # notify of subdirs not getting built.
9314 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9315 echo " ${notsupp}" 1>&2
9316 echo " (Any other directories should still work fine.)" 1>&2
9319 case "$host" in
9320 *msdosdjgpp*)
9321 enable_gdbtk=no ;;
9322 esac
9324 # To find our prefix, in gcc_cv_tool_prefix.
9326 # The user is always right.
9327 if test "${PATH_SEPARATOR+set}" != set; then
9328 echo "#! /bin/sh" >conf$$.sh
9329 echo "exit 0" >>conf$$.sh
9330 chmod +x conf$$.sh
9331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9332 PATH_SEPARATOR=';'
9333 else
9334 PATH_SEPARATOR=:
9336 rm -f conf$$.sh
9340 get_gcc_base_ver="cat"
9342 # Check whether --with-gcc-major-version-only was given.
9343 if test "${with_gcc_major_version_only+set}" = set; then :
9344 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9345 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9355 if test "x$exec_prefix" = xNONE; then
9356 if test "x$prefix" = xNONE; then
9357 gcc_cv_tool_prefix=$ac_default_prefix
9358 else
9359 gcc_cv_tool_prefix=$prefix
9361 else
9362 gcc_cv_tool_prefix=$exec_prefix
9365 # If there is no compiler in the tree, use the PATH only. In any
9366 # case, if there is no compiler in the tree nobody should use
9367 # AS_FOR_TARGET and LD_FOR_TARGET.
9368 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9369 if test x$with_gcc_major_version_only = xyes ; then
9370 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9371 else
9372 gcc_version=`cat $srcdir/gcc/BASE-VER`
9374 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9375 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9376 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9377 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9378 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9379 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9380 else
9381 gcc_cv_tool_dirs=
9384 if test x$build = x$target && test -n "$md_exec_prefix"; then
9385 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9390 copy_dirs=
9393 # Check whether --with-build-sysroot was given.
9394 if test "${with_build_sysroot+set}" = set; then :
9395 withval=$with_build_sysroot; if test x"$withval" != x ; then
9396 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9398 else
9399 SYSROOT_CFLAGS_FOR_TARGET=
9405 # Check whether --with-debug-prefix-map was given.
9406 if test "${with_debug_prefix_map+set}" = set; then :
9407 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9408 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9409 for debug_map in $withval; do
9410 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9411 done
9413 else
9414 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9419 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9420 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9421 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9422 # We want to ensure that TARGET libraries (which we know are built with
9423 # gcc) are built with "-O2 -g", so include those options when setting
9424 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9425 if test "x$CFLAGS_FOR_TARGET" = x; then
9426 if test "x${is_cross_compiler}" = xyes; then
9427 CFLAGS_FOR_TARGET="-g -O2"
9428 else
9429 CFLAGS_FOR_TARGET=$CFLAGS
9430 case " $CFLAGS " in
9431 *" -O2 "*) ;;
9432 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9433 esac
9434 case " $CFLAGS " in
9435 *" -g "* | *" -g3 "*) ;;
9436 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9437 esac
9442 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9443 if test "x${is_cross_compiler}" = xyes; then
9444 CXXFLAGS_FOR_TARGET="-g -O2"
9445 else
9446 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9447 case " $CXXFLAGS " in
9448 *" -O2 "*) ;;
9449 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9450 esac
9451 case " $CXXFLAGS " in
9452 *" -g "* | *" -g3 "*) ;;
9453 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9454 esac
9461 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9462 # the named directory are copied to $(tooldir)/sys-include.
9463 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9464 if test x${is_cross_compiler} = xno ; then
9465 echo 1>&2 '***' --with-headers is only supported when cross compiling
9466 exit 1
9468 if test x"${with_headers}" != xyes ; then
9469 x=${gcc_cv_tool_prefix}
9470 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9474 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9475 # the name directories are copied to $(tooldir)/lib. Multiple directories
9476 # are permitted.
9477 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9478 if test x${is_cross_compiler} = xno ; then
9479 echo 1>&2 '***' --with-libs is only supported when cross compiling
9480 exit 1
9482 if test x"${with_libs}" != xyes ; then
9483 # Copy the libraries in reverse order, so that files in the first named
9484 # library override files in subsequent libraries.
9485 x=${gcc_cv_tool_prefix}
9486 for l in ${with_libs}; do
9487 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9488 done
9492 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9494 # This is done by determining whether or not the appropriate directory
9495 # is available, and by checking whether or not specific configurations
9496 # have requested that this magic not happen.
9498 # The command line options always override the explicit settings in
9499 # configure.ac, and the settings in configure.ac override this magic.
9501 # If the default for a toolchain is to use GNU as and ld, and you don't
9502 # want to do that, then you should use the --without-gnu-as and
9503 # --without-gnu-ld options for the configure script. Similarly, if
9504 # the default is to use the included zlib and you don't want to do that,
9505 # you should use the --with-system-zlib option for the configure script.
9507 if test x${use_gnu_as} = x &&
9508 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9509 with_gnu_as=yes
9510 extra_host_args="$extra_host_args --with-gnu-as"
9513 if test x${use_gnu_ld} = x &&
9514 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9515 with_gnu_ld=yes
9516 extra_host_args="$extra_host_args --with-gnu-ld"
9519 if test x${use_included_zlib} = x &&
9520 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9522 else
9523 with_system_zlib=yes
9524 extra_host_args="$extra_host_args --with-system-zlib"
9527 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9528 # can detect this case.
9530 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9531 with_newlib=yes
9532 extra_host_args="$extra_host_args --with-newlib"
9535 # Handle ${copy_dirs}
9536 set fnord ${copy_dirs}
9537 shift
9538 while test $# != 0 ; do
9539 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9541 else
9542 echo Copying $1 to $2
9544 # Use the install script to create the directory and all required
9545 # parent directories.
9546 if test -d $2 ; then
9548 else
9549 echo >config.temp
9550 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9553 # Copy the directory, assuming we have tar.
9554 # FIXME: Should we use B in the second tar? Not all systems support it.
9555 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9557 # It is the responsibility of the user to correctly adjust all
9558 # symlinks. If somebody can figure out how to handle them correctly
9559 # here, feel free to add the code.
9561 echo $1 > $2/COPIED
9563 shift; shift
9564 done
9566 # Determine a target-dependent exec_prefix that the installed
9567 # gcc will search in. Keep this list sorted by triplet, with
9568 # the *-*-osname triplets last.
9569 md_exec_prefix=
9570 case "${target}" in
9571 i[34567]86-pc-msdosdjgpp*)
9572 md_exec_prefix=/dev/env/DJDIR/bin
9574 *-*-hpux* | \
9575 *-*-nto-qnx* | \
9576 *-*-solaris2*)
9577 md_exec_prefix=/usr/ccs/bin
9579 esac
9581 extra_arflags_for_target=
9582 extra_nmflags_for_target=
9583 extra_ranlibflags_for_target=
9584 target_makefile_frag=/dev/null
9585 case "${target}" in
9586 spu-*-*)
9587 target_makefile_frag="config/mt-spu"
9589 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9590 target_makefile_frag="config/mt-sde"
9592 mipsisa*-*-elfoabi*)
9593 target_makefile_frag="config/mt-mips-elfoabi"
9595 mips*-*-*linux* | mips*-*-gnu*)
9596 target_makefile_frag="config/mt-mips-gnu"
9598 nios2-*-elf*)
9599 target_makefile_frag="config/mt-nios2-elf"
9601 *-*-linux-android*)
9602 target_makefile_frag="config/mt-android"
9604 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9605 target_makefile_frag="config/mt-gnu"
9607 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9608 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9609 # commands to handle both 32-bit and 64-bit objects. These flags are
9610 # harmless if we're using GNU nm or ar.
9611 extra_arflags_for_target=" -X32_64"
9612 extra_nmflags_for_target=" -B -X32_64"
9614 esac
9616 alphaieee_frag=/dev/null
9617 case $target in
9618 alpha*-*-*)
9619 # This just makes sure to use the -mieee option to build target libs.
9620 # This should probably be set individually by each library.
9621 alphaieee_frag="config/mt-alphaieee"
9623 esac
9625 # If --enable-target-optspace always use -Os instead of -O2 to build
9626 # the target libraries, similarly if it is not specified, use -Os
9627 # on selected platforms.
9628 ospace_frag=/dev/null
9629 case "${enable_target_optspace}:${target}" in
9630 yes:*)
9631 ospace_frag="config/mt-ospace"
9633 :d30v-*)
9634 ospace_frag="config/mt-d30v"
9636 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9637 ospace_frag="config/mt-ospace"
9639 no:* | :*)
9642 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9644 esac
9646 # Some systems (e.g., one of the i386-aix systems the gas testers are
9647 # using) don't handle "\$" correctly, so don't use it here.
9648 tooldir='${exec_prefix}'/${target_noncanonical}
9649 build_tooldir=${tooldir}
9651 # Create a .gdbinit file which runs the one in srcdir
9652 # and tells GDB to look there for source files.
9654 if test -r ${srcdir}/.gdbinit ; then
9655 case ${srcdir} in
9656 .) ;;
9657 *) cat > ./.gdbinit <<EOF
9658 # ${NO_EDIT}
9659 dir ${srcdir}
9660 dir .
9661 source ${srcdir}/.gdbinit
9664 esac
9667 # Make sure that the compiler is able to generate an executable. If it
9668 # can't, we are probably in trouble. We don't care whether we can run the
9669 # executable--we might be using a cross compiler--we only care whether it
9670 # can be created. At this point the main configure script has set CC.
9671 we_are_ok=no
9672 echo "int main () { return 0; }" > conftest.c
9673 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9674 if test $? = 0 ; then
9675 if test -s conftest || test -s conftest.exe ; then
9676 we_are_ok=yes
9679 case $we_are_ok in
9681 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9682 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9683 rm -f conftest*
9684 exit 1
9686 esac
9687 rm -f conftest*
9689 # Decide which environment variable is used to find dynamic libraries.
9690 case "${host}" in
9691 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9692 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9693 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9694 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9695 esac
9697 # On systems where the dynamic library environment variable is PATH,
9698 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9699 # built executables to PATH.
9700 if test "$RPATH_ENVVAR" = PATH; then
9701 GCC_SHLIB_SUBDIR=/shlib
9702 else
9703 GCC_SHLIB_SUBDIR=
9706 # Adjust the toplevel makefile according to whether bootstrap was selected.
9707 case $enable_bootstrap in
9708 yes)
9709 bootstrap_suffix=bootstrap
9710 BUILD_CONFIG=bootstrap-debug
9713 bootstrap_suffix=no-bootstrap
9714 BUILD_CONFIG=
9716 esac
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9719 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9722 # Check whether --with-build-config was given.
9723 if test "${with_build_config+set}" = set; then :
9724 withval=$with_build_config; case $with_build_config in
9725 yes) with_build_config= ;;
9726 no) with_build_config= BUILD_CONFIG= ;;
9727 esac
9731 if test "x${with_build_config}" != x; then
9732 BUILD_CONFIG=$with_build_config
9733 else
9734 case $BUILD_CONFIG in
9735 bootstrap-debug)
9736 if echo "int f (void) { return 0; }" > conftest.c &&
9737 ${CC} -c conftest.c &&
9738 mv conftest.o conftest.o.g0 &&
9739 ${CC} -c -g conftest.c &&
9740 mv conftest.o conftest.o.g &&
9741 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9743 else
9744 BUILD_CONFIG=
9746 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9748 esac
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9751 $as_echo "$BUILD_CONFIG" >&6; }
9754 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9756 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9757 # Check whether --enable-vtable-verify was given.
9758 if test "${enable_vtable_verify+set}" = set; then :
9759 enableval=$enable_vtable_verify; case "$enableval" in
9760 yes) enable_vtable_verify=yes ;;
9761 no) enable_vtable_verify=no ;;
9762 *) enable_vtable_verify=no;;
9763 esac
9764 else
9765 enable_vtable_verify=no
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9769 $as_echo "$enable_vtable_verify" >&6; }
9771 # Record target_configdirs and the configure arguments for target and
9772 # build configuration in Makefile.
9773 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9774 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9775 bootstrap_fixincludes=no
9777 # If we are building libgomp, bootstrap it.
9778 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9779 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9782 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9783 # or bootstrap-ubsan, bootstrap it.
9784 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9785 case "$BUILD_CONFIG" in
9786 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9787 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9788 bootstrap_fixincludes=yes
9790 esac
9793 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9794 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9795 test "$enable_vtable_verify" != no; then
9796 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9799 # If we are building libatomic and the list of enabled languages includes the
9800 # D frontend, bootstrap it.
9801 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9802 case ,${enable_languages}, in
9803 *,d,*)
9804 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9806 esac
9809 # Determine whether gdb needs tk/tcl or not.
9810 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9811 # and in that case we want gdb to be built without tk. Ugh!
9812 # In fact I believe gdb is the *only* package directly dependent on tk,
9813 # so we should be able to put the 'maybe's in unconditionally and
9814 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9815 # 100% sure that that's safe though.
9817 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9818 case "$enable_gdbtk" in
9820 GDB_TK="" ;;
9821 yes)
9822 GDB_TK="${gdb_tk}" ;;
9824 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9825 # distro. Eventually someone will fix this and move Insight, nee
9826 # gdbtk to a separate directory.
9827 if test -d ${srcdir}/gdb/gdbtk ; then
9828 GDB_TK="${gdb_tk}"
9829 else
9830 GDB_TK=""
9833 esac
9834 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9835 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9837 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9838 # else does, only include them if one of these is built. The Makefile
9839 # provides the ordering, so it's enough here to add to the list.
9840 case " ${configdirs} " in
9841 *\ gdb\ *)
9842 configdirs="${configdirs} gnulib gdbsupport"
9844 *\ gdbserver\ *)
9845 configdirs="${configdirs} gnulib gdbsupport"
9847 *\ sim\ *)
9848 configdirs="${configdirs} gnulib"
9850 esac
9852 # Strip out unwanted targets.
9854 # While at that, we remove Makefiles if we were started for recursive
9855 # configuration, so that the top-level Makefile reconfigures them,
9856 # like we used to do when configure itself was recursive.
9858 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9859 # but now we're fixing up the Makefile ourselves with the additional
9860 # commands passed to AC_CONFIG_FILES. Use separate variables
9861 # extrasub-{build,host,target} not because there is any reason to split
9862 # the substitutions up that way, but only to remain below the limit of
9863 # 99 commands in a script, for HP-UX sed.
9865 # Do not nest @if/@endif or @unless/@endunless pairs, because
9866 # configure will not warn you at all.
9868 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9869 yes:yes:*\ gold\ *:*,c++,*) ;;
9870 yes:yes:*\ gold\ *:*)
9871 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9873 esac
9875 extrasub_build=
9876 for module in ${build_configdirs} ; do
9877 if test -z "${no_recursion}" \
9878 && test -f ${build_subdir}/${module}/Makefile; then
9879 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9880 rm -f ${build_subdir}/${module}/Makefile
9882 extrasub_build="$extrasub_build
9883 /^@if build-$module\$/d
9884 /^@endif build-$module\$/d
9885 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9886 /^@if build-$module-$bootstrap_suffix\$/d
9887 /^@endif build-$module-$bootstrap_suffix\$/d
9888 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9889 done
9890 extrasub_host=
9891 for module in ${configdirs} ; do
9892 if test -z "${no_recursion}"; then
9893 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9894 if test -f ${file}; then
9895 echo 1>&2 "*** removing ${file} to force reconfigure"
9896 rm -f ${file}
9898 done
9900 case ${module},${bootstrap_fixincludes} in
9901 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9902 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9903 esac
9904 extrasub_host="$extrasub_host
9905 /^@if $module\$/d
9906 /^@endif $module\$/d
9907 /^@unless $module\$/,/^@endunless $module\$/d
9908 /^@if $module-$host_bootstrap_suffix\$/d
9909 /^@endif $module-$host_bootstrap_suffix\$/d
9910 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9911 done
9912 extrasub_target=
9913 for module in ${target_configdirs} ; do
9914 if test -z "${no_recursion}" \
9915 && test -f ${target_subdir}/${module}/Makefile; then
9916 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9917 rm -f ${target_subdir}/${module}/Makefile
9920 # We only bootstrap target libraries listed in bootstrap_target_libs.
9921 case $bootstrap_target_libs in
9922 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9923 *) target_bootstrap_suffix=no-bootstrap ;;
9924 esac
9926 extrasub_target="$extrasub_target
9927 /^@if target-$module\$/d
9928 /^@endif target-$module\$/d
9929 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9930 /^@if target-$module-$target_bootstrap_suffix\$/d
9931 /^@endif target-$module-$target_bootstrap_suffix\$/d
9932 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9933 done
9935 # Do the final fixup along with target modules.
9936 extrasub_target="$extrasub_target
9937 /^@if /,/^@endif /d
9938 /^@unless /d
9939 /^@endunless /d"
9941 if test "$enable_pgo_build" != "no"; then
9942 extrasub_build="$extrasub_build
9943 /^@if pgo-build\$/d
9944 /^@endif pgo-build\$/d"
9947 # Create the serialization dependencies. This uses a temporary file.
9949 # Check whether --enable-serial-configure was given.
9950 if test "${enable_serial_configure+set}" = set; then :
9951 enableval=$enable_serial_configure;
9955 case ${enable_serial_configure} in
9956 yes)
9957 enable_serial_build_configure=yes
9958 enable_serial_host_configure=yes
9959 enable_serial_target_configure=yes
9961 esac
9963 # These force 'configure's to be done one at a time, to avoid problems
9964 # with contention over a shared config.cache.
9965 rm -f serdep.tmp
9966 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
9967 echo '# serdep.tmp' > serdep.tmp
9969 olditem=
9970 test "x${enable_serial_build_configure}" = xyes &&
9971 for item in ${build_configdirs} ; do
9972 case ${olditem} in
9973 "") ;;
9974 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9975 esac
9976 olditem=${item}
9977 done
9978 olditem=
9979 test "x${enable_serial_host_configure}" = xyes &&
9980 for item in ${configdirs} ; do
9981 case ${olditem} in
9982 "") ;;
9983 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9984 esac
9985 olditem=${item}
9986 done
9987 olditem=
9988 test "x${enable_serial_target_configure}" = xyes &&
9989 for item in ${target_configdirs} ; do
9990 case ${olditem} in
9991 "") ;;
9992 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9993 esac
9994 olditem=${item}
9995 done
9996 serialization_dependencies=serdep.tmp
9999 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10000 # target, nonopt, and variable assignments. These are the ones we
10001 # might not want to pass down to subconfigures. The exception being
10002 # --cache-file=/dev/null, which is used to turn off the use of cache
10003 # files altogether, and which should be passed on to subconfigures.
10004 # Also strip program-prefix, program-suffix, and program-transform-name,
10005 # so that we can pass down a consistent program-transform-name.
10006 baseargs=
10007 tbaseargs=
10008 keep_next=no
10009 skip_next=no
10010 eval "set -- $ac_configure_args"
10011 for ac_arg
10013 if test X"$skip_next" = X"yes"; then
10014 skip_next=no
10015 continue
10017 if test X"$keep_next" = X"yes"; then
10018 case $ac_arg in
10019 *\'*)
10020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10021 esac
10022 baseargs="$baseargs '$ac_arg'"
10023 tbaseargs="$tbaseargs '$ac_arg'"
10024 keep_next=no
10025 continue
10028 # Handle separated arguments. Based on the logic generated by
10029 # autoconf 2.59.
10030 case $ac_arg in
10031 *=* | --config-cache | -C | -disable-* | --disable-* \
10032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10034 | -with-* | --with-* | -without-* | --without-* | --x)
10035 separate_arg=no
10038 separate_arg=yes
10041 separate_arg=no
10043 esac
10045 skip_targ=no
10046 case $ac_arg in
10048 --with-* | --without-*)
10049 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10051 case $libopt in
10052 *[-_]include)
10053 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10055 *[-_]lib)
10056 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10059 lib=$libopt
10061 esac
10064 case $lib in
10065 mpc | mpfr | gmp | isl)
10066 # If we're processing --with-$lib, --with-$lib-include or
10067 # --with-$lib-lib, for one of the libs above, and target is
10068 # different from host, don't pass the current argument to any
10069 # target library's configure.
10070 if test x$is_cross_compiler = xyes; then
10071 skip_targ=yes
10074 esac
10076 esac
10078 case "$ac_arg" in
10079 --cache-file=/dev/null | \
10080 -cache-file=/dev/null )
10081 # Handled here to avoid the test to skip args below.
10082 baseargs="$baseargs '$ac_arg'"
10083 tbaseargs="$tbaseargs '$ac_arg'"
10084 # Assert: $separate_arg should always be no.
10085 keep_next=$separate_arg
10087 --no*)
10088 continue
10090 --c* | \
10091 --sr* | \
10092 --ho* | \
10093 --bu* | \
10094 --t* | \
10095 --program-* | \
10096 -cache_file* | \
10097 -srcdir* | \
10098 -host* | \
10099 -build* | \
10100 -target* | \
10101 -program-prefix* | \
10102 -program-suffix* | \
10103 -program-transform-name* )
10104 skip_next=$separate_arg
10105 continue
10108 # An option. Add it.
10109 case $ac_arg in
10110 *\'*)
10111 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10112 esac
10113 baseargs="$baseargs '$ac_arg'"
10114 if test X"$skip_targ" = Xno; then
10115 tbaseargs="$tbaseargs '$ac_arg'"
10117 keep_next=$separate_arg
10120 # Either a variable assignment, or a nonopt (triplet). Don't
10121 # pass it down; let the Makefile handle this.
10122 continue
10124 esac
10125 done
10126 # Remove the initial space we just introduced and, as these will be
10127 # expanded by make, quote '$'.
10128 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10130 # Add in --program-transform-name, after --program-prefix and
10131 # --program-suffix have been applied to it. Autoconf has already
10132 # doubled dollar signs and backslashes in program_transform_name; we want
10133 # the backslashes un-doubled, and then the entire thing wrapped in single
10134 # quotes, because this will be expanded first by make and then by the shell.
10135 # Also, because we want to override the logic in subdir configure scripts to
10136 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10137 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10138 ${program_transform_name}
10139 EOF_SED
10140 gcc_transform_name=`cat conftestsed.out`
10141 rm -f conftestsed.out
10142 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10143 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10144 if test "$silent" = yes; then
10145 baseargs="$baseargs --silent"
10146 tbaseargs="$tbaseargs --silent"
10148 baseargs="$baseargs --disable-option-checking"
10149 tbaseargs="$tbaseargs --disable-option-checking"
10151 # Record and document user additions to sub configure arguments.
10156 # For the build-side libraries, we just need to pretend we're native,
10157 # and not use the same cache file. Multilibs are neither needed nor
10158 # desired. We can't even use the same cache file for all build-side
10159 # libraries, as they're compiled differently; some with C, some with
10160 # C++ or with different feature-enabling options.
10161 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10163 # For host modules, accept cache file option, or specification as blank.
10164 case "${cache_file}" in
10165 "") # empty
10166 cache_file_option="" ;;
10167 /* | [A-Za-z]:[\\/]* ) # absolute path
10168 cache_file_option="--cache-file=${cache_file}" ;;
10169 *) # relative path
10170 cache_file_option="--cache-file=../${cache_file}" ;;
10171 esac
10173 # Host dirs don't like to share a cache file either, horribly enough.
10174 # This seems to be due to autoconf 2.5x stupidity.
10175 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10177 target_configargs="$target_configargs ${tbaseargs}"
10179 # Passing a --with-cross-host argument lets the target libraries know
10180 # whether they are being built with a cross-compiler or being built
10181 # native. However, it would be better to use other mechanisms to make the
10182 # sorts of decisions they want to make on this basis. Please consider
10183 # this option to be deprecated. FIXME.
10184 if test x${is_cross_compiler} = xyes ; then
10185 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10188 # Special user-friendly check for native x86_64-linux build, if
10189 # multilib is not explicitly enabled.
10190 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10191 x86_64-*linux*:yes:$build:$build:)
10192 # Make sure we have a development environment that handles 32-bit
10193 dev64=no
10194 echo "int main () { return 0; }" > conftest.c
10195 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10196 if test $? = 0 ; then
10197 if test -s conftest || test -s conftest.exe ; then
10198 dev64=yes
10201 rm -f conftest*
10202 if test x${dev64} != xyes ; then
10203 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
10206 esac
10208 # Default to --enable-multilib.
10209 if test x${enable_multilib} = x ; then
10210 target_configargs="--enable-multilib ${target_configargs}"
10213 # Pass --with-newlib if appropriate. Note that target_configdirs has
10214 # changed from the earlier setting of with_newlib.
10215 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10216 target_configargs="--with-newlib ${target_configargs}"
10219 # Different target subdirs use different values of certain variables
10220 # (notably CXX). Worse, multilibs use *lots* of different values.
10221 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10222 # it doesn't automatically accept command-line overrides of them.
10223 # This means it's not safe for target subdirs to share a cache file,
10224 # which is disgusting, but there you have it. Hopefully this can be
10225 # fixed in future. It's still worthwhile to use a cache file for each
10226 # directory. I think.
10228 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10229 # We need to pass --target, as newer autoconf's requires consistency
10230 # for target_alias and gcc doesn't manage it consistently.
10231 target_configargs="--cache-file=./config.cache ${target_configargs}"
10233 FLAGS_FOR_TARGET=
10234 case " $target_configdirs " in
10235 *" newlib "*)
10236 case " $target_configargs " in
10237 *" --with-newlib "*)
10238 case "$target" in
10239 *-cygwin*)
10240 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10242 esac
10244 # If we're not building GCC, don't discard standard headers.
10245 if test -d ${srcdir}/gcc; then
10246 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10248 if test "${build}" != "${host}"; then
10249 # On Canadian crosses, CC_FOR_TARGET will have already been set
10250 # by `configure', so we won't have an opportunity to add -Bgcc/
10251 # to it. This is right: we don't want to search that directory
10252 # for binaries, but we want the header files in there, so add
10253 # them explicitly.
10254 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10256 # Someone might think of using the pre-installed headers on
10257 # Canadian crosses, in case the installed compiler is not fully
10258 # compatible with the compiler being built. In this case, it
10259 # would be better to flag an error than risking having
10260 # incompatible object files being constructed. We can't
10261 # guarantee that an error will be flagged, but let's hope the
10262 # compiler will do it, when presented with incompatible header
10263 # files.
10267 case "${target}-${is_cross_compiler}" in
10268 i[3456789]86-*-linux*-no)
10269 # Here host == target, so we don't need to build gcc,
10270 # so we don't want to discard standard headers.
10271 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10274 # If we're building newlib, use its generic headers last, but search
10275 # for any libc-related directories first (so make it the last -B
10276 # switch).
10277 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10279 # If we're building libgloss, find the startup file, simulator library
10280 # and linker script.
10281 case " $target_configdirs " in
10282 *" libgloss "*)
10283 # Look for startup file, simulator library and maybe linker script.
10284 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10285 # Look for libnosys.a in case the target needs it.
10286 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10287 # Most targets have the linker script in the source directory.
10288 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10290 esac
10292 esac
10294 esac
10296 esac
10298 case "$target" in
10299 x86_64-*mingw* | *-w64-mingw*)
10300 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10301 # however, use a symlink named 'mingw' in ${prefix} .
10302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10304 *-mingw*)
10305 # MinGW can't be handled as Cygwin above since it does not use newlib.
10306 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'
10308 esac
10310 # Allow the user to override the flags for
10311 # our build compiler if desired.
10312 if test x"${build}" = x"${host}" ; then
10313 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10314 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10315 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10316 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10319 # On Canadian crosses, we'll be searching the right directories for
10320 # the previously-installed cross compiler, so don't bother to add
10321 # flags for directories within the install tree of the compiler
10322 # being built; programs in there won't even run.
10323 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10324 # Search for pre-installed headers if nothing else fits.
10325 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10328 if test "x${use_gnu_ld}" = x &&
10329 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10330 # Arrange for us to find uninstalled linker scripts.
10331 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10334 # Search for other target-specific linker scripts and such.
10335 case "${target}" in
10336 mep*)
10337 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10339 # The VxWorks support for shared libraries is getting in
10340 # incrementally. Make sure it doesn't get activated implicitly:
10341 *vxworks*)
10342 if test "${enable_shared-unset}" = unset ; then
10343 enable_shared=no
10344 # So the build of libraries knows ...
10345 target_configargs="${target_configargs} --disable-shared"
10346 # So gcc knows ...
10347 host_configargs="${host_configargs} --disable-shared"
10350 esac
10352 # Makefile fragments.
10353 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10355 eval fragval=\$$frag
10356 if test $fragval != /dev/null; then
10357 eval $frag=${srcdir}/$fragval
10359 done
10365 # Miscellanea: directories, flags, etc.
10374 # Build module lists & subconfigure args.
10378 # Host module lists & subconfigure args.
10383 # Target module lists & subconfigure args.
10387 # Build tools.
10408 # Generate default definitions for YACC, M4, LEX and other programs that run
10409 # on the build machine. These are used if the Makefile can't locate these
10410 # programs in objdir.
10411 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10413 for ac_prog in 'bison -y' byacc yacc
10415 # Extract the first word of "$ac_prog", so it can be a program name with args.
10416 set dummy $ac_prog; ac_word=$2
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if ${ac_cv_prog_YACC+:} false; then :
10420 $as_echo_n "(cached) " >&6
10421 else
10422 if test -n "$YACC"; then
10423 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432 ac_cv_prog_YACC="$ac_prog"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10442 YACC=$ac_cv_prog_YACC
10443 if test -n "$YACC"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10445 $as_echo "$YACC" >&6; }
10446 else
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10452 test -n "$YACC" && break
10453 done
10454 test -n "$YACC" || YACC="$MISSING bison -y"
10456 case " $build_configdirs " in
10457 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10458 esac
10460 for ac_prog in bison
10462 # Extract the first word of "$ac_prog", so it can be a program name with args.
10463 set dummy $ac_prog; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if ${ac_cv_prog_BISON+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 if test -n "$BISON"; then
10470 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_prog_BISON="$ac_prog"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10483 done
10484 done
10485 IFS=$as_save_IFS
10489 BISON=$ac_cv_prog_BISON
10490 if test -n "$BISON"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10492 $as_echo "$BISON" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10499 test -n "$BISON" && break
10500 done
10501 test -n "$BISON" || BISON="$MISSING bison"
10503 case " $build_configdirs " in
10504 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10505 esac
10507 for ac_prog in gm4 gnum4 m4
10509 # Extract the first word of "$ac_prog", so it can be a program name with args.
10510 set dummy $ac_prog; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if ${ac_cv_prog_M4+:} false; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 if test -n "$M4"; then
10517 ac_cv_prog_M4="$M4" # Let the user override the test.
10518 else
10519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520 for as_dir in $PATH
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10526 ac_cv_prog_M4="$ac_prog"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10530 done
10531 done
10532 IFS=$as_save_IFS
10536 M4=$ac_cv_prog_M4
10537 if test -n "$M4"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10539 $as_echo "$M4" >&6; }
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10546 test -n "$M4" && break
10547 done
10548 test -n "$M4" || M4="$MISSING m4"
10550 case " $build_configdirs " in
10551 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10552 esac
10554 for ac_prog in flex lex
10556 # Extract the first word of "$ac_prog", so it can be a program name with args.
10557 set dummy $ac_prog; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_prog_LEX+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if test -n "$LEX"; then
10564 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10565 else
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_LEX="$ac_prog"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10577 done
10578 done
10579 IFS=$as_save_IFS
10583 LEX=$ac_cv_prog_LEX
10584 if test -n "$LEX"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10586 $as_echo "$LEX" >&6; }
10587 else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10593 test -n "$LEX" && break
10594 done
10595 test -n "$LEX" || LEX="$MISSING flex"
10597 case " $build_configdirs " in
10598 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10599 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10600 esac
10602 for ac_prog in flex
10604 # Extract the first word of "$ac_prog", so it can be a program name with args.
10605 set dummy $ac_prog; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_prog_FLEX+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 if test -n "$FLEX"; then
10612 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_FLEX="$ac_prog"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10631 FLEX=$ac_cv_prog_FLEX
10632 if test -n "$FLEX"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10634 $as_echo "$FLEX" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10641 test -n "$FLEX" && break
10642 done
10643 test -n "$FLEX" || FLEX="$MISSING flex"
10645 case " $build_configdirs " in
10646 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10647 esac
10649 for ac_prog in makeinfo
10651 # Extract the first word of "$ac_prog", so it can be a program name with args.
10652 set dummy $ac_prog; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_prog_MAKEINFO+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 if test -n "$MAKEINFO"; then
10659 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10660 else
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10664 IFS=$as_save_IFS
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_MAKEINFO="$ac_prog"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10670 break 2
10672 done
10673 done
10674 IFS=$as_save_IFS
10678 MAKEINFO=$ac_cv_prog_MAKEINFO
10679 if test -n "$MAKEINFO"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10681 $as_echo "$MAKEINFO" >&6; }
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10688 test -n "$MAKEINFO" && break
10689 done
10690 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10692 case " $build_configdirs " in
10693 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10696 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10697 # higher, else we use the "missing" dummy.
10698 if ${MAKEINFO} --version \
10699 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10701 else
10702 MAKEINFO="$MISSING makeinfo"
10706 esac
10708 # FIXME: expect and dejagnu may become build tools?
10710 for ac_prog in expect
10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
10713 set dummy $ac_prog; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_prog_EXPECT+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$EXPECT"; then
10720 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_EXPECT="$ac_prog"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10733 done
10734 done
10735 IFS=$as_save_IFS
10739 EXPECT=$ac_cv_prog_EXPECT
10740 if test -n "$EXPECT"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10742 $as_echo "$EXPECT" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10749 test -n "$EXPECT" && break
10750 done
10751 test -n "$EXPECT" || EXPECT="expect"
10753 case " $configdirs " in
10754 *" expect "*)
10755 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10757 esac
10759 for ac_prog in runtest
10761 # Extract the first word of "$ac_prog", so it can be a program name with args.
10762 set dummy $ac_prog; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_prog_RUNTEST+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$RUNTEST"; then
10769 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_RUNTEST="$ac_prog"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10788 RUNTEST=$ac_cv_prog_RUNTEST
10789 if test -n "$RUNTEST"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10791 $as_echo "$RUNTEST" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10798 test -n "$RUNTEST" && break
10799 done
10800 test -n "$RUNTEST" || RUNTEST="runtest"
10802 case " $configdirs " in
10803 *" dejagnu "*)
10804 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10806 esac
10809 # Host tools.
10810 ncn_tool_prefix=
10811 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10812 ncn_target_tool_prefix=
10813 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10817 if test -n "$AR"; then
10818 ac_cv_prog_AR=$AR
10819 elif test -n "$ac_cv_prog_AR"; then
10820 AR=$ac_cv_prog_AR
10823 if test -n "$ac_cv_prog_AR"; then
10824 for ncn_progname in ar; do
10825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_progname}; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if ${ac_cv_prog_AR+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if test -n "$AR"; then
10833 ac_cv_prog_AR="$AR" # Let the user override the test.
10834 else
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_prog_AR="${ncn_progname}"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10846 done
10847 done
10848 IFS=$as_save_IFS
10852 AR=$ac_cv_prog_AR
10853 if test -n "$AR"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10855 $as_echo "$AR" >&6; }
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10862 done
10865 for ncn_progname in ar; do
10866 if test -n "$ncn_tool_prefix"; then
10867 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10868 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if ${ac_cv_prog_AR+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 if test -n "$AR"; then
10875 ac_cv_prog_AR="$AR" # Let the user override the test.
10876 else
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $PATH
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10888 done
10889 done
10890 IFS=$as_save_IFS
10894 AR=$ac_cv_prog_AR
10895 if test -n "$AR"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10897 $as_echo "$AR" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10905 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10907 set dummy ${ncn_progname}; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_prog_AR+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 if test -n "$AR"; then
10914 ac_cv_prog_AR="$AR" # Let the user override the test.
10915 else
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_AR="${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10927 done
10928 done
10929 IFS=$as_save_IFS
10933 AR=$ac_cv_prog_AR
10934 if test -n "$AR"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10936 $as_echo "$AR" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10944 test -n "$ac_cv_prog_AR" && break
10945 done
10947 if test -z "$ac_cv_prog_AR" ; then
10948 set dummy ar
10949 if test $build = $host ; then
10950 AR="$2"
10951 else
10952 AR="${ncn_tool_prefix}$2"
10958 if test -n "$AS"; then
10959 ac_cv_prog_AS=$AS
10960 elif test -n "$ac_cv_prog_AS"; then
10961 AS=$ac_cv_prog_AS
10964 if test -n "$ac_cv_prog_AS"; then
10965 for ncn_progname in as; do
10966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10967 set dummy ${ncn_progname}; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if ${ac_cv_prog_AS+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 if test -n "$AS"; then
10974 ac_cv_prog_AS="$AS" # Let the user override the test.
10975 else
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_AS="${ncn_progname}"
10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10987 done
10988 done
10989 IFS=$as_save_IFS
10993 AS=$ac_cv_prog_AS
10994 if test -n "$AS"; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10996 $as_echo "$AS" >&6; }
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999 $as_echo "no" >&6; }
11003 done
11006 for ncn_progname in as; do
11007 if test -n "$ncn_tool_prefix"; then
11008 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11009 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if ${ac_cv_prog_AS+:} false; then :
11013 $as_echo_n "(cached) " >&6
11014 else
11015 if test -n "$AS"; then
11016 ac_cv_prog_AS="$AS" # Let the user override the test.
11017 else
11018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019 for as_dir in $PATH
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11029 done
11030 done
11031 IFS=$as_save_IFS
11035 AS=$ac_cv_prog_AS
11036 if test -n "$AS"; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11038 $as_echo "$AS" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11046 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11048 set dummy ${ncn_progname}; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_prog_AS+:} false; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 if test -n "$AS"; then
11055 ac_cv_prog_AS="$AS" # Let the user override the test.
11056 else
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11064 ac_cv_prog_AS="${ncn_progname}"
11065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 break 2
11068 done
11069 done
11070 IFS=$as_save_IFS
11074 AS=$ac_cv_prog_AS
11075 if test -n "$AS"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11077 $as_echo "$AS" >&6; }
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11085 test -n "$ac_cv_prog_AS" && break
11086 done
11088 if test -z "$ac_cv_prog_AS" ; then
11089 set dummy as
11090 if test $build = $host ; then
11091 AS="$2"
11092 else
11093 AS="${ncn_tool_prefix}$2"
11099 if test -n "$DLLTOOL"; then
11100 ac_cv_prog_DLLTOOL=$DLLTOOL
11101 elif test -n "$ac_cv_prog_DLLTOOL"; then
11102 DLLTOOL=$ac_cv_prog_DLLTOOL
11105 if test -n "$ac_cv_prog_DLLTOOL"; then
11106 for ncn_progname in dlltool; do
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108 set dummy ${ncn_progname}; ac_word=$2
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110 $as_echo_n "checking for $ac_word... " >&6; }
11111 if ${ac_cv_prog_DLLTOOL+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 if test -n "$DLLTOOL"; then
11115 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11116 else
11117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124 ac_cv_prog_DLLTOOL="${ncn_progname}"
11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126 break 2
11128 done
11129 done
11130 IFS=$as_save_IFS
11134 DLLTOOL=$ac_cv_prog_DLLTOOL
11135 if test -n "$DLLTOOL"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11137 $as_echo "$DLLTOOL" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11144 done
11147 for ncn_progname in dlltool; do
11148 if test -n "$ncn_tool_prefix"; then
11149 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11150 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if ${ac_cv_prog_DLLTOOL+:} false; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 if test -n "$DLLTOOL"; then
11157 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11158 else
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11166 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 break 2
11170 done
11171 done
11172 IFS=$as_save_IFS
11176 DLLTOOL=$ac_cv_prog_DLLTOOL
11177 if test -n "$DLLTOOL"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11179 $as_echo "$DLLTOOL" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11187 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11189 set dummy ${ncn_progname}; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_prog_DLLTOOL+:} false; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 if test -n "$DLLTOOL"; then
11196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11205 ac_cv_prog_DLLTOOL="${ncn_progname}"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11215 DLLTOOL=$ac_cv_prog_DLLTOOL
11216 if test -n "$DLLTOOL"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11218 $as_echo "$DLLTOOL" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11226 test -n "$ac_cv_prog_DLLTOOL" && break
11227 done
11229 if test -z "$ac_cv_prog_DLLTOOL" ; then
11230 set dummy dlltool
11231 if test $build = $host ; then
11232 DLLTOOL="$2"
11233 else
11234 DLLTOOL="${ncn_tool_prefix}$2"
11240 if test -n "$DSYMUTIL"; then
11241 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11242 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11243 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11246 if test -n "$ac_cv_prog_DSYMUTIL"; then
11247 for ncn_progname in dsymutil; do
11248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11249 set dummy ${ncn_progname}; ac_word=$2
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251 $as_echo_n "checking for $ac_word... " >&6; }
11252 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 if test -n "$DSYMUTIL"; then
11256 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11257 else
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11269 done
11270 done
11271 IFS=$as_save_IFS
11275 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11276 if test -n "$DSYMUTIL"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11278 $as_echo "$DSYMUTIL" >&6; }
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11285 done
11288 for ncn_progname in dsymutil; do
11289 if test -n "$ncn_tool_prefix"; then
11290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11291 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test -n "$DSYMUTIL"; then
11298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11299 else
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 break 2
11311 done
11312 done
11313 IFS=$as_save_IFS
11317 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11318 if test -n "$DSYMUTIL"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11320 $as_echo "$DSYMUTIL" >&6; }
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11328 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330 set dummy ${ncn_progname}; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 if test -n "$DSYMUTIL"; then
11337 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11338 else
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11350 done
11351 done
11352 IFS=$as_save_IFS
11356 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11357 if test -n "$DSYMUTIL"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11359 $as_echo "$DSYMUTIL" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11367 test -n "$ac_cv_prog_DSYMUTIL" && break
11368 done
11370 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11371 set dummy dsymutil
11372 if test $build = $host ; then
11373 DSYMUTIL="$2"
11374 else
11375 DSYMUTIL="${ncn_tool_prefix}$2"
11381 if test -n "$LD"; then
11382 ac_cv_prog_LD=$LD
11383 elif test -n "$ac_cv_prog_LD"; then
11384 LD=$ac_cv_prog_LD
11387 if test -n "$ac_cv_prog_LD"; then
11388 for ncn_progname in ld; do
11389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11390 set dummy ${ncn_progname}; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if ${ac_cv_prog_LD+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 if test -n "$LD"; then
11397 ac_cv_prog_LD="$LD" # Let the user override the test.
11398 else
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11402 IFS=$as_save_IFS
11403 test -z "$as_dir" && as_dir=.
11404 for ac_exec_ext in '' $ac_executable_extensions; do
11405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406 ac_cv_prog_LD="${ncn_progname}"
11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 break 2
11410 done
11411 done
11412 IFS=$as_save_IFS
11416 LD=$ac_cv_prog_LD
11417 if test -n "$LD"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11419 $as_echo "$LD" >&6; }
11420 else
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11426 done
11429 for ncn_progname in ld; do
11430 if test -n "$ncn_tool_prefix"; then
11431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11432 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434 $as_echo_n "checking for $ac_word... " >&6; }
11435 if ${ac_cv_prog_LD+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 if test -n "$LD"; then
11439 ac_cv_prog_LD="$LD" # Let the user override the test.
11440 else
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $PATH
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11448 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11452 done
11453 done
11454 IFS=$as_save_IFS
11458 LD=$ac_cv_prog_LD
11459 if test -n "$LD"; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11461 $as_echo "$LD" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 $as_echo "no" >&6; }
11469 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11471 set dummy ${ncn_progname}; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_prog_LD+:} false; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 if test -n "$LD"; then
11478 ac_cv_prog_LD="$LD" # Let the user override the test.
11479 else
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_prog_LD="${ncn_progname}"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11491 done
11492 done
11493 IFS=$as_save_IFS
11497 LD=$ac_cv_prog_LD
11498 if test -n "$LD"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11500 $as_echo "$LD" >&6; }
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11508 test -n "$ac_cv_prog_LD" && break
11509 done
11511 if test -z "$ac_cv_prog_LD" ; then
11512 set dummy ld
11513 if test $build = $host ; then
11514 LD="$2"
11515 else
11516 LD="${ncn_tool_prefix}$2"
11522 if test -n "$LIPO"; then
11523 ac_cv_prog_LIPO=$LIPO
11524 elif test -n "$ac_cv_prog_LIPO"; then
11525 LIPO=$ac_cv_prog_LIPO
11528 if test -n "$ac_cv_prog_LIPO"; then
11529 for ncn_progname in lipo; do
11530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11531 set dummy ${ncn_progname}; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if ${ac_cv_prog_LIPO+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 if test -n "$LIPO"; then
11538 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11539 else
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $PATH
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11547 ac_cv_prog_LIPO="${ncn_progname}"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 break 2
11551 done
11552 done
11553 IFS=$as_save_IFS
11557 LIPO=$ac_cv_prog_LIPO
11558 if test -n "$LIPO"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11560 $as_echo "$LIPO" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11567 done
11570 for ncn_progname in lipo; do
11571 if test -n "$ncn_tool_prefix"; then
11572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11573 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_prog_LIPO+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 if test -n "$LIPO"; then
11580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11589 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11593 done
11594 done
11595 IFS=$as_save_IFS
11599 LIPO=$ac_cv_prog_LIPO
11600 if test -n "$LIPO"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11602 $as_echo "$LIPO" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11610 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if ${ac_cv_prog_LIPO+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 if test -n "$LIPO"; then
11619 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_LIPO="${ncn_progname}"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11632 done
11633 done
11634 IFS=$as_save_IFS
11638 LIPO=$ac_cv_prog_LIPO
11639 if test -n "$LIPO"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11641 $as_echo "$LIPO" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11649 test -n "$ac_cv_prog_LIPO" && break
11650 done
11652 if test -z "$ac_cv_prog_LIPO" ; then
11653 set dummy lipo
11654 if test $build = $host ; then
11655 LIPO="$2"
11656 else
11657 LIPO="${ncn_tool_prefix}$2"
11663 if test -n "$NM"; then
11664 ac_cv_prog_NM=$NM
11665 elif test -n "$ac_cv_prog_NM"; then
11666 NM=$ac_cv_prog_NM
11669 if test -n "$ac_cv_prog_NM"; then
11670 for ncn_progname in nm; do
11671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11672 set dummy ${ncn_progname}; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_prog_NM+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 if test -n "$NM"; then
11679 ac_cv_prog_NM="$NM" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_prog_NM="${ncn_progname}"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11698 NM=$ac_cv_prog_NM
11699 if test -n "$NM"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11701 $as_echo "$NM" >&6; }
11702 else
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11704 $as_echo "no" >&6; }
11708 done
11711 for ncn_progname in nm; do
11712 if test -n "$ncn_tool_prefix"; then
11713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11714 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_prog_NM+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 if test -n "$NM"; then
11721 ac_cv_prog_NM="$NM" # Let the user override the test.
11722 else
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11734 done
11735 done
11736 IFS=$as_save_IFS
11740 NM=$ac_cv_prog_NM
11741 if test -n "$NM"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11743 $as_echo "$NM" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11751 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11753 set dummy ${ncn_progname}; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755 $as_echo_n "checking for $ac_word... " >&6; }
11756 if ${ac_cv_prog_NM+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 if test -n "$NM"; then
11760 ac_cv_prog_NM="$NM" # Let the user override the test.
11761 else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_NM="${ncn_progname}"
11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 break 2
11773 done
11774 done
11775 IFS=$as_save_IFS
11779 NM=$ac_cv_prog_NM
11780 if test -n "$NM"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11782 $as_echo "$NM" >&6; }
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11790 test -n "$ac_cv_prog_NM" && break
11791 done
11793 if test -z "$ac_cv_prog_NM" ; then
11794 set dummy nm
11795 if test $build = $host ; then
11796 NM="$2"
11797 else
11798 NM="${ncn_tool_prefix}$2"
11804 if test -n "$RANLIB"; then
11805 ac_cv_prog_RANLIB=$RANLIB
11806 elif test -n "$ac_cv_prog_RANLIB"; then
11807 RANLIB=$ac_cv_prog_RANLIB
11810 if test -n "$ac_cv_prog_RANLIB"; then
11811 for ncn_progname in ranlib; do
11812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11813 set dummy ${ncn_progname}; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_prog_RANLIB+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 if test -n "$RANLIB"; then
11820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_prog_RANLIB="${ncn_progname}"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11833 done
11834 done
11835 IFS=$as_save_IFS
11839 RANLIB=$ac_cv_prog_RANLIB
11840 if test -n "$RANLIB"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11842 $as_echo "$RANLIB" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11849 done
11852 for ncn_progname in ranlib; do
11853 if test -n "$ncn_tool_prefix"; then
11854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_RANLIB+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$RANLIB"; then
11862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11875 done
11876 done
11877 IFS=$as_save_IFS
11881 RANLIB=$ac_cv_prog_RANLIB
11882 if test -n "$RANLIB"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11884 $as_echo "$RANLIB" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_RANLIB+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$RANLIB"; then
11901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_RANLIB="${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11914 done
11915 done
11916 IFS=$as_save_IFS
11920 RANLIB=$ac_cv_prog_RANLIB
11921 if test -n "$RANLIB"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11923 $as_echo "$RANLIB" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11931 test -n "$ac_cv_prog_RANLIB" && break
11932 done
11934 if test -z "$ac_cv_prog_RANLIB" ; then
11935 RANLIB="true"
11940 if test -n "$STRIP"; then
11941 ac_cv_prog_STRIP=$STRIP
11942 elif test -n "$ac_cv_prog_STRIP"; then
11943 STRIP=$ac_cv_prog_STRIP
11946 if test -n "$ac_cv_prog_STRIP"; then
11947 for ncn_progname in strip; do
11948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11949 set dummy ${ncn_progname}; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_prog_STRIP+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test -n "$STRIP"; then
11956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11957 else
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_exec_ext in '' $ac_executable_extensions; do
11964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11965 ac_cv_prog_STRIP="${ncn_progname}"
11966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 break 2
11969 done
11970 done
11971 IFS=$as_save_IFS
11975 STRIP=$ac_cv_prog_STRIP
11976 if test -n "$STRIP"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11978 $as_echo "$STRIP" >&6; }
11979 else
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11985 done
11988 for ncn_progname in strip; do
11989 if test -n "$ncn_tool_prefix"; then
11990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_prog_STRIP+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 if test -n "$STRIP"; then
11998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11999 else
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12011 done
12012 done
12013 IFS=$as_save_IFS
12017 STRIP=$ac_cv_prog_STRIP
12018 if test -n "$STRIP"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12020 $as_echo "$STRIP" >&6; }
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12028 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12030 set dummy ${ncn_progname}; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_prog_STRIP+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 if test -n "$STRIP"; then
12037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12038 else
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_prog_STRIP="${ncn_progname}"
12047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12048 break 2
12050 done
12051 done
12052 IFS=$as_save_IFS
12056 STRIP=$ac_cv_prog_STRIP
12057 if test -n "$STRIP"; then
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12059 $as_echo "$STRIP" >&6; }
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062 $as_echo "no" >&6; }
12067 test -n "$ac_cv_prog_STRIP" && break
12068 done
12070 if test -z "$ac_cv_prog_STRIP" ; then
12071 STRIP="true"
12076 if test -n "$WINDRES"; then
12077 ac_cv_prog_WINDRES=$WINDRES
12078 elif test -n "$ac_cv_prog_WINDRES"; then
12079 WINDRES=$ac_cv_prog_WINDRES
12082 if test -n "$ac_cv_prog_WINDRES"; then
12083 for ncn_progname in windres; do
12084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_WINDRES+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$WINDRES"; then
12092 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101 ac_cv_prog_WINDRES="${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12105 done
12106 done
12107 IFS=$as_save_IFS
12111 WINDRES=$ac_cv_prog_WINDRES
12112 if test -n "$WINDRES"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12114 $as_echo "$WINDRES" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12121 done
12124 for ncn_progname in windres; do
12125 if test -n "$ncn_tool_prefix"; then
12126 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if ${ac_cv_prog_WINDRES+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test -n "$WINDRES"; then
12134 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12147 done
12148 done
12149 IFS=$as_save_IFS
12153 WINDRES=$ac_cv_prog_WINDRES
12154 if test -n "$WINDRES"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12156 $as_echo "$WINDRES" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12164 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166 set dummy ${ncn_progname}; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_prog_WINDRES+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$WINDRES"; then
12173 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182 ac_cv_prog_WINDRES="${ncn_progname}"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12186 done
12187 done
12188 IFS=$as_save_IFS
12192 WINDRES=$ac_cv_prog_WINDRES
12193 if test -n "$WINDRES"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12195 $as_echo "$WINDRES" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12203 test -n "$ac_cv_prog_WINDRES" && break
12204 done
12206 if test -z "$ac_cv_prog_WINDRES" ; then
12207 set dummy windres
12208 if test $build = $host ; then
12209 WINDRES="$2"
12210 else
12211 WINDRES="${ncn_tool_prefix}$2"
12217 if test -n "$WINDMC"; then
12218 ac_cv_prog_WINDMC=$WINDMC
12219 elif test -n "$ac_cv_prog_WINDMC"; then
12220 WINDMC=$ac_cv_prog_WINDMC
12223 if test -n "$ac_cv_prog_WINDMC"; then
12224 for ncn_progname in windmc; do
12225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12226 set dummy ${ncn_progname}; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_WINDMC+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 if test -n "$WINDMC"; then
12233 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_WINDMC="${ncn_progname}"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244 break 2
12246 done
12247 done
12248 IFS=$as_save_IFS
12252 WINDMC=$ac_cv_prog_WINDMC
12253 if test -n "$WINDMC"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12255 $as_echo "$WINDMC" >&6; }
12256 else
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12262 done
12265 for ncn_progname in windmc; do
12266 if test -n "$ncn_tool_prefix"; then
12267 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12268 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12270 $as_echo_n "checking for $ac_word... " >&6; }
12271 if ${ac_cv_prog_WINDMC+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 if test -n "$WINDMC"; then
12275 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12276 else
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278 for as_dir in $PATH
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12284 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 break 2
12288 done
12289 done
12290 IFS=$as_save_IFS
12294 WINDMC=$ac_cv_prog_WINDMC
12295 if test -n "$WINDMC"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12297 $as_echo "$WINDMC" >&6; }
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12305 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12307 set dummy ${ncn_progname}; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_WINDMC+:} false; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 if test -n "$WINDMC"; then
12314 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_prog_WINDMC="${ncn_progname}"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 break 2
12327 done
12328 done
12329 IFS=$as_save_IFS
12333 WINDMC=$ac_cv_prog_WINDMC
12334 if test -n "$WINDMC"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12336 $as_echo "$WINDMC" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12344 test -n "$ac_cv_prog_WINDMC" && break
12345 done
12347 if test -z "$ac_cv_prog_WINDMC" ; then
12348 set dummy windmc
12349 if test $build = $host ; then
12350 WINDMC="$2"
12351 else
12352 WINDMC="${ncn_tool_prefix}$2"
12358 if test -n "$OBJCOPY"; then
12359 ac_cv_prog_OBJCOPY=$OBJCOPY
12360 elif test -n "$ac_cv_prog_OBJCOPY"; then
12361 OBJCOPY=$ac_cv_prog_OBJCOPY
12364 if test -n "$ac_cv_prog_OBJCOPY"; then
12365 for ncn_progname in objcopy; do
12366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12367 set dummy ${ncn_progname}; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_OBJCOPY+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 if test -n "$OBJCOPY"; then
12374 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12375 else
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_OBJCOPY="${ncn_progname}"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 break 2
12387 done
12388 done
12389 IFS=$as_save_IFS
12393 OBJCOPY=$ac_cv_prog_OBJCOPY
12394 if test -n "$OBJCOPY"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12396 $as_echo "$OBJCOPY" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12403 done
12406 for ncn_progname in objcopy; do
12407 if test -n "$ncn_tool_prefix"; then
12408 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12409 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411 $as_echo_n "checking for $ac_word... " >&6; }
12412 if ${ac_cv_prog_OBJCOPY+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 if test -n "$OBJCOPY"; then
12416 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12417 else
12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12421 IFS=$as_save_IFS
12422 test -z "$as_dir" && as_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 break 2
12429 done
12430 done
12431 IFS=$as_save_IFS
12435 OBJCOPY=$ac_cv_prog_OBJCOPY
12436 if test -n "$OBJCOPY"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12438 $as_echo "$OBJCOPY" >&6; }
12439 else
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441 $as_echo "no" >&6; }
12446 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12448 set dummy ${ncn_progname}; ac_word=$2
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12450 $as_echo_n "checking for $ac_word... " >&6; }
12451 if ${ac_cv_prog_OBJCOPY+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 if test -n "$OBJCOPY"; then
12455 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12456 else
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_exec_ext in '' $ac_executable_extensions; do
12463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464 ac_cv_prog_OBJCOPY="${ncn_progname}"
12465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 break 2
12468 done
12469 done
12470 IFS=$as_save_IFS
12474 OBJCOPY=$ac_cv_prog_OBJCOPY
12475 if test -n "$OBJCOPY"; then
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12477 $as_echo "$OBJCOPY" >&6; }
12478 else
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12485 test -n "$ac_cv_prog_OBJCOPY" && break
12486 done
12488 if test -z "$ac_cv_prog_OBJCOPY" ; then
12489 set dummy objcopy
12490 if test $build = $host ; then
12491 OBJCOPY="$2"
12492 else
12493 OBJCOPY="${ncn_tool_prefix}$2"
12499 if test -n "$OBJDUMP"; then
12500 ac_cv_prog_OBJDUMP=$OBJDUMP
12501 elif test -n "$ac_cv_prog_OBJDUMP"; then
12502 OBJDUMP=$ac_cv_prog_OBJDUMP
12505 if test -n "$ac_cv_prog_OBJDUMP"; then
12506 for ncn_progname in objdump; do
12507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508 set dummy ${ncn_progname}; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if ${ac_cv_prog_OBJDUMP+:} false; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if test -n "$OBJDUMP"; then
12515 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12524 ac_cv_prog_OBJDUMP="${ncn_progname}"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12530 IFS=$as_save_IFS
12534 OBJDUMP=$ac_cv_prog_OBJDUMP
12535 if test -n "$OBJDUMP"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12537 $as_echo "$OBJDUMP" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12544 done
12547 for ncn_progname in objdump; do
12548 if test -n "$ncn_tool_prefix"; then
12549 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12550 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_prog_OBJDUMP+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 if test -n "$OBJDUMP"; then
12557 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12558 else
12559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560 for as_dir in $PATH
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
12565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12566 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12570 done
12571 done
12572 IFS=$as_save_IFS
12576 OBJDUMP=$ac_cv_prog_OBJDUMP
12577 if test -n "$OBJDUMP"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12579 $as_echo "$OBJDUMP" >&6; }
12580 else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12587 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12589 set dummy ${ncn_progname}; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_prog_OBJDUMP+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 if test -n "$OBJDUMP"; then
12596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12597 else
12598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12601 IFS=$as_save_IFS
12602 test -z "$as_dir" && as_dir=.
12603 for ac_exec_ext in '' $ac_executable_extensions; do
12604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605 ac_cv_prog_OBJDUMP="${ncn_progname}"
12606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 break 2
12609 done
12610 done
12611 IFS=$as_save_IFS
12615 OBJDUMP=$ac_cv_prog_OBJDUMP
12616 if test -n "$OBJDUMP"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12618 $as_echo "$OBJDUMP" >&6; }
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12626 test -n "$ac_cv_prog_OBJDUMP" && break
12627 done
12629 if test -z "$ac_cv_prog_OBJDUMP" ; then
12630 set dummy objdump
12631 if test $build = $host ; then
12632 OBJDUMP="$2"
12633 else
12634 OBJDUMP="${ncn_tool_prefix}$2"
12640 if test -n "$OTOOL"; then
12641 ac_cv_prog_OTOOL=$OTOOL
12642 elif test -n "$ac_cv_prog_OTOOL"; then
12643 OTOOL=$ac_cv_prog_OTOOL
12646 if test -n "$ac_cv_prog_OTOOL"; then
12647 for ncn_progname in otool; do
12648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12649 set dummy ${ncn_progname}; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if ${ac_cv_prog_OTOOL+:} false; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 if test -n "$OTOOL"; then
12656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12657 else
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
12664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665 ac_cv_prog_OTOOL="${ncn_progname}"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 break 2
12669 done
12670 done
12671 IFS=$as_save_IFS
12675 OTOOL=$ac_cv_prog_OTOOL
12676 if test -n "$OTOOL"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12678 $as_echo "$OTOOL" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12685 done
12688 for ncn_progname in otool; do
12689 if test -n "$ncn_tool_prefix"; then
12690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12691 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if ${ac_cv_prog_OTOOL+:} false; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$OTOOL"; then
12698 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12707 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12717 OTOOL=$ac_cv_prog_OTOOL
12718 if test -n "$OTOOL"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12720 $as_echo "$OTOOL" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12728 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12730 set dummy ${ncn_progname}; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_prog_OTOOL+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 if test -n "$OTOOL"; then
12737 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12738 else
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12746 ac_cv_prog_OTOOL="${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12750 done
12751 done
12752 IFS=$as_save_IFS
12756 OTOOL=$ac_cv_prog_OTOOL
12757 if test -n "$OTOOL"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12759 $as_echo "$OTOOL" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12767 test -n "$ac_cv_prog_OTOOL" && break
12768 done
12770 if test -z "$ac_cv_prog_OTOOL" ; then
12771 set dummy otool
12772 if test $build = $host ; then
12773 OTOOL="$2"
12774 else
12775 OTOOL="${ncn_tool_prefix}$2"
12781 if test -n "$READELF"; then
12782 ac_cv_prog_READELF=$READELF
12783 elif test -n "$ac_cv_prog_READELF"; then
12784 READELF=$ac_cv_prog_READELF
12787 if test -n "$ac_cv_prog_READELF"; then
12788 for ncn_progname in readelf; do
12789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12790 set dummy ${ncn_progname}; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_prog_READELF+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 if test -n "$READELF"; then
12797 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12806 ac_cv_prog_READELF="${ncn_progname}"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12810 done
12811 done
12812 IFS=$as_save_IFS
12816 READELF=$ac_cv_prog_READELF
12817 if test -n "$READELF"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12819 $as_echo "$READELF" >&6; }
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12826 done
12829 for ncn_progname in readelf; do
12830 if test -n "$ncn_tool_prefix"; then
12831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if ${ac_cv_prog_READELF+:} false; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$READELF"; then
12839 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12848 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 READELF=$ac_cv_prog_READELF
12859 if test -n "$READELF"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12861 $as_echo "$READELF" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12869 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12871 set dummy ${ncn_progname}; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_prog_READELF+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 if test -n "$READELF"; then
12878 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12879 else
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12887 ac_cv_prog_READELF="${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12891 done
12892 done
12893 IFS=$as_save_IFS
12897 READELF=$ac_cv_prog_READELF
12898 if test -n "$READELF"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12900 $as_echo "$READELF" >&6; }
12901 else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12908 test -n "$ac_cv_prog_READELF" && break
12909 done
12911 if test -z "$ac_cv_prog_READELF" ; then
12912 set dummy readelf
12913 if test $build = $host ; then
12914 READELF="$2"
12915 else
12916 READELF="${ncn_tool_prefix}$2"
12927 # Target tools.
12929 # Check whether --with-build-time-tools was given.
12930 if test "${with_build_time_tools+set}" = set; then :
12931 withval=$with_build_time_tools; case x"$withval" in
12932 x/*) ;;
12934 with_build_time_tools=
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12936 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12938 esac
12939 else
12940 with_build_time_tools=
12946 if test -n "$CC_FOR_TARGET"; then
12947 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12948 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12949 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12952 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12953 for ncn_progname in cc gcc; do
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12955 set dummy ${ncn_progname}; ac_word=$2
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957 $as_echo_n "checking for $ac_word... " >&6; }
12958 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 if test -n "$CC_FOR_TARGET"; then
12962 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12963 else
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12971 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12975 done
12976 done
12977 IFS=$as_save_IFS
12981 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12982 if test -n "$CC_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12984 $as_echo "$CC_FOR_TARGET" >&6; }
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12991 done
12994 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12995 for ncn_progname in cc gcc; do
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12997 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12998 if test -x $with_build_time_tools/${ncn_progname}; then
12999 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 $as_echo "yes" >&6; }
13002 break
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005 $as_echo "no" >&6; }
13007 done
13010 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13011 for ncn_progname in cc gcc; do
13012 if test -n "$ncn_target_tool_prefix"; then
13013 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13014 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016 $as_echo_n "checking for $ac_word... " >&6; }
13017 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 if test -n "$CC_FOR_TARGET"; then
13021 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13026 IFS=$as_save_IFS
13027 test -z "$as_dir" && as_dir=.
13028 for ac_exec_ext in '' $ac_executable_extensions; do
13029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13032 break 2
13034 done
13035 done
13036 IFS=$as_save_IFS
13040 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13041 if test -n "$CC_FOR_TARGET"; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13043 $as_echo "$CC_FOR_TARGET" >&6; }
13044 else
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046 $as_echo "no" >&6; }
13051 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13053 set dummy ${ncn_progname}; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 if test -n "$CC_FOR_TARGET"; then
13060 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13061 else
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13069 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 break 2
13073 done
13074 done
13075 IFS=$as_save_IFS
13079 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13080 if test -n "$CC_FOR_TARGET"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13082 $as_echo "$CC_FOR_TARGET" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13090 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13091 done
13094 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13095 set dummy cc gcc
13096 if test $build = $target ; then
13097 CC_FOR_TARGET="$2"
13098 else
13099 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13101 else
13102 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13107 if test -n "$CXX_FOR_TARGET"; then
13108 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13109 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13110 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13113 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13114 for ncn_progname in c++ g++ cxx gxx; do
13115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13116 set dummy ${ncn_progname}; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test -n "$CXX_FOR_TARGET"; then
13123 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13132 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13136 done
13137 done
13138 IFS=$as_save_IFS
13142 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13143 if test -n "$CXX_FOR_TARGET"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13145 $as_echo "$CXX_FOR_TARGET" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13152 done
13155 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13156 for ncn_progname in c++ g++ cxx gxx; do
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13158 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13159 if test -x $with_build_time_tools/${ncn_progname}; then
13160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13162 $as_echo "yes" >&6; }
13163 break
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13168 done
13171 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13172 for ncn_progname in c++ g++ cxx gxx; do
13173 if test -n "$ncn_target_tool_prefix"; then
13174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$CXX_FOR_TARGET"; then
13182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13202 if test -n "$CXX_FOR_TARGET"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13204 $as_echo "$CXX_FOR_TARGET" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13212 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13214 set dummy ${ncn_progname}; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 if test -n "$CXX_FOR_TARGET"; then
13221 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13234 done
13235 done
13236 IFS=$as_save_IFS
13240 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13241 if test -n "$CXX_FOR_TARGET"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13243 $as_echo "$CXX_FOR_TARGET" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13251 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13252 done
13255 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13256 set dummy c++ g++ cxx gxx
13257 if test $build = $target ; then
13258 CXX_FOR_TARGET="$2"
13259 else
13260 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13262 else
13263 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13268 if test -n "$GCC_FOR_TARGET"; then
13269 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13270 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13271 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13274 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13275 for ncn_progname in gcc; do
13276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13277 set dummy ${ncn_progname}; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 if test -n "$GCC_FOR_TARGET"; then
13284 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13297 done
13298 done
13299 IFS=$as_save_IFS
13303 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13304 if test -n "$GCC_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13306 $as_echo "$GCC_FOR_TARGET" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13313 done
13316 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13317 for ncn_progname in gcc; do
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13319 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13320 if test -x $with_build_time_tools/${ncn_progname}; then
13321 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13323 $as_echo "yes" >&6; }
13324 break
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13329 done
13332 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13333 for ncn_progname in gcc; do
13334 if test -n "$ncn_target_tool_prefix"; then
13335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13336 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338 $as_echo_n "checking for $ac_word... " >&6; }
13339 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 if test -n "$GCC_FOR_TARGET"; then
13343 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13344 else
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
13351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354 break 2
13356 done
13357 done
13358 IFS=$as_save_IFS
13362 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13363 if test -n "$GCC_FOR_TARGET"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13365 $as_echo "$GCC_FOR_TARGET" >&6; }
13366 else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13373 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13375 set dummy ${ncn_progname}; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 if test -n "$GCC_FOR_TARGET"; then
13382 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13383 else
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13391 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13401 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13402 if test -n "$GCC_FOR_TARGET"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13404 $as_echo "$GCC_FOR_TARGET" >&6; }
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13412 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13413 done
13416 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13417 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13418 else
13419 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13424 if test -n "$GFORTRAN_FOR_TARGET"; then
13425 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13426 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13427 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13430 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13431 for ncn_progname in gfortran; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13433 set dummy ${ncn_progname}; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435 $as_echo_n "checking for $ac_word... " >&6; }
13436 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 if test -n "$GFORTRAN_FOR_TARGET"; then
13440 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13453 done
13454 done
13455 IFS=$as_save_IFS
13459 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13460 if test -n "$GFORTRAN_FOR_TARGET"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13462 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13469 done
13472 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13473 for ncn_progname in gfortran; do
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13475 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479 $as_echo "yes" >&6; }
13480 break
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13485 done
13488 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13489 for ncn_progname in gfortran; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 if test -n "$GFORTRAN_FOR_TARGET"; then
13499 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13508 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13512 done
13513 done
13514 IFS=$as_save_IFS
13518 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13519 if test -n "$GFORTRAN_FOR_TARGET"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13521 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13529 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531 set dummy ${ncn_progname}; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 if test -n "$GFORTRAN_FOR_TARGET"; then
13538 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13539 else
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13551 done
13552 done
13553 IFS=$as_save_IFS
13557 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13558 if test -n "$GFORTRAN_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13560 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13561 else
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13568 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13569 done
13572 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13573 set dummy gfortran
13574 if test $build = $target ; then
13575 GFORTRAN_FOR_TARGET="$2"
13576 else
13577 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13579 else
13580 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13585 if test -n "$GOC_FOR_TARGET"; then
13586 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13587 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13588 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13591 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13592 for ncn_progname in gccgo; do
13593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13594 set dummy ${ncn_progname}; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596 $as_echo_n "checking for $ac_word... " >&6; }
13597 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 if test -n "$GOC_FOR_TARGET"; then
13601 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13602 else
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13610 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13614 done
13615 done
13616 IFS=$as_save_IFS
13620 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13621 if test -n "$GOC_FOR_TARGET"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13623 $as_echo "$GOC_FOR_TARGET" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13630 done
13633 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13634 for ncn_progname in gccgo; do
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13636 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13637 if test -x $with_build_time_tools/${ncn_progname}; then
13638 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640 $as_echo "yes" >&6; }
13641 break
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13646 done
13649 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13650 for ncn_progname in gccgo; do
13651 if test -n "$ncn_target_tool_prefix"; then
13652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13653 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13655 $as_echo_n "checking for $ac_word... " >&6; }
13656 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 if test -n "$GOC_FOR_TARGET"; then
13660 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13661 else
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13665 IFS=$as_save_IFS
13666 test -z "$as_dir" && as_dir=.
13667 for ac_exec_ext in '' $ac_executable_extensions; do
13668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13669 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671 break 2
13673 done
13674 done
13675 IFS=$as_save_IFS
13679 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13680 if test -n "$GOC_FOR_TARGET"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13682 $as_echo "$GOC_FOR_TARGET" >&6; }
13683 else
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13690 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13692 set dummy ${ncn_progname}; ac_word=$2
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13694 $as_echo_n "checking for $ac_word... " >&6; }
13695 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 if test -n "$GOC_FOR_TARGET"; then
13699 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13700 else
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13712 done
13713 done
13714 IFS=$as_save_IFS
13718 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13719 if test -n "$GOC_FOR_TARGET"; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13721 $as_echo "$GOC_FOR_TARGET" >&6; }
13722 else
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 $as_echo "no" >&6; }
13729 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13730 done
13733 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13734 set dummy gccgo
13735 if test $build = $target ; then
13736 GOC_FOR_TARGET="$2"
13737 else
13738 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13740 else
13741 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13746 if test -n "$GDC_FOR_TARGET"; then
13747 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13748 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13749 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13752 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13753 for ncn_progname in gdc; do
13754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13755 set dummy ${ncn_progname}; ac_word=$2
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757 $as_echo_n "checking for $ac_word... " >&6; }
13758 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13759 $as_echo_n "(cached) " >&6
13760 else
13761 if test -n "$GDC_FOR_TARGET"; then
13762 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13763 else
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13775 done
13776 done
13777 IFS=$as_save_IFS
13781 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13782 if test -n "$GDC_FOR_TARGET"; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13784 $as_echo "$GDC_FOR_TARGET" >&6; }
13785 else
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787 $as_echo "no" >&6; }
13791 done
13794 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13795 for ncn_progname in gdc; do
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13797 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13798 if test -x $with_build_time_tools/${ncn_progname}; then
13799 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13801 $as_echo "yes" >&6; }
13802 break
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13807 done
13810 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13811 for ncn_progname in gdc; do
13812 if test -n "$ncn_target_tool_prefix"; then
13813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13814 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 if test -n "$GDC_FOR_TARGET"; then
13821 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13834 done
13835 done
13836 IFS=$as_save_IFS
13840 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13841 if test -n "$GDC_FOR_TARGET"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13843 $as_echo "$GDC_FOR_TARGET" >&6; }
13844 else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13851 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13853 set dummy ${ncn_progname}; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 if test -n "$GDC_FOR_TARGET"; then
13860 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13865 IFS=$as_save_IFS
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871 break 2
13873 done
13874 done
13875 IFS=$as_save_IFS
13879 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13880 if test -n "$GDC_FOR_TARGET"; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13882 $as_echo "$GDC_FOR_TARGET" >&6; }
13883 else
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13890 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13891 done
13894 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13895 set dummy gdc
13896 if test $build = $target ; then
13897 GDC_FOR_TARGET="$2"
13898 else
13899 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13901 else
13902 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13907 if test -n "$GM2_FOR_TARGET"; then
13908 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13909 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13910 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13913 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13914 for ncn_progname in gm2; do
13915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13916 set dummy ${ncn_progname}; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922 if test -n "$GM2_FOR_TARGET"; then
13923 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13924 else
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13936 done
13937 done
13938 IFS=$as_save_IFS
13942 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13943 if test -n "$GM2_FOR_TARGET"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13945 $as_echo "$GM2_FOR_TARGET" >&6; }
13946 else
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13952 done
13955 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13956 for ncn_progname in gm2; do
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13958 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13959 if test -x $with_build_time_tools/${ncn_progname}; then
13960 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13962 $as_echo "yes" >&6; }
13963 break
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 done
13971 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13972 for ncn_progname in gm2; do
13973 if test -n "$ncn_target_tool_prefix"; then
13974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 if test -n "$GM2_FOR_TARGET"; then
13982 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13983 else
13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985 for as_dir in $PATH
13987 IFS=$as_save_IFS
13988 test -z "$as_dir" && as_dir=.
13989 for ac_exec_ext in '' $ac_executable_extensions; do
13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993 break 2
13995 done
13996 done
13997 IFS=$as_save_IFS
14001 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14002 if test -n "$GM2_FOR_TARGET"; then
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14004 $as_echo "$GM2_FOR_TARGET" >&6; }
14005 else
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007 $as_echo "no" >&6; }
14012 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14014 set dummy ${ncn_progname}; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 if test -n "$GM2_FOR_TARGET"; then
14021 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14026 IFS=$as_save_IFS
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14030 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 break 2
14034 done
14035 done
14036 IFS=$as_save_IFS
14040 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14041 if test -n "$GM2_FOR_TARGET"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14043 $as_echo "$GM2_FOR_TARGET" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14051 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14052 done
14055 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14056 set dummy gm2
14057 if test $build = $target ; then
14058 GM2_FOR_TARGET="$2"
14059 else
14060 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14062 else
14063 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14068 cat > conftest.c << \EOF
14069 #ifdef __GNUC__
14070 gcc_yay;
14071 #endif
14073 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14074 have_gcc_for_target=yes
14075 else
14076 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14077 have_gcc_for_target=no
14079 rm conftest.c
14084 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14085 if test -n "$with_build_time_tools"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14087 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14088 if test -x $with_build_time_tools/ar; then
14089 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14090 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14092 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14097 elif test $build != $host && test $have_gcc_for_target = yes; then
14098 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14099 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14100 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14103 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14104 # Extract the first word of "ar", so it can be a program name with args.
14105 set dummy ar; ac_word=$2
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14107 $as_echo_n "checking for $ac_word... " >&6; }
14108 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 case $AR_FOR_TARGET in
14112 [\\/]* | ?:[\\/]*)
14113 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $gcc_cv_tool_dirs
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125 break 2
14127 done
14128 done
14129 IFS=$as_save_IFS
14132 esac
14134 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14135 if test -n "$AR_FOR_TARGET"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14137 $as_echo "$AR_FOR_TARGET" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14145 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14148 if test -n "$AR_FOR_TARGET"; then
14149 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14150 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14151 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14154 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14155 for ncn_progname in ar; do
14156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14157 set dummy ${ncn_progname}; ac_word=$2
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14159 $as_echo_n "checking for $ac_word... " >&6; }
14160 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 if test -n "$AR_FOR_TARGET"; then
14164 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14165 else
14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14167 for as_dir in $PATH
14169 IFS=$as_save_IFS
14170 test -z "$as_dir" && as_dir=.
14171 for ac_exec_ext in '' $ac_executable_extensions; do
14172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14173 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14175 break 2
14177 done
14178 done
14179 IFS=$as_save_IFS
14183 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14184 if test -n "$AR_FOR_TARGET"; then
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14186 $as_echo "$AR_FOR_TARGET" >&6; }
14187 else
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14193 done
14196 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14197 for ncn_progname in ar; do
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14199 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14200 if test -x $with_build_time_tools/${ncn_progname}; then
14201 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203 $as_echo "yes" >&6; }
14204 break
14205 else
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14207 $as_echo "no" >&6; }
14209 done
14212 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14213 for ncn_progname in ar; do
14214 if test -n "$ncn_target_tool_prefix"; then
14215 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14216 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14218 $as_echo_n "checking for $ac_word... " >&6; }
14219 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 if test -n "$AR_FOR_TARGET"; then
14223 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14224 else
14225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 for as_dir in $PATH
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
14230 for ac_exec_ext in '' $ac_executable_extensions; do
14231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14234 break 2
14236 done
14237 done
14238 IFS=$as_save_IFS
14242 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14243 if test -n "$AR_FOR_TARGET"; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14245 $as_echo "$AR_FOR_TARGET" >&6; }
14246 else
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248 $as_echo "no" >&6; }
14253 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14255 set dummy ${ncn_progname}; ac_word=$2
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 $as_echo_n "checking for $ac_word... " >&6; }
14258 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 if test -n "$AR_FOR_TARGET"; then
14262 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14267 IFS=$as_save_IFS
14268 test -z "$as_dir" && as_dir=.
14269 for ac_exec_ext in '' $ac_executable_extensions; do
14270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273 break 2
14275 done
14276 done
14277 IFS=$as_save_IFS
14281 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14282 if test -n "$AR_FOR_TARGET"; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14284 $as_echo "$AR_FOR_TARGET" >&6; }
14285 else
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14292 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14293 done
14296 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14297 set dummy ar
14298 if test $build = $target ; then
14299 AR_FOR_TARGET="$2"
14300 else
14301 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14303 else
14304 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14307 else
14308 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14314 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14315 if test -n "$with_build_time_tools"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14317 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14318 if test -x $with_build_time_tools/as; then
14319 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14320 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14322 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14323 else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 $as_echo "no" >&6; }
14327 elif test $build != $host && test $have_gcc_for_target = yes; then
14328 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14329 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14330 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14333 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14334 # Extract the first word of "as", so it can be a program name with args.
14335 set dummy as; ac_word=$2
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14337 $as_echo_n "checking for $ac_word... " >&6; }
14338 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 case $AS_FOR_TARGET in
14342 [\\/]* | ?:[\\/]*)
14343 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $gcc_cv_tool_dirs
14349 IFS=$as_save_IFS
14350 test -z "$as_dir" && as_dir=.
14351 for ac_exec_ext in '' $ac_executable_extensions; do
14352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14353 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14355 break 2
14357 done
14358 done
14359 IFS=$as_save_IFS
14362 esac
14364 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14365 if test -n "$AS_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14367 $as_echo "$AS_FOR_TARGET" >&6; }
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14375 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14378 if test -n "$AS_FOR_TARGET"; then
14379 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14380 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14381 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14384 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14385 for ncn_progname in as; do
14386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14387 set dummy ${ncn_progname}; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 if test -n "$AS_FOR_TARGET"; then
14394 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14395 else
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14399 IFS=$as_save_IFS
14400 test -z "$as_dir" && as_dir=.
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14405 break 2
14407 done
14408 done
14409 IFS=$as_save_IFS
14413 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14414 if test -n "$AS_FOR_TARGET"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14416 $as_echo "$AS_FOR_TARGET" >&6; }
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14423 done
14426 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14427 for ncn_progname in as; do
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14429 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14430 if test -x $with_build_time_tools/${ncn_progname}; then
14431 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433 $as_echo "yes" >&6; }
14434 break
14435 else
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14439 done
14442 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14443 for ncn_progname in as; do
14444 if test -n "$ncn_target_tool_prefix"; then
14445 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14446 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448 $as_echo_n "checking for $ac_word... " >&6; }
14449 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 if test -n "$AS_FOR_TARGET"; then
14453 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14454 else
14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456 for as_dir in $PATH
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14466 done
14467 done
14468 IFS=$as_save_IFS
14472 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14473 if test -n "$AS_FOR_TARGET"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14475 $as_echo "$AS_FOR_TARGET" >&6; }
14476 else
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478 $as_echo "no" >&6; }
14483 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14485 set dummy ${ncn_progname}; ac_word=$2
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14487 $as_echo_n "checking for $ac_word... " >&6; }
14488 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 if test -n "$AS_FOR_TARGET"; then
14492 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14493 else
14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 for as_dir in $PATH
14497 IFS=$as_save_IFS
14498 test -z "$as_dir" && as_dir=.
14499 for ac_exec_ext in '' $ac_executable_extensions; do
14500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14501 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503 break 2
14505 done
14506 done
14507 IFS=$as_save_IFS
14511 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14512 if test -n "$AS_FOR_TARGET"; then
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14514 $as_echo "$AS_FOR_TARGET" >&6; }
14515 else
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517 $as_echo "no" >&6; }
14522 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14523 done
14526 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14527 set dummy as
14528 if test $build = $target ; then
14529 AS_FOR_TARGET="$2"
14530 else
14531 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14533 else
14534 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14537 else
14538 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14544 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14545 if test -n "$with_build_time_tools"; then
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14547 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14548 if test -x $with_build_time_tools/dlltool; then
14549 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14550 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14552 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14553 else
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555 $as_echo "no" >&6; }
14557 elif test $build != $host && test $have_gcc_for_target = yes; then
14558 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14559 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14560 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14563 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14564 # Extract the first word of "dlltool", so it can be a program name with args.
14565 set dummy dlltool; ac_word=$2
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14567 $as_echo_n "checking for $ac_word... " >&6; }
14568 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 case $DLLTOOL_FOR_TARGET in
14572 [\\/]* | ?:[\\/]*)
14573 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $gcc_cv_tool_dirs
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 break 2
14587 done
14588 done
14589 IFS=$as_save_IFS
14592 esac
14594 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14595 if test -n "$DLLTOOL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14597 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14605 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14608 if test -n "$DLLTOOL_FOR_TARGET"; then
14609 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14610 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14611 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14614 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14615 for ncn_progname in dlltool; do
14616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14617 set dummy ${ncn_progname}; ac_word=$2
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14619 $as_echo_n "checking for $ac_word... " >&6; }
14620 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 if test -n "$DLLTOOL_FOR_TARGET"; then
14624 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14625 else
14626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14627 for as_dir in $PATH
14629 IFS=$as_save_IFS
14630 test -z "$as_dir" && as_dir=.
14631 for ac_exec_ext in '' $ac_executable_extensions; do
14632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14633 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14635 break 2
14637 done
14638 done
14639 IFS=$as_save_IFS
14643 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14644 if test -n "$DLLTOOL_FOR_TARGET"; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14646 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14647 else
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14653 done
14656 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14657 for ncn_progname in dlltool; do
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14660 if test -x $with_build_time_tools/${ncn_progname}; then
14661 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14663 $as_echo "yes" >&6; }
14664 break
14665 else
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14667 $as_echo "no" >&6; }
14669 done
14672 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14673 for ncn_progname in dlltool; do
14674 if test -n "$ncn_target_tool_prefix"; then
14675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678 $as_echo_n "checking for $ac_word... " >&6; }
14679 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 if test -n "$DLLTOOL_FOR_TARGET"; then
14683 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14684 else
14685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14686 for as_dir in $PATH
14688 IFS=$as_save_IFS
14689 test -z "$as_dir" && as_dir=.
14690 for ac_exec_ext in '' $ac_executable_extensions; do
14691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14692 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14694 break 2
14696 done
14697 done
14698 IFS=$as_save_IFS
14702 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14703 if test -n "$DLLTOOL_FOR_TARGET"; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14705 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14706 else
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708 $as_echo "no" >&6; }
14713 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14715 set dummy ${ncn_progname}; ac_word=$2
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14717 $as_echo_n "checking for $ac_word... " >&6; }
14718 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 if test -n "$DLLTOOL_FOR_TARGET"; then
14722 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14723 else
14724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725 for as_dir in $PATH
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14731 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14733 break 2
14735 done
14736 done
14737 IFS=$as_save_IFS
14741 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14742 if test -n "$DLLTOOL_FOR_TARGET"; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14744 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14745 else
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14752 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14753 done
14756 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14757 set dummy dlltool
14758 if test $build = $target ; then
14759 DLLTOOL_FOR_TARGET="$2"
14760 else
14761 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14763 else
14764 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14767 else
14768 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14774 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14775 if test -n "$with_build_time_tools"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14777 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14778 if test -x $with_build_time_tools/dsymutil; then
14779 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14780 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14782 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14787 elif test $build != $host && test $have_gcc_for_target = yes; then
14788 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14789 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14790 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14793 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14794 # Extract the first word of "dsymutil", so it can be a program name with args.
14795 set dummy dsymutil; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801 case $DSYMUTIL_FOR_TARGET in
14802 [\\/]* | ?:[\\/]*)
14803 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $gcc_cv_tool_dirs
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14817 done
14818 done
14819 IFS=$as_save_IFS
14822 esac
14824 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14825 if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14827 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14835 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14838 if test -n "$DSYMUTIL_FOR_TARGET"; then
14839 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14840 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14841 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14844 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14845 for ncn_progname in dsymutil; do
14846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14847 set dummy ${ncn_progname}; ac_word=$2
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14849 $as_echo_n "checking for $ac_word... " >&6; }
14850 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 if test -n "$DSYMUTIL_FOR_TARGET"; then
14854 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14855 else
14856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14857 for as_dir in $PATH
14859 IFS=$as_save_IFS
14860 test -z "$as_dir" && as_dir=.
14861 for ac_exec_ext in '' $ac_executable_extensions; do
14862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14865 break 2
14867 done
14868 done
14869 IFS=$as_save_IFS
14873 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14874 if test -n "$DSYMUTIL_FOR_TARGET"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14876 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14877 else
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879 $as_echo "no" >&6; }
14883 done
14886 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14887 for ncn_progname in dsymutil; do
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14889 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14890 if test -x $with_build_time_tools/${ncn_progname}; then
14891 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893 $as_echo "yes" >&6; }
14894 break
14895 else
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897 $as_echo "no" >&6; }
14899 done
14902 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14903 for ncn_progname in dsymutil; do
14904 if test -n "$ncn_target_tool_prefix"; then
14905 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14906 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908 $as_echo_n "checking for $ac_word... " >&6; }
14909 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 if test -n "$DSYMUTIL_FOR_TARGET"; then
14913 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14914 else
14915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916 for as_dir in $PATH
14918 IFS=$as_save_IFS
14919 test -z "$as_dir" && as_dir=.
14920 for ac_exec_ext in '' $ac_executable_extensions; do
14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14922 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14924 break 2
14926 done
14927 done
14928 IFS=$as_save_IFS
14932 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14933 if test -n "$DSYMUTIL_FOR_TARGET"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14935 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14936 else
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938 $as_echo "no" >&6; }
14943 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14945 set dummy ${ncn_progname}; ac_word=$2
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14947 $as_echo_n "checking for $ac_word... " >&6; }
14948 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14951 if test -n "$DSYMUTIL_FOR_TARGET"; then
14952 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14953 else
14954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955 for as_dir in $PATH
14957 IFS=$as_save_IFS
14958 test -z "$as_dir" && as_dir=.
14959 for ac_exec_ext in '' $ac_executable_extensions; do
14960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14961 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14963 break 2
14965 done
14966 done
14967 IFS=$as_save_IFS
14971 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14972 if test -n "$DSYMUTIL_FOR_TARGET"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14974 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14975 else
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14977 $as_echo "no" >&6; }
14982 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14983 done
14986 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14987 set dummy dsymutil
14988 if test $build = $target ; then
14989 DSYMUTIL_FOR_TARGET="$2"
14990 else
14991 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14993 else
14994 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14997 else
14998 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15004 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15005 if test -n "$with_build_time_tools"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15007 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
15008 if test -x $with_build_time_tools/ld; then
15009 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15010 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15012 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15013 else
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 $as_echo "no" >&6; }
15017 elif test $build != $host && test $have_gcc_for_target = yes; then
15018 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15019 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15020 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15023 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15024 # Extract the first word of "ld", so it can be a program name with args.
15025 set dummy ld; ac_word=$2
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15027 $as_echo_n "checking for $ac_word... " >&6; }
15028 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15029 $as_echo_n "(cached) " >&6
15030 else
15031 case $LD_FOR_TARGET in
15032 [\\/]* | ?:[\\/]*)
15033 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $gcc_cv_tool_dirs
15039 IFS=$as_save_IFS
15040 test -z "$as_dir" && as_dir=.
15041 for ac_exec_ext in '' $ac_executable_extensions; do
15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15045 break 2
15047 done
15048 done
15049 IFS=$as_save_IFS
15052 esac
15054 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15055 if test -n "$LD_FOR_TARGET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15057 $as_echo "$LD_FOR_TARGET" >&6; }
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15065 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15068 if test -n "$LD_FOR_TARGET"; then
15069 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15070 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15071 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15074 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15075 for ncn_progname in ld; do
15076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15077 set dummy ${ncn_progname}; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 if test -n "$LD_FOR_TARGET"; then
15084 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15085 else
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15097 done
15098 done
15099 IFS=$as_save_IFS
15103 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15104 if test -n "$LD_FOR_TARGET"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15106 $as_echo "$LD_FOR_TARGET" >&6; }
15107 else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15113 done
15116 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15117 for ncn_progname in ld; do
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15119 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15120 if test -x $with_build_time_tools/${ncn_progname}; then
15121 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15123 $as_echo "yes" >&6; }
15124 break
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15129 done
15132 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15133 for ncn_progname in ld; do
15134 if test -n "$ncn_target_tool_prefix"; then
15135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15138 $as_echo_n "checking for $ac_word... " >&6; }
15139 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15140 $as_echo_n "(cached) " >&6
15141 else
15142 if test -n "$LD_FOR_TARGET"; then
15143 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15144 else
15145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146 for as_dir in $PATH
15148 IFS=$as_save_IFS
15149 test -z "$as_dir" && as_dir=.
15150 for ac_exec_ext in '' $ac_executable_extensions; do
15151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15152 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15154 break 2
15156 done
15157 done
15158 IFS=$as_save_IFS
15162 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15163 if test -n "$LD_FOR_TARGET"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15165 $as_echo "$LD_FOR_TARGET" >&6; }
15166 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15173 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15175 set dummy ${ncn_progname}; ac_word=$2
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15177 $as_echo_n "checking for $ac_word... " >&6; }
15178 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15179 $as_echo_n "(cached) " >&6
15180 else
15181 if test -n "$LD_FOR_TARGET"; then
15182 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15183 else
15184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185 for as_dir in $PATH
15187 IFS=$as_save_IFS
15188 test -z "$as_dir" && as_dir=.
15189 for ac_exec_ext in '' $ac_executable_extensions; do
15190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15191 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15193 break 2
15195 done
15196 done
15197 IFS=$as_save_IFS
15201 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15202 if test -n "$LD_FOR_TARGET"; then
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15204 $as_echo "$LD_FOR_TARGET" >&6; }
15205 else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15207 $as_echo "no" >&6; }
15212 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15213 done
15216 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15217 set dummy ld
15218 if test $build = $target ; then
15219 LD_FOR_TARGET="$2"
15220 else
15221 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15223 else
15224 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15227 else
15228 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15234 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15235 if test -n "$with_build_time_tools"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15237 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15238 if test -x $with_build_time_tools/lipo; then
15239 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15240 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15242 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15243 else
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15245 $as_echo "no" >&6; }
15247 elif test $build != $host && test $have_gcc_for_target = yes; then
15248 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15249 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15250 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15253 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15254 # Extract the first word of "lipo", so it can be a program name with args.
15255 set dummy lipo; ac_word=$2
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15257 $as_echo_n "checking for $ac_word... " >&6; }
15258 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15259 $as_echo_n "(cached) " >&6
15260 else
15261 case $LIPO_FOR_TARGET in
15262 [\\/]* | ?:[\\/]*)
15263 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $gcc_cv_tool_dirs
15269 IFS=$as_save_IFS
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15275 break 2
15277 done
15278 done
15279 IFS=$as_save_IFS
15282 esac
15284 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15285 if test -n "$LIPO_FOR_TARGET"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15287 $as_echo "$LIPO_FOR_TARGET" >&6; }
15288 else
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 $as_echo "no" >&6; }
15295 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15298 if test -n "$LIPO_FOR_TARGET"; then
15299 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15300 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15301 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15304 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15305 for ncn_progname in lipo; do
15306 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15307 set dummy ${ncn_progname}; ac_word=$2
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15309 $as_echo_n "checking for $ac_word... " >&6; }
15310 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 if test -n "$LIPO_FOR_TARGET"; then
15314 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15315 else
15316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 for as_dir in $PATH
15319 IFS=$as_save_IFS
15320 test -z "$as_dir" && as_dir=.
15321 for ac_exec_ext in '' $ac_executable_extensions; do
15322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15323 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15325 break 2
15327 done
15328 done
15329 IFS=$as_save_IFS
15333 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15334 if test -n "$LIPO_FOR_TARGET"; then
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15336 $as_echo "$LIPO_FOR_TARGET" >&6; }
15337 else
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339 $as_echo "no" >&6; }
15343 done
15346 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15347 for ncn_progname in lipo; do
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15349 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15350 if test -x $with_build_time_tools/${ncn_progname}; then
15351 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15353 $as_echo "yes" >&6; }
15354 break
15355 else
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357 $as_echo "no" >&6; }
15359 done
15362 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15363 for ncn_progname in lipo; do
15364 if test -n "$ncn_target_tool_prefix"; then
15365 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15366 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15368 $as_echo_n "checking for $ac_word... " >&6; }
15369 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 if test -n "$LIPO_FOR_TARGET"; then
15373 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15374 else
15375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376 for as_dir in $PATH
15378 IFS=$as_save_IFS
15379 test -z "$as_dir" && as_dir=.
15380 for ac_exec_ext in '' $ac_executable_extensions; do
15381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15382 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15384 break 2
15386 done
15387 done
15388 IFS=$as_save_IFS
15392 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15393 if test -n "$LIPO_FOR_TARGET"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15395 $as_echo "$LIPO_FOR_TARGET" >&6; }
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398 $as_echo "no" >&6; }
15403 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15405 set dummy ${ncn_progname}; ac_word=$2
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15407 $as_echo_n "checking for $ac_word... " >&6; }
15408 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 if test -n "$LIPO_FOR_TARGET"; then
15412 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15413 else
15414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415 for as_dir in $PATH
15417 IFS=$as_save_IFS
15418 test -z "$as_dir" && as_dir=.
15419 for ac_exec_ext in '' $ac_executable_extensions; do
15420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15421 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15423 break 2
15425 done
15426 done
15427 IFS=$as_save_IFS
15431 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15432 if test -n "$LIPO_FOR_TARGET"; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15434 $as_echo "$LIPO_FOR_TARGET" >&6; }
15435 else
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15437 $as_echo "no" >&6; }
15442 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15443 done
15446 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15447 set dummy lipo
15448 if test $build = $target ; then
15449 LIPO_FOR_TARGET="$2"
15450 else
15451 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15453 else
15454 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15457 else
15458 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15464 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15465 if test -n "$with_build_time_tools"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15467 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15468 if test -x $with_build_time_tools/nm; then
15469 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15470 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15472 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15473 else
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15475 $as_echo "no" >&6; }
15477 elif test $build != $host && test $have_gcc_for_target = yes; then
15478 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15479 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15480 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15483 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15484 # Extract the first word of "nm", so it can be a program name with args.
15485 set dummy nm; ac_word=$2
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15487 $as_echo_n "checking for $ac_word... " >&6; }
15488 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 case $NM_FOR_TARGET in
15492 [\\/]* | ?:[\\/]*)
15493 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 for as_dir in $gcc_cv_tool_dirs
15499 IFS=$as_save_IFS
15500 test -z "$as_dir" && as_dir=.
15501 for ac_exec_ext in '' $ac_executable_extensions; do
15502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15503 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15505 break 2
15507 done
15508 done
15509 IFS=$as_save_IFS
15512 esac
15514 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15515 if test -n "$NM_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15517 $as_echo "$NM_FOR_TARGET" >&6; }
15518 else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15525 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15528 if test -n "$NM_FOR_TARGET"; then
15529 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15530 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15531 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15534 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15535 for ncn_progname in nm; do
15536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15537 set dummy ${ncn_progname}; ac_word=$2
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15539 $as_echo_n "checking for $ac_word... " >&6; }
15540 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15541 $as_echo_n "(cached) " >&6
15542 else
15543 if test -n "$NM_FOR_TARGET"; then
15544 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15545 else
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 for as_dir in $PATH
15549 IFS=$as_save_IFS
15550 test -z "$as_dir" && as_dir=.
15551 for ac_exec_ext in '' $ac_executable_extensions; do
15552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15553 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15555 break 2
15557 done
15558 done
15559 IFS=$as_save_IFS
15563 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15564 if test -n "$NM_FOR_TARGET"; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15566 $as_echo "$NM_FOR_TARGET" >&6; }
15567 else
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15569 $as_echo "no" >&6; }
15573 done
15576 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15577 for ncn_progname in nm; do
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15579 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15580 if test -x $with_build_time_tools/${ncn_progname}; then
15581 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15583 $as_echo "yes" >&6; }
15584 break
15585 else
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15587 $as_echo "no" >&6; }
15589 done
15592 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15593 for ncn_progname in nm; do
15594 if test -n "$ncn_target_tool_prefix"; then
15595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598 $as_echo_n "checking for $ac_word... " >&6; }
15599 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 if test -n "$NM_FOR_TARGET"; then
15603 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15604 else
15605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606 for as_dir in $PATH
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
15610 for ac_exec_ext in '' $ac_executable_extensions; do
15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15612 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15614 break 2
15616 done
15617 done
15618 IFS=$as_save_IFS
15622 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15623 if test -n "$NM_FOR_TARGET"; then
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15625 $as_echo "$NM_FOR_TARGET" >&6; }
15626 else
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 $as_echo "no" >&6; }
15633 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15635 set dummy ${ncn_progname}; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 if test -n "$NM_FOR_TARGET"; then
15642 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15643 else
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15647 IFS=$as_save_IFS
15648 test -z "$as_dir" && as_dir=.
15649 for ac_exec_ext in '' $ac_executable_extensions; do
15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15653 break 2
15655 done
15656 done
15657 IFS=$as_save_IFS
15661 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15662 if test -n "$NM_FOR_TARGET"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15664 $as_echo "$NM_FOR_TARGET" >&6; }
15665 else
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15672 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15673 done
15676 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15677 set dummy nm
15678 if test $build = $target ; then
15679 NM_FOR_TARGET="$2"
15680 else
15681 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15683 else
15684 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15687 else
15688 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15694 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15695 if test -n "$with_build_time_tools"; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15697 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15698 if test -x $with_build_time_tools/objcopy; then
15699 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15700 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15702 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705 $as_echo "no" >&6; }
15707 elif test $build != $host && test $have_gcc_for_target = yes; then
15708 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15709 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15710 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15713 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15714 # Extract the first word of "objcopy", so it can be a program name with args.
15715 set dummy objcopy; ac_word=$2
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15717 $as_echo_n "checking for $ac_word... " >&6; }
15718 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15719 $as_echo_n "(cached) " >&6
15720 else
15721 case $OBJCOPY_FOR_TARGET in
15722 [\\/]* | ?:[\\/]*)
15723 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $gcc_cv_tool_dirs
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15737 done
15738 done
15739 IFS=$as_save_IFS
15742 esac
15744 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15745 if test -n "$OBJCOPY_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15747 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15755 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15758 if test -n "$OBJCOPY_FOR_TARGET"; then
15759 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15760 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15761 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15764 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15765 for ncn_progname in objcopy; do
15766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15767 set dummy ${ncn_progname}; ac_word=$2
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15769 $as_echo_n "checking for $ac_word... " >&6; }
15770 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 if test -n "$OBJCOPY_FOR_TARGET"; then
15774 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15775 else
15776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 for as_dir in $PATH
15779 IFS=$as_save_IFS
15780 test -z "$as_dir" && as_dir=.
15781 for ac_exec_ext in '' $ac_executable_extensions; do
15782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15785 break 2
15787 done
15788 done
15789 IFS=$as_save_IFS
15793 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15794 if test -n "$OBJCOPY_FOR_TARGET"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15796 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15797 else
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799 $as_echo "no" >&6; }
15803 done
15806 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15807 for ncn_progname in objcopy; do
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15809 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15810 if test -x $with_build_time_tools/${ncn_progname}; then
15811 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814 break
15815 else
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817 $as_echo "no" >&6; }
15819 done
15822 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15823 for ncn_progname in objcopy; do
15824 if test -n "$ncn_target_tool_prefix"; then
15825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828 $as_echo_n "checking for $ac_word... " >&6; }
15829 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 if test -n "$OBJCOPY_FOR_TARGET"; then
15833 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15834 else
15835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836 for as_dir in $PATH
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15846 done
15847 done
15848 IFS=$as_save_IFS
15852 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15853 if test -n "$OBJCOPY_FOR_TARGET"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15855 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15856 else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15863 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15865 set dummy ${ncn_progname}; ac_word=$2
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15867 $as_echo_n "checking for $ac_word... " >&6; }
15868 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15871 if test -n "$OBJCOPY_FOR_TARGET"; then
15872 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15873 else
15874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15877 IFS=$as_save_IFS
15878 test -z "$as_dir" && as_dir=.
15879 for ac_exec_ext in '' $ac_executable_extensions; do
15880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15881 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15883 break 2
15885 done
15886 done
15887 IFS=$as_save_IFS
15891 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15892 if test -n "$OBJCOPY_FOR_TARGET"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15894 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15895 else
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15897 $as_echo "no" >&6; }
15902 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15903 done
15906 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15907 set dummy objcopy
15908 if test $build = $target ; then
15909 OBJCOPY_FOR_TARGET="$2"
15910 else
15911 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15913 else
15914 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15917 else
15918 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15924 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15925 if test -n "$with_build_time_tools"; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15927 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15928 if test -x $with_build_time_tools/objdump; then
15929 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15930 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15932 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15933 else
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935 $as_echo "no" >&6; }
15937 elif test $build != $host && test $have_gcc_for_target = yes; then
15938 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15939 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15940 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15943 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15944 # Extract the first word of "objdump", so it can be a program name with args.
15945 set dummy objdump; ac_word=$2
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15947 $as_echo_n "checking for $ac_word... " >&6; }
15948 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 case $OBJDUMP_FOR_TARGET in
15952 [\\/]* | ?:[\\/]*)
15953 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $gcc_cv_tool_dirs
15959 IFS=$as_save_IFS
15960 test -z "$as_dir" && as_dir=.
15961 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15965 break 2
15967 done
15968 done
15969 IFS=$as_save_IFS
15972 esac
15974 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15975 if test -n "$OBJDUMP_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15977 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15985 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15988 if test -n "$OBJDUMP_FOR_TARGET"; then
15989 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15990 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15991 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15994 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15995 for ncn_progname in objdump; do
15996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15997 set dummy ${ncn_progname}; ac_word=$2
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15999 $as_echo_n "checking for $ac_word... " >&6; }
16000 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 if test -n "$OBJDUMP_FOR_TARGET"; then
16004 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16005 else
16006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16007 for as_dir in $PATH
16009 IFS=$as_save_IFS
16010 test -z "$as_dir" && as_dir=.
16011 for ac_exec_ext in '' $ac_executable_extensions; do
16012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16013 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 break 2
16017 done
16018 done
16019 IFS=$as_save_IFS
16023 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16024 if test -n "$OBJDUMP_FOR_TARGET"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16026 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16027 else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16033 done
16036 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16037 for ncn_progname in objdump; do
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16039 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16040 if test -x $with_build_time_tools/${ncn_progname}; then
16041 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16043 $as_echo "yes" >&6; }
16044 break
16045 else
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047 $as_echo "no" >&6; }
16049 done
16052 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16053 for ncn_progname in objdump; do
16054 if test -n "$ncn_target_tool_prefix"; then
16055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16056 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16058 $as_echo_n "checking for $ac_word... " >&6; }
16059 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16060 $as_echo_n "(cached) " >&6
16061 else
16062 if test -n "$OBJDUMP_FOR_TARGET"; then
16063 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16064 else
16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066 for as_dir in $PATH
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
16070 for ac_exec_ext in '' $ac_executable_extensions; do
16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16072 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16074 break 2
16076 done
16077 done
16078 IFS=$as_save_IFS
16082 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16083 if test -n "$OBJDUMP_FOR_TARGET"; then
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16085 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16086 else
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16093 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16095 set dummy ${ncn_progname}; ac_word=$2
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16097 $as_echo_n "checking for $ac_word... " >&6; }
16098 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16099 $as_echo_n "(cached) " >&6
16100 else
16101 if test -n "$OBJDUMP_FOR_TARGET"; then
16102 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16103 else
16104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16105 for as_dir in $PATH
16107 IFS=$as_save_IFS
16108 test -z "$as_dir" && as_dir=.
16109 for ac_exec_ext in '' $ac_executable_extensions; do
16110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16111 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16113 break 2
16115 done
16116 done
16117 IFS=$as_save_IFS
16121 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16122 if test -n "$OBJDUMP_FOR_TARGET"; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16124 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16125 else
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16127 $as_echo "no" >&6; }
16132 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16133 done
16136 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16137 set dummy objdump
16138 if test $build = $target ; then
16139 OBJDUMP_FOR_TARGET="$2"
16140 else
16141 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16143 else
16144 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16147 else
16148 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16154 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16155 if test -n "$with_build_time_tools"; then
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16157 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16158 if test -x $with_build_time_tools/otool; then
16159 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16160 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16162 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16163 else
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16165 $as_echo "no" >&6; }
16167 elif test $build != $host && test $have_gcc_for_target = yes; then
16168 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16169 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16170 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16173 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16174 # Extract the first word of "otool", so it can be a program name with args.
16175 set dummy otool; ac_word=$2
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16177 $as_echo_n "checking for $ac_word... " >&6; }
16178 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16179 $as_echo_n "(cached) " >&6
16180 else
16181 case $OTOOL_FOR_TARGET in
16182 [\\/]* | ?:[\\/]*)
16183 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187 for as_dir in $gcc_cv_tool_dirs
16189 IFS=$as_save_IFS
16190 test -z "$as_dir" && as_dir=.
16191 for ac_exec_ext in '' $ac_executable_extensions; do
16192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16193 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16195 break 2
16197 done
16198 done
16199 IFS=$as_save_IFS
16202 esac
16204 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16205 if test -n "$OTOOL_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16207 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16215 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16218 if test -n "$OTOOL_FOR_TARGET"; then
16219 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16220 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16221 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16224 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16225 for ncn_progname in otool; do
16226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16227 set dummy ${ncn_progname}; ac_word=$2
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16229 $as_echo_n "checking for $ac_word... " >&6; }
16230 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16231 $as_echo_n "(cached) " >&6
16232 else
16233 if test -n "$OTOOL_FOR_TARGET"; then
16234 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16235 else
16236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237 for as_dir in $PATH
16239 IFS=$as_save_IFS
16240 test -z "$as_dir" && as_dir=.
16241 for ac_exec_ext in '' $ac_executable_extensions; do
16242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16245 break 2
16247 done
16248 done
16249 IFS=$as_save_IFS
16253 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16254 if test -n "$OTOOL_FOR_TARGET"; then
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16256 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16257 else
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259 $as_echo "no" >&6; }
16263 done
16266 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16267 for ncn_progname in otool; do
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16269 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16270 if test -x $with_build_time_tools/${ncn_progname}; then
16271 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16273 $as_echo "yes" >&6; }
16274 break
16275 else
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16277 $as_echo "no" >&6; }
16279 done
16282 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16283 for ncn_progname in otool; do
16284 if test -n "$ncn_target_tool_prefix"; then
16285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16286 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288 $as_echo_n "checking for $ac_word... " >&6; }
16289 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292 if test -n "$OTOOL_FOR_TARGET"; then
16293 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16294 else
16295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296 for as_dir in $PATH
16298 IFS=$as_save_IFS
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 break 2
16306 done
16307 done
16308 IFS=$as_save_IFS
16312 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16313 if test -n "$OTOOL_FOR_TARGET"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16315 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16316 else
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318 $as_echo "no" >&6; }
16323 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16325 set dummy ${ncn_progname}; ac_word=$2
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16327 $as_echo_n "checking for $ac_word... " >&6; }
16328 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 if test -n "$OTOOL_FOR_TARGET"; then
16332 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16333 else
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335 for as_dir in $PATH
16337 IFS=$as_save_IFS
16338 test -z "$as_dir" && as_dir=.
16339 for ac_exec_ext in '' $ac_executable_extensions; do
16340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16341 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16343 break 2
16345 done
16346 done
16347 IFS=$as_save_IFS
16351 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16352 if test -n "$OTOOL_FOR_TARGET"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16354 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16355 else
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16362 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16363 done
16366 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16367 set dummy otool
16368 if test $build = $target ; then
16369 OTOOL_FOR_TARGET="$2"
16370 else
16371 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16373 else
16374 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16377 else
16378 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16384 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16385 if test -n "$with_build_time_tools"; then
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16387 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16388 if test -x $with_build_time_tools/ranlib; then
16389 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16390 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16392 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16393 else
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16395 $as_echo "no" >&6; }
16397 elif test $build != $host && test $have_gcc_for_target = yes; then
16398 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16399 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16400 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16403 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16404 # Extract the first word of "ranlib", so it can be a program name with args.
16405 set dummy ranlib; ac_word=$2
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16407 $as_echo_n "checking for $ac_word... " >&6; }
16408 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 case $RANLIB_FOR_TARGET in
16412 [\\/]* | ?:[\\/]*)
16413 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $gcc_cv_tool_dirs
16419 IFS=$as_save_IFS
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16425 break 2
16427 done
16428 done
16429 IFS=$as_save_IFS
16432 esac
16434 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16435 if test -n "$RANLIB_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16437 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440 $as_echo "no" >&6; }
16445 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16448 if test -n "$RANLIB_FOR_TARGET"; then
16449 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16450 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16451 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16454 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16455 for ncn_progname in ranlib; do
16456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16457 set dummy ${ncn_progname}; ac_word=$2
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16459 $as_echo_n "checking for $ac_word... " >&6; }
16460 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16461 $as_echo_n "(cached) " >&6
16462 else
16463 if test -n "$RANLIB_FOR_TARGET"; then
16464 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16465 else
16466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16467 for as_dir in $PATH
16469 IFS=$as_save_IFS
16470 test -z "$as_dir" && as_dir=.
16471 for ac_exec_ext in '' $ac_executable_extensions; do
16472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16473 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16475 break 2
16477 done
16478 done
16479 IFS=$as_save_IFS
16483 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16484 if test -n "$RANLIB_FOR_TARGET"; then
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16486 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16487 else
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16489 $as_echo "no" >&6; }
16493 done
16496 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16497 for ncn_progname in ranlib; do
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16499 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16500 if test -x $with_build_time_tools/${ncn_progname}; then
16501 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16503 $as_echo "yes" >&6; }
16504 break
16505 else
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16509 done
16512 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16513 for ncn_progname in ranlib; do
16514 if test -n "$ncn_target_tool_prefix"; then
16515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518 $as_echo_n "checking for $ac_word... " >&6; }
16519 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16520 $as_echo_n "(cached) " >&6
16521 else
16522 if test -n "$RANLIB_FOR_TARGET"; then
16523 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16524 else
16525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in $PATH
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
16530 for ac_exec_ext in '' $ac_executable_extensions; do
16531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16532 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16534 break 2
16536 done
16537 done
16538 IFS=$as_save_IFS
16542 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16543 if test -n "$RANLIB_FOR_TARGET"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16545 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16546 else
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 $as_echo "no" >&6; }
16553 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16555 set dummy ${ncn_progname}; ac_word=$2
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16557 $as_echo_n "checking for $ac_word... " >&6; }
16558 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16559 $as_echo_n "(cached) " >&6
16560 else
16561 if test -n "$RANLIB_FOR_TARGET"; then
16562 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16563 else
16564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $PATH
16567 IFS=$as_save_IFS
16568 test -z "$as_dir" && as_dir=.
16569 for ac_exec_ext in '' $ac_executable_extensions; do
16570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16573 break 2
16575 done
16576 done
16577 IFS=$as_save_IFS
16581 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16582 if test -n "$RANLIB_FOR_TARGET"; then
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16584 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16585 else
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16587 $as_echo "no" >&6; }
16592 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16593 done
16596 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16597 set dummy ranlib
16598 if test $build = $target ; then
16599 RANLIB_FOR_TARGET="$2"
16600 else
16601 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16603 else
16604 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16607 else
16608 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16614 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16615 if test -n "$with_build_time_tools"; then
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16617 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16618 if test -x $with_build_time_tools/readelf; then
16619 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16620 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16622 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16623 else
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625 $as_echo "no" >&6; }
16627 elif test $build != $host && test $have_gcc_for_target = yes; then
16628 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16629 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16630 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16633 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16634 # Extract the first word of "readelf", so it can be a program name with args.
16635 set dummy readelf; ac_word=$2
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637 $as_echo_n "checking for $ac_word... " >&6; }
16638 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 case $READELF_FOR_TARGET in
16642 [\\/]* | ?:[\\/]*)
16643 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $gcc_cv_tool_dirs
16649 IFS=$as_save_IFS
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655 break 2
16657 done
16658 done
16659 IFS=$as_save_IFS
16662 esac
16664 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16665 if test -n "$READELF_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16667 $as_echo "$READELF_FOR_TARGET" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16675 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16678 if test -n "$READELF_FOR_TARGET"; then
16679 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16680 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16681 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16684 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16685 for ncn_progname in readelf; do
16686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16687 set dummy ${ncn_progname}; ac_word=$2
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16689 $as_echo_n "checking for $ac_word... " >&6; }
16690 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16691 $as_echo_n "(cached) " >&6
16692 else
16693 if test -n "$READELF_FOR_TARGET"; then
16694 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16695 else
16696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16697 for as_dir in $PATH
16699 IFS=$as_save_IFS
16700 test -z "$as_dir" && as_dir=.
16701 for ac_exec_ext in '' $ac_executable_extensions; do
16702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16703 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16705 break 2
16707 done
16708 done
16709 IFS=$as_save_IFS
16713 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16714 if test -n "$READELF_FOR_TARGET"; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16716 $as_echo "$READELF_FOR_TARGET" >&6; }
16717 else
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719 $as_echo "no" >&6; }
16723 done
16726 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16727 for ncn_progname in readelf; do
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16729 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16730 if test -x $with_build_time_tools/${ncn_progname}; then
16731 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733 $as_echo "yes" >&6; }
16734 break
16735 else
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737 $as_echo "no" >&6; }
16739 done
16742 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16743 for ncn_progname in readelf; do
16744 if test -n "$ncn_target_tool_prefix"; then
16745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16746 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16748 $as_echo_n "checking for $ac_word... " >&6; }
16749 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16750 $as_echo_n "(cached) " >&6
16751 else
16752 if test -n "$READELF_FOR_TARGET"; then
16753 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16754 else
16755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756 for as_dir in $PATH
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
16760 for ac_exec_ext in '' $ac_executable_extensions; do
16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16762 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16764 break 2
16766 done
16767 done
16768 IFS=$as_save_IFS
16772 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16773 if test -n "$READELF_FOR_TARGET"; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16775 $as_echo "$READELF_FOR_TARGET" >&6; }
16776 else
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778 $as_echo "no" >&6; }
16783 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16785 set dummy ${ncn_progname}; ac_word=$2
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16787 $as_echo_n "checking for $ac_word... " >&6; }
16788 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 if test -n "$READELF_FOR_TARGET"; then
16792 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16793 else
16794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16795 for as_dir in $PATH
16797 IFS=$as_save_IFS
16798 test -z "$as_dir" && as_dir=.
16799 for ac_exec_ext in '' $ac_executable_extensions; do
16800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16801 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16803 break 2
16805 done
16806 done
16807 IFS=$as_save_IFS
16811 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16812 if test -n "$READELF_FOR_TARGET"; then
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16814 $as_echo "$READELF_FOR_TARGET" >&6; }
16815 else
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16817 $as_echo "no" >&6; }
16822 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16823 done
16826 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16827 set dummy readelf
16828 if test $build = $target ; then
16829 READELF_FOR_TARGET="$2"
16830 else
16831 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16833 else
16834 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16837 else
16838 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16844 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16845 if test -n "$with_build_time_tools"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16847 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16848 if test -x $with_build_time_tools/strip; then
16849 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16850 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16852 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16853 else
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16855 $as_echo "no" >&6; }
16857 elif test $build != $host && test $have_gcc_for_target = yes; then
16858 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16859 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16860 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16863 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16864 # Extract the first word of "strip", so it can be a program name with args.
16865 set dummy strip; ac_word=$2
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16867 $as_echo_n "checking for $ac_word... " >&6; }
16868 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16869 $as_echo_n "(cached) " >&6
16870 else
16871 case $STRIP_FOR_TARGET in
16872 [\\/]* | ?:[\\/]*)
16873 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877 for as_dir in $gcc_cv_tool_dirs
16879 IFS=$as_save_IFS
16880 test -z "$as_dir" && as_dir=.
16881 for ac_exec_ext in '' $ac_executable_extensions; do
16882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16883 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16885 break 2
16887 done
16888 done
16889 IFS=$as_save_IFS
16892 esac
16894 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16895 if test -n "$STRIP_FOR_TARGET"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16897 $as_echo "$STRIP_FOR_TARGET" >&6; }
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900 $as_echo "no" >&6; }
16905 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16908 if test -n "$STRIP_FOR_TARGET"; then
16909 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16910 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16911 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16914 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16915 for ncn_progname in strip; do
16916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16917 set dummy ${ncn_progname}; ac_word=$2
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16919 $as_echo_n "checking for $ac_word... " >&6; }
16920 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16921 $as_echo_n "(cached) " >&6
16922 else
16923 if test -n "$STRIP_FOR_TARGET"; then
16924 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16925 else
16926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16927 for as_dir in $PATH
16929 IFS=$as_save_IFS
16930 test -z "$as_dir" && as_dir=.
16931 for ac_exec_ext in '' $ac_executable_extensions; do
16932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16933 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16935 break 2
16937 done
16938 done
16939 IFS=$as_save_IFS
16943 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16944 if test -n "$STRIP_FOR_TARGET"; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16946 $as_echo "$STRIP_FOR_TARGET" >&6; }
16947 else
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949 $as_echo "no" >&6; }
16953 done
16956 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16957 for ncn_progname in strip; do
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16959 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16960 if test -x $with_build_time_tools/${ncn_progname}; then
16961 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16963 $as_echo "yes" >&6; }
16964 break
16965 else
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16969 done
16972 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16973 for ncn_progname in strip; do
16974 if test -n "$ncn_target_tool_prefix"; then
16975 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16976 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978 $as_echo_n "checking for $ac_word... " >&6; }
16979 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 if test -n "$STRIP_FOR_TARGET"; then
16983 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16984 else
16985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986 for as_dir in $PATH
16988 IFS=$as_save_IFS
16989 test -z "$as_dir" && as_dir=.
16990 for ac_exec_ext in '' $ac_executable_extensions; do
16991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16992 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16994 break 2
16996 done
16997 done
16998 IFS=$as_save_IFS
17002 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17003 if test -n "$STRIP_FOR_TARGET"; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17005 $as_echo "$STRIP_FOR_TARGET" >&6; }
17006 else
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008 $as_echo "no" >&6; }
17013 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17015 set dummy ${ncn_progname}; ac_word=$2
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17017 $as_echo_n "checking for $ac_word... " >&6; }
17018 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17019 $as_echo_n "(cached) " >&6
17020 else
17021 if test -n "$STRIP_FOR_TARGET"; then
17022 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17023 else
17024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17025 for as_dir in $PATH
17027 IFS=$as_save_IFS
17028 test -z "$as_dir" && as_dir=.
17029 for ac_exec_ext in '' $ac_executable_extensions; do
17030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17031 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17033 break 2
17035 done
17036 done
17037 IFS=$as_save_IFS
17041 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17042 if test -n "$STRIP_FOR_TARGET"; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17044 $as_echo "$STRIP_FOR_TARGET" >&6; }
17045 else
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17047 $as_echo "no" >&6; }
17052 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17053 done
17056 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17057 set dummy strip
17058 if test $build = $target ; then
17059 STRIP_FOR_TARGET="$2"
17060 else
17061 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17063 else
17064 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17067 else
17068 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17074 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17075 if test -n "$with_build_time_tools"; then
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17077 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17078 if test -x $with_build_time_tools/windres; then
17079 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17080 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17082 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17083 else
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085 $as_echo "no" >&6; }
17087 elif test $build != $host && test $have_gcc_for_target = yes; then
17088 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17089 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17090 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17093 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17094 # Extract the first word of "windres", so it can be a program name with args.
17095 set dummy windres; ac_word=$2
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097 $as_echo_n "checking for $ac_word... " >&6; }
17098 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17099 $as_echo_n "(cached) " >&6
17100 else
17101 case $WINDRES_FOR_TARGET in
17102 [\\/]* | ?:[\\/]*)
17103 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $gcc_cv_tool_dirs
17109 IFS=$as_save_IFS
17110 test -z "$as_dir" && as_dir=.
17111 for ac_exec_ext in '' $ac_executable_extensions; do
17112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17113 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17115 break 2
17117 done
17118 done
17119 IFS=$as_save_IFS
17122 esac
17124 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17125 if test -n "$WINDRES_FOR_TARGET"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17127 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17128 else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130 $as_echo "no" >&6; }
17135 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17138 if test -n "$WINDRES_FOR_TARGET"; then
17139 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17140 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17141 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17144 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17145 for ncn_progname in windres; do
17146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17147 set dummy ${ncn_progname}; ac_word=$2
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17149 $as_echo_n "checking for $ac_word... " >&6; }
17150 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17151 $as_echo_n "(cached) " >&6
17152 else
17153 if test -n "$WINDRES_FOR_TARGET"; then
17154 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17155 else
17156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17157 for as_dir in $PATH
17159 IFS=$as_save_IFS
17160 test -z "$as_dir" && as_dir=.
17161 for ac_exec_ext in '' $ac_executable_extensions; do
17162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17163 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17165 break 2
17167 done
17168 done
17169 IFS=$as_save_IFS
17173 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17174 if test -n "$WINDRES_FOR_TARGET"; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17176 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17177 else
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17183 done
17186 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17187 for ncn_progname in windres; do
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17189 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17190 if test -x $with_build_time_tools/${ncn_progname}; then
17191 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17193 $as_echo "yes" >&6; }
17194 break
17195 else
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197 $as_echo "no" >&6; }
17199 done
17202 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17203 for ncn_progname in windres; do
17204 if test -n "$ncn_target_tool_prefix"; then
17205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17208 $as_echo_n "checking for $ac_word... " >&6; }
17209 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17210 $as_echo_n "(cached) " >&6
17211 else
17212 if test -n "$WINDRES_FOR_TARGET"; then
17213 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17214 else
17215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17216 for as_dir in $PATH
17218 IFS=$as_save_IFS
17219 test -z "$as_dir" && as_dir=.
17220 for ac_exec_ext in '' $ac_executable_extensions; do
17221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17222 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17224 break 2
17226 done
17227 done
17228 IFS=$as_save_IFS
17232 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17233 if test -n "$WINDRES_FOR_TARGET"; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17235 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17236 else
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17238 $as_echo "no" >&6; }
17243 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17245 set dummy ${ncn_progname}; ac_word=$2
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17247 $as_echo_n "checking for $ac_word... " >&6; }
17248 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 if test -n "$WINDRES_FOR_TARGET"; then
17252 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17253 else
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in $PATH
17257 IFS=$as_save_IFS
17258 test -z "$as_dir" && as_dir=.
17259 for ac_exec_ext in '' $ac_executable_extensions; do
17260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17261 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17263 break 2
17265 done
17266 done
17267 IFS=$as_save_IFS
17271 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17272 if test -n "$WINDRES_FOR_TARGET"; then
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17274 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17275 else
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17277 $as_echo "no" >&6; }
17282 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17283 done
17286 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17287 set dummy windres
17288 if test $build = $target ; then
17289 WINDRES_FOR_TARGET="$2"
17290 else
17291 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17293 else
17294 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17297 else
17298 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17304 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17305 if test -n "$with_build_time_tools"; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17307 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17308 if test -x $with_build_time_tools/windmc; then
17309 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17310 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17312 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17313 else
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315 $as_echo "no" >&6; }
17317 elif test $build != $host && test $have_gcc_for_target = yes; then
17318 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17319 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17320 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17323 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17324 # Extract the first word of "windmc", so it can be a program name with args.
17325 set dummy windmc; ac_word=$2
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17327 $as_echo_n "checking for $ac_word... " >&6; }
17328 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17329 $as_echo_n "(cached) " >&6
17330 else
17331 case $WINDMC_FOR_TARGET in
17332 [\\/]* | ?:[\\/]*)
17333 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337 for as_dir in $gcc_cv_tool_dirs
17339 IFS=$as_save_IFS
17340 test -z "$as_dir" && as_dir=.
17341 for ac_exec_ext in '' $ac_executable_extensions; do
17342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17343 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17345 break 2
17347 done
17348 done
17349 IFS=$as_save_IFS
17352 esac
17354 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17355 if test -n "$WINDMC_FOR_TARGET"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17357 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17365 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17368 if test -n "$WINDMC_FOR_TARGET"; then
17369 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17370 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17371 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17374 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17375 for ncn_progname in windmc; do
17376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17377 set dummy ${ncn_progname}; ac_word=$2
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379 $as_echo_n "checking for $ac_word... " >&6; }
17380 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17381 $as_echo_n "(cached) " >&6
17382 else
17383 if test -n "$WINDMC_FOR_TARGET"; then
17384 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17385 else
17386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17387 for as_dir in $PATH
17389 IFS=$as_save_IFS
17390 test -z "$as_dir" && as_dir=.
17391 for ac_exec_ext in '' $ac_executable_extensions; do
17392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17393 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17395 break 2
17397 done
17398 done
17399 IFS=$as_save_IFS
17403 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17404 if test -n "$WINDMC_FOR_TARGET"; then
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17406 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17407 else
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409 $as_echo "no" >&6; }
17413 done
17416 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17417 for ncn_progname in windmc; do
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17419 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17420 if test -x $with_build_time_tools/${ncn_progname}; then
17421 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17423 $as_echo "yes" >&6; }
17424 break
17425 else
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17429 done
17432 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17433 for ncn_progname in windmc; do
17434 if test -n "$ncn_target_tool_prefix"; then
17435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17436 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17438 $as_echo_n "checking for $ac_word... " >&6; }
17439 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442 if test -n "$WINDMC_FOR_TARGET"; then
17443 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17444 else
17445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17446 for as_dir in $PATH
17448 IFS=$as_save_IFS
17449 test -z "$as_dir" && as_dir=.
17450 for ac_exec_ext in '' $ac_executable_extensions; do
17451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17452 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17454 break 2
17456 done
17457 done
17458 IFS=$as_save_IFS
17462 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17463 if test -n "$WINDMC_FOR_TARGET"; then
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17465 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17466 else
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17468 $as_echo "no" >&6; }
17473 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17475 set dummy ${ncn_progname}; ac_word=$2
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17477 $as_echo_n "checking for $ac_word... " >&6; }
17478 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17479 $as_echo_n "(cached) " >&6
17480 else
17481 if test -n "$WINDMC_FOR_TARGET"; then
17482 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17483 else
17484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17485 for as_dir in $PATH
17487 IFS=$as_save_IFS
17488 test -z "$as_dir" && as_dir=.
17489 for ac_exec_ext in '' $ac_executable_extensions; do
17490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17491 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17493 break 2
17495 done
17496 done
17497 IFS=$as_save_IFS
17501 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17502 if test -n "$WINDMC_FOR_TARGET"; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17504 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17505 else
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17507 $as_echo "no" >&6; }
17512 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17513 done
17516 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17517 set dummy windmc
17518 if test $build = $target ; then
17519 WINDMC_FOR_TARGET="$2"
17520 else
17521 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17523 else
17524 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17527 else
17528 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17532 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17535 $as_echo_n "checking where to find the target ar... " >&6; }
17536 if test "x${build}" != "x${host}" ; then
17537 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17538 # We already found the complete path
17539 ac_dir=`dirname $AR_FOR_TARGET`
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17541 $as_echo "pre-installed in $ac_dir" >&6; }
17542 else
17543 # Canadian cross, just use what we found
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17545 $as_echo "pre-installed" >&6; }
17547 else
17548 ok=yes
17549 case " ${configdirs} " in
17550 *" binutils "*) ;;
17551 *) ok=no ;;
17552 esac
17554 if test $ok = yes; then
17555 # An in-tree tool is available and we can use it
17556 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17558 $as_echo "just compiled" >&6; }
17559 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17560 # We already found the complete path
17561 ac_dir=`dirname $AR_FOR_TARGET`
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17563 $as_echo "pre-installed in $ac_dir" >&6; }
17564 elif test "x$target" = "x$host"; then
17565 # We can use an host tool
17566 AR_FOR_TARGET='$(AR)'
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17568 $as_echo "host tool" >&6; }
17569 else
17570 # We need a cross tool
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17572 $as_echo "pre-installed" >&6; }
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17577 $as_echo_n "checking where to find the target as... " >&6; }
17578 if test "x${build}" != "x${host}" ; then
17579 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17580 # We already found the complete path
17581 ac_dir=`dirname $AS_FOR_TARGET`
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17583 $as_echo "pre-installed in $ac_dir" >&6; }
17584 else
17585 # Canadian cross, just use what we found
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17587 $as_echo "pre-installed" >&6; }
17589 else
17590 ok=yes
17591 case " ${configdirs} " in
17592 *" gas "*) ;;
17593 *) ok=no ;;
17594 esac
17596 if test $ok = yes; then
17597 # An in-tree tool is available and we can use it
17598 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17600 $as_echo "just compiled" >&6; }
17601 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $AS_FOR_TARGET`
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605 $as_echo "pre-installed in $ac_dir" >&6; }
17606 elif test "x$target" = "x$host"; then
17607 # We can use an host tool
17608 AS_FOR_TARGET='$(AS)'
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17610 $as_echo "host tool" >&6; }
17611 else
17612 # We need a cross tool
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17614 $as_echo "pre-installed" >&6; }
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17619 $as_echo_n "checking where to find the target cc... " >&6; }
17620 if test "x${build}" != "x${host}" ; then
17621 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17622 # We already found the complete path
17623 ac_dir=`dirname $CC_FOR_TARGET`
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17625 $as_echo "pre-installed in $ac_dir" >&6; }
17626 else
17627 # Canadian cross, just use what we found
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17629 $as_echo "pre-installed" >&6; }
17631 else
17632 ok=yes
17633 case " ${configdirs} " in
17634 *" gcc "*) ;;
17635 *) ok=no ;;
17636 esac
17638 if test $ok = yes; then
17639 # An in-tree tool is available and we can use it
17640 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17642 $as_echo "just compiled" >&6; }
17643 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $CC_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648 elif test "x$target" = "x$host"; then
17649 # We can use an host tool
17650 CC_FOR_TARGET='$(CC)'
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17652 $as_echo "host tool" >&6; }
17653 else
17654 # We need a cross tool
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17656 $as_echo "pre-installed" >&6; }
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17661 $as_echo_n "checking where to find the target c++... " >&6; }
17662 if test "x${build}" != "x${host}" ; then
17663 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17664 # We already found the complete path
17665 ac_dir=`dirname $CXX_FOR_TARGET`
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17667 $as_echo "pre-installed in $ac_dir" >&6; }
17668 else
17669 # Canadian cross, just use what we found
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671 $as_echo "pre-installed" >&6; }
17673 else
17674 ok=yes
17675 case " ${configdirs} " in
17676 *" gcc "*) ;;
17677 *) ok=no ;;
17678 esac
17679 case ,${enable_languages}, in
17680 *,c++,*) ;;
17681 *) ok=no ;;
17682 esac
17683 if test $ok = yes; then
17684 # An in-tree tool is available and we can use it
17685 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'
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17687 $as_echo "just compiled" >&6; }
17688 elif 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 elif test "x$target" = "x$host"; then
17694 # We can use an host tool
17695 CXX_FOR_TARGET='$(CXX)'
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17697 $as_echo "host tool" >&6; }
17698 else
17699 # We need a cross tool
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17701 $as_echo "pre-installed" >&6; }
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17706 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17707 if test "x${build}" != "x${host}" ; then
17708 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17709 # We already found the complete path
17710 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17712 $as_echo "pre-installed in $ac_dir" >&6; }
17713 else
17714 # Canadian cross, just use what we found
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17716 $as_echo "pre-installed" >&6; }
17718 else
17719 ok=yes
17720 case " ${configdirs} " in
17721 *" gcc "*) ;;
17722 *) ok=no ;;
17723 esac
17724 case ,${enable_languages}, in
17725 *,c++,*) ;;
17726 *) ok=no ;;
17727 esac
17728 if test $ok = yes; then
17729 # An in-tree tool is available and we can use it
17730 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'
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17732 $as_echo "just compiled" >&6; }
17733 elif 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 elif test "x$target" = "x$host"; then
17739 # We can use an host tool
17740 RAW_CXX_FOR_TARGET='$(CXX)'
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17742 $as_echo "host tool" >&6; }
17743 else
17744 # We need a cross tool
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17746 $as_echo "pre-installed" >&6; }
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17751 $as_echo_n "checking where to find the target dlltool... " >&6; }
17752 if test "x${build}" != "x${host}" ; then
17753 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17754 # We already found the complete path
17755 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17757 $as_echo "pre-installed in $ac_dir" >&6; }
17758 else
17759 # Canadian cross, just use what we found
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17761 $as_echo "pre-installed" >&6; }
17763 else
17764 ok=yes
17765 case " ${configdirs} " in
17766 *" binutils "*) ;;
17767 *) ok=no ;;
17768 esac
17770 if test $ok = yes; then
17771 # An in-tree tool is available and we can use it
17772 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17774 $as_echo "just compiled" >&6; }
17775 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17776 # We already found the complete path
17777 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17779 $as_echo "pre-installed in $ac_dir" >&6; }
17780 elif test "x$target" = "x$host"; then
17781 # We can use an host tool
17782 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17784 $as_echo "host tool" >&6; }
17785 else
17786 # We need a cross tool
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17788 $as_echo "pre-installed" >&6; }
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17793 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17794 if test "x${build}" != "x${host}" ; then
17795 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17796 # We already found the complete path
17797 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17799 $as_echo "pre-installed in $ac_dir" >&6; }
17800 else
17801 # Canadian cross, just use what we found
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17803 $as_echo "pre-installed" >&6; }
17805 else
17806 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17807 # We already found the complete path
17808 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17810 $as_echo "pre-installed in $ac_dir" >&6; }
17811 elif test "x$target" = "x$host"; then
17812 # We can use an host tool
17813 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17815 $as_echo "host tool" >&6; }
17816 else
17817 # We need a cross tool
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17819 $as_echo "pre-installed" >&6; }
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17824 $as_echo_n "checking where to find the target gcc... " >&6; }
17825 if test "x${build}" != "x${host}" ; then
17826 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17827 # We already found the complete path
17828 ac_dir=`dirname $GCC_FOR_TARGET`
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17830 $as_echo "pre-installed in $ac_dir" >&6; }
17831 else
17832 # Canadian cross, just use what we found
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17834 $as_echo "pre-installed" >&6; }
17836 else
17837 ok=yes
17838 case " ${configdirs} " in
17839 *" gcc "*) ;;
17840 *) ok=no ;;
17841 esac
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17847 $as_echo "just compiled" >&6; }
17848 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
17850 ac_dir=`dirname $GCC_FOR_TARGET`
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17852 $as_echo "pre-installed in $ac_dir" >&6; }
17853 elif test "x$target" = "x$host"; then
17854 # We can use an host tool
17855 GCC_FOR_TARGET='$()'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17857 $as_echo "host tool" >&6; }
17858 else
17859 # We need a cross tool
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17861 $as_echo "pre-installed" >&6; }
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17866 $as_echo_n "checking where to find the target gfortran... " >&6; }
17867 if test "x${build}" != "x${host}" ; then
17868 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17869 # We already found the complete path
17870 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17872 $as_echo "pre-installed in $ac_dir" >&6; }
17873 else
17874 # Canadian cross, just use what we found
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17876 $as_echo "pre-installed" >&6; }
17878 else
17879 ok=yes
17880 case " ${configdirs} " in
17881 *" gcc "*) ;;
17882 *) ok=no ;;
17883 esac
17884 case ,${enable_languages}, in
17885 *,fortran,*) ;;
17886 *) ok=no ;;
17887 esac
17888 if test $ok = yes; then
17889 # An in-tree tool is available and we can use it
17890 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17892 $as_echo "just compiled" >&6; }
17893 elif 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 elif test "x$target" = "x$host"; then
17899 # We can use an host tool
17900 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17902 $as_echo "host tool" >&6; }
17903 else
17904 # We need a cross tool
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17906 $as_echo "pre-installed" >&6; }
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17911 $as_echo_n "checking where to find the target gccgo... " >&6; }
17912 if test "x${build}" != "x${host}" ; then
17913 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17914 # We already found the complete path
17915 ac_dir=`dirname $GOC_FOR_TARGET`
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17917 $as_echo "pre-installed in $ac_dir" >&6; }
17918 else
17919 # Canadian cross, just use what we found
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921 $as_echo "pre-installed" >&6; }
17923 else
17924 ok=yes
17925 case " ${configdirs} " in
17926 *" gcc "*) ;;
17927 *) ok=no ;;
17928 esac
17929 case ,${enable_languages}, in
17930 *,go,*) ;;
17931 *) ok=no ;;
17932 esac
17933 if test $ok = yes; then
17934 # An in-tree tool is available and we can use it
17935 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17937 $as_echo "just compiled" >&6; }
17938 elif 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 elif test "x$target" = "x$host"; then
17944 # We can use an host tool
17945 GOC_FOR_TARGET='$(GOC)'
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17947 $as_echo "host tool" >&6; }
17948 else
17949 # We need a cross tool
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17951 $as_echo "pre-installed" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17956 $as_echo_n "checking where to find the target gdc... " >&6; }
17957 if test "x${build}" != "x${host}" ; then
17958 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17959 # We already found the complete path
17960 ac_dir=`dirname $GDC_FOR_TARGET`
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17962 $as_echo "pre-installed in $ac_dir" >&6; }
17963 else
17964 # Canadian cross, just use what we found
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17966 $as_echo "pre-installed" >&6; }
17968 else
17969 ok=yes
17970 case " ${configdirs} " in
17971 *" gcc "*) ;;
17972 *) ok=no ;;
17973 esac
17974 case ,${enable_languages}, in
17975 *,d,*) ;;
17976 *) ok=no ;;
17977 esac
17978 if test $ok = yes; then
17979 # An in-tree tool is available and we can use it
17980 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17982 $as_echo "just compiled" >&6; }
17983 elif 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 elif test "x$target" = "x$host"; then
17989 # We can use an host tool
17990 GDC_FOR_TARGET='$(GDC)'
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17992 $as_echo "host tool" >&6; }
17993 else
17994 # We need a cross tool
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17996 $as_echo "pre-installed" >&6; }
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18001 $as_echo_n "checking where to find the target gm2... " >&6; }
18002 if test "x${build}" != "x${host}" ; then
18003 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18004 # We already found the complete path
18005 ac_dir=`dirname $GM2_FOR_TARGET`
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18007 $as_echo "pre-installed in $ac_dir" >&6; }
18008 else
18009 # Canadian cross, just use what we found
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18011 $as_echo "pre-installed" >&6; }
18013 else
18014 ok=yes
18015 case " ${configdirs} " in
18016 *" gcc "*) ;;
18017 *) ok=no ;;
18018 esac
18019 case ,${enable_languages}, in
18020 *,m2,*) ;;
18021 *) ok=no ;;
18022 esac
18023 if test $ok = yes; then
18024 # An in-tree tool is available and we can use it
18025 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18027 $as_echo "just compiled" >&6; }
18028 elif 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 elif test "x$target" = "x$host"; then
18034 # We can use an host tool
18035 GM2_FOR_TARGET='$(GM2)'
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18037 $as_echo "host tool" >&6; }
18038 else
18039 # We need a cross tool
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18041 $as_echo "pre-installed" >&6; }
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18046 $as_echo_n "checking where to find the target ld... " >&6; }
18047 if test "x${build}" != "x${host}" ; then
18048 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18049 # We already found the complete path
18050 ac_dir=`dirname $LD_FOR_TARGET`
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18052 $as_echo "pre-installed in $ac_dir" >&6; }
18053 else
18054 # Canadian cross, just use what we found
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18056 $as_echo "pre-installed" >&6; }
18058 else
18059 ok=yes
18060 case " ${configdirs} " in
18061 *" ld "*) ;;
18062 *) ok=no ;;
18063 esac
18065 if test $ok = yes; then
18066 # An in-tree tool is available and we can use it
18067 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18069 $as_echo "just compiled" >&6; }
18070 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18071 # We already found the complete path
18072 ac_dir=`dirname $LD_FOR_TARGET`
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18074 $as_echo "pre-installed in $ac_dir" >&6; }
18075 elif test "x$target" = "x$host"; then
18076 # We can use an host tool
18077 LD_FOR_TARGET='$(LD)'
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18079 $as_echo "host tool" >&6; }
18080 else
18081 # We need a cross tool
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18083 $as_echo "pre-installed" >&6; }
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18088 $as_echo_n "checking where to find the target lipo... " >&6; }
18089 if test "x${build}" != "x${host}" ; then
18090 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18091 # We already found the complete path
18092 ac_dir=`dirname $LIPO_FOR_TARGET`
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18094 $as_echo "pre-installed in $ac_dir" >&6; }
18095 else
18096 # Canadian cross, just use what we found
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18098 $as_echo "pre-installed" >&6; }
18100 else
18101 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18102 # We already found the complete path
18103 ac_dir=`dirname $LIPO_FOR_TARGET`
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18105 $as_echo "pre-installed in $ac_dir" >&6; }
18106 elif test "x$target" = "x$host"; then
18107 # We can use an host tool
18108 LIPO_FOR_TARGET='$(LIPO)'
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18110 $as_echo "host tool" >&6; }
18111 else
18112 # We need a cross tool
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18114 $as_echo "pre-installed" >&6; }
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18119 $as_echo_n "checking where to find the target nm... " >&6; }
18120 if test "x${build}" != "x${host}" ; then
18121 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18122 # We already found the complete path
18123 ac_dir=`dirname $NM_FOR_TARGET`
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18125 $as_echo "pre-installed in $ac_dir" >&6; }
18126 else
18127 # Canadian cross, just use what we found
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18129 $as_echo "pre-installed" >&6; }
18131 else
18132 ok=yes
18133 case " ${configdirs} " in
18134 *" binutils "*) ;;
18135 *) ok=no ;;
18136 esac
18138 if test $ok = yes; then
18139 # An in-tree tool is available and we can use it
18140 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18142 $as_echo "just compiled" >&6; }
18143 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18144 # We already found the complete path
18145 ac_dir=`dirname $NM_FOR_TARGET`
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18147 $as_echo "pre-installed in $ac_dir" >&6; }
18148 elif test "x$target" = "x$host"; then
18149 # We can use an host tool
18150 NM_FOR_TARGET='$(NM)'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18152 $as_echo "host tool" >&6; }
18153 else
18154 # We need a cross tool
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18156 $as_echo "pre-installed" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18161 $as_echo_n "checking where to find the target objcopy... " >&6; }
18162 if test "x${build}" != "x${host}" ; then
18163 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18164 # We already found the complete path
18165 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18167 $as_echo "pre-installed in $ac_dir" >&6; }
18168 else
18169 # Canadian cross, just use what we found
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18171 $as_echo "pre-installed" >&6; }
18173 else
18174 ok=yes
18175 case " ${configdirs} " in
18176 *" binutils "*) ;;
18177 *) ok=no ;;
18178 esac
18180 if test $ok = yes; then
18181 # An in-tree tool is available and we can use it
18182 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18184 $as_echo "just compiled" >&6; }
18185 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18189 $as_echo "pre-installed in $ac_dir" >&6; }
18190 elif test "x$target" = "x$host"; then
18191 # We can use an host tool
18192 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18194 $as_echo "host tool" >&6; }
18195 else
18196 # We need a cross tool
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18198 $as_echo "pre-installed" >&6; }
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18203 $as_echo_n "checking where to find the target objdump... " >&6; }
18204 if test "x${build}" != "x${host}" ; then
18205 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18206 # We already found the complete path
18207 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18209 $as_echo "pre-installed in $ac_dir" >&6; }
18210 else
18211 # Canadian cross, just use what we found
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213 $as_echo "pre-installed" >&6; }
18215 else
18216 ok=yes
18217 case " ${configdirs} " in
18218 *" binutils "*) ;;
18219 *) ok=no ;;
18220 esac
18222 if test $ok = yes; then
18223 # An in-tree tool is available and we can use it
18224 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18226 $as_echo "just compiled" >&6; }
18227 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18231 $as_echo "pre-installed in $ac_dir" >&6; }
18232 elif test "x$target" = "x$host"; then
18233 # We can use an host tool
18234 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18236 $as_echo "host tool" >&6; }
18237 else
18238 # We need a cross tool
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18240 $as_echo "pre-installed" >&6; }
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18245 $as_echo_n "checking where to find the target otool... " >&6; }
18246 if test "x${build}" != "x${host}" ; then
18247 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18248 # We already found the complete path
18249 ac_dir=`dirname $OTOOL_FOR_TARGET`
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18251 $as_echo "pre-installed in $ac_dir" >&6; }
18252 else
18253 # Canadian cross, just use what we found
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255 $as_echo "pre-installed" >&6; }
18257 else
18258 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18259 # We already found the complete path
18260 ac_dir=`dirname $OTOOL_FOR_TARGET`
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18262 $as_echo "pre-installed in $ac_dir" >&6; }
18263 elif test "x$target" = "x$host"; then
18264 # We can use an host tool
18265 OTOOL_FOR_TARGET='$(OTOOL)'
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18267 $as_echo "host tool" >&6; }
18268 else
18269 # We need a cross tool
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18271 $as_echo "pre-installed" >&6; }
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18276 $as_echo_n "checking where to find the target ranlib... " >&6; }
18277 if test "x${build}" != "x${host}" ; then
18278 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18279 # We already found the complete path
18280 ac_dir=`dirname $RANLIB_FOR_TARGET`
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18282 $as_echo "pre-installed in $ac_dir" >&6; }
18283 else
18284 # Canadian cross, just use what we found
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18286 $as_echo "pre-installed" >&6; }
18288 else
18289 ok=yes
18290 case " ${configdirs} " in
18291 *" binutils "*) ;;
18292 *) ok=no ;;
18293 esac
18295 if test $ok = yes; then
18296 # An in-tree tool is available and we can use it
18297 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18299 $as_echo "just compiled" >&6; }
18300 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18301 # We already found the complete path
18302 ac_dir=`dirname $RANLIB_FOR_TARGET`
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18304 $as_echo "pre-installed in $ac_dir" >&6; }
18305 elif test "x$target" = "x$host"; then
18306 # We can use an host tool
18307 RANLIB_FOR_TARGET='$(RANLIB)'
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18309 $as_echo "host tool" >&6; }
18310 else
18311 # We need a cross tool
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18313 $as_echo "pre-installed" >&6; }
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18318 $as_echo_n "checking where to find the target readelf... " >&6; }
18319 if test "x${build}" != "x${host}" ; then
18320 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18321 # We already found the complete path
18322 ac_dir=`dirname $READELF_FOR_TARGET`
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18324 $as_echo "pre-installed in $ac_dir" >&6; }
18325 else
18326 # Canadian cross, just use what we found
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18328 $as_echo "pre-installed" >&6; }
18330 else
18331 ok=yes
18332 case " ${configdirs} " in
18333 *" binutils "*) ;;
18334 *) ok=no ;;
18335 esac
18337 if test $ok = yes; then
18338 # An in-tree tool is available and we can use it
18339 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18341 $as_echo "just compiled" >&6; }
18342 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $READELF_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18346 $as_echo "pre-installed in $ac_dir" >&6; }
18347 elif test "x$target" = "x$host"; then
18348 # We can use an host tool
18349 READELF_FOR_TARGET='$(READELF)'
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18351 $as_echo "host tool" >&6; }
18352 else
18353 # We need a cross tool
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18355 $as_echo "pre-installed" >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18360 $as_echo_n "checking where to find the target strip... " >&6; }
18361 if test "x${build}" != "x${host}" ; then
18362 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18363 # We already found the complete path
18364 ac_dir=`dirname $STRIP_FOR_TARGET`
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18366 $as_echo "pre-installed in $ac_dir" >&6; }
18367 else
18368 # Canadian cross, just use what we found
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18370 $as_echo "pre-installed" >&6; }
18372 else
18373 ok=yes
18374 case " ${configdirs} " in
18375 *" binutils "*) ;;
18376 *) ok=no ;;
18377 esac
18379 if test $ok = yes; then
18380 # An in-tree tool is available and we can use it
18381 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18383 $as_echo "just compiled" >&6; }
18384 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18385 # We already found the complete path
18386 ac_dir=`dirname $STRIP_FOR_TARGET`
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18388 $as_echo "pre-installed in $ac_dir" >&6; }
18389 elif test "x$target" = "x$host"; then
18390 # We can use an host tool
18391 STRIP_FOR_TARGET='$(STRIP)'
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18393 $as_echo "host tool" >&6; }
18394 else
18395 # We need a cross tool
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18397 $as_echo "pre-installed" >&6; }
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18402 $as_echo_n "checking where to find the target windres... " >&6; }
18403 if test "x${build}" != "x${host}" ; then
18404 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18405 # We already found the complete path
18406 ac_dir=`dirname $WINDRES_FOR_TARGET`
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18408 $as_echo "pre-installed in $ac_dir" >&6; }
18409 else
18410 # Canadian cross, just use what we found
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18412 $as_echo "pre-installed" >&6; }
18414 else
18415 ok=yes
18416 case " ${configdirs} " in
18417 *" binutils "*) ;;
18418 *) ok=no ;;
18419 esac
18421 if test $ok = yes; then
18422 # An in-tree tool is available and we can use it
18423 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18425 $as_echo "just compiled" >&6; }
18426 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $WINDRES_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18430 $as_echo "pre-installed in $ac_dir" >&6; }
18431 elif test "x$target" = "x$host"; then
18432 # We can use an host tool
18433 WINDRES_FOR_TARGET='$(WINDRES)'
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18435 $as_echo "host tool" >&6; }
18436 else
18437 # We need a cross tool
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18439 $as_echo "pre-installed" >&6; }
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18444 $as_echo_n "checking where to find the target windmc... " >&6; }
18445 if test "x${build}" != "x${host}" ; then
18446 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18447 # We already found the complete path
18448 ac_dir=`dirname $WINDMC_FOR_TARGET`
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18450 $as_echo "pre-installed in $ac_dir" >&6; }
18451 else
18452 # Canadian cross, just use what we found
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18454 $as_echo "pre-installed" >&6; }
18456 else
18457 ok=yes
18458 case " ${configdirs} " in
18459 *" binutils "*) ;;
18460 *) ok=no ;;
18461 esac
18463 if test $ok = yes; then
18464 # An in-tree tool is available and we can use it
18465 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18467 $as_echo "just compiled" >&6; }
18468 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDMC_FOR_TARGET`
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18472 $as_echo "pre-installed in $ac_dir" >&6; }
18473 elif test "x$target" = "x$host"; then
18474 # We can use an host tool
18475 WINDMC_FOR_TARGET='$(WINDMC)'
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18477 $as_echo "host tool" >&6; }
18478 else
18479 # We need a cross tool
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18481 $as_echo "pre-installed" >&6; }
18489 # Certain tools may need extra flags.
18490 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18491 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18492 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18494 # When building target libraries, except in a Canadian cross, we use
18495 # the same toolchain as the compiler we just built.
18496 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18497 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18498 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18499 if test $host = $build; then
18500 case " $configdirs " in
18501 *" gcc "*)
18502 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18503 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18504 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18506 esac
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18514 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18515 # Check whether --enable-maintainer-mode was given.
18516 if test "${enable_maintainer_mode+set}" = set; then :
18517 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18518 else
18519 USE_MAINTAINER_MODE=no
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18523 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18526 if test "$USE_MAINTAINER_MODE" = yes; then
18527 MAINTAINER_MODE_TRUE=
18528 MAINTAINER_MODE_FALSE='#'
18529 else
18530 MAINTAINER_MODE_TRUE='#'
18531 MAINTAINER_MODE_FALSE=
18533 MAINT=$MAINTAINER_MODE_TRUE
18535 # ---------------------
18536 # GCC bootstrap support
18537 # ---------------------
18539 # Stage specific cflags for build.
18540 stage1_cflags="-g"
18541 case $build in
18542 vax-*-*)
18543 case ${GCC} in
18544 yes) stage1_cflags="-g -Wa,-J" ;;
18545 *) stage1_cflags="-g -J" ;;
18546 esac ;;
18547 esac
18551 # Enable --enable-checking in stage1 of the compiler.
18552 # Check whether --enable-stage1-checking was given.
18553 if test "${enable_stage1_checking+set}" = set; then :
18554 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18555 else
18556 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18557 # For --disable-checking or implicit --enable-checking=release, avoid
18558 # setting --enable-checking=gc in the default stage1 checking for LTO
18559 # bootstraps. See PR62077.
18560 case $BUILD_CONFIG in
18561 *lto*)
18562 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18564 stage1_checking=--enable-checking=yes,types;;
18565 esac
18566 if test "x$enable_checking" = x && \
18567 test -d ${srcdir}/gcc && \
18568 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18569 stage1_checking=--enable-checking=yes,types,extra
18571 else
18572 stage1_checking=--enable-checking=$enable_checking,types
18578 # Enable -Werror in bootstrap stage2 and later.
18579 # Check whether --enable-werror was given.
18580 if test "${enable_werror+set}" = set; then :
18581 enableval=$enable_werror;
18582 case ${enable_werror} in
18583 yes) stage2_werror_flag="--enable-werror-always" ;;
18584 *) stage2_werror_flag="" ;;
18585 esac
18587 else
18589 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18590 case $BUILD_CONFIG in
18591 bootstrap-debug)
18592 stage2_werror_flag="--enable-werror-always" ;;
18594 stage2_werror_flag="--enable-werror-always" ;;
18595 esac
18603 # Specify what files to not compare during bootstrap.
18605 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18606 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18607 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18608 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18609 case "$target" in
18610 hppa*64*-*-hpux*) ;;
18611 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18612 esac
18615 ac_config_files="$ac_config_files Makefile"
18617 cat >confcache <<\_ACEOF
18618 # This file is a shell script that caches the results of configure
18619 # tests run on this system so they can be shared between configure
18620 # scripts and configure runs, see configure's option --config-cache.
18621 # It is not useful on other systems. If it contains results you don't
18622 # want to keep, you may remove or edit it.
18624 # config.status only pays attention to the cache file if you give it
18625 # the --recheck option to rerun configure.
18627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18629 # following values.
18631 _ACEOF
18633 # The following way of writing the cache mishandles newlines in values,
18634 # but we know of no workaround that is simple, portable, and efficient.
18635 # So, we kill variables containing newlines.
18636 # Ultrix sh set writes to stderr and can't be redirected directly,
18637 # and sets the high bit in the cache file unless we assign to the vars.
18639 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18640 eval ac_val=\$$ac_var
18641 case $ac_val in #(
18642 *${as_nl}*)
18643 case $ac_var in #(
18644 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18645 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18646 esac
18647 case $ac_var in #(
18648 _ | IFS | as_nl) ;; #(
18649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18650 *) { eval $ac_var=; unset $ac_var;} ;;
18651 esac ;;
18652 esac
18653 done
18655 (set) 2>&1 |
18656 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18657 *${as_nl}ac_space=\ *)
18658 # `set' does not quote correctly, so add quotes: double-quote
18659 # substitution turns \\\\ into \\, and sed turns \\ into \.
18660 sed -n \
18661 "s/'/'\\\\''/g;
18662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18663 ;; #(
18665 # `set' quotes correctly as required by POSIX, so do not add quotes.
18666 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18668 esac |
18669 sort
18671 sed '
18672 /^ac_cv_env_/b end
18673 t clear
18674 :clear
18675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18676 t end
18677 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18678 :end' >>confcache
18679 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18680 if test -w "$cache_file"; then
18681 if test "x$cache_file" != "x/dev/null"; then
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18683 $as_echo "$as_me: updating cache $cache_file" >&6;}
18684 if test ! -f "$cache_file" || test -h "$cache_file"; then
18685 cat confcache >"$cache_file"
18686 else
18687 case $cache_file in #(
18688 */* | ?:*)
18689 mv -f confcache "$cache_file"$$ &&
18690 mv -f "$cache_file"$$ "$cache_file" ;; #(
18692 mv -f confcache "$cache_file" ;;
18693 esac
18696 else
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18698 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18701 rm -f confcache
18703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18704 # Let make expand exec_prefix.
18705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18707 # Transform confdefs.h into DEFS.
18708 # Protect against shell expansion while executing Makefile rules.
18709 # Protect against Makefile macro expansion.
18711 # If the first sed substitution is executed (which looks for macros that
18712 # take arguments), then branch to the quote section. Otherwise,
18713 # look for a macro that doesn't take arguments.
18714 ac_script='
18715 :mline
18716 /\\$/{
18718 s,\\\n,,
18719 b mline
18721 t clear
18722 :clear
18723 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18724 t quote
18725 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18726 t quote
18727 b any
18728 :quote
18729 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18730 s/\[/\\&/g
18731 s/\]/\\&/g
18732 s/\$/$$/g
18734 :any
18737 s/^\n//
18738 s/\n/ /g
18742 DEFS=`sed -n "$ac_script" confdefs.h`
18745 ac_libobjs=
18746 ac_ltlibobjs=
18748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18749 # 1. Remove the extension, and $U if already installed.
18750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18753 # will be set to the directory where LIBOBJS objects are built.
18754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18756 done
18757 LIBOBJS=$ac_libobjs
18759 LTLIBOBJS=$ac_ltlibobjs
18763 : "${CONFIG_STATUS=./config.status}"
18764 ac_write_fail=0
18765 ac_clean_files_save=$ac_clean_files
18766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18769 as_write_fail=0
18770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18771 #! $SHELL
18772 # Generated by $as_me.
18773 # Run this file to recreate the current configuration.
18774 # Compiler output produced by configure, useful for debugging
18775 # configure, is in config.log if it exists.
18777 debug=false
18778 ac_cs_recheck=false
18779 ac_cs_silent=false
18781 SHELL=\${CONFIG_SHELL-$SHELL}
18782 export SHELL
18783 _ASEOF
18784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18785 ## -------------------- ##
18786 ## M4sh Initialization. ##
18787 ## -------------------- ##
18789 # Be more Bourne compatible
18790 DUALCASE=1; export DUALCASE # for MKS sh
18791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18792 emulate sh
18793 NULLCMD=:
18794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18795 # is contrary to our usage. Disable this feature.
18796 alias -g '${1+"$@"}'='"$@"'
18797 setopt NO_GLOB_SUBST
18798 else
18799 case `(set -o) 2>/dev/null` in #(
18800 *posix*) :
18801 set -o posix ;; #(
18802 *) :
18804 esac
18808 as_nl='
18810 export as_nl
18811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18815 # Prefer a ksh shell builtin over an external printf program on Solaris,
18816 # but without wasting forks for bash or zsh.
18817 if test -z "$BASH_VERSION$ZSH_VERSION" \
18818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18819 as_echo='print -r --'
18820 as_echo_n='print -rn --'
18821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18822 as_echo='printf %s\n'
18823 as_echo_n='printf %s'
18824 else
18825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18827 as_echo_n='/usr/ucb/echo -n'
18828 else
18829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18830 as_echo_n_body='eval
18831 arg=$1;
18832 case $arg in #(
18833 *"$as_nl"*)
18834 expr "X$arg" : "X\\(.*\\)$as_nl";
18835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18836 esac;
18837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18839 export as_echo_n_body
18840 as_echo_n='sh -c $as_echo_n_body as_echo'
18842 export as_echo_body
18843 as_echo='sh -c $as_echo_body as_echo'
18846 # The user is always right.
18847 if test "${PATH_SEPARATOR+set}" != set; then
18848 PATH_SEPARATOR=:
18849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18851 PATH_SEPARATOR=';'
18856 # IFS
18857 # We need space, tab and new line, in precisely that order. Quoting is
18858 # there to prevent editors from complaining about space-tab.
18859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18860 # splitting by setting IFS to empty value.)
18861 IFS=" "" $as_nl"
18863 # Find who we are. Look in the path if we contain no directory separator.
18864 as_myself=
18865 case $0 in #((
18866 *[\\/]* ) as_myself=$0 ;;
18867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868 for as_dir in $PATH
18870 IFS=$as_save_IFS
18871 test -z "$as_dir" && as_dir=.
18872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18873 done
18874 IFS=$as_save_IFS
18877 esac
18878 # We did not find ourselves, most probably we were run as `sh COMMAND'
18879 # in which case we are not to be found in the path.
18880 if test "x$as_myself" = x; then
18881 as_myself=$0
18883 if test ! -f "$as_myself"; then
18884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18885 exit 1
18888 # Unset variables that we do not need and which cause bugs (e.g. in
18889 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18890 # suppresses any "Segmentation fault" message there. '((' could
18891 # trigger a bug in pdksh 5.2.14.
18892 for as_var in BASH_ENV ENV MAIL MAILPATH
18893 do eval test x\${$as_var+set} = xset \
18894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18895 done
18896 PS1='$ '
18897 PS2='> '
18898 PS4='+ '
18900 # NLS nuisances.
18901 LC_ALL=C
18902 export LC_ALL
18903 LANGUAGE=C
18904 export LANGUAGE
18906 # CDPATH.
18907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18910 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18911 # ----------------------------------------
18912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18914 # script with STATUS, using 1 if that was 0.
18915 as_fn_error ()
18917 as_status=$1; test $as_status -eq 0 && as_status=1
18918 if test "$4"; then
18919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18922 $as_echo "$as_me: error: $2" >&2
18923 as_fn_exit $as_status
18924 } # as_fn_error
18927 # as_fn_set_status STATUS
18928 # -----------------------
18929 # Set $? to STATUS, without forking.
18930 as_fn_set_status ()
18932 return $1
18933 } # as_fn_set_status
18935 # as_fn_exit STATUS
18936 # -----------------
18937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18938 as_fn_exit ()
18940 set +e
18941 as_fn_set_status $1
18942 exit $1
18943 } # as_fn_exit
18945 # as_fn_unset VAR
18946 # ---------------
18947 # Portably unset VAR.
18948 as_fn_unset ()
18950 { eval $1=; unset $1;}
18952 as_unset=as_fn_unset
18953 # as_fn_append VAR VALUE
18954 # ----------------------
18955 # Append the text in VALUE to the end of the definition contained in VAR. Take
18956 # advantage of any shell optimizations that allow amortized linear growth over
18957 # repeated appends, instead of the typical quadratic growth present in naive
18958 # implementations.
18959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18960 eval 'as_fn_append ()
18962 eval $1+=\$2
18964 else
18965 as_fn_append ()
18967 eval $1=\$$1\$2
18969 fi # as_fn_append
18971 # as_fn_arith ARG...
18972 # ------------------
18973 # Perform arithmetic evaluation on the ARGs, and store the result in the
18974 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18975 # must be portable across $(()) and expr.
18976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18977 eval 'as_fn_arith ()
18979 as_val=$(( $* ))
18981 else
18982 as_fn_arith ()
18984 as_val=`expr "$@" || test $? -eq 1`
18986 fi # as_fn_arith
18989 if expr a : '\(a\)' >/dev/null 2>&1 &&
18990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18991 as_expr=expr
18992 else
18993 as_expr=false
18996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18997 as_basename=basename
18998 else
18999 as_basename=false
19002 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19003 as_dirname=dirname
19004 else
19005 as_dirname=false
19008 as_me=`$as_basename -- "$0" ||
19009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19010 X"$0" : 'X\(//\)$' \| \
19011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19012 $as_echo X/"$0" |
19013 sed '/^.*\/\([^/][^/]*\)\/*$/{
19014 s//\1/
19017 /^X\/\(\/\/\)$/{
19018 s//\1/
19021 /^X\/\(\/\).*/{
19022 s//\1/
19025 s/.*/./; q'`
19027 # Avoid depending upon Character Ranges.
19028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19031 as_cr_digits='0123456789'
19032 as_cr_alnum=$as_cr_Letters$as_cr_digits
19034 ECHO_C= ECHO_N= ECHO_T=
19035 case `echo -n x` in #(((((
19036 -n*)
19037 case `echo 'xy\c'` in
19038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19039 xy) ECHO_C='\c';;
19040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19041 ECHO_T=' ';;
19042 esac;;
19044 ECHO_N='-n';;
19045 esac
19047 rm -f conf$$ conf$$.exe conf$$.file
19048 if test -d conf$$.dir; then
19049 rm -f conf$$.dir/conf$$.file
19050 else
19051 rm -f conf$$.dir
19052 mkdir conf$$.dir 2>/dev/null
19054 if (echo >conf$$.file) 2>/dev/null; then
19055 if ln -s conf$$.file conf$$ 2>/dev/null; then
19056 as_ln_s='ln -s'
19057 # ... but there are two gotchas:
19058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19060 # In both cases, we have to default to `cp -pR'.
19061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19062 as_ln_s='cp -pR'
19063 elif ln conf$$.file conf$$ 2>/dev/null; then
19064 as_ln_s=ln
19065 else
19066 as_ln_s='cp -pR'
19068 else
19069 as_ln_s='cp -pR'
19071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19072 rmdir conf$$.dir 2>/dev/null
19075 # as_fn_mkdir_p
19076 # -------------
19077 # Create "$as_dir" as a directory, including parents if necessary.
19078 as_fn_mkdir_p ()
19081 case $as_dir in #(
19082 -*) as_dir=./$as_dir;;
19083 esac
19084 test -d "$as_dir" || eval $as_mkdir_p || {
19085 as_dirs=
19086 while :; do
19087 case $as_dir in #(
19088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19089 *) as_qdir=$as_dir;;
19090 esac
19091 as_dirs="'$as_qdir' $as_dirs"
19092 as_dir=`$as_dirname -- "$as_dir" ||
19093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19094 X"$as_dir" : 'X\(//\)[^/]' \| \
19095 X"$as_dir" : 'X\(//\)$' \| \
19096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19097 $as_echo X"$as_dir" |
19098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19099 s//\1/
19102 /^X\(\/\/\)[^/].*/{
19103 s//\1/
19106 /^X\(\/\/\)$/{
19107 s//\1/
19110 /^X\(\/\).*/{
19111 s//\1/
19114 s/.*/./; q'`
19115 test -d "$as_dir" && break
19116 done
19117 test -z "$as_dirs" || eval "mkdir $as_dirs"
19118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19121 } # as_fn_mkdir_p
19122 if mkdir -p . 2>/dev/null; then
19123 as_mkdir_p='mkdir -p "$as_dir"'
19124 else
19125 test -d ./-p && rmdir ./-p
19126 as_mkdir_p=false
19130 # as_fn_executable_p FILE
19131 # -----------------------
19132 # Test if FILE is an executable regular file.
19133 as_fn_executable_p ()
19135 test -f "$1" && test -x "$1"
19136 } # as_fn_executable_p
19137 as_test_x='test -x'
19138 as_executable_p=as_fn_executable_p
19140 # Sed expression to map a string onto a valid CPP name.
19141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19143 # Sed expression to map a string onto a valid variable name.
19144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19147 exec 6>&1
19148 ## ----------------------------------- ##
19149 ## Main body of $CONFIG_STATUS script. ##
19150 ## ----------------------------------- ##
19151 _ASEOF
19152 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19155 # Save the log message, to keep $0 and so on meaningful, and to
19156 # report actual input values of CONFIG_FILES etc. instead of their
19157 # values after options handling.
19158 ac_log="
19159 This file was extended by $as_me, which was
19160 generated by GNU Autoconf 2.69. Invocation command line was
19162 CONFIG_FILES = $CONFIG_FILES
19163 CONFIG_HEADERS = $CONFIG_HEADERS
19164 CONFIG_LINKS = $CONFIG_LINKS
19165 CONFIG_COMMANDS = $CONFIG_COMMANDS
19166 $ $0 $@
19168 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19171 _ACEOF
19173 case $ac_config_files in *"
19174 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19175 esac
19179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19180 # Files that config.status was made for.
19181 config_files="$ac_config_files"
19183 _ACEOF
19185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19186 ac_cs_usage="\
19187 \`$as_me' instantiates files and other configuration actions
19188 from templates according to the current configuration. Unless the files
19189 and actions are specified as TAGs, all are instantiated by default.
19191 Usage: $0 [OPTION]... [TAG]...
19193 -h, --help print this help, then exit
19194 -V, --version print version number and configuration settings, then exit
19195 --config print configuration, then exit
19196 -q, --quiet, --silent
19197 do not print progress messages
19198 -d, --debug don't remove temporary files
19199 --recheck update $as_me by reconfiguring in the same conditions
19200 --file=FILE[:TEMPLATE]
19201 instantiate the configuration file FILE
19203 Configuration files:
19204 $config_files
19206 Report bugs to the package provider."
19208 _ACEOF
19209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19210 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19211 ac_cs_version="\\
19212 config.status
19213 configured by $0, generated by GNU Autoconf 2.69,
19214 with options \\"\$ac_cs_config\\"
19216 Copyright (C) 2012 Free Software Foundation, Inc.
19217 This config.status script is free software; the Free Software Foundation
19218 gives unlimited permission to copy, distribute and modify it."
19220 ac_pwd='$ac_pwd'
19221 srcdir='$srcdir'
19222 INSTALL='$INSTALL'
19223 AWK='$AWK'
19224 test -n "\$AWK" || AWK=awk
19225 _ACEOF
19227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19228 # The default lists apply if the user does not specify any file.
19229 ac_need_defaults=:
19230 while test $# != 0
19232 case $1 in
19233 --*=?*)
19234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19235 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19236 ac_shift=:
19238 --*=)
19239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19240 ac_optarg=
19241 ac_shift=:
19244 ac_option=$1
19245 ac_optarg=$2
19246 ac_shift=shift
19248 esac
19250 case $ac_option in
19251 # Handling of the options.
19252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19253 ac_cs_recheck=: ;;
19254 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19255 $as_echo "$ac_cs_version"; exit ;;
19256 --config | --confi | --conf | --con | --co | --c )
19257 $as_echo "$ac_cs_config"; exit ;;
19258 --debug | --debu | --deb | --de | --d | -d )
19259 debug=: ;;
19260 --file | --fil | --fi | --f )
19261 $ac_shift
19262 case $ac_optarg in
19263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19264 '') as_fn_error $? "missing file argument" ;;
19265 esac
19266 as_fn_append CONFIG_FILES " '$ac_optarg'"
19267 ac_need_defaults=false;;
19268 --he | --h | --help | --hel | -h )
19269 $as_echo "$ac_cs_usage"; exit ;;
19270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19271 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19272 ac_cs_silent=: ;;
19274 # This is an error.
19275 -*) as_fn_error $? "unrecognized option: \`$1'
19276 Try \`$0 --help' for more information." ;;
19278 *) as_fn_append ac_config_targets " $1"
19279 ac_need_defaults=false ;;
19281 esac
19282 shift
19283 done
19285 ac_configure_extra_args=
19287 if $ac_cs_silent; then
19288 exec 6>/dev/null
19289 ac_configure_extra_args="$ac_configure_extra_args --silent"
19292 _ACEOF
19293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19294 if \$ac_cs_recheck; then
19295 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19296 shift
19297 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19298 CONFIG_SHELL='$SHELL'
19299 export CONFIG_SHELL
19300 exec "\$@"
19303 _ACEOF
19304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19305 exec 5>>config.log
19307 echo
19308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19309 ## Running $as_me. ##
19310 _ASBOX
19311 $as_echo "$ac_log"
19312 } >&5
19314 _ACEOF
19315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 # INIT-COMMANDS
19319 extrasub_build="$extrasub_build"
19320 extrasub_host="$extrasub_host"
19321 extrasub_target="$extrasub_target"
19323 _ACEOF
19325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19327 # Handling of arguments.
19328 for ac_config_target in $ac_config_targets
19330 case $ac_config_target in
19331 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19333 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19334 esac
19335 done
19338 # If the user did not use the arguments to specify the items to instantiate,
19339 # then the envvar interface is used. Set only those that are not.
19340 # We use the long form for the default assignment because of an extremely
19341 # bizarre bug on SunOS 4.1.3.
19342 if $ac_need_defaults; then
19343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19346 # Have a temporary directory for convenience. Make it in the build tree
19347 # simply because there is no reason against having it here, and in addition,
19348 # creating and moving files from /tmp can sometimes cause problems.
19349 # Hook for its removal unless debugging.
19350 # Note that there is a small window in which the directory will not be cleaned:
19351 # after its creation but before its name has been assigned to `$tmp'.
19352 $debug ||
19354 tmp= ac_tmp=
19355 trap 'exit_status=$?
19356 : "${ac_tmp:=$tmp}"
19357 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19359 trap 'as_fn_exit 1' 1 2 13 15
19361 # Create a (secure) tmp directory for tmp files.
19364 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19365 test -d "$tmp"
19366 } ||
19368 tmp=./conf$$-$RANDOM
19369 (umask 077 && mkdir "$tmp")
19370 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19371 ac_tmp=$tmp
19373 # Set up the scripts for CONFIG_FILES section.
19374 # No need to generate them if there are no CONFIG_FILES.
19375 # This happens for instance with `./config.status config.h'.
19376 if test -n "$CONFIG_FILES"; then
19378 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19379 ac_cs_awk_getline=:
19380 ac_cs_awk_pipe_init=
19381 ac_cs_awk_read_file='
19382 while ((getline aline < (F[key])) > 0)
19383 print(aline)
19384 close(F[key])'
19385 ac_cs_awk_pipe_fini=
19386 else
19387 ac_cs_awk_getline=false
19388 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19389 ac_cs_awk_read_file='
19390 print "|#_!!_#|"
19391 print "cat " F[key] " &&"
19392 '$ac_cs_awk_pipe_init
19393 # The final `:' finishes the AND list.
19394 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19396 ac_cr=`echo X | tr X '\015'`
19397 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19398 # But we know of no other shell where ac_cr would be empty at this
19399 # point, so we can use a bashism as a fallback.
19400 if test "x$ac_cr" = x; then
19401 eval ac_cr=\$\'\\r\'
19403 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19405 ac_cs_awk_cr='\\r'
19406 else
19407 ac_cs_awk_cr=$ac_cr
19410 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19411 _ACEOF
19413 # Create commands to substitute file output variables.
19415 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19416 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19417 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19418 echo "_ACAWK" &&
19419 echo "_ACEOF"
19420 } >conf$$files.sh &&
19421 . ./conf$$files.sh ||
19422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19423 rm -f conf$$files.sh
19426 echo "cat >conf$$subs.awk <<_ACEOF" &&
19427 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19428 echo "_ACEOF"
19429 } >conf$$subs.sh ||
19430 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19431 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19432 ac_delim='%!_!# '
19433 for ac_last_try in false false false false false :; do
19434 . ./conf$$subs.sh ||
19435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19437 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19438 if test $ac_delim_n = $ac_delim_num; then
19439 break
19440 elif $ac_last_try; then
19441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19442 else
19443 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19445 done
19446 rm -f conf$$subs.sh
19448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19449 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19450 _ACEOF
19451 sed -n '
19453 s/^/S["/; s/!.*/"]=/
19456 s/^[^!]*!//
19457 :repl
19458 t repl
19459 s/'"$ac_delim"'$//
19460 t delim
19463 s/\(.\{148\}\)..*/\1/
19464 t more1
19465 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19468 b repl
19469 :more1
19470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19473 s/.\{148\}//
19474 t nl
19475 :delim
19477 s/\(.\{148\}\)..*/\1/
19478 t more2
19479 s/["\\]/\\&/g; s/^/"/; s/$/"/
19482 :more2
19483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19486 s/.\{148\}//
19487 t delim
19488 ' <conf$$subs.awk | sed '
19489 /^[^""]/{
19491 s/\n//
19493 ' >>$CONFIG_STATUS || ac_write_fail=1
19494 rm -f conf$$subs.awk
19495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19496 _ACAWK
19497 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19498 for (key in S) S_is_set[key] = 1
19499 FS = "\a"
19500 \$ac_cs_awk_pipe_init
19503 line = $ 0
19504 nfields = split(line, field, "@")
19505 substed = 0
19506 len = length(field[1])
19507 for (i = 2; i < nfields; i++) {
19508 key = field[i]
19509 keylen = length(key)
19510 if (S_is_set[key]) {
19511 value = S[key]
19512 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19513 len += length(value) + length(field[++i])
19514 substed = 1
19515 } else
19516 len += 1 + keylen
19518 if (nfields == 3 && !substed) {
19519 key = field[2]
19520 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19521 \$ac_cs_awk_read_file
19522 next
19525 print line
19527 \$ac_cs_awk_pipe_fini
19528 _ACAWK
19529 _ACEOF
19530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19531 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19533 else
19535 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19536 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19537 _ACEOF
19539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19541 # trailing colons and then remove the whole line if VPATH becomes empty
19542 # (actually we leave an empty line to preserve line numbers).
19543 if test "x$srcdir" = x.; then
19544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19546 s///
19547 s/^/:/
19548 s/[ ]*$/:/
19549 s/:\$(srcdir):/:/g
19550 s/:\${srcdir}:/:/g
19551 s/:@srcdir@:/:/g
19552 s/^:*//
19553 s/:*$//
19555 s/\(=[ ]*\).*/\1/
19557 s/\n//
19558 s/^[^=]*=[ ]*$//
19562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19563 fi # test -n "$CONFIG_FILES"
19566 eval set X " :F $CONFIG_FILES "
19567 shift
19568 for ac_tag
19570 case $ac_tag in
19571 :[FHLC]) ac_mode=$ac_tag; continue;;
19572 esac
19573 case $ac_mode$ac_tag in
19574 :[FHL]*:*);;
19575 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19576 :[FH]-) ac_tag=-:-;;
19577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19578 esac
19579 ac_save_IFS=$IFS
19580 IFS=:
19581 set x $ac_tag
19582 IFS=$ac_save_IFS
19583 shift
19584 ac_file=$1
19585 shift
19587 case $ac_mode in
19588 :L) ac_source=$1;;
19589 :[FH])
19590 ac_file_inputs=
19591 for ac_f
19593 case $ac_f in
19594 -) ac_f="$ac_tmp/stdin";;
19595 *) # Look for the file first in the build tree, then in the source tree
19596 # (if the path is not absolute). The absolute path cannot be DOS-style,
19597 # because $ac_f cannot contain `:'.
19598 test -f "$ac_f" ||
19599 case $ac_f in
19600 [\\/$]*) false;;
19601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19602 esac ||
19603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19604 esac
19605 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19606 as_fn_append ac_file_inputs " '$ac_f'"
19607 done
19609 # Let's still pretend it is `configure' which instantiates (i.e., don't
19610 # use $as_me), people would be surprised to read:
19611 # /* config.h. Generated by config.status. */
19612 configure_input='Generated from '`
19613 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19614 `' by configure.'
19615 if test x"$ac_file" != x-; then
19616 configure_input="$ac_file. $configure_input"
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19618 $as_echo "$as_me: creating $ac_file" >&6;}
19620 # Neutralize special characters interpreted by sed in replacement strings.
19621 case $configure_input in #(
19622 *\&* | *\|* | *\\* )
19623 ac_sed_conf_input=`$as_echo "$configure_input" |
19624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19625 *) ac_sed_conf_input=$configure_input;;
19626 esac
19628 case $ac_tag in
19629 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19631 esac
19633 esac
19635 ac_dir=`$as_dirname -- "$ac_file" ||
19636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19637 X"$ac_file" : 'X\(//\)[^/]' \| \
19638 X"$ac_file" : 'X\(//\)$' \| \
19639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19640 $as_echo X"$ac_file" |
19641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19642 s//\1/
19645 /^X\(\/\/\)[^/].*/{
19646 s//\1/
19649 /^X\(\/\/\)$/{
19650 s//\1/
19653 /^X\(\/\).*/{
19654 s//\1/
19657 s/.*/./; q'`
19658 as_dir="$ac_dir"; as_fn_mkdir_p
19659 ac_builddir=.
19661 case "$ac_dir" in
19662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19665 # A ".." for each directory in $ac_dir_suffix.
19666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19667 case $ac_top_builddir_sub in
19668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19670 esac ;;
19671 esac
19672 ac_abs_top_builddir=$ac_pwd
19673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19674 # for backward compatibility:
19675 ac_top_builddir=$ac_top_build_prefix
19677 case $srcdir in
19678 .) # We are building in place.
19679 ac_srcdir=.
19680 ac_top_srcdir=$ac_top_builddir_sub
19681 ac_abs_top_srcdir=$ac_pwd ;;
19682 [\\/]* | ?:[\\/]* ) # Absolute name.
19683 ac_srcdir=$srcdir$ac_dir_suffix;
19684 ac_top_srcdir=$srcdir
19685 ac_abs_top_srcdir=$srcdir ;;
19686 *) # Relative name.
19687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19688 ac_top_srcdir=$ac_top_build_prefix$srcdir
19689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19690 esac
19691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19694 case $ac_mode in
19697 # CONFIG_FILE
19700 case $INSTALL in
19701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19703 esac
19704 _ACEOF
19706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19707 # If the template does not know about datarootdir, expand it.
19708 # FIXME: This hack should be removed a few years after 2.60.
19709 ac_datarootdir_hack=; ac_datarootdir_seen=
19710 ac_sed_dataroot='
19711 /datarootdir/ {
19715 /@datadir@/p
19716 /@docdir@/p
19717 /@infodir@/p
19718 /@localedir@/p
19719 /@mandir@/p'
19720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19721 *datarootdir*) ac_datarootdir_seen=yes;;
19722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19725 _ACEOF
19726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19727 ac_datarootdir_hack='
19728 s&@datadir@&$datadir&g
19729 s&@docdir@&$docdir&g
19730 s&@infodir@&$infodir&g
19731 s&@localedir@&$localedir&g
19732 s&@mandir@&$mandir&g
19733 s&\\\${datarootdir}&$datarootdir&g' ;;
19734 esac
19735 _ACEOF
19737 # Neutralize VPATH when `$srcdir' = `.'.
19738 # Shell code in configure.ac might set extrasub.
19739 # FIXME: do we really want to maintain this feature?
19740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19741 ac_sed_extra="$ac_vpsub
19742 $extrasub
19743 _ACEOF
19744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19747 s|@configure_input@|$ac_sed_conf_input|;t t
19748 s&@top_builddir@&$ac_top_builddir_sub&;t t
19749 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19750 s&@srcdir@&$ac_srcdir&;t t
19751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19752 s&@top_srcdir@&$ac_top_srcdir&;t t
19753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19754 s&@builddir@&$ac_builddir&;t t
19755 s&@abs_builddir@&$ac_abs_builddir&;t t
19756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19757 s&@INSTALL@&$ac_INSTALL&;t t
19758 $ac_datarootdir_hack
19760 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19761 if $ac_cs_awk_getline; then
19762 $AWK -f "$ac_tmp/subs.awk"
19763 else
19764 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19765 fi \
19766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19773 which seems to be undefined. Please make sure it is defined" >&5
19774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19775 which seems to be undefined. Please make sure it is defined" >&2;}
19777 rm -f "$ac_tmp/stdin"
19778 case $ac_file in
19779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19781 esac \
19782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19787 esac
19790 case $ac_file$ac_mode in
19791 "Makefile":F) sed "$extrasub_build" Makefile |
19792 sed "$extrasub_host" |
19793 sed "$extrasub_target" > mf$$
19794 mv -f mf$$ Makefile ;;
19796 esac
19797 done # for ac_tag
19800 as_fn_exit 0
19801 _ACEOF
19802 ac_clean_files=$ac_clean_files_save
19804 test $ac_write_fail = 0 ||
19805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19808 # configure is writing to config.log, and then calls config.status.
19809 # config.status does its own redirection, appending to config.log.
19810 # Unfortunately, on DOS this fails, as config.log is still kept open
19811 # by configure, so config.status won't be able to write to it; its
19812 # output is simply discarded. So we exec the FD to /dev/null,
19813 # effectively closing config.log, so it can be properly (re)opened and
19814 # appended to by config.status. When coming back to configure, we
19815 # need to make the FD available again.
19816 if test "$no_create" != yes; then
19817 ac_cs_success=:
19818 ac_config_status_args=
19819 test "$silent" = yes &&
19820 ac_config_status_args="$ac_config_status_args --quiet"
19821 exec 5>/dev/null
19822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19823 exec 5>>config.log
19824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19825 # would make configure fail if this is the last instruction.
19826 $ac_cs_success || as_fn_exit 1
19828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}