c++: improve failed constexpr assume diagnostic
[official-gcc.git] / configure
blob007a77a5f6c9988832c38a6792e196493d635a17
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 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
632 LIPO
634 DSYMUTIL
635 DLLTOOL
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
729 LN_S
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr
815 with_mpfr_include
816 with_mpfr_lib
817 with_gmp
818 with_gmp_include
819 with_gmp_lib
820 with_stage1_libs
821 with_static_standard_libraries
822 with_stage1_ldflags
823 with_boot_libs
824 with_boot_ldflags
825 with_isl
826 with_isl_include
827 with_isl_lib
828 enable_isl_version_check
829 enable_lto
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
832 enable_host_shared
833 enable_stage1_languages
834 enable_objc_gc
835 with_target_bdw_gc
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
839 with_build_sysroot
840 with_debug_prefix_map
841 with_build_config
842 enable_vtable_verify
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
847 enable_werror
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
858 CXXFLAGS
860 build_configargs
861 host_configargs
862 target_configargs
865 DLLTOOL
866 DSYMUTIL
868 LIPO
870 RANLIB
871 STRIP
872 WINDRES
873 WINDMC
874 OBJCOPY
875 OBJDUMP
876 OTOOL
877 READELF
878 CC_FOR_TARGET
879 CXX_FOR_TARGET
880 GCC_FOR_TARGET
881 GFORTRAN_FOR_TARGET
882 GOC_FOR_TARGET
883 GDC_FOR_TARGET
884 AR_FOR_TARGET
885 AS_FOR_TARGET
886 DLLTOOL_FOR_TARGET
887 DSYMUTIL_FOR_TARGET
888 LD_FOR_TARGET
889 LIPO_FOR_TARGET
890 NM_FOR_TARGET
891 OBJCOPY_FOR_TARGET
892 OBJDUMP_FOR_TARGET
893 OTOOL_FOR_TARGET
894 RANLIB_FOR_TARGET
895 READELF_FOR_TARGET
896 STRIP_FOR_TARGET
897 WINDRES_FOR_TARGET
898 WINDMC_FOR_TARGET'
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
949 ac_prev=
950 ac_dashdash=
951 for ac_option
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
970 ac_dashdash=yes ;;
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
989 --config-cache | -C)
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1306 esac
1307 done
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 case $srcdir in
1426 *" "*)
1427 as_fn_error $? "path to source, $srcdir, contains spaces"
1429 esac
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 \`configure' configures this package to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1499 _ACEOF
1501 cat <<\_ACEOF
1503 Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1512 _ACEOF
1515 if test -n "$ac_init_help"; then
1517 cat <<\_ACEOF
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-as-accelerator-for=ARG
1524 build as offload target compiler. Specify offload
1525 host triple by ARG
1526 --enable-offload-targets=LIST
1527 enable offloading to devices from comma-separated
1528 LIST of TARGET[=DIR]. Use optional path to find
1529 offload target compiler during the build
1530 --enable-offload-defaulted
1531 If enabled, configured but not installed offload compilers and
1532 libgomp plugins are silently ignored. Useful for distribution
1533 compilers where those are in separate optional packages.
1535 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1536 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1537 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538 Enable compressed debug sections for gas, gold or ld
1539 by default
1540 --disable-libquadmath do not build libquadmath directory
1541 --disable-libquadmath-support
1542 disable libquadmath support for Fortran
1543 --enable-libada build libada directory
1544 --enable-libssp build libssp directory
1545 --disable-libstdcxx do not build libstdc++-v3 directory
1546 --enable-liboffloadmic=ARG
1547 build liboffloadmic [ARG={no,host,target}]
1548 --enable-bootstrap enable bootstrapping [yes if native build]
1549 --enable-pgo-build[=lto]
1550 enable the PGO build
1551 --disable-isl-version-check
1552 disable check for isl version
1553 --enable-lto enable link time optimization support
1554 --enable-linker-plugin-configure-flags=FLAGS
1555 additional flags for configuring linker plugins
1556 [none]
1557 --enable-linker-plugin-flags=FLAGS
1558 additional flags for configuring and building linker
1559 plugins [none]
1560 --enable-host-shared build host code as shared libraries
1561 --enable-stage1-languages[=all]
1562 choose additional languages to build during stage1.
1563 Mostly useful for compiler development
1564 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1565 Objective-C runtime
1566 --enable-vtable-verify Enable vtable verification feature
1567 --enable-serial-[{host,target,build}-]configure
1568 force sequential configuration of sub-packages for
1569 the host, target or build machine, or all
1570 sub-packages
1571 --enable-maintainer-mode
1572 enable make rules and dependencies not useful (and
1573 sometimes confusing) to the casual installer
1574 --enable-stage1-checking[=all]
1575 choose additional checking for stage1 of the
1576 compiler
1577 --enable-werror enable -Werror in bootstrap stage2 and later
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-build-libsubdir=DIR Directory where to find libraries for build system
1583 --with-system-zlib use installed libz
1584 --with-mpc=PATH specify prefix directory for installed MPC package.
1585 Equivalent to --with-mpc-include=PATH/include plus
1586 --with-mpc-lib=PATH/lib
1587 --with-mpc-include=PATH specify directory for installed MPC include files
1588 --with-mpc-lib=PATH specify directory for the installed MPC library
1589 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1590 Equivalent to --with-mpfr-include=PATH/include plus
1591 --with-mpfr-lib=PATH/lib
1592 --with-mpfr-include=PATH
1593 specify directory for installed MPFR include files
1594 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
1601 --with-stage1-libs=LIBS libraries for stage1
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1604 (default=auto)
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
1610 --with-isl=PATH Specify prefix directory for the installed isl
1611 package. Equivalent to
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1623 files
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
1628 --with-build-sysroot=SYSROOT
1629 use sysroot as the system root during the build
1630 --with-debug-prefix-map='A=B C=D ...'
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...'
1633 use config/NAME.mk build configuration
1634 --with-build-time-tools=PATH
1635 use given path to find target tools during the build
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1647 build_configargs
1648 additional configure arguments for build directories
1649 host_configargs
1650 additional configure arguments for host directories
1651 target_configargs
1652 additional configure arguments for target directories
1653 AR AR for the host
1654 AS AS for the host
1655 DLLTOOL DLLTOOL for the host
1656 DSYMUTIL DSYMUTIL for the host
1657 LD LD for the host
1658 LIPO LIPO for the host
1659 NM NM for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
1663 WINDMC WINDMC for the host
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
1666 OTOOL OTOOL for the host
1667 READELF READELF for the host
1668 CC_FOR_TARGET
1669 CC for the target
1670 CXX_FOR_TARGET
1671 CXX for the target
1672 GCC_FOR_TARGET
1673 GCC for the target
1674 GFORTRAN_FOR_TARGET
1675 GFORTRAN for the target
1676 GOC_FOR_TARGET
1677 GOC for the target
1678 GDC_FOR_TARGET
1679 GDC for the target
1680 AR_FOR_TARGET
1681 AR for the target
1682 AS_FOR_TARGET
1683 AS for the target
1684 DLLTOOL_FOR_TARGET
1685 DLLTOOL for the target
1686 DSYMUTIL_FOR_TARGET
1687 DSYMUTIL for the target
1688 LD_FOR_TARGET
1689 LD for the target
1690 LIPO_FOR_TARGET
1691 LIPO for the target
1692 NM_FOR_TARGET
1693 NM for the target
1694 OBJCOPY_FOR_TARGET
1695 OBJCOPY for the target
1696 OBJDUMP_FOR_TARGET
1697 OBJDUMP for the target
1698 OTOOL_FOR_TARGET
1699 OTOOL for the target
1700 RANLIB_FOR_TARGET
1701 RANLIB for the target
1702 READELF_FOR_TARGET
1703 READELF for the target
1704 STRIP_FOR_TARGET
1705 STRIP for the target
1706 WINDRES_FOR_TARGET
1707 WINDRES for the target
1708 WINDMC_FOR_TARGET
1709 WINDMC for the target
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1714 Report bugs to the package provider.
1715 _ACEOF
1716 ac_status=$?
1719 if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1721 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 continue
1725 ac_builddir=.
1727 case "$ac_dir" in
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736 esac ;;
1737 esac
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1743 case $srcdir in
1744 .) # We are building in place.
1745 ac_srcdir=.
1746 ac_top_srcdir=$ac_top_builddir_sub
1747 ac_abs_top_srcdir=$ac_pwd ;;
1748 [\\/]* | ?:[\\/]* ) # Absolute name.
1749 ac_srcdir=$srcdir$ac_dir_suffix;
1750 ac_top_srcdir=$srcdir
1751 ac_abs_top_srcdir=$srcdir ;;
1752 *) # Relative name.
1753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1756 esac
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1759 cd "$ac_dir" || { ac_status=$?; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1767 else
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 fi || ac_status=$?
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1771 done
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1776 cat <<\_ACEOF
1777 configure
1778 generated by GNU Autoconf 2.69
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1783 _ACEOF
1784 exit
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_compile
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_cxx_try_compile
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_cxx_try_link
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_c_try_link ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=1
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1965 $ $0 $@
1967 _ACEOF
1968 exec 5>>config.log
1970 cat <<_ASUNAME
1971 ## --------- ##
1972 ## Platform. ##
1973 ## --------- ##
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1992 _ASUNAME
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 $as_echo "PATH: $as_dir"
2000 done
2001 IFS=$as_save_IFS
2003 } >&5
2005 cat >&5 <<_ACEOF
2008 ## ----------- ##
2009 ## Core tests. ##
2010 ## ----------- ##
2012 _ACEOF
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2020 ac_configure_args=
2021 ac_configure_args0=
2022 ac_configure_args1=
2023 ac_must_keep_next=false
2024 for ac_pass in 1 2
2026 for ac_arg
2028 case $ac_arg in
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2032 continue ;;
2033 *\'*)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 esac
2036 case $ac_pass in
2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 as_fn_append ac_configure_args1 " '$ac_arg'"
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2042 else
2043 case $ac_arg in
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050 esac
2052 -* ) ac_must_keep_next=true ;;
2053 esac
2055 as_fn_append ac_configure_args " '$ac_arg'"
2057 esac
2058 done
2059 done
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2071 echo
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
2094 (set) 2>&1 |
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2097 sed -n \
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 esac |
2105 sort
2107 echo
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2112 echo
2113 for ac_var in $ac_subst_vars
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
2120 done | sort
2121 echo
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2127 echo
2128 for ac_var in $ac_subst_files
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
2135 done | sort
2136 echo
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2141 ## confdefs.h. ##
2142 ## ----------- ##"
2143 echo
2144 cat confdefs.h
2145 echo
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2150 } >&5
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2153 exit $exit_status
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 done
2158 ac_signal=0
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2189 _ACEOF
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2194 ac_site_file1=NONE
2195 ac_site_file2=NONE
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2202 esac
2203 elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2206 else
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212 test "x$ac_site_file" = xNONE && continue
2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2217 . "$ac_site_file" \
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2223 done
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 case $cache_file in
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2234 esac
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 >$cache_file
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2251 set,)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,set)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,);;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 esac
2291 done
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316 progname=$0
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2324 for ac_arg
2326 case "$ac_arg" in
2327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331 *) ;;
2332 esac
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335 done
2336 if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2344 # Find the build, host, and target systems.
2345 ac_aux_dir=
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347 if test -f "$ac_dir/install-sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2350 break
2351 elif test -f "$ac_dir/install.sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install.sh -c"
2354 break
2355 elif test -f "$ac_dir/shtool"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2358 break
2360 done
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 case ${build_alias} in
2413 "") build_noncanonical=${build} ;;
2414 *) build_noncanonical=${build_alias} ;;
2415 esac
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2422 esac
2426 case ${target_alias} in
2427 "") target_noncanonical=${host_noncanonical} ;;
2428 *) target_noncanonical=${target_alias} ;;
2429 esac
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_transform_name=s,y,y,
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446 else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479 else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555 /usr/ucb/* ) ;;
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2559 # by default.
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563 if test $ac_prog = install &&
2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2571 else
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2575 mkdir conftest.dir
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2580 then
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582 break 3
2586 done
2587 done
2589 esac
2591 done
2592 IFS=$as_save_IFS
2594 rm -rf conftest.one conftest.two conftest.dir
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL=$ac_install_sh
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2626 then
2627 acx_cv_prog_LN=ln
2628 else
2629 acx_cv_prog_LN=no
2631 rm -f conftestdata_f conftestdata_t
2634 if test $acx_cv_prog_LN = no; then
2635 LN="cp"
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2638 else
2639 LN="$acx_cv_prog_LN"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2646 LN_S=$as_ln_s
2647 if test "$LN_S" = "ln -s"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661 for ac_i in 1 2 3 4 5 6 7; do
2662 ac_script="$ac_script$as_nl$ac_script"
2663 done
2664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665 { ac_script=; unset ac_script;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in sed gsed; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677 as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2681 *GNU*)
2682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2684 ac_count=0
2685 $as_echo_n 0123456789 >"conftest.in"
2686 while :
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694 as_fn_arith $ac_count + 1 && ac_count=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED="$ac_path_SED"
2698 ac_path_SED_max=$ac_count
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2702 done
2703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704 esac
2706 $ac_path_SED_found && break 3
2707 done
2708 done
2709 done
2710 IFS=$as_save_IFS
2711 if test -z "$ac_cv_path_SED"; then
2712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2714 else
2715 ac_cv_path_SED=$SED
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2722 rm -f conftest.sed
2724 for ac_prog in gawk mawk nawk awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 AWK=$ac_cv_prog_AWK
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2764 done
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2769 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2770 # a relative path.
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL="${srcpwd}/install-sh -c"
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2777 pwd=`${PWDCMD-pwd}`
2778 if test "${pwd}" = "${srcpwd}" ; then
2779 srcdir=.
2782 topsrcdir=$srcpwd
2784 extra_host_args=
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool. Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order. In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2800 # these library is used by various programs built for the build
2801 # environment
2803 build_libs="build-libiberty build-libcpp"
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2808 # these libraries are used by various programs built for the host environment
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 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 gotools c++tools"
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824 target-libbacktrace \
2825 target-libgloss \
2826 target-newlib \
2827 target-libgomp \
2828 target-liboffloadmic \
2829 target-libatomic \
2830 target-libitm \
2831 target-libstdc++-v3 \
2832 target-libsanitizer \
2833 target-libvtv \
2834 target-libssp \
2835 target-libquadmath \
2836 target-libgfortran \
2837 target-libffi \
2838 target-libobjc \
2839 target-libada \
2840 target-libgo \
2841 target-libphobos \
2842 target-zlib"
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2850 target_tools="target-rda"
2852 ################################################################################
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines. This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2865 ################################################################################
2867 srcname="gnu development package"
2869 # This gets set non-empty for some net releases of packages.
2870 appdirs=""
2872 # Define is_cross_compiler to save on calls to 'test'.
2873 is_cross_compiler=
2874 if test x"${host}" = x"${target}" ; then
2875 is_cross_compiler=no
2876 else
2877 is_cross_compiler=yes
2880 # Find the build and target subdir names.
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # finishes. So:
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896 withval=$with_build_libsubdir; build_libsubdir="$withval"
2897 else
2898 build_libsubdir="$build_subdir"
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903 || test -d $srcdir/../host-${host_noncanonical}; then
2904 host_subdir="host-${host_noncanonical}"
2905 else
2906 host_subdir=.
2908 # No prefix.
2909 target_subdir=${target_noncanonical}
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2913 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2917 # Skipdirs are removed silently.
2918 skipdirs=
2919 # Noconfigdirs are removed loudly.
2920 noconfigdirs=""
2922 use_gnu_ld=
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2925 use_gnu_ld=no
2926 noconfigdirs="$noconfigdirs ld gold"
2929 use_gnu_as=
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2932 use_gnu_as=no
2933 noconfigdirs="$noconfigdirs gas"
2936 use_included_zlib=
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940 withval=$with_system_zlib;
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945 use_included_zlib=no
2946 noconfigdirs="$noconfigdirs zlib"
2949 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2950 # is provided.
2951 if test x$with_system_readline = xyes ; then
2952 noconfigdirs="$noconfigdirs readline"
2955 # some tools are so dependent upon X11 that if we're not building with X,
2956 # it's not even worth trying to configure, much less build, that tool.
2958 case ${with_x} in
2959 yes | "") ;; # the default value for this tree is that X11 is available
2961 skipdirs="${skipdirs} tk itcl libgui"
2962 # We won't be able to build gdbtk without X.
2963 enable_gdbtk=no
2965 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2966 esac
2968 # Some are only suitable for cross toolchains.
2969 # Remove these if host=target.
2970 cross_only="target-libgloss target-newlib target-opcodes"
2972 case $is_cross_compiler in
2973 no) skipdirs="${skipdirs} ${cross_only}" ;;
2974 esac
2976 # If both --with-headers and --with-libs are specified, default to
2977 # --without-newlib.
2978 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2979 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2980 if test x"${with_newlib}" = x ; then
2981 with_newlib=no
2985 # Recognize --with-newlib/--without-newlib.
2986 case ${with_newlib} in
2987 no) skipdirs="${skipdirs} target-newlib" ;;
2988 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2989 esac
2991 # Check whether --enable-as-accelerator-for was given.
2992 if test "${enable_as_accelerator_for+set}" = set; then :
2993 enableval=$enable_as_accelerator_for;
2997 # Check whether --enable-offload-targets was given.
2998 if test "${enable_offload_targets+set}" = set; then :
2999 enableval=$enable_offload_targets;
3000 if test x"$enable_offload_targets" = x; then
3001 as_fn_error $? "no offload targets specified" "$LINENO" 5
3004 else
3005 enable_offload_targets=
3009 # Check whether --enable-offload-defaulted was given.
3010 if test "${enable_offload_defaulted+set}" = set; then :
3011 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3012 else
3013 enable_offload_defaulted=
3017 # Handle --enable-gold, --enable-ld.
3018 # --disable-gold [--enable-ld]
3019 # Build only ld. Default option.
3020 # --enable-gold [--enable-ld]
3021 # Build both gold and ld. Install gold as "ld.gold", install ld
3022 # as "ld.bfd" and "ld".
3023 # --enable-gold=default [--enable-ld]
3024 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3025 # install ld as "ld.bfd".
3026 # --enable-gold[=default] --disable-ld
3027 # Build only gold, which is then installed as both "ld.gold" and "ld".
3028 # --enable-gold --enable-ld=default
3029 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3030 # and ld.bfd).
3031 # In other words, ld is default
3032 # --enable-gold=default --enable-ld=default
3033 # Error.
3035 default_ld=
3036 # Check whether --enable-gold was given.
3037 if test "${enable_gold+set}" = set; then :
3038 enableval=$enable_gold; ENABLE_GOLD=$enableval
3039 else
3040 ENABLE_GOLD=no
3043 case "${ENABLE_GOLD}" in
3044 yes|default)
3045 # Check for ELF target.
3046 is_elf=no
3047 case "${target}" in
3048 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3049 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3050 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3051 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3052 case "${target}" in
3053 *-*-linux*aout* | *-*-linux*oldld*)
3056 is_elf=yes
3058 esac
3059 esac
3061 if test "$is_elf" = "yes"; then
3062 # Check for target supported by gold.
3063 case "${target}" in
3064 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3065 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3066 configdirs="$configdirs gold"
3067 if test x${ENABLE_GOLD} = xdefault; then
3068 default_ld=gold
3070 ENABLE_GOLD=yes
3072 esac
3078 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3080 esac
3082 # Check whether --enable-ld was given.
3083 if test "${enable_ld+set}" = set; then :
3084 enableval=$enable_ld; ENABLE_LD=$enableval
3085 else
3086 ENABLE_LD=yes
3090 case "${ENABLE_LD}" in
3091 default)
3092 if test x${default_ld} != x; then
3093 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3096 yes)
3099 if test x${ENABLE_GOLD} != xyes; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3101 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3103 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3106 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3108 esac
3110 # PR gas/19109
3111 # Decide the default method for compressing debug sections.
3112 # Provide a configure time option to override our default.
3113 # Check whether --enable-compressed_debug_sections was given.
3114 if test "${enable_compressed_debug_sections+set}" = set; then :
3115 enableval=$enable_compressed_debug_sections;
3116 if test x"$enable_compressed_debug_sections" = xyes; then
3117 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3120 else
3121 enable_compressed_debug_sections=
3125 # Configure extra directories which are host specific
3127 case "${host}" in
3128 *-cygwin*)
3129 configdirs="$configdirs libtermcap" ;;
3130 esac
3132 # A target can indicate whether a language isn't supported for some reason.
3133 # Only spaces may be used in this macro; not newlines or tabs.
3134 unsupported_languages=
3136 # Remove more programs from consideration, based on the host or
3137 # target this usually means that a port of the program doesn't
3138 # exist yet.
3140 case "${host}" in
3141 i[3456789]86-*-msdosdjgpp*)
3142 noconfigdirs="$noconfigdirs tcl tk itcl"
3144 esac
3147 # Check whether --enable-libquadmath was given.
3148 if test "${enable_libquadmath+set}" = set; then :
3149 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3150 else
3151 ENABLE_LIBQUADMATH=yes
3154 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3155 noconfigdirs="$noconfigdirs target-libquadmath"
3159 # Check whether --enable-libquadmath-support was given.
3160 if test "${enable_libquadmath_support+set}" = set; then :
3161 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3162 else
3163 ENABLE_LIBQUADMATH_SUPPORT=yes
3166 enable_libquadmath_support=
3167 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3168 enable_libquadmath_support=no
3172 # Check whether --enable-libada was given.
3173 if test "${enable_libada+set}" = set; then :
3174 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3175 else
3176 ENABLE_LIBADA=yes
3179 if test "${ENABLE_LIBADA}" != "yes" ; then
3180 noconfigdirs="$noconfigdirs gnattools"
3183 # Check whether --enable-libssp was given.
3184 if test "${enable_libssp+set}" = set; then :
3185 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3186 else
3187 ENABLE_LIBSSP=yes
3191 # Check whether --enable-libstdcxx was given.
3192 if test "${enable_libstdcxx+set}" = set; then :
3193 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3194 else
3195 ENABLE_LIBSTDCXX=default
3198 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3199 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3202 # If this is accelerator compiler and its target is intelmic we enable
3203 # target liboffloadmic by default. If this is compiler with offloading
3204 # for intelmic we enable host liboffloadmic by default. Otherwise
3205 # liboffloadmic is disabled by default.
3206 # Check whether --enable-liboffloadmic was given.
3207 if test "${enable_liboffloadmic+set}" = set; then :
3208 enableval=$enable_liboffloadmic; case "$enableval" in
3209 no | host | target)
3210 enable_liboffloadmic=$enableval ;;
3212 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3213 esac
3214 else
3215 if test x"$enable_as_accelerator_for" != x; then
3216 case "${target}" in
3217 *-intelmic-* | *-intelmicemul-*)
3218 enable_liboffloadmic=target
3219 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3222 enable_liboffloadmic=no
3224 esac
3225 else
3226 case "${enable_offload_targets}" in
3227 *-intelmic-* | *-intelmicemul-*)
3228 enable_liboffloadmic=host
3229 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3232 enable_liboffloadmic=no
3234 esac
3240 # Enable libgomp by default on hosted POSIX systems, and a few others.
3241 if test x$enable_libgomp = x ; then
3242 case "${target}" in
3243 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3245 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3247 *-*-solaris2* | *-*-hpux11*)
3249 *-*-darwin* | *-*-aix*)
3251 nvptx*-*-* | amdgcn*-*-*)
3254 noconfigdirs="$noconfigdirs target-libgomp"
3256 esac
3259 # Disable libatomic on unsupported systems.
3260 if test -d ${srcdir}/libatomic; then
3261 if test x$enable_libatomic = x; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3263 $as_echo_n "checking for libatomic support... " >&6; }
3264 if (srcdir=${srcdir}/libatomic; \
3265 . ${srcdir}/configure.tgt; \
3266 test -n "$UNSUPPORTED")
3267 then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs="$noconfigdirs target-libatomic"
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable liboffloadmic on unsupported systems.
3279 if test -d ${srcdir}/liboffloadmic; then
3280 if test x$enable_liboffloadmic != xno; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3282 $as_echo_n "checking for liboffloadmic support... " >&6; }
3283 if (srcdir=${srcdir}/liboffloadmic; \
3284 . ${srcdir}/configure.tgt; \
3285 test -n "$UNSUPPORTED")
3286 then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs="$noconfigdirs target-liboffloadmic"
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libitm on unsupported systems.
3298 if test -d ${srcdir}/libitm; then
3299 if test x$enable_libitm = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3301 $as_echo_n "checking for libitm support... " >&6; }
3302 if (srcdir=${srcdir}/libitm; \
3303 . ${srcdir}/configure.tgt; \
3304 test -n "$UNSUPPORTED")
3305 then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs="$noconfigdirs target-libitm"
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libsanitizer on unsupported systems.
3317 if test -d ${srcdir}/libsanitizer; then
3318 if test x$enable_libsanitizer = x; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3320 $as_echo_n "checking for libsanitizer support... " >&6; }
3321 if (srcdir=${srcdir}/libsanitizer; \
3322 . ${srcdir}/configure.tgt; \
3323 test -n "$UNSUPPORTED")
3324 then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs="$noconfigdirs target-libsanitizer"
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3335 # Disable libvtv on unsupported systems.
3336 if test -d ${srcdir}/libvtv; then
3337 if test x$enable_libvtv = x; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3339 $as_echo_n "checking for libvtv support... " >&6; }
3340 if (srcdir=${srcdir}/libvtv; \
3341 . ${srcdir}/configure.tgt; \
3342 test "$VTV_SUPPORTED" != "yes")
3343 then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 noconfigdirs="$noconfigdirs target-libvtv"
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3354 # Disable libquadmath for some systems.
3355 case "${target}" in
3356 avr-*-*)
3357 noconfigdirs="$noconfigdirs target-libquadmath"
3359 # libquadmath is unused on AIX and libquadmath build process use of
3360 # LD_LIBRARY_PATH can break AIX bootstrap.
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libquadmath"
3364 esac
3366 # Disable libssp for some systems.
3367 case "${target}" in
3368 avr-*-*)
3369 # No hosted I/O support.
3370 noconfigdirs="$noconfigdirs target-libssp"
3372 bpf-*-*)
3373 noconfigdirs="$noconfigdirs target-libssp"
3375 powerpc-*-aix* | rs6000-*-aix*)
3376 noconfigdirs="$noconfigdirs target-libssp"
3378 pru-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3382 rl78-*-*)
3383 # libssp uses a misaligned load to trigger a fault, but the RL78
3384 # doesn't fault for those - instead, it gives a build-time error
3385 # for explicit misaligned loads.
3386 noconfigdirs="$noconfigdirs target-libssp"
3388 visium-*-*)
3389 # No hosted I/O support.
3390 noconfigdirs="$noconfigdirs target-libssp"
3392 esac
3394 # Disable libstdc++-v3 for some systems.
3395 # Allow user to override this if they pass --enable-libstdcxx
3396 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3397 case "${target}" in
3398 *-*-vxworks*)
3399 # VxWorks uses the Dinkumware C++ library.
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 amdgcn*-*-*)
3403 # Not ported/fails to build when using newlib.
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 arm*-wince-pe*)
3407 # the C++ libraries don't build on top of CE's C libraries
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 avr-*-*)
3411 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 bpf-*-*)
3414 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 ft32-*-*)
3417 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3419 esac
3422 # Disable C++ on systems where it is known to not work.
3423 # For testing, you can override this with --enable-languages=c++.
3424 case ,${enable_languages}, in
3425 *,c++,*)
3428 case "${target}" in
3429 bpf-*-*)
3430 unsupported_languages="$unsupported_languages c++"
3432 esac
3434 esac
3436 # Disable Objc on systems where it is known to not work.
3437 # For testing, you can override this with --enable-languages=objc.
3438 case ,${enable_languages}, in
3439 *,objc,*)
3442 case "${target}" in
3443 bpf-*-*)
3444 unsupported_languages="$unsupported_languages objc"
3446 esac
3448 esac
3450 # Disable D on systems where it is known to not work.
3451 # For testing, you can override this with --enable-languages=d.
3452 case ,${enable_languages}, in
3453 *,d,*)
3456 case "${target}" in
3457 bpf-*-*)
3458 unsupported_languages="$unsupported_languages d"
3460 esac
3462 esac
3464 # Disable libphobos on unsupported systems.
3465 # For testing, you can override this with --enable-libphobos.
3466 if test -d ${srcdir}/libphobos; then
3467 if test x$enable_libphobos = x; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3469 $as_echo_n "checking for libphobos support... " >&6; }
3470 if (srcdir=${srcdir}/libphobos; \
3471 . ${srcdir}/configure.tgt; \
3472 test "$LIBPHOBOS_SUPPORTED" != "yes")
3473 then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 noconfigdirs="$noconfigdirs target-libphobos"
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3484 # Disable Fortran for some systems.
3485 case "${target}" in
3486 mmix-*-*)
3487 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3488 unsupported_languages="$unsupported_languages fortran"
3490 bpf-*-*)
3491 unsupported_languages="$unsupported_languages fortran"
3493 esac
3495 # Disable libffi for some systems.
3496 case "${target}" in
3497 powerpc-*-darwin*)
3499 i[3456789]86-*-darwin*)
3501 x86_64-*-darwin[912]*)
3503 *-*-darwin*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3506 *-*-netware*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3509 *-*-phoenix*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3512 *-*-rtems*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3515 *-*-tpf*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3518 *-*-uclinux*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3521 *-*-vxworks*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3524 aarch64*-*-freebsd*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3527 alpha*-*-*vms*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3530 arm*-*-freebsd*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3533 arm-wince-pe)
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 arm*-*-symbianelf*)
3537 noconfigdirs="$noconfigdirs target-libffi"
3539 bpf-*-*)
3540 noconfigdirs="$noconfigdirs target-libffi"
3542 cris-*-* | crisv32-*-*)
3543 case "${target}" in
3544 *-*-linux*)
3546 *) # See PR46792 regarding target-libffi.
3547 noconfigdirs="$noconfigdirs target-libffi";;
3548 esac
3550 hppa*64*-*-hpux*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3553 ia64*-*-*vms*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3556 i[3456789]86-w64-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 i[3456789]86-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 x86_64-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3565 mmix-*-*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3568 powerpc-*-aix*)
3570 rs6000-*-aix*)
3572 ft32-*-*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3575 *-*-lynxos*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3578 esac
3580 # Disable the go frontend on systems where it is known to not work. Please keep
3581 # this in sync with contrib/config-list.mk.
3582 case "${target}" in
3583 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3584 unsupported_languages="$unsupported_languages go"
3586 esac
3588 # Only allow gdbserver on some systems.
3589 if test -d ${srcdir}/gdbserver; then
3590 if test x$enable_gdbserver = x; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3592 $as_echo_n "checking for gdbserver support... " >&6; }
3593 if (srcdir=${srcdir}/gdbserver; \
3594 . ${srcdir}/configure.srv; \
3595 test -n "$UNSUPPORTED")
3596 then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 noconfigdirs="$noconfigdirs gdbserver"
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 $as_echo "yes" >&6; }
3607 # Disable libgo for some systems where it is known to not work.
3608 # For testing, you can easily override this with --enable-libgo.
3609 if test x$enable_libgo = x; then
3610 case "${target}" in
3611 *-*-darwin*)
3612 # PR 46986
3613 noconfigdirs="$noconfigdirs target-libgo"
3615 *-*-cygwin* | *-*-mingw*)
3616 noconfigdirs="$noconfigdirs target-libgo"
3618 bpf-*-*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3621 esac
3624 # Default libgloss CPU subdirectory.
3625 libgloss_dir="$target_cpu"
3627 case "${target}" in
3628 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3629 libgloss_dir=wince
3631 aarch64*-*-* )
3632 libgloss_dir=aarch64
3634 arm*-*-*)
3635 libgloss_dir=arm
3637 cris-*-* | crisv32-*-*)
3638 libgloss_dir=cris
3640 hppa*-*-*)
3641 libgloss_dir=pa
3643 i[3456789]86-*-*)
3644 libgloss_dir=i386
3646 loongarch*-*-*)
3647 libgloss_dir=loongarch
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3652 m68*-*-* | fido-*-*)
3653 libgloss_dir=m68k
3655 mips*-*-*)
3656 libgloss_dir=mips
3658 powerpc*-*-*)
3659 libgloss_dir=rs6000
3661 pru-*-*)
3662 libgloss_dir=pru
3664 sparc*-*-*)
3665 libgloss_dir=sparc
3667 esac
3669 # Disable newlib and libgloss for various target OSes.
3670 case "${target}" in
3671 alpha*-dec-osf*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 sparc-*-sunos4*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 bpf-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 *-*-aix*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 *-*-beos*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-chorusos)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-dragonfly*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-freebsd*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-lynxos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-mingw*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-netbsd*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-netware*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-tpf*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-uclinux*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-vxworks*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 esac
3739 case "${target}" in
3740 *-*-chorusos)
3742 aarch64-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 amdgcn*-*-*)
3748 arm-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3752 powerpc-*-darwin*)
3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3760 x86_64-*-darwin[912]*)
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3764 *-*-darwin*)
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
3768 *-*-dragonfly*)
3770 *-*-freebsd*)
3771 if test "x$with_gmp" = x \
3772 && ! test -d ${srcdir}/gmp \
3773 && test -f /usr/local/include/gmp.h; then
3774 with_gmp=/usr/local
3777 *-*-kaos*)
3778 # Remove unsupported stuff on all kaOS configurations.
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 *-*-netbsd*)
3783 *-*-netware*)
3785 *-*-phoenix*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3788 *-*-rtems*)
3789 noconfigdirs="$noconfigdirs target-libgloss"
3791 # The tpf target doesn't support gdb yet.
3792 *-*-tpf*)
3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3795 *-*-uclinux*)
3796 noconfigdirs="$noconfigdirs target-rda"
3798 *-*-vxworks*)
3800 alpha*-dec-osf*)
3801 # ld works, but does not support shared libraries.
3802 # gas doesn't generate exception information.
3803 noconfigdirs="$noconfigdirs gas ld"
3805 alpha*-*-*vms*)
3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3808 alpha*-*-*)
3809 # newlib is not 64 bit ready
3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3812 bpf-*-*)
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3818 arc*-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3821 arm-*-pe*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3824 arm-*-riscix*)
3825 noconfigdirs="$noconfigdirs ld target-libgloss"
3827 avr-*-*)
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3832 c4x-*-* | tic4x-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3835 tic54x-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
3838 d10v-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3841 d30v-*-*)
3842 noconfigdirs="$noconfigdirs gdb"
3844 fr30-*-elf*)
3845 noconfigdirs="$noconfigdirs gdb"
3847 ft32-*-*)
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3850 moxie-*-*)
3851 noconfigdirs="$noconfigdirs"
3853 h8300*-*-*)
3854 noconfigdirs="$noconfigdirs target-libgloss"
3856 h8500-*-*)
3857 noconfigdirs="$noconfigdirs target-libgloss"
3859 hppa*64*-*-hpux*)
3860 noconfigdirs="$noconfigdirs gdb"
3862 hppa*64*-*-linux*)
3864 hppa*-*-linux*)
3866 hppa*-*-*elf* | \
3867 hppa*-*-lites* | \
3868 hppa*-*-openbsd* | \
3869 hppa*64*-*-*)
3871 hppa*-*-pro*)
3873 hppa*-*-*)
3874 noconfigdirs="$noconfigdirs ld"
3876 i960-*-*)
3877 noconfigdirs="$noconfigdirs gdb"
3879 ia64*-*-elf*)
3880 # No gdb support yet.
3881 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3883 ia64*-**-hpux*)
3884 # No ld support yet.
3885 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3887 ia64*-*-*vms*)
3888 # No ld support yet.
3889 noconfigdirs="$noconfigdirs libgui itcl ld"
3891 i[3456789]86-w64-mingw*)
3893 i[3456789]86-*-mingw*)
3894 target_configdirs="$target_configdirs target-winsup"
3896 *-*-cygwin*)
3897 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3898 noconfigdirs="$noconfigdirs target-libgloss"
3899 # always build newlib if winsup directory is present.
3900 if test -d "$srcdir/winsup/cygwin"; then
3901 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3902 elif test -d "$srcdir/newlib"; then
3903 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3906 i[3456789]86-*-pe)
3907 noconfigdirs="$noconfigdirs target-libgloss"
3909 i[3456789]86-*-sco3.2v5*)
3910 # The linker does not yet know about weak symbols in COFF,
3911 # and is not configured to handle mixed ELF and COFF.
3912 noconfigdirs="$noconfigdirs ld target-libgloss"
3914 i[3456789]86-*-sco*)
3915 noconfigdirs="$noconfigdirs gprof target-libgloss"
3917 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3918 noconfigdirs="$noconfigdirs target-libgloss"
3920 i[3456789]86-*-sysv4*)
3921 noconfigdirs="$noconfigdirs target-libgloss"
3923 i[3456789]86-*-beos*)
3924 noconfigdirs="$noconfigdirs gdb"
3926 i[3456789]86-*-rdos*)
3927 noconfigdirs="$noconfigdirs gdb"
3929 mmix-*-*)
3930 noconfigdirs="$noconfigdirs gdb"
3932 mt-*-*)
3933 noconfigdirs="$noconfigdirs sim"
3935 nfp-*-*)
3936 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3937 noconfigdirs="$noconfigdirs $target_libraries"
3939 pdp11-*-*)
3940 noconfigdirs="$noconfigdirs gdb gprof"
3942 powerpc-*-aix*)
3943 # copied from rs6000-*-* entry
3944 noconfigdirs="$noconfigdirs gprof"
3946 powerpc*-*-winnt* | powerpc*-*-pe*)
3947 target_configdirs="$target_configdirs target-winsup"
3948 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3949 # always build newlib.
3950 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3952 # This is temporary until we can link against shared libraries
3953 powerpcle-*-solaris*)
3954 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3956 powerpc-*-beos*)
3957 noconfigdirs="$noconfigdirs gdb"
3959 rs6000-*-lynxos*)
3960 noconfigdirs="$noconfigdirs gprof"
3962 rs6000-*-aix*)
3963 noconfigdirs="$noconfigdirs gprof"
3965 rs6000-*-*)
3966 noconfigdirs="$noconfigdirs gprof"
3968 m68k-apollo-*)
3969 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3971 microblaze*)
3972 noconfigdirs="$noconfigdirs gprof"
3974 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3975 if test x$with_newlib = xyes; then
3976 noconfigdirs="$noconfigdirs gprof"
3979 mips*-*-irix5*)
3980 noconfigdirs="$noconfigdirs gprof target-libgloss"
3982 mips*-*-irix6*)
3983 noconfigdirs="$noconfigdirs gprof target-libgloss"
3985 mips*-*-bsd*)
3986 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3988 mips*-*-linux*)
3990 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3991 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3992 noconfigdirs="$noconfigdirs ld gas gprof"
3994 mips*-*-*)
3995 noconfigdirs="$noconfigdirs gprof"
3997 nvptx*-*-*)
3998 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4000 sh-*-*)
4001 case "${target}" in
4002 sh*-*-elf)
4005 noconfigdirs="$noconfigdirs target-libgloss" ;;
4006 esac
4008 sparc-*-sunos4*)
4009 if test x${is_cross_compiler} = xno ; then
4010 use_gnu_ld=no
4013 tic6x-*-*)
4014 noconfigdirs="$noconfigdirs sim"
4016 v810-*-*)
4017 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4019 vax-*-*)
4020 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4022 wasm32-*-*)
4023 noconfigdirs="$noconfigdirs ld"
4025 loongarch*-*-linux*)
4027 loongarch*-*-*)
4028 noconfigdirs="$noconfigdirs gprof"
4030 esac
4032 # If we aren't building newlib, then don't build libgloss, since libgloss
4033 # depends upon some newlib header files.
4034 case "${noconfigdirs}" in
4035 *target-libgloss*) ;;
4036 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4037 esac
4039 # Work in distributions that contain no compiler tools, like Autoconf.
4040 host_makefile_frag=/dev/null
4041 if test -d ${srcdir}/config ; then
4042 case "${host}" in
4043 i[3456789]86-*-msdosdjgpp*)
4044 host_makefile_frag="config/mh-djgpp"
4046 *-cygwin*)
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4049 $as_echo_n "checking to see if cat works as expected... " >&6; }
4050 echo a >cygwin-cat-check
4051 if test `cat cygwin-cat-check` = a ; then
4052 rm cygwin-cat-check
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054 $as_echo "yes" >&6; }
4055 else
4056 rm cygwin-cat-check
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4059 as_fn_error $? "The cat command does not ignore carriage return characters.
4060 Please either mount the build directory in binary mode or run the following
4061 commands before running any configure script:
4062 set -o igncr
4063 export SHELLOPTS
4064 " "$LINENO" 5
4067 host_makefile_frag="config/mh-cygwin"
4069 *-mingw*)
4070 host_makefile_frag="config/mh-mingw"
4072 alpha*-linux*)
4073 host_makefile_frag="config/mh-alpha-linux"
4075 hppa*-hp-hpux*)
4076 host_makefile_frag="config/mh-pa"
4078 hppa*-*)
4079 host_makefile_frag="config/mh-pa"
4081 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4082 host_makefile_frag="config/mh-darwin"
4084 powerpc-*-aix*)
4085 host_makefile_frag="config/mh-ppc-aix"
4087 rs6000-*-aix*)
4088 host_makefile_frag="config/mh-ppc-aix"
4090 esac
4093 if test "${build}" != "${host}" ; then
4094 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4095 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4096 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4097 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4099 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4100 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4101 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4102 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4103 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4104 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4105 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4106 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4107 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4108 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4109 else
4110 AR_FOR_BUILD="\$(AR)"
4111 AS_FOR_BUILD="\$(AS)"
4112 CC_FOR_BUILD="\$(CC)"
4113 CXX_FOR_BUILD="\$(CXX)"
4114 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4115 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4116 GOC_FOR_BUILD="\$(GOC)"
4117 GDC_FOR_BUILD="\$(GDC)"
4118 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4119 LD_FOR_BUILD="\$(LD)"
4120 NM_FOR_BUILD="\$(NM)"
4121 RANLIB_FOR_BUILD="\$(RANLIB)"
4122 WINDRES_FOR_BUILD="\$(WINDRES)"
4123 WINDMC_FOR_BUILD="\$(WINDMC)"
4126 ac_ext=c
4127 ac_cpp='$CPP $CPPFLAGS'
4128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4133 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if ${ac_cv_prog_CC+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 break 2
4153 done
4154 done
4155 IFS=$as_save_IFS
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4170 if test -z "$ac_cv_prog_CC"; then
4171 ac_ct_CC=$CC
4172 # Extract the first word of "gcc", so it can be a program name with args.
4173 set dummy gcc; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="gcc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4195 IFS=$as_save_IFS
4199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4200 if test -n "$ac_ct_CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4202 $as_echo "$ac_ct_CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4208 if test "x$ac_ct_CC" = x; then
4209 CC=""
4210 else
4211 case $cross_compiling:$ac_tool_warned in
4212 yes:)
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4215 ac_tool_warned=yes ;;
4216 esac
4217 CC=$ac_ct_CC
4219 else
4220 CC="$ac_cv_prog_CC"
4223 if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}cc; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if ${ac_cv_prog_CC+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 CC=$ac_cv_prog_CC
4253 if test -n "$CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255 $as_echo "$CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4264 if test -z "$CC"; then
4265 # Extract the first word of "cc", so it can be a program name with args.
4266 set dummy cc; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_CC+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 else
4275 ac_prog_rejected=no
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4284 ac_prog_rejected=yes
4285 continue
4287 ac_cv_prog_CC="cc"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4295 if test $ac_prog_rejected = yes; then
4296 # We found a bogon in the path, so make sure we never use it.
4297 set dummy $ac_cv_prog_CC
4298 shift
4299 if test $# != 0; then
4300 # We chose a different compiler from the bogus one.
4301 # However, it has the same basename, so the bogon will be chosen
4302 # first if we set CC to just the basename; use the full file name.
4303 shift
4304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312 $as_echo "$CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4320 if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 for ac_prog in cl.exe
4324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_CC+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 CC=$ac_cv_prog_CC
4352 if test -n "$CC"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354 $as_echo "$CC" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4361 test -n "$CC" && break
4362 done
4364 if test -z "$CC"; then
4365 ac_ct_CC=$CC
4366 for ac_prog in cl.exe
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369 set dummy $ac_prog; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -n "$ac_ct_CC"; then
4376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_ac_ct_CC="$ac_prog"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4396 if test -n "$ac_ct_CC"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4398 $as_echo "$ac_ct_CC" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4405 test -n "$ac_ct_CC" && break
4406 done
4408 if test "x$ac_ct_CC" = x; then
4409 CC=""
4410 else
4411 case $cross_compiling:$ac_tool_warned in
4412 yes:)
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4415 ac_tool_warned=yes ;;
4416 esac
4417 CC=$ac_ct_CC
4424 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "no acceptable C compiler found in \$PATH
4427 See \`config.log' for more details" "$LINENO" 5; }
4429 # Provide some information about the compiler.
4430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4431 set X $ac_compile
4432 ac_compiler=$2
4433 for ac_option in --version -v -V -qversion; do
4434 { { ac_try="$ac_compiler $ac_option >&5"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4442 ac_status=$?
4443 if test -s conftest.err; then
4444 sed '10a\
4445 ... rest of stderr output deleted ...
4446 10q' conftest.err >conftest.er1
4447 cat conftest.er1 >&5
4449 rm -f conftest.er1 conftest.err
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 done
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 main ()
4462 return 0;
4464 _ACEOF
4465 ac_clean_files_save=$ac_clean_files
4466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4467 # Try to create an executable without -o first, disregard a.out.
4468 # It will help us diagnose broken compilers, and finding out an intuition
4469 # of exeext.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4471 $as_echo_n "checking whether the C compiler works... " >&6; }
4472 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4474 # The possible output files:
4475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4477 ac_rmfiles=
4478 for ac_file in $ac_files
4480 case $ac_file in
4481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 esac
4484 done
4485 rm -f $ac_rmfiles
4487 if { { ac_try="$ac_link_default"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link_default") 2>&5
4495 ac_status=$?
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }; then :
4498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4500 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4501 # so that the user can short-circuit this test for compilers unknown to
4502 # Autoconf.
4503 for ac_file in $ac_files ''
4505 test -f "$ac_file" || continue
4506 case $ac_file in
4507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4509 [ab].out )
4510 # We found the default executable, but exeext='' is most
4511 # certainly right.
4512 break;;
4513 *.* )
4514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4515 then :; else
4516 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4518 # We set ac_cv_exeext here because the later test for it is not
4519 # safe: cross compilers may not add the suffix if given an `-o'
4520 # argument, so we may need to know it at that point already.
4521 # Even if this section looks crufty: it has the advantage of
4522 # actually working.
4523 break;;
4525 break;;
4526 esac
4527 done
4528 test "$ac_cv_exeext" = no && ac_cv_exeext=
4530 else
4531 ac_file=''
4533 if test -z "$ac_file"; then :
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 $as_echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error 77 "C compiler cannot create executables
4542 See \`config.log' for more details" "$LINENO" 5; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4545 $as_echo "yes" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4548 $as_echo_n "checking for C compiler default output file name... " >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4550 $as_echo "$ac_file" >&6; }
4551 ac_exeext=$ac_cv_exeext
4553 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4554 ac_clean_files=$ac_clean_files_save
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4556 $as_echo_n "checking for suffix of executables... " >&6; }
4557 if { { ac_try="$ac_link"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link") 2>&5
4565 ac_status=$?
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4570 # work properly (i.e., refer to `conftest.exe'), while it won't with
4571 # `rm'.
4572 for ac_file in conftest.exe conftest conftest.*; do
4573 test -f "$ac_file" || continue
4574 case $ac_file in
4575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4576 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4577 break;;
4578 * ) break;;
4579 esac
4580 done
4581 else
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4585 See \`config.log' for more details" "$LINENO" 5; }
4587 rm -f conftest conftest$ac_cv_exeext
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4589 $as_echo "$ac_cv_exeext" >&6; }
4591 rm -f conftest.$ac_ext
4592 EXEEXT=$ac_cv_exeext
4593 ac_exeext=$EXEEXT
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <stdio.h>
4598 main ()
4600 FILE *f = fopen ("conftest.out", "w");
4601 return ferror (f) || fclose (f) != 0;
4604 return 0;
4606 _ACEOF
4607 ac_clean_files="$ac_clean_files conftest.out"
4608 # Check that the compiler produces executables we can run. If not, either
4609 # the compiler is broken, or we cross compile.
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4611 $as_echo_n "checking whether we are cross compiling... " >&6; }
4612 if test "$cross_compiling" != yes; then
4613 { { ac_try="$ac_link"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4621 ac_status=$?
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }
4624 if { ac_try='./conftest$ac_cv_exeext'
4625 { { case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4630 $as_echo "$ac_try_echo"; } >&5
4631 (eval "$ac_try") 2>&5
4632 ac_status=$?
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }; }; then
4635 cross_compiling=no
4636 else
4637 if test "$cross_compiling" = maybe; then
4638 cross_compiling=yes
4639 else
4640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error $? "cannot run C compiled programs.
4643 If you meant to cross compile, use \`--host'.
4644 See \`config.log' for more details" "$LINENO" 5; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4649 $as_echo "$cross_compiling" >&6; }
4651 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4652 ac_clean_files=$ac_clean_files_save
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4654 $as_echo_n "checking for suffix of object files... " >&6; }
4655 if ${ac_cv_objext+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4662 main ()
4666 return 0;
4668 _ACEOF
4669 rm -f conftest.o conftest.obj
4670 if { { ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4676 $as_echo "$ac_try_echo"; } >&5
4677 (eval "$ac_compile") 2>&5
4678 ac_status=$?
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }; then :
4681 for ac_file in conftest.o conftest.obj conftest.*; do
4682 test -f "$ac_file" || continue;
4683 case $ac_file in
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 break;;
4687 esac
4688 done
4689 else
4690 $as_echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4695 as_fn_error $? "cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details" "$LINENO" 5; }
4698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4701 $as_echo "$ac_cv_objext" >&6; }
4702 OBJEXT=$ac_cv_objext
4703 ac_objext=$OBJEXT
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4706 if ${ac_cv_c_compiler_gnu+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4713 main ()
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4720 return 0;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_compiler_gnu=yes
4725 else
4726 ac_compiler_gnu=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4734 if test $ac_compiler_gnu = yes; then
4735 GCC=yes
4736 else
4737 GCC=
4739 ac_test_CFLAGS=${CFLAGS+set}
4740 ac_save_CFLAGS=$CFLAGS
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4743 if ${ac_cv_prog_cc_g+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 ac_save_c_werror_flag=$ac_c_werror_flag
4747 ac_c_werror_flag=yes
4748 ac_cv_prog_cc_g=no
4749 CFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4754 main ()
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_g=yes
4763 else
4764 CFLAGS=""
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4769 main ()
4773 return 0;
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4778 else
4779 ac_c_werror_flag=$ac_save_c_werror_flag
4780 CFLAGS="-g"
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4785 main ()
4789 return 0;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_prog_cc_g=yes
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_c_werror_flag=$ac_save_c_werror_flag
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4803 $as_echo "$ac_cv_prog_cc_g" >&6; }
4804 if test "$ac_test_CFLAGS" = set; then
4805 CFLAGS=$ac_save_CFLAGS
4806 elif test $ac_cv_prog_cc_g = yes; then
4807 if test "$GCC" = yes; then
4808 CFLAGS="-g -O2"
4809 else
4810 CFLAGS="-g"
4812 else
4813 if test "$GCC" = yes; then
4814 CFLAGS="-O2"
4815 else
4816 CFLAGS=
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4821 if ${ac_cv_prog_cc_c89+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_cv_prog_cc_c89=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #include <stdarg.h>
4829 #include <stdio.h>
4830 struct stat;
4831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4832 struct buf { int x; };
4833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4834 static char *e (p, i)
4835 char **p;
4836 int i;
4838 return p[i];
4840 static char *f (char * (*g) (char **, int), char **p, ...)
4842 char *s;
4843 va_list v;
4844 va_start (v,p);
4845 s = g (p, va_arg (v,int));
4846 va_end (v);
4847 return s;
4850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4851 function prototypes and stuff, but not '\xHH' hex character constants.
4852 These don't provoke an error unfortunately, instead are silently treated
4853 as 'x'. The following induces an error, until -std is added to get
4854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4855 array size at least. It's necessary to write '\x00'==0 to get something
4856 that's true only with -std. */
4857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4860 inside strings and character constants. */
4861 #define FOO(x) 'x'
4862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4864 int test (int i, double x);
4865 struct s1 {int (*f) (int a);};
4866 struct s2 {int (*f) (double a);};
4867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 int argc;
4869 char **argv;
4871 main ()
4873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4875 return 0;
4877 _ACEOF
4878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881 CC="$ac_save_CC $ac_arg"
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_prog_cc_c89=$ac_arg
4885 rm -f core conftest.err conftest.$ac_objext
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4887 done
4888 rm -f conftest.$ac_ext
4889 CC=$ac_save_CC
4892 # AC_CACHE_VAL
4893 case "x$ac_cv_prog_cc_c89" in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4896 $as_echo "none needed" >&6; } ;;
4897 xno)
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4899 $as_echo "unsupported" >&6; } ;;
4901 CC="$CC $ac_cv_prog_cc_c89"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4904 esac
4905 if test "x$ac_cv_prog_cc_c89" != xno; then :
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4916 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4917 if ${ac_cv_prog_cc_c99+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 ac_cv_prog_cc_c99=no
4921 ac_save_CC=$CC
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <stdarg.h>
4925 #include <stdbool.h>
4926 #include <stdlib.h>
4927 #include <wchar.h>
4928 #include <stdio.h>
4930 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4931 #define debug(...) fprintf (stderr, __VA_ARGS__)
4932 #define showlist(...) puts (#__VA_ARGS__)
4933 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4934 static void
4935 test_varargs_macros (void)
4937 int x = 1234;
4938 int y = 5678;
4939 debug ("Flag");
4940 debug ("X = %d\n", x);
4941 showlist (The first, second, and third items.);
4942 report (x>y, "x is %d but y is %d", x, y);
4945 // Check long long types.
4946 #define BIG64 18446744073709551615ull
4947 #define BIG32 4294967295ul
4948 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4949 #if !BIG_OK
4950 your preprocessor is broken;
4951 #endif
4952 #if BIG_OK
4953 #else
4954 your preprocessor is broken;
4955 #endif
4956 static long long int bignum = -9223372036854775807LL;
4957 static unsigned long long int ubignum = BIG64;
4959 struct incomplete_array
4961 int datasize;
4962 double data[];
4965 struct named_init {
4966 int number;
4967 const wchar_t *name;
4968 double average;
4971 typedef const char *ccp;
4973 static inline int
4974 test_restrict (ccp restrict text)
4976 // See if C++-style comments work.
4977 // Iterate through items via the restricted pointer.
4978 // Also check for declarations in for loops.
4979 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4980 continue;
4981 return 0;
4984 // Check varargs and va_copy.
4985 static void
4986 test_varargs (const char *format, ...)
4988 va_list args;
4989 va_start (args, format);
4990 va_list args_copy;
4991 va_copy (args_copy, args);
4993 const char *str;
4994 int number;
4995 float fnumber;
4997 while (*format)
4999 switch (*format++)
5001 case 's': // string
5002 str = va_arg (args_copy, const char *);
5003 break;
5004 case 'd': // int
5005 number = va_arg (args_copy, int);
5006 break;
5007 case 'f': // float
5008 fnumber = va_arg (args_copy, double);
5009 break;
5010 default:
5011 break;
5014 va_end (args_copy);
5015 va_end (args);
5019 main ()
5022 // Check bool.
5023 _Bool success = false;
5025 // Check restrict.
5026 if (test_restrict ("String literal") == 0)
5027 success = true;
5028 char *restrict newvar = "Another string";
5030 // Check varargs.
5031 test_varargs ("s, d' f .", "string", 65, 34.234);
5032 test_varargs_macros ();
5034 // Check flexible array members.
5035 struct incomplete_array *ia =
5036 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5037 ia->datasize = 10;
5038 for (int i = 0; i < ia->datasize; ++i)
5039 ia->data[i] = i * 1.234;
5041 // Check named initializers.
5042 struct named_init ni = {
5043 .number = 34,
5044 .name = L"Test wide string",
5045 .average = 543.34343,
5048 ni.number = 58;
5050 int dynamic_array[ni.number];
5051 dynamic_array[ni.number - 1] = 543;
5053 // work around unused variable warnings
5054 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5055 || dynamic_array[ni.number - 1] != 543);
5058 return 0;
5060 _ACEOF
5061 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5063 CC="$ac_save_CC $ac_arg"
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_prog_cc_c99=$ac_arg
5067 rm -f core conftest.err conftest.$ac_objext
5068 test "x$ac_cv_prog_cc_c99" != "xno" && break
5069 done
5070 rm -f conftest.$ac_ext
5071 CC=$ac_save_CC
5074 # AC_CACHE_VAL
5075 case "x$ac_cv_prog_cc_c99" in
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5078 $as_echo "none needed" >&6; } ;;
5079 xno)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5081 $as_echo "unsupported" >&6; } ;;
5083 CC="$CC $ac_cv_prog_cc_c99"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5085 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5086 esac
5087 if test "x$ac_cv_prog_cc_c99" != xno; then :
5092 ac_ext=cpp
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097 if test -z "$CXX"; then
5098 if test -n "$CCC"; then
5099 CXX=$CCC
5100 else
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_CXX+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CXX"; then
5112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 CXX=$ac_cv_prog_CXX
5132 if test -n "$CXX"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5134 $as_echo "$CXX" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$CXX" && break
5142 done
5144 if test -z "$CXX"; then
5145 ac_ct_CXX=$CXX
5146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CXX"; then
5156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5176 if test -n "$ac_ct_CXX"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5178 $as_echo "$ac_ct_CXX" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$ac_ct_CXX" && break
5186 done
5188 if test "x$ac_ct_CXX" = x; then
5189 CXX="g++"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 CXX=$ac_ct_CXX
5203 # Provide some information about the compiler.
5204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5205 set X $ac_compile
5206 ac_compiler=$2
5207 for ac_option in --version -v -V -qversion; do
5208 { { ac_try="$ac_compiler $ac_option >&5"
5209 case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212 esac
5213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5214 $as_echo "$ac_try_echo"; } >&5
5215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5216 ac_status=$?
5217 if test -s conftest.err; then
5218 sed '10a\
5219 ... rest of stderr output deleted ...
5220 10q' conftest.err >conftest.er1
5221 cat conftest.er1 >&5
5223 rm -f conftest.er1 conftest.err
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }
5226 done
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5229 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5230 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5237 main ()
5239 #ifndef __GNUC__
5240 choke me
5241 #endif
5244 return 0;
5246 _ACEOF
5247 if ac_fn_cxx_try_compile "$LINENO"; then :
5248 ac_compiler_gnu=yes
5249 else
5250 ac_compiler_gnu=no
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5253 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5257 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5258 if test $ac_compiler_gnu = yes; then
5259 GXX=yes
5260 else
5261 GXX=
5263 ac_test_CXXFLAGS=${CXXFLAGS+set}
5264 ac_save_CXXFLAGS=$CXXFLAGS
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5266 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5267 if ${ac_cv_prog_cxx_g+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5271 ac_cxx_werror_flag=yes
5272 ac_cv_prog_cxx_g=no
5273 CXXFLAGS="-g"
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5278 main ()
5282 return 0;
5284 _ACEOF
5285 if ac_fn_cxx_try_compile "$LINENO"; then :
5286 ac_cv_prog_cxx_g=yes
5287 else
5288 CXXFLAGS=""
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_cxx_try_compile "$LINENO"; then :
5302 else
5303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5304 CXXFLAGS="-g"
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5309 main ()
5313 return 0;
5315 _ACEOF
5316 if ac_fn_cxx_try_compile "$LINENO"; then :
5317 ac_cv_prog_cxx_g=yes
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5327 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5328 if test "$ac_test_CXXFLAGS" = set; then
5329 CXXFLAGS=$ac_save_CXXFLAGS
5330 elif test $ac_cv_prog_cxx_g = yes; then
5331 if test "$GXX" = yes; then
5332 CXXFLAGS="-g -O2"
5333 else
5334 CXXFLAGS="-g"
5336 else
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-O2"
5339 else
5340 CXXFLAGS=
5343 ac_ext=c
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 # We must set the default linker to the linker used by gcc for the correct
5351 # operation of libtool. If LD is not defined and we are using gcc, try to
5352 # set the LD default to the ld used by gcc.
5353 if test -z "$LD"; then
5354 if test "$GCC" = yes; then
5355 case $build in
5356 *-*-mingw*)
5357 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5359 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5360 esac
5361 case $gcc_prog_ld in
5362 # Accept absolute paths.
5363 [\\/]* | [A-Za-z]:[\\/]*)
5364 LD="$gcc_prog_ld" ;;
5365 esac
5369 # Check whether -static-libstdc++ -static-libgcc is supported.
5370 have_static_libs=no
5371 if test "$GCC" = yes; then
5372 saved_LDFLAGS="$LDFLAGS"
5374 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5376 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5377 ac_ext=cpp
5378 ac_cpp='$CXXCPP $CPPFLAGS'
5379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5388 #error -static-libstdc++ not implemented
5389 #endif
5390 int main() {}
5391 _ACEOF
5392 if ac_fn_cxx_try_link "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394 $as_echo "yes" >&6; }; have_static_libs=yes
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5399 rm -f core conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5401 ac_ext=c
5402 ac_cpp='$CPP $CPPFLAGS'
5403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 LDFLAGS="$saved_LDFLAGS"
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_GNATBIND+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$GNATBIND"; then
5423 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 GNATBIND=$ac_cv_prog_GNATBIND
5443 if test -n "$GNATBIND"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5445 $as_echo "$GNATBIND" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5453 if test -z "$ac_cv_prog_GNATBIND"; then
5454 ac_ct_GNATBIND=$GNATBIND
5455 # Extract the first word of "gnatbind", so it can be a program name with args.
5456 set dummy gnatbind; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$ac_ct_GNATBIND"; then
5463 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5483 if test -n "$ac_ct_GNATBIND"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5485 $as_echo "$ac_ct_GNATBIND" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5491 if test "x$ac_ct_GNATBIND" = x; then
5492 GNATBIND="no"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 GNATBIND=$ac_ct_GNATBIND
5502 else
5503 GNATBIND="$ac_cv_prog_GNATBIND"
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_GNATMAKE+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$GNATMAKE"; then
5515 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 GNATMAKE=$ac_cv_prog_GNATMAKE
5535 if test -n "$GNATMAKE"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5537 $as_echo "$GNATMAKE" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5545 if test -z "$ac_cv_prog_GNATMAKE"; then
5546 ac_ct_GNATMAKE=$GNATMAKE
5547 # Extract the first word of "gnatmake", so it can be a program name with args.
5548 set dummy gnatmake; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_GNATMAKE"; then
5555 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5574 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5575 if test -n "$ac_ct_GNATMAKE"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5577 $as_echo "$ac_ct_GNATMAKE" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5583 if test "x$ac_ct_GNATMAKE" = x; then
5584 GNATMAKE="no"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 GNATMAKE=$ac_ct_GNATMAKE
5594 else
5595 GNATMAKE="$ac_cv_prog_GNATMAKE"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5599 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5600 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 cat >conftest.adb <<EOF
5604 pragma Warnings (Off);
5605 with System.CRTL;
5606 pragma Warnings (On);
5607 use type System.CRTL.int64;
5608 procedure conftest is begin null; end conftest;
5610 acx_cv_cc_gcc_supports_ada=no
5611 # There is a bug in old released versions of GCC which causes the
5612 # driver to exit successfully when the appropriate language module
5613 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5614 # Therefore we must check for the error message as well as an
5615 # unsuccessful exit.
5616 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5617 # given a .adb file, but produce no object file. So we must check
5618 # if an object file was really produced to guard against this.
5619 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5620 if test x"$errors" = x && test -f conftest.$ac_objext; then
5621 acx_cv_cc_gcc_supports_ada=yes
5623 rm -f conftest.*
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5626 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5628 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5629 have_gnat=yes
5630 else
5631 have_gnat=no
5636 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_GDC+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$GDC"; then
5645 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5658 done
5659 done
5660 IFS=$as_save_IFS
5664 GDC=$ac_cv_prog_GDC
5665 if test -n "$GDC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5667 $as_echo "$GDC" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$ac_cv_prog_GDC"; then
5676 ac_ct_GDC=$GDC
5677 # Extract the first word of "gdc", so it can be a program name with args.
5678 set dummy gdc; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_GDC"; then
5685 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_GDC="gdc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5698 done
5699 done
5700 IFS=$as_save_IFS
5704 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5705 if test -n "$ac_ct_GDC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5707 $as_echo "$ac_ct_GDC" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5713 if test "x$ac_ct_GDC" = x; then
5714 GDC="no"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5721 esac
5722 GDC=$ac_ct_GDC
5724 else
5725 GDC="$ac_cv_prog_GDC"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5729 $as_echo_n "checking whether the D compiler works... " >&6; }
5730 if ${acx_cv_d_compiler_works+:} false; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 cat >conftest.d <<EOF
5734 module conftest; int main() { return 0; }
5736 acx_cv_d_compiler_works=no
5737 if test "x$GDC" != xno; then
5738 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5739 if test x"$errors" = x && test -f conftest.$ac_objext; then
5740 acx_cv_d_compiler_works=yes
5742 rm -f conftest.*
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5746 $as_echo "$acx_cv_d_compiler_works" >&6; }
5747 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5748 have_gdc=yes
5749 else
5750 have_gdc=no
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5754 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5755 if ${gcc_cv_prog_cmp_skip+:} false; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 echo abfoo >t1
5759 echo cdfoo >t2
5760 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5761 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5762 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5764 else
5765 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5768 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5769 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5771 else
5772 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5775 rm t1 t2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5779 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5780 do_compare="$gcc_cv_prog_cmp_skip"
5784 # Check whether --enable-bootstrap was given.
5785 if test "${enable_bootstrap+set}" = set; then :
5786 enableval=$enable_bootstrap;
5787 else
5788 enable_bootstrap=default
5792 # Issue errors and warnings for invalid/strange bootstrap combinations.
5793 if test -r $srcdir/gcc/configure; then
5794 have_compiler=yes
5795 else
5796 have_compiler=no
5799 case "$have_compiler:$host:$target:$enable_bootstrap" in
5800 *:*:*:no) ;;
5802 # Default behavior. Enable bootstrap if we have a compiler
5803 # and we are in a native configuration.
5804 yes:$build:$build:default)
5805 enable_bootstrap=yes ;;
5807 *:*:*:default)
5808 enable_bootstrap=no ;;
5810 # We have a compiler and we are in a native configuration, bootstrap is ok
5811 yes:$build:$build:yes)
5814 # Other configurations, but we have a compiler. Assume the user knows
5815 # what he's doing.
5816 yes:*:*:yes)
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5818 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5821 # No compiler: if they passed --enable-bootstrap explicitly, fail
5822 no:*:*:yes)
5823 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5825 # Fail if wrong command line
5827 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5829 esac
5831 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5832 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5833 # require C++11 (or higher).
5834 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5835 CXX="$CXX -std=c++11"
5836 elif test "$have_compiler" = yes; then
5837 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5838 ac_ext=cpp
5839 ac_cpp='$CXXCPP $CPPFLAGS'
5840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5843 ac_success=no
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5846 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5847 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5854 // If the compiler admits that it is not ready for C++11, why torture it?
5855 // Hopefully, this will speed up the test.
5857 #ifndef __cplusplus
5859 #error "This is not a C++ compiler"
5861 #elif __cplusplus < 201103L
5863 #error "This is not a C++11 compiler"
5865 #else
5867 namespace cxx11
5870 namespace test_static_assert
5873 template <typename T>
5874 struct check
5876 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5881 namespace test_final_override
5884 struct Base
5886 virtual ~Base() {}
5887 virtual void f() {}
5890 struct Derived : public Base
5892 virtual ~Derived() override {}
5893 virtual void f() override {}
5898 namespace test_double_right_angle_brackets
5901 template < typename T >
5902 struct check {};
5904 typedef check<void> single_type;
5905 typedef check<check<void>> double_type;
5906 typedef check<check<check<void>>> triple_type;
5907 typedef check<check<check<check<void>>>> quadruple_type;
5911 namespace test_decltype
5917 int a = 1;
5918 decltype(a) b = 2;
5919 return a + b;
5924 namespace test_type_deduction
5927 template < typename T1, typename T2 >
5928 struct is_same
5930 static const bool value = false;
5933 template < typename T >
5934 struct is_same<T, T>
5936 static const bool value = true;
5939 template < typename T1, typename T2 >
5940 auto
5941 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5943 return a1 + a2;
5947 test(const int c, volatile int v)
5949 static_assert(is_same<int, decltype(0)>::value == true, "");
5950 static_assert(is_same<int, decltype(c)>::value == false, "");
5951 static_assert(is_same<int, decltype(v)>::value == false, "");
5952 auto ac = c;
5953 auto av = v;
5954 auto sumi = ac + av + 'x';
5955 auto sumf = ac + av + 1.0;
5956 static_assert(is_same<int, decltype(ac)>::value == true, "");
5957 static_assert(is_same<int, decltype(av)>::value == true, "");
5958 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5959 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5960 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5961 return (sumf > 0.0) ? sumi : add(c, v);
5966 namespace test_noexcept
5969 int f() { return 0; }
5970 int g() noexcept { return 0; }
5972 static_assert(noexcept(f()) == false, "");
5973 static_assert(noexcept(g()) == true, "");
5977 namespace test_constexpr
5980 template < typename CharT >
5981 unsigned long constexpr
5982 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5984 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5987 template < typename CharT >
5988 unsigned long constexpr
5989 strlen_c(const CharT *const s) noexcept
5991 return strlen_c_r(s, 0UL);
5994 static_assert(strlen_c("") == 0UL, "");
5995 static_assert(strlen_c("1") == 1UL, "");
5996 static_assert(strlen_c("example") == 7UL, "");
5997 static_assert(strlen_c("another\0example") == 7UL, "");
6001 namespace test_rvalue_references
6004 template < int N >
6005 struct answer
6007 static constexpr int value = N;
6010 answer<1> f(int&) { return answer<1>(); }
6011 answer<2> f(const int&) { return answer<2>(); }
6012 answer<3> f(int&&) { return answer<3>(); }
6014 void
6015 test()
6017 int i = 0;
6018 const int c = 0;
6019 static_assert(decltype(f(i))::value == 1, "");
6020 static_assert(decltype(f(c))::value == 2, "");
6021 static_assert(decltype(f(0))::value == 3, "");
6026 namespace test_uniform_initialization
6029 struct test
6031 static const int zero {};
6032 static const int one {1};
6035 static_assert(test::zero == 0, "");
6036 static_assert(test::one == 1, "");
6040 namespace test_lambdas
6043 void
6044 test1()
6046 auto lambda1 = [](){};
6047 auto lambda2 = lambda1;
6048 lambda1();
6049 lambda2();
6053 test2()
6055 auto a = [](int i, int j){ return i + j; }(1, 2);
6056 auto b = []() -> int { return '0'; }();
6057 auto c = [=](){ return a + b; }();
6058 auto d = [&](){ return c; }();
6059 auto e = [a, &b](int x) mutable {
6060 const auto identity = [](int y){ return y; };
6061 for (auto i = 0; i < a; ++i)
6062 a += b--;
6063 return x + identity(a + b);
6064 }(0);
6065 return a + b + c + d + e;
6069 test3()
6071 const auto nullary = [](){ return 0; };
6072 const auto unary = [](int x){ return x; };
6073 using nullary_t = decltype(nullary);
6074 using unary_t = decltype(unary);
6075 const auto higher1st = [](nullary_t f){ return f(); };
6076 const auto higher2nd = [unary](nullary_t f1){
6077 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6079 return higher1st(nullary) + higher2nd(nullary)(unary);
6084 namespace test_variadic_templates
6087 template <int...>
6088 struct sum;
6090 template <int N0, int... N1toN>
6091 struct sum<N0, N1toN...>
6093 static constexpr auto value = N0 + sum<N1toN...>::value;
6096 template <>
6097 struct sum<>
6099 static constexpr auto value = 0;
6102 static_assert(sum<>::value == 0, "");
6103 static_assert(sum<1>::value == 1, "");
6104 static_assert(sum<23>::value == 23, "");
6105 static_assert(sum<1, 2>::value == 3, "");
6106 static_assert(sum<5, 5, 11>::value == 21, "");
6107 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6111 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6112 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6113 // because of this.
6114 namespace test_template_alias_sfinae
6117 struct foo {};
6119 template<typename T>
6120 using member = typename T::member_type;
6122 template<typename T>
6123 void func(...) {}
6125 template<typename T>
6126 void func(member<T>*) {}
6128 void test();
6130 void test() { func<foo>(0); }
6134 } // namespace cxx11
6136 #endif // __cplusplus >= 201103L
6140 _ACEOF
6141 if ac_fn_cxx_try_compile "$LINENO"; then :
6142 ax_cv_cxx_compile_cxx11=yes
6143 else
6144 ax_cv_cxx_compile_cxx11=no
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6149 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6150 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6151 ac_success=yes
6154 if test x$ac_success = xno; then
6155 for alternative in ${ax_cxx_compile_alternatives}; do
6156 switch="-std=gnu++${alternative}"
6157 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6159 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6160 if eval \${$cachevar+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 ac_save_CXX="$CXX"
6164 CXX="$CXX $switch"
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6169 // If the compiler admits that it is not ready for C++11, why torture it?
6170 // Hopefully, this will speed up the test.
6172 #ifndef __cplusplus
6174 #error "This is not a C++ compiler"
6176 #elif __cplusplus < 201103L
6178 #error "This is not a C++11 compiler"
6180 #else
6182 namespace cxx11
6185 namespace test_static_assert
6188 template <typename T>
6189 struct check
6191 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6196 namespace test_final_override
6199 struct Base
6201 virtual ~Base() {}
6202 virtual void f() {}
6205 struct Derived : public Base
6207 virtual ~Derived() override {}
6208 virtual void f() override {}
6213 namespace test_double_right_angle_brackets
6216 template < typename T >
6217 struct check {};
6219 typedef check<void> single_type;
6220 typedef check<check<void>> double_type;
6221 typedef check<check<check<void>>> triple_type;
6222 typedef check<check<check<check<void>>>> quadruple_type;
6226 namespace test_decltype
6232 int a = 1;
6233 decltype(a) b = 2;
6234 return a + b;
6239 namespace test_type_deduction
6242 template < typename T1, typename T2 >
6243 struct is_same
6245 static const bool value = false;
6248 template < typename T >
6249 struct is_same<T, T>
6251 static const bool value = true;
6254 template < typename T1, typename T2 >
6255 auto
6256 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6258 return a1 + a2;
6262 test(const int c, volatile int v)
6264 static_assert(is_same<int, decltype(0)>::value == true, "");
6265 static_assert(is_same<int, decltype(c)>::value == false, "");
6266 static_assert(is_same<int, decltype(v)>::value == false, "");
6267 auto ac = c;
6268 auto av = v;
6269 auto sumi = ac + av + 'x';
6270 auto sumf = ac + av + 1.0;
6271 static_assert(is_same<int, decltype(ac)>::value == true, "");
6272 static_assert(is_same<int, decltype(av)>::value == true, "");
6273 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6274 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6275 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6276 return (sumf > 0.0) ? sumi : add(c, v);
6281 namespace test_noexcept
6284 int f() { return 0; }
6285 int g() noexcept { return 0; }
6287 static_assert(noexcept(f()) == false, "");
6288 static_assert(noexcept(g()) == true, "");
6292 namespace test_constexpr
6295 template < typename CharT >
6296 unsigned long constexpr
6297 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6299 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6302 template < typename CharT >
6303 unsigned long constexpr
6304 strlen_c(const CharT *const s) noexcept
6306 return strlen_c_r(s, 0UL);
6309 static_assert(strlen_c("") == 0UL, "");
6310 static_assert(strlen_c("1") == 1UL, "");
6311 static_assert(strlen_c("example") == 7UL, "");
6312 static_assert(strlen_c("another\0example") == 7UL, "");
6316 namespace test_rvalue_references
6319 template < int N >
6320 struct answer
6322 static constexpr int value = N;
6325 answer<1> f(int&) { return answer<1>(); }
6326 answer<2> f(const int&) { return answer<2>(); }
6327 answer<3> f(int&&) { return answer<3>(); }
6329 void
6330 test()
6332 int i = 0;
6333 const int c = 0;
6334 static_assert(decltype(f(i))::value == 1, "");
6335 static_assert(decltype(f(c))::value == 2, "");
6336 static_assert(decltype(f(0))::value == 3, "");
6341 namespace test_uniform_initialization
6344 struct test
6346 static const int zero {};
6347 static const int one {1};
6350 static_assert(test::zero == 0, "");
6351 static_assert(test::one == 1, "");
6355 namespace test_lambdas
6358 void
6359 test1()
6361 auto lambda1 = [](){};
6362 auto lambda2 = lambda1;
6363 lambda1();
6364 lambda2();
6368 test2()
6370 auto a = [](int i, int j){ return i + j; }(1, 2);
6371 auto b = []() -> int { return '0'; }();
6372 auto c = [=](){ return a + b; }();
6373 auto d = [&](){ return c; }();
6374 auto e = [a, &b](int x) mutable {
6375 const auto identity = [](int y){ return y; };
6376 for (auto i = 0; i < a; ++i)
6377 a += b--;
6378 return x + identity(a + b);
6379 }(0);
6380 return a + b + c + d + e;
6384 test3()
6386 const auto nullary = [](){ return 0; };
6387 const auto unary = [](int x){ return x; };
6388 using nullary_t = decltype(nullary);
6389 using unary_t = decltype(unary);
6390 const auto higher1st = [](nullary_t f){ return f(); };
6391 const auto higher2nd = [unary](nullary_t f1){
6392 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6394 return higher1st(nullary) + higher2nd(nullary)(unary);
6399 namespace test_variadic_templates
6402 template <int...>
6403 struct sum;
6405 template <int N0, int... N1toN>
6406 struct sum<N0, N1toN...>
6408 static constexpr auto value = N0 + sum<N1toN...>::value;
6411 template <>
6412 struct sum<>
6414 static constexpr auto value = 0;
6417 static_assert(sum<>::value == 0, "");
6418 static_assert(sum<1>::value == 1, "");
6419 static_assert(sum<23>::value == 23, "");
6420 static_assert(sum<1, 2>::value == 3, "");
6421 static_assert(sum<5, 5, 11>::value == 21, "");
6422 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6426 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6427 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6428 // because of this.
6429 namespace test_template_alias_sfinae
6432 struct foo {};
6434 template<typename T>
6435 using member = typename T::member_type;
6437 template<typename T>
6438 void func(...) {}
6440 template<typename T>
6441 void func(member<T>*) {}
6443 void test();
6445 void test() { func<foo>(0); }
6449 } // namespace cxx11
6451 #endif // __cplusplus >= 201103L
6455 _ACEOF
6456 if ac_fn_cxx_try_compile "$LINENO"; then :
6457 eval $cachevar=yes
6458 else
6459 eval $cachevar=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 CXX="$ac_save_CXX"
6464 eval ac_res=\$$cachevar
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6466 $as_echo "$ac_res" >&6; }
6467 if eval test x\$$cachevar = xyes; then
6468 CXX="$CXX $switch"
6469 if test -n "$CXXCPP" ; then
6470 CXXCPP="$CXXCPP $switch"
6472 ac_success=yes
6473 break
6475 done
6478 if test x$ac_success = xno; then
6479 for alternative in ${ax_cxx_compile_alternatives}; do
6480 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6481 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6483 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6484 if eval \${$cachevar+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 ac_save_CXX="$CXX"
6488 CXX="$CXX $switch"
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6493 // If the compiler admits that it is not ready for C++11, why torture it?
6494 // Hopefully, this will speed up the test.
6496 #ifndef __cplusplus
6498 #error "This is not a C++ compiler"
6500 #elif __cplusplus < 201103L
6502 #error "This is not a C++11 compiler"
6504 #else
6506 namespace cxx11
6509 namespace test_static_assert
6512 template <typename T>
6513 struct check
6515 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6520 namespace test_final_override
6523 struct Base
6525 virtual ~Base() {}
6526 virtual void f() {}
6529 struct Derived : public Base
6531 virtual ~Derived() override {}
6532 virtual void f() override {}
6537 namespace test_double_right_angle_brackets
6540 template < typename T >
6541 struct check {};
6543 typedef check<void> single_type;
6544 typedef check<check<void>> double_type;
6545 typedef check<check<check<void>>> triple_type;
6546 typedef check<check<check<check<void>>>> quadruple_type;
6550 namespace test_decltype
6556 int a = 1;
6557 decltype(a) b = 2;
6558 return a + b;
6563 namespace test_type_deduction
6566 template < typename T1, typename T2 >
6567 struct is_same
6569 static const bool value = false;
6572 template < typename T >
6573 struct is_same<T, T>
6575 static const bool value = true;
6578 template < typename T1, typename T2 >
6579 auto
6580 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6582 return a1 + a2;
6586 test(const int c, volatile int v)
6588 static_assert(is_same<int, decltype(0)>::value == true, "");
6589 static_assert(is_same<int, decltype(c)>::value == false, "");
6590 static_assert(is_same<int, decltype(v)>::value == false, "");
6591 auto ac = c;
6592 auto av = v;
6593 auto sumi = ac + av + 'x';
6594 auto sumf = ac + av + 1.0;
6595 static_assert(is_same<int, decltype(ac)>::value == true, "");
6596 static_assert(is_same<int, decltype(av)>::value == true, "");
6597 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6598 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6599 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6600 return (sumf > 0.0) ? sumi : add(c, v);
6605 namespace test_noexcept
6608 int f() { return 0; }
6609 int g() noexcept { return 0; }
6611 static_assert(noexcept(f()) == false, "");
6612 static_assert(noexcept(g()) == true, "");
6616 namespace test_constexpr
6619 template < typename CharT >
6620 unsigned long constexpr
6621 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6623 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6626 template < typename CharT >
6627 unsigned long constexpr
6628 strlen_c(const CharT *const s) noexcept
6630 return strlen_c_r(s, 0UL);
6633 static_assert(strlen_c("") == 0UL, "");
6634 static_assert(strlen_c("1") == 1UL, "");
6635 static_assert(strlen_c("example") == 7UL, "");
6636 static_assert(strlen_c("another\0example") == 7UL, "");
6640 namespace test_rvalue_references
6643 template < int N >
6644 struct answer
6646 static constexpr int value = N;
6649 answer<1> f(int&) { return answer<1>(); }
6650 answer<2> f(const int&) { return answer<2>(); }
6651 answer<3> f(int&&) { return answer<3>(); }
6653 void
6654 test()
6656 int i = 0;
6657 const int c = 0;
6658 static_assert(decltype(f(i))::value == 1, "");
6659 static_assert(decltype(f(c))::value == 2, "");
6660 static_assert(decltype(f(0))::value == 3, "");
6665 namespace test_uniform_initialization
6668 struct test
6670 static const int zero {};
6671 static const int one {1};
6674 static_assert(test::zero == 0, "");
6675 static_assert(test::one == 1, "");
6679 namespace test_lambdas
6682 void
6683 test1()
6685 auto lambda1 = [](){};
6686 auto lambda2 = lambda1;
6687 lambda1();
6688 lambda2();
6692 test2()
6694 auto a = [](int i, int j){ return i + j; }(1, 2);
6695 auto b = []() -> int { return '0'; }();
6696 auto c = [=](){ return a + b; }();
6697 auto d = [&](){ return c; }();
6698 auto e = [a, &b](int x) mutable {
6699 const auto identity = [](int y){ return y; };
6700 for (auto i = 0; i < a; ++i)
6701 a += b--;
6702 return x + identity(a + b);
6703 }(0);
6704 return a + b + c + d + e;
6708 test3()
6710 const auto nullary = [](){ return 0; };
6711 const auto unary = [](int x){ return x; };
6712 using nullary_t = decltype(nullary);
6713 using unary_t = decltype(unary);
6714 const auto higher1st = [](nullary_t f){ return f(); };
6715 const auto higher2nd = [unary](nullary_t f1){
6716 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6718 return higher1st(nullary) + higher2nd(nullary)(unary);
6723 namespace test_variadic_templates
6726 template <int...>
6727 struct sum;
6729 template <int N0, int... N1toN>
6730 struct sum<N0, N1toN...>
6732 static constexpr auto value = N0 + sum<N1toN...>::value;
6735 template <>
6736 struct sum<>
6738 static constexpr auto value = 0;
6741 static_assert(sum<>::value == 0, "");
6742 static_assert(sum<1>::value == 1, "");
6743 static_assert(sum<23>::value == 23, "");
6744 static_assert(sum<1, 2>::value == 3, "");
6745 static_assert(sum<5, 5, 11>::value == 21, "");
6746 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6750 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6751 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6752 // because of this.
6753 namespace test_template_alias_sfinae
6756 struct foo {};
6758 template<typename T>
6759 using member = typename T::member_type;
6761 template<typename T>
6762 void func(...) {}
6764 template<typename T>
6765 void func(member<T>*) {}
6767 void test();
6769 void test() { func<foo>(0); }
6773 } // namespace cxx11
6775 #endif // __cplusplus >= 201103L
6779 _ACEOF
6780 if ac_fn_cxx_try_compile "$LINENO"; then :
6781 eval $cachevar=yes
6782 else
6783 eval $cachevar=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 CXX="$ac_save_CXX"
6788 eval ac_res=\$$cachevar
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6790 $as_echo "$ac_res" >&6; }
6791 if eval test x\$$cachevar = xyes; then
6792 CXX="$CXX $switch"
6793 if test -n "$CXXCPP" ; then
6794 CXXCPP="$CXXCPP $switch"
6796 ac_success=yes
6797 break
6799 done
6800 if test x$ac_success = xyes; then
6801 break
6803 done
6806 ac_ext=c
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6813 if test x$ac_success = xno; then
6814 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6817 if test x$ac_success = xno; then
6818 HAVE_CXX11=0
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6820 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6821 else
6822 HAVE_CXX11=1
6824 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6830 if test "${build}" != "${host}"; then
6831 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6832 ac_ext=cpp
6833 ac_cpp='$CXXCPP $CPPFLAGS'
6834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837 ac_success=no
6838 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6839 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6840 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6841 CXX="$CXX_FOR_BUILD"
6842 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6843 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6845 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6846 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6853 // If the compiler admits that it is not ready for C++11, why torture it?
6854 // Hopefully, this will speed up the test.
6856 #ifndef __cplusplus
6858 #error "This is not a C++ compiler"
6860 #elif __cplusplus < 201103L
6862 #error "This is not a C++11 compiler"
6864 #else
6866 namespace cxx11
6869 namespace test_static_assert
6872 template <typename T>
6873 struct check
6875 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6880 namespace test_final_override
6883 struct Base
6885 virtual ~Base() {}
6886 virtual void f() {}
6889 struct Derived : public Base
6891 virtual ~Derived() override {}
6892 virtual void f() override {}
6897 namespace test_double_right_angle_brackets
6900 template < typename T >
6901 struct check {};
6903 typedef check<void> single_type;
6904 typedef check<check<void>> double_type;
6905 typedef check<check<check<void>>> triple_type;
6906 typedef check<check<check<check<void>>>> quadruple_type;
6910 namespace test_decltype
6916 int a = 1;
6917 decltype(a) b = 2;
6918 return a + b;
6923 namespace test_type_deduction
6926 template < typename T1, typename T2 >
6927 struct is_same
6929 static const bool value = false;
6932 template < typename T >
6933 struct is_same<T, T>
6935 static const bool value = true;
6938 template < typename T1, typename T2 >
6939 auto
6940 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6942 return a1 + a2;
6946 test(const int c, volatile int v)
6948 static_assert(is_same<int, decltype(0)>::value == true, "");
6949 static_assert(is_same<int, decltype(c)>::value == false, "");
6950 static_assert(is_same<int, decltype(v)>::value == false, "");
6951 auto ac = c;
6952 auto av = v;
6953 auto sumi = ac + av + 'x';
6954 auto sumf = ac + av + 1.0;
6955 static_assert(is_same<int, decltype(ac)>::value == true, "");
6956 static_assert(is_same<int, decltype(av)>::value == true, "");
6957 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6958 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6959 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6960 return (sumf > 0.0) ? sumi : add(c, v);
6965 namespace test_noexcept
6968 int f() { return 0; }
6969 int g() noexcept { return 0; }
6971 static_assert(noexcept(f()) == false, "");
6972 static_assert(noexcept(g()) == true, "");
6976 namespace test_constexpr
6979 template < typename CharT >
6980 unsigned long constexpr
6981 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6983 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6986 template < typename CharT >
6987 unsigned long constexpr
6988 strlen_c(const CharT *const s) noexcept
6990 return strlen_c_r(s, 0UL);
6993 static_assert(strlen_c("") == 0UL, "");
6994 static_assert(strlen_c("1") == 1UL, "");
6995 static_assert(strlen_c("example") == 7UL, "");
6996 static_assert(strlen_c("another\0example") == 7UL, "");
7000 namespace test_rvalue_references
7003 template < int N >
7004 struct answer
7006 static constexpr int value = N;
7009 answer<1> f(int&) { return answer<1>(); }
7010 answer<2> f(const int&) { return answer<2>(); }
7011 answer<3> f(int&&) { return answer<3>(); }
7013 void
7014 test()
7016 int i = 0;
7017 const int c = 0;
7018 static_assert(decltype(f(i))::value == 1, "");
7019 static_assert(decltype(f(c))::value == 2, "");
7020 static_assert(decltype(f(0))::value == 3, "");
7025 namespace test_uniform_initialization
7028 struct test
7030 static const int zero {};
7031 static const int one {1};
7034 static_assert(test::zero == 0, "");
7035 static_assert(test::one == 1, "");
7039 namespace test_lambdas
7042 void
7043 test1()
7045 auto lambda1 = [](){};
7046 auto lambda2 = lambda1;
7047 lambda1();
7048 lambda2();
7052 test2()
7054 auto a = [](int i, int j){ return i + j; }(1, 2);
7055 auto b = []() -> int { return '0'; }();
7056 auto c = [=](){ return a + b; }();
7057 auto d = [&](){ return c; }();
7058 auto e = [a, &b](int x) mutable {
7059 const auto identity = [](int y){ return y; };
7060 for (auto i = 0; i < a; ++i)
7061 a += b--;
7062 return x + identity(a + b);
7063 }(0);
7064 return a + b + c + d + e;
7068 test3()
7070 const auto nullary = [](){ return 0; };
7071 const auto unary = [](int x){ return x; };
7072 using nullary_t = decltype(nullary);
7073 using unary_t = decltype(unary);
7074 const auto higher1st = [](nullary_t f){ return f(); };
7075 const auto higher2nd = [unary](nullary_t f1){
7076 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7078 return higher1st(nullary) + higher2nd(nullary)(unary);
7083 namespace test_variadic_templates
7086 template <int...>
7087 struct sum;
7089 template <int N0, int... N1toN>
7090 struct sum<N0, N1toN...>
7092 static constexpr auto value = N0 + sum<N1toN...>::value;
7095 template <>
7096 struct sum<>
7098 static constexpr auto value = 0;
7101 static_assert(sum<>::value == 0, "");
7102 static_assert(sum<1>::value == 1, "");
7103 static_assert(sum<23>::value == 23, "");
7104 static_assert(sum<1, 2>::value == 3, "");
7105 static_assert(sum<5, 5, 11>::value == 21, "");
7106 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7110 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7111 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7112 // because of this.
7113 namespace test_template_alias_sfinae
7116 struct foo {};
7118 template<typename T>
7119 using member = typename T::member_type;
7121 template<typename T>
7122 void func(...) {}
7124 template<typename T>
7125 void func(member<T>*) {}
7127 void test();
7129 void test() { func<foo>(0); }
7133 } // namespace cxx11
7135 #endif // __cplusplus >= 201103L
7139 _ACEOF
7140 if ac_fn_cxx_try_compile "$LINENO"; then :
7141 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7142 else
7143 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7148 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7149 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7150 ac_success=yes
7153 if test x$ac_success = xno; then
7154 for alternative in ${ax_cxx_compile_alternatives}; do
7155 switch="-std=gnu++${alternative}"
7156 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7158 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7159 if eval \${$cachevar+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 ac_save_CXX="$CXX"
7163 CXX="$CXX $switch"
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7168 // If the compiler admits that it is not ready for C++11, why torture it?
7169 // Hopefully, this will speed up the test.
7171 #ifndef __cplusplus
7173 #error "This is not a C++ compiler"
7175 #elif __cplusplus < 201103L
7177 #error "This is not a C++11 compiler"
7179 #else
7181 namespace cxx11
7184 namespace test_static_assert
7187 template <typename T>
7188 struct check
7190 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7195 namespace test_final_override
7198 struct Base
7200 virtual ~Base() {}
7201 virtual void f() {}
7204 struct Derived : public Base
7206 virtual ~Derived() override {}
7207 virtual void f() override {}
7212 namespace test_double_right_angle_brackets
7215 template < typename T >
7216 struct check {};
7218 typedef check<void> single_type;
7219 typedef check<check<void>> double_type;
7220 typedef check<check<check<void>>> triple_type;
7221 typedef check<check<check<check<void>>>> quadruple_type;
7225 namespace test_decltype
7231 int a = 1;
7232 decltype(a) b = 2;
7233 return a + b;
7238 namespace test_type_deduction
7241 template < typename T1, typename T2 >
7242 struct is_same
7244 static const bool value = false;
7247 template < typename T >
7248 struct is_same<T, T>
7250 static const bool value = true;
7253 template < typename T1, typename T2 >
7254 auto
7255 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7257 return a1 + a2;
7261 test(const int c, volatile int v)
7263 static_assert(is_same<int, decltype(0)>::value == true, "");
7264 static_assert(is_same<int, decltype(c)>::value == false, "");
7265 static_assert(is_same<int, decltype(v)>::value == false, "");
7266 auto ac = c;
7267 auto av = v;
7268 auto sumi = ac + av + 'x';
7269 auto sumf = ac + av + 1.0;
7270 static_assert(is_same<int, decltype(ac)>::value == true, "");
7271 static_assert(is_same<int, decltype(av)>::value == true, "");
7272 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7273 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7274 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7275 return (sumf > 0.0) ? sumi : add(c, v);
7280 namespace test_noexcept
7283 int f() { return 0; }
7284 int g() noexcept { return 0; }
7286 static_assert(noexcept(f()) == false, "");
7287 static_assert(noexcept(g()) == true, "");
7291 namespace test_constexpr
7294 template < typename CharT >
7295 unsigned long constexpr
7296 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7298 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7301 template < typename CharT >
7302 unsigned long constexpr
7303 strlen_c(const CharT *const s) noexcept
7305 return strlen_c_r(s, 0UL);
7308 static_assert(strlen_c("") == 0UL, "");
7309 static_assert(strlen_c("1") == 1UL, "");
7310 static_assert(strlen_c("example") == 7UL, "");
7311 static_assert(strlen_c("another\0example") == 7UL, "");
7315 namespace test_rvalue_references
7318 template < int N >
7319 struct answer
7321 static constexpr int value = N;
7324 answer<1> f(int&) { return answer<1>(); }
7325 answer<2> f(const int&) { return answer<2>(); }
7326 answer<3> f(int&&) { return answer<3>(); }
7328 void
7329 test()
7331 int i = 0;
7332 const int c = 0;
7333 static_assert(decltype(f(i))::value == 1, "");
7334 static_assert(decltype(f(c))::value == 2, "");
7335 static_assert(decltype(f(0))::value == 3, "");
7340 namespace test_uniform_initialization
7343 struct test
7345 static const int zero {};
7346 static const int one {1};
7349 static_assert(test::zero == 0, "");
7350 static_assert(test::one == 1, "");
7354 namespace test_lambdas
7357 void
7358 test1()
7360 auto lambda1 = [](){};
7361 auto lambda2 = lambda1;
7362 lambda1();
7363 lambda2();
7367 test2()
7369 auto a = [](int i, int j){ return i + j; }(1, 2);
7370 auto b = []() -> int { return '0'; }();
7371 auto c = [=](){ return a + b; }();
7372 auto d = [&](){ return c; }();
7373 auto e = [a, &b](int x) mutable {
7374 const auto identity = [](int y){ return y; };
7375 for (auto i = 0; i < a; ++i)
7376 a += b--;
7377 return x + identity(a + b);
7378 }(0);
7379 return a + b + c + d + e;
7383 test3()
7385 const auto nullary = [](){ return 0; };
7386 const auto unary = [](int x){ return x; };
7387 using nullary_t = decltype(nullary);
7388 using unary_t = decltype(unary);
7389 const auto higher1st = [](nullary_t f){ return f(); };
7390 const auto higher2nd = [unary](nullary_t f1){
7391 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7393 return higher1st(nullary) + higher2nd(nullary)(unary);
7398 namespace test_variadic_templates
7401 template <int...>
7402 struct sum;
7404 template <int N0, int... N1toN>
7405 struct sum<N0, N1toN...>
7407 static constexpr auto value = N0 + sum<N1toN...>::value;
7410 template <>
7411 struct sum<>
7413 static constexpr auto value = 0;
7416 static_assert(sum<>::value == 0, "");
7417 static_assert(sum<1>::value == 1, "");
7418 static_assert(sum<23>::value == 23, "");
7419 static_assert(sum<1, 2>::value == 3, "");
7420 static_assert(sum<5, 5, 11>::value == 21, "");
7421 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7425 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7426 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7427 // because of this.
7428 namespace test_template_alias_sfinae
7431 struct foo {};
7433 template<typename T>
7434 using member = typename T::member_type;
7436 template<typename T>
7437 void func(...) {}
7439 template<typename T>
7440 void func(member<T>*) {}
7442 void test();
7444 void test() { func<foo>(0); }
7448 } // namespace cxx11
7450 #endif // __cplusplus >= 201103L
7454 _ACEOF
7455 if ac_fn_cxx_try_compile "$LINENO"; then :
7456 eval $cachevar=yes
7457 else
7458 eval $cachevar=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 CXX="$ac_save_CXX"
7463 eval ac_res=\$$cachevar
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7465 $as_echo "$ac_res" >&6; }
7466 if eval test x\$$cachevar = xyes; then
7467 CXX="$CXX $switch"
7468 if test -n "$CXXCPP" ; then
7469 CXXCPP="$CXXCPP $switch"
7471 ac_success=yes
7472 break
7474 done
7477 if test x$ac_success = xno; then
7478 for alternative in ${ax_cxx_compile_alternatives}; do
7479 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7480 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7482 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7483 if eval \${$cachevar+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 ac_save_CXX="$CXX"
7487 CXX="$CXX $switch"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7492 // If the compiler admits that it is not ready for C++11, why torture it?
7493 // Hopefully, this will speed up the test.
7495 #ifndef __cplusplus
7497 #error "This is not a C++ compiler"
7499 #elif __cplusplus < 201103L
7501 #error "This is not a C++11 compiler"
7503 #else
7505 namespace cxx11
7508 namespace test_static_assert
7511 template <typename T>
7512 struct check
7514 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7519 namespace test_final_override
7522 struct Base
7524 virtual ~Base() {}
7525 virtual void f() {}
7528 struct Derived : public Base
7530 virtual ~Derived() override {}
7531 virtual void f() override {}
7536 namespace test_double_right_angle_brackets
7539 template < typename T >
7540 struct check {};
7542 typedef check<void> single_type;
7543 typedef check<check<void>> double_type;
7544 typedef check<check<check<void>>> triple_type;
7545 typedef check<check<check<check<void>>>> quadruple_type;
7549 namespace test_decltype
7555 int a = 1;
7556 decltype(a) b = 2;
7557 return a + b;
7562 namespace test_type_deduction
7565 template < typename T1, typename T2 >
7566 struct is_same
7568 static const bool value = false;
7571 template < typename T >
7572 struct is_same<T, T>
7574 static const bool value = true;
7577 template < typename T1, typename T2 >
7578 auto
7579 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7581 return a1 + a2;
7585 test(const int c, volatile int v)
7587 static_assert(is_same<int, decltype(0)>::value == true, "");
7588 static_assert(is_same<int, decltype(c)>::value == false, "");
7589 static_assert(is_same<int, decltype(v)>::value == false, "");
7590 auto ac = c;
7591 auto av = v;
7592 auto sumi = ac + av + 'x';
7593 auto sumf = ac + av + 1.0;
7594 static_assert(is_same<int, decltype(ac)>::value == true, "");
7595 static_assert(is_same<int, decltype(av)>::value == true, "");
7596 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7597 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7598 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7599 return (sumf > 0.0) ? sumi : add(c, v);
7604 namespace test_noexcept
7607 int f() { return 0; }
7608 int g() noexcept { return 0; }
7610 static_assert(noexcept(f()) == false, "");
7611 static_assert(noexcept(g()) == true, "");
7615 namespace test_constexpr
7618 template < typename CharT >
7619 unsigned long constexpr
7620 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7622 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7625 template < typename CharT >
7626 unsigned long constexpr
7627 strlen_c(const CharT *const s) noexcept
7629 return strlen_c_r(s, 0UL);
7632 static_assert(strlen_c("") == 0UL, "");
7633 static_assert(strlen_c("1") == 1UL, "");
7634 static_assert(strlen_c("example") == 7UL, "");
7635 static_assert(strlen_c("another\0example") == 7UL, "");
7639 namespace test_rvalue_references
7642 template < int N >
7643 struct answer
7645 static constexpr int value = N;
7648 answer<1> f(int&) { return answer<1>(); }
7649 answer<2> f(const int&) { return answer<2>(); }
7650 answer<3> f(int&&) { return answer<3>(); }
7652 void
7653 test()
7655 int i = 0;
7656 const int c = 0;
7657 static_assert(decltype(f(i))::value == 1, "");
7658 static_assert(decltype(f(c))::value == 2, "");
7659 static_assert(decltype(f(0))::value == 3, "");
7664 namespace test_uniform_initialization
7667 struct test
7669 static const int zero {};
7670 static const int one {1};
7673 static_assert(test::zero == 0, "");
7674 static_assert(test::one == 1, "");
7678 namespace test_lambdas
7681 void
7682 test1()
7684 auto lambda1 = [](){};
7685 auto lambda2 = lambda1;
7686 lambda1();
7687 lambda2();
7691 test2()
7693 auto a = [](int i, int j){ return i + j; }(1, 2);
7694 auto b = []() -> int { return '0'; }();
7695 auto c = [=](){ return a + b; }();
7696 auto d = [&](){ return c; }();
7697 auto e = [a, &b](int x) mutable {
7698 const auto identity = [](int y){ return y; };
7699 for (auto i = 0; i < a; ++i)
7700 a += b--;
7701 return x + identity(a + b);
7702 }(0);
7703 return a + b + c + d + e;
7707 test3()
7709 const auto nullary = [](){ return 0; };
7710 const auto unary = [](int x){ return x; };
7711 using nullary_t = decltype(nullary);
7712 using unary_t = decltype(unary);
7713 const auto higher1st = [](nullary_t f){ return f(); };
7714 const auto higher2nd = [unary](nullary_t f1){
7715 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7717 return higher1st(nullary) + higher2nd(nullary)(unary);
7722 namespace test_variadic_templates
7725 template <int...>
7726 struct sum;
7728 template <int N0, int... N1toN>
7729 struct sum<N0, N1toN...>
7731 static constexpr auto value = N0 + sum<N1toN...>::value;
7734 template <>
7735 struct sum<>
7737 static constexpr auto value = 0;
7740 static_assert(sum<>::value == 0, "");
7741 static_assert(sum<1>::value == 1, "");
7742 static_assert(sum<23>::value == 23, "");
7743 static_assert(sum<1, 2>::value == 3, "");
7744 static_assert(sum<5, 5, 11>::value == 21, "");
7745 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7749 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7750 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7751 // because of this.
7752 namespace test_template_alias_sfinae
7755 struct foo {};
7757 template<typename T>
7758 using member = typename T::member_type;
7760 template<typename T>
7761 void func(...) {}
7763 template<typename T>
7764 void func(member<T>*) {}
7766 void test();
7768 void test() { func<foo>(0); }
7772 } // namespace cxx11
7774 #endif // __cplusplus >= 201103L
7778 _ACEOF
7779 if ac_fn_cxx_try_compile "$LINENO"; then :
7780 eval $cachevar=yes
7781 else
7782 eval $cachevar=no
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7785 CXX="$ac_save_CXX"
7787 eval ac_res=\$$cachevar
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7789 $as_echo "$ac_res" >&6; }
7790 if eval test x\$$cachevar = xyes; then
7791 CXX="$CXX $switch"
7792 if test -n "$CXXCPP" ; then
7793 CXXCPP="$CXXCPP $switch"
7795 ac_success=yes
7796 break
7798 done
7799 if test x$ac_success = xyes; then
7800 break
7802 done
7804 CXX_FOR_BUILD="$CXX"
7805 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7806 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7807 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7808 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7809 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7810 ac_ext=c
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7817 if test x$ac_success = xno; then
7818 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7821 if test x$ac_success = xno; then
7822 HAVE_CXX11_FOR_BUILD=0
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7824 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7825 else
7826 HAVE_CXX11_FOR_BUILD=1
7828 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7836 # Check whether --enable-pgo-build was given.
7837 if test "${enable_pgo_build+set}" = set; then :
7838 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7839 else
7840 enable_pgo_build=no
7844 # Issue errors and warnings for invalid/strange PGO build combinations.
7845 case "$have_compiler:$host:$target:$enable_pgo_build" in
7846 *:*:*:no) ;;
7848 # Allow the PGO build only if we aren't building a compiler and
7849 # we are in a native configuration.
7850 no:$build:$build:yes | no:$build:$build:lto) ;;
7852 # Disallow the PGO bootstrap if we are building a compiler.
7853 yes:*:*:yes | yes:*:*:lto)
7854 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7857 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7859 esac
7861 if test "$enable_pgo_build" != "no"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7863 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7864 old_CFLAGS="$CFLAGS"
7865 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7866 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 int foo;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7874 else
7875 PGO_BUILD_GEN_CFLAGS=
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 CFLAGS="$old_CFLAGS"
7879 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881 $as_echo "yes" >&6; }
7882 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7889 if test "$enable_pgo_build" = "lto"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7891 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7892 old_CFLAGS="$CFLAGS"
7893 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7894 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7897 int foo;
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"; then :
7901 else
7902 PGO_BUILD_LTO_CFLAGS=
7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 CFLAGS="$old_CFLAGS"
7906 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7913 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7921 # Used for setting $lt_cv_objdir
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7923 $as_echo_n "checking for objdir... " >&6; }
7924 if ${lt_cv_objdir+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 rm -f .libs 2>/dev/null
7928 mkdir .libs 2>/dev/null
7929 if test -d .libs; then
7930 lt_cv_objdir=.libs
7931 else
7932 # MS-DOS does not allow filenames that begin with a dot.
7933 lt_cv_objdir=_libs
7935 rmdir .libs 2>/dev/null
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7938 $as_echo "$lt_cv_objdir" >&6; }
7939 objdir=$lt_cv_objdir
7945 cat >>confdefs.h <<_ACEOF
7946 #define LT_OBJDIR "$lt_cv_objdir/"
7947 _ACEOF
7951 # Check for GMP, MPFR and MPC
7952 gmplibs="-lmpc -lmpfr -lgmp"
7953 gmpinc=
7954 have_gmp=no
7956 # Specify a location for mpc
7957 # check for this first so it ends up on the link line before mpfr.
7959 # Check whether --with-mpc was given.
7960 if test "${with_mpc+set}" = set; then :
7961 withval=$with_mpc;
7965 # Check whether --with-mpc-include was given.
7966 if test "${with_mpc_include+set}" = set; then :
7967 withval=$with_mpc_include;
7971 # Check whether --with-mpc-lib was given.
7972 if test "${with_mpc_lib+set}" = set; then :
7973 withval=$with_mpc_lib;
7977 if test "x$with_mpc" != x; then
7978 gmplibs="-L$with_mpc/lib $gmplibs"
7979 gmpinc="-I$with_mpc/include $gmpinc"
7981 if test "x$with_mpc_include" != x; then
7982 gmpinc="-I$with_mpc_include $gmpinc"
7984 if test "x$with_mpc_lib" != x; then
7985 gmplibs="-L$with_mpc_lib $gmplibs"
7987 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7988 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7989 gmpinc='-I$$s/mpc/src '"$gmpinc"
7990 # Do not test the mpc version. Assume that it is sufficient, since
7991 # it is in the source tree, and the library has not been built yet
7992 # but it would be included on the link line in the version check below
7993 # hence making the test fail.
7994 have_gmp=yes
7997 # Specify a location for mpfr
7998 # check for this first so it ends up on the link line before gmp.
8000 # Check whether --with-mpfr was given.
8001 if test "${with_mpfr+set}" = set; then :
8002 withval=$with_mpfr;
8006 # Check whether --with-mpfr-include was given.
8007 if test "${with_mpfr_include+set}" = set; then :
8008 withval=$with_mpfr_include;
8012 # Check whether --with-mpfr-lib was given.
8013 if test "${with_mpfr_lib+set}" = set; then :
8014 withval=$with_mpfr_lib;
8018 if test "x$with_mpfr" != x; then
8019 gmplibs="-L$with_mpfr/lib $gmplibs"
8020 gmpinc="-I$with_mpfr/include $gmpinc"
8022 if test "x$with_mpfr_include" != x; then
8023 gmpinc="-I$with_mpfr_include $gmpinc"
8025 if test "x$with_mpfr_lib" != x; then
8026 gmplibs="-L$with_mpfr_lib $gmplibs"
8028 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8029 # MPFR v3.1.0 moved the sources into a src sub-directory.
8030 if ! test -d ${srcdir}/mpfr/src; then
8031 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8033 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8034 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8035 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8036 # Do not test the mpfr version. Assume that it is sufficient, since
8037 # it is in the source tree, and the library has not been built yet
8038 # but it would be included on the link line in the version check below
8039 # hence making the test fail.
8040 have_gmp=yes
8043 # Specify a location for gmp
8045 # Check whether --with-gmp was given.
8046 if test "${with_gmp+set}" = set; then :
8047 withval=$with_gmp;
8051 # Check whether --with-gmp-include was given.
8052 if test "${with_gmp_include+set}" = set; then :
8053 withval=$with_gmp_include;
8057 # Check whether --with-gmp-lib was given.
8058 if test "${with_gmp_lib+set}" = set; then :
8059 withval=$with_gmp_lib;
8064 if test "x$with_gmp" != x; then
8065 gmplibs="-L$with_gmp/lib $gmplibs"
8066 gmpinc="-I$with_gmp/include $gmpinc"
8068 if test "x$with_gmp_include" != x; then
8069 gmpinc="-I$with_gmp_include $gmpinc"
8071 if test "x$with_gmp_lib" != x; then
8072 gmplibs="-L$with_gmp_lib $gmplibs"
8074 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8075 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8076 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8077 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8078 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8079 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8080 # Do not test the gmp version. Assume that it is sufficient, since
8081 # it is in the source tree, and the library has not been built yet
8082 # but it would be included on the link line in the version check below
8083 # hence making the test fail.
8084 have_gmp=yes
8087 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8088 have_gmp=yes
8089 saved_CFLAGS="$CFLAGS"
8090 CFLAGS="$CFLAGS $gmpinc"
8091 # Check for the recommended and required versions of GMP.
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8093 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 #include "gmp.h"
8098 main ()
8101 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8102 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8103 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8104 choke me
8105 #endif
8108 return 0;
8110 _ACEOF
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <gmp.h>
8116 main ()
8119 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8120 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8121 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8122 choke me
8123 #endif
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8134 $as_echo "buggy but acceptable" >&6; }
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }; have_gmp=no
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 # If we have GMP, check the MPFR version.
8144 if test x"$have_gmp" = xyes; then
8145 # Check for the recommended and required versions of MPFR.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8147 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <gmp.h>
8151 #include <mpfr.h>
8153 main ()
8156 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8157 choke me
8158 #endif
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <gmp.h>
8168 #include <mpfr.h>
8170 main ()
8173 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8174 choke me
8175 #endif
8178 return 0;
8180 _ACEOF
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8183 $as_echo "yes" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8186 $as_echo "buggy but acceptable" >&6; }
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }; have_gmp=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 # Check for the MPC header version.
8197 if test x"$have_gmp" = xyes ; then
8198 # Check for the recommended and required versions of MPC.
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8200 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 #include <mpc.h>
8205 main ()
8208 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8209 choke me
8210 #endif
8213 return 0;
8215 _ACEOF
8216 if ac_fn_c_try_compile "$LINENO"; then :
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <mpc.h>
8221 main ()
8224 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8225 choke me
8226 #endif
8229 return 0;
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8234 $as_echo "yes" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8237 $as_echo "buggy but acceptable" >&6; }
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }; have_gmp=no
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 # Now check the MPFR library.
8248 if test x"$have_gmp" = xyes; then
8249 saved_LIBS="$LIBS"
8250 LIBS="$LIBS $gmplibs"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8252 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #include <mpc.h>
8257 main ()
8260 mpfr_t n;
8261 mpfr_t x;
8262 mpc_t c;
8263 int t;
8264 mpfr_init (n);
8265 mpfr_init (x);
8266 mpfr_atan2 (n, n, x, MPFR_RNDN);
8267 mpfr_erfc (n, x, MPFR_RNDN);
8268 mpfr_subnormalize (x, t, MPFR_RNDN);
8269 mpfr_clear(n);
8270 mpfr_clear(x);
8271 mpc_init2 (c, 53);
8272 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8273 mpc_cosh (c, c, MPC_RNDNN);
8274 mpc_pow (c, c, c, MPC_RNDNN);
8275 mpc_acosh (c, c, MPC_RNDNN);
8276 mpc_clear (c);
8279 return 0;
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }; have_gmp=no
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 LIBS="$saved_LIBS"
8294 CFLAGS="$saved_CFLAGS"
8296 # The library versions listed in the error message below should match
8297 # the HARD-minimums enforced above.
8298 if test x$have_gmp != xyes; then
8299 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8300 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8301 their locations. Source code for these libraries can be found at
8302 their respective hosting sites as well as at
8303 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8304 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8305 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8306 make sure that you have installed both the libraries and the header
8307 files. They may be located in separate packages." "$LINENO" 5
8311 # Flags needed for both GMP, MPFR and/or MPC.
8319 # Libraries to use for stage1 or when not bootstrapping.
8321 # Check whether --with-stage1-libs was given.
8322 if test "${with_stage1_libs+set}" = set; then :
8323 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8324 stage1_libs=
8325 else
8326 stage1_libs=$withval
8328 else
8329 stage1_libs=
8334 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8335 # default is yes if gcc is being built; no otherwise. The reason for
8336 # this default is that gdb is sometimes linked against GNU Source
8337 # Highlight, which is a shared library that uses C++ exceptions. In
8338 # this case, -static-libstdc++ will cause crashes.
8340 # Check whether --with-static-standard-libraries was given.
8341 if test "${with_static_standard_libraries+set}" = set; then :
8342 withval=$with_static_standard_libraries;
8343 else
8344 with_static_standard_libraries=auto
8347 if test "$with_static_standard_libraries" = auto; then
8348 with_static_standard_libraries=$have_compiler
8351 # Linker flags to use for stage1 or when not bootstrapping.
8353 # Check whether --with-stage1-ldflags was given.
8354 if test "${with_stage1_ldflags+set}" = set; then :
8355 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8356 stage1_ldflags=
8357 else
8358 stage1_ldflags=$withval
8360 else
8361 stage1_ldflags=
8362 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8363 # if supported. But if the user explicitly specified the libraries to use,
8364 # trust that they are doing what they want.
8365 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8366 -a "$have_static_libs" = yes; then
8367 stage1_ldflags="-static-libstdc++ -static-libgcc"
8373 # Libraries to use for stage2 and later builds.
8375 # Check whether --with-boot-libs was given.
8376 if test "${with_boot_libs+set}" = set; then :
8377 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8378 poststage1_libs=
8379 else
8380 poststage1_libs=$withval
8382 else
8383 poststage1_libs=
8388 # Linker flags to use for stage2 and later builds.
8390 # Check whether --with-boot-ldflags was given.
8391 if test "${with_boot_ldflags+set}" = set; then :
8392 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8393 poststage1_ldflags=
8394 else
8395 poststage1_ldflags=$withval
8397 else
8398 poststage1_ldflags=
8399 # In stages 2 and 3, default to linking libstdc++ and libgcc
8400 # statically. But if the user explicitly specified the libraries to
8401 # use, trust that they are doing what they want.
8402 if test "$poststage1_libs" = ""; then
8403 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8409 # GCC GRAPHITE dependency isl.
8410 # Basic setup is inlined here, actual checks are in config/isl.m4
8413 # Check whether --with-isl was given.
8414 if test "${with_isl+set}" = set; then :
8415 withval=$with_isl;
8419 # Treat --without-isl as a request to disable
8420 # GRAPHITE support and skip all following checks.
8421 if test "x$with_isl" != "xno"; then
8422 # Check for isl
8425 # Check whether --with-isl-include was given.
8426 if test "${with_isl_include+set}" = set; then :
8427 withval=$with_isl_include;
8431 # Check whether --with-isl-lib was given.
8432 if test "${with_isl_lib+set}" = set; then :
8433 withval=$with_isl_lib;
8437 # Check whether --enable-isl-version-check was given.
8438 if test "${enable_isl_version_check+set}" = set; then :
8439 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8440 else
8441 ENABLE_ISL_CHECK=yes
8445 # Initialize isllibs and islinc.
8446 case $with_isl in
8448 isllibs=
8449 islinc=
8451 "" | yes)
8454 isllibs="-L$with_isl/lib"
8455 islinc="-I$with_isl/include"
8457 esac
8458 if test "x${with_isl_include}" != x ; then
8459 islinc="-I$with_isl_include"
8461 if test "x${with_isl_lib}" != x; then
8462 isllibs="-L$with_isl_lib"
8464 if test "x${islinc}" = x && test "x${isllibs}" = x \
8465 && test -d ${srcdir}/isl; then
8466 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8467 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8468 ENABLE_ISL_CHECK=no
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8470 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8473 isllibs="${isllibs} -lisl"
8477 if test "${ENABLE_ISL_CHECK}" = yes ; then
8478 _isl_saved_CFLAGS=$CFLAGS
8479 _isl_saved_LDFLAGS=$LDFLAGS
8480 _isl_saved_LIBS=$LIBS
8482 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8483 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8484 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8487 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 #include <isl/schedule.h>
8492 main ()
8494 isl_options_set_schedule_serialize_sccs (NULL, 0);
8496 return 0;
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"; then :
8500 gcc_cv_isl=yes
8501 else
8502 gcc_cv_isl=no
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8507 $as_echo "$gcc_cv_isl" >&6; }
8509 if test "${gcc_cv_isl}" = no ; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8511 $as_echo "required isl version is 0.15 or later" >&6; }
8514 CFLAGS=$_isl_saved_CFLAGS
8515 LDFLAGS=$_isl_saved_LDFLAGS
8516 LIBS=$_isl_saved_LIBS
8524 if test "x${with_isl}" = xno; then
8525 graphite_requested=no
8526 elif test "x${with_isl}" != x \
8527 || test "x${with_isl_include}" != x \
8528 || test "x${with_isl_lib}" != x ; then
8529 graphite_requested=yes
8530 else
8531 graphite_requested=no
8536 if test "${gcc_cv_isl}" = no ; then
8537 isllibs=
8538 islinc=
8541 if test "${graphite_requested}" = yes \
8542 && test "x${isllibs}" = x \
8543 && test "x${islinc}" = x ; then
8545 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8551 # If the isl check failed, disable builds of in-tree variant of isl
8552 if test "x$with_isl" = xno ||
8553 test "x$gcc_cv_isl" = xno; then
8554 noconfigdirs="$noconfigdirs isl"
8555 islinc=
8561 # Check for LTO support.
8562 # Check whether --enable-lto was given.
8563 if test "${enable_lto+set}" = set; then :
8564 enableval=$enable_lto; enable_lto=$enableval
8565 else
8566 enable_lto=yes; default_enable_lto=yes
8573 target_elf=no
8574 case $target in
8575 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8576 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8577 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8578 nvptx-*-none)
8579 target_elf=no
8582 target_elf=yes
8584 esac
8586 if test $target_elf = yes; then :
8587 # ELF platforms build the lto-plugin always.
8588 build_lto_plugin=yes
8590 else
8591 if test x"$default_enable_lto" = x"yes" ; then
8592 case $target in
8593 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8594 # On other non-ELF platforms, LTO has yet to be validated.
8595 *) enable_lto=no ;;
8596 esac
8597 else
8598 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8599 # It would also be nice to check the binutils support, but we don't
8600 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8601 # warn during gcc/ subconfigure; unless you're bootstrapping with
8602 # -flto it won't be needed until after installation anyway.
8603 case $target in
8604 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8605 *) if test x"$enable_lto" = x"yes"; then
8606 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8609 esac
8611 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8612 # Build it unless LTO was explicitly disabled.
8613 case $target in
8614 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8615 *) ;;
8616 esac
8621 # Check whether --enable-linker-plugin-configure-flags was given.
8622 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8623 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8624 else
8625 extra_linker_plugin_configure_flags=
8629 # Check whether --enable-linker-plugin-flags was given.
8630 if test "${enable_linker_plugin_flags+set}" = set; then :
8631 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8632 else
8633 extra_linker_plugin_flags=
8638 # Enable --enable-host-shared.
8639 # Checked early to determine whether jit is an 'all' language
8640 # Check whether --enable-host-shared was given.
8641 if test "${enable_host_shared+set}" = set; then :
8642 enableval=$enable_host_shared; host_shared=$enableval
8643 case $host in
8644 x86_64-*-darwin* | aarch64-*-darwin*)
8645 if test x$host_shared != xyes ; then
8646 # PIC is the default, and actually cannot be switched off.
8647 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8648 host_shared=yes
8649 fi ;;
8650 *) ;;
8651 esac
8652 else
8653 case $host in
8654 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8655 *) host_shared=no ;;
8656 esac
8661 # By default, C and C++ are the only stage 1 languages.
8662 stage1_languages=,c,
8664 # Target libraries that we bootstrap.
8665 bootstrap_target_libs=,target-libgcc,
8667 # Figure out what language subdirectories are present.
8668 # Look if the user specified --enable-languages="..."; if not, use
8669 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8670 # go away some day.
8671 # NB: embedded tabs in this IF block -- do not untabify
8672 if test -d ${srcdir}/gcc; then
8673 if test x"${enable_languages+set}" != xset; then
8674 if test x"${LANGUAGES+set}" = xset; then
8675 enable_languages="${LANGUAGES}"
8676 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8677 else
8678 enable_languages=default
8680 else
8681 if test x"${enable_languages}" = x ||
8682 test x"${enable_languages}" = xyes;
8683 then
8684 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8685 exit 1
8688 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8690 # 'f95' is the old name for the 'fortran' language. We issue a warning
8691 # and make the substitution.
8692 case ,${enable_languages}, in
8693 *,f95,*)
8694 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8695 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8697 esac
8699 # If bootstrapping, C++ must be enabled.
8700 case ",$enable_languages,:$enable_bootstrap" in
8701 *,c++,*:*) ;;
8702 *:yes)
8703 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8704 enable_languages="${enable_languages},c++"
8705 else
8706 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8709 esac
8711 # First scan to see if an enabled language requires some other language.
8712 # We assume that a given config-lang.in will list all the language
8713 # front ends it requires, even if some are required indirectly.
8714 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8715 case ${lang_frag} in
8716 ..) ;;
8717 # The odd quoting in the next line works around
8718 # an apparent bug in bash 1.12 on linux.
8719 ${srcdir}/gcc/[*]/config-lang.in) ;;
8721 # From the config-lang.in, get $language, $lang_requires, and
8722 # $lang_requires_boot_languages.
8723 language=
8724 lang_requires=
8725 lang_requires_boot_languages=
8726 # set srcdir during sourcing lang_frag to the gcc dir.
8727 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8728 # polutes this shell
8729 saved_srcdir=${srcdir}
8730 srcdir=${srcdir}/gcc . ${lang_frag}
8731 srcdir=${saved_srcdir}
8732 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8733 case ,${enable_languages}, in
8734 *,$other,*) ;;
8735 *,default,*) ;;
8736 *,all,*) ;;
8737 *,$language,*)
8738 echo " \`$other' language required by \`$language'; enabling" 1>&2
8739 enable_languages="${enable_languages},${other}"
8741 esac
8742 done
8743 for other in ${lang_requires_boot_languages} ; do
8744 if test "$other" != "c"; then
8745 case ,${enable_stage1_languages}, in
8746 *,$other,*) ;;
8747 *,default,*) ;;
8748 *,all,*) ;;
8750 case ,${enable_languages}, in
8751 *,$language,*)
8752 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8753 enable_stage1_languages="$enable_stage1_languages,${other}"
8755 esac
8757 esac
8759 done
8761 esac
8762 done
8764 new_enable_languages=,c,
8766 # If LTO is enabled, add the LTO front end.
8767 if test "$enable_lto" = "yes" ; then
8768 case ,${enable_languages}, in
8769 *,lto,*) ;;
8770 *) enable_languages="${enable_languages},lto" ;;
8771 esac
8772 if test "${build_lto_plugin}" = "yes" ; then
8773 configdirs="$configdirs lto-plugin"
8777 # If we're building an offloading compiler, add the LTO front end.
8778 if test x"$enable_as_accelerator_for" != x ; then
8779 case ,${enable_languages}, in
8780 *,lto,*) ;;
8781 *) enable_languages="${enable_languages},lto" ;;
8782 esac
8785 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8786 potential_languages=,c,
8788 enabled_target_libs=
8789 disabled_target_libs=
8791 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8792 case ${lang_frag} in
8793 ..) ;;
8794 # The odd quoting in the next line works around
8795 # an apparent bug in bash 1.12 on linux.
8796 ${srcdir}/gcc/[*]/config-lang.in) ;;
8798 # From the config-lang.in, get $language, $target_libs,
8799 # $lang_dirs, $boot_language, and $build_by_default
8800 language=
8801 target_libs=
8802 lang_dirs=
8803 subdir_requires=
8804 boot_language=no
8805 build_by_default=yes
8806 # set srcdir during sourcing. See above about save & restore
8807 saved_srcdir=${srcdir}
8808 srcdir=${srcdir}/gcc . ${lang_frag}
8809 srcdir=${saved_srcdir}
8810 if test x${language} = x; then
8811 echo "${lang_frag} doesn't set \$language." 1>&2
8812 exit 1
8815 if test "$language" = "c++"; then
8816 boot_language=yes
8819 add_this_lang=no
8820 # C is always enabled, so no need to add it again
8821 if test "$language" != "c"; then
8822 case ,${enable_languages}, in
8823 *,${language},*)
8824 # Language was explicitly selected; include it
8825 add_this_lang=yes
8827 *,all,*)
8828 # All languages are enabled
8829 add_this_lang=all
8831 *,default,*)
8832 # 'default' was selected, select it if it is a default language
8833 add_this_lang=${build_by_default}
8835 esac
8838 # Disable languages that need other directories if these aren't available.
8839 for i in $subdir_requires; do
8840 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8841 case ${add_this_lang} in
8842 yes)
8843 # Specifically requested language; tell them.
8844 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8846 all)
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8848 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8849 add_this_lang=unsupported
8852 # Silently disable.
8853 add_this_lang=unsupported
8855 esac
8856 done
8858 # Disable Ada if no preexisting GNAT is available.
8859 case ${add_this_lang}:${language}:${have_gnat} in
8860 yes:ada:no)
8861 # Specifically requested language; tell them.
8862 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8864 all:ada:no)
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8866 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8867 add_this_lang=unsupported
8869 *:ada:no)
8870 # Silently disable.
8871 add_this_lang=unsupported
8873 esac
8875 # Disable D if no preexisting GDC is available.
8876 case ${add_this_lang}:${language}:${have_gdc} in
8877 yes:d:no)
8878 # Specifically requested language; tell them.
8879 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8881 all:d:no)
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8883 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8884 add_this_lang=unsupported
8886 *:d:no)
8887 # Silently disable.
8888 add_this_lang=unsupported
8890 esac
8892 # Disable jit if -enable-host-shared not specified
8893 # but not if building for Mingw. All code in Windows
8894 # is position independent code (PIC).
8895 case $target in
8896 *mingw*) ;;
8898 case ${add_this_lang}:${language}:${host_shared} in
8899 yes:jit:no)
8900 # PR jit/64780: explicitly specify --enable-host-shared
8901 as_fn_error $? "
8902 Enabling language \"jit\" requires --enable-host-shared.
8904 --enable-host-shared typically slows the rest of the compiler down by
8905 a few %, so you must explicitly enable it.
8907 If you want to build both the jit and the regular compiler, it is often
8908 best to do this via two separate configure/builds, in separate
8909 directories, to avoid imposing the performance cost of
8910 --enable-host-shared on the regular compiler." "$LINENO" 5
8912 all:jit:no)
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8914 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8915 add_this_lang=unsupported
8917 *:jit:no)
8918 # Silently disable.
8919 add_this_lang=unsupported
8921 esac
8923 esac
8925 # Disable a language that is unsupported by the target.
8926 case "${add_this_lang}: $unsupported_languages " in
8927 no:*) ;;
8928 unsupported:*) ;;
8929 *:*" $language "*)
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8931 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8932 add_this_lang=unsupported
8934 esac
8936 case $add_this_lang in
8937 unsupported)
8938 # Remove language-dependent dirs.
8939 disabled_target_libs="$disabled_target_libs $target_libs"
8940 noconfigdirs="$noconfigdirs $lang_dirs"
8943 # Remove language-dependent dirs; still show language as supported.
8944 disabled_target_libs="$disabled_target_libs $target_libs"
8945 noconfigdirs="$noconfigdirs $lang_dirs"
8946 potential_languages="${potential_languages}${language},"
8948 all|yes)
8949 new_enable_languages="${new_enable_languages}${language},"
8950 potential_languages="${potential_languages}${language},"
8951 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8952 enabled_target_libs="$enabled_target_libs $target_libs"
8953 case "${boot_language}:,$enable_stage1_languages," in
8954 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8955 # Add to (comma-separated) list of stage 1 languages.
8956 case ",$stage1_languages," in
8957 *,$language,* | ,yes, | ,all,) ;;
8958 *) stage1_languages="${stage1_languages}${language}," ;;
8959 esac
8960 # We need to bootstrap any supporting libraries.
8961 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8963 esac
8965 esac
8967 esac
8968 done
8970 # Add target libraries which are only needed for disabled languages
8971 # to noconfigdirs.
8972 if test -n "$disabled_target_libs"; then
8973 for dir in $disabled_target_libs; do
8974 case " $enabled_target_libs " in
8975 *" ${dir} "*) ;;
8976 *) noconfigdirs="$noconfigdirs $dir" ;;
8977 esac
8978 done
8981 # Check whether --enable-stage1-languages was given.
8982 if test "${enable_stage1_languages+set}" = set; then :
8983 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8984 ,no,|,,)
8985 # Set it to something that will have no effect in the loop below
8986 enable_stage1_languages=c ;;
8987 ,yes,)
8988 enable_stage1_languages=`echo $new_enable_languages | \
8989 sed -e "s/^,//" -e "s/,$//" ` ;;
8990 *,all,*)
8991 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8992 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8993 esac
8995 # Add "good" languages from enable_stage1_languages to stage1_languages,
8996 # while "bad" languages go in missing_languages. Leave no duplicates.
8997 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8998 case $potential_languages in
8999 *,$i,*)
9000 case $stage1_languages in
9001 *,$i,*) ;;
9002 *) stage1_languages="$stage1_languages$i," ;;
9003 esac ;;
9005 case $missing_languages in
9006 *,$i,*) ;;
9007 *) missing_languages="$missing_languages$i," ;;
9008 esac ;;
9009 esac
9010 done
9014 # Remove leading/trailing commas that were added for simplicity
9015 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9016 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9017 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9018 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9020 if test "x$missing_languages" != x; then
9021 as_fn_error $? "
9022 The following requested languages could not be built: ${missing_languages}
9023 Supported languages are: ${potential_languages}" "$LINENO" 5
9025 if test "x$new_enable_languages" != "x$enable_languages"; then
9026 echo The following languages will be built: ${new_enable_languages}
9027 enable_languages="$new_enable_languages"
9031 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9034 # Handle --disable-<component> generically.
9035 for dir in $configdirs $build_configdirs $target_configdirs ; do
9036 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9037 varname=`echo $dirname | sed -e s/+/_/g`
9038 if eval test x\${enable_${varname}} "=" xno ; then
9039 noconfigdirs="$noconfigdirs $dir"
9041 done
9043 # Check for Boehm's garbage collector
9044 # Check whether --enable-objc-gc was given.
9045 if test "${enable_objc_gc+set}" = set; then :
9046 enableval=$enable_objc_gc;
9050 # Check whether --with-target-bdw-gc was given.
9051 if test "${with_target_bdw_gc+set}" = set; then :
9052 withval=$with_target_bdw_gc;
9056 # Check whether --with-target-bdw-gc-include was given.
9057 if test "${with_target_bdw_gc_include+set}" = set; then :
9058 withval=$with_target_bdw_gc_include;
9062 # Check whether --with-target-bdw-gc-lib was given.
9063 if test "${with_target_bdw_gc_lib+set}" = set; then :
9064 withval=$with_target_bdw_gc_lib;
9068 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9070 $as_echo_n "checking for bdw garbage collector... " >&6; }
9071 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9073 $as_echo "using bdw-gc in default locations" >&6; }
9074 else
9075 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9076 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9077 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9078 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9081 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9084 esac
9086 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9087 case ,${enable_languages}, in
9088 *,c++,*)
9089 # Disable libitm, libsanitizer if we're not building libstdc++
9090 case "${noconfigdirs}" in
9091 *target-libstdc++-v3*)
9092 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9094 *) ;;
9095 esac
9098 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9100 esac
9102 # If gcc/ is not in the source tree then we'll not be building a
9103 # target compiler, assume in that case we don't want to build any
9104 # target libraries or tools.
9106 # This was added primarily for the benefit for binutils-gdb who reuse
9107 # this configure script, but don't always have target tools available.
9108 if test ! -d ${srcdir}/gcc; then
9109 skipdirs="${skipdirs} ${target_configdirs}"
9112 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9113 # $build_configdirs and $target_configdirs.
9114 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9116 notsupp=""
9117 for dir in . $skipdirs $noconfigdirs ; do
9118 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9119 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9120 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9121 if test -r $srcdir/$dirname/configure ; then
9122 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9123 true
9124 else
9125 notsupp="$notsupp $dir"
9129 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9130 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9131 if test -r $srcdir/$dirname/configure ; then
9132 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9133 true
9134 else
9135 notsupp="$notsupp $dir"
9139 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9140 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9141 if test -r $srcdir/$dirname/configure ; then
9142 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9143 true
9144 else
9145 notsupp="$notsupp $dir"
9149 done
9151 # Quietly strip out all directories which aren't configurable in this tree.
9152 # This relies on all configurable subdirectories being autoconfiscated, which
9153 # is now the case.
9154 build_configdirs_all="$build_configdirs"
9155 build_configdirs=
9156 for i in ${build_configdirs_all} ; do
9157 j=`echo $i | sed -e s/build-//g`
9158 if test -f ${srcdir}/$j/configure ; then
9159 build_configdirs="${build_configdirs} $i"
9161 done
9163 configdirs_all="$configdirs"
9164 configdirs=
9165 for i in ${configdirs_all} ; do
9166 if test -f ${srcdir}/$i/configure ; then
9167 configdirs="${configdirs} $i"
9169 done
9171 target_configdirs_all="$target_configdirs"
9172 target_configdirs=
9173 for i in ${target_configdirs_all} ; do
9174 j=`echo $i | sed -e s/target-//g`
9175 if test -f ${srcdir}/$j/configure ; then
9176 target_configdirs="${target_configdirs} $i"
9178 done
9180 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9181 # so we have to add it after the preceding checks.
9182 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9183 then
9184 case " $configdirs " in
9185 *" libiberty "*)
9186 # If we can build libiberty, we can also build libiberty-linker-plugin.
9187 configdirs="$configdirs libiberty-linker-plugin"
9188 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9189 --with-libiberty=../libiberty-linker-plugin";;
9191 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9192 esac
9195 # Sometimes we have special requirements for the host libiberty.
9196 extra_host_libiberty_configure_flags=
9197 case " $configdirs " in
9198 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9199 # When these are to be built as shared libraries, the same applies to
9200 # libiberty.
9201 extra_host_libiberty_configure_flags=--enable-shared
9203 esac
9206 # Sometimes we have special requirements for the host zlib.
9207 extra_host_zlib_configure_flags=
9208 case " $configdirs " in
9209 *" bfd "*)
9210 # When bfd is to be built as a shared library, the same applies to
9211 # zlib.
9212 if test "$enable_shared" = "yes"; then
9213 extra_host_zlib_configure_flags=--enable-host-shared
9216 esac
9219 # Produce a warning message for the subdirs we can't configure.
9220 # This isn't especially interesting in the Cygnus tree, but in the individual
9221 # FSF releases, it's important to let people know when their machine isn't
9222 # supported by the one or two programs in a package.
9224 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9225 # If $appdirs is non-empty, at least one of those directories must still
9226 # be configured, or we error out. (E.g., if the gas release supports a
9227 # specified target in some subdirs but not the gas subdir, we shouldn't
9228 # pretend that all is well.)
9229 if test -n "$appdirs" ; then
9230 for dir in $appdirs ; do
9231 if test -r $dir/Makefile.in ; then
9232 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9233 appdirs=""
9234 break
9236 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9237 appdirs=""
9238 break
9241 done
9242 if test -n "$appdirs" ; then
9243 echo "*** This configuration is not supported by this package." 1>&2
9244 exit 1
9247 # Okay, some application will build, or we don't care to check. Still
9248 # notify of subdirs not getting built.
9249 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9250 echo " ${notsupp}" 1>&2
9251 echo " (Any other directories should still work fine.)" 1>&2
9254 case "$host" in
9255 *msdosdjgpp*)
9256 enable_gdbtk=no ;;
9257 esac
9259 # To find our prefix, in gcc_cv_tool_prefix.
9261 # The user is always right.
9262 if test "${PATH_SEPARATOR+set}" != set; then
9263 echo "#! /bin/sh" >conf$$.sh
9264 echo "exit 0" >>conf$$.sh
9265 chmod +x conf$$.sh
9266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9267 PATH_SEPARATOR=';'
9268 else
9269 PATH_SEPARATOR=:
9271 rm -f conf$$.sh
9275 get_gcc_base_ver="cat"
9277 # Check whether --with-gcc-major-version-only was given.
9278 if test "${with_gcc_major_version_only+set}" = set; then :
9279 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9280 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9290 if test "x$exec_prefix" = xNONE; then
9291 if test "x$prefix" = xNONE; then
9292 gcc_cv_tool_prefix=$ac_default_prefix
9293 else
9294 gcc_cv_tool_prefix=$prefix
9296 else
9297 gcc_cv_tool_prefix=$exec_prefix
9300 # If there is no compiler in the tree, use the PATH only. In any
9301 # case, if there is no compiler in the tree nobody should use
9302 # AS_FOR_TARGET and LD_FOR_TARGET.
9303 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9304 if test x$with_gcc_major_version_only = xyes ; then
9305 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9306 else
9307 gcc_version=`cat $srcdir/gcc/BASE-VER`
9309 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9310 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9311 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9312 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9313 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9314 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9315 else
9316 gcc_cv_tool_dirs=
9319 if test x$build = x$target && test -n "$md_exec_prefix"; then
9320 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9325 copy_dirs=
9328 # Check whether --with-build-sysroot was given.
9329 if test "${with_build_sysroot+set}" = set; then :
9330 withval=$with_build_sysroot; if test x"$withval" != x ; then
9331 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9333 else
9334 SYSROOT_CFLAGS_FOR_TARGET=
9340 # Check whether --with-debug-prefix-map was given.
9341 if test "${with_debug_prefix_map+set}" = set; then :
9342 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9343 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9344 for debug_map in $withval; do
9345 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9346 done
9348 else
9349 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9354 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9355 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9356 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9357 # We want to ensure that TARGET libraries (which we know are built with
9358 # gcc) are built with "-O2 -g", so include those options when setting
9359 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9360 if test "x$CFLAGS_FOR_TARGET" = x; then
9361 if test "x${is_cross_compiler}" = xyes; then
9362 CFLAGS_FOR_TARGET="-g -O2"
9363 else
9364 CFLAGS_FOR_TARGET=$CFLAGS
9365 case " $CFLAGS " in
9366 *" -O2 "*) ;;
9367 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9368 esac
9369 case " $CFLAGS " in
9370 *" -g "* | *" -g3 "*) ;;
9371 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9372 esac
9377 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9378 if test "x${is_cross_compiler}" = xyes; then
9379 CXXFLAGS_FOR_TARGET="-g -O2"
9380 else
9381 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9382 case " $CXXFLAGS " in
9383 *" -O2 "*) ;;
9384 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9385 esac
9386 case " $CXXFLAGS " in
9387 *" -g "* | *" -g3 "*) ;;
9388 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9389 esac
9396 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9397 # the named directory are copied to $(tooldir)/sys-include.
9398 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9399 if test x${is_cross_compiler} = xno ; then
9400 echo 1>&2 '***' --with-headers is only supported when cross compiling
9401 exit 1
9403 if test x"${with_headers}" != xyes ; then
9404 x=${gcc_cv_tool_prefix}
9405 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9409 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9410 # the name directories are copied to $(tooldir)/lib. Multiple directories
9411 # are permitted.
9412 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9413 if test x${is_cross_compiler} = xno ; then
9414 echo 1>&2 '***' --with-libs is only supported when cross compiling
9415 exit 1
9417 if test x"${with_libs}" != xyes ; then
9418 # Copy the libraries in reverse order, so that files in the first named
9419 # library override files in subsequent libraries.
9420 x=${gcc_cv_tool_prefix}
9421 for l in ${with_libs}; do
9422 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9423 done
9427 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9429 # This is done by determining whether or not the appropriate directory
9430 # is available, and by checking whether or not specific configurations
9431 # have requested that this magic not happen.
9433 # The command line options always override the explicit settings in
9434 # configure.ac, and the settings in configure.ac override this magic.
9436 # If the default for a toolchain is to use GNU as and ld, and you don't
9437 # want to do that, then you should use the --without-gnu-as and
9438 # --without-gnu-ld options for the configure script. Similarly, if
9439 # the default is to use the included zlib and you don't want to do that,
9440 # you should use the --with-system-zlib option for the configure script.
9442 if test x${use_gnu_as} = x &&
9443 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9444 with_gnu_as=yes
9445 extra_host_args="$extra_host_args --with-gnu-as"
9448 if test x${use_gnu_ld} = x &&
9449 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9450 with_gnu_ld=yes
9451 extra_host_args="$extra_host_args --with-gnu-ld"
9454 if test x${use_included_zlib} = x &&
9455 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9457 else
9458 with_system_zlib=yes
9459 extra_host_args="$extra_host_args --with-system-zlib"
9462 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9463 # can detect this case.
9465 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9466 with_newlib=yes
9467 extra_host_args="$extra_host_args --with-newlib"
9470 # Handle ${copy_dirs}
9471 set fnord ${copy_dirs}
9472 shift
9473 while test $# != 0 ; do
9474 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9476 else
9477 echo Copying $1 to $2
9479 # Use the install script to create the directory and all required
9480 # parent directories.
9481 if test -d $2 ; then
9483 else
9484 echo >config.temp
9485 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9488 # Copy the directory, assuming we have tar.
9489 # FIXME: Should we use B in the second tar? Not all systems support it.
9490 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9492 # It is the responsibility of the user to correctly adjust all
9493 # symlinks. If somebody can figure out how to handle them correctly
9494 # here, feel free to add the code.
9496 echo $1 > $2/COPIED
9498 shift; shift
9499 done
9501 # Determine a target-dependent exec_prefix that the installed
9502 # gcc will search in. Keep this list sorted by triplet, with
9503 # the *-*-osname triplets last.
9504 md_exec_prefix=
9505 case "${target}" in
9506 i[34567]86-pc-msdosdjgpp*)
9507 md_exec_prefix=/dev/env/DJDIR/bin
9509 *-*-hpux* | \
9510 *-*-nto-qnx* | \
9511 *-*-solaris2*)
9512 md_exec_prefix=/usr/ccs/bin
9514 esac
9516 extra_arflags_for_target=
9517 extra_nmflags_for_target=
9518 extra_ranlibflags_for_target=
9519 target_makefile_frag=/dev/null
9520 case "${target}" in
9521 spu-*-*)
9522 target_makefile_frag="config/mt-spu"
9524 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9525 target_makefile_frag="config/mt-sde"
9527 mipsisa*-*-elfoabi*)
9528 target_makefile_frag="config/mt-mips-elfoabi"
9530 mips*-*-*linux* | mips*-*-gnu*)
9531 target_makefile_frag="config/mt-mips-gnu"
9533 nios2-*-elf*)
9534 target_makefile_frag="config/mt-nios2-elf"
9536 *-*-linux-android*)
9537 target_makefile_frag="config/mt-android"
9539 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9540 target_makefile_frag="config/mt-gnu"
9542 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9543 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9544 # commands to handle both 32-bit and 64-bit objects. These flags are
9545 # harmless if we're using GNU nm or ar.
9546 extra_arflags_for_target=" -X32_64"
9547 extra_nmflags_for_target=" -B -X32_64"
9549 esac
9551 alphaieee_frag=/dev/null
9552 case $target in
9553 alpha*-*-*)
9554 # This just makes sure to use the -mieee option to build target libs.
9555 # This should probably be set individually by each library.
9556 alphaieee_frag="config/mt-alphaieee"
9558 esac
9560 # If --enable-target-optspace always use -Os instead of -O2 to build
9561 # the target libraries, similarly if it is not specified, use -Os
9562 # on selected platforms.
9563 ospace_frag=/dev/null
9564 case "${enable_target_optspace}:${target}" in
9565 yes:*)
9566 ospace_frag="config/mt-ospace"
9568 :d30v-*)
9569 ospace_frag="config/mt-d30v"
9571 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9572 ospace_frag="config/mt-ospace"
9574 no:* | :*)
9577 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9579 esac
9581 # Some systems (e.g., one of the i386-aix systems the gas testers are
9582 # using) don't handle "\$" correctly, so don't use it here.
9583 tooldir='${exec_prefix}'/${target_noncanonical}
9584 build_tooldir=${tooldir}
9586 # Create a .gdbinit file which runs the one in srcdir
9587 # and tells GDB to look there for source files.
9589 if test -r ${srcdir}/.gdbinit ; then
9590 case ${srcdir} in
9591 .) ;;
9592 *) cat > ./.gdbinit <<EOF
9593 # ${NO_EDIT}
9594 dir ${srcdir}
9595 dir .
9596 source ${srcdir}/.gdbinit
9599 esac
9602 # Make sure that the compiler is able to generate an executable. If it
9603 # can't, we are probably in trouble. We don't care whether we can run the
9604 # executable--we might be using a cross compiler--we only care whether it
9605 # can be created. At this point the main configure script has set CC.
9606 we_are_ok=no
9607 echo "int main () { return 0; }" > conftest.c
9608 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9609 if test $? = 0 ; then
9610 if test -s conftest || test -s conftest.exe ; then
9611 we_are_ok=yes
9614 case $we_are_ok in
9616 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9617 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9618 rm -f conftest*
9619 exit 1
9621 esac
9622 rm -f conftest*
9624 # Decide which environment variable is used to find dynamic libraries.
9625 case "${host}" in
9626 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9627 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9628 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9629 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9630 esac
9632 # On systems where the dynamic library environment variable is PATH,
9633 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9634 # built executables to PATH.
9635 if test "$RPATH_ENVVAR" = PATH; then
9636 GCC_SHLIB_SUBDIR=/shlib
9637 else
9638 GCC_SHLIB_SUBDIR=
9641 # Adjust the toplevel makefile according to whether bootstrap was selected.
9642 case $enable_bootstrap in
9643 yes)
9644 bootstrap_suffix=bootstrap
9645 BUILD_CONFIG=bootstrap-debug
9648 bootstrap_suffix=no-bootstrap
9649 BUILD_CONFIG=
9651 esac
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9654 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9657 # Check whether --with-build-config was given.
9658 if test "${with_build_config+set}" = set; then :
9659 withval=$with_build_config; case $with_build_config in
9660 yes) with_build_config= ;;
9661 no) with_build_config= BUILD_CONFIG= ;;
9662 esac
9666 if test "x${with_build_config}" != x; then
9667 BUILD_CONFIG=$with_build_config
9668 else
9669 case $BUILD_CONFIG in
9670 bootstrap-debug)
9671 if echo "int f (void) { return 0; }" > conftest.c &&
9672 ${CC} -c conftest.c &&
9673 mv conftest.o conftest.o.g0 &&
9674 ${CC} -c -g conftest.c &&
9675 mv conftest.o conftest.o.g &&
9676 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9678 else
9679 BUILD_CONFIG=
9681 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9683 esac
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9686 $as_echo "$BUILD_CONFIG" >&6; }
9689 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9691 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9692 # Check whether --enable-vtable-verify was given.
9693 if test "${enable_vtable_verify+set}" = set; then :
9694 enableval=$enable_vtable_verify; case "$enableval" in
9695 yes) enable_vtable_verify=yes ;;
9696 no) enable_vtable_verify=no ;;
9697 *) enable_vtable_verify=no;;
9698 esac
9699 else
9700 enable_vtable_verify=no
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9704 $as_echo "$enable_vtable_verify" >&6; }
9706 # Record target_configdirs and the configure arguments for target and
9707 # build configuration in Makefile.
9708 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9709 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9710 bootstrap_fixincludes=no
9712 # If we are building libgomp, bootstrap it.
9713 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9714 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9717 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9718 # or bootstrap-ubsan, bootstrap it.
9719 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9720 case "$BUILD_CONFIG" in
9721 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9722 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9723 bootstrap_fixincludes=yes
9725 esac
9728 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9729 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9730 test "$enable_vtable_verify" != no; then
9731 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9734 # If we are building libatomic and the list of enabled languages includes the
9735 # D frontend, bootstrap it.
9736 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9737 case ,${enable_languages}, in
9738 *,d,*)
9739 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9741 esac
9744 # Determine whether gdb needs tk/tcl or not.
9745 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9746 # and in that case we want gdb to be built without tk. Ugh!
9747 # In fact I believe gdb is the *only* package directly dependent on tk,
9748 # so we should be able to put the 'maybe's in unconditionally and
9749 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9750 # 100% sure that that's safe though.
9752 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9753 case "$enable_gdbtk" in
9755 GDB_TK="" ;;
9756 yes)
9757 GDB_TK="${gdb_tk}" ;;
9759 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9760 # distro. Eventually someone will fix this and move Insight, nee
9761 # gdbtk to a separate directory.
9762 if test -d ${srcdir}/gdb/gdbtk ; then
9763 GDB_TK="${gdb_tk}"
9764 else
9765 GDB_TK=""
9768 esac
9769 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9770 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9772 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9773 # else does, only include them if one of these is built. The Makefile
9774 # provides the ordering, so it's enough here to add to the list.
9775 case " ${configdirs} " in
9776 *\ gdb\ *)
9777 configdirs="${configdirs} gnulib gdbsupport"
9779 *\ gdbserver\ *)
9780 configdirs="${configdirs} gnulib gdbsupport"
9782 *\ sim\ *)
9783 configdirs="${configdirs} gnulib"
9785 esac
9787 # Strip out unwanted targets.
9789 # While at that, we remove Makefiles if we were started for recursive
9790 # configuration, so that the top-level Makefile reconfigures them,
9791 # like we used to do when configure itself was recursive.
9793 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9794 # but now we're fixing up the Makefile ourselves with the additional
9795 # commands passed to AC_CONFIG_FILES. Use separate variables
9796 # extrasub-{build,host,target} not because there is any reason to split
9797 # the substitutions up that way, but only to remain below the limit of
9798 # 99 commands in a script, for HP-UX sed.
9800 # Do not nest @if/@endif or @unless/@endunless pairs, because
9801 # configure will not warn you at all.
9803 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9804 yes:yes:*\ gold\ *:*,c++,*) ;;
9805 yes:yes:*\ gold\ *:*)
9806 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9808 esac
9810 extrasub_build=
9811 for module in ${build_configdirs} ; do
9812 if test -z "${no_recursion}" \
9813 && test -f ${build_subdir}/${module}/Makefile; then
9814 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9815 rm -f ${build_subdir}/${module}/Makefile
9817 extrasub_build="$extrasub_build
9818 /^@if build-$module\$/d
9819 /^@endif build-$module\$/d
9820 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9821 /^@if build-$module-$bootstrap_suffix\$/d
9822 /^@endif build-$module-$bootstrap_suffix\$/d
9823 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9824 done
9825 extrasub_host=
9826 for module in ${configdirs} ; do
9827 if test -z "${no_recursion}"; then
9828 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9829 if test -f ${file}; then
9830 echo 1>&2 "*** removing ${file} to force reconfigure"
9831 rm -f ${file}
9833 done
9835 case ${module},${bootstrap_fixincludes} in
9836 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9837 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9838 esac
9839 extrasub_host="$extrasub_host
9840 /^@if $module\$/d
9841 /^@endif $module\$/d
9842 /^@unless $module\$/,/^@endunless $module\$/d
9843 /^@if $module-$host_bootstrap_suffix\$/d
9844 /^@endif $module-$host_bootstrap_suffix\$/d
9845 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9846 done
9847 extrasub_target=
9848 for module in ${target_configdirs} ; do
9849 if test -z "${no_recursion}" \
9850 && test -f ${target_subdir}/${module}/Makefile; then
9851 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9852 rm -f ${target_subdir}/${module}/Makefile
9855 # We only bootstrap target libraries listed in bootstrap_target_libs.
9856 case $bootstrap_target_libs in
9857 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9858 *) target_bootstrap_suffix=no-bootstrap ;;
9859 esac
9861 extrasub_target="$extrasub_target
9862 /^@if target-$module\$/d
9863 /^@endif target-$module\$/d
9864 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9865 /^@if target-$module-$target_bootstrap_suffix\$/d
9866 /^@endif target-$module-$target_bootstrap_suffix\$/d
9867 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9868 done
9870 # Do the final fixup along with target modules.
9871 extrasub_target="$extrasub_target
9872 /^@if /,/^@endif /d
9873 /^@unless /d
9874 /^@endunless /d"
9876 if test "$enable_pgo_build" != "no"; then
9877 extrasub_build="$extrasub_build
9878 /^@if pgo-build\$/d
9879 /^@endif pgo-build\$/d"
9882 # Create the serialization dependencies. This uses a temporary file.
9884 # Check whether --enable-serial-configure was given.
9885 if test "${enable_serial_configure+set}" = set; then :
9886 enableval=$enable_serial_configure;
9890 case ${enable_serial_configure} in
9891 yes)
9892 enable_serial_build_configure=yes
9893 enable_serial_host_configure=yes
9894 enable_serial_target_configure=yes
9896 esac
9898 # These force 'configure's to be done one at a time, to avoid problems
9899 # with contention over a shared config.cache.
9900 rm -f serdep.tmp
9901 echo '# serdep.tmp' > serdep.tmp
9902 olditem=
9903 test "x${enable_serial_build_configure}" = xyes &&
9904 for item in ${build_configdirs} ; do
9905 case ${olditem} in
9906 "") ;;
9907 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9908 esac
9909 olditem=${item}
9910 done
9911 olditem=
9912 test "x${enable_serial_host_configure}" = xyes &&
9913 for item in ${configdirs} ; do
9914 case ${olditem} in
9915 "") ;;
9916 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9917 esac
9918 olditem=${item}
9919 done
9920 olditem=
9921 test "x${enable_serial_target_configure}" = xyes &&
9922 for item in ${target_configdirs} ; do
9923 case ${olditem} in
9924 "") ;;
9925 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9926 esac
9927 olditem=${item}
9928 done
9929 serialization_dependencies=serdep.tmp
9932 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9933 # target, nonopt, and variable assignments. These are the ones we
9934 # might not want to pass down to subconfigures. The exception being
9935 # --cache-file=/dev/null, which is used to turn off the use of cache
9936 # files altogether, and which should be passed on to subconfigures.
9937 # Also strip program-prefix, program-suffix, and program-transform-name,
9938 # so that we can pass down a consistent program-transform-name.
9939 baseargs=
9940 tbaseargs=
9941 keep_next=no
9942 skip_next=no
9943 eval "set -- $ac_configure_args"
9944 for ac_arg
9946 if test X"$skip_next" = X"yes"; then
9947 skip_next=no
9948 continue
9950 if test X"$keep_next" = X"yes"; then
9951 case $ac_arg in
9952 *\'*)
9953 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9954 esac
9955 baseargs="$baseargs '$ac_arg'"
9956 tbaseargs="$tbaseargs '$ac_arg'"
9957 keep_next=no
9958 continue
9961 # Handle separated arguments. Based on the logic generated by
9962 # autoconf 2.59.
9963 case $ac_arg in
9964 *=* | --config-cache | -C | -disable-* | --disable-* \
9965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9967 | -with-* | --with-* | -without-* | --without-* | --x)
9968 separate_arg=no
9971 separate_arg=yes
9974 separate_arg=no
9976 esac
9978 skip_targ=no
9979 case $ac_arg in
9981 --with-* | --without-*)
9982 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9984 case $libopt in
9985 *[-_]include)
9986 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9988 *[-_]lib)
9989 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9992 lib=$libopt
9994 esac
9997 case $lib in
9998 mpc | mpfr | gmp | isl)
9999 # If we're processing --with-$lib, --with-$lib-include or
10000 # --with-$lib-lib, for one of the libs above, and target is
10001 # different from host, don't pass the current argument to any
10002 # target library's configure.
10003 if test x$is_cross_compiler = xyes; then
10004 skip_targ=yes
10007 esac
10009 esac
10011 case "$ac_arg" in
10012 --cache-file=/dev/null | \
10013 -cache-file=/dev/null )
10014 # Handled here to avoid the test to skip args below.
10015 baseargs="$baseargs '$ac_arg'"
10016 tbaseargs="$tbaseargs '$ac_arg'"
10017 # Assert: $separate_arg should always be no.
10018 keep_next=$separate_arg
10020 --no*)
10021 continue
10023 --c* | \
10024 --sr* | \
10025 --ho* | \
10026 --bu* | \
10027 --t* | \
10028 --program-* | \
10029 -cache_file* | \
10030 -srcdir* | \
10031 -host* | \
10032 -build* | \
10033 -target* | \
10034 -program-prefix* | \
10035 -program-suffix* | \
10036 -program-transform-name* )
10037 skip_next=$separate_arg
10038 continue
10041 # An option. Add it.
10042 case $ac_arg in
10043 *\'*)
10044 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10045 esac
10046 baseargs="$baseargs '$ac_arg'"
10047 if test X"$skip_targ" = Xno; then
10048 tbaseargs="$tbaseargs '$ac_arg'"
10050 keep_next=$separate_arg
10053 # Either a variable assignment, or a nonopt (triplet). Don't
10054 # pass it down; let the Makefile handle this.
10055 continue
10057 esac
10058 done
10059 # Remove the initial space we just introduced and, as these will be
10060 # expanded by make, quote '$'.
10061 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10063 # Add in --program-transform-name, after --program-prefix and
10064 # --program-suffix have been applied to it. Autoconf has already
10065 # doubled dollar signs and backslashes in program_transform_name; we want
10066 # the backslashes un-doubled, and then the entire thing wrapped in single
10067 # quotes, because this will be expanded first by make and then by the shell.
10068 # Also, because we want to override the logic in subdir configure scripts to
10069 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10070 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10071 ${program_transform_name}
10072 EOF_SED
10073 gcc_transform_name=`cat conftestsed.out`
10074 rm -f conftestsed.out
10075 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10076 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10077 if test "$silent" = yes; then
10078 baseargs="$baseargs --silent"
10079 tbaseargs="$tbaseargs --silent"
10081 baseargs="$baseargs --disable-option-checking"
10082 tbaseargs="$tbaseargs --disable-option-checking"
10084 # Record and document user additions to sub configure arguments.
10089 # For the build-side libraries, we just need to pretend we're native,
10090 # and not use the same cache file. Multilibs are neither needed nor
10091 # desired. We can't even use the same cache file for all build-side
10092 # libraries, as they're compiled differently; some with C, some with
10093 # C++ or with different feature-enabling options.
10094 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10096 # For host modules, accept cache file option, or specification as blank.
10097 case "${cache_file}" in
10098 "") # empty
10099 cache_file_option="" ;;
10100 /* | [A-Za-z]:[\\/]* ) # absolute path
10101 cache_file_option="--cache-file=${cache_file}" ;;
10102 *) # relative path
10103 cache_file_option="--cache-file=../${cache_file}" ;;
10104 esac
10106 # Host dirs don't like to share a cache file either, horribly enough.
10107 # This seems to be due to autoconf 2.5x stupidity.
10108 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10110 target_configargs="$target_configargs ${tbaseargs}"
10112 # Passing a --with-cross-host argument lets the target libraries know
10113 # whether they are being built with a cross-compiler or being built
10114 # native. However, it would be better to use other mechanisms to make the
10115 # sorts of decisions they want to make on this basis. Please consider
10116 # this option to be deprecated. FIXME.
10117 if test x${is_cross_compiler} = xyes ; then
10118 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10121 # Special user-friendly check for native x86_64-linux build, if
10122 # multilib is not explicitly enabled.
10123 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10124 x86_64-*linux*:yes:$build:$build:)
10125 # Make sure we have a development environment that handles 32-bit
10126 dev64=no
10127 echo "int main () { return 0; }" > conftest.c
10128 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10129 if test $? = 0 ; then
10130 if test -s conftest || test -s conftest.exe ; then
10131 dev64=yes
10134 rm -f conftest*
10135 if test x${dev64} != xyes ; then
10136 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
10139 esac
10141 # Default to --enable-multilib.
10142 if test x${enable_multilib} = x ; then
10143 target_configargs="--enable-multilib ${target_configargs}"
10146 # Pass --with-newlib if appropriate. Note that target_configdirs has
10147 # changed from the earlier setting of with_newlib.
10148 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10149 target_configargs="--with-newlib ${target_configargs}"
10152 # Different target subdirs use different values of certain variables
10153 # (notably CXX). Worse, multilibs use *lots* of different values.
10154 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10155 # it doesn't automatically accept command-line overrides of them.
10156 # This means it's not safe for target subdirs to share a cache file,
10157 # which is disgusting, but there you have it. Hopefully this can be
10158 # fixed in future. It's still worthwhile to use a cache file for each
10159 # directory. I think.
10161 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10162 # We need to pass --target, as newer autoconf's requires consistency
10163 # for target_alias and gcc doesn't manage it consistently.
10164 target_configargs="--cache-file=./config.cache ${target_configargs}"
10166 FLAGS_FOR_TARGET=
10167 case " $target_configdirs " in
10168 *" newlib "*)
10169 case " $target_configargs " in
10170 *" --with-newlib "*)
10171 case "$target" in
10172 *-cygwin*)
10173 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10175 esac
10177 # If we're not building GCC, don't discard standard headers.
10178 if test -d ${srcdir}/gcc; then
10179 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10181 if test "${build}" != "${host}"; then
10182 # On Canadian crosses, CC_FOR_TARGET will have already been set
10183 # by `configure', so we won't have an opportunity to add -Bgcc/
10184 # to it. This is right: we don't want to search that directory
10185 # for binaries, but we want the header files in there, so add
10186 # them explicitly.
10187 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10189 # Someone might think of using the pre-installed headers on
10190 # Canadian crosses, in case the installed compiler is not fully
10191 # compatible with the compiler being built. In this case, it
10192 # would be better to flag an error than risking having
10193 # incompatible object files being constructed. We can't
10194 # guarantee that an error will be flagged, but let's hope the
10195 # compiler will do it, when presented with incompatible header
10196 # files.
10200 case "${target}-${is_cross_compiler}" in
10201 i[3456789]86-*-linux*-no)
10202 # Here host == target, so we don't need to build gcc,
10203 # so we don't want to discard standard headers.
10204 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10207 # If we're building newlib, use its generic headers last, but search
10208 # for any libc-related directories first (so make it the last -B
10209 # switch).
10210 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10212 # If we're building libgloss, find the startup file, simulator library
10213 # and linker script.
10214 case " $target_configdirs " in
10215 *" libgloss "*)
10216 # Look for startup file, simulator library and maybe linker script.
10217 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10218 # Look for libnosys.a in case the target needs it.
10219 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10220 # Most targets have the linker script in the source directory.
10221 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10223 esac
10225 esac
10227 esac
10229 esac
10231 case "$target" in
10232 x86_64-*mingw* | *-w64-mingw*)
10233 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10234 # however, use a symlink named 'mingw' in ${prefix} .
10235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10237 *-mingw*)
10238 # MinGW can't be handled as Cygwin above since it does not use newlib.
10239 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'
10241 esac
10243 # Allow the user to override the flags for
10244 # our build compiler if desired.
10245 if test x"${build}" = x"${host}" ; then
10246 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10247 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10248 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10249 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10252 # On Canadian crosses, we'll be searching the right directories for
10253 # the previously-installed cross compiler, so don't bother to add
10254 # flags for directories within the install tree of the compiler
10255 # being built; programs in there won't even run.
10256 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10257 # Search for pre-installed headers if nothing else fits.
10258 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10261 if test "x${use_gnu_ld}" = x &&
10262 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10263 # Arrange for us to find uninstalled linker scripts.
10264 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10267 # Search for other target-specific linker scripts and such.
10268 case "${target}" in
10269 mep*)
10270 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10272 # The VxWorks support for shared libraries is getting in
10273 # incrementally. Make sure it doesn't get activated implicitly:
10274 *vxworks*)
10275 if test "${enable_shared-unset}" = unset ; then
10276 enable_shared=no
10277 # So the build of libraries knows ...
10278 target_configargs="${target_configargs} --disable-shared"
10279 # So gcc knows ...
10280 host_configargs="${host_configargs} --disable-shared"
10283 esac
10285 # Makefile fragments.
10286 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10288 eval fragval=\$$frag
10289 if test $fragval != /dev/null; then
10290 eval $frag=${srcdir}/$fragval
10292 done
10298 # Miscellanea: directories, flags, etc.
10307 # Build module lists & subconfigure args.
10311 # Host module lists & subconfigure args.
10316 # Target module lists & subconfigure args.
10320 # Build tools.
10341 # Generate default definitions for YACC, M4, LEX and other programs that run
10342 # on the build machine. These are used if the Makefile can't locate these
10343 # programs in objdir.
10344 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10346 for ac_prog in 'bison -y' byacc yacc
10348 # Extract the first word of "$ac_prog", so it can be a program name with args.
10349 set dummy $ac_prog; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_prog_YACC+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 if test -n "$YACC"; then
10356 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10357 else
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_YACC="$ac_prog"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10369 done
10370 done
10371 IFS=$as_save_IFS
10375 YACC=$ac_cv_prog_YACC
10376 if test -n "$YACC"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10378 $as_echo "$YACC" >&6; }
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10385 test -n "$YACC" && break
10386 done
10387 test -n "$YACC" || YACC="$MISSING bison -y"
10389 case " $build_configdirs " in
10390 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10391 esac
10393 for ac_prog in bison
10395 # Extract the first word of "$ac_prog", so it can be a program name with args.
10396 set dummy $ac_prog; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if ${ac_cv_prog_BISON+:} false; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test -n "$BISON"; then
10403 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_prog_BISON="$ac_prog"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10422 BISON=$ac_cv_prog_BISON
10423 if test -n "$BISON"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10425 $as_echo "$BISON" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10432 test -n "$BISON" && break
10433 done
10434 test -n "$BISON" || BISON="$MISSING bison"
10436 case " $build_configdirs " in
10437 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10438 esac
10440 for ac_prog in gm4 gnum4 m4
10442 # Extract the first word of "$ac_prog", so it can be a program name with args.
10443 set dummy $ac_prog; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if ${ac_cv_prog_M4+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 if test -n "$M4"; then
10450 ac_cv_prog_M4="$M4" # Let the user override the test.
10451 else
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_prog_M4="$ac_prog"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10463 done
10464 done
10465 IFS=$as_save_IFS
10469 M4=$ac_cv_prog_M4
10470 if test -n "$M4"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10472 $as_echo "$M4" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; }
10479 test -n "$M4" && break
10480 done
10481 test -n "$M4" || M4="$MISSING m4"
10483 case " $build_configdirs " in
10484 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10485 esac
10487 for ac_prog in flex lex
10489 # Extract the first word of "$ac_prog", so it can be a program name with args.
10490 set dummy $ac_prog; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if ${ac_cv_prog_LEX+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 if test -n "$LEX"; then
10497 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506 ac_cv_prog_LEX="$ac_prog"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 break 2
10510 done
10511 done
10512 IFS=$as_save_IFS
10516 LEX=$ac_cv_prog_LEX
10517 if test -n "$LEX"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10519 $as_echo "$LEX" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10526 test -n "$LEX" && break
10527 done
10528 test -n "$LEX" || LEX="$MISSING flex"
10530 case " $build_configdirs " in
10531 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10532 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10533 esac
10535 for ac_prog in flex
10537 # Extract the first word of "$ac_prog", so it can be a program name with args.
10538 set dummy $ac_prog; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if ${ac_cv_prog_FLEX+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 if test -n "$FLEX"; then
10545 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_prog_FLEX="$ac_prog"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10558 done
10559 done
10560 IFS=$as_save_IFS
10564 FLEX=$ac_cv_prog_FLEX
10565 if test -n "$FLEX"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10567 $as_echo "$FLEX" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10574 test -n "$FLEX" && break
10575 done
10576 test -n "$FLEX" || FLEX="$MISSING flex"
10578 case " $build_configdirs " in
10579 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10580 esac
10582 for ac_prog in makeinfo
10584 # Extract the first word of "$ac_prog", so it can be a program name with args.
10585 set dummy $ac_prog; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_MAKEINFO+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 if test -n "$MAKEINFO"; then
10592 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_MAKEINFO="$ac_prog"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10607 IFS=$as_save_IFS
10611 MAKEINFO=$ac_cv_prog_MAKEINFO
10612 if test -n "$MAKEINFO"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10614 $as_echo "$MAKEINFO" >&6; }
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10621 test -n "$MAKEINFO" && break
10622 done
10623 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10625 case " $build_configdirs " in
10626 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10629 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10630 # higher, else we use the "missing" dummy.
10631 if ${MAKEINFO} --version \
10632 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10634 else
10635 MAKEINFO="$MISSING makeinfo"
10639 esac
10641 # FIXME: expect and dejagnu may become build tools?
10643 for ac_prog in expect
10645 # Extract the first word of "$ac_prog", so it can be a program name with args.
10646 set dummy $ac_prog; ac_word=$2
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10648 $as_echo_n "checking for $ac_word... " >&6; }
10649 if ${ac_cv_prog_EXPECT+:} false; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 if test -n "$EXPECT"; then
10653 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10654 else
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656 for as_dir in $PATH
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10662 ac_cv_prog_EXPECT="$ac_prog"
10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 break 2
10666 done
10667 done
10668 IFS=$as_save_IFS
10672 EXPECT=$ac_cv_prog_EXPECT
10673 if test -n "$EXPECT"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10675 $as_echo "$EXPECT" >&6; }
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10682 test -n "$EXPECT" && break
10683 done
10684 test -n "$EXPECT" || EXPECT="expect"
10686 case " $configdirs " in
10687 *" expect "*)
10688 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10690 esac
10692 for ac_prog in runtest
10694 # Extract the first word of "$ac_prog", so it can be a program name with args.
10695 set dummy $ac_prog; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if ${ac_cv_prog_RUNTEST+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 if test -n "$RUNTEST"; then
10702 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10703 else
10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10711 ac_cv_prog_RUNTEST="$ac_prog"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10715 done
10716 done
10717 IFS=$as_save_IFS
10721 RUNTEST=$ac_cv_prog_RUNTEST
10722 if test -n "$RUNTEST"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10724 $as_echo "$RUNTEST" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10731 test -n "$RUNTEST" && break
10732 done
10733 test -n "$RUNTEST" || RUNTEST="runtest"
10735 case " $configdirs " in
10736 *" dejagnu "*)
10737 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10739 esac
10742 # Host tools.
10743 ncn_tool_prefix=
10744 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10745 ncn_target_tool_prefix=
10746 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10750 if test -n "$AR"; then
10751 ac_cv_prog_AR=$AR
10752 elif test -n "$ac_cv_prog_AR"; then
10753 AR=$ac_cv_prog_AR
10756 if test -n "$ac_cv_prog_AR"; then
10757 for ncn_progname in ar; do
10758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10759 set dummy ${ncn_progname}; ac_word=$2
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10761 $as_echo_n "checking for $ac_word... " >&6; }
10762 if ${ac_cv_prog_AR+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 if test -n "$AR"; then
10766 ac_cv_prog_AR="$AR" # Let the user override the test.
10767 else
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10775 ac_cv_prog_AR="${ncn_progname}"
10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10779 done
10780 done
10781 IFS=$as_save_IFS
10785 AR=$ac_cv_prog_AR
10786 if test -n "$AR"; then
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10788 $as_echo "$AR" >&6; }
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791 $as_echo "no" >&6; }
10795 done
10798 for ncn_progname in ar; do
10799 if test -n "$ncn_tool_prefix"; then
10800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10803 $as_echo_n "checking for $ac_word... " >&6; }
10804 if ${ac_cv_prog_AR+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test -n "$AR"; then
10808 ac_cv_prog_AR="$AR" # Let the user override the test.
10809 else
10810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811 for as_dir in $PATH
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10817 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10821 done
10822 done
10823 IFS=$as_save_IFS
10827 AR=$ac_cv_prog_AR
10828 if test -n "$AR"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10830 $as_echo "$AR" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10838 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10840 set dummy ${ncn_progname}; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if ${ac_cv_prog_AR+:} false; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 if test -n "$AR"; then
10847 ac_cv_prog_AR="$AR" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_AR="${ncn_progname}"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10860 done
10861 done
10862 IFS=$as_save_IFS
10866 AR=$ac_cv_prog_AR
10867 if test -n "$AR"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10869 $as_echo "$AR" >&6; }
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10877 test -n "$ac_cv_prog_AR" && break
10878 done
10880 if test -z "$ac_cv_prog_AR" ; then
10881 set dummy ar
10882 if test $build = $host ; then
10883 AR="$2"
10884 else
10885 AR="${ncn_tool_prefix}$2"
10891 if test -n "$AS"; then
10892 ac_cv_prog_AS=$AS
10893 elif test -n "$ac_cv_prog_AS"; then
10894 AS=$ac_cv_prog_AS
10897 if test -n "$ac_cv_prog_AS"; then
10898 for ncn_progname in as; do
10899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10900 set dummy ${ncn_progname}; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if ${ac_cv_prog_AS+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 if test -n "$AS"; then
10907 ac_cv_prog_AS="$AS" # Let the user override the test.
10908 else
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10912 IFS=$as_save_IFS
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916 ac_cv_prog_AS="${ncn_progname}"
10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918 break 2
10920 done
10921 done
10922 IFS=$as_save_IFS
10926 AS=$ac_cv_prog_AS
10927 if test -n "$AS"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10929 $as_echo "$AS" >&6; }
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10936 done
10939 for ncn_progname in as; do
10940 if test -n "$ncn_tool_prefix"; then
10941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10944 $as_echo_n "checking for $ac_word... " >&6; }
10945 if ${ac_cv_prog_AS+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 if test -n "$AS"; then
10949 ac_cv_prog_AS="$AS" # Let the user override the test.
10950 else
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10958 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 break 2
10962 done
10963 done
10964 IFS=$as_save_IFS
10968 AS=$ac_cv_prog_AS
10969 if test -n "$AS"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10971 $as_echo "$AS" >&6; }
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10979 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_progname}; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983 $as_echo_n "checking for $ac_word... " >&6; }
10984 if ${ac_cv_prog_AS+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 if test -n "$AS"; then
10988 ac_cv_prog_AS="$AS" # Let the user override the test.
10989 else
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_prog_AS="${ncn_progname}"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11001 done
11002 done
11003 IFS=$as_save_IFS
11007 AS=$ac_cv_prog_AS
11008 if test -n "$AS"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11010 $as_echo "$AS" >&6; }
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11018 test -n "$ac_cv_prog_AS" && break
11019 done
11021 if test -z "$ac_cv_prog_AS" ; then
11022 set dummy as
11023 if test $build = $host ; then
11024 AS="$2"
11025 else
11026 AS="${ncn_tool_prefix}$2"
11032 if test -n "$DLLTOOL"; then
11033 ac_cv_prog_DLLTOOL=$DLLTOOL
11034 elif test -n "$ac_cv_prog_DLLTOOL"; then
11035 DLLTOOL=$ac_cv_prog_DLLTOOL
11038 if test -n "$ac_cv_prog_DLLTOOL"; then
11039 for ncn_progname in dlltool; do
11040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11041 set dummy ${ncn_progname}; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if ${ac_cv_prog_DLLTOOL+:} false; then :
11045 $as_echo_n "(cached) " >&6
11046 else
11047 if test -n "$DLLTOOL"; then
11048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11049 else
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $PATH
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11057 ac_cv_prog_DLLTOOL="${ncn_progname}"
11058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11061 done
11062 done
11063 IFS=$as_save_IFS
11067 DLLTOOL=$ac_cv_prog_DLLTOOL
11068 if test -n "$DLLTOOL"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11070 $as_echo "$DLLTOOL" >&6; }
11071 else
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; }
11077 done
11080 for ncn_progname in dlltool; do
11081 if test -n "$ncn_tool_prefix"; then
11082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_prog_DLLTOOL+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 if test -n "$DLLTOOL"; then
11090 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11091 else
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $PATH
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 break 2
11103 done
11104 done
11105 IFS=$as_save_IFS
11109 DLLTOOL=$ac_cv_prog_DLLTOOL
11110 if test -n "$DLLTOOL"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11112 $as_echo "$DLLTOOL" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11120 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122 set dummy ${ncn_progname}; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_prog_DLLTOOL+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 if test -n "$DLLTOOL"; then
11129 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11130 else
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_DLLTOOL="${ncn_progname}"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11142 done
11143 done
11144 IFS=$as_save_IFS
11148 DLLTOOL=$ac_cv_prog_DLLTOOL
11149 if test -n "$DLLTOOL"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11151 $as_echo "$DLLTOOL" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11159 test -n "$ac_cv_prog_DLLTOOL" && break
11160 done
11162 if test -z "$ac_cv_prog_DLLTOOL" ; then
11163 set dummy dlltool
11164 if test $build = $host ; then
11165 DLLTOOL="$2"
11166 else
11167 DLLTOOL="${ncn_tool_prefix}$2"
11173 if test -n "$DSYMUTIL"; then
11174 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11175 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11176 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11179 if test -n "$ac_cv_prog_DSYMUTIL"; then
11180 for ncn_progname in dsymutil; do
11181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11182 set dummy ${ncn_progname}; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11186 $as_echo_n "(cached) " >&6
11187 else
11188 if test -n "$DSYMUTIL"; then
11189 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11190 else
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11202 done
11203 done
11204 IFS=$as_save_IFS
11208 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11209 if test -n "$DSYMUTIL"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11211 $as_echo "$DSYMUTIL" >&6; }
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11218 done
11221 for ncn_progname in dsymutil; do
11222 if test -n "$ncn_tool_prefix"; then
11223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$DSYMUTIL"; then
11231 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11244 done
11245 done
11246 IFS=$as_save_IFS
11250 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11251 if test -n "$DSYMUTIL"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11253 $as_echo "$DSYMUTIL" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11261 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test -n "$DSYMUTIL"; then
11270 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11290 if test -n "$DSYMUTIL"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11292 $as_echo "$DSYMUTIL" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11300 test -n "$ac_cv_prog_DSYMUTIL" && break
11301 done
11303 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11304 set dummy dsymutil
11305 if test $build = $host ; then
11306 DSYMUTIL="$2"
11307 else
11308 DSYMUTIL="${ncn_tool_prefix}$2"
11314 if test -n "$LD"; then
11315 ac_cv_prog_LD=$LD
11316 elif test -n "$ac_cv_prog_LD"; then
11317 LD=$ac_cv_prog_LD
11320 if test -n "$ac_cv_prog_LD"; then
11321 for ncn_progname in ld; do
11322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11323 set dummy ${ncn_progname}; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_prog_LD+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 if test -n "$LD"; then
11330 ac_cv_prog_LD="$LD" # Let the user override the test.
11331 else
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339 ac_cv_prog_LD="${ncn_progname}"
11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11343 done
11344 done
11345 IFS=$as_save_IFS
11349 LD=$ac_cv_prog_LD
11350 if test -n "$LD"; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11352 $as_echo "$LD" >&6; }
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 done
11362 for ncn_progname in ld; do
11363 if test -n "$ncn_tool_prefix"; then
11364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 $as_echo_n "checking for $ac_word... " >&6; }
11368 if ${ac_cv_prog_LD+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 if test -n "$LD"; then
11372 ac_cv_prog_LD="$LD" # Let the user override the test.
11373 else
11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375 for as_dir in $PATH
11377 IFS=$as_save_IFS
11378 test -z "$as_dir" && as_dir=.
11379 for ac_exec_ext in '' $ac_executable_extensions; do
11380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11381 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11383 break 2
11385 done
11386 done
11387 IFS=$as_save_IFS
11391 LD=$ac_cv_prog_LD
11392 if test -n "$LD"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11394 $as_echo "$LD" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11402 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11404 set dummy ${ncn_progname}; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if ${ac_cv_prog_LD+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 if test -n "$LD"; then
11411 ac_cv_prog_LD="$LD" # Let the user override the test.
11412 else
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 for ac_exec_ext in '' $ac_executable_extensions; do
11419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11420 ac_cv_prog_LD="${ncn_progname}"
11421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 break 2
11424 done
11425 done
11426 IFS=$as_save_IFS
11430 LD=$ac_cv_prog_LD
11431 if test -n "$LD"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11433 $as_echo "$LD" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11441 test -n "$ac_cv_prog_LD" && break
11442 done
11444 if test -z "$ac_cv_prog_LD" ; then
11445 set dummy ld
11446 if test $build = $host ; then
11447 LD="$2"
11448 else
11449 LD="${ncn_tool_prefix}$2"
11455 if test -n "$LIPO"; then
11456 ac_cv_prog_LIPO=$LIPO
11457 elif test -n "$ac_cv_prog_LIPO"; then
11458 LIPO=$ac_cv_prog_LIPO
11461 if test -n "$ac_cv_prog_LIPO"; then
11462 for ncn_progname in lipo; do
11463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11464 set dummy ${ncn_progname}; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if ${ac_cv_prog_LIPO+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test -n "$LIPO"; then
11471 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11472 else
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_prog_LIPO="${ncn_progname}"
11481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11484 done
11485 done
11486 IFS=$as_save_IFS
11490 LIPO=$ac_cv_prog_LIPO
11491 if test -n "$LIPO"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11493 $as_echo "$LIPO" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11500 done
11503 for ncn_progname in lipo; do
11504 if test -n "$ncn_tool_prefix"; then
11505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11506 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_prog_LIPO+:} false; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 if test -n "$LIPO"; then
11513 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11514 else
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11526 done
11527 done
11528 IFS=$as_save_IFS
11532 LIPO=$ac_cv_prog_LIPO
11533 if test -n "$LIPO"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11535 $as_echo "$LIPO" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11543 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11545 set dummy ${ncn_progname}; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_prog_LIPO+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 if test -n "$LIPO"; then
11552 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11553 else
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_LIPO="${ncn_progname}"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11565 done
11566 done
11567 IFS=$as_save_IFS
11571 LIPO=$ac_cv_prog_LIPO
11572 if test -n "$LIPO"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11574 $as_echo "$LIPO" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 test -n "$ac_cv_prog_LIPO" && break
11583 done
11585 if test -z "$ac_cv_prog_LIPO" ; then
11586 set dummy lipo
11587 if test $build = $host ; then
11588 LIPO="$2"
11589 else
11590 LIPO="${ncn_tool_prefix}$2"
11596 if test -n "$NM"; then
11597 ac_cv_prog_NM=$NM
11598 elif test -n "$ac_cv_prog_NM"; then
11599 NM=$ac_cv_prog_NM
11602 if test -n "$ac_cv_prog_NM"; then
11603 for ncn_progname in nm; do
11604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11605 set dummy ${ncn_progname}; ac_word=$2
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 $as_echo_n "checking for $ac_word... " >&6; }
11608 if ${ac_cv_prog_NM+:} false; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 if test -n "$NM"; then
11612 ac_cv_prog_NM="$NM" # Let the user override the test.
11613 else
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11621 ac_cv_prog_NM="${ncn_progname}"
11622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 break 2
11625 done
11626 done
11627 IFS=$as_save_IFS
11631 NM=$ac_cv_prog_NM
11632 if test -n "$NM"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11634 $as_echo "$NM" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11641 done
11644 for ncn_progname in nm; do
11645 if test -n "$ncn_tool_prefix"; then
11646 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11647 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if ${ac_cv_prog_NM+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test -n "$NM"; then
11654 ac_cv_prog_NM="$NM" # Let the user override the test.
11655 else
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11667 done
11668 done
11669 IFS=$as_save_IFS
11673 NM=$ac_cv_prog_NM
11674 if test -n "$NM"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11676 $as_echo "$NM" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11684 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11686 set dummy ${ncn_progname}; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_prog_NM+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test -n "$NM"; then
11693 ac_cv_prog_NM="$NM" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702 ac_cv_prog_NM="${ncn_progname}"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11706 done
11707 done
11708 IFS=$as_save_IFS
11712 NM=$ac_cv_prog_NM
11713 if test -n "$NM"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11715 $as_echo "$NM" >&6; }
11716 else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718 $as_echo "no" >&6; }
11723 test -n "$ac_cv_prog_NM" && break
11724 done
11726 if test -z "$ac_cv_prog_NM" ; then
11727 set dummy nm
11728 if test $build = $host ; then
11729 NM="$2"
11730 else
11731 NM="${ncn_tool_prefix}$2"
11737 if test -n "$RANLIB"; then
11738 ac_cv_prog_RANLIB=$RANLIB
11739 elif test -n "$ac_cv_prog_RANLIB"; then
11740 RANLIB=$ac_cv_prog_RANLIB
11743 if test -n "$ac_cv_prog_RANLIB"; then
11744 for ncn_progname in ranlib; do
11745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11746 set dummy ${ncn_progname}; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_prog_RANLIB+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 if test -n "$RANLIB"; then
11753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11754 else
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_prog_RANLIB="${ncn_progname}"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11772 RANLIB=$ac_cv_prog_RANLIB
11773 if test -n "$RANLIB"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11775 $as_echo "$RANLIB" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11782 done
11785 for ncn_progname in ranlib; do
11786 if test -n "$ncn_tool_prefix"; then
11787 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11788 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_prog_RANLIB+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if test -n "$RANLIB"; then
11795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11796 else
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11814 RANLIB=$ac_cv_prog_RANLIB
11815 if test -n "$RANLIB"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11817 $as_echo "$RANLIB" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11825 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11827 set dummy ${ncn_progname}; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_prog_RANLIB+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 if test -n "$RANLIB"; then
11834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11835 else
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843 ac_cv_prog_RANLIB="${ncn_progname}"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11847 done
11848 done
11849 IFS=$as_save_IFS
11853 RANLIB=$ac_cv_prog_RANLIB
11854 if test -n "$RANLIB"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11856 $as_echo "$RANLIB" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11864 test -n "$ac_cv_prog_RANLIB" && break
11865 done
11867 if test -z "$ac_cv_prog_RANLIB" ; then
11868 RANLIB="true"
11873 if test -n "$STRIP"; then
11874 ac_cv_prog_STRIP=$STRIP
11875 elif test -n "$ac_cv_prog_STRIP"; then
11876 STRIP=$ac_cv_prog_STRIP
11879 if test -n "$ac_cv_prog_STRIP"; then
11880 for ncn_progname in strip; do
11881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11882 set dummy ${ncn_progname}; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if ${ac_cv_prog_STRIP+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test -n "$STRIP"; then
11889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11890 else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_prog_STRIP="${ncn_progname}"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11902 done
11903 done
11904 IFS=$as_save_IFS
11908 STRIP=$ac_cv_prog_STRIP
11909 if test -n "$STRIP"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11911 $as_echo "$STRIP" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11918 done
11921 for ncn_progname in strip; do
11922 if test -n "$ncn_tool_prefix"; then
11923 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11924 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926 $as_echo_n "checking for $ac_word... " >&6; }
11927 if ${ac_cv_prog_STRIP+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 if test -n "$STRIP"; then
11931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11932 else
11933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11934 for as_dir in $PATH
11936 IFS=$as_save_IFS
11937 test -z "$as_dir" && as_dir=.
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11940 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11942 break 2
11944 done
11945 done
11946 IFS=$as_save_IFS
11950 STRIP=$ac_cv_prog_STRIP
11951 if test -n "$STRIP"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11953 $as_echo "$STRIP" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11961 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11963 set dummy ${ncn_progname}; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if ${ac_cv_prog_STRIP+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 if test -n "$STRIP"; then
11970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11971 else
11972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973 for as_dir in $PATH
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 ac_cv_prog_STRIP="${ncn_progname}"
11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 break 2
11983 done
11984 done
11985 IFS=$as_save_IFS
11989 STRIP=$ac_cv_prog_STRIP
11990 if test -n "$STRIP"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11992 $as_echo "$STRIP" >&6; }
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
12000 test -n "$ac_cv_prog_STRIP" && break
12001 done
12003 if test -z "$ac_cv_prog_STRIP" ; then
12004 STRIP="true"
12009 if test -n "$WINDRES"; then
12010 ac_cv_prog_WINDRES=$WINDRES
12011 elif test -n "$ac_cv_prog_WINDRES"; then
12012 WINDRES=$ac_cv_prog_WINDRES
12015 if test -n "$ac_cv_prog_WINDRES"; then
12016 for ncn_progname in windres; do
12017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12018 set dummy ${ncn_progname}; ac_word=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_prog_WINDRES+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 if test -n "$WINDRES"; then
12025 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12026 else
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_prog_WINDRES="${ncn_progname}"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12038 done
12039 done
12040 IFS=$as_save_IFS
12044 WINDRES=$ac_cv_prog_WINDRES
12045 if test -n "$WINDRES"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12047 $as_echo "$WINDRES" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12054 done
12057 for ncn_progname in windres; do
12058 if test -n "$ncn_tool_prefix"; then
12059 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12060 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_prog_WINDRES+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 if test -n "$WINDRES"; then
12067 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12068 else
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 break 2
12080 done
12081 done
12082 IFS=$as_save_IFS
12086 WINDRES=$ac_cv_prog_WINDRES
12087 if test -n "$WINDRES"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12089 $as_echo "$WINDRES" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12099 set dummy ${ncn_progname}; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101 $as_echo_n "checking for $ac_word... " >&6; }
12102 if ${ac_cv_prog_WINDRES+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 if test -n "$WINDRES"; then
12106 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12107 else
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12115 ac_cv_prog_WINDRES="${ncn_progname}"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 break 2
12119 done
12120 done
12121 IFS=$as_save_IFS
12125 WINDRES=$ac_cv_prog_WINDRES
12126 if test -n "$WINDRES"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12128 $as_echo "$WINDRES" >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12136 test -n "$ac_cv_prog_WINDRES" && break
12137 done
12139 if test -z "$ac_cv_prog_WINDRES" ; then
12140 set dummy windres
12141 if test $build = $host ; then
12142 WINDRES="$2"
12143 else
12144 WINDRES="${ncn_tool_prefix}$2"
12150 if test -n "$WINDMC"; then
12151 ac_cv_prog_WINDMC=$WINDMC
12152 elif test -n "$ac_cv_prog_WINDMC"; then
12153 WINDMC=$ac_cv_prog_WINDMC
12156 if test -n "$ac_cv_prog_WINDMC"; then
12157 for ncn_progname in windmc; do
12158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12159 set dummy ${ncn_progname}; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_prog_WINDMC+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test -n "$WINDMC"; then
12166 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_WINDMC="${ncn_progname}"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12179 done
12180 done
12181 IFS=$as_save_IFS
12185 WINDMC=$ac_cv_prog_WINDMC
12186 if test -n "$WINDMC"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12188 $as_echo "$WINDMC" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12195 done
12198 for ncn_progname in windmc; do
12199 if test -n "$ncn_tool_prefix"; then
12200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12201 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if ${ac_cv_prog_WINDMC+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 if test -n "$WINDMC"; then
12208 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12209 else
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12221 done
12222 done
12223 IFS=$as_save_IFS
12227 WINDMC=$ac_cv_prog_WINDMC
12228 if test -n "$WINDMC"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12230 $as_echo "$WINDMC" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12238 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12240 set dummy ${ncn_progname}; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if ${ac_cv_prog_WINDMC+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 if test -n "$WINDMC"; then
12247 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256 ac_cv_prog_WINDMC="${ncn_progname}"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12260 done
12261 done
12262 IFS=$as_save_IFS
12266 WINDMC=$ac_cv_prog_WINDMC
12267 if test -n "$WINDMC"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12269 $as_echo "$WINDMC" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12277 test -n "$ac_cv_prog_WINDMC" && break
12278 done
12280 if test -z "$ac_cv_prog_WINDMC" ; then
12281 set dummy windmc
12282 if test $build = $host ; then
12283 WINDMC="$2"
12284 else
12285 WINDMC="${ncn_tool_prefix}$2"
12291 if test -n "$OBJCOPY"; then
12292 ac_cv_prog_OBJCOPY=$OBJCOPY
12293 elif test -n "$ac_cv_prog_OBJCOPY"; then
12294 OBJCOPY=$ac_cv_prog_OBJCOPY
12297 if test -n "$ac_cv_prog_OBJCOPY"; then
12298 for ncn_progname in objcopy; do
12299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12300 set dummy ${ncn_progname}; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if ${ac_cv_prog_OBJCOPY+:} false; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 if test -n "$OBJCOPY"; then
12307 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 for ac_exec_ext in '' $ac_executable_extensions; do
12315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316 ac_cv_prog_OBJCOPY="${ncn_progname}"
12317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318 break 2
12320 done
12321 done
12322 IFS=$as_save_IFS
12326 OBJCOPY=$ac_cv_prog_OBJCOPY
12327 if test -n "$OBJCOPY"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12329 $as_echo "$OBJCOPY" >&6; }
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12336 done
12339 for ncn_progname in objcopy; do
12340 if test -n "$ncn_tool_prefix"; then
12341 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12342 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_prog_OBJCOPY+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 if test -n "$OBJCOPY"; then
12349 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12358 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12362 done
12363 done
12364 IFS=$as_save_IFS
12368 OBJCOPY=$ac_cv_prog_OBJCOPY
12369 if test -n "$OBJCOPY"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12371 $as_echo "$OBJCOPY" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12379 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12381 set dummy ${ncn_progname}; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if ${ac_cv_prog_OBJCOPY+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 if test -n "$OBJCOPY"; then
12388 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12389 else
12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12397 ac_cv_prog_OBJCOPY="${ncn_progname}"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12401 done
12402 done
12403 IFS=$as_save_IFS
12407 OBJCOPY=$ac_cv_prog_OBJCOPY
12408 if test -n "$OBJCOPY"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12410 $as_echo "$OBJCOPY" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12418 test -n "$ac_cv_prog_OBJCOPY" && break
12419 done
12421 if test -z "$ac_cv_prog_OBJCOPY" ; then
12422 set dummy objcopy
12423 if test $build = $host ; then
12424 OBJCOPY="$2"
12425 else
12426 OBJCOPY="${ncn_tool_prefix}$2"
12432 if test -n "$OBJDUMP"; then
12433 ac_cv_prog_OBJDUMP=$OBJDUMP
12434 elif test -n "$ac_cv_prog_OBJDUMP"; then
12435 OBJDUMP=$ac_cv_prog_OBJDUMP
12438 if test -n "$ac_cv_prog_OBJDUMP"; then
12439 for ncn_progname in objdump; do
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12441 set dummy ${ncn_progname}; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if ${ac_cv_prog_OBJDUMP+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 if test -n "$OBJDUMP"; then
12448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12449 else
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 ac_cv_prog_OBJDUMP="${ncn_progname}"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12459 break 2
12461 done
12462 done
12463 IFS=$as_save_IFS
12467 OBJDUMP=$ac_cv_prog_OBJDUMP
12468 if test -n "$OBJDUMP"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12470 $as_echo "$OBJDUMP" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12477 done
12480 for ncn_progname in objdump; do
12481 if test -n "$ncn_tool_prefix"; then
12482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12483 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if ${ac_cv_prog_OBJDUMP+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 if test -n "$OBJDUMP"; then
12490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12503 done
12504 done
12505 IFS=$as_save_IFS
12509 OBJDUMP=$ac_cv_prog_OBJDUMP
12510 if test -n "$OBJDUMP"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12512 $as_echo "$OBJDUMP" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12520 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12522 set dummy ${ncn_progname}; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524 $as_echo_n "checking for $ac_word... " >&6; }
12525 if ${ac_cv_prog_OBJDUMP+:} false; then :
12526 $as_echo_n "(cached) " >&6
12527 else
12528 if test -n "$OBJDUMP"; then
12529 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12530 else
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12538 ac_cv_prog_OBJDUMP="${ncn_progname}"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 break 2
12542 done
12543 done
12544 IFS=$as_save_IFS
12548 OBJDUMP=$ac_cv_prog_OBJDUMP
12549 if test -n "$OBJDUMP"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12551 $as_echo "$OBJDUMP" >&6; }
12552 else
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12559 test -n "$ac_cv_prog_OBJDUMP" && break
12560 done
12562 if test -z "$ac_cv_prog_OBJDUMP" ; then
12563 set dummy objdump
12564 if test $build = $host ; then
12565 OBJDUMP="$2"
12566 else
12567 OBJDUMP="${ncn_tool_prefix}$2"
12573 if test -n "$OTOOL"; then
12574 ac_cv_prog_OTOOL=$OTOOL
12575 elif test -n "$ac_cv_prog_OTOOL"; then
12576 OTOOL=$ac_cv_prog_OTOOL
12579 if test -n "$ac_cv_prog_OTOOL"; then
12580 for ncn_progname in otool; do
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582 set dummy ${ncn_progname}; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if ${ac_cv_prog_OTOOL+:} false; then :
12586 $as_echo_n "(cached) " >&6
12587 else
12588 if test -n "$OTOOL"; then
12589 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12590 else
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12598 ac_cv_prog_OTOOL="${ncn_progname}"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12602 done
12603 done
12604 IFS=$as_save_IFS
12608 OTOOL=$ac_cv_prog_OTOOL
12609 if test -n "$OTOOL"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12611 $as_echo "$OTOOL" >&6; }
12612 else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12618 done
12621 for ncn_progname in otool; do
12622 if test -n "$ncn_tool_prefix"; then
12623 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12624 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if ${ac_cv_prog_OTOOL+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 if test -n "$OTOOL"; then
12631 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12632 else
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12636 IFS=$as_save_IFS
12637 test -z "$as_dir" && as_dir=.
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12640 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642 break 2
12644 done
12645 done
12646 IFS=$as_save_IFS
12650 OTOOL=$ac_cv_prog_OTOOL
12651 if test -n "$OTOOL"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12653 $as_echo "$OTOOL" >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12661 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12663 set dummy ${ncn_progname}; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665 $as_echo_n "checking for $ac_word... " >&6; }
12666 if ${ac_cv_prog_OTOOL+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 if test -n "$OTOOL"; then
12670 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12671 else
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679 ac_cv_prog_OTOOL="${ncn_progname}"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12683 done
12684 done
12685 IFS=$as_save_IFS
12689 OTOOL=$ac_cv_prog_OTOOL
12690 if test -n "$OTOOL"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12692 $as_echo "$OTOOL" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12700 test -n "$ac_cv_prog_OTOOL" && break
12701 done
12703 if test -z "$ac_cv_prog_OTOOL" ; then
12704 set dummy otool
12705 if test $build = $host ; then
12706 OTOOL="$2"
12707 else
12708 OTOOL="${ncn_tool_prefix}$2"
12714 if test -n "$READELF"; then
12715 ac_cv_prog_READELF=$READELF
12716 elif test -n "$ac_cv_prog_READELF"; then
12717 READELF=$ac_cv_prog_READELF
12720 if test -n "$ac_cv_prog_READELF"; then
12721 for ncn_progname in readelf; do
12722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12723 set dummy ${ncn_progname}; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if ${ac_cv_prog_READELF+:} false; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 if test -n "$READELF"; then
12730 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12731 else
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739 ac_cv_prog_READELF="${ncn_progname}"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12743 done
12744 done
12745 IFS=$as_save_IFS
12749 READELF=$ac_cv_prog_READELF
12750 if test -n "$READELF"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12752 $as_echo "$READELF" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12759 done
12762 for ncn_progname in readelf; do
12763 if test -n "$ncn_tool_prefix"; then
12764 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12765 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if ${ac_cv_prog_READELF+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$READELF"; then
12772 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12773 else
12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775 for as_dir in $PATH
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
12780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12785 done
12786 done
12787 IFS=$as_save_IFS
12791 READELF=$ac_cv_prog_READELF
12792 if test -n "$READELF"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12794 $as_echo "$READELF" >&6; }
12795 else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797 $as_echo "no" >&6; }
12802 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12804 set dummy ${ncn_progname}; ac_word=$2
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12806 $as_echo_n "checking for $ac_word... " >&6; }
12807 if ${ac_cv_prog_READELF+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 if test -n "$READELF"; then
12811 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12812 else
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12816 IFS=$as_save_IFS
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12820 ac_cv_prog_READELF="${ncn_progname}"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12822 break 2
12824 done
12825 done
12826 IFS=$as_save_IFS
12830 READELF=$ac_cv_prog_READELF
12831 if test -n "$READELF"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12833 $as_echo "$READELF" >&6; }
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12841 test -n "$ac_cv_prog_READELF" && break
12842 done
12844 if test -z "$ac_cv_prog_READELF" ; then
12845 set dummy readelf
12846 if test $build = $host ; then
12847 READELF="$2"
12848 else
12849 READELF="${ncn_tool_prefix}$2"
12860 # Target tools.
12862 # Check whether --with-build-time-tools was given.
12863 if test "${with_build_time_tools+set}" = set; then :
12864 withval=$with_build_time_tools; case x"$withval" in
12865 x/*) ;;
12867 with_build_time_tools=
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12869 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12871 esac
12872 else
12873 with_build_time_tools=
12879 if test -n "$CC_FOR_TARGET"; then
12880 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12881 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12882 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12885 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12886 for ncn_progname in cc gcc; do
12887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12888 set dummy ${ncn_progname}; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 if test -n "$CC_FOR_TARGET"; then
12895 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12896 else
12897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12904 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 break 2
12908 done
12909 done
12910 IFS=$as_save_IFS
12914 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12915 if test -n "$CC_FOR_TARGET"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12917 $as_echo "$CC_FOR_TARGET" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12924 done
12927 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12928 for ncn_progname in cc gcc; do
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12931 if test -x $with_build_time_tools/${ncn_progname}; then
12932 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935 break
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12940 done
12943 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12944 for ncn_progname in cc gcc; do
12945 if test -n "$ncn_target_tool_prefix"; then
12946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 if test -n "$CC_FOR_TARGET"; then
12954 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12955 else
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12963 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12967 done
12968 done
12969 IFS=$as_save_IFS
12973 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12974 if test -n "$CC_FOR_TARGET"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12976 $as_echo "$CC_FOR_TARGET" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12984 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12986 set dummy ${ncn_progname}; ac_word=$2
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988 $as_echo_n "checking for $ac_word... " >&6; }
12989 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 if test -n "$CC_FOR_TARGET"; then
12993 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12994 else
12995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
13001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13002 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13006 done
13007 done
13008 IFS=$as_save_IFS
13012 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13013 if test -n "$CC_FOR_TARGET"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13015 $as_echo "$CC_FOR_TARGET" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13023 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13024 done
13027 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13028 set dummy cc gcc
13029 if test $build = $target ; then
13030 CC_FOR_TARGET="$2"
13031 else
13032 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13034 else
13035 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13040 if test -n "$CXX_FOR_TARGET"; then
13041 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13042 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13043 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13046 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13047 for ncn_progname in c++ g++ cxx gxx; do
13048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13049 set dummy ${ncn_progname}; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051 $as_echo_n "checking for $ac_word... " >&6; }
13052 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13053 $as_echo_n "(cached) " >&6
13054 else
13055 if test -n "$CXX_FOR_TARGET"; then
13056 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13057 else
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13069 done
13070 done
13071 IFS=$as_save_IFS
13075 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13076 if test -n "$CXX_FOR_TARGET"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13078 $as_echo "$CXX_FOR_TARGET" >&6; }
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13081 $as_echo "no" >&6; }
13085 done
13088 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13089 for ncn_progname in c++ g++ cxx gxx; do
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13091 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13092 if test -x $with_build_time_tools/${ncn_progname}; then
13093 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13095 $as_echo "yes" >&6; }
13096 break
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13101 done
13104 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13105 for ncn_progname in c++ g++ cxx gxx; do
13106 if test -n "$ncn_target_tool_prefix"; then
13107 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13108 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13110 $as_echo_n "checking for $ac_word... " >&6; }
13111 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 if test -n "$CXX_FOR_TARGET"; then
13115 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13116 else
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13128 done
13129 done
13130 IFS=$as_save_IFS
13134 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13135 if test -n "$CXX_FOR_TARGET"; then
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13137 $as_echo "$CXX_FOR_TARGET" >&6; }
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13140 $as_echo "no" >&6; }
13145 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13147 set dummy ${ncn_progname}; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 if test -n "$CXX_FOR_TARGET"; then
13154 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13155 else
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13167 done
13168 done
13169 IFS=$as_save_IFS
13173 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13174 if test -n "$CXX_FOR_TARGET"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13176 $as_echo "$CXX_FOR_TARGET" >&6; }
13177 else
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13184 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13185 done
13188 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13189 set dummy c++ g++ cxx gxx
13190 if test $build = $target ; then
13191 CXX_FOR_TARGET="$2"
13192 else
13193 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13195 else
13196 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13201 if test -n "$GCC_FOR_TARGET"; then
13202 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13203 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13204 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13207 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13208 for ncn_progname in gcc; do
13209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13210 set dummy ${ncn_progname}; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212 $as_echo_n "checking for $ac_word... " >&6; }
13213 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 if test -n "$GCC_FOR_TARGET"; then
13217 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13218 else
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13226 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228 break 2
13230 done
13231 done
13232 IFS=$as_save_IFS
13236 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13237 if test -n "$GCC_FOR_TARGET"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13239 $as_echo "$GCC_FOR_TARGET" >&6; }
13240 else
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242 $as_echo "no" >&6; }
13246 done
13249 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13250 for ncn_progname in gcc; do
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13252 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13253 if test -x $with_build_time_tools/${ncn_progname}; then
13254 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 $as_echo "yes" >&6; }
13257 break
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13262 done
13265 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13266 for ncn_progname in gcc; do
13267 if test -n "$ncn_target_tool_prefix"; then
13268 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13269 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$GCC_FOR_TARGET"; then
13276 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13296 if test -n "$GCC_FOR_TARGET"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13298 $as_echo "$GCC_FOR_TARGET" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13306 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13308 set dummy ${ncn_progname}; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 if test -n "$GCC_FOR_TARGET"; then
13315 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13316 else
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13320 IFS=$as_save_IFS
13321 test -z "$as_dir" && as_dir=.
13322 for ac_exec_ext in '' $ac_executable_extensions; do
13323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13324 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326 break 2
13328 done
13329 done
13330 IFS=$as_save_IFS
13334 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13335 if test -n "$GCC_FOR_TARGET"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13337 $as_echo "$GCC_FOR_TARGET" >&6; }
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13345 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13346 done
13349 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13350 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13351 else
13352 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13357 if test -n "$GFORTRAN_FOR_TARGET"; then
13358 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13359 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13360 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13363 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13364 for ncn_progname in gfortran; do
13365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13366 set dummy ${ncn_progname}; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 if test -n "$GFORTRAN_FOR_TARGET"; then
13373 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13378 IFS=$as_save_IFS
13379 test -z "$as_dir" && as_dir=.
13380 for ac_exec_ext in '' $ac_executable_extensions; do
13381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384 break 2
13386 done
13387 done
13388 IFS=$as_save_IFS
13392 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13393 if test -n "$GFORTRAN_FOR_TARGET"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13395 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13396 else
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13402 done
13405 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13406 for ncn_progname in gfortran; do
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13408 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13409 if test -x $with_build_time_tools/${ncn_progname}; then
13410 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13412 $as_echo "yes" >&6; }
13413 break
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13418 done
13421 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13422 for ncn_progname in gfortran; do
13423 if test -n "$ncn_target_tool_prefix"; then
13424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427 $as_echo_n "checking for $ac_word... " >&6; }
13428 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 if test -n "$GFORTRAN_FOR_TARGET"; then
13432 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13445 done
13446 done
13447 IFS=$as_save_IFS
13451 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13452 if test -n "$GFORTRAN_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13454 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13455 else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457 $as_echo "no" >&6; }
13462 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13464 set dummy ${ncn_progname}; ac_word=$2
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466 $as_echo_n "checking for $ac_word... " >&6; }
13467 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 if test -n "$GFORTRAN_FOR_TARGET"; then
13471 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13472 else
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13476 IFS=$as_save_IFS
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 break 2
13484 done
13485 done
13486 IFS=$as_save_IFS
13490 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13491 if test -n "$GFORTRAN_FOR_TARGET"; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13493 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13494 else
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13501 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13502 done
13505 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13506 set dummy gfortran
13507 if test $build = $target ; then
13508 GFORTRAN_FOR_TARGET="$2"
13509 else
13510 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13512 else
13513 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13518 if test -n "$GOC_FOR_TARGET"; then
13519 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13520 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13521 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13524 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13525 for ncn_progname in gccgo; do
13526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13527 set dummy ${ncn_progname}; ac_word=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13529 $as_echo_n "checking for $ac_word... " >&6; }
13530 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 if test -n "$GOC_FOR_TARGET"; then
13534 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13535 else
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13547 done
13548 done
13549 IFS=$as_save_IFS
13553 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13554 if test -n "$GOC_FOR_TARGET"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13556 $as_echo "$GOC_FOR_TARGET" >&6; }
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559 $as_echo "no" >&6; }
13563 done
13566 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13567 for ncn_progname in gccgo; do
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13569 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13570 if test -x $with_build_time_tools/${ncn_progname}; then
13571 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574 break
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13579 done
13582 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13583 for ncn_progname in gccgo; do
13584 if test -n "$ncn_target_tool_prefix"; then
13585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$GOC_FOR_TARGET"; then
13593 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13612 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13613 if test -n "$GOC_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13615 $as_echo "$GOC_FOR_TARGET" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13623 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 if test -n "$GOC_FOR_TARGET"; then
13632 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13645 done
13646 done
13647 IFS=$as_save_IFS
13651 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13652 if test -n "$GOC_FOR_TARGET"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13654 $as_echo "$GOC_FOR_TARGET" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13662 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13663 done
13666 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13667 set dummy gccgo
13668 if test $build = $target ; then
13669 GOC_FOR_TARGET="$2"
13670 else
13671 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13673 else
13674 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13679 if test -n "$GDC_FOR_TARGET"; then
13680 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13681 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13682 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13685 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13686 for ncn_progname in gdc; do
13687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13688 set dummy ${ncn_progname}; ac_word=$2
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 if test -n "$GDC_FOR_TARGET"; then
13695 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13696 else
13697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13698 for as_dir in $PATH
13700 IFS=$as_save_IFS
13701 test -z "$as_dir" && as_dir=.
13702 for ac_exec_ext in '' $ac_executable_extensions; do
13703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13704 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13706 break 2
13708 done
13709 done
13710 IFS=$as_save_IFS
13714 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13715 if test -n "$GDC_FOR_TARGET"; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13717 $as_echo "$GDC_FOR_TARGET" >&6; }
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13720 $as_echo "no" >&6; }
13724 done
13727 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13728 for ncn_progname in gdc; do
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13730 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13731 if test -x $with_build_time_tools/${ncn_progname}; then
13732 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13734 $as_echo "yes" >&6; }
13735 break
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13740 done
13743 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13744 for ncn_progname in gdc; do
13745 if test -n "$ncn_target_tool_prefix"; then
13746 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13747 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test -n "$GDC_FOR_TARGET"; then
13754 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13755 else
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13763 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13767 done
13768 done
13769 IFS=$as_save_IFS
13773 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13774 if test -n "$GDC_FOR_TARGET"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13776 $as_echo "$GDC_FOR_TARGET" >&6; }
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13784 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13786 set dummy ${ncn_progname}; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 if test -n "$GDC_FOR_TARGET"; then
13793 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13794 else
13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796 for as_dir in $PATH
13798 IFS=$as_save_IFS
13799 test -z "$as_dir" && as_dir=.
13800 for ac_exec_ext in '' $ac_executable_extensions; do
13801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13802 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13804 break 2
13806 done
13807 done
13808 IFS=$as_save_IFS
13812 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13813 if test -n "$GDC_FOR_TARGET"; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13815 $as_echo "$GDC_FOR_TARGET" >&6; }
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818 $as_echo "no" >&6; }
13823 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13824 done
13827 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13828 set dummy gdc
13829 if test $build = $target ; then
13830 GDC_FOR_TARGET="$2"
13831 else
13832 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13834 else
13835 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13840 cat > conftest.c << \EOF
13841 #ifdef __GNUC__
13842 gcc_yay;
13843 #endif
13845 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13846 have_gcc_for_target=yes
13847 else
13848 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13849 have_gcc_for_target=no
13851 rm conftest.c
13856 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13857 if test -n "$with_build_time_tools"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13859 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13860 if test -x $with_build_time_tools/ar; then
13861 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13862 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13864 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13865 else
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13869 elif test $build != $host && test $have_gcc_for_target = yes; then
13870 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13871 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13872 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13875 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13876 # Extract the first word of "ar", so it can be a program name with args.
13877 set dummy ar; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13879 $as_echo_n "checking for $ac_word... " >&6; }
13880 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 case $AR_FOR_TARGET in
13884 [\\/]* | ?:[\\/]*)
13885 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $gcc_cv_tool_dirs
13891 IFS=$as_save_IFS
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13897 break 2
13899 done
13900 done
13901 IFS=$as_save_IFS
13904 esac
13906 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13907 if test -n "$AR_FOR_TARGET"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13909 $as_echo "$AR_FOR_TARGET" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13917 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13920 if test -n "$AR_FOR_TARGET"; then
13921 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13922 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13923 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13926 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13927 for ncn_progname in ar; do
13928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13929 set dummy ${ncn_progname}; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$AR_FOR_TARGET"; then
13936 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13949 done
13950 done
13951 IFS=$as_save_IFS
13955 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13956 if test -n "$AR_FOR_TARGET"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13958 $as_echo "$AR_FOR_TARGET" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13965 done
13968 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13969 for ncn_progname in ar; do
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13971 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13972 if test -x $with_build_time_tools/${ncn_progname}; then
13973 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13975 $as_echo "yes" >&6; }
13976 break
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13981 done
13984 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13985 for ncn_progname in ar; do
13986 if test -n "$ncn_target_tool_prefix"; then
13987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13990 $as_echo_n "checking for $ac_word... " >&6; }
13991 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 if test -n "$AR_FOR_TARGET"; then
13995 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13996 else
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14000 IFS=$as_save_IFS
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14004 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14006 break 2
14008 done
14009 done
14010 IFS=$as_save_IFS
14014 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14015 if test -n "$AR_FOR_TARGET"; then
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14017 $as_echo "$AR_FOR_TARGET" >&6; }
14018 else
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020 $as_echo "no" >&6; }
14025 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14027 set dummy ${ncn_progname}; ac_word=$2
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14029 $as_echo_n "checking for $ac_word... " >&6; }
14030 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 if test -n "$AR_FOR_TARGET"; then
14034 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14035 else
14036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037 for as_dir in $PATH
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
14042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14043 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 break 2
14047 done
14048 done
14049 IFS=$as_save_IFS
14053 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14054 if test -n "$AR_FOR_TARGET"; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14056 $as_echo "$AR_FOR_TARGET" >&6; }
14057 else
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 $as_echo "no" >&6; }
14064 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14065 done
14068 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14069 set dummy ar
14070 if test $build = $target ; then
14071 AR_FOR_TARGET="$2"
14072 else
14073 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14075 else
14076 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14079 else
14080 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14086 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14087 if test -n "$with_build_time_tools"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14089 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14090 if test -x $with_build_time_tools/as; then
14091 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14092 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14094 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14097 $as_echo "no" >&6; }
14099 elif test $build != $host && test $have_gcc_for_target = yes; then
14100 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14101 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14102 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14105 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14106 # Extract the first word of "as", so it can be a program name with args.
14107 set dummy as; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109 $as_echo_n "checking for $ac_word... " >&6; }
14110 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 case $AS_FOR_TARGET in
14114 [\\/]* | ?:[\\/]*)
14115 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14119 for as_dir in $gcc_cv_tool_dirs
14121 IFS=$as_save_IFS
14122 test -z "$as_dir" && as_dir=.
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14125 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 break 2
14129 done
14130 done
14131 IFS=$as_save_IFS
14134 esac
14136 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14137 if test -n "$AS_FOR_TARGET"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14139 $as_echo "$AS_FOR_TARGET" >&6; }
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14147 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14150 if test -n "$AS_FOR_TARGET"; then
14151 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14152 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14153 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14156 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14157 for ncn_progname in as; do
14158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14159 set dummy ${ncn_progname}; ac_word=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161 $as_echo_n "checking for $ac_word... " >&6; }
14162 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 if test -n "$AS_FOR_TARGET"; then
14166 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14167 else
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14171 IFS=$as_save_IFS
14172 test -z "$as_dir" && as_dir=.
14173 for ac_exec_ext in '' $ac_executable_extensions; do
14174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14175 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14177 break 2
14179 done
14180 done
14181 IFS=$as_save_IFS
14185 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14186 if test -n "$AS_FOR_TARGET"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14188 $as_echo "$AS_FOR_TARGET" >&6; }
14189 else
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14195 done
14198 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14199 for ncn_progname in as; do
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14201 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14202 if test -x $with_build_time_tools/${ncn_progname}; then
14203 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205 $as_echo "yes" >&6; }
14206 break
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14211 done
14214 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14215 for ncn_progname in as; do
14216 if test -n "$ncn_target_tool_prefix"; then
14217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 if test -n "$AS_FOR_TARGET"; then
14225 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14234 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14238 done
14239 done
14240 IFS=$as_save_IFS
14244 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14245 if test -n "$AS_FOR_TARGET"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14247 $as_echo "$AS_FOR_TARGET" >&6; }
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14255 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14257 set dummy ${ncn_progname}; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 if test -n "$AS_FOR_TARGET"; then
14264 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14265 else
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14273 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14277 done
14278 done
14279 IFS=$as_save_IFS
14283 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14284 if test -n "$AS_FOR_TARGET"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14286 $as_echo "$AS_FOR_TARGET" >&6; }
14287 else
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289 $as_echo "no" >&6; }
14294 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14295 done
14298 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14299 set dummy as
14300 if test $build = $target ; then
14301 AS_FOR_TARGET="$2"
14302 else
14303 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14305 else
14306 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14309 else
14310 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14316 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14317 if test -n "$with_build_time_tools"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14319 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14320 if test -x $with_build_time_tools/dlltool; then
14321 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14322 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14324 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14325 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14327 $as_echo "no" >&6; }
14329 elif test $build != $host && test $have_gcc_for_target = yes; then
14330 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14331 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14332 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14335 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14336 # Extract the first word of "dlltool", so it can be a program name with args.
14337 set dummy dlltool; ac_word=$2
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14339 $as_echo_n "checking for $ac_word... " >&6; }
14340 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14341 $as_echo_n "(cached) " >&6
14342 else
14343 case $DLLTOOL_FOR_TARGET in
14344 [\\/]* | ?:[\\/]*)
14345 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $gcc_cv_tool_dirs
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14359 done
14360 done
14361 IFS=$as_save_IFS
14364 esac
14366 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14367 if test -n "$DLLTOOL_FOR_TARGET"; then
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14369 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14370 else
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 $as_echo "no" >&6; }
14377 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14380 if test -n "$DLLTOOL_FOR_TARGET"; then
14381 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14382 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14383 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14386 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14387 for ncn_progname in dlltool; do
14388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14389 set dummy ${ncn_progname}; ac_word=$2
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14391 $as_echo_n "checking for $ac_word... " >&6; }
14392 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 if test -n "$DLLTOOL_FOR_TARGET"; then
14396 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14397 else
14398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399 for as_dir in $PATH
14401 IFS=$as_save_IFS
14402 test -z "$as_dir" && as_dir=.
14403 for ac_exec_ext in '' $ac_executable_extensions; do
14404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14405 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407 break 2
14409 done
14410 done
14411 IFS=$as_save_IFS
14415 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14416 if test -n "$DLLTOOL_FOR_TARGET"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14418 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14419 else
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 $as_echo "no" >&6; }
14425 done
14428 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14429 for ncn_progname in dlltool; do
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14431 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14432 if test -x $with_build_time_tools/${ncn_progname}; then
14433 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14435 $as_echo "yes" >&6; }
14436 break
14437 else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14441 done
14444 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14445 for ncn_progname in dlltool; do
14446 if test -n "$ncn_target_tool_prefix"; then
14447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 if test -n "$DLLTOOL_FOR_TARGET"; then
14455 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14456 else
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14460 IFS=$as_save_IFS
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14464 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466 break 2
14468 done
14469 done
14470 IFS=$as_save_IFS
14474 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14475 if test -n "$DLLTOOL_FOR_TARGET"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14477 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14478 else
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14480 $as_echo "no" >&6; }
14485 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14487 set dummy ${ncn_progname}; ac_word=$2
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489 $as_echo_n "checking for $ac_word... " >&6; }
14490 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14491 $as_echo_n "(cached) " >&6
14492 else
14493 if test -n "$DLLTOOL_FOR_TARGET"; then
14494 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14495 else
14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497 for as_dir in $PATH
14499 IFS=$as_save_IFS
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
14502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14503 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14505 break 2
14507 done
14508 done
14509 IFS=$as_save_IFS
14513 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14514 if test -n "$DLLTOOL_FOR_TARGET"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14516 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14517 else
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519 $as_echo "no" >&6; }
14524 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14525 done
14528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14529 set dummy dlltool
14530 if test $build = $target ; then
14531 DLLTOOL_FOR_TARGET="$2"
14532 else
14533 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14535 else
14536 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14539 else
14540 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14546 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14547 if test -n "$with_build_time_tools"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14549 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14550 if test -x $with_build_time_tools/dsymutil; then
14551 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14552 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14554 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14557 $as_echo "no" >&6; }
14559 elif test $build != $host && test $have_gcc_for_target = yes; then
14560 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14561 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14562 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14565 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14566 # Extract the first word of "dsymutil", so it can be a program name with args.
14567 set dummy dsymutil; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 case $DSYMUTIL_FOR_TARGET in
14574 [\\/]* | ?:[\\/]*)
14575 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $gcc_cv_tool_dirs
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14585 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14587 break 2
14589 done
14590 done
14591 IFS=$as_save_IFS
14594 esac
14596 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14597 if test -n "$DSYMUTIL_FOR_TARGET"; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14599 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14600 else
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 $as_echo "no" >&6; }
14607 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14610 if test -n "$DSYMUTIL_FOR_TARGET"; then
14611 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14612 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14613 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14616 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14617 for ncn_progname in dsymutil; do
14618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14619 set dummy ${ncn_progname}; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 if test -n "$DSYMUTIL_FOR_TARGET"; then
14626 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14627 else
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14631 IFS=$as_save_IFS
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14635 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14637 break 2
14639 done
14640 done
14641 IFS=$as_save_IFS
14645 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14646 if test -n "$DSYMUTIL_FOR_TARGET"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14648 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14655 done
14658 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14659 for ncn_progname in dsymutil; do
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14661 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14662 if test -x $with_build_time_tools/${ncn_progname}; then
14663 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14665 $as_echo "yes" >&6; }
14666 break
14667 else
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14669 $as_echo "no" >&6; }
14671 done
14674 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14675 for ncn_progname in dsymutil; do
14676 if test -n "$ncn_target_tool_prefix"; then
14677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14680 $as_echo_n "checking for $ac_word... " >&6; }
14681 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 if test -n "$DSYMUTIL_FOR_TARGET"; then
14685 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14686 else
14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14690 IFS=$as_save_IFS
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14694 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 break 2
14698 done
14699 done
14700 IFS=$as_save_IFS
14704 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14705 if test -n "$DSYMUTIL_FOR_TARGET"; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14707 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14708 else
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14715 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14717 set dummy ${ncn_progname}; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719 $as_echo_n "checking for $ac_word... " >&6; }
14720 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 if test -n "$DSYMUTIL_FOR_TARGET"; then
14724 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14733 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 break 2
14737 done
14738 done
14739 IFS=$as_save_IFS
14743 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14744 if test -n "$DSYMUTIL_FOR_TARGET"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14746 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14754 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14755 done
14758 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14759 set dummy dsymutil
14760 if test $build = $target ; then
14761 DSYMUTIL_FOR_TARGET="$2"
14762 else
14763 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14765 else
14766 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14769 else
14770 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14776 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14777 if test -n "$with_build_time_tools"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14779 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14780 if test -x $with_build_time_tools/ld; then
14781 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14782 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14784 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14787 $as_echo "no" >&6; }
14789 elif test $build != $host && test $have_gcc_for_target = yes; then
14790 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14791 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14792 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14795 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14796 # Extract the first word of "ld", so it can be a program name with args.
14797 set dummy ld; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799 $as_echo_n "checking for $ac_word... " >&6; }
14800 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 case $LD_FOR_TARGET in
14804 [\\/]* | ?:[\\/]*)
14805 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $gcc_cv_tool_dirs
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 for ac_exec_ext in '' $ac_executable_extensions; do
14814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14815 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14817 break 2
14819 done
14820 done
14821 IFS=$as_save_IFS
14824 esac
14826 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14827 if test -n "$LD_FOR_TARGET"; then
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14829 $as_echo "$LD_FOR_TARGET" >&6; }
14830 else
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14837 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14840 if test -n "$LD_FOR_TARGET"; then
14841 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14842 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14843 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14846 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14847 for ncn_progname in ld; do
14848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14849 set dummy ${ncn_progname}; ac_word=$2
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14851 $as_echo_n "checking for $ac_word... " >&6; }
14852 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 if test -n "$LD_FOR_TARGET"; then
14856 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14857 else
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859 for as_dir in $PATH
14861 IFS=$as_save_IFS
14862 test -z "$as_dir" && as_dir=.
14863 for ac_exec_ext in '' $ac_executable_extensions; do
14864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14865 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14867 break 2
14869 done
14870 done
14871 IFS=$as_save_IFS
14875 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14876 if test -n "$LD_FOR_TARGET"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14878 $as_echo "$LD_FOR_TARGET" >&6; }
14879 else
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14885 done
14888 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14889 for ncn_progname in ld; do
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14891 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14892 if test -x $with_build_time_tools/${ncn_progname}; then
14893 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14895 $as_echo "yes" >&6; }
14896 break
14897 else
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 $as_echo "no" >&6; }
14901 done
14904 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14905 for ncn_progname in ld; do
14906 if test -n "$ncn_target_tool_prefix"; then
14907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14908 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14910 $as_echo_n "checking for $ac_word... " >&6; }
14911 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 if test -n "$LD_FOR_TARGET"; then
14915 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14916 else
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14920 IFS=$as_save_IFS
14921 test -z "$as_dir" && as_dir=.
14922 for ac_exec_ext in '' $ac_executable_extensions; do
14923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14924 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14926 break 2
14928 done
14929 done
14930 IFS=$as_save_IFS
14934 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14935 if test -n "$LD_FOR_TARGET"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14937 $as_echo "$LD_FOR_TARGET" >&6; }
14938 else
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14940 $as_echo "no" >&6; }
14945 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14947 set dummy ${ncn_progname}; ac_word=$2
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14949 $as_echo_n "checking for $ac_word... " >&6; }
14950 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14951 $as_echo_n "(cached) " >&6
14952 else
14953 if test -n "$LD_FOR_TARGET"; then
14954 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14955 else
14956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14957 for as_dir in $PATH
14959 IFS=$as_save_IFS
14960 test -z "$as_dir" && as_dir=.
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14963 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14965 break 2
14967 done
14968 done
14969 IFS=$as_save_IFS
14973 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14974 if test -n "$LD_FOR_TARGET"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14976 $as_echo "$LD_FOR_TARGET" >&6; }
14977 else
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 $as_echo "no" >&6; }
14984 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14985 done
14988 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14989 set dummy ld
14990 if test $build = $target ; then
14991 LD_FOR_TARGET="$2"
14992 else
14993 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14995 else
14996 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14999 else
15000 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15006 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15007 if test -n "$with_build_time_tools"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15009 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15010 if test -x $with_build_time_tools/lipo; then
15011 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15012 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15014 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15017 $as_echo "no" >&6; }
15019 elif test $build != $host && test $have_gcc_for_target = yes; then
15020 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15021 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15022 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15025 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15026 # Extract the first word of "lipo", so it can be a program name with args.
15027 set dummy lipo; ac_word=$2
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15029 $as_echo_n "checking for $ac_word... " >&6; }
15030 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 case $LIPO_FOR_TARGET in
15034 [\\/]* | ?:[\\/]*)
15035 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15039 for as_dir in $gcc_cv_tool_dirs
15041 IFS=$as_save_IFS
15042 test -z "$as_dir" && as_dir=.
15043 for ac_exec_ext in '' $ac_executable_extensions; do
15044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15045 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15047 break 2
15049 done
15050 done
15051 IFS=$as_save_IFS
15054 esac
15056 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15057 if test -n "$LIPO_FOR_TARGET"; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15059 $as_echo "$LIPO_FOR_TARGET" >&6; }
15060 else
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15062 $as_echo "no" >&6; }
15067 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15070 if test -n "$LIPO_FOR_TARGET"; then
15071 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15072 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15073 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15076 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15077 for ncn_progname in lipo; do
15078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15079 set dummy ${ncn_progname}; ac_word=$2
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15081 $as_echo_n "checking for $ac_word... " >&6; }
15082 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 if test -n "$LIPO_FOR_TARGET"; then
15086 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15087 else
15088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15089 for as_dir in $PATH
15091 IFS=$as_save_IFS
15092 test -z "$as_dir" && as_dir=.
15093 for ac_exec_ext in '' $ac_executable_extensions; do
15094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15095 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15097 break 2
15099 done
15100 done
15101 IFS=$as_save_IFS
15105 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15106 if test -n "$LIPO_FOR_TARGET"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15108 $as_echo "$LIPO_FOR_TARGET" >&6; }
15109 else
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15115 done
15118 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15119 for ncn_progname in lipo; do
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15121 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15122 if test -x $with_build_time_tools/${ncn_progname}; then
15123 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125 $as_echo "yes" >&6; }
15126 break
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15131 done
15134 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15135 for ncn_progname in lipo; do
15136 if test -n "$ncn_target_tool_prefix"; then
15137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15140 $as_echo_n "checking for $ac_word... " >&6; }
15141 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15142 $as_echo_n "(cached) " >&6
15143 else
15144 if test -n "$LIPO_FOR_TARGET"; then
15145 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15146 else
15147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15148 for as_dir in $PATH
15150 IFS=$as_save_IFS
15151 test -z "$as_dir" && as_dir=.
15152 for ac_exec_ext in '' $ac_executable_extensions; do
15153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15154 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15156 break 2
15158 done
15159 done
15160 IFS=$as_save_IFS
15164 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15165 if test -n "$LIPO_FOR_TARGET"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15167 $as_echo "$LIPO_FOR_TARGET" >&6; }
15168 else
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15170 $as_echo "no" >&6; }
15175 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15177 set dummy ${ncn_progname}; ac_word=$2
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15179 $as_echo_n "checking for $ac_word... " >&6; }
15180 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 if test -n "$LIPO_FOR_TARGET"; then
15184 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15185 else
15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15189 IFS=$as_save_IFS
15190 test -z "$as_dir" && as_dir=.
15191 for ac_exec_ext in '' $ac_executable_extensions; do
15192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15193 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15195 break 2
15197 done
15198 done
15199 IFS=$as_save_IFS
15203 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15204 if test -n "$LIPO_FOR_TARGET"; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15206 $as_echo "$LIPO_FOR_TARGET" >&6; }
15207 else
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15214 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15215 done
15218 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15219 set dummy lipo
15220 if test $build = $target ; then
15221 LIPO_FOR_TARGET="$2"
15222 else
15223 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15225 else
15226 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15229 else
15230 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15236 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15237 if test -n "$with_build_time_tools"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15239 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15240 if test -x $with_build_time_tools/nm; then
15241 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15242 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15244 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15249 elif test $build != $host && test $have_gcc_for_target = yes; then
15250 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15251 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15252 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15255 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15256 # Extract the first word of "nm", so it can be a program name with args.
15257 set dummy nm; ac_word=$2
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15259 $as_echo_n "checking for $ac_word... " >&6; }
15260 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 case $NM_FOR_TARGET in
15264 [\\/]* | ?:[\\/]*)
15265 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15269 for as_dir in $gcc_cv_tool_dirs
15271 IFS=$as_save_IFS
15272 test -z "$as_dir" && as_dir=.
15273 for ac_exec_ext in '' $ac_executable_extensions; do
15274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15275 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15277 break 2
15279 done
15280 done
15281 IFS=$as_save_IFS
15284 esac
15286 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15287 if test -n "$NM_FOR_TARGET"; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15289 $as_echo "$NM_FOR_TARGET" >&6; }
15290 else
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15297 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15300 if test -n "$NM_FOR_TARGET"; then
15301 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15302 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15303 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15306 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15307 for ncn_progname in nm; do
15308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15309 set dummy ${ncn_progname}; ac_word=$2
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15311 $as_echo_n "checking for $ac_word... " >&6; }
15312 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15313 $as_echo_n "(cached) " >&6
15314 else
15315 if test -n "$NM_FOR_TARGET"; then
15316 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15317 else
15318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319 for as_dir in $PATH
15321 IFS=$as_save_IFS
15322 test -z "$as_dir" && as_dir=.
15323 for ac_exec_ext in '' $ac_executable_extensions; do
15324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15325 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15327 break 2
15329 done
15330 done
15331 IFS=$as_save_IFS
15335 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15336 if test -n "$NM_FOR_TARGET"; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15338 $as_echo "$NM_FOR_TARGET" >&6; }
15339 else
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15341 $as_echo "no" >&6; }
15345 done
15348 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15349 for ncn_progname in nm; do
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15351 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15352 if test -x $with_build_time_tools/${ncn_progname}; then
15353 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15355 $as_echo "yes" >&6; }
15356 break
15357 else
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15361 done
15364 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15365 for ncn_progname in nm; do
15366 if test -n "$ncn_target_tool_prefix"; then
15367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 if test -n "$NM_FOR_TARGET"; then
15375 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15376 else
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15380 IFS=$as_save_IFS
15381 test -z "$as_dir" && as_dir=.
15382 for ac_exec_ext in '' $ac_executable_extensions; do
15383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15384 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15386 break 2
15388 done
15389 done
15390 IFS=$as_save_IFS
15394 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15395 if test -n "$NM_FOR_TARGET"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15397 $as_echo "$NM_FOR_TARGET" >&6; }
15398 else
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15405 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15407 set dummy ${ncn_progname}; ac_word=$2
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15409 $as_echo_n "checking for $ac_word... " >&6; }
15410 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413 if test -n "$NM_FOR_TARGET"; then
15414 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15415 else
15416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in $PATH
15419 IFS=$as_save_IFS
15420 test -z "$as_dir" && as_dir=.
15421 for ac_exec_ext in '' $ac_executable_extensions; do
15422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15423 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15425 break 2
15427 done
15428 done
15429 IFS=$as_save_IFS
15433 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15434 if test -n "$NM_FOR_TARGET"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15436 $as_echo "$NM_FOR_TARGET" >&6; }
15437 else
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15439 $as_echo "no" >&6; }
15444 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15445 done
15448 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15449 set dummy nm
15450 if test $build = $target ; then
15451 NM_FOR_TARGET="$2"
15452 else
15453 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15455 else
15456 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15459 else
15460 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15466 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15467 if test -n "$with_build_time_tools"; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15469 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15470 if test -x $with_build_time_tools/objcopy; then
15471 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15472 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15474 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15475 else
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15477 $as_echo "no" >&6; }
15479 elif test $build != $host && test $have_gcc_for_target = yes; then
15480 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15481 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15482 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15485 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15486 # Extract the first word of "objcopy", so it can be a program name with args.
15487 set dummy objcopy; ac_word=$2
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15489 $as_echo_n "checking for $ac_word... " >&6; }
15490 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 case $OBJCOPY_FOR_TARGET in
15494 [\\/]* | ?:[\\/]*)
15495 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15499 for as_dir in $gcc_cv_tool_dirs
15501 IFS=$as_save_IFS
15502 test -z "$as_dir" && as_dir=.
15503 for ac_exec_ext in '' $ac_executable_extensions; do
15504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15505 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15507 break 2
15509 done
15510 done
15511 IFS=$as_save_IFS
15514 esac
15516 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15517 if test -n "$OBJCOPY_FOR_TARGET"; then
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15519 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15522 $as_echo "no" >&6; }
15527 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15530 if test -n "$OBJCOPY_FOR_TARGET"; then
15531 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15532 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15533 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15536 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15537 for ncn_progname in objcopy; do
15538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15539 set dummy ${ncn_progname}; ac_word=$2
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15541 $as_echo_n "checking for $ac_word... " >&6; }
15542 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 if test -n "$OBJCOPY_FOR_TARGET"; then
15546 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15547 else
15548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15551 IFS=$as_save_IFS
15552 test -z "$as_dir" && as_dir=.
15553 for ac_exec_ext in '' $ac_executable_extensions; do
15554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15555 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15557 break 2
15559 done
15560 done
15561 IFS=$as_save_IFS
15565 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15566 if test -n "$OBJCOPY_FOR_TARGET"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15568 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15569 else
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571 $as_echo "no" >&6; }
15575 done
15578 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15579 for ncn_progname in objcopy; do
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15581 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15582 if test -x $with_build_time_tools/${ncn_progname}; then
15583 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15585 $as_echo "yes" >&6; }
15586 break
15587 else
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15591 done
15594 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15595 for ncn_progname in objcopy; do
15596 if test -n "$ncn_target_tool_prefix"; then
15597 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15598 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15602 $as_echo_n "(cached) " >&6
15603 else
15604 if test -n "$OBJCOPY_FOR_TARGET"; then
15605 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15606 else
15607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15610 IFS=$as_save_IFS
15611 test -z "$as_dir" && as_dir=.
15612 for ac_exec_ext in '' $ac_executable_extensions; do
15613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15614 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15616 break 2
15618 done
15619 done
15620 IFS=$as_save_IFS
15624 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15625 if test -n "$OBJCOPY_FOR_TARGET"; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15627 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15628 else
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15630 $as_echo "no" >&6; }
15635 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15637 set dummy ${ncn_progname}; ac_word=$2
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15639 $as_echo_n "checking for $ac_word... " >&6; }
15640 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 if test -n "$OBJCOPY_FOR_TARGET"; then
15644 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15645 else
15646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15649 IFS=$as_save_IFS
15650 test -z "$as_dir" && as_dir=.
15651 for ac_exec_ext in '' $ac_executable_extensions; do
15652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 break 2
15657 done
15658 done
15659 IFS=$as_save_IFS
15663 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15664 if test -n "$OBJCOPY_FOR_TARGET"; then
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15666 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15674 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15675 done
15678 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15679 set dummy objcopy
15680 if test $build = $target ; then
15681 OBJCOPY_FOR_TARGET="$2"
15682 else
15683 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15685 else
15686 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15689 else
15690 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15696 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15697 if test -n "$with_build_time_tools"; then
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15699 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15700 if test -x $with_build_time_tools/objdump; then
15701 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15702 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15704 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15705 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15709 elif test $build != $host && test $have_gcc_for_target = yes; then
15710 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15711 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15712 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15715 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15716 # Extract the first word of "objdump", so it can be a program name with args.
15717 set dummy objdump; ac_word=$2
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15719 $as_echo_n "checking for $ac_word... " >&6; }
15720 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 case $OBJDUMP_FOR_TARGET in
15724 [\\/]* | ?:[\\/]*)
15725 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729 for as_dir in $gcc_cv_tool_dirs
15731 IFS=$as_save_IFS
15732 test -z "$as_dir" && as_dir=.
15733 for ac_exec_ext in '' $ac_executable_extensions; do
15734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15735 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15737 break 2
15739 done
15740 done
15741 IFS=$as_save_IFS
15744 esac
15746 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15747 if test -n "$OBJDUMP_FOR_TARGET"; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15749 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15750 else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15757 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15760 if test -n "$OBJDUMP_FOR_TARGET"; then
15761 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15762 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15763 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15766 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15767 for ncn_progname in objdump; do
15768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15769 set dummy ${ncn_progname}; ac_word=$2
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15771 $as_echo_n "checking for $ac_word... " >&6; }
15772 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 if test -n "$OBJDUMP_FOR_TARGET"; then
15776 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15777 else
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 for ac_exec_ext in '' $ac_executable_extensions; do
15784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15785 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15787 break 2
15789 done
15790 done
15791 IFS=$as_save_IFS
15795 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15796 if test -n "$OBJDUMP_FOR_TARGET"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15798 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15799 else
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801 $as_echo "no" >&6; }
15805 done
15808 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15809 for ncn_progname in objdump; do
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15811 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15812 if test -x $with_build_time_tools/${ncn_progname}; then
15813 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815 $as_echo "yes" >&6; }
15816 break
15817 else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819 $as_echo "no" >&6; }
15821 done
15824 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15825 for ncn_progname in objdump; do
15826 if test -n "$ncn_target_tool_prefix"; then
15827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15828 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15830 $as_echo_n "checking for $ac_word... " >&6; }
15831 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 if test -n "$OBJDUMP_FOR_TARGET"; then
15835 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15836 else
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15840 IFS=$as_save_IFS
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15846 break 2
15848 done
15849 done
15850 IFS=$as_save_IFS
15854 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15855 if test -n "$OBJDUMP_FOR_TARGET"; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15857 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15858 else
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15865 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15867 set dummy ${ncn_progname}; ac_word=$2
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15869 $as_echo_n "checking for $ac_word... " >&6; }
15870 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872 else
15873 if test -n "$OBJDUMP_FOR_TARGET"; then
15874 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15875 else
15876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877 for as_dir in $PATH
15879 IFS=$as_save_IFS
15880 test -z "$as_dir" && as_dir=.
15881 for ac_exec_ext in '' $ac_executable_extensions; do
15882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15883 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15885 break 2
15887 done
15888 done
15889 IFS=$as_save_IFS
15893 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15894 if test -n "$OBJDUMP_FOR_TARGET"; then
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15896 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15897 else
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899 $as_echo "no" >&6; }
15904 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15905 done
15908 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15909 set dummy objdump
15910 if test $build = $target ; then
15911 OBJDUMP_FOR_TARGET="$2"
15912 else
15913 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15915 else
15916 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15919 else
15920 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15926 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15927 if test -n "$with_build_time_tools"; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15929 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15930 if test -x $with_build_time_tools/otool; then
15931 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15932 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15934 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15935 else
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15939 elif test $build != $host && test $have_gcc_for_target = yes; then
15940 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15941 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15942 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15945 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15946 # Extract the first word of "otool", so it can be a program name with args.
15947 set dummy otool; ac_word=$2
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949 $as_echo_n "checking for $ac_word... " >&6; }
15950 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15951 $as_echo_n "(cached) " >&6
15952 else
15953 case $OTOOL_FOR_TARGET in
15954 [\\/]* | ?:[\\/]*)
15955 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959 for as_dir in $gcc_cv_tool_dirs
15961 IFS=$as_save_IFS
15962 test -z "$as_dir" && as_dir=.
15963 for ac_exec_ext in '' $ac_executable_extensions; do
15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15965 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15967 break 2
15969 done
15970 done
15971 IFS=$as_save_IFS
15974 esac
15976 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15977 if test -n "$OTOOL_FOR_TARGET"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15979 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15987 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15990 if test -n "$OTOOL_FOR_TARGET"; then
15991 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15992 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15993 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15996 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15997 for ncn_progname in otool; do
15998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15999 set dummy ${ncn_progname}; ac_word=$2
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16001 $as_echo_n "checking for $ac_word... " >&6; }
16002 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 if test -n "$OTOOL_FOR_TARGET"; then
16006 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16007 else
16008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16009 for as_dir in $PATH
16011 IFS=$as_save_IFS
16012 test -z "$as_dir" && as_dir=.
16013 for ac_exec_ext in '' $ac_executable_extensions; do
16014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16015 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16017 break 2
16019 done
16020 done
16021 IFS=$as_save_IFS
16025 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16026 if test -n "$OTOOL_FOR_TARGET"; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16028 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16029 else
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16031 $as_echo "no" >&6; }
16035 done
16038 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16039 for ncn_progname in otool; do
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16041 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16042 if test -x $with_build_time_tools/${ncn_progname}; then
16043 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16045 $as_echo "yes" >&6; }
16046 break
16047 else
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16051 done
16054 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16055 for ncn_progname in otool; do
16056 if test -n "$ncn_target_tool_prefix"; then
16057 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16058 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16060 $as_echo_n "checking for $ac_word... " >&6; }
16061 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16062 $as_echo_n "(cached) " >&6
16063 else
16064 if test -n "$OTOOL_FOR_TARGET"; then
16065 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16066 else
16067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16068 for as_dir in $PATH
16070 IFS=$as_save_IFS
16071 test -z "$as_dir" && as_dir=.
16072 for ac_exec_ext in '' $ac_executable_extensions; do
16073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16074 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16076 break 2
16078 done
16079 done
16080 IFS=$as_save_IFS
16084 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16085 if test -n "$OTOOL_FOR_TARGET"; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16087 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16088 else
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16090 $as_echo "no" >&6; }
16095 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16097 set dummy ${ncn_progname}; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16101 $as_echo_n "(cached) " >&6
16102 else
16103 if test -n "$OTOOL_FOR_TARGET"; then
16104 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16105 else
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16109 IFS=$as_save_IFS
16110 test -z "$as_dir" && as_dir=.
16111 for ac_exec_ext in '' $ac_executable_extensions; do
16112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16113 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16115 break 2
16117 done
16118 done
16119 IFS=$as_save_IFS
16123 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16124 if test -n "$OTOOL_FOR_TARGET"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16126 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16134 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16135 done
16138 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16139 set dummy otool
16140 if test $build = $target ; then
16141 OTOOL_FOR_TARGET="$2"
16142 else
16143 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16145 else
16146 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16149 else
16150 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16156 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16157 if test -n "$with_build_time_tools"; then
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16159 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16160 if test -x $with_build_time_tools/ranlib; then
16161 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16162 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16164 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16165 else
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16167 $as_echo "no" >&6; }
16169 elif test $build != $host && test $have_gcc_for_target = yes; then
16170 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16171 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16172 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16175 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16176 # Extract the first word of "ranlib", so it can be a program name with args.
16177 set dummy ranlib; ac_word=$2
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16179 $as_echo_n "checking for $ac_word... " >&6; }
16180 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16181 $as_echo_n "(cached) " >&6
16182 else
16183 case $RANLIB_FOR_TARGET in
16184 [\\/]* | ?:[\\/]*)
16185 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16189 for as_dir in $gcc_cv_tool_dirs
16191 IFS=$as_save_IFS
16192 test -z "$as_dir" && as_dir=.
16193 for ac_exec_ext in '' $ac_executable_extensions; do
16194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16195 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16197 break 2
16199 done
16200 done
16201 IFS=$as_save_IFS
16204 esac
16206 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16207 if test -n "$RANLIB_FOR_TARGET"; then
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16209 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16210 else
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212 $as_echo "no" >&6; }
16217 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16220 if test -n "$RANLIB_FOR_TARGET"; then
16221 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16222 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16223 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16226 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16227 for ncn_progname in ranlib; do
16228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16229 set dummy ${ncn_progname}; ac_word=$2
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16231 $as_echo_n "checking for $ac_word... " >&6; }
16232 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16233 $as_echo_n "(cached) " >&6
16234 else
16235 if test -n "$RANLIB_FOR_TARGET"; then
16236 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16237 else
16238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16239 for as_dir in $PATH
16241 IFS=$as_save_IFS
16242 test -z "$as_dir" && as_dir=.
16243 for ac_exec_ext in '' $ac_executable_extensions; do
16244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16245 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16247 break 2
16249 done
16250 done
16251 IFS=$as_save_IFS
16255 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16256 if test -n "$RANLIB_FOR_TARGET"; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16258 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16259 else
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16261 $as_echo "no" >&6; }
16265 done
16268 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16269 for ncn_progname in ranlib; do
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16271 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16272 if test -x $with_build_time_tools/${ncn_progname}; then
16273 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16275 $as_echo "yes" >&6; }
16276 break
16277 else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16281 done
16284 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16285 for ncn_progname in ranlib; do
16286 if test -n "$ncn_target_tool_prefix"; then
16287 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16288 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16290 $as_echo_n "checking for $ac_word... " >&6; }
16291 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 if test -n "$RANLIB_FOR_TARGET"; then
16295 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16296 else
16297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16298 for as_dir in $PATH
16300 IFS=$as_save_IFS
16301 test -z "$as_dir" && as_dir=.
16302 for ac_exec_ext in '' $ac_executable_extensions; do
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16304 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16306 break 2
16308 done
16309 done
16310 IFS=$as_save_IFS
16314 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16315 if test -n "$RANLIB_FOR_TARGET"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16317 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16318 else
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16325 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16327 set dummy ${ncn_progname}; ac_word=$2
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16329 $as_echo_n "checking for $ac_word... " >&6; }
16330 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16331 $as_echo_n "(cached) " >&6
16332 else
16333 if test -n "$RANLIB_FOR_TARGET"; then
16334 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16335 else
16336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337 for as_dir in $PATH
16339 IFS=$as_save_IFS
16340 test -z "$as_dir" && as_dir=.
16341 for ac_exec_ext in '' $ac_executable_extensions; do
16342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16343 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16345 break 2
16347 done
16348 done
16349 IFS=$as_save_IFS
16353 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16354 if test -n "$RANLIB_FOR_TARGET"; then
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16356 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16357 else
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16364 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16365 done
16368 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16369 set dummy ranlib
16370 if test $build = $target ; then
16371 RANLIB_FOR_TARGET="$2"
16372 else
16373 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16375 else
16376 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16379 else
16380 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16386 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16387 if test -n "$with_build_time_tools"; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16389 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16390 if test -x $with_build_time_tools/readelf; then
16391 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16392 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16394 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16397 $as_echo "no" >&6; }
16399 elif test $build != $host && test $have_gcc_for_target = yes; then
16400 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16401 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16402 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16405 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16406 # Extract the first word of "readelf", so it can be a program name with args.
16407 set dummy readelf; ac_word=$2
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409 $as_echo_n "checking for $ac_word... " >&6; }
16410 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413 case $READELF_FOR_TARGET in
16414 [\\/]* | ?:[\\/]*)
16415 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16419 for as_dir in $gcc_cv_tool_dirs
16421 IFS=$as_save_IFS
16422 test -z "$as_dir" && as_dir=.
16423 for ac_exec_ext in '' $ac_executable_extensions; do
16424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16425 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16427 break 2
16429 done
16430 done
16431 IFS=$as_save_IFS
16434 esac
16436 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16437 if test -n "$READELF_FOR_TARGET"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16439 $as_echo "$READELF_FOR_TARGET" >&6; }
16440 else
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16447 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16450 if test -n "$READELF_FOR_TARGET"; then
16451 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16452 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16453 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16456 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16457 for ncn_progname in readelf; do
16458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16459 set dummy ${ncn_progname}; ac_word=$2
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16461 $as_echo_n "checking for $ac_word... " >&6; }
16462 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 if test -n "$READELF_FOR_TARGET"; then
16466 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16467 else
16468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16469 for as_dir in $PATH
16471 IFS=$as_save_IFS
16472 test -z "$as_dir" && as_dir=.
16473 for ac_exec_ext in '' $ac_executable_extensions; do
16474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16475 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16477 break 2
16479 done
16480 done
16481 IFS=$as_save_IFS
16485 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16486 if test -n "$READELF_FOR_TARGET"; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16488 $as_echo "$READELF_FOR_TARGET" >&6; }
16489 else
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16495 done
16498 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16499 for ncn_progname in readelf; do
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16502 if test -x $with_build_time_tools/${ncn_progname}; then
16503 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16505 $as_echo "yes" >&6; }
16506 break
16507 else
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16511 done
16514 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16515 for ncn_progname in readelf; do
16516 if test -n "$ncn_target_tool_prefix"; then
16517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520 $as_echo_n "checking for $ac_word... " >&6; }
16521 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 if test -n "$READELF_FOR_TARGET"; then
16525 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16526 else
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 break 2
16538 done
16539 done
16540 IFS=$as_save_IFS
16544 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16545 if test -n "$READELF_FOR_TARGET"; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16547 $as_echo "$READELF_FOR_TARGET" >&6; }
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16555 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16557 set dummy ${ncn_progname}; ac_word=$2
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16559 $as_echo_n "checking for $ac_word... " >&6; }
16560 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 if test -n "$READELF_FOR_TARGET"; then
16564 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16565 else
16566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16567 for as_dir in $PATH
16569 IFS=$as_save_IFS
16570 test -z "$as_dir" && as_dir=.
16571 for ac_exec_ext in '' $ac_executable_extensions; do
16572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16573 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16575 break 2
16577 done
16578 done
16579 IFS=$as_save_IFS
16583 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16584 if test -n "$READELF_FOR_TARGET"; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16586 $as_echo "$READELF_FOR_TARGET" >&6; }
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589 $as_echo "no" >&6; }
16594 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16595 done
16598 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16599 set dummy readelf
16600 if test $build = $target ; then
16601 READELF_FOR_TARGET="$2"
16602 else
16603 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16605 else
16606 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16609 else
16610 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16616 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16617 if test -n "$with_build_time_tools"; then
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16619 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16620 if test -x $with_build_time_tools/strip; then
16621 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16622 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16624 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627 $as_echo "no" >&6; }
16629 elif test $build != $host && test $have_gcc_for_target = yes; then
16630 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16631 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16632 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16635 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16636 # Extract the first word of "strip", so it can be a program name with args.
16637 set dummy strip; ac_word=$2
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639 $as_echo_n "checking for $ac_word... " >&6; }
16640 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16641 $as_echo_n "(cached) " >&6
16642 else
16643 case $STRIP_FOR_TARGET in
16644 [\\/]* | ?:[\\/]*)
16645 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16649 for as_dir in $gcc_cv_tool_dirs
16651 IFS=$as_save_IFS
16652 test -z "$as_dir" && as_dir=.
16653 for ac_exec_ext in '' $ac_executable_extensions; do
16654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16655 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16657 break 2
16659 done
16660 done
16661 IFS=$as_save_IFS
16664 esac
16666 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16667 if test -n "$STRIP_FOR_TARGET"; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16669 $as_echo "$STRIP_FOR_TARGET" >&6; }
16670 else
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672 $as_echo "no" >&6; }
16677 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16680 if test -n "$STRIP_FOR_TARGET"; then
16681 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16682 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16683 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16686 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16687 for ncn_progname in strip; do
16688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16689 set dummy ${ncn_progname}; ac_word=$2
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16691 $as_echo_n "checking for $ac_word... " >&6; }
16692 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16693 $as_echo_n "(cached) " >&6
16694 else
16695 if test -n "$STRIP_FOR_TARGET"; then
16696 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16697 else
16698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16699 for as_dir in $PATH
16701 IFS=$as_save_IFS
16702 test -z "$as_dir" && as_dir=.
16703 for ac_exec_ext in '' $ac_executable_extensions; do
16704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16705 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16707 break 2
16709 done
16710 done
16711 IFS=$as_save_IFS
16715 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16716 if test -n "$STRIP_FOR_TARGET"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16718 $as_echo "$STRIP_FOR_TARGET" >&6; }
16719 else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721 $as_echo "no" >&6; }
16725 done
16728 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16729 for ncn_progname in strip; do
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16731 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16732 if test -x $with_build_time_tools/${ncn_progname}; then
16733 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16735 $as_echo "yes" >&6; }
16736 break
16737 else
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16739 $as_echo "no" >&6; }
16741 done
16744 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16745 for ncn_progname in strip; do
16746 if test -n "$ncn_target_tool_prefix"; then
16747 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16748 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16750 $as_echo_n "checking for $ac_word... " >&6; }
16751 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16752 $as_echo_n "(cached) " >&6
16753 else
16754 if test -n "$STRIP_FOR_TARGET"; then
16755 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16756 else
16757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16758 for as_dir in $PATH
16760 IFS=$as_save_IFS
16761 test -z "$as_dir" && as_dir=.
16762 for ac_exec_ext in '' $ac_executable_extensions; do
16763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16764 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16766 break 2
16768 done
16769 done
16770 IFS=$as_save_IFS
16774 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16775 if test -n "$STRIP_FOR_TARGET"; then
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16777 $as_echo "$STRIP_FOR_TARGET" >&6; }
16778 else
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16780 $as_echo "no" >&6; }
16785 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16787 set dummy ${ncn_progname}; ac_word=$2
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16789 $as_echo_n "checking for $ac_word... " >&6; }
16790 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if test -n "$STRIP_FOR_TARGET"; then
16794 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16795 else
16796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797 for as_dir in $PATH
16799 IFS=$as_save_IFS
16800 test -z "$as_dir" && as_dir=.
16801 for ac_exec_ext in '' $ac_executable_extensions; do
16802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16803 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16805 break 2
16807 done
16808 done
16809 IFS=$as_save_IFS
16813 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16814 if test -n "$STRIP_FOR_TARGET"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16816 $as_echo "$STRIP_FOR_TARGET" >&6; }
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16824 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16825 done
16828 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16829 set dummy strip
16830 if test $build = $target ; then
16831 STRIP_FOR_TARGET="$2"
16832 else
16833 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16835 else
16836 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16839 else
16840 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16846 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16847 if test -n "$with_build_time_tools"; then
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16849 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16850 if test -x $with_build_time_tools/windres; then
16851 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16852 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16854 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16855 else
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 $as_echo "no" >&6; }
16859 elif test $build != $host && test $have_gcc_for_target = yes; then
16860 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16861 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16862 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16865 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16866 # Extract the first word of "windres", so it can be a program name with args.
16867 set dummy windres; ac_word=$2
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16869 $as_echo_n "checking for $ac_word... " >&6; }
16870 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 case $WINDRES_FOR_TARGET in
16874 [\\/]* | ?:[\\/]*)
16875 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16879 for as_dir in $gcc_cv_tool_dirs
16881 IFS=$as_save_IFS
16882 test -z "$as_dir" && as_dir=.
16883 for ac_exec_ext in '' $ac_executable_extensions; do
16884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16885 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16887 break 2
16889 done
16890 done
16891 IFS=$as_save_IFS
16894 esac
16896 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16897 if test -n "$WINDRES_FOR_TARGET"; then
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16899 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16900 else
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16902 $as_echo "no" >&6; }
16907 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16910 if test -n "$WINDRES_FOR_TARGET"; then
16911 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16912 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16913 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16916 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16917 for ncn_progname in windres; do
16918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16919 set dummy ${ncn_progname}; ac_word=$2
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16921 $as_echo_n "checking for $ac_word... " >&6; }
16922 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16923 $as_echo_n "(cached) " >&6
16924 else
16925 if test -n "$WINDRES_FOR_TARGET"; then
16926 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16927 else
16928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 for as_dir in $PATH
16931 IFS=$as_save_IFS
16932 test -z "$as_dir" && as_dir=.
16933 for ac_exec_ext in '' $ac_executable_extensions; do
16934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16935 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16937 break 2
16939 done
16940 done
16941 IFS=$as_save_IFS
16945 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16946 if test -n "$WINDRES_FOR_TARGET"; then
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16948 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16949 else
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 $as_echo "no" >&6; }
16955 done
16958 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16959 for ncn_progname in windres; do
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16961 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16962 if test -x $with_build_time_tools/${ncn_progname}; then
16963 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16965 $as_echo "yes" >&6; }
16966 break
16967 else
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16969 $as_echo "no" >&6; }
16971 done
16974 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16975 for ncn_progname in windres; do
16976 if test -n "$ncn_target_tool_prefix"; then
16977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16980 $as_echo_n "checking for $ac_word... " >&6; }
16981 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16982 $as_echo_n "(cached) " >&6
16983 else
16984 if test -n "$WINDRES_FOR_TARGET"; then
16985 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16986 else
16987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16988 for as_dir in $PATH
16990 IFS=$as_save_IFS
16991 test -z "$as_dir" && as_dir=.
16992 for ac_exec_ext in '' $ac_executable_extensions; do
16993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16994 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16996 break 2
16998 done
16999 done
17000 IFS=$as_save_IFS
17004 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17005 if test -n "$WINDRES_FOR_TARGET"; then
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17007 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17008 else
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17010 $as_echo "no" >&6; }
17015 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17017 set dummy ${ncn_progname}; ac_word=$2
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17019 $as_echo_n "checking for $ac_word... " >&6; }
17020 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17021 $as_echo_n "(cached) " >&6
17022 else
17023 if test -n "$WINDRES_FOR_TARGET"; then
17024 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17025 else
17026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17027 for as_dir in $PATH
17029 IFS=$as_save_IFS
17030 test -z "$as_dir" && as_dir=.
17031 for ac_exec_ext in '' $ac_executable_extensions; do
17032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17033 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17035 break 2
17037 done
17038 done
17039 IFS=$as_save_IFS
17043 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17044 if test -n "$WINDRES_FOR_TARGET"; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17046 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17047 else
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17054 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17055 done
17058 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17059 set dummy windres
17060 if test $build = $target ; then
17061 WINDRES_FOR_TARGET="$2"
17062 else
17063 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17065 else
17066 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17069 else
17070 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17076 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17077 if test -n "$with_build_time_tools"; then
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17079 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17080 if test -x $with_build_time_tools/windmc; then
17081 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17082 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17084 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17085 else
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 $as_echo "no" >&6; }
17089 elif test $build != $host && test $have_gcc_for_target = yes; then
17090 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17091 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17092 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17095 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17096 # Extract the first word of "windmc", so it can be a program name with args.
17097 set dummy windmc; ac_word=$2
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17099 $as_echo_n "checking for $ac_word... " >&6; }
17100 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 case $WINDMC_FOR_TARGET in
17104 [\\/]* | ?:[\\/]*)
17105 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17109 for as_dir in $gcc_cv_tool_dirs
17111 IFS=$as_save_IFS
17112 test -z "$as_dir" && as_dir=.
17113 for ac_exec_ext in '' $ac_executable_extensions; do
17114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17115 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17117 break 2
17119 done
17120 done
17121 IFS=$as_save_IFS
17124 esac
17126 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17127 if test -n "$WINDMC_FOR_TARGET"; then
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17129 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17130 else
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17137 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17140 if test -n "$WINDMC_FOR_TARGET"; then
17141 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17142 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17143 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17146 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17147 for ncn_progname in windmc; do
17148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17149 set dummy ${ncn_progname}; ac_word=$2
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17151 $as_echo_n "checking for $ac_word... " >&6; }
17152 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17153 $as_echo_n "(cached) " >&6
17154 else
17155 if test -n "$WINDMC_FOR_TARGET"; then
17156 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17157 else
17158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17159 for as_dir in $PATH
17161 IFS=$as_save_IFS
17162 test -z "$as_dir" && as_dir=.
17163 for ac_exec_ext in '' $ac_executable_extensions; do
17164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17165 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17167 break 2
17169 done
17170 done
17171 IFS=$as_save_IFS
17175 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17176 if test -n "$WINDMC_FOR_TARGET"; then
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17178 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17179 else
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17181 $as_echo "no" >&6; }
17185 done
17188 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17189 for ncn_progname in windmc; do
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17191 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17192 if test -x $with_build_time_tools/${ncn_progname}; then
17193 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17195 $as_echo "yes" >&6; }
17196 break
17197 else
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17199 $as_echo "no" >&6; }
17201 done
17204 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17205 for ncn_progname in windmc; do
17206 if test -n "$ncn_target_tool_prefix"; then
17207 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17208 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17210 $as_echo_n "checking for $ac_word... " >&6; }
17211 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17214 if test -n "$WINDMC_FOR_TARGET"; then
17215 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17216 else
17217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17218 for as_dir in $PATH
17220 IFS=$as_save_IFS
17221 test -z "$as_dir" && as_dir=.
17222 for ac_exec_ext in '' $ac_executable_extensions; do
17223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17224 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17226 break 2
17228 done
17229 done
17230 IFS=$as_save_IFS
17234 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17235 if test -n "$WINDMC_FOR_TARGET"; then
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17237 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17238 else
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17240 $as_echo "no" >&6; }
17245 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17247 set dummy ${ncn_progname}; ac_word=$2
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17249 $as_echo_n "checking for $ac_word... " >&6; }
17250 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17251 $as_echo_n "(cached) " >&6
17252 else
17253 if test -n "$WINDMC_FOR_TARGET"; then
17254 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17255 else
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17259 IFS=$as_save_IFS
17260 test -z "$as_dir" && as_dir=.
17261 for ac_exec_ext in '' $ac_executable_extensions; do
17262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17263 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17265 break 2
17267 done
17268 done
17269 IFS=$as_save_IFS
17273 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17274 if test -n "$WINDMC_FOR_TARGET"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17276 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17277 else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17284 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17285 done
17288 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17289 set dummy windmc
17290 if test $build = $target ; then
17291 WINDMC_FOR_TARGET="$2"
17292 else
17293 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17295 else
17296 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17299 else
17300 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17304 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17307 $as_echo_n "checking where to find the target ar... " >&6; }
17308 if test "x${build}" != "x${host}" ; then
17309 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17310 # We already found the complete path
17311 ac_dir=`dirname $AR_FOR_TARGET`
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17313 $as_echo "pre-installed in $ac_dir" >&6; }
17314 else
17315 # Canadian cross, just use what we found
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17317 $as_echo "pre-installed" >&6; }
17319 else
17320 ok=yes
17321 case " ${configdirs} " in
17322 *" binutils "*) ;;
17323 *) ok=no ;;
17324 esac
17326 if test $ok = yes; then
17327 # An in-tree tool is available and we can use it
17328 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17330 $as_echo "just compiled" >&6; }
17331 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17332 # We already found the complete path
17333 ac_dir=`dirname $AR_FOR_TARGET`
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17335 $as_echo "pre-installed in $ac_dir" >&6; }
17336 elif test "x$target" = "x$host"; then
17337 # We can use an host tool
17338 AR_FOR_TARGET='$(AR)'
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17340 $as_echo "host tool" >&6; }
17341 else
17342 # We need a cross tool
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17344 $as_echo "pre-installed" >&6; }
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17349 $as_echo_n "checking where to find the target as... " >&6; }
17350 if test "x${build}" != "x${host}" ; then
17351 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17352 # We already found the complete path
17353 ac_dir=`dirname $AS_FOR_TARGET`
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17355 $as_echo "pre-installed in $ac_dir" >&6; }
17356 else
17357 # Canadian cross, just use what we found
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17359 $as_echo "pre-installed" >&6; }
17361 else
17362 ok=yes
17363 case " ${configdirs} " in
17364 *" gas "*) ;;
17365 *) ok=no ;;
17366 esac
17368 if test $ok = yes; then
17369 # An in-tree tool is available and we can use it
17370 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17372 $as_echo "just compiled" >&6; }
17373 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17374 # We already found the complete path
17375 ac_dir=`dirname $AS_FOR_TARGET`
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17377 $as_echo "pre-installed in $ac_dir" >&6; }
17378 elif test "x$target" = "x$host"; then
17379 # We can use an host tool
17380 AS_FOR_TARGET='$(AS)'
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17382 $as_echo "host tool" >&6; }
17383 else
17384 # We need a cross tool
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17386 $as_echo "pre-installed" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17391 $as_echo_n "checking where to find the target cc... " >&6; }
17392 if test "x${build}" != "x${host}" ; then
17393 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17394 # We already found the complete path
17395 ac_dir=`dirname $CC_FOR_TARGET`
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17397 $as_echo "pre-installed in $ac_dir" >&6; }
17398 else
17399 # Canadian cross, just use what we found
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17401 $as_echo "pre-installed" >&6; }
17403 else
17404 ok=yes
17405 case " ${configdirs} " in
17406 *" gcc "*) ;;
17407 *) ok=no ;;
17408 esac
17410 if test $ok = yes; then
17411 # An in-tree tool is available and we can use it
17412 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17414 $as_echo "just compiled" >&6; }
17415 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17416 # We already found the complete path
17417 ac_dir=`dirname $CC_FOR_TARGET`
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17419 $as_echo "pre-installed in $ac_dir" >&6; }
17420 elif test "x$target" = "x$host"; then
17421 # We can use an host tool
17422 CC_FOR_TARGET='$(CC)'
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17424 $as_echo "host tool" >&6; }
17425 else
17426 # We need a cross tool
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17428 $as_echo "pre-installed" >&6; }
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17433 $as_echo_n "checking where to find the target c++... " >&6; }
17434 if test "x${build}" != "x${host}" ; then
17435 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17436 # We already found the complete path
17437 ac_dir=`dirname $CXX_FOR_TARGET`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17439 $as_echo "pre-installed in $ac_dir" >&6; }
17440 else
17441 # Canadian cross, just use what we found
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17443 $as_echo "pre-installed" >&6; }
17445 else
17446 ok=yes
17447 case " ${configdirs} " in
17448 *" gcc "*) ;;
17449 *) ok=no ;;
17450 esac
17451 case ,${enable_languages}, in
17452 *,c++,*) ;;
17453 *) ok=no ;;
17454 esac
17455 if test $ok = yes; then
17456 # An in-tree tool is available and we can use it
17457 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'
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17459 $as_echo "just compiled" >&6; }
17460 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17461 # We already found the complete path
17462 ac_dir=`dirname $CXX_FOR_TARGET`
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17464 $as_echo "pre-installed in $ac_dir" >&6; }
17465 elif test "x$target" = "x$host"; then
17466 # We can use an host tool
17467 CXX_FOR_TARGET='$(CXX)'
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17469 $as_echo "host tool" >&6; }
17470 else
17471 # We need a cross tool
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17473 $as_echo "pre-installed" >&6; }
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17478 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17479 if test "x${build}" != "x${host}" ; then
17480 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17481 # We already found the complete path
17482 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17484 $as_echo "pre-installed in $ac_dir" >&6; }
17485 else
17486 # Canadian cross, just use what we found
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17488 $as_echo "pre-installed" >&6; }
17490 else
17491 ok=yes
17492 case " ${configdirs} " in
17493 *" gcc "*) ;;
17494 *) ok=no ;;
17495 esac
17496 case ,${enable_languages}, in
17497 *,c++,*) ;;
17498 *) ok=no ;;
17499 esac
17500 if test $ok = yes; then
17501 # An in-tree tool is available and we can use it
17502 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'
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17504 $as_echo "just compiled" >&6; }
17505 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17506 # We already found the complete path
17507 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17509 $as_echo "pre-installed in $ac_dir" >&6; }
17510 elif test "x$target" = "x$host"; then
17511 # We can use an host tool
17512 RAW_CXX_FOR_TARGET='$(CXX)'
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17514 $as_echo "host tool" >&6; }
17515 else
17516 # We need a cross tool
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17518 $as_echo "pre-installed" >&6; }
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17523 $as_echo_n "checking where to find the target dlltool... " >&6; }
17524 if test "x${build}" != "x${host}" ; then
17525 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17526 # We already found the complete path
17527 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17529 $as_echo "pre-installed in $ac_dir" >&6; }
17530 else
17531 # Canadian cross, just use what we found
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17533 $as_echo "pre-installed" >&6; }
17535 else
17536 ok=yes
17537 case " ${configdirs} " in
17538 *" binutils "*) ;;
17539 *) ok=no ;;
17540 esac
17542 if test $ok = yes; then
17543 # An in-tree tool is available and we can use it
17544 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17546 $as_echo "just compiled" >&6; }
17547 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17548 # We already found the complete path
17549 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551 $as_echo "pre-installed in $ac_dir" >&6; }
17552 elif test "x$target" = "x$host"; then
17553 # We can use an host tool
17554 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17556 $as_echo "host tool" >&6; }
17557 else
17558 # We need a cross tool
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17560 $as_echo "pre-installed" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17565 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17566 if test "x${build}" != "x${host}" ; then
17567 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17568 # We already found the complete path
17569 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17571 $as_echo "pre-installed in $ac_dir" >&6; }
17572 else
17573 # Canadian cross, just use what we found
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17575 $as_echo "pre-installed" >&6; }
17577 else
17578 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17579 # We already found the complete path
17580 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17582 $as_echo "pre-installed in $ac_dir" >&6; }
17583 elif test "x$target" = "x$host"; then
17584 # We can use an host tool
17585 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17587 $as_echo "host tool" >&6; }
17588 else
17589 # We need a cross tool
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17591 $as_echo "pre-installed" >&6; }
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17596 $as_echo_n "checking where to find the target gcc... " >&6; }
17597 if test "x${build}" != "x${host}" ; then
17598 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $GCC_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17602 $as_echo "pre-installed in $ac_dir" >&6; }
17603 else
17604 # Canadian cross, just use what we found
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17606 $as_echo "pre-installed" >&6; }
17608 else
17609 ok=yes
17610 case " ${configdirs} " in
17611 *" gcc "*) ;;
17612 *) ok=no ;;
17613 esac
17615 if test $ok = yes; then
17616 # An in-tree tool is available and we can use it
17617 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17619 $as_echo "just compiled" >&6; }
17620 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17621 # We already found the complete path
17622 ac_dir=`dirname $GCC_FOR_TARGET`
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17624 $as_echo "pre-installed in $ac_dir" >&6; }
17625 elif test "x$target" = "x$host"; then
17626 # We can use an host tool
17627 GCC_FOR_TARGET='$()'
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17629 $as_echo "host tool" >&6; }
17630 else
17631 # We need a cross tool
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17633 $as_echo "pre-installed" >&6; }
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17638 $as_echo_n "checking where to find the target gfortran... " >&6; }
17639 if test "x${build}" != "x${host}" ; then
17640 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17641 # We already found the complete path
17642 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17644 $as_echo "pre-installed in $ac_dir" >&6; }
17645 else
17646 # Canadian cross, just use what we found
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17648 $as_echo "pre-installed" >&6; }
17650 else
17651 ok=yes
17652 case " ${configdirs} " in
17653 *" gcc "*) ;;
17654 *) ok=no ;;
17655 esac
17656 case ,${enable_languages}, in
17657 *,fortran,*) ;;
17658 *) ok=no ;;
17659 esac
17660 if test $ok = yes; then
17661 # An in-tree tool is available and we can use it
17662 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17664 $as_echo "just compiled" >&6; }
17665 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17666 # We already found the complete path
17667 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17669 $as_echo "pre-installed in $ac_dir" >&6; }
17670 elif test "x$target" = "x$host"; then
17671 # We can use an host tool
17672 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17674 $as_echo "host tool" >&6; }
17675 else
17676 # We need a cross tool
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17678 $as_echo "pre-installed" >&6; }
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17683 $as_echo_n "checking where to find the target gccgo... " >&6; }
17684 if test "x${build}" != "x${host}" ; then
17685 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $GOC_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17689 $as_echo "pre-installed in $ac_dir" >&6; }
17690 else
17691 # Canadian cross, just use what we found
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17693 $as_echo "pre-installed" >&6; }
17695 else
17696 ok=yes
17697 case " ${configdirs} " in
17698 *" gcc "*) ;;
17699 *) ok=no ;;
17700 esac
17701 case ,${enable_languages}, in
17702 *,go,*) ;;
17703 *) ok=no ;;
17704 esac
17705 if test $ok = yes; then
17706 # An in-tree tool is available and we can use it
17707 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17709 $as_echo "just compiled" >&6; }
17710 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17711 # We already found the complete path
17712 ac_dir=`dirname $GOC_FOR_TARGET`
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17714 $as_echo "pre-installed in $ac_dir" >&6; }
17715 elif test "x$target" = "x$host"; then
17716 # We can use an host tool
17717 GOC_FOR_TARGET='$(GOC)'
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17719 $as_echo "host tool" >&6; }
17720 else
17721 # We need a cross tool
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17723 $as_echo "pre-installed" >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17728 $as_echo_n "checking where to find the target gdc... " >&6; }
17729 if test "x${build}" != "x${host}" ; then
17730 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17731 # We already found the complete path
17732 ac_dir=`dirname $GDC_FOR_TARGET`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17734 $as_echo "pre-installed in $ac_dir" >&6; }
17735 else
17736 # Canadian cross, just use what we found
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17738 $as_echo "pre-installed" >&6; }
17740 else
17741 ok=yes
17742 case " ${configdirs} " in
17743 *" gcc "*) ;;
17744 *) ok=no ;;
17745 esac
17746 case ,${enable_languages}, in
17747 *,d,*) ;;
17748 *) ok=no ;;
17749 esac
17750 if test $ok = yes; then
17751 # An in-tree tool is available and we can use it
17752 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17754 $as_echo "just compiled" >&6; }
17755 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17756 # We already found the complete path
17757 ac_dir=`dirname $GDC_FOR_TARGET`
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17759 $as_echo "pre-installed in $ac_dir" >&6; }
17760 elif test "x$target" = "x$host"; then
17761 # We can use an host tool
17762 GDC_FOR_TARGET='$(GDC)'
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17764 $as_echo "host tool" >&6; }
17765 else
17766 # We need a cross tool
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17768 $as_echo "pre-installed" >&6; }
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17773 $as_echo_n "checking where to find the target ld... " >&6; }
17774 if test "x${build}" != "x${host}" ; then
17775 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17776 # We already found the complete path
17777 ac_dir=`dirname $LD_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 else
17781 # Canadian cross, just use what we found
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783 $as_echo "pre-installed" >&6; }
17785 else
17786 ok=yes
17787 case " ${configdirs} " in
17788 *" ld "*) ;;
17789 *) ok=no ;;
17790 esac
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $LD_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802 elif test "x$target" = "x$host"; then
17803 # We can use an host tool
17804 LD_FOR_TARGET='$(LD)'
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17806 $as_echo "host tool" >&6; }
17807 else
17808 # We need a cross tool
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17815 $as_echo_n "checking where to find the target lipo... " >&6; }
17816 if test "x${build}" != "x${host}" ; then
17817 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17818 # We already found the complete path
17819 ac_dir=`dirname $LIPO_FOR_TARGET`
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17821 $as_echo "pre-installed in $ac_dir" >&6; }
17822 else
17823 # Canadian cross, just use what we found
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17827 else
17828 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17829 # We already found the complete path
17830 ac_dir=`dirname $LIPO_FOR_TARGET`
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17832 $as_echo "pre-installed in $ac_dir" >&6; }
17833 elif test "x$target" = "x$host"; then
17834 # We can use an host tool
17835 LIPO_FOR_TARGET='$(LIPO)'
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17837 $as_echo "host tool" >&6; }
17838 else
17839 # We need a cross tool
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17841 $as_echo "pre-installed" >&6; }
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17846 $as_echo_n "checking where to find the target nm... " >&6; }
17847 if test "x${build}" != "x${host}" ; then
17848 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17849 # We already found the complete path
17850 ac_dir=`dirname $NM_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 else
17854 # Canadian cross, just use what we found
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17856 $as_echo "pre-installed" >&6; }
17858 else
17859 ok=yes
17860 case " ${configdirs} " in
17861 *" binutils "*) ;;
17862 *) ok=no ;;
17863 esac
17865 if test $ok = yes; then
17866 # An in-tree tool is available and we can use it
17867 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17869 $as_echo "just compiled" >&6; }
17870 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17871 # We already found the complete path
17872 ac_dir=`dirname $NM_FOR_TARGET`
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17874 $as_echo "pre-installed in $ac_dir" >&6; }
17875 elif test "x$target" = "x$host"; then
17876 # We can use an host tool
17877 NM_FOR_TARGET='$(NM)'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17879 $as_echo "host tool" >&6; }
17880 else
17881 # We need a cross tool
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17883 $as_echo "pre-installed" >&6; }
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17888 $as_echo_n "checking where to find the target objcopy... " >&6; }
17889 if test "x${build}" != "x${host}" ; then
17890 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17891 # We already found the complete path
17892 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17894 $as_echo "pre-installed in $ac_dir" >&6; }
17895 else
17896 # Canadian cross, just use what we found
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17898 $as_echo "pre-installed" >&6; }
17900 else
17901 ok=yes
17902 case " ${configdirs} " in
17903 *" binutils "*) ;;
17904 *) ok=no ;;
17905 esac
17907 if test $ok = yes; then
17908 # An in-tree tool is available and we can use it
17909 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17911 $as_echo "just compiled" >&6; }
17912 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17913 # We already found the complete path
17914 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916 $as_echo "pre-installed in $ac_dir" >&6; }
17917 elif test "x$target" = "x$host"; then
17918 # We can use an host tool
17919 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17921 $as_echo "host tool" >&6; }
17922 else
17923 # We need a cross tool
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17925 $as_echo "pre-installed" >&6; }
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17930 $as_echo_n "checking where to find the target objdump... " >&6; }
17931 if test "x${build}" != "x${host}" ; then
17932 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17933 # We already found the complete path
17934 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17936 $as_echo "pre-installed in $ac_dir" >&6; }
17937 else
17938 # Canadian cross, just use what we found
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940 $as_echo "pre-installed" >&6; }
17942 else
17943 ok=yes
17944 case " ${configdirs} " in
17945 *" binutils "*) ;;
17946 *) ok=no ;;
17947 esac
17949 if test $ok = yes; then
17950 # An in-tree tool is available and we can use it
17951 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17953 $as_echo "just compiled" >&6; }
17954 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
17956 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958 $as_echo "pre-installed in $ac_dir" >&6; }
17959 elif test "x$target" = "x$host"; then
17960 # We can use an host tool
17961 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17963 $as_echo "host tool" >&6; }
17964 else
17965 # We need a cross tool
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17967 $as_echo "pre-installed" >&6; }
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17972 $as_echo_n "checking where to find the target otool... " >&6; }
17973 if test "x${build}" != "x${host}" ; then
17974 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17975 # We already found the complete path
17976 ac_dir=`dirname $OTOOL_FOR_TARGET`
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17978 $as_echo "pre-installed in $ac_dir" >&6; }
17979 else
17980 # Canadian cross, just use what we found
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982 $as_echo "pre-installed" >&6; }
17984 else
17985 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17986 # We already found the complete path
17987 ac_dir=`dirname $OTOOL_FOR_TARGET`
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17989 $as_echo "pre-installed in $ac_dir" >&6; }
17990 elif test "x$target" = "x$host"; then
17991 # We can use an host tool
17992 OTOOL_FOR_TARGET='$(OTOOL)'
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17994 $as_echo "host tool" >&6; }
17995 else
17996 # We need a cross tool
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17998 $as_echo "pre-installed" >&6; }
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18003 $as_echo_n "checking where to find the target ranlib... " >&6; }
18004 if test "x${build}" != "x${host}" ; then
18005 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18006 # We already found the complete path
18007 ac_dir=`dirname $RANLIB_FOR_TARGET`
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18009 $as_echo "pre-installed in $ac_dir" >&6; }
18010 else
18011 # Canadian cross, just use what we found
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18013 $as_echo "pre-installed" >&6; }
18015 else
18016 ok=yes
18017 case " ${configdirs} " in
18018 *" binutils "*) ;;
18019 *) ok=no ;;
18020 esac
18022 if test $ok = yes; then
18023 # An in-tree tool is available and we can use it
18024 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18026 $as_echo "just compiled" >&6; }
18027 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18028 # We already found the complete path
18029 ac_dir=`dirname $RANLIB_FOR_TARGET`
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18031 $as_echo "pre-installed in $ac_dir" >&6; }
18032 elif test "x$target" = "x$host"; then
18033 # We can use an host tool
18034 RANLIB_FOR_TARGET='$(RANLIB)'
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18036 $as_echo "host tool" >&6; }
18037 else
18038 # We need a cross tool
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18040 $as_echo "pre-installed" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18045 $as_echo_n "checking where to find the target readelf... " >&6; }
18046 if test "x${build}" != "x${host}" ; then
18047 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18048 # We already found the complete path
18049 ac_dir=`dirname $READELF_FOR_TARGET`
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18051 $as_echo "pre-installed in $ac_dir" >&6; }
18052 else
18053 # Canadian cross, just use what we found
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18055 $as_echo "pre-installed" >&6; }
18057 else
18058 ok=yes
18059 case " ${configdirs} " in
18060 *" binutils "*) ;;
18061 *) ok=no ;;
18062 esac
18064 if test $ok = yes; then
18065 # An in-tree tool is available and we can use it
18066 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18068 $as_echo "just compiled" >&6; }
18069 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18070 # We already found the complete path
18071 ac_dir=`dirname $READELF_FOR_TARGET`
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18073 $as_echo "pre-installed in $ac_dir" >&6; }
18074 elif test "x$target" = "x$host"; then
18075 # We can use an host tool
18076 READELF_FOR_TARGET='$(READELF)'
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18078 $as_echo "host tool" >&6; }
18079 else
18080 # We need a cross tool
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18082 $as_echo "pre-installed" >&6; }
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18087 $as_echo_n "checking where to find the target strip... " >&6; }
18088 if test "x${build}" != "x${host}" ; then
18089 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18090 # We already found the complete path
18091 ac_dir=`dirname $STRIP_FOR_TARGET`
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18093 $as_echo "pre-installed in $ac_dir" >&6; }
18094 else
18095 # Canadian cross, just use what we found
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18097 $as_echo "pre-installed" >&6; }
18099 else
18100 ok=yes
18101 case " ${configdirs} " in
18102 *" binutils "*) ;;
18103 *) ok=no ;;
18104 esac
18106 if test $ok = yes; then
18107 # An in-tree tool is available and we can use it
18108 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18110 $as_echo "just compiled" >&6; }
18111 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18112 # We already found the complete path
18113 ac_dir=`dirname $STRIP_FOR_TARGET`
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18115 $as_echo "pre-installed in $ac_dir" >&6; }
18116 elif test "x$target" = "x$host"; then
18117 # We can use an host tool
18118 STRIP_FOR_TARGET='$(STRIP)'
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18120 $as_echo "host tool" >&6; }
18121 else
18122 # We need a cross tool
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18124 $as_echo "pre-installed" >&6; }
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18129 $as_echo_n "checking where to find the target windres... " >&6; }
18130 if test "x${build}" != "x${host}" ; then
18131 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18132 # We already found the complete path
18133 ac_dir=`dirname $WINDRES_FOR_TARGET`
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18135 $as_echo "pre-installed in $ac_dir" >&6; }
18136 else
18137 # Canadian cross, just use what we found
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18139 $as_echo "pre-installed" >&6; }
18141 else
18142 ok=yes
18143 case " ${configdirs} " in
18144 *" binutils "*) ;;
18145 *) ok=no ;;
18146 esac
18148 if test $ok = yes; then
18149 # An in-tree tool is available and we can use it
18150 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18152 $as_echo "just compiled" >&6; }
18153 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18154 # We already found the complete path
18155 ac_dir=`dirname $WINDRES_FOR_TARGET`
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18157 $as_echo "pre-installed in $ac_dir" >&6; }
18158 elif test "x$target" = "x$host"; then
18159 # We can use an host tool
18160 WINDRES_FOR_TARGET='$(WINDRES)'
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18162 $as_echo "host tool" >&6; }
18163 else
18164 # We need a cross tool
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18166 $as_echo "pre-installed" >&6; }
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18171 $as_echo_n "checking where to find the target windmc... " >&6; }
18172 if test "x${build}" != "x${host}" ; then
18173 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18174 # We already found the complete path
18175 ac_dir=`dirname $WINDMC_FOR_TARGET`
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18177 $as_echo "pre-installed in $ac_dir" >&6; }
18178 else
18179 # Canadian cross, just use what we found
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18181 $as_echo "pre-installed" >&6; }
18183 else
18184 ok=yes
18185 case " ${configdirs} " in
18186 *" binutils "*) ;;
18187 *) ok=no ;;
18188 esac
18190 if test $ok = yes; then
18191 # An in-tree tool is available and we can use it
18192 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18194 $as_echo "just compiled" >&6; }
18195 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18196 # We already found the complete path
18197 ac_dir=`dirname $WINDMC_FOR_TARGET`
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18199 $as_echo "pre-installed in $ac_dir" >&6; }
18200 elif test "x$target" = "x$host"; then
18201 # We can use an host tool
18202 WINDMC_FOR_TARGET='$(WINDMC)'
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18204 $as_echo "host tool" >&6; }
18205 else
18206 # We need a cross tool
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18208 $as_echo "pre-installed" >&6; }
18216 # Certain tools may need extra flags.
18217 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18218 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18219 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18221 # When building target libraries, except in a Canadian cross, we use
18222 # the same toolchain as the compiler we just built.
18223 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18224 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18225 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18226 if test $host = $build; then
18227 case " $configdirs " in
18228 *" gcc "*)
18229 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18230 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18231 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18233 esac
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18242 # Check whether --enable-maintainer-mode was given.
18243 if test "${enable_maintainer_mode+set}" = set; then :
18244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18245 else
18246 USE_MAINTAINER_MODE=no
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18253 if test "$USE_MAINTAINER_MODE" = yes; then
18254 MAINTAINER_MODE_TRUE=
18255 MAINTAINER_MODE_FALSE='#'
18256 else
18257 MAINTAINER_MODE_TRUE='#'
18258 MAINTAINER_MODE_FALSE=
18260 MAINT=$MAINTAINER_MODE_TRUE
18262 # ---------------------
18263 # GCC bootstrap support
18264 # ---------------------
18266 # Stage specific cflags for build.
18267 stage1_cflags="-g"
18268 case $build in
18269 vax-*-*)
18270 case ${GCC} in
18271 yes) stage1_cflags="-g -Wa,-J" ;;
18272 *) stage1_cflags="-g -J" ;;
18273 esac ;;
18274 esac
18278 # Enable --enable-checking in stage1 of the compiler.
18279 # Check whether --enable-stage1-checking was given.
18280 if test "${enable_stage1_checking+set}" = set; then :
18281 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18282 else
18283 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18284 # For --disable-checking or implicit --enable-checking=release, avoid
18285 # setting --enable-checking=gc in the default stage1 checking for LTO
18286 # bootstraps. See PR62077.
18287 case $BUILD_CONFIG in
18288 *lto*)
18289 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18291 stage1_checking=--enable-checking=yes,types;;
18292 esac
18293 if test "x$enable_checking" = x && \
18294 test -d ${srcdir}/gcc && \
18295 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18296 stage1_checking=--enable-checking=yes,types,extra
18298 else
18299 stage1_checking=--enable-checking=$enable_checking,types
18305 # Enable -Werror in bootstrap stage2 and later.
18306 # Check whether --enable-werror was given.
18307 if test "${enable_werror+set}" = set; then :
18308 enableval=$enable_werror;
18309 case ${enable_werror} in
18310 yes) stage2_werror_flag="--enable-werror-always" ;;
18311 *) stage2_werror_flag="" ;;
18312 esac
18314 else
18316 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18317 case $BUILD_CONFIG in
18318 bootstrap-debug)
18319 stage2_werror_flag="--enable-werror-always" ;;
18321 stage2_werror_flag="--enable-werror-always" ;;
18322 esac
18330 # Specify what files to not compare during bootstrap.
18332 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18333 case "$target" in
18334 hppa*64*-*-hpux*) ;;
18335 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18336 esac
18339 ac_config_files="$ac_config_files Makefile"
18341 cat >confcache <<\_ACEOF
18342 # This file is a shell script that caches the results of configure
18343 # tests run on this system so they can be shared between configure
18344 # scripts and configure runs, see configure's option --config-cache.
18345 # It is not useful on other systems. If it contains results you don't
18346 # want to keep, you may remove or edit it.
18348 # config.status only pays attention to the cache file if you give it
18349 # the --recheck option to rerun configure.
18351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18353 # following values.
18355 _ACEOF
18357 # The following way of writing the cache mishandles newlines in values,
18358 # but we know of no workaround that is simple, portable, and efficient.
18359 # So, we kill variables containing newlines.
18360 # Ultrix sh set writes to stderr and can't be redirected directly,
18361 # and sets the high bit in the cache file unless we assign to the vars.
18363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18364 eval ac_val=\$$ac_var
18365 case $ac_val in #(
18366 *${as_nl}*)
18367 case $ac_var in #(
18368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18370 esac
18371 case $ac_var in #(
18372 _ | IFS | as_nl) ;; #(
18373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18374 *) { eval $ac_var=; unset $ac_var;} ;;
18375 esac ;;
18376 esac
18377 done
18379 (set) 2>&1 |
18380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18381 *${as_nl}ac_space=\ *)
18382 # `set' does not quote correctly, so add quotes: double-quote
18383 # substitution turns \\\\ into \\, and sed turns \\ into \.
18384 sed -n \
18385 "s/'/'\\\\''/g;
18386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18387 ;; #(
18389 # `set' quotes correctly as required by POSIX, so do not add quotes.
18390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18392 esac |
18393 sort
18395 sed '
18396 /^ac_cv_env_/b end
18397 t clear
18398 :clear
18399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18400 t end
18401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18402 :end' >>confcache
18403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18404 if test -w "$cache_file"; then
18405 if test "x$cache_file" != "x/dev/null"; then
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18407 $as_echo "$as_me: updating cache $cache_file" >&6;}
18408 if test ! -f "$cache_file" || test -h "$cache_file"; then
18409 cat confcache >"$cache_file"
18410 else
18411 case $cache_file in #(
18412 */* | ?:*)
18413 mv -f confcache "$cache_file"$$ &&
18414 mv -f "$cache_file"$$ "$cache_file" ;; #(
18416 mv -f confcache "$cache_file" ;;
18417 esac
18420 else
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18422 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18425 rm -f confcache
18427 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18428 # Let make expand exec_prefix.
18429 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18431 # Transform confdefs.h into DEFS.
18432 # Protect against shell expansion while executing Makefile rules.
18433 # Protect against Makefile macro expansion.
18435 # If the first sed substitution is executed (which looks for macros that
18436 # take arguments), then branch to the quote section. Otherwise,
18437 # look for a macro that doesn't take arguments.
18438 ac_script='
18439 :mline
18440 /\\$/{
18442 s,\\\n,,
18443 b mline
18445 t clear
18446 :clear
18447 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18448 t quote
18449 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18450 t quote
18451 b any
18452 :quote
18453 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18454 s/\[/\\&/g
18455 s/\]/\\&/g
18456 s/\$/$$/g
18458 :any
18461 s/^\n//
18462 s/\n/ /g
18466 DEFS=`sed -n "$ac_script" confdefs.h`
18469 ac_libobjs=
18470 ac_ltlibobjs=
18472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18473 # 1. Remove the extension, and $U if already installed.
18474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18477 # will be set to the directory where LIBOBJS objects are built.
18478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18480 done
18481 LIBOBJS=$ac_libobjs
18483 LTLIBOBJS=$ac_ltlibobjs
18487 : "${CONFIG_STATUS=./config.status}"
18488 ac_write_fail=0
18489 ac_clean_files_save=$ac_clean_files
18490 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18492 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18493 as_write_fail=0
18494 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18495 #! $SHELL
18496 # Generated by $as_me.
18497 # Run this file to recreate the current configuration.
18498 # Compiler output produced by configure, useful for debugging
18499 # configure, is in config.log if it exists.
18501 debug=false
18502 ac_cs_recheck=false
18503 ac_cs_silent=false
18505 SHELL=\${CONFIG_SHELL-$SHELL}
18506 export SHELL
18507 _ASEOF
18508 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18509 ## -------------------- ##
18510 ## M4sh Initialization. ##
18511 ## -------------------- ##
18513 # Be more Bourne compatible
18514 DUALCASE=1; export DUALCASE # for MKS sh
18515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18516 emulate sh
18517 NULLCMD=:
18518 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18519 # is contrary to our usage. Disable this feature.
18520 alias -g '${1+"$@"}'='"$@"'
18521 setopt NO_GLOB_SUBST
18522 else
18523 case `(set -o) 2>/dev/null` in #(
18524 *posix*) :
18525 set -o posix ;; #(
18526 *) :
18528 esac
18532 as_nl='
18534 export as_nl
18535 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18536 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18537 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18538 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18539 # Prefer a ksh shell builtin over an external printf program on Solaris,
18540 # but without wasting forks for bash or zsh.
18541 if test -z "$BASH_VERSION$ZSH_VERSION" \
18542 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18543 as_echo='print -r --'
18544 as_echo_n='print -rn --'
18545 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18546 as_echo='printf %s\n'
18547 as_echo_n='printf %s'
18548 else
18549 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18550 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18551 as_echo_n='/usr/ucb/echo -n'
18552 else
18553 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18554 as_echo_n_body='eval
18555 arg=$1;
18556 case $arg in #(
18557 *"$as_nl"*)
18558 expr "X$arg" : "X\\(.*\\)$as_nl";
18559 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18560 esac;
18561 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18563 export as_echo_n_body
18564 as_echo_n='sh -c $as_echo_n_body as_echo'
18566 export as_echo_body
18567 as_echo='sh -c $as_echo_body as_echo'
18570 # The user is always right.
18571 if test "${PATH_SEPARATOR+set}" != set; then
18572 PATH_SEPARATOR=:
18573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18574 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18575 PATH_SEPARATOR=';'
18580 # IFS
18581 # We need space, tab and new line, in precisely that order. Quoting is
18582 # there to prevent editors from complaining about space-tab.
18583 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18584 # splitting by setting IFS to empty value.)
18585 IFS=" "" $as_nl"
18587 # Find who we are. Look in the path if we contain no directory separator.
18588 as_myself=
18589 case $0 in #((
18590 *[\\/]* ) as_myself=$0 ;;
18591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18592 for as_dir in $PATH
18594 IFS=$as_save_IFS
18595 test -z "$as_dir" && as_dir=.
18596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18597 done
18598 IFS=$as_save_IFS
18601 esac
18602 # We did not find ourselves, most probably we were run as `sh COMMAND'
18603 # in which case we are not to be found in the path.
18604 if test "x$as_myself" = x; then
18605 as_myself=$0
18607 if test ! -f "$as_myself"; then
18608 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18609 exit 1
18612 # Unset variables that we do not need and which cause bugs (e.g. in
18613 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18614 # suppresses any "Segmentation fault" message there. '((' could
18615 # trigger a bug in pdksh 5.2.14.
18616 for as_var in BASH_ENV ENV MAIL MAILPATH
18617 do eval test x\${$as_var+set} = xset \
18618 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18619 done
18620 PS1='$ '
18621 PS2='> '
18622 PS4='+ '
18624 # NLS nuisances.
18625 LC_ALL=C
18626 export LC_ALL
18627 LANGUAGE=C
18628 export LANGUAGE
18630 # CDPATH.
18631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18634 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18635 # ----------------------------------------
18636 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18637 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18638 # script with STATUS, using 1 if that was 0.
18639 as_fn_error ()
18641 as_status=$1; test $as_status -eq 0 && as_status=1
18642 if test "$4"; then
18643 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18644 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18646 $as_echo "$as_me: error: $2" >&2
18647 as_fn_exit $as_status
18648 } # as_fn_error
18651 # as_fn_set_status STATUS
18652 # -----------------------
18653 # Set $? to STATUS, without forking.
18654 as_fn_set_status ()
18656 return $1
18657 } # as_fn_set_status
18659 # as_fn_exit STATUS
18660 # -----------------
18661 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18662 as_fn_exit ()
18664 set +e
18665 as_fn_set_status $1
18666 exit $1
18667 } # as_fn_exit
18669 # as_fn_unset VAR
18670 # ---------------
18671 # Portably unset VAR.
18672 as_fn_unset ()
18674 { eval $1=; unset $1;}
18676 as_unset=as_fn_unset
18677 # as_fn_append VAR VALUE
18678 # ----------------------
18679 # Append the text in VALUE to the end of the definition contained in VAR. Take
18680 # advantage of any shell optimizations that allow amortized linear growth over
18681 # repeated appends, instead of the typical quadratic growth present in naive
18682 # implementations.
18683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18684 eval 'as_fn_append ()
18686 eval $1+=\$2
18688 else
18689 as_fn_append ()
18691 eval $1=\$$1\$2
18693 fi # as_fn_append
18695 # as_fn_arith ARG...
18696 # ------------------
18697 # Perform arithmetic evaluation on the ARGs, and store the result in the
18698 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18699 # must be portable across $(()) and expr.
18700 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18701 eval 'as_fn_arith ()
18703 as_val=$(( $* ))
18705 else
18706 as_fn_arith ()
18708 as_val=`expr "$@" || test $? -eq 1`
18710 fi # as_fn_arith
18713 if expr a : '\(a\)' >/dev/null 2>&1 &&
18714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18715 as_expr=expr
18716 else
18717 as_expr=false
18720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18721 as_basename=basename
18722 else
18723 as_basename=false
18726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18727 as_dirname=dirname
18728 else
18729 as_dirname=false
18732 as_me=`$as_basename -- "$0" ||
18733 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18734 X"$0" : 'X\(//\)$' \| \
18735 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18736 $as_echo X/"$0" |
18737 sed '/^.*\/\([^/][^/]*\)\/*$/{
18738 s//\1/
18741 /^X\/\(\/\/\)$/{
18742 s//\1/
18745 /^X\/\(\/\).*/{
18746 s//\1/
18749 s/.*/./; q'`
18751 # Avoid depending upon Character Ranges.
18752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18755 as_cr_digits='0123456789'
18756 as_cr_alnum=$as_cr_Letters$as_cr_digits
18758 ECHO_C= ECHO_N= ECHO_T=
18759 case `echo -n x` in #(((((
18760 -n*)
18761 case `echo 'xy\c'` in
18762 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18763 xy) ECHO_C='\c';;
18764 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18765 ECHO_T=' ';;
18766 esac;;
18768 ECHO_N='-n';;
18769 esac
18771 rm -f conf$$ conf$$.exe conf$$.file
18772 if test -d conf$$.dir; then
18773 rm -f conf$$.dir/conf$$.file
18774 else
18775 rm -f conf$$.dir
18776 mkdir conf$$.dir 2>/dev/null
18778 if (echo >conf$$.file) 2>/dev/null; then
18779 if ln -s conf$$.file conf$$ 2>/dev/null; then
18780 as_ln_s='ln -s'
18781 # ... but there are two gotchas:
18782 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18783 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18784 # In both cases, we have to default to `cp -pR'.
18785 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18786 as_ln_s='cp -pR'
18787 elif ln conf$$.file conf$$ 2>/dev/null; then
18788 as_ln_s=ln
18789 else
18790 as_ln_s='cp -pR'
18792 else
18793 as_ln_s='cp -pR'
18795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18796 rmdir conf$$.dir 2>/dev/null
18799 # as_fn_mkdir_p
18800 # -------------
18801 # Create "$as_dir" as a directory, including parents if necessary.
18802 as_fn_mkdir_p ()
18805 case $as_dir in #(
18806 -*) as_dir=./$as_dir;;
18807 esac
18808 test -d "$as_dir" || eval $as_mkdir_p || {
18809 as_dirs=
18810 while :; do
18811 case $as_dir in #(
18812 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18813 *) as_qdir=$as_dir;;
18814 esac
18815 as_dirs="'$as_qdir' $as_dirs"
18816 as_dir=`$as_dirname -- "$as_dir" ||
18817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18818 X"$as_dir" : 'X\(//\)[^/]' \| \
18819 X"$as_dir" : 'X\(//\)$' \| \
18820 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18821 $as_echo X"$as_dir" |
18822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18823 s//\1/
18826 /^X\(\/\/\)[^/].*/{
18827 s//\1/
18830 /^X\(\/\/\)$/{
18831 s//\1/
18834 /^X\(\/\).*/{
18835 s//\1/
18838 s/.*/./; q'`
18839 test -d "$as_dir" && break
18840 done
18841 test -z "$as_dirs" || eval "mkdir $as_dirs"
18842 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18845 } # as_fn_mkdir_p
18846 if mkdir -p . 2>/dev/null; then
18847 as_mkdir_p='mkdir -p "$as_dir"'
18848 else
18849 test -d ./-p && rmdir ./-p
18850 as_mkdir_p=false
18854 # as_fn_executable_p FILE
18855 # -----------------------
18856 # Test if FILE is an executable regular file.
18857 as_fn_executable_p ()
18859 test -f "$1" && test -x "$1"
18860 } # as_fn_executable_p
18861 as_test_x='test -x'
18862 as_executable_p=as_fn_executable_p
18864 # Sed expression to map a string onto a valid CPP name.
18865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18867 # Sed expression to map a string onto a valid variable name.
18868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18871 exec 6>&1
18872 ## ----------------------------------- ##
18873 ## Main body of $CONFIG_STATUS script. ##
18874 ## ----------------------------------- ##
18875 _ASEOF
18876 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18879 # Save the log message, to keep $0 and so on meaningful, and to
18880 # report actual input values of CONFIG_FILES etc. instead of their
18881 # values after options handling.
18882 ac_log="
18883 This file was extended by $as_me, which was
18884 generated by GNU Autoconf 2.69. Invocation command line was
18886 CONFIG_FILES = $CONFIG_FILES
18887 CONFIG_HEADERS = $CONFIG_HEADERS
18888 CONFIG_LINKS = $CONFIG_LINKS
18889 CONFIG_COMMANDS = $CONFIG_COMMANDS
18890 $ $0 $@
18892 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18895 _ACEOF
18897 case $ac_config_files in *"
18898 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18899 esac
18903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18904 # Files that config.status was made for.
18905 config_files="$ac_config_files"
18907 _ACEOF
18909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18910 ac_cs_usage="\
18911 \`$as_me' instantiates files and other configuration actions
18912 from templates according to the current configuration. Unless the files
18913 and actions are specified as TAGs, all are instantiated by default.
18915 Usage: $0 [OPTION]... [TAG]...
18917 -h, --help print this help, then exit
18918 -V, --version print version number and configuration settings, then exit
18919 --config print configuration, then exit
18920 -q, --quiet, --silent
18921 do not print progress messages
18922 -d, --debug don't remove temporary files
18923 --recheck update $as_me by reconfiguring in the same conditions
18924 --file=FILE[:TEMPLATE]
18925 instantiate the configuration file FILE
18927 Configuration files:
18928 $config_files
18930 Report bugs to the package provider."
18932 _ACEOF
18933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18934 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18935 ac_cs_version="\\
18936 config.status
18937 configured by $0, generated by GNU Autoconf 2.69,
18938 with options \\"\$ac_cs_config\\"
18940 Copyright (C) 2012 Free Software Foundation, Inc.
18941 This config.status script is free software; the Free Software Foundation
18942 gives unlimited permission to copy, distribute and modify it."
18944 ac_pwd='$ac_pwd'
18945 srcdir='$srcdir'
18946 INSTALL='$INSTALL'
18947 AWK='$AWK'
18948 test -n "\$AWK" || AWK=awk
18949 _ACEOF
18951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18952 # The default lists apply if the user does not specify any file.
18953 ac_need_defaults=:
18954 while test $# != 0
18956 case $1 in
18957 --*=?*)
18958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18960 ac_shift=:
18962 --*=)
18963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18964 ac_optarg=
18965 ac_shift=:
18968 ac_option=$1
18969 ac_optarg=$2
18970 ac_shift=shift
18972 esac
18974 case $ac_option in
18975 # Handling of the options.
18976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18977 ac_cs_recheck=: ;;
18978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18979 $as_echo "$ac_cs_version"; exit ;;
18980 --config | --confi | --conf | --con | --co | --c )
18981 $as_echo "$ac_cs_config"; exit ;;
18982 --debug | --debu | --deb | --de | --d | -d )
18983 debug=: ;;
18984 --file | --fil | --fi | --f )
18985 $ac_shift
18986 case $ac_optarg in
18987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18988 '') as_fn_error $? "missing file argument" ;;
18989 esac
18990 as_fn_append CONFIG_FILES " '$ac_optarg'"
18991 ac_need_defaults=false;;
18992 --he | --h | --help | --hel | -h )
18993 $as_echo "$ac_cs_usage"; exit ;;
18994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18995 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18996 ac_cs_silent=: ;;
18998 # This is an error.
18999 -*) as_fn_error $? "unrecognized option: \`$1'
19000 Try \`$0 --help' for more information." ;;
19002 *) as_fn_append ac_config_targets " $1"
19003 ac_need_defaults=false ;;
19005 esac
19006 shift
19007 done
19009 ac_configure_extra_args=
19011 if $ac_cs_silent; then
19012 exec 6>/dev/null
19013 ac_configure_extra_args="$ac_configure_extra_args --silent"
19016 _ACEOF
19017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19018 if \$ac_cs_recheck; then
19019 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19020 shift
19021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19022 CONFIG_SHELL='$SHELL'
19023 export CONFIG_SHELL
19024 exec "\$@"
19027 _ACEOF
19028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19029 exec 5>>config.log
19031 echo
19032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19033 ## Running $as_me. ##
19034 _ASBOX
19035 $as_echo "$ac_log"
19036 } >&5
19038 _ACEOF
19039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19041 # INIT-COMMANDS
19043 extrasub_build="$extrasub_build"
19044 extrasub_host="$extrasub_host"
19045 extrasub_target="$extrasub_target"
19047 _ACEOF
19049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 # Handling of arguments.
19052 for ac_config_target in $ac_config_targets
19054 case $ac_config_target in
19055 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19058 esac
19059 done
19062 # If the user did not use the arguments to specify the items to instantiate,
19063 # then the envvar interface is used. Set only those that are not.
19064 # We use the long form for the default assignment because of an extremely
19065 # bizarre bug on SunOS 4.1.3.
19066 if $ac_need_defaults; then
19067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19070 # Have a temporary directory for convenience. Make it in the build tree
19071 # simply because there is no reason against having it here, and in addition,
19072 # creating and moving files from /tmp can sometimes cause problems.
19073 # Hook for its removal unless debugging.
19074 # Note that there is a small window in which the directory will not be cleaned:
19075 # after its creation but before its name has been assigned to `$tmp'.
19076 $debug ||
19078 tmp= ac_tmp=
19079 trap 'exit_status=$?
19080 : "${ac_tmp:=$tmp}"
19081 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19083 trap 'as_fn_exit 1' 1 2 13 15
19085 # Create a (secure) tmp directory for tmp files.
19088 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19089 test -d "$tmp"
19090 } ||
19092 tmp=./conf$$-$RANDOM
19093 (umask 077 && mkdir "$tmp")
19094 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19095 ac_tmp=$tmp
19097 # Set up the scripts for CONFIG_FILES section.
19098 # No need to generate them if there are no CONFIG_FILES.
19099 # This happens for instance with `./config.status config.h'.
19100 if test -n "$CONFIG_FILES"; then
19102 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19103 ac_cs_awk_getline=:
19104 ac_cs_awk_pipe_init=
19105 ac_cs_awk_read_file='
19106 while ((getline aline < (F[key])) > 0)
19107 print(aline)
19108 close(F[key])'
19109 ac_cs_awk_pipe_fini=
19110 else
19111 ac_cs_awk_getline=false
19112 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19113 ac_cs_awk_read_file='
19114 print "|#_!!_#|"
19115 print "cat " F[key] " &&"
19116 '$ac_cs_awk_pipe_init
19117 # The final `:' finishes the AND list.
19118 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19120 ac_cr=`echo X | tr X '\015'`
19121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19122 # But we know of no other shell where ac_cr would be empty at this
19123 # point, so we can use a bashism as a fallback.
19124 if test "x$ac_cr" = x; then
19125 eval ac_cr=\$\'\\r\'
19127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19129 ac_cs_awk_cr='\\r'
19130 else
19131 ac_cs_awk_cr=$ac_cr
19134 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19135 _ACEOF
19137 # Create commands to substitute file output variables.
19139 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19140 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19141 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19142 echo "_ACAWK" &&
19143 echo "_ACEOF"
19144 } >conf$$files.sh &&
19145 . ./conf$$files.sh ||
19146 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19147 rm -f conf$$files.sh
19150 echo "cat >conf$$subs.awk <<_ACEOF" &&
19151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19152 echo "_ACEOF"
19153 } >conf$$subs.sh ||
19154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19156 ac_delim='%!_!# '
19157 for ac_last_try in false false false false false :; do
19158 . ./conf$$subs.sh ||
19159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19162 if test $ac_delim_n = $ac_delim_num; then
19163 break
19164 elif $ac_last_try; then
19165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19166 else
19167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19169 done
19170 rm -f conf$$subs.sh
19172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19173 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19174 _ACEOF
19175 sed -n '
19177 s/^/S["/; s/!.*/"]=/
19180 s/^[^!]*!//
19181 :repl
19182 t repl
19183 s/'"$ac_delim"'$//
19184 t delim
19187 s/\(.\{148\}\)..*/\1/
19188 t more1
19189 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19192 b repl
19193 :more1
19194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19197 s/.\{148\}//
19198 t nl
19199 :delim
19201 s/\(.\{148\}\)..*/\1/
19202 t more2
19203 s/["\\]/\\&/g; s/^/"/; s/$/"/
19206 :more2
19207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19210 s/.\{148\}//
19211 t delim
19212 ' <conf$$subs.awk | sed '
19213 /^[^""]/{
19215 s/\n//
19217 ' >>$CONFIG_STATUS || ac_write_fail=1
19218 rm -f conf$$subs.awk
19219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19220 _ACAWK
19221 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19222 for (key in S) S_is_set[key] = 1
19223 FS = "\a"
19224 \$ac_cs_awk_pipe_init
19227 line = $ 0
19228 nfields = split(line, field, "@")
19229 substed = 0
19230 len = length(field[1])
19231 for (i = 2; i < nfields; i++) {
19232 key = field[i]
19233 keylen = length(key)
19234 if (S_is_set[key]) {
19235 value = S[key]
19236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19237 len += length(value) + length(field[++i])
19238 substed = 1
19239 } else
19240 len += 1 + keylen
19242 if (nfields == 3 && !substed) {
19243 key = field[2]
19244 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19245 \$ac_cs_awk_read_file
19246 next
19249 print line
19251 \$ac_cs_awk_pipe_fini
19252 _ACAWK
19253 _ACEOF
19254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19255 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19256 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19257 else
19259 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19260 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19261 _ACEOF
19263 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19264 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19265 # trailing colons and then remove the whole line if VPATH becomes empty
19266 # (actually we leave an empty line to preserve line numbers).
19267 if test "x$srcdir" = x.; then
19268 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19270 s///
19271 s/^/:/
19272 s/[ ]*$/:/
19273 s/:\$(srcdir):/:/g
19274 s/:\${srcdir}:/:/g
19275 s/:@srcdir@:/:/g
19276 s/^:*//
19277 s/:*$//
19279 s/\(=[ ]*\).*/\1/
19281 s/\n//
19282 s/^[^=]*=[ ]*$//
19286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19287 fi # test -n "$CONFIG_FILES"
19290 eval set X " :F $CONFIG_FILES "
19291 shift
19292 for ac_tag
19294 case $ac_tag in
19295 :[FHLC]) ac_mode=$ac_tag; continue;;
19296 esac
19297 case $ac_mode$ac_tag in
19298 :[FHL]*:*);;
19299 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19300 :[FH]-) ac_tag=-:-;;
19301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19302 esac
19303 ac_save_IFS=$IFS
19304 IFS=:
19305 set x $ac_tag
19306 IFS=$ac_save_IFS
19307 shift
19308 ac_file=$1
19309 shift
19311 case $ac_mode in
19312 :L) ac_source=$1;;
19313 :[FH])
19314 ac_file_inputs=
19315 for ac_f
19317 case $ac_f in
19318 -) ac_f="$ac_tmp/stdin";;
19319 *) # Look for the file first in the build tree, then in the source tree
19320 # (if the path is not absolute). The absolute path cannot be DOS-style,
19321 # because $ac_f cannot contain `:'.
19322 test -f "$ac_f" ||
19323 case $ac_f in
19324 [\\/$]*) false;;
19325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19326 esac ||
19327 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19328 esac
19329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19330 as_fn_append ac_file_inputs " '$ac_f'"
19331 done
19333 # Let's still pretend it is `configure' which instantiates (i.e., don't
19334 # use $as_me), people would be surprised to read:
19335 # /* config.h. Generated by config.status. */
19336 configure_input='Generated from '`
19337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19338 `' by configure.'
19339 if test x"$ac_file" != x-; then
19340 configure_input="$ac_file. $configure_input"
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19342 $as_echo "$as_me: creating $ac_file" >&6;}
19344 # Neutralize special characters interpreted by sed in replacement strings.
19345 case $configure_input in #(
19346 *\&* | *\|* | *\\* )
19347 ac_sed_conf_input=`$as_echo "$configure_input" |
19348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19349 *) ac_sed_conf_input=$configure_input;;
19350 esac
19352 case $ac_tag in
19353 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19355 esac
19357 esac
19359 ac_dir=`$as_dirname -- "$ac_file" ||
19360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19361 X"$ac_file" : 'X\(//\)[^/]' \| \
19362 X"$ac_file" : 'X\(//\)$' \| \
19363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19364 $as_echo X"$ac_file" |
19365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19366 s//\1/
19369 /^X\(\/\/\)[^/].*/{
19370 s//\1/
19373 /^X\(\/\/\)$/{
19374 s//\1/
19377 /^X\(\/\).*/{
19378 s//\1/
19381 s/.*/./; q'`
19382 as_dir="$ac_dir"; as_fn_mkdir_p
19383 ac_builddir=.
19385 case "$ac_dir" in
19386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19389 # A ".." for each directory in $ac_dir_suffix.
19390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19391 case $ac_top_builddir_sub in
19392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19394 esac ;;
19395 esac
19396 ac_abs_top_builddir=$ac_pwd
19397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19398 # for backward compatibility:
19399 ac_top_builddir=$ac_top_build_prefix
19401 case $srcdir in
19402 .) # We are building in place.
19403 ac_srcdir=.
19404 ac_top_srcdir=$ac_top_builddir_sub
19405 ac_abs_top_srcdir=$ac_pwd ;;
19406 [\\/]* | ?:[\\/]* ) # Absolute name.
19407 ac_srcdir=$srcdir$ac_dir_suffix;
19408 ac_top_srcdir=$srcdir
19409 ac_abs_top_srcdir=$srcdir ;;
19410 *) # Relative name.
19411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19412 ac_top_srcdir=$ac_top_build_prefix$srcdir
19413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19414 esac
19415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19418 case $ac_mode in
19421 # CONFIG_FILE
19424 case $INSTALL in
19425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19427 esac
19428 _ACEOF
19430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19431 # If the template does not know about datarootdir, expand it.
19432 # FIXME: This hack should be removed a few years after 2.60.
19433 ac_datarootdir_hack=; ac_datarootdir_seen=
19434 ac_sed_dataroot='
19435 /datarootdir/ {
19439 /@datadir@/p
19440 /@docdir@/p
19441 /@infodir@/p
19442 /@localedir@/p
19443 /@mandir@/p'
19444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19445 *datarootdir*) ac_datarootdir_seen=yes;;
19446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19449 _ACEOF
19450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19451 ac_datarootdir_hack='
19452 s&@datadir@&$datadir&g
19453 s&@docdir@&$docdir&g
19454 s&@infodir@&$infodir&g
19455 s&@localedir@&$localedir&g
19456 s&@mandir@&$mandir&g
19457 s&\\\${datarootdir}&$datarootdir&g' ;;
19458 esac
19459 _ACEOF
19461 # Neutralize VPATH when `$srcdir' = `.'.
19462 # Shell code in configure.ac might set extrasub.
19463 # FIXME: do we really want to maintain this feature?
19464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19465 ac_sed_extra="$ac_vpsub
19466 $extrasub
19467 _ACEOF
19468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19471 s|@configure_input@|$ac_sed_conf_input|;t t
19472 s&@top_builddir@&$ac_top_builddir_sub&;t t
19473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19474 s&@srcdir@&$ac_srcdir&;t t
19475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19476 s&@top_srcdir@&$ac_top_srcdir&;t t
19477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19478 s&@builddir@&$ac_builddir&;t t
19479 s&@abs_builddir@&$ac_abs_builddir&;t t
19480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19481 s&@INSTALL@&$ac_INSTALL&;t t
19482 $ac_datarootdir_hack
19484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19485 if $ac_cs_awk_getline; then
19486 $AWK -f "$ac_tmp/subs.awk"
19487 else
19488 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19489 fi \
19490 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19493 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19495 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19497 which seems to be undefined. Please make sure it is defined" >&5
19498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19499 which seems to be undefined. Please make sure it is defined" >&2;}
19501 rm -f "$ac_tmp/stdin"
19502 case $ac_file in
19503 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19504 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19505 esac \
19506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19511 esac
19514 case $ac_file$ac_mode in
19515 "Makefile":F) sed "$extrasub_build" Makefile |
19516 sed "$extrasub_host" |
19517 sed "$extrasub_target" > mf$$
19518 mv -f mf$$ Makefile ;;
19520 esac
19521 done # for ac_tag
19524 as_fn_exit 0
19525 _ACEOF
19526 ac_clean_files=$ac_clean_files_save
19528 test $ac_write_fail = 0 ||
19529 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19532 # configure is writing to config.log, and then calls config.status.
19533 # config.status does its own redirection, appending to config.log.
19534 # Unfortunately, on DOS this fails, as config.log is still kept open
19535 # by configure, so config.status won't be able to write to it; its
19536 # output is simply discarded. So we exec the FD to /dev/null,
19537 # effectively closing config.log, so it can be properly (re)opened and
19538 # appended to by config.status. When coming back to configure, we
19539 # need to make the FD available again.
19540 if test "$no_create" != yes; then
19541 ac_cs_success=:
19542 ac_config_status_args=
19543 test "$silent" = yes &&
19544 ac_config_status_args="$ac_config_status_args --quiet"
19545 exec 5>/dev/null
19546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19547 exec 5>>config.log
19548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19549 # would make configure fail if this is the last instruction.
19550 $ac_cs_success || as_fn_exit 1
19552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}