Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / cpp / configure
blob5f966e0dd7d417c97c6289ca8079018b2e0b51c2
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 MAINT
590 MAINTAINER_MODE_FALSE
591 MAINTAINER_MODE_TRUE
592 COMPILER_NM_FOR_TARGET
593 COMPILER_LD_FOR_TARGET
594 COMPILER_AS_FOR_TARGET
595 FLAGS_FOR_TARGET
596 RAW_CXX_FOR_TARGET
597 WINDMC_FOR_TARGET
598 WINDRES_FOR_TARGET
599 STRIP_FOR_TARGET
600 READELF_FOR_TARGET
601 RANLIB_FOR_TARGET
602 OTOOL_FOR_TARGET
603 OBJDUMP_FOR_TARGET
604 OBJCOPY_FOR_TARGET
605 NM_FOR_TARGET
606 LIPO_FOR_TARGET
607 LD_FOR_TARGET
608 DSYMUTIL_FOR_TARGET
609 DLLTOOL_FOR_TARGET
610 AS_FOR_TARGET
611 AR_FOR_TARGET
612 get_gcc_base_ver
613 GDC_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 GDCFLAGS
620 READELF
621 OTOOL
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
629 LIPO
631 DSYMUTIL
632 DLLTOOL
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
641 BISON
642 YACC
643 ospace_frag
644 alphaieee_frag
645 target_makefile_frag
646 host_makefile_frag
647 c_target_objs
648 thread_file
649 symbolic_link
650 out_object_file
651 out_file
652 md_file
653 local_prefix
654 lang_tree_files
655 install
656 host_extra_gcc_objs
657 host_exeext
658 gcc_version_trigger
659 gcc_version_full
660 gcc_version
661 gcc_config_arguments
662 extra_programs
663 extra_passes
664 extra_parts
665 extra_objs
666 extra_headers_list
667 extra_c_flags
668 dep_tmake_file
669 dep_host_xmake_file
670 check_languages
671 build_xm_defines
672 build_xm_file
673 build_xm_file_list
674 build_install_headers_dir
675 build_exeext
676 all_stagestuff
677 WINDRES_FOR_BUILD
678 WINDMC_FOR_BUILD
679 RANLIB_FOR_BUILD
680 NM_FOR_BUILD
681 LD_FOR_BUILD
682 LDFLAGS_FOR_BUILD
683 GDC_FOR_BUILD
684 GOC_FOR_BUILD
685 GFORTRAN_FOR_BUILD
686 DSYMUTIL_FOR_BUILD
687 DLLTOOL_FOR_BUILD
688 CXX_FOR_BUILD
689 CXXFLAGS_FOR_BUILD
690 CPPFLAGS_FOR_BUILD
691 CPP_FOR_BUILD
692 CFLAGS_FOR_BUILD
693 CC_FOR_BUILD
694 AS_FOR_BUILD
695 AR_FOR_BUILD
696 target_configdirs
697 configdirs
698 build_configdirs
699 INSTALL_GDB_TK
700 GDB_TK
701 CONFIGURE_GDB_TK
702 build_tooldir
703 tooldir
704 GCC_SHLIB_SUBDIR
705 RPATH_ENVVAR
706 target_configargs
707 host_configargs
708 build_configargs
709 BUILD_CONFIG
710 objext
711 manext
712 stage1_languages
713 host_shared
714 extra_linker_plugin_flags
715 extra_linker_plugin_configure_flags
716 stage1_libs
717 extra_isl_gmp_configure_flags
718 extra_mpc_mpfr_configure_flags
719 extra_mpc_gmp_configure_flags
720 extra_mpfr_configure_flags
721 gmpinc
722 gmplibs
723 PGO_BUILD_LTO_CFLAGS
724 PGO_BUILD_USE_CFLAGS
725 PGO_BUILD_GEN_CFLAGS
726 HAVE_CXX11_FOR_BUILD
727 HAVE_CXX11
728 do_compare
730 GNATMAKE
731 GNATBIND
732 ac_ct_CXX
733 CXXFLAGS
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
742 extra_liboffloadmic_configure_flags
745 LN_S
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_os
751 target_vendor
752 target_cpu
753 target
754 host_os
755 host_vendor
756 host_cpu
757 host
758 islinc
759 isllibs
760 poststage1_ldflags
761 poststage1_libs
762 stage1_ldflags
763 host_subdir
764 target_noncanonical
765 host_noncanonical
766 build_noncanonical
767 build_os
768 build_vendor
769 build_cpu
770 build
771 TOPLEVEL_CONFIGURE_ARGUMENTS
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files='serialization_dependencies
811 host_makefile_frag
812 target_makefile_frag
813 alphaieee_frag
814 ospace_frag'
815 ac_user_opts='
816 enable_option_checking
817 with_system_zlib
818 enable_as_accelerator_for
819 enable_offload_targets
820 enable_offload_defaulted
821 enable_gold
822 enable_ld
823 enable_compressed_debug_sections
824 enable_libquadmath
825 enable_libquadmath_support
826 enable_libada
827 enable_libssp
828 enable_libstdcxx
829 enable_liboffloadmic
830 enable_bootstrap
831 enable_pgo_build
832 with_mpc
833 with_mpc_include
834 with_mpc_lib
835 with_mpfr
836 with_mpfr_include
837 with_mpfr_lib
838 with_stage1_libs
839 with_static_standard_libraries
840 with_stage1_ldflags
841 with_boot_libs
842 with_boot_ldflags
843 with_isl
844 with_isl_include
845 with_isl_lib
846 enable_isl_version_check
847 enable_lto
848 enable_linker_plugin_configure_flags
849 enable_linker_plugin_flags
850 enable_host_shared
851 enable_stage1_languages
852 with_build_config
853 enable_vtable_verify
854 enable_serial_configure
855 with_build_time_tools
856 with_gcc_major_version_only
857 enable_maintainer_mode
859 ac_precious_vars='build_alias
860 host_alias
861 target_alias
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
868 CXXFLAGS
870 build_configargs
871 host_configargs
872 target_configargs
875 DLLTOOL
876 DSYMUTIL
878 LIPO
880 RANLIB
881 STRIP
882 WINDRES
883 WINDMC
884 OBJCOPY
885 OBJDUMP
886 OTOOL
887 READELF
888 CC_FOR_TARGET
889 CXX_FOR_TARGET
890 GCC_FOR_TARGET
891 GFORTRAN_FOR_TARGET
892 GOC_FOR_TARGET
893 GDC_FOR_TARGET
894 AR_FOR_TARGET
895 AS_FOR_TARGET
896 DLLTOOL_FOR_TARGET
897 DSYMUTIL_FOR_TARGET
898 LD_FOR_TARGET
899 LIPO_FOR_TARGET
900 NM_FOR_TARGET
901 OBJCOPY_FOR_TARGET
902 OBJDUMP_FOR_TARGET
903 OTOOL_FOR_TARGET
904 RANLIB_FOR_TARGET
905 READELF_FOR_TARGET
906 STRIP_FOR_TARGET
907 WINDRES_FOR_TARGET
908 WINDMC_FOR_TARGET'
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
959 ac_prev=
960 ac_dashdash=
961 for ac_option
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
970 case $ac_option in
971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
974 esac
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
980 ac_dashdash=yes ;;
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1014 -disable-* | --disable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1134 no_create=yes ;;
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200 ac_prev=sbindir ;;
1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202 | --sbi=* | --sb=*)
1203 sbindir=$ac_optarg ;;
1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207 | --sharedst | --shareds | --shared | --share | --shar \
1208 | --sha | --sh)
1209 ac_prev=sharedstatedir ;;
1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213 | --sha=* | --sh=*)
1214 sharedstatedir=$ac_optarg ;;
1216 -site | --site | --sit)
1217 ac_prev=site ;;
1218 -site=* | --site=* | --sit=*)
1219 site=$ac_optarg ;;
1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222 ac_prev=srcdir ;;
1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224 srcdir=$ac_optarg ;;
1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227 | --syscon | --sysco | --sysc | --sys | --sy)
1228 ac_prev=sysconfdir ;;
1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231 sysconfdir=$ac_optarg ;;
1233 -target | --target | --targe | --targ | --tar | --ta | --t)
1234 ac_prev=target_alias ;;
1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236 target_alias=$ac_optarg ;;
1238 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 verbose=yes ;;
1241 -version | --version | --versio | --versi | --vers | -V)
1242 ac_init_version=: ;;
1244 -with-* | --with-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
1260 -without-* | --without-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid package name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1269 "with_$ac_useropt"
1270 "*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=no ;;
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285 x_includes=$ac_optarg ;;
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292 x_libraries=$ac_optarg ;;
1294 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1298 *=*)
1299 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' | [0-9]* | *[!_$as_cr_alnum]* )
1303 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1304 esac
1305 eval $ac_envvar=\$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 esac
1317 done
1319 if test -n "$ac_prev"; then
1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $? "missing argument to $ac_option"
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1326 no) ;;
1327 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 esac
1332 # Check all directory arguments for consistency.
1333 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val=\$$ac_var
1339 # Remove trailing slashes.
1340 case $ac_val in
1341 */ )
1342 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\$ac_val;;
1344 esac
1345 # Be sure to have absolute directory names.
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 done
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372 test "$silent" = yes && exec 6>/dev/null
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $? "working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $? "pwd does not report name of working directory"
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1401 /^X\(\/\/\)$/{
1402 s//\1/
1405 /^X\(\/\).*/{
1406 s//\1/
1409 s/.*/./; q'`
1410 srcdir=$ac_confdir
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 srcdir=..
1414 else
1415 ac_srcdir_defaulted=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1421 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 ac_abs_confdir=`(
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 pwd)`
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1432 case $srcdir in
1433 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 esac
1435 case $srcdir in
1436 *" "*)
1437 as_fn_error $? "path to source, $srcdir, contains spaces"
1439 esac
1440 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1511 cat <<\_ACEOF
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1525 if test -n "$ac_init_help"; then
1527 cat <<\_ACEOF
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-as-accelerator-for=ARG
1534 build as offload target compiler. Specify offload
1535 host triple by ARG
1536 --enable-offload-targets=LIST
1537 enable offloading to devices from comma-separated
1538 LIST of TARGET[=DIR]. Use optional path to find
1539 offload target compiler during the build
1540 --enable-offload-defaulted
1541 If enabled, configured but not installed offload compilers and
1542 libgomp plugins are silently ignored. Useful for distribution
1543 compilers where those are in separate optional packages.
1545 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1546 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1547 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1548 Enable compressed debug sections for gas, gold or ld
1549 by default
1550 --disable-libquadmath do not build libquadmath directory
1551 --disable-libquadmath-support
1552 disable libquadmath support for Fortran
1553 --enable-libada build libada directory
1554 --enable-libssp build libssp directory
1555 --disable-libstdcxx do not build libstdc++-v3 directory
1556 --enable-liboffloadmic=ARG
1557 build liboffloadmic [ARG={no,host,target}]
1558 --enable-bootstrap enable bootstrapping [yes if native build]
1559 --enable-pgo-build[=lto]
1560 enable the PGO build
1561 --disable-isl-version-check
1562 disable check for isl version
1563 --enable-lto enable link time optimization support
1564 --enable-linker-plugin-configure-flags=FLAGS
1565 additional flags for configuring linker plugins
1566 [none]
1567 --enable-linker-plugin-flags=FLAGS
1568 additional flags for configuring and building linker
1569 plugins [none]
1570 --enable-host-shared build host code as shared libraries
1571 --enable-stage1-languages[=all]
1572 choose additional languages to build during stage1.
1573 Mostly useful for compiler development
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target,build}-]configure
1576 force sequential configuration of sub-packages for
1577 the host, target or build machine, or all
1578 sub-packages
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful (and
1581 sometimes confusing) to the casual installer
1583 Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-system-zlib use installed libz
1587 --with-mpc=PATH specify prefix directory for installed MPC package.
1588 Equivalent to --with-mpc-include=PATH/include plus
1589 --with-mpc-lib=PATH/lib
1590 --with-mpc-include=PATH specify directory for installed MPC include files
1591 --with-mpc-lib=PATH specify directory for the installed MPC library
1592 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1593 Equivalent to --with-mpfr-include=PATH/include plus
1594 --with-mpfr-lib=PATH/lib
1595 --with-mpfr-include=PATH
1596 specify directory for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1598 --with-stage1-libs=LIBS libraries for stage1
1599 --with-static-standard-libraries
1600 use -static-libstdc++ and -static-libgcc
1601 (default=auto)
1602 --with-stage1-ldflags=FLAGS
1603 linker flags for stage1
1604 --with-boot-libs=LIBS libraries for stage2 and later
1605 --with-boot-ldflags=FLAGS
1606 linker flags for stage2 and later
1607 --with-isl=PATH Specify prefix directory for the installed isl
1608 package. Equivalent to
1609 --with-isl-include=PATH/include plus
1610 --with-isl-lib=PATH/lib
1611 --with-isl-include=PATH Specify directory for installed isl include files
1612 --with-isl-lib=PATH Specify the directory for the installed isl library
1613 --with-build-config='NAME NAME2...'
1614 use config/NAME.mk build configuration
1615 --with-build-time-tools=PATH
1616 use given path to find target tools during the build
1617 --with-gcc-major-version-only
1618 use only GCC major number in filesystem paths
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
1630 build_configargs
1631 additional configure arguments for build directories
1632 host_configargs
1633 additional configure arguments for host directories
1634 target_configargs
1635 additional configure arguments for target directories
1636 AR AR for the host
1637 AS AS for the host
1638 DLLTOOL DLLTOOL for the host
1639 DSYMUTIL DSYMUTIL for the host
1640 LD LD for the host
1641 LIPO LIPO for the host
1642 NM NM for the host
1643 RANLIB RANLIB for the host
1644 STRIP STRIP for the host
1645 WINDRES WINDRES for the host
1646 WINDMC WINDMC for the host
1647 OBJCOPY OBJCOPY for the host
1648 OBJDUMP OBJDUMP for the host
1649 OTOOL OTOOL for the host
1650 READELF READELF for the host
1651 CC_FOR_TARGET
1652 CC for the target
1653 CXX_FOR_TARGET
1654 CXX for the target
1655 GCC_FOR_TARGET
1656 GCC for the target
1657 GFORTRAN_FOR_TARGET
1658 GFORTRAN for the target
1659 GOC_FOR_TARGET
1660 GOC for the target
1661 GDC_FOR_TARGET
1662 GDC for the target
1663 AR_FOR_TARGET
1664 AR for the target
1665 AS_FOR_TARGET
1666 AS for the target
1667 DLLTOOL_FOR_TARGET
1668 DLLTOOL for the target
1669 DSYMUTIL_FOR_TARGET
1670 DSYMUTIL for the target
1671 LD_FOR_TARGET
1672 LD for the target
1673 LIPO_FOR_TARGET
1674 LIPO for the target
1675 NM_FOR_TARGET
1676 NM for the target
1677 OBJCOPY_FOR_TARGET
1678 OBJCOPY for the target
1679 OBJDUMP_FOR_TARGET
1680 OBJDUMP for the target
1681 OTOOL_FOR_TARGET
1682 OTOOL for the target
1683 RANLIB_FOR_TARGET
1684 RANLIB for the target
1685 READELF_FOR_TARGET
1686 READELF for the target
1687 STRIP_FOR_TARGET
1688 STRIP for the target
1689 WINDRES_FOR_TARGET
1690 WINDRES for the target
1691 WINDMC_FOR_TARGET
1692 WINDMC for the target
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.69
1763 Copyright (C) 2012 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_cxx_try_link LINENO
1851 # -------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_link ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_cxx_try_link
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1945 It was created by $as_me, which was
1946 generated by GNU Autoconf 2.69. Invocation command line was
1948 $ $0 $@
1950 _ACEOF
1951 exec 5>>config.log
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1975 _ASUNAME
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 $as_echo "PATH: $as_dir"
1983 done
1984 IFS=$as_save_IFS
1986 } >&5
1988 cat >&5 <<_ACEOF
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1995 _ACEOF
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2009 for ac_arg
2011 case $ac_arg in
2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014 | -silent | --silent | --silen | --sile | --sil)
2015 continue ;;
2016 *\'*)
2017 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 esac
2019 case $ac_pass in
2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 as_fn_append ac_configure_args1 " '$ac_arg'"
2023 if test $ac_must_keep_next = true; then
2024 ac_must_keep_next=false # Got value, back to normal.
2025 else
2026 case $ac_arg in
2027 *=* | --config-cache | -C | -disable-* | --disable-* \
2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030 | -with-* | --with-* | -without-* | --without-* | --x)
2031 case "$ac_configure_args0 " in
2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033 esac
2035 -* ) ac_must_keep_next=true ;;
2036 esac
2038 as_fn_append ac_configure_args " '$ac_arg'"
2040 esac
2041 done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log. We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052 # Save into config.log some information that might help in debugging.
2054 echo
2056 $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059 echo
2060 # The following way of writing the cache mishandles newlines in values,
2062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in #(
2065 *${as_nl}*)
2066 case $ac_var in #(
2067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069 esac
2070 case $ac_var in #(
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2074 esac ;;
2075 esac
2076 done
2077 (set) 2>&1 |
2078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2080 sed -n \
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083 ;; #(
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2087 esac |
2088 sort
2090 echo
2092 $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095 echo
2096 for ac_var in $ac_subst_vars
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 $as_echo "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2106 if test -n "$ac_subst_files"; then
2107 $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110 echo
2111 for ac_var in $ac_subst_files
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2122 if test -s confdefs.h; then
2123 $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126 echo
2127 cat confdefs.h
2128 echo
2130 test "$ac_signal" != 0 &&
2131 $as_echo "$as_me: caught signal $ac_signal"
2132 $as_echo "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2146 $as_echo "/* confdefs.h */" > confdefs.h
2148 # Predefined preprocessor variables.
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180 # We do not want a PATH search for config.site.
2181 case $CONFIG_SITE in #((
2182 -*) ac_site_file1=./$CONFIG_SITE;;
2183 */*) ac_site_file1=$CONFIG_SITE;;
2184 *) ac_site_file1=./$CONFIG_SITE;;
2185 esac
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2189 else
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 test "x$ac_site_file" = xNONE && continue
2196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2200 . "$ac_site_file" \
2201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2206 done
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214 case $cache_file in
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2217 esac
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222 >$cache_file
2225 # Check that the precious variables saved in the cache have kept the same
2226 # value.
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230 eval ac_new_set=\$ac_env_${ac_var}_set
2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232 eval ac_new_val=\$ac_env_${ac_var}_value
2233 case $ac_old_set,$ac_new_set in
2234 set,)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,set)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,);;
2244 if test "x$ac_old_val" != "x$ac_new_val"; then
2245 # differences in whitespace do not lead to failure.
2246 ac_old_val_w=`echo x $ac_old_val`
2247 ac_new_val_w=`echo x $ac_new_val`
2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251 ac_cache_corrupted=:
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255 eval $ac_var=\$ac_old_val
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2258 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2261 fi;;
2262 esac
2263 # Pass precious variables to config.status.
2264 if test "$ac_new_set" = set; then
2265 case $ac_new_val in
2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 *) ac_arg=$ac_var=$ac_new_val ;;
2268 esac
2269 case " $ac_configure_args " in
2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272 esac
2274 done
2275 if $ac_cache_corrupted; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299 progname=$0
2300 # if PWD already has a value, it is probably wrong.
2301 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2303 # Export original configure arguments for use by sub-configures.
2304 # Quote arguments with shell meta charatcers.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS=
2306 set -- "$progname" "$@"
2307 for ac_arg
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318 done
2319 if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2322 # Remove the initial space we just introduced and, as these will be
2323 # expanded by make, quote '$'.
2324 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2327 # Find the build, host, and target systems.
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398 esac
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2405 esac
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2412 esac
2416 host_subdir=.
2419 # not here
2426 # By default, C and C++ are the only stage 1 languages.
2427 stage1_languages=,c,
2429 test "$host_noncanonical" = "$target_noncanonical" &&
2430 test "$program_prefix$program_suffix$program_transform_name" = \
2431 NONENONEs,x,x, &&
2432 program_transform_name=s,y,y,
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2435 $as_echo_n "checking host system type... " >&6; }
2436 if ${ac_cv_host+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test "x$host_alias" = x; then
2440 ac_cv_host=$ac_cv_build
2441 else
2442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2448 $as_echo "$ac_cv_host" >&6; }
2449 case $ac_cv_host in
2450 *-*-*) ;;
2451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2452 esac
2453 host=$ac_cv_host
2454 ac_save_IFS=$IFS; IFS='-'
2455 set x $ac_cv_host
2456 shift
2457 host_cpu=$1
2458 host_vendor=$2
2459 shift; shift
2460 # Remember, the first character of IFS is used to create $*,
2461 # except with old shells:
2462 host_os=$*
2463 IFS=$ac_save_IFS
2464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2468 $as_echo_n "checking target system type... " >&6; }
2469 if ${ac_cv_target+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 if test "x$target_alias" = x; then
2473 ac_cv_target=$ac_cv_host
2474 else
2475 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2481 $as_echo "$ac_cv_target" >&6; }
2482 case $ac_cv_target in
2483 *-*-*) ;;
2484 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2485 esac
2486 target=$ac_cv_target
2487 ac_save_IFS=$IFS; IFS='-'
2488 set x $ac_cv_target
2489 shift
2490 target_cpu=$1
2491 target_vendor=$2
2492 shift; shift
2493 # Remember, the first character of IFS is used to create $*,
2494 # except with old shells:
2495 target_os=$*
2496 IFS=$ac_save_IFS
2497 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2500 # The aliases save the names the user supplied, while $host etc.
2501 # will get canonicalized.
2502 test -n "$target_alias" &&
2503 test "$program_prefix$program_suffix$program_transform_name" = \
2504 NONENONEs,x,x, &&
2505 program_prefix=${target_alias}-
2507 test "$program_prefix" != NONE &&
2508 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509 # Use a double $ so make ignores it.
2510 test "$program_suffix" != NONE &&
2511 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512 # Double any \ or $.
2513 # By default was `s,x,x', remove it if useless.
2514 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519 # Get 'install' or 'install-sh' and its variants.
2520 # Find a good install program. We prefer a C program (faster),
2521 # so one script is as good as another. But avoid the broken or
2522 # incompatible versions:
2523 # SysV /etc/install, /usr/sbin/install
2524 # SunOS /usr/etc/install
2525 # IRIX /sbin/install
2526 # AIX /bin/install
2527 # AmigaOS /C/install, which installs bootblocks on floppy discs
2528 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2529 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2530 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2531 # OS/2's system install, which has a completely different semantic
2532 # ./install, which can be erroneously created by make from ./install.sh.
2533 # Reject install programs that cannot install multiple files.
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2535 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2536 if test -z "$INSTALL"; then
2537 if ${ac_cv_path_install+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 # Account for people who put trailing slashes in PATH elements.
2546 case $as_dir/ in #((
2547 ./ | .// | /[cC]/* | \
2548 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2549 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2550 /usr/ucb/* ) ;;
2552 # OSF1 and SCO ODT 3.0 have their own names for install.
2553 # Don't use installbsd from OSF since it installs stuff as root
2554 # by default.
2555 for ac_prog in ginstall scoinst install; do
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2558 if test $ac_prog = install &&
2559 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # AIX install. It has an incompatible calling convention.
2562 elif test $ac_prog = install &&
2563 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564 # program-specific install script used by HP pwplus--don't use.
2566 else
2567 rm -rf conftest.one conftest.two conftest.dir
2568 echo one > conftest.one
2569 echo two > conftest.two
2570 mkdir conftest.dir
2571 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2572 test -s conftest.one && test -s conftest.two &&
2573 test -s conftest.dir/conftest.one &&
2574 test -s conftest.dir/conftest.two
2575 then
2576 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2577 break 3
2581 done
2582 done
2584 esac
2586 done
2587 IFS=$as_save_IFS
2589 rm -rf conftest.one conftest.two conftest.dir
2592 if test "${ac_cv_path_install+set}" = set; then
2593 INSTALL=$ac_cv_path_install
2594 else
2595 # As a last resort, use the slow shell script. Don't cache a
2596 # value for INSTALL within a source directory, because that will
2597 # break other packages using the cache if that directory is
2598 # removed, or if the value is a relative name.
2599 INSTALL=$ac_install_sh
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2603 $as_echo "$INSTALL" >&6; }
2605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606 # It thinks the first close brace ends the variable substitution.
2607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2614 $as_echo_n "checking whether ln works... " >&6; }
2615 if ${acx_cv_prog_LN+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 rm -f conftestdata_t
2619 echo >conftestdata_f
2620 if ln conftestdata_f conftestdata_t 2>/dev/null
2621 then
2622 acx_cv_prog_LN=ln
2623 else
2624 acx_cv_prog_LN=no
2626 rm -f conftestdata_f conftestdata_t
2629 if test $acx_cv_prog_LN = no; then
2630 LN="cp"
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2632 $as_echo "no, using $LN" >&6; }
2633 else
2634 LN="$acx_cv_prog_LN"
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2640 $as_echo_n "checking whether ln -s works... " >&6; }
2641 LN_S=$as_ln_s
2642 if test "$LN_S" = "ln -s"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2647 $as_echo "no, using $LN_S" >&6; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2651 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2652 if ${ac_cv_path_SED+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2656 for ac_i in 1 2 3 4 5 6 7; do
2657 ac_script="$ac_script$as_nl$ac_script"
2658 done
2659 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2660 { ac_script=; unset ac_script;}
2661 if test -z "$SED"; then
2662 ac_path_SED_found=false
2663 # Loop through the user's path and test for each of PROGNAME-LIST
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_prog in sed gsed; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2672 as_fn_executable_p "$ac_path_SED" || continue
2673 # Check for GNU ac_path_SED and select it if it is found.
2674 # Check for GNU $ac_path_SED
2675 case `"$ac_path_SED" --version 2>&1` in
2676 *GNU*)
2677 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2679 ac_count=0
2680 $as_echo_n 0123456789 >"conftest.in"
2681 while :
2683 cat "conftest.in" "conftest.in" >"conftest.tmp"
2684 mv "conftest.tmp" "conftest.in"
2685 cp "conftest.in" "conftest.nl"
2686 $as_echo '' >> "conftest.nl"
2687 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2689 as_fn_arith $ac_count + 1 && ac_count=$as_val
2690 if test $ac_count -gt ${ac_path_SED_max-0}; then
2691 # Best one so far, save it but keep looking for a better one
2692 ac_cv_path_SED="$ac_path_SED"
2693 ac_path_SED_max=$ac_count
2695 # 10*(2^10) chars as input seems more than enough
2696 test $ac_count -gt 10 && break
2697 done
2698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2699 esac
2701 $ac_path_SED_found && break 3
2702 done
2703 done
2704 done
2705 IFS=$as_save_IFS
2706 if test -z "$ac_cv_path_SED"; then
2707 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2709 else
2710 ac_cv_path_SED=$SED
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2715 $as_echo "$ac_cv_path_SED" >&6; }
2716 SED="$ac_cv_path_SED"
2717 rm -f conftest.sed
2719 for ac_prog in gawk mawk nawk awk
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_AWK+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2742 done
2743 done
2744 IFS=$as_save_IFS
2748 AWK=$ac_cv_prog_AWK
2749 if test -n "$AWK"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$AWK" && break
2759 done
2762 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2764 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2765 # a relative path.
2766 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2767 INSTALL="${srcpwd}/install-sh -c"
2770 # Set srcdir to "." if that's what it is.
2771 # This is important for multilib support.
2772 pwd=`${PWDCMD-pwd}`
2773 if test "${pwd}" = "${srcpwd}" ; then
2774 srcdir=.
2777 topsrcdir=$srcpwd
2779 extra_host_args=
2781 ### To add a new directory to the tree, first choose whether it is a target
2782 ### or a host dependent tool. Then put it into the appropriate list
2783 ### (library or tools, host or target), doing a dependency sort.
2785 # Subdirs will be configured in the order listed in build_configdirs,
2786 # configdirs, or target_configdirs; see the serialization section below.
2788 # Dependency sorting is only needed when *configuration* must be done in
2789 # a particular order. In all cases a dependency should be specified in
2790 # the Makefile, whether or not it's implicitly specified here.
2792 # Double entries in build_configdirs, configdirs, or target_configdirs may
2793 # cause circular dependencies and break everything horribly.
2795 # these library is used by various programs built for the build
2796 # environment
2798 build_libs="build-libiberty build-libcpp"
2800 # these tools are built for the build environment
2801 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2803 # these libraries are used by various programs built for the host environment
2805 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2807 # these tools are built for the host environment
2808 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2809 # know that we are building the simulator.
2810 # binutils, gas and ld appear in that order because it makes sense to run
2811 # "make check" in that particular order.
2812 # If --enable-gold is used, "gold" may replace "ld".
2813 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"
2815 # these libraries are built for the target environment, and are built after
2816 # the host libraries and the host tools (which may be a cross compiler)
2817 # Note that libiberty is not a target library.
2818 # sdcpp: omitted
2820 # these tools are built using the target libraries, and are intended to
2821 # run only in the target environment
2823 # note: any program that *uses* libraries that are in the "target_libraries"
2824 # list belongs in this list.
2826 target_tools="target-rda"
2828 ################################################################################
2830 ## All tools belong in one of the four categories, and are assigned above
2831 ## We assign ${configdirs} this way to remove all embedded newlines. This
2832 ## is important because configure will choke if they ever get through.
2833 ## ${configdirs} is directories we build using the host tools.
2834 ## ${target_configdirs} is directories we build using the target tools.
2835 configdirs=`echo ${host_libs} ${host_tools}`
2836 target_configdirs=`echo ${target_libraries} ${target_tools}`
2837 build_configdirs=`echo ${build_libs} ${build_tools}`
2841 ################################################################################
2843 srcname="gnu development package"
2845 # This gets set non-empty for some net releases of packages.
2846 appdirs=""
2848 # Define is_cross_compiler to save on calls to 'test'.
2849 is_cross_compiler=
2850 if test x"${host}" = x"${target}" ; then
2851 is_cross_compiler=no
2852 else
2853 is_cross_compiler=yes
2856 # Find the build and target subdir names.
2857 # sdcpp omitted
2859 # Skipdirs are removed silently.
2860 skipdirs=
2861 # Noconfigdirs are removed loudly.
2862 noconfigdirs=""
2864 use_gnu_ld=
2865 # Make sure we don't let GNU ld be added if we didn't want it.
2866 if test x$with_gnu_ld = xno ; then
2867 use_gnu_ld=no
2868 noconfigdirs="$noconfigdirs ld gold"
2871 use_gnu_as=
2872 # Make sure we don't let GNU as be added if we didn't want it.
2873 if test x$with_gnu_as = xno ; then
2874 use_gnu_as=no
2875 noconfigdirs="$noconfigdirs gas"
2878 use_included_zlib=
2880 # Check whether --with-system-zlib was given.
2881 if test "${with_system_zlib+set}" = set; then :
2882 withval=$with_system_zlib;
2885 # Make sure we don't let ZLIB be added if we didn't want it.
2886 if test x$with_system_zlib = xyes ; then
2887 use_included_zlib=no
2888 noconfigdirs="$noconfigdirs zlib"
2891 # some tools are so dependent upon X11 that if we're not building with X,
2892 # it's not even worth trying to configure, much less build, that tool.
2894 case ${with_x} in
2895 yes | "") ;; # the default value for this tree is that X11 is available
2897 skipdirs="${skipdirs} tk itcl libgui"
2898 # We won't be able to build gdbtk without X.
2899 enable_gdbtk=no
2901 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2902 esac
2904 # Some are only suitable for cross toolchains.
2905 # Remove these if host=target.
2906 cross_only="target-libgloss target-newlib target-opcodes"
2908 case $is_cross_compiler in
2909 no) skipdirs="${skipdirs} ${cross_only}" ;;
2910 esac
2912 # If both --with-headers and --with-libs are specified, default to
2913 # --without-newlib.
2914 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2915 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2916 if test x"${with_newlib}" = x ; then
2917 with_newlib=no
2921 # Recognize --with-newlib/--without-newlib.
2922 case ${with_newlib} in
2923 no) skipdirs="${skipdirs} target-newlib" ;;
2924 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2925 esac
2927 # Check whether --enable-as-accelerator-for was given.
2928 if test "${enable_as_accelerator_for+set}" = set; then :
2929 enableval=$enable_as_accelerator_for;
2933 # Check whether --enable-offload-targets was given.
2934 if test "${enable_offload_targets+set}" = set; then :
2935 enableval=$enable_offload_targets;
2936 if test x"$enable_offload_targets" = x; then
2937 as_fn_error $? "no offload targets specified" "$LINENO" 5
2940 else
2941 enable_offload_targets=
2945 # Check whether --enable-offload-defaulted was given.
2946 if test "${enable_offload_defaulted+set}" = set; then :
2947 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
2948 else
2949 enable_offload_defaulted=
2953 # Handle --enable-gold, --enable-ld.
2954 # --disable-gold [--enable-ld]
2955 # Build only ld. Default option.
2956 # --enable-gold [--enable-ld]
2957 # Build both gold and ld. Install gold as "ld.gold", install ld
2958 # as "ld.bfd" and "ld".
2959 # --enable-gold=default [--enable-ld]
2960 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2961 # install ld as "ld.bfd".
2962 # --enable-gold[=default] --disable-ld
2963 # Build only gold, which is then installed as both "ld.gold" and "ld".
2964 # --enable-gold --enable-ld=default
2965 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2966 # and ld.bfd).
2967 # In other words, ld is default
2968 # --enable-gold=default --enable-ld=default
2969 # Error.
2971 default_ld=
2972 # Check whether --enable-gold was given.
2973 if test "${enable_gold+set}" = set; then :
2974 enableval=$enable_gold; ENABLE_GOLD=$enableval
2975 else
2976 ENABLE_GOLD=no
2979 case "${ENABLE_GOLD}" in
2980 yes|default)
2981 # Check for ELF target.
2982 is_elf=no
2983 case "${target}" in
2984 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2985 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2986 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2987 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2988 case "${target}" in
2989 *-*-linux*aout* | *-*-linux*oldld*)
2992 is_elf=yes
2994 esac
2995 esac
2997 if test "$is_elf" = "yes"; then
2998 # Check for target supported by gold.
2999 case "${target}" in
3000 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3001 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3002 configdirs="$configdirs gold"
3003 if test x${ENABLE_GOLD} = xdefault; then
3004 default_ld=gold
3006 ENABLE_GOLD=yes
3008 esac
3014 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3016 esac
3018 # Check whether --enable-ld was given.
3019 if test "${enable_ld+set}" = set; then :
3020 enableval=$enable_ld; ENABLE_LD=$enableval
3021 else
3022 ENABLE_LD=yes
3026 case "${ENABLE_LD}" in
3027 default)
3028 if test x${default_ld} != x; then
3029 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3032 yes)
3035 if test x${ENABLE_GOLD} != xyes; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3037 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3039 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3042 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3044 esac
3046 # PR gas/19109
3047 # Decide the default method for compressing debug sections.
3048 # Provide a configure time option to override our default.
3049 # Check whether --enable-compressed_debug_sections was given.
3050 if test "${enable_compressed_debug_sections+set}" = set; then :
3051 enableval=$enable_compressed_debug_sections;
3052 if test x"$enable_compressed_debug_sections" = xyes; then
3053 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3056 else
3057 enable_compressed_debug_sections=
3061 # Configure extra directories which are host specific
3063 case "${host}" in
3064 *-cygwin*)
3065 configdirs="$configdirs libtermcap" ;;
3066 esac
3068 # A target can indicate whether a language isn't supported for some reason.
3069 # Only spaces may be used in this macro; not newlines or tabs.
3070 unsupported_languages=
3072 # Remove more programs from consideration, based on the host or
3073 # target this usually means that a port of the program doesn't
3074 # exist yet.
3076 case "${host}" in
3077 i[3456789]86-*-msdosdjgpp*)
3078 noconfigdirs="$noconfigdirs tcl tk itcl"
3080 esac
3083 # Check whether --enable-libquadmath was given.
3084 if test "${enable_libquadmath+set}" = set; then :
3085 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3086 else
3087 ENABLE_LIBQUADMATH=yes
3090 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3091 noconfigdirs="$noconfigdirs target-libquadmath"
3095 # Check whether --enable-libquadmath-support was given.
3096 if test "${enable_libquadmath_support+set}" = set; then :
3097 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3098 else
3099 ENABLE_LIBQUADMATH_SUPPORT=yes
3102 enable_libquadmath_support=
3103 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3104 enable_libquadmath_support=no
3108 # Check whether --enable-libada was given.
3109 if test "${enable_libada+set}" = set; then :
3110 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3111 else
3112 ENABLE_LIBADA=yes
3115 if test "${ENABLE_LIBADA}" != "yes" ; then
3116 noconfigdirs="$noconfigdirs gnattools"
3119 # Check whether --enable-libssp was given.
3120 if test "${enable_libssp+set}" = set; then :
3121 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3122 else
3123 ENABLE_LIBSSP=yes
3127 # Check whether --enable-libstdcxx was given.
3128 if test "${enable_libstdcxx+set}" = set; then :
3129 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3130 else
3131 ENABLE_LIBSTDCXX=default
3134 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3135 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3138 # If this is accelerator compiler and its target is intelmic we enable
3139 # target liboffloadmic by default. If this is compiler with offloading
3140 # for intelmic we enable host liboffloadmic by default. Otherwise
3141 # liboffloadmic is disabled by default.
3142 # Check whether --enable-liboffloadmic was given.
3143 if test "${enable_liboffloadmic+set}" = set; then :
3144 enableval=$enable_liboffloadmic; case "$enableval" in
3145 no | host | target)
3146 enable_liboffloadmic=$enableval ;;
3148 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3149 esac
3150 else
3151 if test x"$enable_as_accelerator_for" != x; then
3152 case "${target}" in
3153 *-intelmic-* | *-intelmicemul-*)
3154 enable_liboffloadmic=target
3155 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3158 enable_liboffloadmic=no
3160 esac
3161 else
3162 case "${enable_offload_targets}" in
3163 *-intelmic-* | *-intelmicemul-*)
3164 enable_liboffloadmic=host
3165 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3168 enable_liboffloadmic=no
3170 esac
3176 # Enable libgomp by default on hosted POSIX systems, and a few others.
3177 if test x$enable_libgomp = x ; then
3178 case "${target}" in
3179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3183 *-*-solaris2* | *-*-hpux11*)
3185 *-*-darwin* | *-*-aix*)
3187 nvptx*-*-* | amdgcn*-*-*)
3190 noconfigdirs="$noconfigdirs target-libgomp"
3192 esac
3195 # Disable libatomic on unsupported systems.
3196 if test -d ${srcdir}/libatomic; then
3197 if test x$enable_libatomic = x; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3199 $as_echo_n "checking for libatomic support... " >&6; }
3200 if (srcdir=${srcdir}/libatomic; \
3201 . ${srcdir}/configure.tgt; \
3202 test -n "$UNSUPPORTED")
3203 then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 noconfigdirs="$noconfigdirs target-libatomic"
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3214 # Disable liboffloadmic on unsupported systems.
3215 if test -d ${srcdir}/liboffloadmic; then
3216 if test x$enable_liboffloadmic != xno; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3218 $as_echo_n "checking for liboffloadmic support... " >&6; }
3219 if (srcdir=${srcdir}/liboffloadmic; \
3220 . ${srcdir}/configure.tgt; \
3221 test -n "$UNSUPPORTED")
3222 then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 noconfigdirs="$noconfigdirs target-liboffloadmic"
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3233 # Disable libitm on unsupported systems.
3234 if test -d ${srcdir}/libitm; then
3235 if test x$enable_libitm = x; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3237 $as_echo_n "checking for libitm support... " >&6; }
3238 if (srcdir=${srcdir}/libitm; \
3239 . ${srcdir}/configure.tgt; \
3240 test -n "$UNSUPPORTED")
3241 then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 noconfigdirs="$noconfigdirs target-libitm"
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3252 # Disable libsanitizer on unsupported systems.
3253 if test -d ${srcdir}/libsanitizer; then
3254 if test x$enable_libsanitizer = x; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3256 $as_echo_n "checking for libsanitizer support... " >&6; }
3257 if (srcdir=${srcdir}/libsanitizer; \
3258 . ${srcdir}/configure.tgt; \
3259 test -n "$UNSUPPORTED")
3260 then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 noconfigdirs="$noconfigdirs target-libsanitizer"
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3271 # Disable libvtv on unsupported systems.
3272 if test -d ${srcdir}/libvtv; then
3273 if test x$enable_libvtv = x; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3275 $as_echo_n "checking for libvtv support... " >&6; }
3276 if (srcdir=${srcdir}/libvtv; \
3277 . ${srcdir}/configure.tgt; \
3278 test "$VTV_SUPPORTED" != "yes")
3279 then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 noconfigdirs="$noconfigdirs target-libvtv"
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3290 # Disable libquadmath for some systems.
3291 case "${target}" in
3292 avr-*-*)
3293 noconfigdirs="$noconfigdirs target-libquadmath"
3295 # libquadmath is unused on AIX and libquadmath build process use of
3296 # LD_LIBRARY_PATH can break AIX bootstrap.
3297 powerpc-*-aix* | rs6000-*-aix*)
3298 noconfigdirs="$noconfigdirs target-libquadmath"
3300 esac
3302 # Disable libssp for some systems.
3303 case "${target}" in
3304 avr-*-*)
3305 # No hosted I/O support.
3306 noconfigdirs="$noconfigdirs target-libssp"
3308 bpf-*-*)
3309 noconfigdirs="$noconfigdirs target-libssp"
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libssp"
3314 pru-*-*)
3315 # No hosted I/O support.
3316 noconfigdirs="$noconfigdirs target-libssp"
3318 rl78-*-*)
3319 # libssp uses a misaligned load to trigger a fault, but the RL78
3320 # doesn't fault for those - instead, it gives a build-time error
3321 # for explicit misaligned loads.
3322 noconfigdirs="$noconfigdirs target-libssp"
3324 visium-*-*)
3325 # No hosted I/O support.
3326 noconfigdirs="$noconfigdirs target-libssp"
3328 esac
3330 # Disable libstdc++-v3 for some systems.
3331 # Allow user to override this if they pass --enable-libstdcxx
3332 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3333 case "${target}" in
3334 *-*-vxworks*)
3335 # VxWorks uses the Dinkumware C++ library.
3336 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3338 amdgcn*-*-*)
3339 # Not ported/fails to build when using newlib.
3340 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3342 arm*-wince-pe*)
3343 # the C++ libraries don't build on top of CE's C libraries
3344 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3346 avr-*-*)
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3349 bpf-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3355 esac
3358 # Disable C++ on systems where it is known to not work.
3359 # For testing, you can override this with --enable-languages=c++.
3360 case ,${enable_languages}, in
3361 *,c++,*)
3364 case "${target}" in
3365 bpf-*-*)
3366 unsupported_languages="$unsupported_languages c++"
3368 esac
3370 esac
3372 # Disable Objc on systems where it is known to not work.
3373 # For testing, you can override this with --enable-languages=objc.
3374 case ,${enable_languages}, in
3375 *,objc,*)
3378 case "${target}" in
3379 bpf-*-*)
3380 unsupported_languages="$unsupported_languages objc"
3382 esac
3384 esac
3386 # Disable D on systems where it is known to not work.
3387 # For testing, you can override this with --enable-languages=d.
3388 case ,${enable_languages}, in
3389 *,d,*)
3392 case "${target}" in
3393 bpf-*-*)
3394 unsupported_languages="$unsupported_languages d"
3396 esac
3398 esac
3400 # Disable libphobos on unsupported systems.
3401 # For testing, you can override this with --enable-libphobos.
3402 if test -d ${srcdir}/libphobos; then
3403 if test x$enable_libphobos = x; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3405 $as_echo_n "checking for libphobos support... " >&6; }
3406 if (srcdir=${srcdir}/libphobos; \
3407 . ${srcdir}/configure.tgt; \
3408 test "$LIBPHOBOS_SUPPORTED" != "yes")
3409 then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 noconfigdirs="$noconfigdirs target-libphobos"
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3420 # Disable Fortran for some systems.
3421 case "${target}" in
3422 mmix-*-*)
3423 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3424 unsupported_languages="$unsupported_languages fortran"
3426 bpf-*-*)
3427 unsupported_languages="$unsupported_languages fortran"
3429 esac
3431 # Disable libffi for some systems.
3432 case "${target}" in
3433 powerpc-*-darwin*)
3435 i[3456789]86-*-darwin*)
3437 x86_64-*-darwin[912]*)
3439 *-*-darwin*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3442 *-*-netware*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3445 *-*-phoenix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3448 *-*-rtems*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3451 *-*-tpf*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3454 *-*-uclinux*)
3455 noconfigdirs="$noconfigdirs target-libffi"
3457 *-*-vxworks*)
3458 noconfigdirs="$noconfigdirs target-libffi"
3460 aarch64*-*-freebsd*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3463 alpha*-*-*vms*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3466 arm*-*-freebsd*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3469 arm-wince-pe)
3470 noconfigdirs="$noconfigdirs target-libffi"
3472 arm*-*-symbianelf*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3475 bpf-*-*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3478 cris-*-* | crisv32-*-*)
3479 case "${target}" in
3480 *-*-linux*)
3482 *) # See PR46792 regarding target-libffi.
3483 noconfigdirs="$noconfigdirs target-libffi";;
3484 esac
3486 hppa*64*-*-hpux*)
3487 noconfigdirs="$noconfigdirs target-libffi"
3489 hppa*-hp-hpux11*)
3491 hppa*-*-hpux*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3494 ia64*-*-*vms*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3497 i[3456789]86-w64-mingw*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3500 i[3456789]86-*-mingw*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3503 x86_64-*-mingw*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3506 mmix-*-*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3509 powerpc-*-aix*)
3511 rs6000-*-aix*)
3513 ft32-*-*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 *-*-lynxos*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 esac
3521 # Disable the go frontend on systems where it is known to not work. Please keep
3522 # this in sync with contrib/config-list.mk.
3523 case "${target}" in
3524 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3525 unsupported_languages="$unsupported_languages go"
3527 esac
3529 # Only allow gdbserver on some systems.
3530 if test -d ${srcdir}/gdbserver; then
3531 if test x$enable_gdbserver = x; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3533 $as_echo_n "checking for gdbserver support... " >&6; }
3534 if (srcdir=${srcdir}/gdbserver; \
3535 . ${srcdir}/configure.srv; \
3536 test -n "$UNSUPPORTED")
3537 then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 noconfigdirs="$noconfigdirs gdbserver"
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3543 $as_echo "yes" >&6; }
3548 # Disable libgo for some systems where it is known to not work.
3549 # For testing, you can easily override this with --enable-libgo.
3550 if test x$enable_libgo = x; then
3551 case "${target}" in
3552 *-*-darwin*)
3553 # PR 46986
3554 noconfigdirs="$noconfigdirs target-libgo"
3556 *-*-cygwin* | *-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libgo"
3559 bpf-*-*)
3560 noconfigdirs="$noconfigdirs target-libgo"
3562 esac
3565 # Default libgloss CPU subdirectory.
3566 libgloss_dir="$target_cpu"
3568 case "${target}" in
3569 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3570 libgloss_dir=wince
3572 aarch64*-*-* )
3573 libgloss_dir=aarch64
3575 arm*-*-*)
3576 libgloss_dir=arm
3578 cris-*-* | crisv32-*-*)
3579 libgloss_dir=cris
3581 hppa*-*-*)
3582 libgloss_dir=pa
3584 i[3456789]86-*-*)
3585 libgloss_dir=i386
3587 loongarch*-*-*)
3588 libgloss_dir=loongarch
3590 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3591 libgloss_dir=m68hc11
3593 m68*-*-* | fido-*-*)
3594 libgloss_dir=m68k
3596 mips*-*-*)
3597 libgloss_dir=mips
3599 powerpc*-*-*)
3600 libgloss_dir=rs6000
3602 pru-*-*)
3603 libgloss_dir=pru
3605 sparc*-*-*)
3606 libgloss_dir=sparc
3608 esac
3610 # Disable newlib and libgloss for various target OSes.
3611 case "${target}" in
3612 alpha*-dec-osf*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 i[3456789]86-*-linux*)
3616 # This section makes it possible to build newlib natively on linux.
3617 # If we are using a cross compiler then don't configure newlib.
3618 if test x${is_cross_compiler} != xno ; then
3619 noconfigdirs="$noconfigdirs target-newlib"
3621 noconfigdirs="$noconfigdirs target-libgloss"
3622 # If we are not using a cross compiler, do configure newlib.
3623 # Note however, that newlib will only be configured in this situation
3624 # if the --with-newlib option has been given, because otherwise
3625 # 'target-newlib' will appear in skipdirs.
3627 i[3456789]86-*-rdos*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 sparc-*-sunos4*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 bpf-*-*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 *-*-aix*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 *-*-beos*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 *-*-chorusos)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 *-*-dragonfly*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 *-*-freebsd*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3655 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 *-*-lynxos*)
3658 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 *-*-mingw*)
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 *-*-netbsd*)
3664 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 *-*-netware*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 *-*-tpf*)
3670 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 *-*-uclinux*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 *-*-vxworks*)
3676 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 esac
3680 case "${target}" in
3681 *-*-chorusos)
3683 aarch64-*-darwin*)
3684 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3685 noconfigdirs="$noconfigdirs sim target-rda"
3687 amdgcn*-*-*)
3689 arm-*-darwin*)
3690 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3691 noconfigdirs="$noconfigdirs sim target-rda"
3693 powerpc-*-darwin*)
3694 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3695 noconfigdirs="$noconfigdirs sim target-rda"
3697 i[3456789]86-*-darwin*)
3698 noconfigdirs="$noconfigdirs ld gprof"
3699 noconfigdirs="$noconfigdirs sim target-rda"
3701 x86_64-*-darwin[912]*)
3702 noconfigdirs="$noconfigdirs ld gas gprof"
3703 noconfigdirs="$noconfigdirs sim target-rda"
3705 *-*-darwin*)
3706 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs="$noconfigdirs sim target-rda"
3709 *-*-dragonfly*)
3711 *-*-freebsd*)
3712 if test "x$with_gmp" = x \
3713 && ! test -d ${srcdir}/gmp \
3714 && test -f /usr/local/include/gmp.h; then
3715 with_gmp=/usr/local
3718 *-*-kaos*)
3719 # Remove unsupported stuff on all kaOS configurations.
3720 noconfigdirs="$noconfigdirs target-libgloss"
3722 *-*-netbsd*)
3724 *-*-netware*)
3726 *-*-phoenix*)
3727 noconfigdirs="$noconfigdirs target-libgloss"
3729 *-*-rtems*)
3730 noconfigdirs="$noconfigdirs target-libgloss"
3732 # The tpf target doesn't support gdb yet.
3733 *-*-tpf*)
3734 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3736 *-*-uclinux*)
3737 noconfigdirs="$noconfigdirs target-rda"
3739 *-*-vxworks*)
3741 alpha*-dec-osf*)
3742 # ld works, but does not support shared libraries.
3743 # gas doesn't generate exception information.
3744 noconfigdirs="$noconfigdirs gas ld"
3746 alpha*-*-*vms*)
3747 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3749 alpha*-*-*)
3750 # newlib is not 64 bit ready
3751 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3753 bpf-*-*)
3754 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3756 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3757 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3759 arc*-*-*)
3760 noconfigdirs="$noconfigdirs sim"
3762 arm-*-pe*)
3763 noconfigdirs="$noconfigdirs target-libgloss"
3765 arm-*-riscix*)
3766 noconfigdirs="$noconfigdirs ld target-libgloss"
3768 avr-*-*)
3769 if test x${with_avrlibc} != xno; then
3770 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3773 c4x-*-* | tic4x-*-*)
3774 noconfigdirs="$noconfigdirs target-libgloss"
3776 tic54x-*-*)
3777 noconfigdirs="$noconfigdirs target-libgloss gdb"
3779 d10v-*-*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3782 d30v-*-*)
3783 noconfigdirs="$noconfigdirs gdb"
3785 fr30-*-elf*)
3786 noconfigdirs="$noconfigdirs gdb"
3788 ft32-*-*)
3789 noconfigdirs="$noconfigdirs target-rda gprof"
3791 moxie-*-*)
3792 noconfigdirs="$noconfigdirs"
3794 h8300*-*-*)
3795 noconfigdirs="$noconfigdirs target-libgloss"
3797 h8500-*-*)
3798 noconfigdirs="$noconfigdirs target-libgloss"
3800 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3802 hppa*64*-*-hpux*)
3803 noconfigdirs="$noconfigdirs gdb"
3805 hppa*-*-hpux11*)
3806 noconfigdirs="$noconfigdirs gdb ld"
3808 hppa*64*-*-linux*)
3810 hppa*-*-linux*)
3812 hppa*-*-*elf* | \
3813 hppa*-*-lites* | \
3814 hppa*-*-openbsd* | \
3815 hppa*64*-*-*)
3817 hppa*-*-pro*)
3819 hppa*-*-*)
3820 noconfigdirs="$noconfigdirs ld"
3822 i960-*-*)
3823 noconfigdirs="$noconfigdirs gdb"
3825 ia64*-*-elf*)
3826 # No gdb support yet.
3827 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3829 ia64*-**-hpux*)
3830 # No ld support yet.
3831 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3833 ia64*-*-*vms*)
3834 # No ld support yet.
3835 noconfigdirs="$noconfigdirs libgui itcl ld"
3837 i[3456789]86-w64-mingw*)
3839 i[3456789]86-*-mingw*)
3840 target_configdirs="$target_configdirs target-winsup"
3842 *-*-cygwin*)
3843 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3844 noconfigdirs="$noconfigdirs target-libgloss"
3845 # always build newlib if winsup directory is present.
3846 if test -d "$srcdir/winsup/cygwin"; then
3847 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3848 elif test -d "$srcdir/newlib"; then
3849 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3852 i[3456789]86-*-pe)
3853 noconfigdirs="$noconfigdirs target-libgloss"
3855 i[3456789]86-*-sco3.2v5*)
3856 # The linker does not yet know about weak symbols in COFF,
3857 # and is not configured to handle mixed ELF and COFF.
3858 noconfigdirs="$noconfigdirs ld target-libgloss"
3860 i[3456789]86-*-sco*)
3861 noconfigdirs="$noconfigdirs gprof target-libgloss"
3863 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3864 noconfigdirs="$noconfigdirs target-libgloss"
3866 i[3456789]86-*-sysv4*)
3867 noconfigdirs="$noconfigdirs target-libgloss"
3869 i[3456789]86-*-beos*)
3870 noconfigdirs="$noconfigdirs gdb"
3872 i[3456789]86-*-rdos*)
3873 noconfigdirs="$noconfigdirs gdb"
3875 mmix-*-*)
3876 noconfigdirs="$noconfigdirs gdb"
3878 mt-*-*)
3879 noconfigdirs="$noconfigdirs sim"
3881 nfp-*-*)
3882 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3883 noconfigdirs="$noconfigdirs $target_libraries"
3885 pdp11-*-*)
3886 noconfigdirs="$noconfigdirs gdb gprof"
3888 powerpc-*-aix*)
3889 # copied from rs6000-*-* entry
3890 noconfigdirs="$noconfigdirs gprof"
3892 powerpc*-*-winnt* | powerpc*-*-pe*)
3893 target_configdirs="$target_configdirs target-winsup"
3894 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3895 # always build newlib.
3896 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3898 # This is temporary until we can link against shared libraries
3899 powerpcle-*-solaris*)
3900 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3902 powerpc-*-beos*)
3903 noconfigdirs="$noconfigdirs gdb"
3905 rs6000-*-lynxos*)
3906 noconfigdirs="$noconfigdirs gprof"
3908 rs6000-*-aix*)
3909 noconfigdirs="$noconfigdirs gprof"
3911 rs6000-*-*)
3912 noconfigdirs="$noconfigdirs gprof"
3914 m68k-apollo-*)
3915 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3917 microblaze*)
3918 noconfigdirs="$noconfigdirs gprof"
3920 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3921 if test x$with_newlib = xyes; then
3922 noconfigdirs="$noconfigdirs gprof"
3925 mips*-*-irix5*)
3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
3928 mips*-*-irix6*)
3929 noconfigdirs="$noconfigdirs gprof target-libgloss"
3931 mips*-*-bsd*)
3932 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3934 mips*-*-linux*)
3936 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3937 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3938 noconfigdirs="$noconfigdirs ld gas gprof"
3940 mips*-*-*)
3941 noconfigdirs="$noconfigdirs gprof"
3943 nvptx*-*-*)
3944 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3946 sh-*-*)
3947 case "${target}" in
3948 sh*-*-elf)
3951 noconfigdirs="$noconfigdirs target-libgloss" ;;
3952 esac
3954 sparc-*-sunos4*)
3955 if test x${is_cross_compiler} = xno ; then
3956 use_gnu_ld=no
3959 tic6x-*-*)
3960 noconfigdirs="$noconfigdirs sim"
3962 tilepro*-*-* | tilegx*-*-*)
3963 noconfigdirs="$noconfigdirs sim"
3965 v810-*-*)
3966 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3968 vax-*-*)
3969 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3971 wasm32-*-*)
3972 noconfigdirs="$noconfigdirs ld"
3974 loongarch*-*-linux*)
3976 loongarch*-*-*)
3977 noconfigdirs="$noconfigdirs gprof"
3979 esac
3981 # If we aren't building newlib, then don't build libgloss, since libgloss
3982 # depends upon some newlib header files.
3983 case "${noconfigdirs}" in
3984 *target-libgloss*) ;;
3985 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3986 esac
3988 # Work in distributions that contain no compiler tools, like Autoconf.
3989 host_makefile_frag=/dev/null
3990 if test -d ${srcdir}/config ; then
3991 case "${host}" in
3992 i[3456789]86-*-msdosdjgpp*)
3993 host_makefile_frag="config/mh-djgpp"
3995 *-cygwin*)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3998 $as_echo_n "checking to see if cat works as expected... " >&6; }
3999 echo a >cygwin-cat-check
4000 if test `cat cygwin-cat-check` = a ; then
4001 rm cygwin-cat-check
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003 $as_echo "yes" >&6; }
4004 else
4005 rm cygwin-cat-check
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 as_fn_error $? "The cat command does not ignore carriage return characters.
4009 Please either mount the build directory in binary mode or run the following
4010 commands before running any configure script:
4011 set -o igncr
4012 export SHELLOPTS
4013 " "$LINENO" 5
4016 host_makefile_frag="config/mh-cygwin"
4018 *-mingw*)
4019 host_makefile_frag="config/mh-mingw"
4021 alpha*-linux*)
4022 host_makefile_frag="config/mh-alpha-linux"
4024 hppa*-hp-hpux10*)
4025 host_makefile_frag="config/mh-pa-hpux10"
4027 hppa*-hp-hpux*)
4028 host_makefile_frag="config/mh-pa"
4030 hppa*-*)
4031 host_makefile_frag="config/mh-pa"
4033 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4034 host_makefile_frag="config/mh-darwin"
4036 powerpc-*-aix*)
4037 host_makefile_frag="config/mh-ppc-aix"
4039 rs6000-*-aix*)
4040 host_makefile_frag="config/mh-ppc-aix"
4042 esac
4045 if test "${build}" != "${host}" ; then
4046 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4047 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4048 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4049 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4050 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4051 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4052 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4053 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4054 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4055 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4056 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4057 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4058 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4059 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4060 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4061 else
4062 AR_FOR_BUILD="\$(AR)"
4063 AS_FOR_BUILD="\$(AS)"
4064 CC_FOR_BUILD="\$(CC)"
4065 CXX_FOR_BUILD="\$(CXX)"
4066 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4067 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4068 GOC_FOR_BUILD="\$(GOC)"
4069 GDC_FOR_BUILD="\$(GDC)"
4070 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4071 LD_FOR_BUILD="\$(LD)"
4072 NM_FOR_BUILD="\$(NM)"
4073 RANLIB_FOR_BUILD="\$(RANLIB)"
4074 WINDRES_FOR_BUILD="\$(WINDRES)"
4075 WINDMC_FOR_BUILD="\$(WINDMC)"
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC="$CC" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4105 done
4106 done
4107 IFS=$as_save_IFS
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4122 if test -z "$ac_cv_prog_CC"; then
4123 ac_ct_CC=$CC
4124 # Extract the first word of "gcc", so it can be a program name with args.
4125 set dummy gcc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_CC="gcc"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4147 IFS=$as_save_IFS
4151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154 $as_echo "$ac_ct_CC" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4160 if test "x$ac_ct_CC" = x; then
4161 CC=""
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned=yes ;;
4168 esac
4169 CC=$ac_ct_CC
4171 else
4172 CC="$ac_cv_prog_CC"
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}cc; ac_word=$2
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 $as_echo_n "checking for $ac_word... " >&6; }
4181 if ${ac_cv_prog_CC+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 if test -n "$CC"; then
4185 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194 ac_cv_prog_CC="${ac_tool_prefix}cc"
4195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 break 2
4198 done
4199 done
4200 IFS=$as_save_IFS
4204 CC=$ac_cv_prog_CC
4205 if test -n "$CC"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207 $as_echo "$CC" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4216 if test -z "$CC"; then
4217 # Extract the first word of "cc", so it can be a program name with args.
4218 set dummy cc; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_prog_CC+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC="$CC" # Let the user override the test.
4226 else
4227 ac_prog_rejected=no
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236 ac_prog_rejected=yes
4237 continue
4239 ac_cv_prog_CC="cc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4245 IFS=$as_save_IFS
4247 if test $ac_prog_rejected = yes; then
4248 # We found a bogon in the path, so make sure we never use it.
4249 set dummy $ac_cv_prog_CC
4250 shift
4251 if test $# != 0; then
4252 # We chose a different compiler from the bogus one.
4253 # However, it has the same basename, so the bogon will be chosen
4254 # first if we set CC to just the basename; use the full file name.
4255 shift
4256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4261 CC=$ac_cv_prog_CC
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4272 if test -z "$CC"; then
4273 if test -n "$ac_tool_prefix"; then
4274 for ac_prog in cl.exe
4276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_CC+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -n "$CC"; then
4284 ac_cv_prog_CC="$CC" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4303 CC=$ac_cv_prog_CC
4304 if test -n "$CC"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4306 $as_echo "$CC" >&6; }
4307 else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4313 test -n "$CC" && break
4314 done
4316 if test -z "$CC"; then
4317 ac_ct_CC=$CC
4318 for ac_prog in cl.exe
4320 # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -n "$ac_ct_CC"; then
4328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_ac_ct_CC="$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4343 IFS=$as_save_IFS
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4350 $as_echo "$ac_ct_CC" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$ac_ct_CC" && break
4358 done
4360 if test "x$ac_ct_CC" = x; then
4361 CC=""
4362 else
4363 case $cross_compiling:$ac_tool_warned in
4364 yes:)
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4367 ac_tool_warned=yes ;;
4368 esac
4369 CC=$ac_ct_CC
4376 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378 as_fn_error $? "no acceptable C compiler found in \$PATH
4379 See \`config.log' for more details" "$LINENO" 5; }
4381 # Provide some information about the compiler.
4382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4383 set X $ac_compile
4384 ac_compiler=$2
4385 for ac_option in --version -v -V -qversion; do
4386 { { ac_try="$ac_compiler $ac_option >&5"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4394 ac_status=$?
4395 if test -s conftest.err; then
4396 sed '10a\
4397 ... rest of stderr output deleted ...
4398 10q' conftest.err >conftest.er1
4399 cat conftest.er1 >&5
4401 rm -f conftest.er1 conftest.err
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 done
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4410 main ()
4414 return 0;
4416 _ACEOF
4417 ac_clean_files_save=$ac_clean_files
4418 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4419 # Try to create an executable without -o first, disregard a.out.
4420 # It will help us diagnose broken compilers, and finding out an intuition
4421 # of exeext.
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4423 $as_echo_n "checking whether the C compiler works... " >&6; }
4424 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4426 # The possible output files:
4427 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4429 ac_rmfiles=
4430 for ac_file in $ac_files
4432 case $ac_file in
4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4434 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4435 esac
4436 done
4437 rm -f $ac_rmfiles
4439 if { { ac_try="$ac_link_default"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_link_default") 2>&5
4447 ac_status=$?
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4451 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4452 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4453 # so that the user can short-circuit this test for compilers unknown to
4454 # Autoconf.
4455 for ac_file in $ac_files ''
4457 test -f "$ac_file" || continue
4458 case $ac_file in
4459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4461 [ab].out )
4462 # We found the default executable, but exeext='' is most
4463 # certainly right.
4464 break;;
4465 *.* )
4466 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4467 then :; else
4468 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4470 # We set ac_cv_exeext here because the later test for it is not
4471 # safe: cross compilers may not add the suffix if given an `-o'
4472 # argument, so we may need to know it at that point already.
4473 # Even if this section looks crufty: it has the advantage of
4474 # actually working.
4475 break;;
4477 break;;
4478 esac
4479 done
4480 test "$ac_cv_exeext" = no && ac_cv_exeext=
4482 else
4483 ac_file=''
4485 if test -z "$ac_file"; then :
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error 77 "C compiler cannot create executables
4494 See \`config.log' for more details" "$LINENO" 5; }
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4500 $as_echo_n "checking for C compiler default output file name... " >&6; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4502 $as_echo "$ac_file" >&6; }
4503 ac_exeext=$ac_cv_exeext
4505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4506 ac_clean_files=$ac_clean_files_save
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4508 $as_echo_n "checking for suffix of executables... " >&6; }
4509 if { { ac_try="$ac_link"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_link") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4521 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4522 # work properly (i.e., refer to `conftest.exe'), while it won't with
4523 # `rm'.
4524 for ac_file in conftest.exe conftest conftest.*; do
4525 test -f "$ac_file" || continue
4526 case $ac_file in
4527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4529 break;;
4530 * ) break;;
4531 esac
4532 done
4533 else
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4537 See \`config.log' for more details" "$LINENO" 5; }
4539 rm -f conftest conftest$ac_cv_exeext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4541 $as_echo "$ac_cv_exeext" >&6; }
4543 rm -f conftest.$ac_ext
4544 EXEEXT=$ac_cv_exeext
4545 ac_exeext=$EXEEXT
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdio.h>
4550 main ()
4552 FILE *f = fopen ("conftest.out", "w");
4553 return ferror (f) || fclose (f) != 0;
4556 return 0;
4558 _ACEOF
4559 ac_clean_files="$ac_clean_files conftest.out"
4560 # Check that the compiler produces executables we can run. If not, either
4561 # the compiler is broken, or we cross compile.
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4563 $as_echo_n "checking whether we are cross compiling... " >&6; }
4564 if test "$cross_compiling" != yes; then
4565 { { ac_try="$ac_link"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_link") 2>&5
4573 ac_status=$?
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }
4576 if { ac_try='./conftest$ac_cv_exeext'
4577 { { case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 $as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_try") 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; }; then
4587 cross_compiling=no
4588 else
4589 if test "$cross_compiling" = maybe; then
4590 cross_compiling=yes
4591 else
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594 as_fn_error $? "cannot run C compiled programs.
4595 If you meant to cross compile, use \`--host'.
4596 See \`config.log' for more details" "$LINENO" 5; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4601 $as_echo "$cross_compiling" >&6; }
4603 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4604 ac_clean_files=$ac_clean_files_save
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4606 $as_echo_n "checking for suffix of object files... " >&6; }
4607 if ${ac_cv_objext+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4614 main ()
4618 return 0;
4620 _ACEOF
4621 rm -f conftest.o conftest.obj
4622 if { { ac_try="$ac_compile"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compile") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }; then :
4633 for ac_file in conftest.o conftest.obj conftest.*; do
4634 test -f "$ac_file" || continue;
4635 case $ac_file in
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4637 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4638 break;;
4639 esac
4640 done
4641 else
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of object files: cannot compile
4648 See \`config.log' for more details" "$LINENO" 5; }
4650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4653 $as_echo "$ac_cv_objext" >&6; }
4654 OBJEXT=$ac_cv_objext
4655 ac_objext=$OBJEXT
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4657 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4658 if ${ac_cv_c_compiler_gnu+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 main ()
4667 #ifndef __GNUC__
4668 choke me
4669 #endif
4672 return 0;
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_compiler_gnu=yes
4677 else
4678 ac_compiler_gnu=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4685 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4686 if test $ac_compiler_gnu = yes; then
4687 GCC=yes
4688 else
4689 GCC=
4691 ac_test_CFLAGS=${CFLAGS+set}
4692 ac_save_CFLAGS=$CFLAGS
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4694 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4695 if ${ac_cv_prog_cc_g+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 ac_save_c_werror_flag=$ac_c_werror_flag
4699 ac_c_werror_flag=yes
4700 ac_cv_prog_cc_g=no
4701 CFLAGS="-g"
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_cv_prog_cc_g=yes
4715 else
4716 CFLAGS=""
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4721 main ()
4725 return 0;
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4730 else
4731 ac_c_werror_flag=$ac_save_c_werror_flag
4732 CFLAGS="-g"
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4737 main ()
4741 return 0;
4743 _ACEOF
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_prog_cc_g=yes
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_c_werror_flag=$ac_save_c_werror_flag
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4755 $as_echo "$ac_cv_prog_cc_g" >&6; }
4756 if test "$ac_test_CFLAGS" = set; then
4757 CFLAGS=$ac_save_CFLAGS
4758 elif test $ac_cv_prog_cc_g = yes; then
4759 if test "$GCC" = yes; then
4760 CFLAGS="-g -O2"
4761 else
4762 CFLAGS="-g"
4764 else
4765 if test "$GCC" = yes; then
4766 CFLAGS="-O2"
4767 else
4768 CFLAGS=
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4772 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4773 if ${ac_cv_prog_cc_c89+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 ac_cv_prog_cc_c89=no
4777 ac_save_CC=$CC
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <stdarg.h>
4781 #include <stdio.h>
4782 struct stat;
4783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4784 struct buf { int x; };
4785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4786 static char *e (p, i)
4787 char **p;
4788 int i;
4790 return p[i];
4792 static char *f (char * (*g) (char **, int), char **p, ...)
4794 char *s;
4795 va_list v;
4796 va_start (v,p);
4797 s = g (p, va_arg (v,int));
4798 va_end (v);
4799 return s;
4802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4803 function prototypes and stuff, but not '\xHH' hex character constants.
4804 These don't provoke an error unfortunately, instead are silently treated
4805 as 'x'. The following induces an error, until -std is added to get
4806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4807 array size at least. It's necessary to write '\x00'==0 to get something
4808 that's true only with -std. */
4809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4812 inside strings and character constants. */
4813 #define FOO(x) 'x'
4814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4816 int test (int i, double x);
4817 struct s1 {int (*f) (int a);};
4818 struct s2 {int (*f) (double a);};
4819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4820 int argc;
4821 char **argv;
4823 main ()
4825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4827 return 0;
4829 _ACEOF
4830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4833 CC="$ac_save_CC $ac_arg"
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_cv_prog_cc_c89=$ac_arg
4837 rm -f core conftest.err conftest.$ac_objext
4838 test "x$ac_cv_prog_cc_c89" != "xno" && break
4839 done
4840 rm -f conftest.$ac_ext
4841 CC=$ac_save_CC
4844 # AC_CACHE_VAL
4845 case "x$ac_cv_prog_cc_c89" in
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4848 $as_echo "none needed" >&6; } ;;
4849 xno)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4851 $as_echo "unsupported" >&6; } ;;
4853 CC="$CC $ac_cv_prog_cc_c89"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4856 esac
4857 if test "x$ac_cv_prog_cc_c89" != xno; then :
4861 ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4868 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4869 if ${ac_cv_prog_cc_c99+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 ac_cv_prog_cc_c99=no
4873 ac_save_CC=$CC
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #include <stdarg.h>
4877 #include <stdbool.h>
4878 #include <stdlib.h>
4879 #include <wchar.h>
4880 #include <stdio.h>
4882 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4883 #define debug(...) fprintf (stderr, __VA_ARGS__)
4884 #define showlist(...) puts (#__VA_ARGS__)
4885 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4886 static void
4887 test_varargs_macros (void)
4889 int x = 1234;
4890 int y = 5678;
4891 debug ("Flag");
4892 debug ("X = %d\n", x);
4893 showlist (The first, second, and third items.);
4894 report (x>y, "x is %d but y is %d", x, y);
4897 // Check long long types.
4898 #define BIG64 18446744073709551615ull
4899 #define BIG32 4294967295ul
4900 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4901 #if !BIG_OK
4902 your preprocessor is broken;
4903 #endif
4904 #if BIG_OK
4905 #else
4906 your preprocessor is broken;
4907 #endif
4908 static long long int bignum = -9223372036854775807LL;
4909 static unsigned long long int ubignum = BIG64;
4911 struct incomplete_array
4913 int datasize;
4914 double data[];
4917 struct named_init {
4918 int number;
4919 const wchar_t *name;
4920 double average;
4923 typedef const char *ccp;
4925 static inline int
4926 test_restrict (ccp restrict text)
4928 // See if C++-style comments work.
4929 // Iterate through items via the restricted pointer.
4930 // Also check for declarations in for loops.
4931 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4932 continue;
4933 return 0;
4936 // Check varargs and va_copy.
4937 static void
4938 test_varargs (const char *format, ...)
4940 va_list args;
4941 va_start (args, format);
4942 va_list args_copy;
4943 va_copy (args_copy, args);
4945 const char *str;
4946 int number;
4947 float fnumber;
4949 while (*format)
4951 switch (*format++)
4953 case 's': // string
4954 str = va_arg (args_copy, const char *);
4955 break;
4956 case 'd': // int
4957 number = va_arg (args_copy, int);
4958 break;
4959 case 'f': // float
4960 fnumber = va_arg (args_copy, double);
4961 break;
4962 default:
4963 break;
4966 va_end (args_copy);
4967 va_end (args);
4971 main ()
4974 // Check bool.
4975 _Bool success = false;
4977 // Check restrict.
4978 if (test_restrict ("String literal") == 0)
4979 success = true;
4980 char *restrict newvar = "Another string";
4982 // Check varargs.
4983 test_varargs ("s, d' f .", "string", 65, 34.234);
4984 test_varargs_macros ();
4986 // Check flexible array members.
4987 struct incomplete_array *ia =
4988 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4989 ia->datasize = 10;
4990 for (int i = 0; i < ia->datasize; ++i)
4991 ia->data[i] = i * 1.234;
4993 // Check named initializers.
4994 struct named_init ni = {
4995 .number = 34,
4996 .name = L"Test wide string",
4997 .average = 543.34343,
5000 ni.number = 58;
5002 int dynamic_array[ni.number];
5003 dynamic_array[ni.number - 1] = 543;
5005 // work around unused variable warnings
5006 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5007 || dynamic_array[ni.number - 1] != 543);
5010 return 0;
5012 _ACEOF
5013 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5015 CC="$ac_save_CC $ac_arg"
5016 if ac_fn_c_try_compile "$LINENO"; then :
5017 ac_cv_prog_cc_c99=$ac_arg
5019 rm -f core conftest.err conftest.$ac_objext
5020 test "x$ac_cv_prog_cc_c99" != "xno" && break
5021 done
5022 rm -f conftest.$ac_ext
5023 CC=$ac_save_CC
5026 # AC_CACHE_VAL
5027 case "x$ac_cv_prog_cc_c99" in
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5030 $as_echo "none needed" >&6; } ;;
5031 xno)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5033 $as_echo "unsupported" >&6; } ;;
5035 CC="$CC $ac_cv_prog_cc_c99"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5037 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5038 esac
5039 if test "x$ac_cv_prog_cc_c99" != xno; then :
5044 ac_ext=cpp
5045 ac_cpp='$CXXCPP $CPPFLAGS'
5046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049 if test -z "$CXX"; then
5050 if test -n "$CCC"; then
5051 CXX=$CCC
5052 else
5053 if test -n "$ac_tool_prefix"; then
5054 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_CXX+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$CXX"; then
5064 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 CXX=$ac_cv_prog_CXX
5084 if test -n "$CXX"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5086 $as_echo "$CXX" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 test -n "$CXX" && break
5094 done
5096 if test -z "$CXX"; then
5097 ac_ct_CXX=$CXX
5098 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy $ac_prog; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$ac_ct_CXX"; then
5108 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_ac_ct_CXX="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5121 done
5122 done
5123 IFS=$as_save_IFS
5127 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5128 if test -n "$ac_ct_CXX"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5130 $as_echo "$ac_ct_CXX" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 test -n "$ac_ct_CXX" && break
5138 done
5140 if test "x$ac_ct_CXX" = x; then
5141 CXX="g++"
5142 else
5143 case $cross_compiling:$ac_tool_warned in
5144 yes:)
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5148 esac
5149 CXX=$ac_ct_CXX
5155 # Provide some information about the compiler.
5156 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5157 set X $ac_compile
5158 ac_compiler=$2
5159 for ac_option in --version -v -V -qversion; do
5160 { { ac_try="$ac_compiler $ac_option >&5"
5161 case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164 esac
5165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5166 $as_echo "$ac_try_echo"; } >&5
5167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5168 ac_status=$?
5169 if test -s conftest.err; then
5170 sed '10a\
5171 ... rest of stderr output deleted ...
5172 10q' conftest.err >conftest.er1
5173 cat conftest.er1 >&5
5175 rm -f conftest.er1 conftest.err
5176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5177 test $ac_status = 0; }
5178 done
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5181 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5182 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5189 main ()
5191 #ifndef __GNUC__
5192 choke me
5193 #endif
5196 return 0;
5198 _ACEOF
5199 if ac_fn_cxx_try_compile "$LINENO"; then :
5200 ac_compiler_gnu=yes
5201 else
5202 ac_compiler_gnu=no
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5209 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5210 if test $ac_compiler_gnu = yes; then
5211 GXX=yes
5212 else
5213 GXX=
5215 ac_test_CXXFLAGS=${CXXFLAGS+set}
5216 ac_save_CXXFLAGS=$CXXFLAGS
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5218 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5219 if ${ac_cv_prog_cxx_g+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5223 ac_cxx_werror_flag=yes
5224 ac_cv_prog_cxx_g=no
5225 CXXFLAGS="-g"
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5230 main ()
5234 return 0;
5236 _ACEOF
5237 if ac_fn_cxx_try_compile "$LINENO"; then :
5238 ac_cv_prog_cxx_g=yes
5239 else
5240 CXXFLAGS=""
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5245 main ()
5249 return 0;
5251 _ACEOF
5252 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 else
5255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5256 CXXFLAGS="-g"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5261 main ()
5265 return 0;
5267 _ACEOF
5268 if ac_fn_cxx_try_compile "$LINENO"; then :
5269 ac_cv_prog_cxx_g=yes
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5279 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5280 if test "$ac_test_CXXFLAGS" = set; then
5281 CXXFLAGS=$ac_save_CXXFLAGS
5282 elif test $ac_cv_prog_cxx_g = yes; then
5283 if test "$GXX" = yes; then
5284 CXXFLAGS="-g -O2"
5285 else
5286 CXXFLAGS="-g"
5288 else
5289 if test "$GXX" = yes; then
5290 CXXFLAGS="-O2"
5291 else
5292 CXXFLAGS=
5295 ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 # We must set the default linker to the linker used by gcc for the correct
5303 # operation of libtool. If LD is not defined and we are using gcc, try to
5304 # set the LD default to the ld used by gcc.
5305 if test -z "$LD"; then
5306 if test "$GCC" = yes; then
5307 case $build in
5308 *-*-mingw*)
5309 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5311 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5312 esac
5313 case $gcc_prog_ld in
5314 # Accept absolute paths.
5315 [\\/]* | [A-Za-z]:[\\/]*)
5316 LD="$gcc_prog_ld" ;;
5317 esac
5321 # Check whether -static-libstdc++ -static-libgcc is supported.
5322 have_static_libs=no
5323 if test "$GCC" = yes; then
5324 saved_LDFLAGS="$LDFLAGS"
5326 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5328 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5329 ac_ext=cpp
5330 ac_cpp='$CXXCPP $CPPFLAGS'
5331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5339 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5340 #error -static-libstdc++ not implemented
5341 #endif
5342 int main() {}
5343 _ACEOF
5344 if ac_fn_cxx_try_link "$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }; have_static_libs=yes
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 LDFLAGS="$saved_LDFLAGS"
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_GNATBIND+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$GNATBIND"; then
5375 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 GNATBIND=$ac_cv_prog_GNATBIND
5395 if test -n "$GNATBIND"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5397 $as_echo "$GNATBIND" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test -z "$ac_cv_prog_GNATBIND"; then
5406 ac_ct_GNATBIND=$GNATBIND
5407 # Extract the first word of "gnatbind", so it can be a program name with args.
5408 set dummy gnatbind; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$ac_ct_GNATBIND"; then
5415 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5435 if test -n "$ac_ct_GNATBIND"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5437 $as_echo "$ac_ct_GNATBIND" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5443 if test "x$ac_ct_GNATBIND" = x; then
5444 GNATBIND="no"
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned=yes ;;
5451 esac
5452 GNATBIND=$ac_ct_GNATBIND
5454 else
5455 GNATBIND="$ac_cv_prog_GNATBIND"
5458 if test -n "$ac_tool_prefix"; then
5459 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5460 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_GNATMAKE+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$GNATMAKE"; then
5467 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5486 GNATMAKE=$ac_cv_prog_GNATMAKE
5487 if test -n "$GNATMAKE"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5489 $as_echo "$GNATMAKE" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5497 if test -z "$ac_cv_prog_GNATMAKE"; then
5498 ac_ct_GNATMAKE=$GNATMAKE
5499 # Extract the first word of "gnatmake", so it can be a program name with args.
5500 set dummy gnatmake; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$ac_ct_GNATMAKE"; then
5507 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5520 done
5521 done
5522 IFS=$as_save_IFS
5526 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5527 if test -n "$ac_ct_GNATMAKE"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5529 $as_echo "$ac_ct_GNATMAKE" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5535 if test "x$ac_ct_GNATMAKE" = x; then
5536 GNATMAKE="no"
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 GNATMAKE=$ac_ct_GNATMAKE
5546 else
5547 GNATMAKE="$ac_cv_prog_GNATMAKE"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5551 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5552 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat >conftest.adb <<EOF
5556 procedure conftest is begin null; end conftest;
5558 acx_cv_cc_gcc_supports_ada=no
5559 # There is a bug in old released versions of GCC which causes the
5560 # driver to exit successfully when the appropriate language module
5561 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5562 # Therefore we must check for the error message as well as an
5563 # unsuccessful exit.
5564 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5565 # given a .adb file, but produce no object file. So we must check
5566 # if an object file was really produced to guard against this.
5567 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5568 if test x"$errors" = x && test -f conftest.$ac_objext; then
5569 acx_cv_cc_gcc_supports_ada=yes
5571 rm -f conftest.*
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5574 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5576 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5577 have_gnat=yes
5578 else
5579 have_gnat=no
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_GDC+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$GDC"; then
5593 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 GDC=$ac_cv_prog_GDC
5613 if test -n "$GDC"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5615 $as_echo "$GDC" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$ac_cv_prog_GDC"; then
5624 ac_ct_GDC=$GDC
5625 # Extract the first word of "gdc", so it can be a program name with args.
5626 set dummy gdc; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$ac_ct_GDC"; then
5633 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_ac_ct_GDC="gdc"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5653 if test -n "$ac_ct_GDC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5655 $as_echo "$ac_ct_GDC" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5661 if test "x$ac_ct_GDC" = x; then
5662 GDC="no"
5663 else
5664 case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670 GDC=$ac_ct_GDC
5672 else
5673 GDC="$ac_cv_prog_GDC"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5677 $as_echo_n "checking whether the D compiler works... " >&6; }
5678 if ${acx_cv_d_compiler_works+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat >conftest.d <<EOF
5682 module conftest; int main() { return 0; }
5684 acx_cv_d_compiler_works=no
5685 if test "x$GDC" != xno; then
5686 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5687 if test x"$errors" = x && test -f conftest.$ac_objext; then
5688 acx_cv_d_compiler_works=yes
5690 rm -f conftest.*
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5694 $as_echo "$acx_cv_d_compiler_works" >&6; }
5695 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5696 have_gdc=yes
5697 else
5698 have_gdc=no
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5702 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5703 if ${gcc_cv_prog_cmp_skip+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 echo abfoo >t1
5707 echo cdfoo >t2
5708 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5709 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5710 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5712 else
5713 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5716 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5717 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5719 else
5720 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5723 rm t1 t2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5727 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5728 do_compare="$gcc_cv_prog_cmp_skip"
5732 # Check whether --enable-bootstrap was given.
5733 if test "${enable_bootstrap+set}" = set; then :
5734 enableval=$enable_bootstrap;
5735 else
5736 enable_bootstrap=default
5740 # Issue errors and warnings for invalid/strange bootstrap combinations.
5741 if test -r $srcdir/gcc/configure; then
5742 have_compiler=yes
5743 else
5744 have_compiler=no
5747 case "$have_compiler:$host:$target:$enable_bootstrap" in
5748 *:*:*:no) ;;
5750 # Default behavior. Enable bootstrap if we have a compiler
5751 # and we are in a native configuration.
5752 yes:$build:$build:default)
5753 enable_bootstrap=yes ;;
5755 *:*:*:default)
5756 enable_bootstrap=no ;;
5758 # We have a compiler and we are in a native configuration, bootstrap is ok
5759 yes:$build:$build:yes)
5762 # Other configurations, but we have a compiler. Assume the user knows
5763 # what he's doing.
5764 yes:*:*:yes)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5766 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5769 # No compiler: if they passed --enable-bootstrap explicitly, fail
5770 no:*:*:yes)
5771 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5773 # Fail if wrong command line
5775 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5777 esac
5779 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5780 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5781 # require C++11 (or higher).
5782 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5783 CXX="$CXX -std=c++11"
5784 elif test "$have_compiler" = yes; then
5785 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5786 ac_ext=cpp
5787 ac_cpp='$CXXCPP $CPPFLAGS'
5788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5791 ac_success=no
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5794 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5795 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5802 // If the compiler admits that it is not ready for C++11, why torture it?
5803 // Hopefully, this will speed up the test.
5805 #ifndef __cplusplus
5807 #error "This is not a C++ compiler"
5809 #elif __cplusplus < 201103L
5811 #error "This is not a C++11 compiler"
5813 #else
5815 namespace cxx11
5818 namespace test_static_assert
5821 template <typename T>
5822 struct check
5824 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5829 namespace test_final_override
5832 struct Base
5834 virtual ~Base() {}
5835 virtual void f() {}
5838 struct Derived : public Base
5840 virtual ~Derived() override {}
5841 virtual void f() override {}
5846 namespace test_double_right_angle_brackets
5849 template < typename T >
5850 struct check {};
5852 typedef check<void> single_type;
5853 typedef check<check<void>> double_type;
5854 typedef check<check<check<void>>> triple_type;
5855 typedef check<check<check<check<void>>>> quadruple_type;
5859 namespace test_decltype
5865 int a = 1;
5866 decltype(a) b = 2;
5867 return a + b;
5872 namespace test_type_deduction
5875 template < typename T1, typename T2 >
5876 struct is_same
5878 static const bool value = false;
5881 template < typename T >
5882 struct is_same<T, T>
5884 static const bool value = true;
5887 template < typename T1, typename T2 >
5888 auto
5889 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5891 return a1 + a2;
5895 test(const int c, volatile int v)
5897 static_assert(is_same<int, decltype(0)>::value == true, "");
5898 static_assert(is_same<int, decltype(c)>::value == false, "");
5899 static_assert(is_same<int, decltype(v)>::value == false, "");
5900 auto ac = c;
5901 auto av = v;
5902 auto sumi = ac + av + 'x';
5903 auto sumf = ac + av + 1.0;
5904 static_assert(is_same<int, decltype(ac)>::value == true, "");
5905 static_assert(is_same<int, decltype(av)>::value == true, "");
5906 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5907 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5908 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5909 return (sumf > 0.0) ? sumi : add(c, v);
5914 namespace test_noexcept
5917 int f() { return 0; }
5918 int g() noexcept { return 0; }
5920 static_assert(noexcept(f()) == false, "");
5921 static_assert(noexcept(g()) == true, "");
5925 namespace test_constexpr
5928 template < typename CharT >
5929 unsigned long constexpr
5930 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5932 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5935 template < typename CharT >
5936 unsigned long constexpr
5937 strlen_c(const CharT *const s) noexcept
5939 return strlen_c_r(s, 0UL);
5942 static_assert(strlen_c("") == 0UL, "");
5943 static_assert(strlen_c("1") == 1UL, "");
5944 static_assert(strlen_c("example") == 7UL, "");
5945 static_assert(strlen_c("another\0example") == 7UL, "");
5949 namespace test_rvalue_references
5952 template < int N >
5953 struct answer
5955 static constexpr int value = N;
5958 answer<1> f(int&) { return answer<1>(); }
5959 answer<2> f(const int&) { return answer<2>(); }
5960 answer<3> f(int&&) { return answer<3>(); }
5962 void
5963 test()
5965 int i = 0;
5966 const int c = 0;
5967 static_assert(decltype(f(i))::value == 1, "");
5968 static_assert(decltype(f(c))::value == 2, "");
5969 static_assert(decltype(f(0))::value == 3, "");
5974 namespace test_uniform_initialization
5977 struct test
5979 static const int zero {};
5980 static const int one {1};
5983 static_assert(test::zero == 0, "");
5984 static_assert(test::one == 1, "");
5988 namespace test_lambdas
5991 void
5992 test1()
5994 auto lambda1 = [](){};
5995 auto lambda2 = lambda1;
5996 lambda1();
5997 lambda2();
6001 test2()
6003 auto a = [](int i, int j){ return i + j; }(1, 2);
6004 auto b = []() -> int { return '0'; }();
6005 auto c = [=](){ return a + b; }();
6006 auto d = [&](){ return c; }();
6007 auto e = [a, &b](int x) mutable {
6008 const auto identity = [](int y){ return y; };
6009 for (auto i = 0; i < a; ++i)
6010 a += b--;
6011 return x + identity(a + b);
6012 }(0);
6013 return a + b + c + d + e;
6017 test3()
6019 const auto nullary = [](){ return 0; };
6020 const auto unary = [](int x){ return x; };
6021 using nullary_t = decltype(nullary);
6022 using unary_t = decltype(unary);
6023 const auto higher1st = [](nullary_t f){ return f(); };
6024 const auto higher2nd = [unary](nullary_t f1){
6025 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6027 return higher1st(nullary) + higher2nd(nullary)(unary);
6032 namespace test_variadic_templates
6035 template <int...>
6036 struct sum;
6038 template <int N0, int... N1toN>
6039 struct sum<N0, N1toN...>
6041 static constexpr auto value = N0 + sum<N1toN...>::value;
6044 template <>
6045 struct sum<>
6047 static constexpr auto value = 0;
6050 static_assert(sum<>::value == 0, "");
6051 static_assert(sum<1>::value == 1, "");
6052 static_assert(sum<23>::value == 23, "");
6053 static_assert(sum<1, 2>::value == 3, "");
6054 static_assert(sum<5, 5, 11>::value == 21, "");
6055 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6059 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6060 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6061 // because of this.
6062 namespace test_template_alias_sfinae
6065 struct foo {};
6067 template<typename T>
6068 using member = typename T::member_type;
6070 template<typename T>
6071 void func(...) {}
6073 template<typename T>
6074 void func(member<T>*) {}
6076 void test();
6078 void test() { func<foo>(0); }
6082 } // namespace cxx11
6084 #endif // __cplusplus >= 201103L
6088 _ACEOF
6089 if ac_fn_cxx_try_compile "$LINENO"; then :
6090 ax_cv_cxx_compile_cxx11=yes
6091 else
6092 ax_cv_cxx_compile_cxx11=no
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6097 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6098 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6099 ac_success=yes
6102 if test x$ac_success = xno; then
6103 for alternative in ${ax_cxx_compile_alternatives}; do
6104 switch="-std=gnu++${alternative}"
6105 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6107 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6108 if eval \${$cachevar+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 ac_save_CXX="$CXX"
6112 CXX="$CXX $switch"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6117 // If the compiler admits that it is not ready for C++11, why torture it?
6118 // Hopefully, this will speed up the test.
6120 #ifndef __cplusplus
6122 #error "This is not a C++ compiler"
6124 #elif __cplusplus < 201103L
6126 #error "This is not a C++11 compiler"
6128 #else
6130 namespace cxx11
6133 namespace test_static_assert
6136 template <typename T>
6137 struct check
6139 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6144 namespace test_final_override
6147 struct Base
6149 virtual ~Base() {}
6150 virtual void f() {}
6153 struct Derived : public Base
6155 virtual ~Derived() override {}
6156 virtual void f() override {}
6161 namespace test_double_right_angle_brackets
6164 template < typename T >
6165 struct check {};
6167 typedef check<void> single_type;
6168 typedef check<check<void>> double_type;
6169 typedef check<check<check<void>>> triple_type;
6170 typedef check<check<check<check<void>>>> quadruple_type;
6174 namespace test_decltype
6180 int a = 1;
6181 decltype(a) b = 2;
6182 return a + b;
6187 namespace test_type_deduction
6190 template < typename T1, typename T2 >
6191 struct is_same
6193 static const bool value = false;
6196 template < typename T >
6197 struct is_same<T, T>
6199 static const bool value = true;
6202 template < typename T1, typename T2 >
6203 auto
6204 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6206 return a1 + a2;
6210 test(const int c, volatile int v)
6212 static_assert(is_same<int, decltype(0)>::value == true, "");
6213 static_assert(is_same<int, decltype(c)>::value == false, "");
6214 static_assert(is_same<int, decltype(v)>::value == false, "");
6215 auto ac = c;
6216 auto av = v;
6217 auto sumi = ac + av + 'x';
6218 auto sumf = ac + av + 1.0;
6219 static_assert(is_same<int, decltype(ac)>::value == true, "");
6220 static_assert(is_same<int, decltype(av)>::value == true, "");
6221 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6222 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6223 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6224 return (sumf > 0.0) ? sumi : add(c, v);
6229 namespace test_noexcept
6232 int f() { return 0; }
6233 int g() noexcept { return 0; }
6235 static_assert(noexcept(f()) == false, "");
6236 static_assert(noexcept(g()) == true, "");
6240 namespace test_constexpr
6243 template < typename CharT >
6244 unsigned long constexpr
6245 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6247 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6250 template < typename CharT >
6251 unsigned long constexpr
6252 strlen_c(const CharT *const s) noexcept
6254 return strlen_c_r(s, 0UL);
6257 static_assert(strlen_c("") == 0UL, "");
6258 static_assert(strlen_c("1") == 1UL, "");
6259 static_assert(strlen_c("example") == 7UL, "");
6260 static_assert(strlen_c("another\0example") == 7UL, "");
6264 namespace test_rvalue_references
6267 template < int N >
6268 struct answer
6270 static constexpr int value = N;
6273 answer<1> f(int&) { return answer<1>(); }
6274 answer<2> f(const int&) { return answer<2>(); }
6275 answer<3> f(int&&) { return answer<3>(); }
6277 void
6278 test()
6280 int i = 0;
6281 const int c = 0;
6282 static_assert(decltype(f(i))::value == 1, "");
6283 static_assert(decltype(f(c))::value == 2, "");
6284 static_assert(decltype(f(0))::value == 3, "");
6289 namespace test_uniform_initialization
6292 struct test
6294 static const int zero {};
6295 static const int one {1};
6298 static_assert(test::zero == 0, "");
6299 static_assert(test::one == 1, "");
6303 namespace test_lambdas
6306 void
6307 test1()
6309 auto lambda1 = [](){};
6310 auto lambda2 = lambda1;
6311 lambda1();
6312 lambda2();
6316 test2()
6318 auto a = [](int i, int j){ return i + j; }(1, 2);
6319 auto b = []() -> int { return '0'; }();
6320 auto c = [=](){ return a + b; }();
6321 auto d = [&](){ return c; }();
6322 auto e = [a, &b](int x) mutable {
6323 const auto identity = [](int y){ return y; };
6324 for (auto i = 0; i < a; ++i)
6325 a += b--;
6326 return x + identity(a + b);
6327 }(0);
6328 return a + b + c + d + e;
6332 test3()
6334 const auto nullary = [](){ return 0; };
6335 const auto unary = [](int x){ return x; };
6336 using nullary_t = decltype(nullary);
6337 using unary_t = decltype(unary);
6338 const auto higher1st = [](nullary_t f){ return f(); };
6339 const auto higher2nd = [unary](nullary_t f1){
6340 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6342 return higher1st(nullary) + higher2nd(nullary)(unary);
6347 namespace test_variadic_templates
6350 template <int...>
6351 struct sum;
6353 template <int N0, int... N1toN>
6354 struct sum<N0, N1toN...>
6356 static constexpr auto value = N0 + sum<N1toN...>::value;
6359 template <>
6360 struct sum<>
6362 static constexpr auto value = 0;
6365 static_assert(sum<>::value == 0, "");
6366 static_assert(sum<1>::value == 1, "");
6367 static_assert(sum<23>::value == 23, "");
6368 static_assert(sum<1, 2>::value == 3, "");
6369 static_assert(sum<5, 5, 11>::value == 21, "");
6370 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6374 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6375 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6376 // because of this.
6377 namespace test_template_alias_sfinae
6380 struct foo {};
6382 template<typename T>
6383 using member = typename T::member_type;
6385 template<typename T>
6386 void func(...) {}
6388 template<typename T>
6389 void func(member<T>*) {}
6391 void test();
6393 void test() { func<foo>(0); }
6397 } // namespace cxx11
6399 #endif // __cplusplus >= 201103L
6403 _ACEOF
6404 if ac_fn_cxx_try_compile "$LINENO"; then :
6405 eval $cachevar=yes
6406 else
6407 eval $cachevar=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 CXX="$ac_save_CXX"
6412 eval ac_res=\$$cachevar
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6414 $as_echo "$ac_res" >&6; }
6415 if eval test x\$$cachevar = xyes; then
6416 CXX="$CXX $switch"
6417 if test -n "$CXXCPP" ; then
6418 CXXCPP="$CXXCPP $switch"
6420 ac_success=yes
6421 break
6423 done
6426 if test x$ac_success = xno; then
6427 for alternative in ${ax_cxx_compile_alternatives}; do
6428 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6429 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6431 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6432 if eval \${$cachevar+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 ac_save_CXX="$CXX"
6436 CXX="$CXX $switch"
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6441 // If the compiler admits that it is not ready for C++11, why torture it?
6442 // Hopefully, this will speed up the test.
6444 #ifndef __cplusplus
6446 #error "This is not a C++ compiler"
6448 #elif __cplusplus < 201103L
6450 #error "This is not a C++11 compiler"
6452 #else
6454 namespace cxx11
6457 namespace test_static_assert
6460 template <typename T>
6461 struct check
6463 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6468 namespace test_final_override
6471 struct Base
6473 virtual ~Base() {}
6474 virtual void f() {}
6477 struct Derived : public Base
6479 virtual ~Derived() override {}
6480 virtual void f() override {}
6485 namespace test_double_right_angle_brackets
6488 template < typename T >
6489 struct check {};
6491 typedef check<void> single_type;
6492 typedef check<check<void>> double_type;
6493 typedef check<check<check<void>>> triple_type;
6494 typedef check<check<check<check<void>>>> quadruple_type;
6498 namespace test_decltype
6504 int a = 1;
6505 decltype(a) b = 2;
6506 return a + b;
6511 namespace test_type_deduction
6514 template < typename T1, typename T2 >
6515 struct is_same
6517 static const bool value = false;
6520 template < typename T >
6521 struct is_same<T, T>
6523 static const bool value = true;
6526 template < typename T1, typename T2 >
6527 auto
6528 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6530 return a1 + a2;
6534 test(const int c, volatile int v)
6536 static_assert(is_same<int, decltype(0)>::value == true, "");
6537 static_assert(is_same<int, decltype(c)>::value == false, "");
6538 static_assert(is_same<int, decltype(v)>::value == false, "");
6539 auto ac = c;
6540 auto av = v;
6541 auto sumi = ac + av + 'x';
6542 auto sumf = ac + av + 1.0;
6543 static_assert(is_same<int, decltype(ac)>::value == true, "");
6544 static_assert(is_same<int, decltype(av)>::value == true, "");
6545 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6546 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6547 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6548 return (sumf > 0.0) ? sumi : add(c, v);
6553 namespace test_noexcept
6556 int f() { return 0; }
6557 int g() noexcept { return 0; }
6559 static_assert(noexcept(f()) == false, "");
6560 static_assert(noexcept(g()) == true, "");
6564 namespace test_constexpr
6567 template < typename CharT >
6568 unsigned long constexpr
6569 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6571 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6574 template < typename CharT >
6575 unsigned long constexpr
6576 strlen_c(const CharT *const s) noexcept
6578 return strlen_c_r(s, 0UL);
6581 static_assert(strlen_c("") == 0UL, "");
6582 static_assert(strlen_c("1") == 1UL, "");
6583 static_assert(strlen_c("example") == 7UL, "");
6584 static_assert(strlen_c("another\0example") == 7UL, "");
6588 namespace test_rvalue_references
6591 template < int N >
6592 struct answer
6594 static constexpr int value = N;
6597 answer<1> f(int&) { return answer<1>(); }
6598 answer<2> f(const int&) { return answer<2>(); }
6599 answer<3> f(int&&) { return answer<3>(); }
6601 void
6602 test()
6604 int i = 0;
6605 const int c = 0;
6606 static_assert(decltype(f(i))::value == 1, "");
6607 static_assert(decltype(f(c))::value == 2, "");
6608 static_assert(decltype(f(0))::value == 3, "");
6613 namespace test_uniform_initialization
6616 struct test
6618 static const int zero {};
6619 static const int one {1};
6622 static_assert(test::zero == 0, "");
6623 static_assert(test::one == 1, "");
6627 namespace test_lambdas
6630 void
6631 test1()
6633 auto lambda1 = [](){};
6634 auto lambda2 = lambda1;
6635 lambda1();
6636 lambda2();
6640 test2()
6642 auto a = [](int i, int j){ return i + j; }(1, 2);
6643 auto b = []() -> int { return '0'; }();
6644 auto c = [=](){ return a + b; }();
6645 auto d = [&](){ return c; }();
6646 auto e = [a, &b](int x) mutable {
6647 const auto identity = [](int y){ return y; };
6648 for (auto i = 0; i < a; ++i)
6649 a += b--;
6650 return x + identity(a + b);
6651 }(0);
6652 return a + b + c + d + e;
6656 test3()
6658 const auto nullary = [](){ return 0; };
6659 const auto unary = [](int x){ return x; };
6660 using nullary_t = decltype(nullary);
6661 using unary_t = decltype(unary);
6662 const auto higher1st = [](nullary_t f){ return f(); };
6663 const auto higher2nd = [unary](nullary_t f1){
6664 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6666 return higher1st(nullary) + higher2nd(nullary)(unary);
6671 namespace test_variadic_templates
6674 template <int...>
6675 struct sum;
6677 template <int N0, int... N1toN>
6678 struct sum<N0, N1toN...>
6680 static constexpr auto value = N0 + sum<N1toN...>::value;
6683 template <>
6684 struct sum<>
6686 static constexpr auto value = 0;
6689 static_assert(sum<>::value == 0, "");
6690 static_assert(sum<1>::value == 1, "");
6691 static_assert(sum<23>::value == 23, "");
6692 static_assert(sum<1, 2>::value == 3, "");
6693 static_assert(sum<5, 5, 11>::value == 21, "");
6694 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6698 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6699 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6700 // because of this.
6701 namespace test_template_alias_sfinae
6704 struct foo {};
6706 template<typename T>
6707 using member = typename T::member_type;
6709 template<typename T>
6710 void func(...) {}
6712 template<typename T>
6713 void func(member<T>*) {}
6715 void test();
6717 void test() { func<foo>(0); }
6721 } // namespace cxx11
6723 #endif // __cplusplus >= 201103L
6727 _ACEOF
6728 if ac_fn_cxx_try_compile "$LINENO"; then :
6729 eval $cachevar=yes
6730 else
6731 eval $cachevar=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 CXX="$ac_save_CXX"
6736 eval ac_res=\$$cachevar
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6738 $as_echo "$ac_res" >&6; }
6739 if eval test x\$$cachevar = xyes; then
6740 CXX="$CXX $switch"
6741 if test -n "$CXXCPP" ; then
6742 CXXCPP="$CXXCPP $switch"
6744 ac_success=yes
6745 break
6747 done
6748 if test x$ac_success = xyes; then
6749 break
6751 done
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6761 if test x$ac_success = xno; then
6762 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6765 if test x$ac_success = xno; then
6766 HAVE_CXX11=0
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6768 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6769 else
6770 HAVE_CXX11=1
6772 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6778 if test "${build}" != "${host}"; then
6779 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6780 ac_ext=cpp
6781 ac_cpp='$CXXCPP $CPPFLAGS'
6782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6785 ac_success=no
6786 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6787 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6788 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6789 CXX="$CXX_FOR_BUILD"
6790 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6791 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6793 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6794 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6801 // If the compiler admits that it is not ready for C++11, why torture it?
6802 // Hopefully, this will speed up the test.
6804 #ifndef __cplusplus
6806 #error "This is not a C++ compiler"
6808 #elif __cplusplus < 201103L
6810 #error "This is not a C++11 compiler"
6812 #else
6814 namespace cxx11
6817 namespace test_static_assert
6820 template <typename T>
6821 struct check
6823 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6828 namespace test_final_override
6831 struct Base
6833 virtual ~Base() {}
6834 virtual void f() {}
6837 struct Derived : public Base
6839 virtual ~Derived() override {}
6840 virtual void f() override {}
6845 namespace test_double_right_angle_brackets
6848 template < typename T >
6849 struct check {};
6851 typedef check<void> single_type;
6852 typedef check<check<void>> double_type;
6853 typedef check<check<check<void>>> triple_type;
6854 typedef check<check<check<check<void>>>> quadruple_type;
6858 namespace test_decltype
6864 int a = 1;
6865 decltype(a) b = 2;
6866 return a + b;
6871 namespace test_type_deduction
6874 template < typename T1, typename T2 >
6875 struct is_same
6877 static const bool value = false;
6880 template < typename T >
6881 struct is_same<T, T>
6883 static const bool value = true;
6886 template < typename T1, typename T2 >
6887 auto
6888 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6890 return a1 + a2;
6894 test(const int c, volatile int v)
6896 static_assert(is_same<int, decltype(0)>::value == true, "");
6897 static_assert(is_same<int, decltype(c)>::value == false, "");
6898 static_assert(is_same<int, decltype(v)>::value == false, "");
6899 auto ac = c;
6900 auto av = v;
6901 auto sumi = ac + av + 'x';
6902 auto sumf = ac + av + 1.0;
6903 static_assert(is_same<int, decltype(ac)>::value == true, "");
6904 static_assert(is_same<int, decltype(av)>::value == true, "");
6905 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6906 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6907 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6908 return (sumf > 0.0) ? sumi : add(c, v);
6913 namespace test_noexcept
6916 int f() { return 0; }
6917 int g() noexcept { return 0; }
6919 static_assert(noexcept(f()) == false, "");
6920 static_assert(noexcept(g()) == true, "");
6924 namespace test_constexpr
6927 template < typename CharT >
6928 unsigned long constexpr
6929 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6931 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6934 template < typename CharT >
6935 unsigned long constexpr
6936 strlen_c(const CharT *const s) noexcept
6938 return strlen_c_r(s, 0UL);
6941 static_assert(strlen_c("") == 0UL, "");
6942 static_assert(strlen_c("1") == 1UL, "");
6943 static_assert(strlen_c("example") == 7UL, "");
6944 static_assert(strlen_c("another\0example") == 7UL, "");
6948 namespace test_rvalue_references
6951 template < int N >
6952 struct answer
6954 static constexpr int value = N;
6957 answer<1> f(int&) { return answer<1>(); }
6958 answer<2> f(const int&) { return answer<2>(); }
6959 answer<3> f(int&&) { return answer<3>(); }
6961 void
6962 test()
6964 int i = 0;
6965 const int c = 0;
6966 static_assert(decltype(f(i))::value == 1, "");
6967 static_assert(decltype(f(c))::value == 2, "");
6968 static_assert(decltype(f(0))::value == 3, "");
6973 namespace test_uniform_initialization
6976 struct test
6978 static const int zero {};
6979 static const int one {1};
6982 static_assert(test::zero == 0, "");
6983 static_assert(test::one == 1, "");
6987 namespace test_lambdas
6990 void
6991 test1()
6993 auto lambda1 = [](){};
6994 auto lambda2 = lambda1;
6995 lambda1();
6996 lambda2();
7000 test2()
7002 auto a = [](int i, int j){ return i + j; }(1, 2);
7003 auto b = []() -> int { return '0'; }();
7004 auto c = [=](){ return a + b; }();
7005 auto d = [&](){ return c; }();
7006 auto e = [a, &b](int x) mutable {
7007 const auto identity = [](int y){ return y; };
7008 for (auto i = 0; i < a; ++i)
7009 a += b--;
7010 return x + identity(a + b);
7011 }(0);
7012 return a + b + c + d + e;
7016 test3()
7018 const auto nullary = [](){ return 0; };
7019 const auto unary = [](int x){ return x; };
7020 using nullary_t = decltype(nullary);
7021 using unary_t = decltype(unary);
7022 const auto higher1st = [](nullary_t f){ return f(); };
7023 const auto higher2nd = [unary](nullary_t f1){
7024 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7026 return higher1st(nullary) + higher2nd(nullary)(unary);
7031 namespace test_variadic_templates
7034 template <int...>
7035 struct sum;
7037 template <int N0, int... N1toN>
7038 struct sum<N0, N1toN...>
7040 static constexpr auto value = N0 + sum<N1toN...>::value;
7043 template <>
7044 struct sum<>
7046 static constexpr auto value = 0;
7049 static_assert(sum<>::value == 0, "");
7050 static_assert(sum<1>::value == 1, "");
7051 static_assert(sum<23>::value == 23, "");
7052 static_assert(sum<1, 2>::value == 3, "");
7053 static_assert(sum<5, 5, 11>::value == 21, "");
7054 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7058 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7059 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7060 // because of this.
7061 namespace test_template_alias_sfinae
7064 struct foo {};
7066 template<typename T>
7067 using member = typename T::member_type;
7069 template<typename T>
7070 void func(...) {}
7072 template<typename T>
7073 void func(member<T>*) {}
7075 void test();
7077 void test() { func<foo>(0); }
7081 } // namespace cxx11
7083 #endif // __cplusplus >= 201103L
7087 _ACEOF
7088 if ac_fn_cxx_try_compile "$LINENO"; then :
7089 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7090 else
7091 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7096 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7097 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7098 ac_success=yes
7101 if test x$ac_success = xno; then
7102 for alternative in ${ax_cxx_compile_alternatives}; do
7103 switch="-std=gnu++${alternative}"
7104 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7106 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7107 if eval \${$cachevar+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 ac_save_CXX="$CXX"
7111 CXX="$CXX $switch"
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7116 // If the compiler admits that it is not ready for C++11, why torture it?
7117 // Hopefully, this will speed up the test.
7119 #ifndef __cplusplus
7121 #error "This is not a C++ compiler"
7123 #elif __cplusplus < 201103L
7125 #error "This is not a C++11 compiler"
7127 #else
7129 namespace cxx11
7132 namespace test_static_assert
7135 template <typename T>
7136 struct check
7138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7143 namespace test_final_override
7146 struct Base
7148 virtual ~Base() {}
7149 virtual void f() {}
7152 struct Derived : public Base
7154 virtual ~Derived() override {}
7155 virtual void f() override {}
7160 namespace test_double_right_angle_brackets
7163 template < typename T >
7164 struct check {};
7166 typedef check<void> single_type;
7167 typedef check<check<void>> double_type;
7168 typedef check<check<check<void>>> triple_type;
7169 typedef check<check<check<check<void>>>> quadruple_type;
7173 namespace test_decltype
7179 int a = 1;
7180 decltype(a) b = 2;
7181 return a + b;
7186 namespace test_type_deduction
7189 template < typename T1, typename T2 >
7190 struct is_same
7192 static const bool value = false;
7195 template < typename T >
7196 struct is_same<T, T>
7198 static const bool value = true;
7201 template < typename T1, typename T2 >
7202 auto
7203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7205 return a1 + a2;
7209 test(const int c, volatile int v)
7211 static_assert(is_same<int, decltype(0)>::value == true, "");
7212 static_assert(is_same<int, decltype(c)>::value == false, "");
7213 static_assert(is_same<int, decltype(v)>::value == false, "");
7214 auto ac = c;
7215 auto av = v;
7216 auto sumi = ac + av + 'x';
7217 auto sumf = ac + av + 1.0;
7218 static_assert(is_same<int, decltype(ac)>::value == true, "");
7219 static_assert(is_same<int, decltype(av)>::value == true, "");
7220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7223 return (sumf > 0.0) ? sumi : add(c, v);
7228 namespace test_noexcept
7231 int f() { return 0; }
7232 int g() noexcept { return 0; }
7234 static_assert(noexcept(f()) == false, "");
7235 static_assert(noexcept(g()) == true, "");
7239 namespace test_constexpr
7242 template < typename CharT >
7243 unsigned long constexpr
7244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7249 template < typename CharT >
7250 unsigned long constexpr
7251 strlen_c(const CharT *const s) noexcept
7253 return strlen_c_r(s, 0UL);
7256 static_assert(strlen_c("") == 0UL, "");
7257 static_assert(strlen_c("1") == 1UL, "");
7258 static_assert(strlen_c("example") == 7UL, "");
7259 static_assert(strlen_c("another\0example") == 7UL, "");
7263 namespace test_rvalue_references
7266 template < int N >
7267 struct answer
7269 static constexpr int value = N;
7272 answer<1> f(int&) { return answer<1>(); }
7273 answer<2> f(const int&) { return answer<2>(); }
7274 answer<3> f(int&&) { return answer<3>(); }
7276 void
7277 test()
7279 int i = 0;
7280 const int c = 0;
7281 static_assert(decltype(f(i))::value == 1, "");
7282 static_assert(decltype(f(c))::value == 2, "");
7283 static_assert(decltype(f(0))::value == 3, "");
7288 namespace test_uniform_initialization
7291 struct test
7293 static const int zero {};
7294 static const int one {1};
7297 static_assert(test::zero == 0, "");
7298 static_assert(test::one == 1, "");
7302 namespace test_lambdas
7305 void
7306 test1()
7308 auto lambda1 = [](){};
7309 auto lambda2 = lambda1;
7310 lambda1();
7311 lambda2();
7315 test2()
7317 auto a = [](int i, int j){ return i + j; }(1, 2);
7318 auto b = []() -> int { return '0'; }();
7319 auto c = [=](){ return a + b; }();
7320 auto d = [&](){ return c; }();
7321 auto e = [a, &b](int x) mutable {
7322 const auto identity = [](int y){ return y; };
7323 for (auto i = 0; i < a; ++i)
7324 a += b--;
7325 return x + identity(a + b);
7326 }(0);
7327 return a + b + c + d + e;
7331 test3()
7333 const auto nullary = [](){ return 0; };
7334 const auto unary = [](int x){ return x; };
7335 using nullary_t = decltype(nullary);
7336 using unary_t = decltype(unary);
7337 const auto higher1st = [](nullary_t f){ return f(); };
7338 const auto higher2nd = [unary](nullary_t f1){
7339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7341 return higher1st(nullary) + higher2nd(nullary)(unary);
7346 namespace test_variadic_templates
7349 template <int...>
7350 struct sum;
7352 template <int N0, int... N1toN>
7353 struct sum<N0, N1toN...>
7355 static constexpr auto value = N0 + sum<N1toN...>::value;
7358 template <>
7359 struct sum<>
7361 static constexpr auto value = 0;
7364 static_assert(sum<>::value == 0, "");
7365 static_assert(sum<1>::value == 1, "");
7366 static_assert(sum<23>::value == 23, "");
7367 static_assert(sum<1, 2>::value == 3, "");
7368 static_assert(sum<5, 5, 11>::value == 21, "");
7369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7375 // because of this.
7376 namespace test_template_alias_sfinae
7379 struct foo {};
7381 template<typename T>
7382 using member = typename T::member_type;
7384 template<typename T>
7385 void func(...) {}
7387 template<typename T>
7388 void func(member<T>*) {}
7390 void test();
7392 void test() { func<foo>(0); }
7396 } // namespace cxx11
7398 #endif // __cplusplus >= 201103L
7402 _ACEOF
7403 if ac_fn_cxx_try_compile "$LINENO"; then :
7404 eval $cachevar=yes
7405 else
7406 eval $cachevar=no
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 CXX="$ac_save_CXX"
7411 eval ac_res=\$$cachevar
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7413 $as_echo "$ac_res" >&6; }
7414 if eval test x\$$cachevar = xyes; then
7415 CXX="$CXX $switch"
7416 if test -n "$CXXCPP" ; then
7417 CXXCPP="$CXXCPP $switch"
7419 ac_success=yes
7420 break
7422 done
7425 if test x$ac_success = xno; then
7426 for alternative in ${ax_cxx_compile_alternatives}; do
7427 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7428 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7430 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7431 if eval \${$cachevar+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 ac_save_CXX="$CXX"
7435 CXX="$CXX $switch"
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7440 // If the compiler admits that it is not ready for C++11, why torture it?
7441 // Hopefully, this will speed up the test.
7443 #ifndef __cplusplus
7445 #error "This is not a C++ compiler"
7447 #elif __cplusplus < 201103L
7449 #error "This is not a C++11 compiler"
7451 #else
7453 namespace cxx11
7456 namespace test_static_assert
7459 template <typename T>
7460 struct check
7462 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7467 namespace test_final_override
7470 struct Base
7472 virtual ~Base() {}
7473 virtual void f() {}
7476 struct Derived : public Base
7478 virtual ~Derived() override {}
7479 virtual void f() override {}
7484 namespace test_double_right_angle_brackets
7487 template < typename T >
7488 struct check {};
7490 typedef check<void> single_type;
7491 typedef check<check<void>> double_type;
7492 typedef check<check<check<void>>> triple_type;
7493 typedef check<check<check<check<void>>>> quadruple_type;
7497 namespace test_decltype
7503 int a = 1;
7504 decltype(a) b = 2;
7505 return a + b;
7510 namespace test_type_deduction
7513 template < typename T1, typename T2 >
7514 struct is_same
7516 static const bool value = false;
7519 template < typename T >
7520 struct is_same<T, T>
7522 static const bool value = true;
7525 template < typename T1, typename T2 >
7526 auto
7527 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7529 return a1 + a2;
7533 test(const int c, volatile int v)
7535 static_assert(is_same<int, decltype(0)>::value == true, "");
7536 static_assert(is_same<int, decltype(c)>::value == false, "");
7537 static_assert(is_same<int, decltype(v)>::value == false, "");
7538 auto ac = c;
7539 auto av = v;
7540 auto sumi = ac + av + 'x';
7541 auto sumf = ac + av + 1.0;
7542 static_assert(is_same<int, decltype(ac)>::value == true, "");
7543 static_assert(is_same<int, decltype(av)>::value == true, "");
7544 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7545 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7546 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7547 return (sumf > 0.0) ? sumi : add(c, v);
7552 namespace test_noexcept
7555 int f() { return 0; }
7556 int g() noexcept { return 0; }
7558 static_assert(noexcept(f()) == false, "");
7559 static_assert(noexcept(g()) == true, "");
7563 namespace test_constexpr
7566 template < typename CharT >
7567 unsigned long constexpr
7568 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7570 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7573 template < typename CharT >
7574 unsigned long constexpr
7575 strlen_c(const CharT *const s) noexcept
7577 return strlen_c_r(s, 0UL);
7580 static_assert(strlen_c("") == 0UL, "");
7581 static_assert(strlen_c("1") == 1UL, "");
7582 static_assert(strlen_c("example") == 7UL, "");
7583 static_assert(strlen_c("another\0example") == 7UL, "");
7587 namespace test_rvalue_references
7590 template < int N >
7591 struct answer
7593 static constexpr int value = N;
7596 answer<1> f(int&) { return answer<1>(); }
7597 answer<2> f(const int&) { return answer<2>(); }
7598 answer<3> f(int&&) { return answer<3>(); }
7600 void
7601 test()
7603 int i = 0;
7604 const int c = 0;
7605 static_assert(decltype(f(i))::value == 1, "");
7606 static_assert(decltype(f(c))::value == 2, "");
7607 static_assert(decltype(f(0))::value == 3, "");
7612 namespace test_uniform_initialization
7615 struct test
7617 static const int zero {};
7618 static const int one {1};
7621 static_assert(test::zero == 0, "");
7622 static_assert(test::one == 1, "");
7626 namespace test_lambdas
7629 void
7630 test1()
7632 auto lambda1 = [](){};
7633 auto lambda2 = lambda1;
7634 lambda1();
7635 lambda2();
7639 test2()
7641 auto a = [](int i, int j){ return i + j; }(1, 2);
7642 auto b = []() -> int { return '0'; }();
7643 auto c = [=](){ return a + b; }();
7644 auto d = [&](){ return c; }();
7645 auto e = [a, &b](int x) mutable {
7646 const auto identity = [](int y){ return y; };
7647 for (auto i = 0; i < a; ++i)
7648 a += b--;
7649 return x + identity(a + b);
7650 }(0);
7651 return a + b + c + d + e;
7655 test3()
7657 const auto nullary = [](){ return 0; };
7658 const auto unary = [](int x){ return x; };
7659 using nullary_t = decltype(nullary);
7660 using unary_t = decltype(unary);
7661 const auto higher1st = [](nullary_t f){ return f(); };
7662 const auto higher2nd = [unary](nullary_t f1){
7663 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7665 return higher1st(nullary) + higher2nd(nullary)(unary);
7670 namespace test_variadic_templates
7673 template <int...>
7674 struct sum;
7676 template <int N0, int... N1toN>
7677 struct sum<N0, N1toN...>
7679 static constexpr auto value = N0 + sum<N1toN...>::value;
7682 template <>
7683 struct sum<>
7685 static constexpr auto value = 0;
7688 static_assert(sum<>::value == 0, "");
7689 static_assert(sum<1>::value == 1, "");
7690 static_assert(sum<23>::value == 23, "");
7691 static_assert(sum<1, 2>::value == 3, "");
7692 static_assert(sum<5, 5, 11>::value == 21, "");
7693 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7697 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7698 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7699 // because of this.
7700 namespace test_template_alias_sfinae
7703 struct foo {};
7705 template<typename T>
7706 using member = typename T::member_type;
7708 template<typename T>
7709 void func(...) {}
7711 template<typename T>
7712 void func(member<T>*) {}
7714 void test();
7716 void test() { func<foo>(0); }
7720 } // namespace cxx11
7722 #endif // __cplusplus >= 201103L
7726 _ACEOF
7727 if ac_fn_cxx_try_compile "$LINENO"; then :
7728 eval $cachevar=yes
7729 else
7730 eval $cachevar=no
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 CXX="$ac_save_CXX"
7735 eval ac_res=\$$cachevar
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7737 $as_echo "$ac_res" >&6; }
7738 if eval test x\$$cachevar = xyes; then
7739 CXX="$CXX $switch"
7740 if test -n "$CXXCPP" ; then
7741 CXXCPP="$CXXCPP $switch"
7743 ac_success=yes
7744 break
7746 done
7747 if test x$ac_success = xyes; then
7748 break
7750 done
7752 CXX_FOR_BUILD="$CXX"
7753 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7754 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7755 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7756 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7757 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7765 if test x$ac_success = xno; then
7766 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7769 if test x$ac_success = xno; then
7770 HAVE_CXX11_FOR_BUILD=0
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7772 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7773 else
7774 HAVE_CXX11_FOR_BUILD=1
7776 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7784 # Check whether --enable-pgo-build was given.
7785 if test "${enable_pgo_build+set}" = set; then :
7786 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7787 else
7788 enable_pgo_build=no
7792 # Issue errors and warnings for invalid/strange PGO build combinations.
7793 case "$have_compiler:$host:$target:$enable_pgo_build" in
7794 *:*:*:no) ;;
7796 # Allow the PGO build only if we aren't building a compiler and
7797 # we are in a native configuration.
7798 no:$build:$build:yes | no:$build:$build:lto) ;;
7800 # Disallow the PGO bootstrap if we are building a compiler.
7801 yes:*:*:yes | yes:*:*:lto)
7802 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7805 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7807 esac
7809 if test "$enable_pgo_build" != "no"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7811 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7812 old_CFLAGS="$CFLAGS"
7813 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7814 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 int foo;
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7822 else
7823 PGO_BUILD_GEN_CFLAGS=
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 CFLAGS="$old_CFLAGS"
7827 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829 $as_echo "yes" >&6; }
7830 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7837 if test "$enable_pgo_build" = "lto"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7839 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7840 old_CFLAGS="$CFLAGS"
7841 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7842 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 int foo;
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"; then :
7849 else
7850 PGO_BUILD_LTO_CFLAGS=
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 CFLAGS="$old_CFLAGS"
7854 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7856 $as_echo "yes" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7861 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7869 # Used for setting $lt_cv_objdir
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7871 $as_echo_n "checking for objdir... " >&6; }
7872 if ${lt_cv_objdir+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 rm -f .libs 2>/dev/null
7876 mkdir .libs 2>/dev/null
7877 if test -d .libs; then
7878 lt_cv_objdir=.libs
7879 else
7880 # MS-DOS does not allow filenames that begin with a dot.
7881 lt_cv_objdir=_libs
7883 rmdir .libs 2>/dev/null
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7886 $as_echo "$lt_cv_objdir" >&6; }
7887 objdir=$lt_cv_objdir
7893 cat >>confdefs.h <<_ACEOF
7894 #define LT_OBJDIR "$lt_cv_objdir/"
7895 _ACEOF
7899 # Check for GMP, MPFR and MPC
7900 gmplibs="-lmpc -lmpfr -lgmp"
7901 gmpinc=
7902 have_gmp=no
7904 # Specify a location for mpc
7905 # check for this first so it ends up on the link line before mpfr.
7907 # Check whether --with-mpc was given.
7908 if test "${with_mpc+set}" = set; then :
7909 withval=$with_mpc;
7913 # Check whether --with-mpc-include was given.
7914 if test "${with_mpc_include+set}" = set; then :
7915 withval=$with_mpc_include;
7919 # Check whether --with-mpc-lib was given.
7920 if test "${with_mpc_lib+set}" = set; then :
7921 withval=$with_mpc_lib;
7925 if test "x$with_mpc" != x; then
7926 gmplibs="-L$with_mpc/lib $gmplibs"
7927 gmpinc="-I$with_mpc/include $gmpinc"
7929 if test "x$with_mpc_include" != x; then
7930 gmpinc="-I$with_mpc_include $gmpinc"
7932 if test "x$with_mpc_lib" != x; then
7933 gmplibs="-L$with_mpc_lib $gmplibs"
7935 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7936 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7937 gmpinc='-I$$s/mpc/src '"$gmpinc"
7938 # Do not test the mpc version. Assume that it is sufficient, since
7939 # it is in the source tree, and the library has not been built yet
7940 # but it would be included on the link line in the version check below
7941 # hence making the test fail.
7942 have_gmp=yes
7945 # Specify a location for mpfr
7946 # check for this first so it ends up on the link line before gmp.
7948 # Check whether --with-mpfr was given.
7949 if test "${with_mpfr+set}" = set; then :
7950 withval=$with_mpfr;
7954 # Check whether --with-mpfr-include was given.
7955 if test "${with_mpfr_include+set}" = set; then :
7956 withval=$with_mpfr_include;
7960 # Check whether --with-mpfr-lib was given.
7961 if test "${with_mpfr_lib+set}" = set; then :
7962 withval=$with_mpfr_lib;
7966 if test "x$with_mpfr" != x; then
7967 gmplibs="-L$with_mpfr/lib $gmplibs"
7968 gmpinc="-I$with_mpfr/include $gmpinc"
7970 if test "x$with_mpfr_include" != x; then
7971 gmpinc="-I$with_mpfr_include $gmpinc"
7973 if test "x$with_mpfr_lib" != x; then
7974 gmplibs="-L$with_mpfr_lib $gmplibs"
7976 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7977 # MPFR v3.1.0 moved the sources into a src sub-directory.
7978 if ! test -d ${srcdir}/mpfr/src; then
7979 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7981 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7982 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7983 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7984 # Do not test the mpfr version. Assume that it is sufficient, since
7985 # it is in the source tree, and the library has not been built yet
7986 # but it would be included on the link line in the version check below
7987 # hence making the test fail.
7988 have_gmp=yes
7991 # Specify a location for gmp
7992 # sdcpp: omitted
7994 # The library versions listed in the error message below should match
7995 # the HARD-minimums enforced above.
7996 # sdcpp: omitted
7998 # Flags needed for both GMP, MPFR and/or MPC.
8006 # Libraries to use for stage1 or when not bootstrapping.
8008 # Check whether --with-stage1-libs was given.
8009 if test "${with_stage1_libs+set}" = set; then :
8010 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8011 stage1_libs=
8012 else
8013 stage1_libs=$withval
8015 else
8016 stage1_libs=
8021 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8022 # default is yes if gcc is being built; no otherwise. The reason for
8023 # this default is that gdb is sometimes linked against GNU Source
8024 # Highlight, which is a shared library that uses C++ exceptions. In
8025 # this case, -static-libstdc++ will cause crashes.
8027 # Check whether --with-static-standard-libraries was given.
8028 if test "${with_static_standard_libraries+set}" = set; then :
8029 withval=$with_static_standard_libraries;
8030 else
8031 with_static_standard_libraries=auto
8034 if test "$with_static_standard_libraries" = auto; then
8035 with_static_standard_libraries=$have_compiler
8038 # Linker flags to use for stage1 or when not bootstrapping.
8040 # Check whether --with-stage1-ldflags was given.
8041 if test "${with_stage1_ldflags+set}" = set; then :
8042 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8043 stage1_ldflags=
8044 else
8045 stage1_ldflags=$withval
8047 else
8048 stage1_ldflags=
8049 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8050 # if supported. But if the user explicitly specified the libraries to use,
8051 # trust that they are doing what they want.
8052 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8053 -a "$have_static_libs" = yes; then
8054 stage1_ldflags="-static-libstdc++ -static-libgcc"
8060 # Libraries to use for stage2 and later builds.
8062 # Check whether --with-boot-libs was given.
8063 if test "${with_boot_libs+set}" = set; then :
8064 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8065 poststage1_libs=
8066 else
8067 poststage1_libs=$withval
8069 else
8070 poststage1_libs=
8075 # Linker flags to use for stage2 and later builds.
8077 # Check whether --with-boot-ldflags was given.
8078 if test "${with_boot_ldflags+set}" = set; then :
8079 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8080 poststage1_ldflags=
8081 else
8082 poststage1_ldflags=$withval
8084 else
8085 poststage1_ldflags=
8086 # In stages 2 and 3, default to linking libstdc++ and libgcc
8087 # statically. But if the user explicitly specified the libraries to
8088 # use, trust that they are doing what they want.
8089 if test "$poststage1_libs" = ""; then
8090 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8096 # GCC GRAPHITE dependency isl.
8097 # Basic setup is inlined here, actual checks are in config/isl.m4
8100 # Check whether --with-isl was given.
8101 if test "${with_isl+set}" = set; then :
8102 withval=$with_isl;
8106 # Treat --without-isl as a request to disable
8107 # GRAPHITE support and skip all following checks.
8108 if test "x$with_isl" != "xno"; then
8109 # Check for isl
8112 # Check whether --with-isl-include was given.
8113 if test "${with_isl_include+set}" = set; then :
8114 withval=$with_isl_include;
8118 # Check whether --with-isl-lib was given.
8119 if test "${with_isl_lib+set}" = set; then :
8120 withval=$with_isl_lib;
8124 # Check whether --enable-isl-version-check was given.
8125 if test "${enable_isl_version_check+set}" = set; then :
8126 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8127 else
8128 ENABLE_ISL_CHECK=yes
8132 # Initialize isllibs and islinc.
8133 case $with_isl in
8135 isllibs=
8136 islinc=
8138 "" | yes)
8141 isllibs="-L$with_isl/lib"
8142 islinc="-I$with_isl/include"
8144 esac
8145 if test "x${with_isl_include}" != x ; then
8146 islinc="-I$with_isl_include"
8148 if test "x${with_isl_lib}" != x; then
8149 isllibs="-L$with_isl_lib"
8151 if test "x${islinc}" = x && test "x${isllibs}" = x \
8152 && test -d ${srcdir}/isl; then
8153 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8154 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8155 ENABLE_ISL_CHECK=no
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8157 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8160 isllibs="${isllibs} -lisl"
8164 if test "${ENABLE_ISL_CHECK}" = yes ; then
8165 _isl_saved_CFLAGS=$CFLAGS
8166 _isl_saved_LDFLAGS=$LDFLAGS
8167 _isl_saved_LIBS=$LIBS
8169 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8170 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8171 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8174 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #include <isl/schedule.h>
8179 main ()
8181 isl_options_set_schedule_serialize_sccs (NULL, 0);
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 gcc_cv_isl=yes
8188 else
8189 gcc_cv_isl=no
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8194 $as_echo "$gcc_cv_isl" >&6; }
8196 if test "${gcc_cv_isl}" = no ; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8198 $as_echo "required isl version is 0.15 or later" >&6; }
8201 CFLAGS=$_isl_saved_CFLAGS
8202 LDFLAGS=$_isl_saved_LDFLAGS
8203 LIBS=$_isl_saved_LIBS
8211 if test "x${with_isl}" = xno; then
8212 graphite_requested=no
8213 elif test "x${with_isl}" != x \
8214 || test "x${with_isl_include}" != x \
8215 || test "x${with_isl_lib}" != x ; then
8216 graphite_requested=yes
8217 else
8218 graphite_requested=no
8223 if test "${gcc_cv_isl}" = no ; then
8224 isllibs=
8225 islinc=
8228 if test "${graphite_requested}" = yes \
8229 && test "x${isllibs}" = x \
8230 && test "x${islinc}" = x ; then
8232 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8238 # If the isl check failed, disable builds of in-tree variant of isl
8239 if test "x$with_isl" = xno ||
8240 test "x$gcc_cv_isl" = xno; then
8241 noconfigdirs="$noconfigdirs isl"
8242 islinc=
8248 # Check for LTO support.
8249 # Check whether --enable-lto was given.
8250 if test "${enable_lto+set}" = set; then :
8251 enableval=$enable_lto; enable_lto=$enableval
8252 else
8253 enable_lto=yes; default_enable_lto=yes
8260 target_elf=no
8261 case $target in
8262 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8263 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8264 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8265 nvptx-*-none)
8266 target_elf=no
8269 target_elf=yes
8271 esac
8273 if test $target_elf = yes; then :
8274 # ELF platforms build the lto-plugin always.
8275 build_lto_plugin=yes
8277 else
8278 if test x"$default_enable_lto" = x"yes" ; then
8279 case $target in
8280 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8281 # On other non-ELF platforms, LTO has yet to be validated.
8282 *) enable_lto=no ;;
8283 esac
8284 else
8285 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8286 # It would also be nice to check the binutils support, but we don't
8287 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8288 # warn during gcc/ subconfigure; unless you're bootstrapping with
8289 # -flto it won't be needed until after installation anyway.
8290 case $target in
8291 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8292 *) if test x"$enable_lto" = x"yes"; then
8293 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8296 esac
8298 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8299 # Build it unless LTO was explicitly disabled.
8300 case $target in
8301 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8302 *) ;;
8303 esac
8308 # Check whether --enable-linker-plugin-configure-flags was given.
8309 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8310 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8311 else
8312 extra_linker_plugin_configure_flags=
8316 # Check whether --enable-linker-plugin-flags was given.
8317 if test "${enable_linker_plugin_flags+set}" = set; then :
8318 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8319 else
8320 extra_linker_plugin_flags=
8325 # Enable --enable-host-shared.
8326 # Checked early to determine whether jit is an 'all' language
8327 # Check whether --enable-host-shared was given.
8328 if test "${enable_host_shared+set}" = set; then :
8329 enableval=$enable_host_shared; host_shared=$enableval
8330 case $target in
8331 x86_64-*-darwin* | aarch64-*-darwin*)
8332 if test x$host_shared != xyes ; then
8333 # PIC is the default, and actually cannot be switched off.
8334 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8335 host_shared=yes
8336 fi ;;
8337 *) ;;
8338 esac
8339 else
8340 case $target in
8341 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8342 *) host_shared=no ;;
8343 esac
8348 # By default, C and C++ are the only stage 1 languages.
8349 stage1_languages=,c,
8351 # Target libraries that we bootstrap.
8352 bootstrap_target_libs=,target-libgcc,
8354 # Figure out what language subdirectories are present.
8355 # Look if the user specified --enable-languages="..."; if not, use
8356 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8357 # go away some day.
8358 # NB: embedded tabs in this IF block -- do not untabify
8359 if test -d ${srcdir}/gcc; then
8360 if test x"${enable_languages+set}" != xset; then
8361 if test x"${LANGUAGES+set}" = xset; then
8362 enable_languages="${LANGUAGES}"
8363 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8364 else
8365 enable_languages=default
8367 else
8368 if test x"${enable_languages}" = x ||
8369 test x"${enable_languages}" = xyes;
8370 then
8371 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8372 exit 1
8375 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8377 # 'f95' is the old name for the 'fortran' language. We issue a warning
8378 # and make the substitution.
8379 case ,${enable_languages}, in
8380 *,f95,*)
8381 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8382 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8384 esac
8386 # If bootstrapping, C++ must be enabled.
8387 case ",$enable_languages,:$enable_bootstrap" in
8388 *,c++,*:*) ;;
8389 *:yes)
8390 if test -f ${srcdir}/gcc/c/c-lang.cc; then
8391 enable_languages="${enable_languages},c++"
8392 else
8393 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8396 esac
8398 # First scan to see if an enabled language requires some other language.
8399 # We assume that a given config-lang.in will list all the language
8400 # front ends it requires, even if some are required indirectly.
8401 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8402 case ${lang_frag} in
8403 ..) ;;
8404 # The odd quoting in the next line works around
8405 # an apparent bug in bash 1.12 on linux.
8406 ${srcdir}/gcc/[*]/config-lang.in) ;;
8408 # From the config-lang.in, get $language, $lang_requires, and
8409 # $lang_requires_boot_languages.
8410 language=
8411 lang_requires=
8412 lang_requires_boot_languages=
8413 # set srcdir during sourcing lang_frag to the gcc dir.
8414 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8415 # polutes this shell
8416 saved_srcdir=${srcdir}
8417 srcdir=${srcdir}/gcc . ${lang_frag}
8418 srcdir=${saved_srcdir}
8419 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8420 case ,${enable_languages}, in
8421 *,$other,*) ;;
8422 *,default,*) ;;
8423 *,all,*) ;;
8424 *,$language,*)
8425 echo " \`$other' language required by \`$language'; enabling" 1>&2
8426 enable_languages="${enable_languages},${other}"
8428 esac
8429 done
8430 for other in ${lang_requires_boot_languages} ; do
8431 if test "$other" != "c"; then
8432 case ,${enable_stage1_languages}, in
8433 *,$other,*) ;;
8434 *,default,*) ;;
8435 *,all,*) ;;
8437 case ,${enable_languages}, in
8438 *,$language,*)
8439 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8440 enable_stage1_languages="$enable_stage1_languages,${other}"
8442 esac
8444 esac
8446 done
8448 esac
8449 done
8451 new_enable_languages=,c,
8453 # If LTO is enabled, add the LTO front end.
8454 if test "$enable_lto" = "yes" ; then
8455 case ,${enable_languages}, in
8456 *,lto,*) ;;
8457 *) enable_languages="${enable_languages},lto" ;;
8458 esac
8459 if test "${build_lto_plugin}" = "yes" ; then
8460 configdirs="$configdirs lto-plugin"
8464 # If we're building an offloading compiler, add the LTO front end.
8465 if test x"$enable_as_accelerator_for" != x ; then
8466 case ,${enable_languages}, in
8467 *,lto,*) ;;
8468 *) enable_languages="${enable_languages},lto" ;;
8469 esac
8472 missing_languages= # `echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8473 potential_languages=,c,
8475 enabled_target_libs=
8476 disabled_target_libs=
8478 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8479 case ${lang_frag} in
8480 ..) ;;
8481 # The odd quoting in the next line works around
8482 # an apparent bug in bash 1.12 on linux.
8483 ${srcdir}/gcc/[*]/config-lang.in) ;;
8485 # From the config-lang.in, get $language, $target_libs,
8486 # $lang_dirs, $boot_language, and $build_by_default
8487 language=
8488 target_libs=
8489 lang_dirs=
8490 subdir_requires=
8491 boot_language=no
8492 build_by_default=yes
8493 # set srcdir during sourcing. See above about save & restore
8494 saved_srcdir=${srcdir}
8495 srcdir=${srcdir}/gcc . ${lang_frag}
8496 srcdir=${saved_srcdir}
8497 if test x${language} = x; then
8498 echo "${lang_frag} doesn't set \$language." 1>&2
8499 exit 1
8502 if test "$language" = "c++"; then
8503 boot_language=yes
8506 add_this_lang=no
8507 # C is always enabled, so no need to add it again
8508 if test "$language" != "c"; then
8509 case ,${enable_languages}, in
8510 *,${language},*)
8511 # Language was explicitly selected; include it
8512 add_this_lang=yes
8514 *,all,*)
8515 # All languages are enabled
8516 add_this_lang=all
8518 *,default,*)
8519 # 'default' was selected, select it if it is a default language
8520 add_this_lang=${build_by_default}
8522 esac
8525 # Disable languages that need other directories if these aren't available.
8526 for i in $subdir_requires; do
8527 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8528 case ${add_this_lang} in
8529 yes)
8530 # Specifically requested language; tell them.
8531 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8533 all)
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8535 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8536 add_this_lang=unsupported
8539 # Silently disable.
8540 add_this_lang=unsupported
8542 esac
8543 done
8545 # Disable Ada if no preexisting GNAT is available.
8546 case ${add_this_lang}:${language}:${have_gnat} in
8547 yes:ada:no)
8548 # Specifically requested language; tell them.
8549 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8551 all:ada:no)
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8553 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8554 add_this_lang=unsupported
8556 *:ada:no)
8557 # Silently disable.
8558 add_this_lang=unsupported
8560 esac
8562 # Disable D if no preexisting GDC is available.
8563 case ${add_this_lang}:${language}:${have_gdc} in
8564 yes:d:no)
8565 # Specifically requested language; tell them.
8566 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8568 all:d:no)
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8570 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8571 add_this_lang=unsupported
8573 *:d:no)
8574 # Silently disable.
8575 add_this_lang=unsupported
8577 esac
8579 # Disable jit if -enable-host-shared not specified
8580 # but not if building for Mingw. All code in Windows
8581 # is position independent code (PIC).
8582 case $target in
8583 *mingw*) ;;
8585 case ${add_this_lang}:${language}:${host_shared} in
8586 yes:jit:no)
8587 # PR jit/64780: explicitly specify --enable-host-shared
8588 as_fn_error $? "
8589 Enabling language \"jit\" requires --enable-host-shared.
8591 --enable-host-shared typically slows the rest of the compiler down by
8592 a few %, so you must explicitly enable it.
8594 If you want to build both the jit and the regular compiler, it is often
8595 best to do this via two separate configure/builds, in separate
8596 directories, to avoid imposing the performance cost of
8597 --enable-host-shared on the regular compiler." "$LINENO" 5
8599 all:jit:no)
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8601 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8602 add_this_lang=unsupported
8604 *:jit:no)
8605 # Silently disable.
8606 add_this_lang=unsupported
8608 esac
8610 esac
8612 # Disable a language that is unsupported by the target.
8613 case "${add_this_lang}: $unsupported_languages " in
8614 no:*) ;;
8615 unsupported:*) ;;
8616 *:*" $language "*)
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8618 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8619 add_this_lang=unsupported
8621 esac
8623 case $add_this_lang in
8624 unsupported)
8625 # Remove language-dependent dirs.
8626 disabled_target_libs="$disabled_target_libs $target_libs"
8627 noconfigdirs="$noconfigdirs $lang_dirs"
8630 # Remove language-dependent dirs; still show language as supported.
8631 disabled_target_libs="$disabled_target_libs $target_libs"
8632 noconfigdirs="$noconfigdirs $lang_dirs"
8633 potential_languages="${potential_languages}${language},"
8635 all|yes)
8636 new_enable_languages="${new_enable_languages}${language},"
8637 potential_languages="${potential_languages}${language},"
8638 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8639 enabled_target_libs="$enabled_target_libs $target_libs"
8640 case "${boot_language}:,$enable_stage1_languages," in
8641 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8642 # Add to (comma-separated) list of stage 1 languages.
8643 case ",$stage1_languages," in
8644 *,$language,* | ,yes, | ,all,) ;;
8645 *) stage1_languages="${stage1_languages}${language}," ;;
8646 esac
8647 # We need to bootstrap any supporting libraries.
8648 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8650 esac
8652 esac
8654 esac
8655 done
8657 # Add target libraries which are only needed for disabled languages
8658 # to noconfigdirs.
8659 if test -n "$disabled_target_libs"; then
8660 for dir in $disabled_target_libs; do
8661 case " $enabled_target_libs " in
8662 *" ${dir} "*) ;;
8663 *) noconfigdirs="$noconfigdirs $dir" ;;
8664 esac
8665 done
8668 # Check whether --enable-stage1-languages was given.
8669 if test "${enable_stage1_languages+set}" = set; then :
8670 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8671 ,no,|,,)
8672 # Set it to something that will have no effect in the loop below
8673 enable_stage1_languages=c ;;
8674 ,yes,)
8675 enable_stage1_languages=`echo $new_enable_languages | \
8676 sed -e "s/^,//" -e "s/,$//" ` ;;
8677 *,all,*)
8678 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8679 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8680 esac
8682 # Add "good" languages from enable_stage1_languages to stage1_languages,
8683 # while "bad" languages go in missing_languages. Leave no duplicates.
8684 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8685 case $potential_languages in
8686 *,$i,*)
8687 case $stage1_languages in
8688 *,$i,*) ;;
8689 *) stage1_languages="$stage1_languages$i," ;;
8690 esac ;;
8692 case $missing_languages in
8693 *,$i,*) ;;
8694 *) missing_languages="$missing_languages$i," ;;
8695 esac ;;
8696 esac
8697 done
8701 # Remove leading/trailing commas that were added for simplicity
8702 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8703 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8704 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8705 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8707 if test "x$missing_languages" != x; then
8708 as_fn_error $? "
8709 The following requested languages could not be built: ${missing_languages}
8710 Supported languages are: ${potential_languages}" "$LINENO" 5
8712 if test "x$new_enable_languages" != "x$enable_languages"; then
8713 echo The following languages will be built: ${new_enable_languages}
8714 enable_languages="$new_enable_languages"
8718 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8721 # Handle --disable-<component> generically.
8722 for dir in $configdirs $build_configdirs $target_configdirs ; do
8723 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8724 varname=`echo $dirname | sed -e s/+/_/g`
8725 if eval test x\${enable_${varname}} "=" xno ; then
8726 noconfigdirs="$noconfigdirs $dir"
8728 done
8730 # Check for Boehm's garbage collector
8731 # sdcpp: omitted
8733 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8734 # sdcpp: omitted
8736 # If gcc/ is not in the source tree then we'll not be building a
8737 # target compiler, assume in that case we don't want to build any
8738 # target libraries or tools.
8740 # This was added primarily for the benefit for binutils-gdb who reuse
8741 # this configure script, but don't always have target tools available.
8742 if test ! -d ${srcdir}/gcc; then
8743 skipdirs="${skipdirs} ${target_configdirs}"
8746 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8747 # $build_configdirs and $target_configdirs.
8748 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8749 # sdcpp: omitted
8751 # Quietly strip out all directories which aren't configurable in this tree.
8752 # This relies on all configurable subdirectories being autoconfiscated, which
8753 # is now the case.
8754 # sdcpp: omitted
8756 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8757 # so we have to add it after the preceding checks.
8758 # sdcpp: omitted
8760 # Sometimes we have special requirements for the host libiberty.
8761 # sdcpp: omitted
8763 # Produce a warning message for the subdirs we can't configure.
8764 # This isn't especially interesting in the Cygnus tree, but in the individual
8765 # FSF releases, it's important to let people know when their machine isn't
8766 # supported by the one or two programs in a package.
8767 # sdcpp: omitted
8769 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8770 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8771 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8772 # We want to ensure that TARGET libraries (which we know are built with
8773 # gcc) are built with "-O2 -g", so include those options when setting
8774 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8775 # sdcpp: omitted
8777 # Handle --with-headers=XXX. If the value is not "yes", the contents of
8778 # the named directory are copied to $(tooldir)/sys-include.
8779 # sdcpp: omitted
8781 # Handle --with-libs=XXX. If the value is not "yes", the contents of
8782 # the name directories are copied to $(tooldir)/lib. Multiple directories
8783 # are permitted.
8784 # sdcpp: omitted
8786 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
8788 # This is done by determining whether or not the appropriate directory
8789 # is available, and by checking whether or not specific configurations
8790 # have requested that this magic not happen.
8792 # The command line options always override the explicit settings in
8793 # configure.ac, and the settings in configure.ac override this magic.
8795 # If the default for a toolchain is to use GNU as and ld, and you don't
8796 # want to do that, then you should use the --without-gnu-as and
8797 # --without-gnu-ld options for the configure script. Similarly, if
8798 # the default is to use the included zlib and you don't want to do that,
8799 # you should use the --with-system-zlib option for the configure script.
8801 if test x${use_gnu_as} = x &&
8802 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
8803 with_gnu_as=yes
8804 extra_host_args="$extra_host_args --with-gnu-as"
8807 if test x${use_gnu_ld} = x &&
8808 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
8809 with_gnu_ld=yes
8810 extra_host_args="$extra_host_args --with-gnu-ld"
8813 if test x${use_included_zlib} = x &&
8814 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
8816 else
8817 with_system_zlib=yes
8818 extra_host_args="$extra_host_args --with-system-zlib"
8821 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
8822 # can detect this case.
8824 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
8825 with_newlib=yes
8826 extra_host_args="$extra_host_args --with-newlib"
8829 # Handle ${copy_dirs}
8830 set fnord ${copy_dirs}
8831 shift
8832 while test $# != 0 ; do
8833 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
8835 else
8836 echo Copying $1 to $2
8838 # Use the install script to create the directory and all required
8839 # parent directories.
8840 if test -d $2 ; then
8842 else
8843 echo >config.temp
8844 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
8847 # Copy the directory, assuming we have tar.
8848 # FIXME: Should we use B in the second tar? Not all systems support it.
8849 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
8851 # It is the responsibility of the user to correctly adjust all
8852 # symlinks. If somebody can figure out how to handle them correctly
8853 # here, feel free to add the code.
8855 echo $1 > $2/COPIED
8857 shift; shift
8858 done
8860 # Determine a target-dependent exec_prefix that the installed
8861 # gcc will search in. Keep this list sorted by triplet, with
8862 # the *-*-osname triplets last.
8863 md_exec_prefix=
8864 case "${target}" in
8865 i[34567]86-pc-msdosdjgpp*)
8866 md_exec_prefix=/dev/env/DJDIR/bin
8868 *-*-hpux* | \
8869 *-*-nto-qnx* | \
8870 *-*-solaris2*)
8871 md_exec_prefix=/usr/ccs/bin
8873 esac
8875 ################################################################################
8877 # mkdir takes a single argument on some systems.
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
8879 $as_echo_n "checking if mkdir takes one argument... " >&6; }
8880 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8886 #include <sys/types.h>
8887 #ifdef HAVE_SYS_STAT_H
8888 # include <sys/stat.h>
8889 #endif
8890 #ifdef HAVE_UNISTD_H
8891 # include <unistd.h>
8892 #endif
8893 #ifdef HAVE_DIRECT_H
8894 # include <direct.h>
8895 #endif
8897 main ()
8899 mkdir ("foo", 0);
8901 return 0;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 gcc_cv_mkdir_takes_one_arg=no
8906 else
8907 gcc_cv_mkdir_takes_one_arg=yes
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
8912 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
8913 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8915 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
8920 # File extensions
8921 manext='.1'
8922 objext='.o'
8926 build_xm_file=
8927 build_xm_defines=
8928 build_install_headers_dir=install-headers-tar
8929 build_exeext=
8930 host_xm_file=
8931 host_xm_defines=
8932 host_xmake_file=
8933 host_truncate_target=
8934 host_exeext=
8936 # Decode the host machine, then the target machine.
8937 # For the host machine, we save the xm_file variable as host_xm_file;
8938 # then we decode the target machine and forget everything else
8939 # that came from the host machine.
8940 #for machine in $build $host $target; do
8941 # . ${srcdir}/config.gcc
8942 #done
8944 extra_objs="${host_extra_objs} ${extra_objs}"
8946 # Default the target-machine variables that were not explicitly set.
8947 if test x"$tm_file" = x
8948 then tm_file=$cpu_type/$cpu_type.h; fi
8950 if test x"$extra_headers" = x
8951 then extra_headers=; fi
8953 if test x$md_file = x
8954 then md_file=$cpu_type/$cpu_type.md; fi
8956 if test x$out_file = x
8957 then out_file=$cpu_type/$cpu_type.c; fi
8959 if test x"$tmake_file" = x
8960 then tmake_file=$cpu_type/t-$cpu_type
8963 if test x"$dwarf2" = xyes
8964 then tm_file="$tm_file tm-dwarf2.h"
8967 # Handle cpp installation.
8968 if test x$enable_cpp != xno
8969 then
8970 tmake_file="$tmake_file t-install-cpp"
8973 # auto-host.h is the file containing items generated by autoconf and is
8974 # the first file included by config.h.
8975 # If host=build, it is correct to have hconfig include auto-host.h
8976 # as well. If host!=build, we are in error and need to do more
8977 # work to find out the build config parameters.
8978 if test x$host = x$build
8979 then
8980 build_auto=auto-host.h
8981 else
8982 # We create a subdir, then run autoconf in the subdir.
8983 # To prevent recursion we set host and build for the new
8984 # invocation of configure to the build for this invocation
8985 # of configure.
8986 tempdir=build.$$
8987 rm -rf $tempdir
8988 mkdir $tempdir
8989 cd $tempdir
8990 case ${srcdir} in
8991 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8992 *) realsrcdir=../${srcdir};;
8993 esac
8994 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
8995 --target=$target --host=$build --build=$build
8997 # We just finished tests for the build machine, so rename
8998 # the file auto-build.h in the gcc directory.
8999 mv auto-host.h ../auto-build.h
9000 cd ..
9001 rm -rf $tempdir
9002 build_auto=auto-build.h
9005 tm_file="${tm_file} defaults.h"
9006 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
9007 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
9008 xm_file="ansidecl.h ${xm_file} ${tm_file}"
9010 # Truncate the target if necessary
9011 if test x$host_truncate_target != x; then
9012 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9015 # Get the version trigger filename from the toplevel
9016 if test "${with_gcc_version_trigger+set}" = set; then
9017 gcc_version_trigger=$with_gcc_version_trigger
9018 else
9019 gcc_version_trigger=${srcdir}/version.c
9022 ## changequote(,)dnl
9023 ## gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9024 ## gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9026 ## changequote([,])dnl
9028 ## # Internationalization
9029 ## PACKAGE=sdcc
9030 ## VERSION="$gcc_version"
9031 ## AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
9032 ## [Define to the name of the distribution.])
9033 ## AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
9034 ## [Define to the version of the distribution.])
9035 ## AC_SUBST(PACKAGE)
9036 ## AC_SUBST(VERSION)
9038 extra_arflags_for_target=
9039 extra_nmflags_for_target=
9040 extra_ranlibflags_for_target=
9041 target_makefile_frag=/dev/null
9042 case "${target}" in
9043 spu-*-*)
9044 target_makefile_frag="config/mt-spu"
9046 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9047 target_makefile_frag="config/mt-sde"
9049 mipsisa*-*-elfoabi*)
9050 target_makefile_frag="config/mt-mips-elfoabi"
9052 mips*-*-*linux* | mips*-*-gnu*)
9053 target_makefile_frag="config/mt-mips-gnu"
9055 nios2-*-elf*)
9056 target_makefile_frag="config/mt-nios2-elf"
9058 *-*-linux-android*)
9059 target_makefile_frag="config/mt-android"
9061 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9062 target_makefile_frag="config/mt-gnu"
9064 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9065 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9066 # commands to handle both 32-bit and 64-bit objects. These flags are
9067 # harmless if we're using GNU nm or ar.
9068 extra_arflags_for_target=" -X32_64"
9069 extra_nmflags_for_target=" -B -X32_64"
9071 esac
9073 alphaieee_frag=/dev/null
9074 case $target in
9075 alpha*-*-*)
9076 # This just makes sure to use the -mieee option to build target libs.
9077 # This should probably be set individually by each library.
9078 alphaieee_frag="config/mt-alphaieee"
9080 esac
9082 # If --enable-target-optspace always use -Os instead of -O2 to build
9083 # the target libraries, similarly if it is not specified, use -Os
9084 # on selected platforms.
9085 ospace_frag=/dev/null
9086 case "${enable_target_optspace}:${target}" in
9087 yes:*)
9088 ospace_frag="config/mt-ospace"
9090 :d30v-*)
9091 ospace_frag="config/mt-d30v"
9093 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9094 ospace_frag="config/mt-ospace"
9096 no:* | :*)
9099 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9101 esac
9103 # Some systems (e.g., one of the i386-aix systems the gas testers are
9104 # using) don't handle "\$" correctly, so don't use it here.
9105 tooldir='${exec_prefix}'/${target_noncanonical}
9106 build_tooldir=${tooldir}
9108 # Create a .gdbinit file which runs the one in srcdir
9109 # and tells GDB to look there for source files.
9111 if test -r ${srcdir}/.gdbinit ; then
9112 case ${srcdir} in
9113 .) ;;
9114 *) cat > ./.gdbinit <<EOF
9115 # ${NO_EDIT}
9116 dir ${srcdir}
9117 dir .
9118 source ${srcdir}/.gdbinit
9121 esac
9124 # Make sure that the compiler is able to generate an executable. If it
9125 # can't, we are probably in trouble. We don't care whether we can run the
9126 # executable--we might be using a cross compiler--we only care whether it
9127 # can be created. At this point the main configure script has set CC.
9128 we_are_ok=no
9129 echo "int main () { return 0; }" > conftest.c
9130 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9131 if test $? = 0 ; then
9132 if test -s conftest || test -s conftest.exe ; then
9133 we_are_ok=yes
9136 case $we_are_ok in
9138 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9139 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9140 rm -f conftest*
9141 exit 1
9143 esac
9144 rm -f conftest*
9146 # Decide which environment variable is used to find dynamic libraries.
9147 case "${host}" in
9148 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9149 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9150 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9151 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9152 esac
9154 # On systems where the dynamic library environment variable is PATH,
9155 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9156 # built executables to PATH.
9157 if test "$RPATH_ENVVAR" = PATH; then
9158 GCC_SHLIB_SUBDIR=/shlib
9159 else
9160 GCC_SHLIB_SUBDIR=
9163 # Adjust the toplevel makefile according to whether bootstrap was selected.
9164 case $enable_bootstrap in
9165 yes)
9166 bootstrap_suffix=bootstrap
9167 BUILD_CONFIG=bootstrap-debug
9170 bootstrap_suffix=no-bootstrap
9171 BUILD_CONFIG=
9173 esac
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9176 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9179 # Check whether --with-build-config was given.
9180 if test "${with_build_config+set}" = set; then :
9181 withval=$with_build_config; case $with_build_config in
9182 yes) with_build_config= ;;
9183 no) with_build_config= BUILD_CONFIG= ;;
9184 esac
9188 if test "x${with_build_config}" != x; then
9189 BUILD_CONFIG=$with_build_config
9190 else
9191 case $BUILD_CONFIG in
9192 bootstrap-debug)
9193 if echo "int f (void) { return 0; }" > conftest.c &&
9194 ${CC} -c conftest.c &&
9195 mv conftest.o conftest.o.g0 &&
9196 ${CC} -c -g conftest.c &&
9197 mv conftest.o conftest.o.g &&
9198 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9200 else
9201 BUILD_CONFIG=
9203 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9205 esac
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9208 $as_echo "$BUILD_CONFIG" >&6; }
9211 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9213 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9214 # Check whether --enable-vtable-verify was given.
9215 if test "${enable_vtable_verify+set}" = set; then :
9216 enableval=$enable_vtable_verify; case "$enableval" in
9217 yes) enable_vtable_verify=yes ;;
9218 no) enable_vtable_verify=no ;;
9219 *) enable_vtable_verify=no;;
9220 esac
9221 else
9222 enable_vtable_verify=no
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9226 $as_echo "$enable_vtable_verify" >&6; }
9228 # Record target_configdirs and the configure arguments for target and
9229 # build configuration in Makefile.
9230 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9231 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9232 bootstrap_fixincludes=no
9234 # If we are building libgomp, bootstrap it.
9235 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9236 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9239 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9240 # or bootstrap-ubsan, bootstrap it.
9241 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9242 case "$BUILD_CONFIG" in
9243 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9244 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9245 bootstrap_fixincludes=yes
9247 esac
9250 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9251 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9252 test "$enable_vtable_verify" != no; then
9253 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9256 # If we are building libatomic and the list of enabled languages includes the
9257 # D frontend, bootstrap it.
9258 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9259 case ,${enable_languages}, in
9260 *,d,*)
9261 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9263 esac
9266 # Determine whether gdb needs tk/tcl or not.
9267 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9268 # and in that case we want gdb to be built without tk. Ugh!
9269 # In fact I believe gdb is the *only* package directly dependent on tk,
9270 # so we should be able to put the 'maybe's in unconditionally and
9271 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9272 # 100% sure that that's safe though.
9274 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9275 case "$enable_gdbtk" in
9277 GDB_TK="" ;;
9278 yes)
9279 GDB_TK="${gdb_tk}" ;;
9281 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9282 # distro. Eventually someone will fix this and move Insight, nee
9283 # gdbtk to a separate directory.
9284 if test -d ${srcdir}/gdb/gdbtk ; then
9285 GDB_TK="${gdb_tk}"
9286 else
9287 GDB_TK=""
9290 esac
9291 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9292 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9294 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9295 # else does, only include them if one of these is built. The Makefile
9296 # provides the ordering, so it's enough here to add to the list.
9297 case " ${configdirs} " in
9298 *\ gdb\ *)
9299 configdirs="${configdirs} gnulib gdbsupport"
9301 *\ gdbserver\ *)
9302 configdirs="${configdirs} gnulib gdbsupport"
9304 *\ sim\ *)
9305 configdirs="${configdirs} gnulib"
9307 esac
9309 # Strip out unwanted targets.
9311 # While at that, we remove Makefiles if we were started for recursive
9312 # configuration, so that the top-level Makefile reconfigures them,
9313 # like we used to do when configure itself was recursive.
9315 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9316 # but now we're fixing up the Makefile ourselves with the additional
9317 # commands passed to AC_CONFIG_FILES. Use separate variables
9318 # extrasub-{build,host,target} not because there is any reason to split
9319 # the substitutions up that way, but only to remain below the limit of
9320 # 99 commands in a script, for HP-UX sed.
9322 # Do not nest @if/@endif or @unless/@endunless pairs, because
9323 # configure will not warn you at all.
9325 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9326 yes:yes:*\ gold\ *:*,c++,*) ;;
9327 yes:yes:*\ gold\ *:*)
9328 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9330 esac
9332 extrasub_build=
9333 for module in ${build_configdirs} ; do
9334 if test -z "${no_recursion}" \
9335 && test -f ${build_subdir}/${module}/Makefile; then
9336 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9337 rm -f ${build_subdir}/${module}/Makefile
9339 extrasub_build="$extrasub_build
9340 /^@if build-$module\$/d
9341 /^@endif build-$module\$/d
9342 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9343 /^@if build-$module-$bootstrap_suffix\$/d
9344 /^@endif build-$module-$bootstrap_suffix\$/d
9345 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9346 done
9347 extrasub_host=
9348 for module in ${configdirs} ; do
9349 if test -z "${no_recursion}"; then
9350 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9351 if test -f ${file}; then
9352 echo 1>&2 "*** removing ${file} to force reconfigure"
9353 rm -f ${file}
9355 done
9357 case ${module},${bootstrap_fixincludes} in
9358 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9359 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9360 esac
9361 extrasub_host="$extrasub_host
9362 /^@if $module\$/d
9363 /^@endif $module\$/d
9364 /^@unless $module\$/,/^@endunless $module\$/d
9365 /^@if $module-$host_bootstrap_suffix\$/d
9366 /^@endif $module-$host_bootstrap_suffix\$/d
9367 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9368 done
9369 extrasub_target=
9370 for module in ${target_configdirs} ; do
9371 if test -z "${no_recursion}" \
9372 && test -f ${target_subdir}/${module}/Makefile; then
9373 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9374 rm -f ${target_subdir}/${module}/Makefile
9377 # We only bootstrap target libraries listed in bootstrap_target_libs.
9378 case $bootstrap_target_libs in
9379 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9380 *) target_bootstrap_suffix=no-bootstrap ;;
9381 esac
9383 extrasub_target="$extrasub_target
9384 /^@if target-$module\$/d
9385 /^@endif target-$module\$/d
9386 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9387 /^@if target-$module-$target_bootstrap_suffix\$/d
9388 /^@endif target-$module-$target_bootstrap_suffix\$/d
9389 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9390 done
9392 # Do the final fixup along with target modules.
9393 extrasub_target="$extrasub_target
9394 /^@if /,/^@endif /d
9395 /^@unless /d
9396 /^@endunless /d"
9398 if test "$enable_pgo_build" != "no"; then
9399 extrasub_build="$extrasub_build
9400 /^@if pgo-build\$/d
9401 /^@endif pgo-build\$/d"
9404 # Create the serialization dependencies. This uses a temporary file.
9406 # Check whether --enable-serial-configure was given.
9407 if test "${enable_serial_configure+set}" = set; then :
9408 enableval=$enable_serial_configure;
9412 case ${enable_serial_configure} in
9413 yes)
9414 enable_serial_build_configure=yes
9415 enable_serial_host_configure=yes
9416 enable_serial_target_configure=yes
9418 esac
9420 # These force 'configure's to be done one at a time, to avoid problems
9421 # with contention over a shared config.cache.
9422 rm -f serdep.tmp
9423 echo '# serdep.tmp' > serdep.tmp
9424 olditem=
9425 test "x${enable_serial_build_configure}" = xyes &&
9426 for item in ${build_configdirs} ; do
9427 case ${olditem} in
9428 "") ;;
9429 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9430 esac
9431 olditem=${item}
9432 done
9433 olditem=
9434 test "x${enable_serial_host_configure}" = xyes &&
9435 for item in ${configdirs} ; do
9436 case ${olditem} in
9437 "") ;;
9438 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9439 esac
9440 olditem=${item}
9441 done
9442 olditem=
9443 test "x${enable_serial_target_configure}" = xyes &&
9444 for item in ${target_configdirs} ; do
9445 case ${olditem} in
9446 "") ;;
9447 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9448 esac
9449 olditem=${item}
9450 done
9451 serialization_dependencies=serdep.tmp
9454 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9455 # target, nonopt, and variable assignments. These are the ones we
9456 # might not want to pass down to subconfigures. The exception being
9457 # --cache-file=/dev/null, which is used to turn off the use of cache
9458 # files altogether, and which should be passed on to subconfigures.
9459 # Also strip program-prefix, program-suffix, and program-transform-name,
9460 # so that we can pass down a consistent program-transform-name.
9461 baseargs=
9462 tbaseargs=
9463 keep_next=no
9464 skip_next=no
9465 eval "set -- $ac_configure_args"
9466 for ac_arg
9468 if test X"$skip_next" = X"yes"; then
9469 skip_next=no
9470 continue
9472 if test X"$keep_next" = X"yes"; then
9473 case $ac_arg in
9474 *\'*)
9475 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9476 esac
9477 baseargs="$baseargs '$ac_arg'"
9478 tbaseargs="$tbaseargs '$ac_arg'"
9479 keep_next=no
9480 continue
9483 # Handle separated arguments. Based on the logic generated by
9484 # autoconf 2.59.
9485 case $ac_arg in
9486 *=* | --config-cache | -C | -disable-* | --disable-* \
9487 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9488 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9489 | -with-* | --with-* | -without-* | --without-* | --x)
9490 separate_arg=no
9493 separate_arg=yes
9496 separate_arg=no
9498 esac
9500 skip_targ=no
9501 case $ac_arg in
9503 --with-* | --without-*)
9504 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9506 case $libopt in
9507 *[-_]include)
9508 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9510 *[-_]lib)
9511 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9514 lib=$libopt
9516 esac
9519 case $lib in
9520 mpc | mpfr | gmp | isl)
9521 # If we're processing --with-$lib, --with-$lib-include or
9522 # --with-$lib-lib, for one of the libs above, and target is
9523 # different from host, don't pass the current argument to any
9524 # target library's configure.
9525 if test x$is_cross_compiler = xyes; then
9526 skip_targ=yes
9529 esac
9531 esac
9533 case "$ac_arg" in
9534 --cache-file=/dev/null | \
9535 -cache-file=/dev/null )
9536 # Handled here to avoid the test to skip args below.
9537 baseargs="$baseargs '$ac_arg'"
9538 tbaseargs="$tbaseargs '$ac_arg'"
9539 # Assert: $separate_arg should always be no.
9540 keep_next=$separate_arg
9542 --no*)
9543 continue
9545 --c* | \
9546 --sr* | \
9547 --ho* | \
9548 --bu* | \
9549 --t* | \
9550 --program-* | \
9551 -cache_file* | \
9552 -srcdir* | \
9553 -host* | \
9554 -build* | \
9555 -target* | \
9556 -program-prefix* | \
9557 -program-suffix* | \
9558 -program-transform-name* )
9559 skip_next=$separate_arg
9560 continue
9563 # An option. Add it.
9564 case $ac_arg in
9565 *\'*)
9566 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9567 esac
9568 baseargs="$baseargs '$ac_arg'"
9569 if test X"$skip_targ" = Xno; then
9570 tbaseargs="$tbaseargs '$ac_arg'"
9572 keep_next=$separate_arg
9575 # Either a variable assignment, or a nonopt (triplet). Don't
9576 # pass it down; let the Makefile handle this.
9577 continue
9579 esac
9580 done
9581 # Remove the initial space we just introduced and, as these will be
9582 # expanded by make, quote '$'.
9583 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9585 # Add in --program-transform-name, after --program-prefix and
9586 # --program-suffix have been applied to it. Autoconf has already
9587 # doubled dollar signs and backslashes in program_transform_name; we want
9588 # the backslashes un-doubled, and then the entire thing wrapped in single
9589 # quotes, because this will be expanded first by make and then by the shell.
9590 # Also, because we want to override the logic in subdir configure scripts to
9591 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9592 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9593 ${program_transform_name}
9594 EOF_SED
9595 gcc_transform_name=`cat conftestsed.out`
9596 rm -f conftestsed.out
9597 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9598 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9599 if test "$silent" = yes; then
9600 baseargs="$baseargs --silent"
9601 tbaseargs="$tbaseargs --silent"
9603 baseargs="$baseargs --disable-option-checking"
9604 tbaseargs="$tbaseargs --disable-option-checking"
9606 # Record and document user additions to sub configure arguments.
9611 # For the build-side libraries, we just need to pretend we're native,
9612 # and not use the same cache file. Multilibs are neither needed nor
9613 # desired. We can't even use the same cache file for all build-side
9614 # libraries, as they're compiled differently; some with C, some with
9615 # C++ or with different feature-enabling options.
9616 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9618 # For host modules, accept cache file option, or specification as blank.
9619 case "${cache_file}" in
9620 "") # empty
9621 cache_file_option="" ;;
9622 /* | [A-Za-z]:[\\/]* ) # absolute path
9623 cache_file_option="--cache-file=${cache_file}" ;;
9624 *) # relative path
9625 cache_file_option="--cache-file=../${cache_file}" ;;
9626 esac
9628 # Host dirs don't like to share a cache file either, horribly enough.
9629 # This seems to be due to autoconf 2.5x stupidity.
9630 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9632 target_configargs="$target_configargs ${tbaseargs}"
9634 # Passing a --with-cross-host argument lets the target libraries know
9635 # whether they are being built with a cross-compiler or being built
9636 # native. However, it would be better to use other mechanisms to make the
9637 # sorts of decisions they want to make on this basis. Please consider
9638 # this option to be deprecated. FIXME.
9639 if test x${is_cross_compiler} = xyes ; then
9640 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9643 # Special user-friendly check for native x86_64-linux build, if
9644 # multilib is not explicitly enabled.
9645 # omitted
9647 # Default to --enable-multilib.
9648 if test x${enable_multilib} = x ; then
9649 target_configargs="--disable-multilib ${target_configargs}"
9652 # Pass --with-newlib if appropriate. Note that target_configdirs has
9653 # changed from the earlier setting of with_newlib.
9654 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9655 target_configargs="--with-newlib ${target_configargs}"
9658 # Different target subdirs use different values of certain variables
9659 # (notably CXX). Worse, multilibs use *lots* of different values.
9660 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9661 # it doesn't automatically accept command-line overrides of them.
9662 # This means it's not safe for target subdirs to share a cache file,
9663 # which is disgusting, but there you have it. Hopefully this can be
9664 # fixed in future. It's still worthwhile to use a cache file for each
9665 # directory. I think.
9667 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9668 # We need to pass --target, as newer autoconf's requires consistency
9669 # for target_alias and gcc doesn't manage it consistently.
9670 target_configargs="--cache-file=./config.cache ${target_configargs}"
9672 FLAGS_FOR_TARGET=
9673 case " $target_configdirs " in
9674 *" newlib "*)
9675 case " $target_configargs " in
9676 *" --with-newlib "*)
9677 case "$target" in
9678 *-cygwin*)
9679 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9681 esac
9683 # If we're not building GCC, don't discard standard headers.
9684 if test -d ${srcdir}/gcc; then
9685 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9687 if test "${build}" != "${host}"; then
9688 # On Canadian crosses, CC_FOR_TARGET will have already been set
9689 # by `configure', so we won't have an opportunity to add -Bgcc/
9690 # to it. This is right: we don't want to search that directory
9691 # for binaries, but we want the header files in there, so add
9692 # them explicitly.
9693 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9695 # Someone might think of using the pre-installed headers on
9696 # Canadian crosses, in case the installed compiler is not fully
9697 # compatible with the compiler being built. In this case, it
9698 # would be better to flag an error than risking having
9699 # incompatible object files being constructed. We can't
9700 # guarantee that an error will be flagged, but let's hope the
9701 # compiler will do it, when presented with incompatible header
9702 # files.
9706 case "${target}-${is_cross_compiler}" in
9707 i[3456789]86-*-linux*-no)
9708 # Here host == target, so we don't need to build gcc,
9709 # so we don't want to discard standard headers.
9710 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9713 # If we're building newlib, use its generic headers last, but search
9714 # for any libc-related directories first (so make it the last -B
9715 # switch).
9716 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9718 # If we're building libgloss, find the startup file, simulator library
9719 # and linker script.
9720 case " $target_configdirs " in
9721 *" libgloss "*)
9722 # Look for startup file, simulator library and maybe linker script.
9723 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9724 # Look for libnosys.a in case the target needs it.
9725 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9726 # Most targets have the linker script in the source directory.
9727 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9729 esac
9731 esac
9733 esac
9735 esac
9737 case "$target" in
9738 x86_64-*mingw* | *-w64-mingw*)
9739 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9740 # however, use a symlink named 'mingw' in ${prefix} .
9741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9743 *-mingw*)
9744 # MinGW can't be handled as Cygwin above since it does not use newlib.
9745 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'
9747 esac
9749 # Allow the user to override the flags for
9750 # our build compiler if desired.
9751 if test x"${build}" = x"${host}" ; then
9752 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9753 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
9754 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9755 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9758 # On Canadian crosses, we'll be searching the right directories for
9759 # the previously-installed cross compiler, so don't bother to add
9760 # flags for directories within the install tree of the compiler
9761 # being built; programs in there won't even run.
9762 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9763 # Search for pre-installed headers if nothing else fits.
9764 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9767 if test "x${use_gnu_ld}" = x &&
9768 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9769 # Arrange for us to find uninstalled linker scripts.
9770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9773 # Search for other target-specific linker scripts and such.
9774 case "${target}" in
9775 mep*)
9776 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9778 esac
9780 # Makefile fragments.
9781 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9783 eval fragval=\$$frag
9784 if test $fragval != /dev/null; then
9785 eval $frag=${srcdir}/$fragval
9787 done
9793 # Miscellanea: directories, flags, etc.
9802 # Build module lists & subconfigure args.
9806 # Host module lists & subconfigure args.
9811 # Target module lists & subconfigure args.
9815 # Build tools.
9836 # sdcpp (?) Substitute configuration variables
9873 # why? (not in gcc/configure.ac)
9879 # Generate default definitions for YACC, M4, LEX and other programs that run
9880 # on the build machine. These are used if the Makefile can't locate these
9881 # programs in objdir.
9882 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9884 for ac_prog in 'bison -y' byacc yacc
9886 # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy $ac_prog; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_prog_YACC+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test -n "$YACC"; then
9894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903 ac_cv_prog_YACC="$ac_prog"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9907 done
9908 done
9909 IFS=$as_save_IFS
9913 YACC=$ac_cv_prog_YACC
9914 if test -n "$YACC"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9916 $as_echo "$YACC" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9923 test -n "$YACC" && break
9924 done
9925 test -n "$YACC" || YACC="$MISSING bison -y"
9927 # case " $build_configdirs " in
9928 # *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9929 # esac
9931 for ac_prog in bison
9933 # Extract the first word of "$ac_prog", so it can be a program name with args.
9934 set dummy $ac_prog; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if ${ac_cv_prog_BISON+:} false; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test -n "$BISON"; then
9941 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9942 else
9943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 for as_dir in $PATH
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_BISON="$ac_prog"
9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9954 done
9955 done
9956 IFS=$as_save_IFS
9960 BISON=$ac_cv_prog_BISON
9961 if test -n "$BISON"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9963 $as_echo "$BISON" >&6; }
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9970 test -n "$BISON" && break
9971 done
9972 test -n "$BISON" || BISON="$MISSING bison"
9974 # case " $build_configdirs " in
9975 # *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9976 # esac
9978 for ac_prog in gm4 gnum4 m4
9980 # Extract the first word of "$ac_prog", so it can be a program name with args.
9981 set dummy $ac_prog; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_prog_M4+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 if test -n "$M4"; then
9988 ac_cv_prog_M4="$M4" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9997 ac_cv_prog_M4="$ac_prog"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10007 M4=$ac_cv_prog_M4
10008 if test -n "$M4"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10010 $as_echo "$M4" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10017 test -n "$M4" && break
10018 done
10019 test -n "$M4" || M4="$MISSING m4"
10021 # case " $build_configdirs " in
10022 # *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10023 # esac
10025 for ac_prog in flex lex
10027 # Extract the first word of "$ac_prog", so it can be a program name with args.
10028 set dummy $ac_prog; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_prog_LEX+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 if test -n "$LEX"; then
10035 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10036 else
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_prog_LEX="$ac_prog"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10048 done
10049 done
10050 IFS=$as_save_IFS
10054 LEX=$ac_cv_prog_LEX
10055 if test -n "$LEX"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10057 $as_echo "$LEX" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10064 test -n "$LEX" && break
10065 done
10066 test -n "$LEX" || LEX="$MISSING flex"
10068 # case " $build_configdirs " in
10069 # *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10070 # *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10071 # esac
10073 for ac_prog in flex
10075 # Extract the first word of "$ac_prog", so it can be a program name with args.
10076 set dummy $ac_prog; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_prog_FLEX+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 if test -n "$FLEX"; then
10083 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10084 else
10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086 for as_dir in $PATH
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
10090 for ac_exec_ext in '' $ac_executable_extensions; do
10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10092 ac_cv_prog_FLEX="$ac_prog"
10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10094 break 2
10096 done
10097 done
10098 IFS=$as_save_IFS
10102 FLEX=$ac_cv_prog_FLEX
10103 if test -n "$FLEX"; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10105 $as_echo "$FLEX" >&6; }
10106 else
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10108 $as_echo "no" >&6; }
10112 test -n "$FLEX" && break
10113 done
10114 test -n "$FLEX" || FLEX="$MISSING flex"
10116 # case " $build_configdirs " in
10117 # *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10118 # esac
10120 for ac_prog in makeinfo
10122 # Extract the first word of "$ac_prog", so it can be a program name with args.
10123 set dummy $ac_prog; ac_word=$2
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10125 $as_echo_n "checking for $ac_word... " >&6; }
10126 if ${ac_cv_prog_MAKEINFO+:} false; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 if test -n "$MAKEINFO"; then
10130 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10131 else
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10139 ac_cv_prog_MAKEINFO="$ac_prog"
10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10149 MAKEINFO=$ac_cv_prog_MAKEINFO
10150 if test -n "$MAKEINFO"; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10152 $as_echo "$MAKEINFO" >&6; }
10153 else
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155 $as_echo "no" >&6; }
10159 test -n "$MAKEINFO" && break
10160 done
10161 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10163 case " $build_configdirs " in
10164 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10167 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10168 # higher, else we use the "missing" dummy.
10169 if ${MAKEINFO} --version \
10170 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10172 else
10173 MAKEINFO="$MISSING makeinfo"
10177 esac
10179 # FIXME: expect and dejagnu may become build tools?
10181 for ac_prog in expect
10183 # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if ${ac_cv_prog_EXPECT+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test -n "$EXPECT"; then
10191 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_EXPECT="$ac_prog"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10204 done
10205 done
10206 IFS=$as_save_IFS
10210 EXPECT=$ac_cv_prog_EXPECT
10211 if test -n "$EXPECT"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10213 $as_echo "$EXPECT" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10220 test -n "$EXPECT" && break
10221 done
10222 test -n "$EXPECT" || EXPECT="expect"
10224 case " $configdirs " in
10225 *" expect "*)
10226 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10228 esac
10230 for ac_prog in runtest
10232 # Extract the first word of "$ac_prog", so it can be a program name with args.
10233 set dummy $ac_prog; ac_word=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if ${ac_cv_prog_RUNTEST+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 if test -n "$RUNTEST"; then
10240 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10241 else
10242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243 for as_dir in $PATH
10245 IFS=$as_save_IFS
10246 test -z "$as_dir" && as_dir=.
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10249 ac_cv_prog_RUNTEST="$ac_prog"
10250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10251 break 2
10253 done
10254 done
10255 IFS=$as_save_IFS
10259 RUNTEST=$ac_cv_prog_RUNTEST
10260 if test -n "$RUNTEST"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10262 $as_echo "$RUNTEST" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10269 test -n "$RUNTEST" && break
10270 done
10271 test -n "$RUNTEST" || RUNTEST="runtest"
10273 case " $configdirs " in
10274 *" dejagnu "*)
10275 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10277 esac
10280 # Host tools.
10281 ncn_tool_prefix=
10282 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10283 ncn_target_tool_prefix=
10284 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10288 if test -n "$AR"; then
10289 ac_cv_prog_AR=$AR
10290 elif test -n "$ac_cv_prog_AR"; then
10291 AR=$ac_cv_prog_AR
10294 if test -n "$ac_cv_prog_AR"; then
10295 for ncn_progname in ar; do
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if ${ac_cv_prog_AR+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 if test -n "$AR"; then
10304 ac_cv_prog_AR="$AR" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10313 ac_cv_prog_AR="${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10323 AR=$ac_cv_prog_AR
10324 if test -n "$AR"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10326 $as_echo "$AR" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10333 done
10336 for ncn_progname in ar; do
10337 if test -n "$ncn_tool_prefix"; then
10338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10339 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341 $as_echo_n "checking for $ac_word... " >&6; }
10342 if ${ac_cv_prog_AR+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 if test -n "$AR"; then
10346 ac_cv_prog_AR="$AR" # Let the user override the test.
10347 else
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10361 IFS=$as_save_IFS
10365 AR=$ac_cv_prog_AR
10366 if test -n "$AR"; then
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10368 $as_echo "$AR" >&6; }
10369 else
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371 $as_echo "no" >&6; }
10376 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10378 set dummy ${ncn_progname}; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_AR+:} false; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 if test -n "$AR"; then
10385 ac_cv_prog_AR="$AR" # Let the user override the test.
10386 else
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10390 IFS=$as_save_IFS
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_AR="${ncn_progname}"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 break 2
10398 done
10399 done
10400 IFS=$as_save_IFS
10404 AR=$ac_cv_prog_AR
10405 if test -n "$AR"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10407 $as_echo "$AR" >&6; }
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10415 test -n "$ac_cv_prog_AR" && break
10416 done
10418 if test -z "$ac_cv_prog_AR" ; then
10419 set dummy ar
10420 if test $build = $host ; then
10421 AR="$2"
10422 else
10423 AR="${ncn_tool_prefix}$2"
10429 if test -n "$AS"; then
10430 ac_cv_prog_AS=$AS
10431 elif test -n "$ac_cv_prog_AS"; then
10432 AS=$ac_cv_prog_AS
10435 if test -n "$ac_cv_prog_AS"; then
10436 for ncn_progname in as; do
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438 set dummy ${ncn_progname}; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_prog_AS+:} false; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 if test -n "$AS"; then
10445 ac_cv_prog_AS="$AS" # Let the user override the test.
10446 else
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_AS="${ncn_progname}"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10464 AS=$ac_cv_prog_AS
10465 if test -n "$AS"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10467 $as_echo "$AS" >&6; }
10468 else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10474 done
10477 for ncn_progname in as; do
10478 if test -n "$ncn_tool_prefix"; then
10479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10480 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if ${ac_cv_prog_AS+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 if test -n "$AS"; then
10487 ac_cv_prog_AS="$AS" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10506 AS=$ac_cv_prog_AS
10507 if test -n "$AS"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10509 $as_echo "$AS" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10517 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10519 set dummy ${ncn_progname}; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if ${ac_cv_prog_AS+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -n "$AS"; then
10526 ac_cv_prog_AS="$AS" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_AS="${ncn_progname}"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10545 AS=$ac_cv_prog_AS
10546 if test -n "$AS"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10548 $as_echo "$AS" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10556 test -n "$ac_cv_prog_AS" && break
10557 done
10559 if test -z "$ac_cv_prog_AS" ; then
10560 set dummy as
10561 if test $build = $host ; then
10562 AS="$2"
10563 else
10564 AS="${ncn_tool_prefix}$2"
10570 if test -n "$DLLTOOL"; then
10571 ac_cv_prog_DLLTOOL=$DLLTOOL
10572 elif test -n "$ac_cv_prog_DLLTOOL"; then
10573 DLLTOOL=$ac_cv_prog_DLLTOOL
10576 if test -n "$ac_cv_prog_DLLTOOL"; then
10577 for ncn_progname in dlltool; do
10578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10579 set dummy ${ncn_progname}; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_prog_DLLTOOL+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 if test -n "$DLLTOOL"; then
10586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10587 else
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_DLLTOOL="${ncn_progname}"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10599 done
10600 done
10601 IFS=$as_save_IFS
10605 DLLTOOL=$ac_cv_prog_DLLTOOL
10606 if test -n "$DLLTOOL"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10608 $as_echo "$DLLTOOL" >&6; }
10609 else
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10615 done
10618 for ncn_progname in dlltool; do
10619 if test -n "$ncn_tool_prefix"; then
10620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10621 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10623 $as_echo_n "checking for $ac_word... " >&6; }
10624 if ${ac_cv_prog_DLLTOOL+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 if test -n "$DLLTOOL"; then
10628 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10629 else
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10637 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10641 done
10642 done
10643 IFS=$as_save_IFS
10647 DLLTOOL=$ac_cv_prog_DLLTOOL
10648 if test -n "$DLLTOOL"; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10650 $as_echo "$DLLTOOL" >&6; }
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10658 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10660 set dummy ${ncn_progname}; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662 $as_echo_n "checking for $ac_word... " >&6; }
10663 if ${ac_cv_prog_DLLTOOL+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 if test -n "$DLLTOOL"; then
10667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10668 else
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_DLLTOOL="${ncn_progname}"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10680 done
10681 done
10682 IFS=$as_save_IFS
10686 DLLTOOL=$ac_cv_prog_DLLTOOL
10687 if test -n "$DLLTOOL"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10689 $as_echo "$DLLTOOL" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10697 test -n "$ac_cv_prog_DLLTOOL" && break
10698 done
10700 if test -z "$ac_cv_prog_DLLTOOL" ; then
10701 set dummy dlltool
10702 if test $build = $host ; then
10703 DLLTOOL="$2"
10704 else
10705 DLLTOOL="${ncn_tool_prefix}$2"
10711 if test -n "$DSYMUTIL"; then
10712 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10713 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10714 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10717 if test -n "$ac_cv_prog_DSYMUTIL"; then
10718 for ncn_progname in dsymutil; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720 set dummy ${ncn_progname}; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 if test -n "$DSYMUTIL"; then
10727 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10728 else
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10740 done
10741 done
10742 IFS=$as_save_IFS
10746 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10747 if test -n "$DSYMUTIL"; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10749 $as_echo "$DSYMUTIL" >&6; }
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10756 done
10759 for ncn_progname in dsymutil; do
10760 if test -n "$ncn_tool_prefix"; then
10761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$DSYMUTIL"; then
10769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10788 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10789 if test -n "$DSYMUTIL"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10791 $as_echo "$DSYMUTIL" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10799 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
10800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10801 set dummy ${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_DSYMUTIL+:} false; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 if test -n "$DSYMUTIL"; then
10808 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10828 if test -n "$DSYMUTIL"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10830 $as_echo "$DSYMUTIL" >&6; }
10831 else
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10838 test -n "$ac_cv_prog_DSYMUTIL" && break
10839 done
10841 if test -z "$ac_cv_prog_DSYMUTIL" ; then
10842 set dummy dsymutil
10843 if test $build = $host ; then
10844 DSYMUTIL="$2"
10845 else
10846 DSYMUTIL="${ncn_tool_prefix}$2"
10852 if test -n "$LD"; then
10853 ac_cv_prog_LD=$LD
10854 elif test -n "$ac_cv_prog_LD"; then
10855 LD=$ac_cv_prog_LD
10858 if test -n "$ac_cv_prog_LD"; then
10859 for ncn_progname in ld; do
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861 set dummy ${ncn_progname}; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if ${ac_cv_prog_LD+:} false; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 if test -n "$LD"; then
10868 ac_cv_prog_LD="$LD" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10877 ac_cv_prog_LD="${ncn_progname}"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10881 done
10882 done
10883 IFS=$as_save_IFS
10887 LD=$ac_cv_prog_LD
10888 if test -n "$LD"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10890 $as_echo "$LD" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10897 done
10900 for ncn_progname in ld; do
10901 if test -n "$ncn_tool_prefix"; then
10902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10903 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905 $as_echo_n "checking for $ac_word... " >&6; }
10906 if ${ac_cv_prog_LD+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 if test -n "$LD"; then
10910 ac_cv_prog_LD="$LD" # Let the user override the test.
10911 else
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10925 IFS=$as_save_IFS
10929 LD=$ac_cv_prog_LD
10930 if test -n "$LD"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10932 $as_echo "$LD" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10940 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10942 set dummy ${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_LD+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 if test -n "$LD"; then
10949 ac_cv_prog_LD="$LD" # 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_LD="${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 LD=$ac_cv_prog_LD
10969 if test -n "$LD"; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10971 $as_echo "$LD" >&6; }
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10979 test -n "$ac_cv_prog_LD" && break
10980 done
10982 if test -z "$ac_cv_prog_LD" ; then
10983 set dummy ld
10984 if test $build = $host ; then
10985 LD="$2"
10986 else
10987 LD="${ncn_tool_prefix}$2"
10993 if test -n "$LIPO"; then
10994 ac_cv_prog_LIPO=$LIPO
10995 elif test -n "$ac_cv_prog_LIPO"; then
10996 LIPO=$ac_cv_prog_LIPO
10999 if test -n "$ac_cv_prog_LIPO"; then
11000 for ncn_progname in lipo; do
11001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11002 set dummy ${ncn_progname}; ac_word=$2
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 $as_echo_n "checking for $ac_word... " >&6; }
11005 if ${ac_cv_prog_LIPO+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 if test -n "$LIPO"; then
11009 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11010 else
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $PATH
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018 ac_cv_prog_LIPO="${ncn_progname}"
11019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11022 done
11023 done
11024 IFS=$as_save_IFS
11028 LIPO=$ac_cv_prog_LIPO
11029 if test -n "$LIPO"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11031 $as_echo "$LIPO" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11038 done
11041 for ncn_progname in lipo; do
11042 if test -n "$ncn_tool_prefix"; then
11043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if ${ac_cv_prog_LIPO+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if test -n "$LIPO"; then
11051 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11064 done
11065 done
11066 IFS=$as_save_IFS
11070 LIPO=$ac_cv_prog_LIPO
11071 if test -n "$LIPO"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11073 $as_echo "$LIPO" >&6; }
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11081 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11083 set dummy ${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_LIPO+:} false; then :
11087 $as_echo_n "(cached) " >&6
11088 else
11089 if test -n "$LIPO"; then
11090 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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 LIPO=$ac_cv_prog_LIPO
11110 if test -n "$LIPO"; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11112 $as_echo "$LIPO" >&6; }
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11120 test -n "$ac_cv_prog_LIPO" && break
11121 done
11123 if test -z "$ac_cv_prog_LIPO" ; then
11124 set dummy lipo
11125 if test $build = $host ; then
11126 LIPO="$2"
11127 else
11128 LIPO="${ncn_tool_prefix}$2"
11134 if test -n "$NM"; then
11135 ac_cv_prog_NM=$NM
11136 elif test -n "$ac_cv_prog_NM"; then
11137 NM=$ac_cv_prog_NM
11140 if test -n "$ac_cv_prog_NM"; then
11141 for ncn_progname in nm; do
11142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11143 set dummy ${ncn_progname}; ac_word=$2
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145 $as_echo_n "checking for $ac_word... " >&6; }
11146 if ${ac_cv_prog_NM+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148 else
11149 if test -n "$NM"; then
11150 ac_cv_prog_NM="$NM" # Let the user override the test.
11151 else
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_prog_NM="${ncn_progname}"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11163 done
11164 done
11165 IFS=$as_save_IFS
11169 NM=$ac_cv_prog_NM
11170 if test -n "$NM"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11172 $as_echo "$NM" >&6; }
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175 $as_echo "no" >&6; }
11179 done
11182 for ncn_progname in nm; do
11183 if test -n "$ncn_tool_prefix"; then
11184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if ${ac_cv_prog_NM+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 if test -n "$NM"; then
11192 ac_cv_prog_NM="$NM" # Let the user override the test.
11193 else
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11205 done
11206 done
11207 IFS=$as_save_IFS
11211 NM=$ac_cv_prog_NM
11212 if test -n "$NM"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11214 $as_echo "$NM" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11222 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11224 set dummy ${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_NM+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$NM"; then
11231 ac_cv_prog_NM="$NM" # 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_NM="${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 NM=$ac_cv_prog_NM
11251 if test -n "$NM"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11253 $as_echo "$NM" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11261 test -n "$ac_cv_prog_NM" && break
11262 done
11264 if test -z "$ac_cv_prog_NM" ; then
11265 set dummy nm
11266 if test $build = $host ; then
11267 NM="$2"
11268 else
11269 NM="${ncn_tool_prefix}$2"
11275 if test -n "$RANLIB"; then
11276 ac_cv_prog_RANLIB=$RANLIB
11277 elif test -n "$ac_cv_prog_RANLIB"; then
11278 RANLIB=$ac_cv_prog_RANLIB
11281 if test -n "$ac_cv_prog_RANLIB"; then
11282 for ncn_progname in ranlib; do
11283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11284 set dummy ${ncn_progname}; ac_word=$2
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11286 $as_echo_n "checking for $ac_word... " >&6; }
11287 if ${ac_cv_prog_RANLIB+:} false; then :
11288 $as_echo_n "(cached) " >&6
11289 else
11290 if test -n "$RANLIB"; then
11291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11292 else
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_RANLIB="${ncn_progname}"
11301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11304 done
11305 done
11306 IFS=$as_save_IFS
11310 RANLIB=$ac_cv_prog_RANLIB
11311 if test -n "$RANLIB"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11313 $as_echo "$RANLIB" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11320 done
11323 for ncn_progname in ranlib; do
11324 if test -n "$ncn_tool_prefix"; then
11325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_RANLIB+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 if test -n "$RANLIB"; then
11333 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11334 else
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11346 done
11347 done
11348 IFS=$as_save_IFS
11352 RANLIB=$ac_cv_prog_RANLIB
11353 if test -n "$RANLIB"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11355 $as_echo "$RANLIB" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11363 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11365 set dummy ${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_RANLIB+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370 else
11371 if test -n "$RANLIB"; then
11372 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${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 RANLIB=$ac_cv_prog_RANLIB
11392 if test -n "$RANLIB"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11394 $as_echo "$RANLIB" >&6; }
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11402 test -n "$ac_cv_prog_RANLIB" && break
11403 done
11405 if test -z "$ac_cv_prog_RANLIB" ; then
11406 RANLIB="true"
11411 if test -n "$STRIP"; then
11412 ac_cv_prog_STRIP=$STRIP
11413 elif test -n "$ac_cv_prog_STRIP"; then
11414 STRIP=$ac_cv_prog_STRIP
11417 if test -n "$ac_cv_prog_STRIP"; then
11418 for ncn_progname in strip; do
11419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11420 set dummy ${ncn_progname}; ac_word=$2
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 $as_echo_n "checking for $ac_word... " >&6; }
11423 if ${ac_cv_prog_STRIP+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 if test -n "$STRIP"; then
11427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11428 else
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436 ac_cv_prog_STRIP="${ncn_progname}"
11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11438 break 2
11440 done
11441 done
11442 IFS=$as_save_IFS
11446 STRIP=$ac_cv_prog_STRIP
11447 if test -n "$STRIP"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11449 $as_echo "$STRIP" >&6; }
11450 else
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11456 done
11459 for ncn_progname in strip; do
11460 if test -n "$ncn_tool_prefix"; then
11461 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11462 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_prog_STRIP+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 if test -n "$STRIP"; then
11469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11470 else
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11478 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11482 done
11483 done
11484 IFS=$as_save_IFS
11488 STRIP=$ac_cv_prog_STRIP
11489 if test -n "$STRIP"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11491 $as_echo "$STRIP" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11499 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11501 set dummy ${ncn_progname}; ac_word=$2
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503 $as_echo_n "checking for $ac_word... " >&6; }
11504 if ${ac_cv_prog_STRIP+:} false; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 if test -n "$STRIP"; then
11508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11509 else
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $PATH
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11517 ac_cv_prog_STRIP="${ncn_progname}"
11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 break 2
11521 done
11522 done
11523 IFS=$as_save_IFS
11527 STRIP=$ac_cv_prog_STRIP
11528 if test -n "$STRIP"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11530 $as_echo "$STRIP" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533 $as_echo "no" >&6; }
11538 test -n "$ac_cv_prog_STRIP" && break
11539 done
11541 if test -z "$ac_cv_prog_STRIP" ; then
11542 STRIP="true"
11547 if test -n "$WINDRES"; then
11548 ac_cv_prog_WINDRES=$WINDRES
11549 elif test -n "$ac_cv_prog_WINDRES"; then
11550 WINDRES=$ac_cv_prog_WINDRES
11553 if test -n "$ac_cv_prog_WINDRES"; then
11554 for ncn_progname in windres; do
11555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11556 set dummy ${ncn_progname}; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_prog_WINDRES+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 if test -n "$WINDRES"; then
11563 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11564 else
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_prog_WINDRES="${ncn_progname}"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11576 done
11577 done
11578 IFS=$as_save_IFS
11582 WINDRES=$ac_cv_prog_WINDRES
11583 if test -n "$WINDRES"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11585 $as_echo "$WINDRES" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11592 done
11595 for ncn_progname in windres; do
11596 if test -n "$ncn_tool_prefix"; then
11597 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11598 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 $as_echo_n "checking for $ac_word... " >&6; }
11601 if ${ac_cv_prog_WINDRES+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 if test -n "$WINDRES"; then
11605 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11606 else
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11618 done
11619 done
11620 IFS=$as_save_IFS
11624 WINDRES=$ac_cv_prog_WINDRES
11625 if test -n "$WINDRES"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11627 $as_echo "$WINDRES" >&6; }
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630 $as_echo "no" >&6; }
11635 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11637 set dummy ${ncn_progname}; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_WINDRES+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 if test -n "$WINDRES"; then
11644 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11645 else
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653 ac_cv_prog_WINDRES="${ncn_progname}"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11657 done
11658 done
11659 IFS=$as_save_IFS
11663 WINDRES=$ac_cv_prog_WINDRES
11664 if test -n "$WINDRES"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11666 $as_echo "$WINDRES" >&6; }
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11674 test -n "$ac_cv_prog_WINDRES" && break
11675 done
11677 if test -z "$ac_cv_prog_WINDRES" ; then
11678 set dummy windres
11679 if test $build = $host ; then
11680 WINDRES="$2"
11681 else
11682 WINDRES="${ncn_tool_prefix}$2"
11688 if test -n "$WINDMC"; then
11689 ac_cv_prog_WINDMC=$WINDMC
11690 elif test -n "$ac_cv_prog_WINDMC"; then
11691 WINDMC=$ac_cv_prog_WINDMC
11694 if test -n "$ac_cv_prog_WINDMC"; then
11695 for ncn_progname in windmc; do
11696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11697 set dummy ${ncn_progname}; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_prog_WINDMC+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 if test -n "$WINDMC"; then
11704 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11705 else
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11713 ac_cv_prog_WINDMC="${ncn_progname}"
11714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715 break 2
11717 done
11718 done
11719 IFS=$as_save_IFS
11723 WINDMC=$ac_cv_prog_WINDMC
11724 if test -n "$WINDMC"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11726 $as_echo "$WINDMC" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11733 done
11736 for ncn_progname in windmc; do
11737 if test -n "$ncn_tool_prefix"; then
11738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11739 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if ${ac_cv_prog_WINDMC+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -n "$WINDMC"; then
11746 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11759 done
11760 done
11761 IFS=$as_save_IFS
11765 WINDMC=$ac_cv_prog_WINDMC
11766 if test -n "$WINDMC"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11768 $as_echo "$WINDMC" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11776 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11778 set dummy ${ncn_progname}; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_prog_WINDMC+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 if test -n "$WINDMC"; then
11785 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11786 else
11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788 for as_dir in $PATH
11790 IFS=$as_save_IFS
11791 test -z "$as_dir" && as_dir=.
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_WINDMC="${ncn_progname}"
11795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 break 2
11798 done
11799 done
11800 IFS=$as_save_IFS
11804 WINDMC=$ac_cv_prog_WINDMC
11805 if test -n "$WINDMC"; then
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11807 $as_echo "$WINDMC" >&6; }
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11815 test -n "$ac_cv_prog_WINDMC" && break
11816 done
11818 if test -z "$ac_cv_prog_WINDMC" ; then
11819 set dummy windmc
11820 if test $build = $host ; then
11821 WINDMC="$2"
11822 else
11823 WINDMC="${ncn_tool_prefix}$2"
11829 if test -n "$OBJCOPY"; then
11830 ac_cv_prog_OBJCOPY=$OBJCOPY
11831 elif test -n "$ac_cv_prog_OBJCOPY"; then
11832 OBJCOPY=$ac_cv_prog_OBJCOPY
11835 if test -n "$ac_cv_prog_OBJCOPY"; then
11836 for ncn_progname in objcopy; do
11837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11838 set dummy ${ncn_progname}; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if ${ac_cv_prog_OBJCOPY+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 if test -n "$OBJCOPY"; then
11845 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11846 else
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854 ac_cv_prog_OBJCOPY="${ncn_progname}"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11864 OBJCOPY=$ac_cv_prog_OBJCOPY
11865 if test -n "$OBJCOPY"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11867 $as_echo "$OBJCOPY" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11874 done
11877 for ncn_progname in objcopy; do
11878 if test -n "$ncn_tool_prefix"; then
11879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11880 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_prog_OBJCOPY+:} false; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 if test -n "$OBJCOPY"; then
11887 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11888 else
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11896 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 break 2
11900 done
11901 done
11902 IFS=$as_save_IFS
11906 OBJCOPY=$ac_cv_prog_OBJCOPY
11907 if test -n "$OBJCOPY"; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11909 $as_echo "$OBJCOPY" >&6; }
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912 $as_echo "no" >&6; }
11917 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11919 set dummy ${ncn_progname}; ac_word=$2
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11921 $as_echo_n "checking for $ac_word... " >&6; }
11922 if ${ac_cv_prog_OBJCOPY+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 if test -n "$OBJCOPY"; then
11926 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11927 else
11928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11929 for as_dir in $PATH
11931 IFS=$as_save_IFS
11932 test -z "$as_dir" && as_dir=.
11933 for ac_exec_ext in '' $ac_executable_extensions; do
11934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11935 ac_cv_prog_OBJCOPY="${ncn_progname}"
11936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 break 2
11939 done
11940 done
11941 IFS=$as_save_IFS
11945 OBJCOPY=$ac_cv_prog_OBJCOPY
11946 if test -n "$OBJCOPY"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11948 $as_echo "$OBJCOPY" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11956 test -n "$ac_cv_prog_OBJCOPY" && break
11957 done
11959 if test -z "$ac_cv_prog_OBJCOPY" ; then
11960 set dummy objcopy
11961 if test $build = $host ; then
11962 OBJCOPY="$2"
11963 else
11964 OBJCOPY="${ncn_tool_prefix}$2"
11970 if test -n "$OBJDUMP"; then
11971 ac_cv_prog_OBJDUMP=$OBJDUMP
11972 elif test -n "$ac_cv_prog_OBJDUMP"; then
11973 OBJDUMP=$ac_cv_prog_OBJDUMP
11976 if test -n "$ac_cv_prog_OBJDUMP"; then
11977 for ncn_progname in objdump; do
11978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11979 set dummy ${ncn_progname}; ac_word=$2
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981 $as_echo_n "checking for $ac_word... " >&6; }
11982 if ${ac_cv_prog_OBJDUMP+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 if test -n "$OBJDUMP"; then
11986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11991 IFS=$as_save_IFS
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_OBJDUMP="${ncn_progname}"
11996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 break 2
11999 done
12000 done
12001 IFS=$as_save_IFS
12005 OBJDUMP=$ac_cv_prog_OBJDUMP
12006 if test -n "$OBJDUMP"; then
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12008 $as_echo "$OBJDUMP" >&6; }
12009 else
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12011 $as_echo "no" >&6; }
12015 done
12018 for ncn_progname in objdump; do
12019 if test -n "$ncn_tool_prefix"; then
12020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12021 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_prog_OBJDUMP+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 if test -n "$OBJDUMP"; then
12028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12041 done
12042 done
12043 IFS=$as_save_IFS
12047 OBJDUMP=$ac_cv_prog_OBJDUMP
12048 if test -n "$OBJDUMP"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12050 $as_echo "$OBJDUMP" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12058 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12060 set dummy ${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_OBJDUMP+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 if test -n "$OBJDUMP"; then
12067 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${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 OBJDUMP=$ac_cv_prog_OBJDUMP
12087 if test -n "$OBJDUMP"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12089 $as_echo "$OBJDUMP" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12097 test -n "$ac_cv_prog_OBJDUMP" && break
12098 done
12100 if test -z "$ac_cv_prog_OBJDUMP" ; then
12101 set dummy objdump
12102 if test $build = $host ; then
12103 OBJDUMP="$2"
12104 else
12105 OBJDUMP="${ncn_tool_prefix}$2"
12111 if test -n "$OTOOL"; then
12112 ac_cv_prog_OTOOL=$OTOOL
12113 elif test -n "$ac_cv_prog_OTOOL"; then
12114 OTOOL=$ac_cv_prog_OTOOL
12117 if test -n "$ac_cv_prog_OTOOL"; then
12118 for ncn_progname in otool; do
12119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12120 set dummy ${ncn_progname}; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if ${ac_cv_prog_OTOOL+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 if test -n "$OTOOL"; then
12127 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12128 else
12129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12132 IFS=$as_save_IFS
12133 test -z "$as_dir" && as_dir=.
12134 for ac_exec_ext in '' $ac_executable_extensions; do
12135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 ac_cv_prog_OTOOL="${ncn_progname}"
12137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 break 2
12140 done
12141 done
12142 IFS=$as_save_IFS
12146 OTOOL=$ac_cv_prog_OTOOL
12147 if test -n "$OTOOL"; then
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12149 $as_echo "$OTOOL" >&6; }
12150 else
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12156 done
12159 for ncn_progname in otool; do
12160 if test -n "$ncn_tool_prefix"; then
12161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_prog_OTOOL+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 if test -n "$OTOOL"; then
12169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12170 else
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12182 done
12183 done
12184 IFS=$as_save_IFS
12188 OTOOL=$ac_cv_prog_OTOOL
12189 if test -n "$OTOOL"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12191 $as_echo "$OTOOL" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12199 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12201 set dummy ${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_OTOOL+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 if test -n "$OTOOL"; then
12208 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${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 OTOOL=$ac_cv_prog_OTOOL
12228 if test -n "$OTOOL"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12230 $as_echo "$OTOOL" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12238 test -n "$ac_cv_prog_OTOOL" && break
12239 done
12241 if test -z "$ac_cv_prog_OTOOL" ; then
12242 set dummy otool
12243 if test $build = $host ; then
12244 OTOOL="$2"
12245 else
12246 OTOOL="${ncn_tool_prefix}$2"
12252 if test -n "$READELF"; then
12253 ac_cv_prog_READELF=$READELF
12254 elif test -n "$ac_cv_prog_READELF"; then
12255 READELF=$ac_cv_prog_READELF
12258 if test -n "$ac_cv_prog_READELF"; then
12259 for ncn_progname in readelf; do
12260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12261 set dummy ${ncn_progname}; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_prog_READELF+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 if test -n "$READELF"; then
12268 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12269 else
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277 ac_cv_prog_READELF="${ncn_progname}"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12281 done
12282 done
12283 IFS=$as_save_IFS
12287 READELF=$ac_cv_prog_READELF
12288 if test -n "$READELF"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12290 $as_echo "$READELF" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12297 done
12300 for ncn_progname in readelf; do
12301 if test -n "$ncn_tool_prefix"; then
12302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12303 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if ${ac_cv_prog_READELF+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 if test -n "$READELF"; then
12310 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12311 else
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12323 done
12324 done
12325 IFS=$as_save_IFS
12329 READELF=$ac_cv_prog_READELF
12330 if test -n "$READELF"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12332 $as_echo "$READELF" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12340 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12342 set dummy ${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_READELF+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 if test -n "$READELF"; then
12349 ac_cv_prog_READELF="$READELF" # 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_READELF="${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 READELF=$ac_cv_prog_READELF
12369 if test -n "$READELF"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12371 $as_echo "$READELF" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12379 test -n "$ac_cv_prog_READELF" && break
12380 done
12382 if test -z "$ac_cv_prog_READELF" ; then
12383 set dummy readelf
12384 if test $build = $host ; then
12385 READELF="$2"
12386 else
12387 READELF="${ncn_tool_prefix}$2"
12398 # Target tools.
12400 # Check whether --with-build-time-tools was given.
12401 if test "${with_build_time_tools+set}" = set; then :
12402 withval=$with_build_time_tools; case x"$withval" in
12403 x/*) ;;
12405 with_build_time_tools=
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12407 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12409 esac
12410 else
12411 with_build_time_tools=
12417 if test -n "$CC_FOR_TARGET"; then
12418 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12419 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12420 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12423 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12424 for ncn_progname in cc gcc; do
12425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12426 set dummy ${ncn_progname}; ac_word=$2
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 if test -n "$CC_FOR_TARGET"; then
12433 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12434 else
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12442 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 break 2
12446 done
12447 done
12448 IFS=$as_save_IFS
12452 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12453 if test -n "$CC_FOR_TARGET"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12455 $as_echo "$CC_FOR_TARGET" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12462 done
12465 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12466 for ncn_progname in cc gcc; do
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12468 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12469 if test -x $with_build_time_tools/${ncn_progname}; then
12470 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12472 $as_echo "yes" >&6; }
12473 break
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12478 done
12481 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12482 for ncn_progname in cc gcc; do
12483 if test -n "$ncn_target_tool_prefix"; then
12484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12485 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12487 $as_echo_n "checking for $ac_word... " >&6; }
12488 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 if test -n "$CC_FOR_TARGET"; then
12492 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12493 else
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12497 IFS=$as_save_IFS
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12501 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 break 2
12505 done
12506 done
12507 IFS=$as_save_IFS
12511 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12512 if test -n "$CC_FOR_TARGET"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12514 $as_echo "$CC_FOR_TARGET" >&6; }
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12522 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12524 set dummy ${ncn_progname}; ac_word=$2
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526 $as_echo_n "checking for $ac_word... " >&6; }
12527 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 if test -n "$CC_FOR_TARGET"; then
12531 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12532 else
12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534 for as_dir in $PATH
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12544 done
12545 done
12546 IFS=$as_save_IFS
12550 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12551 if test -n "$CC_FOR_TARGET"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12553 $as_echo "$CC_FOR_TARGET" >&6; }
12554 else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12561 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12562 done
12565 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12566 set dummy cc gcc
12567 if test $build = $target ; then
12568 CC_FOR_TARGET="$2"
12569 else
12570 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12572 else
12573 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12578 if test -n "$CXX_FOR_TARGET"; then
12579 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12580 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12581 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12584 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12585 for ncn_progname in c++ g++ cxx gxx; do
12586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12587 set dummy ${ncn_progname}; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$CXX_FOR_TARGET"; then
12594 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12607 done
12608 done
12609 IFS=$as_save_IFS
12613 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12614 if test -n "$CXX_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12616 $as_echo "$CXX_FOR_TARGET" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12623 done
12626 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12627 for ncn_progname in c++ g++ cxx gxx; do
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12629 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12630 if test -x $with_build_time_tools/${ncn_progname}; then
12631 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634 break
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12639 done
12642 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12643 for ncn_progname in c++ g++ cxx gxx; do
12644 if test -n "$ncn_target_tool_prefix"; then
12645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$CXX_FOR_TARGET"; then
12653 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12666 done
12667 done
12668 IFS=$as_save_IFS
12672 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12673 if test -n "$CXX_FOR_TARGET"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12675 $as_echo "$CXX_FOR_TARGET" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12683 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 if test -n "$CXX_FOR_TARGET"; then
12692 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12705 done
12706 done
12707 IFS=$as_save_IFS
12711 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12712 if test -n "$CXX_FOR_TARGET"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12714 $as_echo "$CXX_FOR_TARGET" >&6; }
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12722 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12723 done
12726 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12727 set dummy c++ g++ cxx gxx
12728 if test $build = $target ; then
12729 CXX_FOR_TARGET="$2"
12730 else
12731 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12733 else
12734 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12739 if test -n "$GCC_FOR_TARGET"; then
12740 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12741 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12742 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12745 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12746 for ncn_progname in gcc; do
12747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12748 set dummy ${ncn_progname}; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test -n "$GCC_FOR_TARGET"; then
12755 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12756 else
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12768 done
12769 done
12770 IFS=$as_save_IFS
12774 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12775 if test -n "$GCC_FOR_TARGET"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12777 $as_echo "$GCC_FOR_TARGET" >&6; }
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12784 done
12787 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12788 for ncn_progname in gcc; do
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12790 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12791 if test -x $with_build_time_tools/${ncn_progname}; then
12792 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794 $as_echo "yes" >&6; }
12795 break
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12800 done
12803 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12804 for ncn_progname in gcc; do
12805 if test -n "$ncn_target_tool_prefix"; then
12806 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12807 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 if test -n "$GCC_FOR_TARGET"; then
12814 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12815 else
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 break 2
12827 done
12828 done
12829 IFS=$as_save_IFS
12833 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12834 if test -n "$GCC_FOR_TARGET"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12836 $as_echo "$GCC_FOR_TARGET" >&6; }
12837 else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12844 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12846 set dummy ${ncn_progname}; ac_word=$2
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848 $as_echo_n "checking for $ac_word... " >&6; }
12849 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 if test -n "$GCC_FOR_TARGET"; then
12853 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12854 else
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12872 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12873 if test -n "$GCC_FOR_TARGET"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12875 $as_echo "$GCC_FOR_TARGET" >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12883 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12884 done
12887 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12888 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12889 else
12890 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12895 if test -n "$GFORTRAN_FOR_TARGET"; then
12896 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12897 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12898 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12901 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12902 for ncn_progname in gfortran; do
12903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12904 set dummy ${ncn_progname}; ac_word=$2
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 $as_echo_n "checking for $ac_word... " >&6; }
12907 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 if test -n "$GFORTRAN_FOR_TARGET"; then
12911 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12912 else
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914 for as_dir in $PATH
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12924 done
12925 done
12926 IFS=$as_save_IFS
12930 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12931 if test -n "$GFORTRAN_FOR_TARGET"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12933 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12940 done
12943 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12944 for ncn_progname in gfortran; do
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12946 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12947 if test -x $with_build_time_tools/${ncn_progname}; then
12948 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950 $as_echo "yes" >&6; }
12951 break
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12956 done
12959 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12960 for ncn_progname in gfortran; do
12961 if test -n "$ncn_target_tool_prefix"; then
12962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 if test -n "$GFORTRAN_FOR_TARGET"; then
12970 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12971 else
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12975 IFS=$as_save_IFS
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12979 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 break 2
12983 done
12984 done
12985 IFS=$as_save_IFS
12989 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12990 if test -n "$GFORTRAN_FOR_TARGET"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12992 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
13000 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13002 set dummy ${ncn_progname}; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004 $as_echo_n "checking for $ac_word... " >&6; }
13005 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 if test -n "$GFORTRAN_FOR_TARGET"; then
13009 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13010 else
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13022 done
13023 done
13024 IFS=$as_save_IFS
13028 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13029 if test -n "$GFORTRAN_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13031 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13039 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13040 done
13043 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13044 set dummy gfortran
13045 if test $build = $target ; then
13046 GFORTRAN_FOR_TARGET="$2"
13047 else
13048 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13050 else
13051 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13056 if test -n "$GOC_FOR_TARGET"; then
13057 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13058 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13059 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13062 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13063 for ncn_progname in gccgo; do
13064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13065 set dummy ${ncn_progname}; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$GOC_FOR_TARGET"; then
13072 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13085 done
13086 done
13087 IFS=$as_save_IFS
13091 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13092 if test -n "$GOC_FOR_TARGET"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13094 $as_echo "$GOC_FOR_TARGET" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 done
13104 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13105 for ncn_progname in gccgo; do
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13107 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13108 if test -x $with_build_time_tools/${ncn_progname}; then
13109 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13111 $as_echo "yes" >&6; }
13112 break
13113 else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13117 done
13120 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13121 for ncn_progname in gccgo; do
13122 if test -n "$ncn_target_tool_prefix"; then
13123 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13124 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 if test -n "$GOC_FOR_TARGET"; then
13131 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13132 else
13133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13134 for as_dir in $PATH
13136 IFS=$as_save_IFS
13137 test -z "$as_dir" && as_dir=.
13138 for ac_exec_ext in '' $ac_executable_extensions; do
13139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13140 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 break 2
13144 done
13145 done
13146 IFS=$as_save_IFS
13150 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13151 if test -n "$GOC_FOR_TARGET"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13153 $as_echo "$GOC_FOR_TARGET" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13161 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13163 set dummy ${ncn_progname}; ac_word=$2
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13165 $as_echo_n "checking for $ac_word... " >&6; }
13166 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 if test -n "$GOC_FOR_TARGET"; then
13170 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13171 else
13172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $PATH
13175 IFS=$as_save_IFS
13176 test -z "$as_dir" && as_dir=.
13177 for ac_exec_ext in '' $ac_executable_extensions; do
13178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13181 break 2
13183 done
13184 done
13185 IFS=$as_save_IFS
13189 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13190 if test -n "$GOC_FOR_TARGET"; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13192 $as_echo "$GOC_FOR_TARGET" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13195 $as_echo "no" >&6; }
13200 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13201 done
13204 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13205 set dummy gccgo
13206 if test $build = $target ; then
13207 GOC_FOR_TARGET="$2"
13208 else
13209 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13211 else
13212 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13217 if test -n "$GDC_FOR_TARGET"; then
13218 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13219 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13220 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13223 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13224 for ncn_progname in gdc; do
13225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13226 set dummy ${ncn_progname}; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 if test -n "$GDC_FOR_TARGET"; then
13233 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13234 else
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13242 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13246 done
13247 done
13248 IFS=$as_save_IFS
13252 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13253 if test -n "$GDC_FOR_TARGET"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13255 $as_echo "$GDC_FOR_TARGET" >&6; }
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13262 done
13265 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13266 for ncn_progname in gdc; do
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13268 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13269 if test -x $with_build_time_tools/${ncn_progname}; then
13270 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13272 $as_echo "yes" >&6; }
13273 break
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13278 done
13281 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13282 for ncn_progname in gdc; do
13283 if test -n "$ncn_target_tool_prefix"; then
13284 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13285 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287 $as_echo_n "checking for $ac_word... " >&6; }
13288 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 if test -n "$GDC_FOR_TARGET"; then
13292 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13293 else
13294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295 for as_dir in $PATH
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
13300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13301 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 break 2
13305 done
13306 done
13307 IFS=$as_save_IFS
13311 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13312 if test -n "$GDC_FOR_TARGET"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13314 $as_echo "$GDC_FOR_TARGET" >&6; }
13315 else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317 $as_echo "no" >&6; }
13322 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13324 set dummy ${ncn_progname}; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test -n "$GDC_FOR_TARGET"; then
13331 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13344 done
13345 done
13346 IFS=$as_save_IFS
13350 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13351 if test -n "$GDC_FOR_TARGET"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13353 $as_echo "$GDC_FOR_TARGET" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13361 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13362 done
13365 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13366 set dummy gdc
13367 if test $build = $target ; then
13368 GDC_FOR_TARGET="$2"
13369 else
13370 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13372 else
13373 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13378 # The user is always right.
13379 if test "${PATH_SEPARATOR+set}" != set; then
13380 echo "#! /bin/sh" >conf$$.sh
13381 echo "exit 0" >>conf$$.sh
13382 chmod +x conf$$.sh
13383 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13384 PATH_SEPARATOR=';'
13385 else
13386 PATH_SEPARATOR=:
13388 rm -f conf$$.sh
13392 get_gcc_base_ver="cat"
13394 # Check whether --with-gcc-major-version-only was given.
13395 if test "${with_gcc_major_version_only+set}" = set; then :
13396 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13397 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13407 if test "x$exec_prefix" = xNONE; then
13408 if test "x$prefix" = xNONE; then
13409 gcc_cv_tool_prefix=$ac_default_prefix
13410 else
13411 gcc_cv_tool_prefix=$prefix
13413 else
13414 gcc_cv_tool_prefix=$exec_prefix
13417 # If there is no compiler in the tree, use the PATH only. In any
13418 # case, if there is no compiler in the tree nobody should use
13419 # AS_FOR_TARGET and LD_FOR_TARGET.
13420 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
13421 if test x$with_gcc_major_version_only = xyes ; then
13422 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
13423 else
13424 gcc_version=`cat $srcdir/gcc/BASE-VER`
13426 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13427 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
13428 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13429 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
13430 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
13431 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
13432 else
13433 gcc_cv_tool_dirs=
13436 if test x$build = x$target && test -n "$md_exec_prefix"; then
13437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
13442 cat > conftest.c << \EOF
13443 #ifdef __GNUC__
13444 gcc_yay;
13445 #endif
13447 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13448 have_gcc_for_target=yes
13449 else
13450 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13451 have_gcc_for_target=no
13453 rm conftest.c
13458 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13459 if test -n "$with_build_time_tools"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13461 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13462 if test -x $with_build_time_tools/ar; then
13463 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13464 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13466 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13471 elif test $build != $host && test $have_gcc_for_target = yes; then
13472 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13473 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13474 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13477 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13478 # Extract the first word of "ar", so it can be a program name with args.
13479 set dummy ar; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 case $AR_FOR_TARGET in
13486 [\\/]* | ?:[\\/]*)
13487 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $gcc_cv_tool_dirs
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13506 esac
13508 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13509 if test -n "$AR_FOR_TARGET"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13511 $as_echo "$AR_FOR_TARGET" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13519 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13522 if test -n "$AR_FOR_TARGET"; then
13523 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13524 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13525 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13528 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13529 for ncn_progname in ar; do
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531 set dummy ${ncn_progname}; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 if test -n "$AR_FOR_TARGET"; then
13538 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13539 else
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13551 done
13552 done
13553 IFS=$as_save_IFS
13557 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13558 if test -n "$AR_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13560 $as_echo "$AR_FOR_TARGET" >&6; }
13561 else
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13567 done
13570 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13571 for ncn_progname in ar; do
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13573 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13574 if test -x $with_build_time_tools/${ncn_progname}; then
13575 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577 $as_echo "yes" >&6; }
13578 break
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13583 done
13586 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13587 for ncn_progname in ar; do
13588 if test -n "$ncn_target_tool_prefix"; then
13589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13590 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 if test -n "$AR_FOR_TARGET"; then
13597 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13598 else
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13602 IFS=$as_save_IFS
13603 test -z "$as_dir" && as_dir=.
13604 for ac_exec_ext in '' $ac_executable_extensions; do
13605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 break 2
13610 done
13611 done
13612 IFS=$as_save_IFS
13616 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13617 if test -n "$AR_FOR_TARGET"; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13619 $as_echo "$AR_FOR_TARGET" >&6; }
13620 else
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13627 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13629 set dummy ${ncn_progname}; ac_word=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631 $as_echo_n "checking for $ac_word... " >&6; }
13632 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 if test -n "$AR_FOR_TARGET"; then
13636 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13637 else
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13649 done
13650 done
13651 IFS=$as_save_IFS
13655 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13656 if test -n "$AR_FOR_TARGET"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13658 $as_echo "$AR_FOR_TARGET" >&6; }
13659 else
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13666 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13667 done
13670 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13671 set dummy ar
13672 if test $build = $target ; then
13673 AR_FOR_TARGET="$2"
13674 else
13675 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13677 else
13678 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13681 else
13682 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13688 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13689 if test -n "$with_build_time_tools"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13691 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13692 if test -x $with_build_time_tools/as; then
13693 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13694 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13696 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13701 elif test $build != $host && test $have_gcc_for_target = yes; then
13702 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13703 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13704 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13707 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13708 # Extract the first word of "as", so it can be a program name with args.
13709 set dummy as; ac_word=$2
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711 $as_echo_n "checking for $ac_word... " >&6; }
13712 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715 case $AS_FOR_TARGET in
13716 [\\/]* | ?:[\\/]*)
13717 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $gcc_cv_tool_dirs
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13731 done
13732 done
13733 IFS=$as_save_IFS
13736 esac
13738 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13739 if test -n "$AS_FOR_TARGET"; then
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13741 $as_echo "$AS_FOR_TARGET" >&6; }
13742 else
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 $as_echo "no" >&6; }
13749 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13752 if test -n "$AS_FOR_TARGET"; then
13753 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13754 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13755 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13758 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13759 for ncn_progname in as; do
13760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13761 set dummy ${ncn_progname}; ac_word=$2
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13763 $as_echo_n "checking for $ac_word... " >&6; }
13764 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13765 $as_echo_n "(cached) " >&6
13766 else
13767 if test -n "$AS_FOR_TARGET"; then
13768 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13769 else
13770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13771 for as_dir in $PATH
13773 IFS=$as_save_IFS
13774 test -z "$as_dir" && as_dir=.
13775 for ac_exec_ext in '' $ac_executable_extensions; do
13776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13777 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13779 break 2
13781 done
13782 done
13783 IFS=$as_save_IFS
13787 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13788 if test -n "$AS_FOR_TARGET"; then
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13790 $as_echo "$AS_FOR_TARGET" >&6; }
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793 $as_echo "no" >&6; }
13797 done
13800 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13801 for ncn_progname in as; do
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13803 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13804 if test -x $with_build_time_tools/${ncn_progname}; then
13805 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13807 $as_echo "yes" >&6; }
13808 break
13809 else
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13813 done
13816 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13817 for ncn_progname in as; do
13818 if test -n "$ncn_target_tool_prefix"; then
13819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13820 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13822 $as_echo_n "checking for $ac_word... " >&6; }
13823 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 if test -n "$AS_FOR_TARGET"; then
13827 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13828 else
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
13835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13836 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13840 done
13841 done
13842 IFS=$as_save_IFS
13846 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13847 if test -n "$AS_FOR_TARGET"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13849 $as_echo "$AS_FOR_TARGET" >&6; }
13850 else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13857 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached) " >&6
13864 else
13865 if test -n "$AS_FOR_TARGET"; then
13866 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13879 done
13880 done
13881 IFS=$as_save_IFS
13885 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13886 if test -n "$AS_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13888 $as_echo "$AS_FOR_TARGET" >&6; }
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13896 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13897 done
13900 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13901 set dummy as
13902 if test $build = $target ; then
13903 AS_FOR_TARGET="$2"
13904 else
13905 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13907 else
13908 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13911 else
13912 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13918 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13919 if test -n "$with_build_time_tools"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13921 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13922 if test -x $with_build_time_tools/dlltool; then
13923 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13924 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13926 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13931 elif test $build != $host && test $have_gcc_for_target = yes; then
13932 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13933 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13934 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13937 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13938 # Extract the first word of "dlltool", so it can be a program name with args.
13939 set dummy dlltool; ac_word=$2
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13941 $as_echo_n "checking for $ac_word... " >&6; }
13942 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13943 $as_echo_n "(cached) " >&6
13944 else
13945 case $DLLTOOL_FOR_TARGET in
13946 [\\/]* | ?:[\\/]*)
13947 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $gcc_cv_tool_dirs
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13961 done
13962 done
13963 IFS=$as_save_IFS
13966 esac
13968 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13969 if test -n "$DLLTOOL_FOR_TARGET"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13971 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13972 else
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13974 $as_echo "no" >&6; }
13979 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13982 if test -n "$DLLTOOL_FOR_TARGET"; then
13983 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13984 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13985 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13988 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13989 for ncn_progname in dlltool; do
13990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13991 set dummy ${ncn_progname}; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 if test -n "$DLLTOOL_FOR_TARGET"; then
13998 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14007 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 break 2
14011 done
14012 done
14013 IFS=$as_save_IFS
14017 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14018 if test -n "$DLLTOOL_FOR_TARGET"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14020 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14027 done
14030 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14031 for ncn_progname in dlltool; do
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14033 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14034 if test -x $with_build_time_tools/${ncn_progname}; then
14035 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; }
14038 break
14039 else
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14043 done
14046 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14047 for ncn_progname in dlltool; do
14048 if test -n "$ncn_target_tool_prefix"; then
14049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14050 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 if test -n "$DLLTOOL_FOR_TARGET"; then
14057 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14066 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14076 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14077 if test -n "$DLLTOOL_FOR_TARGET"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14079 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14087 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14089 set dummy ${ncn_progname}; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091 $as_echo_n "checking for $ac_word... " >&6; }
14092 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 if test -n "$DLLTOOL_FOR_TARGET"; then
14096 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14097 else
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14109 done
14110 done
14111 IFS=$as_save_IFS
14115 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14116 if test -n "$DLLTOOL_FOR_TARGET"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14118 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14126 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14127 done
14130 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14131 set dummy dlltool
14132 if test $build = $target ; then
14133 DLLTOOL_FOR_TARGET="$2"
14134 else
14135 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14137 else
14138 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14141 else
14142 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14148 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14149 if test -n "$with_build_time_tools"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14151 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14152 if test -x $with_build_time_tools/dsymutil; then
14153 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14154 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14156 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14157 else
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159 $as_echo "no" >&6; }
14161 elif test $build != $host && test $have_gcc_for_target = yes; then
14162 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14163 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14164 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14167 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14168 # Extract the first word of "dsymutil", so it can be a program name with args.
14169 set dummy dsymutil; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14175 case $DSYMUTIL_FOR_TARGET in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $gcc_cv_tool_dirs
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14191 done
14192 done
14193 IFS=$as_save_IFS
14196 esac
14198 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14199 if test -n "$DSYMUTIL_FOR_TARGET"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14201 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14202 else
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14204 $as_echo "no" >&6; }
14209 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14212 if test -n "$DSYMUTIL_FOR_TARGET"; then
14213 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14214 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14215 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14218 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14219 for ncn_progname in dsymutil; do
14220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14221 set dummy ${ncn_progname}; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test -n "$DSYMUTIL_FOR_TARGET"; then
14228 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14241 done
14242 done
14243 IFS=$as_save_IFS
14247 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14248 if test -n "$DSYMUTIL_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14250 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14257 done
14260 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14261 for ncn_progname in dsymutil; do
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14263 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14264 if test -x $with_build_time_tools/${ncn_progname}; then
14265 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14267 $as_echo "yes" >&6; }
14268 break
14269 else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14273 done
14276 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14277 for ncn_progname in dsymutil; do
14278 if test -n "$ncn_target_tool_prefix"; then
14279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if test -n "$DSYMUTIL_FOR_TARGET"; then
14287 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14288 else
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14292 IFS=$as_save_IFS
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14298 break 2
14300 done
14301 done
14302 IFS=$as_save_IFS
14306 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14307 if test -n "$DSYMUTIL_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14309 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14310 else
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 $as_echo "no" >&6; }
14317 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy ${ncn_progname}; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14321 $as_echo_n "checking for $ac_word... " >&6; }
14322 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 if test -n "$DSYMUTIL_FOR_TARGET"; then
14326 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14327 else
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14331 IFS=$as_save_IFS
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337 break 2
14339 done
14340 done
14341 IFS=$as_save_IFS
14345 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14346 if test -n "$DSYMUTIL_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14348 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14356 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14357 done
14360 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14361 set dummy dsymutil
14362 if test $build = $target ; then
14363 DSYMUTIL_FOR_TARGET="$2"
14364 else
14365 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14367 else
14368 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14371 else
14372 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14378 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14379 if test -n "$with_build_time_tools"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14381 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14382 if test -x $with_build_time_tools/ld; then
14383 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14384 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14386 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14391 elif test $build != $host && test $have_gcc_for_target = yes; then
14392 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14393 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14394 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14397 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14398 # Extract the first word of "ld", so it can be a program name with args.
14399 set dummy ld; ac_word=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14401 $as_echo_n "checking for $ac_word... " >&6; }
14402 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 case $LD_FOR_TARGET in
14406 [\\/]* | ?:[\\/]*)
14407 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $gcc_cv_tool_dirs
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14421 done
14422 done
14423 IFS=$as_save_IFS
14426 esac
14428 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14429 if test -n "$LD_FOR_TARGET"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14431 $as_echo "$LD_FOR_TARGET" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14439 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14442 if test -n "$LD_FOR_TARGET"; then
14443 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14444 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14445 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14448 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14449 for ncn_progname in ld; do
14450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14451 set dummy ${ncn_progname}; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 if test -n "$LD_FOR_TARGET"; then
14458 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14471 done
14472 done
14473 IFS=$as_save_IFS
14477 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14478 if test -n "$LD_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14480 $as_echo "$LD_FOR_TARGET" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14487 done
14490 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14491 for ncn_progname in ld; do
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14494 if test -x $with_build_time_tools/${ncn_progname}; then
14495 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14498 break
14499 else
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501 $as_echo "no" >&6; }
14503 done
14506 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14507 for ncn_progname in ld; do
14508 if test -n "$ncn_target_tool_prefix"; then
14509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$LD_FOR_TARGET"; then
14517 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14530 done
14531 done
14532 IFS=$as_save_IFS
14536 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14537 if test -n "$LD_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14539 $as_echo "$LD_FOR_TARGET" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14547 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy ${ncn_progname}; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$LD_FOR_TARGET"; then
14556 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14569 done
14570 done
14571 IFS=$as_save_IFS
14575 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14576 if test -n "$LD_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14578 $as_echo "$LD_FOR_TARGET" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14586 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14587 done
14590 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14591 set dummy ld
14592 if test $build = $target ; then
14593 LD_FOR_TARGET="$2"
14594 else
14595 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14597 else
14598 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14601 else
14602 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14608 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14609 if test -n "$with_build_time_tools"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14611 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14612 if test -x $with_build_time_tools/lipo; then
14613 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14614 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14616 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14617 else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14621 elif test $build != $host && test $have_gcc_for_target = yes; then
14622 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14623 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14624 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14627 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14628 # Extract the first word of "lipo", so it can be a program name with args.
14629 set dummy lipo; ac_word=$2
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14631 $as_echo_n "checking for $ac_word... " >&6; }
14632 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 case $LIPO_FOR_TARGET in
14636 [\\/]* | ?:[\\/]*)
14637 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $gcc_cv_tool_dirs
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 break 2
14651 done
14652 done
14653 IFS=$as_save_IFS
14656 esac
14658 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14659 if test -n "$LIPO_FOR_TARGET"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14661 $as_echo "$LIPO_FOR_TARGET" >&6; }
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14669 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14672 if test -n "$LIPO_FOR_TARGET"; then
14673 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14674 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14675 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14678 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14679 for ncn_progname in lipo; do
14680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14681 set dummy ${ncn_progname}; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686 else
14687 if test -n "$LIPO_FOR_TARGET"; then
14688 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14701 done
14702 done
14703 IFS=$as_save_IFS
14707 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14708 if test -n "$LIPO_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14710 $as_echo "$LIPO_FOR_TARGET" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14717 done
14720 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14721 for ncn_progname in lipo; do
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14723 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14724 if test -x $with_build_time_tools/${ncn_progname}; then
14725 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14728 break
14729 else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731 $as_echo "no" >&6; }
14733 done
14736 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14737 for ncn_progname in lipo; do
14738 if test -n "$ncn_target_tool_prefix"; then
14739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14742 $as_echo_n "checking for $ac_word... " >&6; }
14743 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached) " >&6
14745 else
14746 if test -n "$LIPO_FOR_TARGET"; then
14747 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14748 else
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14752 IFS=$as_save_IFS
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14758 break 2
14760 done
14761 done
14762 IFS=$as_save_IFS
14766 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14767 if test -n "$LIPO_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14769 $as_echo "$LIPO_FOR_TARGET" >&6; }
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy ${ncn_progname}; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781 $as_echo_n "checking for $ac_word... " >&6; }
14782 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 if test -n "$LIPO_FOR_TARGET"; then
14786 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14787 else
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14797 break 2
14799 done
14800 done
14801 IFS=$as_save_IFS
14805 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14806 if test -n "$LIPO_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14808 $as_echo "$LIPO_FOR_TARGET" >&6; }
14809 else
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14811 $as_echo "no" >&6; }
14816 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14817 done
14820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14821 set dummy lipo
14822 if test $build = $target ; then
14823 LIPO_FOR_TARGET="$2"
14824 else
14825 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14827 else
14828 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14831 else
14832 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14838 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14839 if test -n "$with_build_time_tools"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14841 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14842 if test -x $with_build_time_tools/nm; then
14843 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14844 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14846 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14847 else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14851 elif test $build != $host && test $have_gcc_for_target = yes; then
14852 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14853 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14854 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14857 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14858 # Extract the first word of "nm", so it can be a program name with args.
14859 set dummy nm; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 case $NM_FOR_TARGET in
14866 [\\/]* | ?:[\\/]*)
14867 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871 for as_dir in $gcc_cv_tool_dirs
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14879 break 2
14881 done
14882 done
14883 IFS=$as_save_IFS
14886 esac
14888 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14889 if test -n "$NM_FOR_TARGET"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14891 $as_echo "$NM_FOR_TARGET" >&6; }
14892 else
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14899 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14902 if test -n "$NM_FOR_TARGET"; then
14903 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14904 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14905 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14908 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14909 for ncn_progname in nm; do
14910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14911 set dummy ${ncn_progname}; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 if test -n "$NM_FOR_TARGET"; then
14918 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929 break 2
14931 done
14932 done
14933 IFS=$as_save_IFS
14937 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14938 if test -n "$NM_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14940 $as_echo "$NM_FOR_TARGET" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14947 done
14950 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14951 for ncn_progname in nm; do
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14953 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14954 if test -x $with_build_time_tools/${ncn_progname}; then
14955 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14957 $as_echo "yes" >&6; }
14958 break
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14963 done
14966 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14967 for ncn_progname in nm; do
14968 if test -n "$ncn_target_tool_prefix"; then
14969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14972 $as_echo_n "checking for $ac_word... " >&6; }
14973 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976 if test -n "$NM_FOR_TARGET"; then
14977 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14978 else
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14990 done
14991 done
14992 IFS=$as_save_IFS
14996 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14997 if test -n "$NM_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14999 $as_echo "$NM_FOR_TARGET" >&6; }
15000 else
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002 $as_echo "no" >&6; }
15007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy ${ncn_progname}; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011 $as_echo_n "checking for $ac_word... " >&6; }
15012 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
15015 if test -n "$NM_FOR_TARGET"; then
15016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15017 else
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15021 IFS=$as_save_IFS
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 break 2
15029 done
15030 done
15031 IFS=$as_save_IFS
15035 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15036 if test -n "$NM_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15038 $as_echo "$NM_FOR_TARGET" >&6; }
15039 else
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 $as_echo "no" >&6; }
15046 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15047 done
15050 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15051 set dummy nm
15052 if test $build = $target ; then
15053 NM_FOR_TARGET="$2"
15054 else
15055 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15057 else
15058 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15061 else
15062 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15068 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15069 if test -n "$with_build_time_tools"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15071 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15072 if test -x $with_build_time_tools/objcopy; then
15073 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15074 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15076 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15077 else
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079 $as_echo "no" >&6; }
15081 elif test $build != $host && test $have_gcc_for_target = yes; then
15082 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15083 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15084 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15087 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15088 # Extract the first word of "objcopy", so it can be a program name with args.
15089 set dummy objcopy; ac_word=$2
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15091 $as_echo_n "checking for $ac_word... " >&6; }
15092 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15093 $as_echo_n "(cached) " >&6
15094 else
15095 case $OBJCOPY_FOR_TARGET in
15096 [\\/]* | ?:[\\/]*)
15097 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $gcc_cv_tool_dirs
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109 break 2
15111 done
15112 done
15113 IFS=$as_save_IFS
15116 esac
15118 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15119 if test -n "$OBJCOPY_FOR_TARGET"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15121 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15122 else
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15129 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15132 if test -n "$OBJCOPY_FOR_TARGET"; then
15133 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15134 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15135 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15138 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15139 for ncn_progname in objcopy; do
15140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 $as_echo_n "checking for $ac_word... " >&6; }
15144 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 if test -n "$OBJCOPY_FOR_TARGET"; then
15148 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15159 break 2
15161 done
15162 done
15163 IFS=$as_save_IFS
15167 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15168 if test -n "$OBJCOPY_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15170 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15177 done
15180 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15181 for ncn_progname in objcopy; do
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15183 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15184 if test -x $with_build_time_tools/${ncn_progname}; then
15185 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 $as_echo "yes" >&6; }
15188 break
15189 else
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191 $as_echo "no" >&6; }
15193 done
15196 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15197 for ncn_progname in objcopy; do
15198 if test -n "$ncn_target_tool_prefix"; then
15199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15202 $as_echo_n "checking for $ac_word... " >&6; }
15203 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 if test -n "$OBJCOPY_FOR_TARGET"; then
15207 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15208 else
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15212 IFS=$as_save_IFS
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15218 break 2
15220 done
15221 done
15222 IFS=$as_save_IFS
15226 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15227 if test -n "$OBJCOPY_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15229 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15230 else
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15237 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy ${ncn_progname}; ac_word=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 $as_echo_n "checking for $ac_word... " >&6; }
15242 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15243 $as_echo_n "(cached) " >&6
15244 else
15245 if test -n "$OBJCOPY_FOR_TARGET"; then
15246 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15247 else
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15251 IFS=$as_save_IFS
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15257 break 2
15259 done
15260 done
15261 IFS=$as_save_IFS
15265 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15266 if test -n "$OBJCOPY_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15268 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271 $as_echo "no" >&6; }
15276 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15277 done
15280 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15281 set dummy objcopy
15282 if test $build = $target ; then
15283 OBJCOPY_FOR_TARGET="$2"
15284 else
15285 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15287 else
15288 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15291 else
15292 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15298 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15299 if test -n "$with_build_time_tools"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15301 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15302 if test -x $with_build_time_tools/objdump; then
15303 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15304 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15306 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15307 else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15311 elif test $build != $host && test $have_gcc_for_target = yes; then
15312 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15313 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15314 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15317 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15318 # Extract the first word of "objdump", so it can be a program name with args.
15319 set dummy objdump; ac_word=$2
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15321 $as_echo_n "checking for $ac_word... " >&6; }
15322 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15323 $as_echo_n "(cached) " >&6
15324 else
15325 case $OBJDUMP_FOR_TARGET in
15326 [\\/]* | ?:[\\/]*)
15327 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $gcc_cv_tool_dirs
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15341 done
15342 done
15343 IFS=$as_save_IFS
15346 esac
15348 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15349 if test -n "$OBJDUMP_FOR_TARGET"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15351 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15352 else
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15354 $as_echo "no" >&6; }
15359 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15362 if test -n "$OBJDUMP_FOR_TARGET"; then
15363 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15364 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15365 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15368 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15369 for ncn_progname in objdump; do
15370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15371 set dummy ${ncn_progname}; ac_word=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 $as_echo_n "checking for $ac_word... " >&6; }
15374 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 if test -n "$OBJDUMP_FOR_TARGET"; then
15378 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15379 else
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381 for as_dir in $PATH
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15389 break 2
15391 done
15392 done
15393 IFS=$as_save_IFS
15397 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15398 if test -n "$OBJDUMP_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15400 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15407 done
15410 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15411 for ncn_progname in objdump; do
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15413 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15414 if test -x $with_build_time_tools/${ncn_progname}; then
15415 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15417 $as_echo "yes" >&6; }
15418 break
15419 else
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421 $as_echo "no" >&6; }
15423 done
15426 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15427 for ncn_progname in objdump; do
15428 if test -n "$ncn_target_tool_prefix"; then
15429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15432 $as_echo_n "checking for $ac_word... " >&6; }
15433 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 if test -n "$OBJDUMP_FOR_TARGET"; then
15437 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15438 else
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15442 IFS=$as_save_IFS
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15448 break 2
15450 done
15451 done
15452 IFS=$as_save_IFS
15456 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15457 if test -n "$OBJDUMP_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15459 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15460 else
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15467 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy ${ncn_progname}; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15471 $as_echo_n "checking for $ac_word... " >&6; }
15472 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 if test -n "$OBJDUMP_FOR_TARGET"; then
15476 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15477 else
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15481 IFS=$as_save_IFS
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15487 break 2
15489 done
15490 done
15491 IFS=$as_save_IFS
15495 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15496 if test -n "$OBJDUMP_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15498 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15499 else
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15501 $as_echo "no" >&6; }
15506 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15507 done
15510 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15511 set dummy objdump
15512 if test $build = $target ; then
15513 OBJDUMP_FOR_TARGET="$2"
15514 else
15515 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15517 else
15518 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15521 else
15522 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15528 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15529 if test -n "$with_build_time_tools"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15531 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15532 if test -x $with_build_time_tools/otool; then
15533 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15534 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15536 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15537 else
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15541 elif test $build != $host && test $have_gcc_for_target = yes; then
15542 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15543 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15544 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15547 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15548 # Extract the first word of "otool", so it can be a program name with args.
15549 set dummy otool; ac_word=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15551 $as_echo_n "checking for $ac_word... " >&6; }
15552 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
15555 case $OTOOL_FOR_TARGET in
15556 [\\/]* | ?:[\\/]*)
15557 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $gcc_cv_tool_dirs
15563 IFS=$as_save_IFS
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15569 break 2
15571 done
15572 done
15573 IFS=$as_save_IFS
15576 esac
15578 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15579 if test -n "$OTOOL_FOR_TARGET"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15581 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15582 else
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15589 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15592 if test -n "$OTOOL_FOR_TARGET"; then
15593 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15594 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15595 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15598 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15599 for ncn_progname in otool; do
15600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15601 set dummy ${ncn_progname}; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 if test -n "$OTOOL_FOR_TARGET"; then
15608 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15609 else
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619 break 2
15621 done
15622 done
15623 IFS=$as_save_IFS
15627 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15628 if test -n "$OTOOL_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15630 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15637 done
15640 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15641 for ncn_progname in otool; do
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15643 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15644 if test -x $with_build_time_tools/${ncn_progname}; then
15645 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15648 break
15649 else
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651 $as_echo "no" >&6; }
15653 done
15656 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15657 for ncn_progname in otool; do
15658 if test -n "$ncn_target_tool_prefix"; then
15659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15662 $as_echo_n "checking for $ac_word... " >&6; }
15663 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 if test -n "$OTOOL_FOR_TARGET"; then
15667 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15668 else
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15672 IFS=$as_save_IFS
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15678 break 2
15680 done
15681 done
15682 IFS=$as_save_IFS
15686 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15687 if test -n "$OTOOL_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15689 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15690 else
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15697 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy ${ncn_progname}; ac_word=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15701 $as_echo_n "checking for $ac_word... " >&6; }
15702 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15703 $as_echo_n "(cached) " >&6
15704 else
15705 if test -n "$OTOOL_FOR_TARGET"; then
15706 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15707 else
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $PATH
15711 IFS=$as_save_IFS
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15717 break 2
15719 done
15720 done
15721 IFS=$as_save_IFS
15725 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15726 if test -n "$OTOOL_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15728 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15729 else
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15736 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15737 done
15740 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15741 set dummy otool
15742 if test $build = $target ; then
15743 OTOOL_FOR_TARGET="$2"
15744 else
15745 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15747 else
15748 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15751 else
15752 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15758 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15759 if test -n "$with_build_time_tools"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15761 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15762 if test -x $with_build_time_tools/ranlib; then
15763 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15764 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15766 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15767 else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769 $as_echo "no" >&6; }
15771 elif test $build != $host && test $have_gcc_for_target = yes; then
15772 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15773 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15774 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15777 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15778 # Extract the first word of "ranlib", so it can be a program name with args.
15779 set dummy ranlib; ac_word=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15781 $as_echo_n "checking for $ac_word... " >&6; }
15782 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 case $RANLIB_FOR_TARGET in
15786 [\\/]* | ?:[\\/]*)
15787 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791 for as_dir in $gcc_cv_tool_dirs
15793 IFS=$as_save_IFS
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15797 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15799 break 2
15801 done
15802 done
15803 IFS=$as_save_IFS
15806 esac
15808 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15809 if test -n "$RANLIB_FOR_TARGET"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15811 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15812 else
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15819 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15822 if test -n "$RANLIB_FOR_TARGET"; then
15823 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15824 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15825 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15828 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15829 for ncn_progname in ranlib; do
15830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15831 set dummy ${ncn_progname}; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 if test -n "$RANLIB_FOR_TARGET"; then
15838 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15839 else
15840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15843 IFS=$as_save_IFS
15844 test -z "$as_dir" && as_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15849 break 2
15851 done
15852 done
15853 IFS=$as_save_IFS
15857 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15858 if test -n "$RANLIB_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15860 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15861 else
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15867 done
15870 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15871 for ncn_progname in ranlib; do
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15873 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15874 if test -x $with_build_time_tools/${ncn_progname}; then
15875 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15877 $as_echo "yes" >&6; }
15878 break
15879 else
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881 $as_echo "no" >&6; }
15883 done
15886 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15887 for ncn_progname in ranlib; do
15888 if test -n "$ncn_target_tool_prefix"; then
15889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15892 $as_echo_n "checking for $ac_word... " >&6; }
15893 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 if test -n "$RANLIB_FOR_TARGET"; then
15897 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15898 else
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15902 IFS=$as_save_IFS
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908 break 2
15910 done
15911 done
15912 IFS=$as_save_IFS
15916 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15917 if test -n "$RANLIB_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15919 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15920 else
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15927 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy ${ncn_progname}; ac_word=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15931 $as_echo_n "checking for $ac_word... " >&6; }
15932 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 if test -n "$RANLIB_FOR_TARGET"; then
15936 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15937 else
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15941 IFS=$as_save_IFS
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15947 break 2
15949 done
15950 done
15951 IFS=$as_save_IFS
15955 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15956 if test -n "$RANLIB_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15958 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15959 else
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15961 $as_echo "no" >&6; }
15966 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15967 done
15970 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15971 set dummy ranlib
15972 if test $build = $target ; then
15973 RANLIB_FOR_TARGET="$2"
15974 else
15975 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15977 else
15978 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15981 else
15982 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15988 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15989 if test -n "$with_build_time_tools"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15991 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15992 if test -x $with_build_time_tools/readelf; then
15993 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15994 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15996 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15997 else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999 $as_echo "no" >&6; }
16001 elif test $build != $host && test $have_gcc_for_target = yes; then
16002 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16003 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16004 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16007 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16008 # Extract the first word of "readelf", so it can be a program name with args.
16009 set dummy readelf; ac_word=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16011 $as_echo_n "checking for $ac_word... " >&6; }
16012 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16013 $as_echo_n "(cached) " >&6
16014 else
16015 case $READELF_FOR_TARGET in
16016 [\\/]* | ?:[\\/]*)
16017 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16021 for as_dir in $gcc_cv_tool_dirs
16023 IFS=$as_save_IFS
16024 test -z "$as_dir" && as_dir=.
16025 for ac_exec_ext in '' $ac_executable_extensions; do
16026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16027 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16029 break 2
16031 done
16032 done
16033 IFS=$as_save_IFS
16036 esac
16038 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16039 if test -n "$READELF_FOR_TARGET"; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16041 $as_echo "$READELF_FOR_TARGET" >&6; }
16042 else
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16049 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16052 if test -n "$READELF_FOR_TARGET"; then
16053 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16054 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16055 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16058 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16059 for ncn_progname in readelf; do
16060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16061 set dummy ${ncn_progname}; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 if test -n "$READELF_FOR_TARGET"; then
16068 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16069 else
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16079 break 2
16081 done
16082 done
16083 IFS=$as_save_IFS
16087 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16088 if test -n "$READELF_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16090 $as_echo "$READELF_FOR_TARGET" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16097 done
16100 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16101 for ncn_progname in readelf; do
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16103 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16104 if test -x $with_build_time_tools/${ncn_progname}; then
16105 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16108 break
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16113 done
16116 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16117 for ncn_progname in readelf; do
16118 if test -n "$ncn_target_tool_prefix"; then
16119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16122 $as_echo_n "checking for $ac_word... " >&6; }
16123 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 if test -n "$READELF_FOR_TARGET"; then
16127 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16128 else
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 break 2
16140 done
16141 done
16142 IFS=$as_save_IFS
16146 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16147 if test -n "$READELF_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16149 $as_echo "$READELF_FOR_TARGET" >&6; }
16150 else
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16152 $as_echo "no" >&6; }
16157 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy ${ncn_progname}; ac_word=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16161 $as_echo_n "checking for $ac_word... " >&6; }
16162 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 if test -n "$READELF_FOR_TARGET"; then
16166 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16167 else
16168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16171 IFS=$as_save_IFS
16172 test -z "$as_dir" && as_dir=.
16173 for ac_exec_ext in '' $ac_executable_extensions; do
16174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16177 break 2
16179 done
16180 done
16181 IFS=$as_save_IFS
16185 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16186 if test -n "$READELF_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16188 $as_echo "$READELF_FOR_TARGET" >&6; }
16189 else
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16196 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16197 done
16200 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16201 set dummy readelf
16202 if test $build = $target ; then
16203 READELF_FOR_TARGET="$2"
16204 else
16205 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16207 else
16208 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16211 else
16212 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16218 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16219 if test -n "$with_build_time_tools"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16221 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16222 if test -x $with_build_time_tools/strip; then
16223 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16224 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16226 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16227 else
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229 $as_echo "no" >&6; }
16231 elif test $build != $host && test $have_gcc_for_target = yes; then
16232 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16233 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16234 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16237 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16238 # Extract the first word of "strip", so it can be a program name with args.
16239 set dummy strip; ac_word=$2
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16241 $as_echo_n "checking for $ac_word... " >&6; }
16242 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245 case $STRIP_FOR_TARGET in
16246 [\\/]* | ?:[\\/]*)
16247 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $gcc_cv_tool_dirs
16253 IFS=$as_save_IFS
16254 test -z "$as_dir" && as_dir=.
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16259 break 2
16261 done
16262 done
16263 IFS=$as_save_IFS
16266 esac
16268 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16269 if test -n "$STRIP_FOR_TARGET"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16271 $as_echo "$STRIP_FOR_TARGET" >&6; }
16272 else
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16274 $as_echo "no" >&6; }
16279 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16282 if test -n "$STRIP_FOR_TARGET"; then
16283 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16284 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16285 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16288 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16289 for ncn_progname in strip; do
16290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16291 set dummy ${ncn_progname}; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 if test -n "$STRIP_FOR_TARGET"; then
16298 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16299 else
16300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
16305 for ac_exec_ext in '' $ac_executable_extensions; do
16306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16307 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16309 break 2
16311 done
16312 done
16313 IFS=$as_save_IFS
16317 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16318 if test -n "$STRIP_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16320 $as_echo "$STRIP_FOR_TARGET" >&6; }
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16327 done
16330 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16331 for ncn_progname in strip; do
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16333 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16334 if test -x $with_build_time_tools/${ncn_progname}; then
16335 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16337 $as_echo "yes" >&6; }
16338 break
16339 else
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16343 done
16346 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16347 for ncn_progname in strip; do
16348 if test -n "$ncn_target_tool_prefix"; then
16349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16352 $as_echo_n "checking for $ac_word... " >&6; }
16353 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 if test -n "$STRIP_FOR_TARGET"; then
16357 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16358 else
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16362 IFS=$as_save_IFS
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16368 break 2
16370 done
16371 done
16372 IFS=$as_save_IFS
16376 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16377 if test -n "$STRIP_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16379 $as_echo "$STRIP_FOR_TARGET" >&6; }
16380 else
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16382 $as_echo "no" >&6; }
16387 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy ${ncn_progname}; ac_word=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16391 $as_echo_n "checking for $ac_word... " >&6; }
16392 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16393 $as_echo_n "(cached) " >&6
16394 else
16395 if test -n "$STRIP_FOR_TARGET"; then
16396 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16397 else
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16401 IFS=$as_save_IFS
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16407 break 2
16409 done
16410 done
16411 IFS=$as_save_IFS
16415 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16416 if test -n "$STRIP_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16418 $as_echo "$STRIP_FOR_TARGET" >&6; }
16419 else
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16426 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16427 done
16430 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16431 set dummy strip
16432 if test $build = $target ; then
16433 STRIP_FOR_TARGET="$2"
16434 else
16435 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16437 else
16438 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16441 else
16442 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16448 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16449 if test -n "$with_build_time_tools"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16451 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16452 if test -x $with_build_time_tools/windres; then
16453 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16454 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16456 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16457 else
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459 $as_echo "no" >&6; }
16461 elif test $build != $host && test $have_gcc_for_target = yes; then
16462 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16463 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16464 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16467 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16468 # Extract the first word of "windres", so it can be a program name with args.
16469 set dummy windres; ac_word=$2
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16471 $as_echo_n "checking for $ac_word... " >&6; }
16472 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16473 $as_echo_n "(cached) " >&6
16474 else
16475 case $WINDRES_FOR_TARGET in
16476 [\\/]* | ?:[\\/]*)
16477 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481 for as_dir in $gcc_cv_tool_dirs
16483 IFS=$as_save_IFS
16484 test -z "$as_dir" && as_dir=.
16485 for ac_exec_ext in '' $ac_executable_extensions; do
16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16489 break 2
16491 done
16492 done
16493 IFS=$as_save_IFS
16496 esac
16498 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16499 if test -n "$WINDRES_FOR_TARGET"; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16501 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16502 else
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16504 $as_echo "no" >&6; }
16509 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16512 if test -n "$WINDRES_FOR_TARGET"; then
16513 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16514 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16515 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16518 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16519 for ncn_progname in windres; do
16520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16521 set dummy ${ncn_progname}; ac_word=$2
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16523 $as_echo_n "checking for $ac_word... " >&6; }
16524 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 if test -n "$WINDRES_FOR_TARGET"; then
16528 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16529 else
16530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531 for as_dir in $PATH
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
16536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16537 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 break 2
16541 done
16542 done
16543 IFS=$as_save_IFS
16547 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16548 if test -n "$WINDRES_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16550 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16557 done
16560 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16561 for ncn_progname in windres; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16564 if test -x $with_build_time_tools/${ncn_progname}; then
16565 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16567 $as_echo "yes" >&6; }
16568 break
16569 else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571 $as_echo "no" >&6; }
16573 done
16576 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16577 for ncn_progname in windres; do
16578 if test -n "$ncn_target_tool_prefix"; then
16579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16582 $as_echo_n "checking for $ac_word... " >&6; }
16583 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 if test -n "$WINDRES_FOR_TARGET"; then
16587 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16588 else
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16592 IFS=$as_save_IFS
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16598 break 2
16600 done
16601 done
16602 IFS=$as_save_IFS
16606 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16607 if test -n "$WINDRES_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16609 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16610 else
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16617 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy ${ncn_progname}; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16621 $as_echo_n "checking for $ac_word... " >&6; }
16622 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16623 $as_echo_n "(cached) " >&6
16624 else
16625 if test -n "$WINDRES_FOR_TARGET"; then
16626 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16627 else
16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629 for as_dir in $PATH
16631 IFS=$as_save_IFS
16632 test -z "$as_dir" && as_dir=.
16633 for ac_exec_ext in '' $ac_executable_extensions; do
16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16637 break 2
16639 done
16640 done
16641 IFS=$as_save_IFS
16645 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16646 if test -n "$WINDRES_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16648 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16649 else
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16656 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16657 done
16660 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16661 set dummy windres
16662 if test $build = $target ; then
16663 WINDRES_FOR_TARGET="$2"
16664 else
16665 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16667 else
16668 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16671 else
16672 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16678 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16679 if test -n "$with_build_time_tools"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16681 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16682 if test -x $with_build_time_tools/windmc; then
16683 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16684 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16686 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16687 else
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16689 $as_echo "no" >&6; }
16691 elif test $build != $host && test $have_gcc_for_target = yes; then
16692 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16693 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16694 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16697 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16698 # Extract the first word of "windmc", so it can be a program name with args.
16699 set dummy windmc; ac_word=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 $as_echo_n "checking for $ac_word... " >&6; }
16702 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16703 $as_echo_n "(cached) " >&6
16704 else
16705 case $WINDMC_FOR_TARGET in
16706 [\\/]* | ?:[\\/]*)
16707 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16711 for as_dir in $gcc_cv_tool_dirs
16713 IFS=$as_save_IFS
16714 test -z "$as_dir" && as_dir=.
16715 for ac_exec_ext in '' $ac_executable_extensions; do
16716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16717 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16719 break 2
16721 done
16722 done
16723 IFS=$as_save_IFS
16726 esac
16728 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16729 if test -n "$WINDMC_FOR_TARGET"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16731 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16732 else
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16734 $as_echo "no" >&6; }
16739 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16742 if test -n "$WINDMC_FOR_TARGET"; then
16743 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16744 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16745 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16748 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16749 for ncn_progname in windmc; do
16750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16751 set dummy ${ncn_progname}; ac_word=$2
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753 $as_echo_n "checking for $ac_word... " >&6; }
16754 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 if test -n "$WINDMC_FOR_TARGET"; then
16758 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16759 else
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769 break 2
16771 done
16772 done
16773 IFS=$as_save_IFS
16777 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16778 if test -n "$WINDMC_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16780 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16781 else
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16787 done
16790 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16791 for ncn_progname in windmc; do
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16794 if test -x $with_build_time_tools/${ncn_progname}; then
16795 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797 $as_echo "yes" >&6; }
16798 break
16799 else
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801 $as_echo "no" >&6; }
16803 done
16806 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16807 for ncn_progname in windmc; do
16808 if test -n "$ncn_target_tool_prefix"; then
16809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16812 $as_echo_n "checking for $ac_word... " >&6; }
16813 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached) " >&6
16815 else
16816 if test -n "$WINDMC_FOR_TARGET"; then
16817 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16818 else
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16822 IFS=$as_save_IFS
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16828 break 2
16830 done
16831 done
16832 IFS=$as_save_IFS
16836 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16837 if test -n "$WINDMC_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16839 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16840 else
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842 $as_echo "no" >&6; }
16847 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy ${ncn_progname}; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16851 $as_echo_n "checking for $ac_word... " >&6; }
16852 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 if test -n "$WINDMC_FOR_TARGET"; then
16856 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16857 else
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16861 IFS=$as_save_IFS
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16867 break 2
16869 done
16870 done
16871 IFS=$as_save_IFS
16875 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16876 if test -n "$WINDMC_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16878 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16879 else
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16881 $as_echo "no" >&6; }
16886 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16887 done
16890 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16891 set dummy windmc
16892 if test $build = $target ; then
16893 WINDMC_FOR_TARGET="$2"
16894 else
16895 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16897 else
16898 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16901 else
16902 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16906 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16909 $as_echo_n "checking where to find the target ar... " >&6; }
16910 if test "x${build}" != "x${host}" ; then
16911 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16912 # We already found the complete path
16913 ac_dir=`dirname $AR_FOR_TARGET`
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16915 $as_echo "pre-installed in $ac_dir" >&6; }
16916 else
16917 # Canadian cross, just use what we found
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16919 $as_echo "pre-installed" >&6; }
16921 else
16922 ok=yes
16923 case " ${configdirs} " in
16924 *" binutils "*) ;;
16925 *) ok=no ;;
16926 esac
16928 if test $ok = yes; then
16929 # An in-tree tool is available and we can use it
16930 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16932 $as_echo "just compiled" >&6; }
16933 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16934 # We already found the complete path
16935 ac_dir=`dirname $AR_FOR_TARGET`
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16937 $as_echo "pre-installed in $ac_dir" >&6; }
16938 elif test "x$target" = "x$host"; then
16939 # We can use an host tool
16940 AR_FOR_TARGET='$(AR)'
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16942 $as_echo "host tool" >&6; }
16943 else
16944 # We need a cross tool
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16946 $as_echo "pre-installed" >&6; }
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16951 $as_echo_n "checking where to find the target as... " >&6; }
16952 if test "x${build}" != "x${host}" ; then
16953 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16954 # We already found the complete path
16955 ac_dir=`dirname $AS_FOR_TARGET`
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16957 $as_echo "pre-installed in $ac_dir" >&6; }
16958 else
16959 # Canadian cross, just use what we found
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16961 $as_echo "pre-installed" >&6; }
16963 else
16964 ok=yes
16965 case " ${configdirs} " in
16966 *" gas "*) ;;
16967 *) ok=no ;;
16968 esac
16970 if test $ok = yes; then
16971 # An in-tree tool is available and we can use it
16972 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16974 $as_echo "just compiled" >&6; }
16975 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16976 # We already found the complete path
16977 ac_dir=`dirname $AS_FOR_TARGET`
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16979 $as_echo "pre-installed in $ac_dir" >&6; }
16980 elif test "x$target" = "x$host"; then
16981 # We can use an host tool
16982 AS_FOR_TARGET='$(AS)'
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16984 $as_echo "host tool" >&6; }
16985 else
16986 # We need a cross tool
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16988 $as_echo "pre-installed" >&6; }
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16993 $as_echo_n "checking where to find the target cc... " >&6; }
16994 if test "x${build}" != "x${host}" ; then
16995 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16996 # We already found the complete path
16997 ac_dir=`dirname $CC_FOR_TARGET`
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16999 $as_echo "pre-installed in $ac_dir" >&6; }
17000 else
17001 # Canadian cross, just use what we found
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17003 $as_echo "pre-installed" >&6; }
17005 else
17006 ok=yes
17007 case " ${configdirs} " in
17008 *" gcc "*) ;;
17009 *) ok=no ;;
17010 esac
17012 if test $ok = yes; then
17013 # An in-tree tool is available and we can use it
17014 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17016 $as_echo "just compiled" >&6; }
17017 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17018 # We already found the complete path
17019 ac_dir=`dirname $CC_FOR_TARGET`
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17021 $as_echo "pre-installed in $ac_dir" >&6; }
17022 elif test "x$target" = "x$host"; then
17023 # We can use an host tool
17024 CC_FOR_TARGET='$(CC)'
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17026 $as_echo "host tool" >&6; }
17027 else
17028 # We need a cross tool
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17030 $as_echo "pre-installed" >&6; }
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17035 $as_echo_n "checking where to find the target c++... " >&6; }
17036 if test "x${build}" != "x${host}" ; then
17037 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17038 # We already found the complete path
17039 ac_dir=`dirname $CXX_FOR_TARGET`
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17041 $as_echo "pre-installed in $ac_dir" >&6; }
17042 else
17043 # Canadian cross, just use what we found
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17045 $as_echo "pre-installed" >&6; }
17047 else
17048 ok=yes
17049 case " ${configdirs} " in
17050 *" gcc "*) ;;
17051 *) ok=no ;;
17052 esac
17053 case ,${enable_languages}, in
17054 *,c++,*) ;;
17055 *) ok=no ;;
17056 esac
17057 if test $ok = yes; then
17058 # An in-tree tool is available and we can use it
17059 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'
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17061 $as_echo "just compiled" >&6; }
17062 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17063 # We already found the complete path
17064 ac_dir=`dirname $CXX_FOR_TARGET`
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17066 $as_echo "pre-installed in $ac_dir" >&6; }
17067 elif test "x$target" = "x$host"; then
17068 # We can use an host tool
17069 CXX_FOR_TARGET='$(CXX)'
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17071 $as_echo "host tool" >&6; }
17072 else
17073 # We need a cross tool
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17075 $as_echo "pre-installed" >&6; }
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17080 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17081 if test "x${build}" != "x${host}" ; then
17082 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17083 # We already found the complete path
17084 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17086 $as_echo "pre-installed in $ac_dir" >&6; }
17087 else
17088 # Canadian cross, just use what we found
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17090 $as_echo "pre-installed" >&6; }
17092 else
17093 ok=yes
17094 case " ${configdirs} " in
17095 *" gcc "*) ;;
17096 *) ok=no ;;
17097 esac
17098 case ,${enable_languages}, in
17099 *,c++,*) ;;
17100 *) ok=no ;;
17101 esac
17102 if test $ok = yes; then
17103 # An in-tree tool is available and we can use it
17104 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'
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17106 $as_echo "just compiled" >&6; }
17107 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17108 # We already found the complete path
17109 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17111 $as_echo "pre-installed in $ac_dir" >&6; }
17112 elif test "x$target" = "x$host"; then
17113 # We can use an host tool
17114 RAW_CXX_FOR_TARGET='$(CXX)'
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17116 $as_echo "host tool" >&6; }
17117 else
17118 # We need a cross tool
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17120 $as_echo "pre-installed" >&6; }
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17125 $as_echo_n "checking where to find the target dlltool... " >&6; }
17126 if test "x${build}" != "x${host}" ; then
17127 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17128 # We already found the complete path
17129 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17131 $as_echo "pre-installed in $ac_dir" >&6; }
17132 else
17133 # Canadian cross, just use what we found
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17135 $as_echo "pre-installed" >&6; }
17137 else
17138 ok=yes
17139 case " ${configdirs} " in
17140 *" binutils "*) ;;
17141 *) ok=no ;;
17142 esac
17144 if test $ok = yes; then
17145 # An in-tree tool is available and we can use it
17146 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17148 $as_echo "just compiled" >&6; }
17149 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17150 # We already found the complete path
17151 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17153 $as_echo "pre-installed in $ac_dir" >&6; }
17154 elif test "x$target" = "x$host"; then
17155 # We can use an host tool
17156 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17158 $as_echo "host tool" >&6; }
17159 else
17160 # We need a cross tool
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17162 $as_echo "pre-installed" >&6; }
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17167 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17168 if test "x${build}" != "x${host}" ; then
17169 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17170 # We already found the complete path
17171 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17173 $as_echo "pre-installed in $ac_dir" >&6; }
17174 else
17175 # Canadian cross, just use what we found
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17177 $as_echo "pre-installed" >&6; }
17179 else
17180 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17181 # We already found the complete path
17182 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17184 $as_echo "pre-installed in $ac_dir" >&6; }
17185 elif test "x$target" = "x$host"; then
17186 # We can use an host tool
17187 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17189 $as_echo "host tool" >&6; }
17190 else
17191 # We need a cross tool
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17193 $as_echo "pre-installed" >&6; }
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17198 $as_echo_n "checking where to find the target gcc... " >&6; }
17199 if test "x${build}" != "x${host}" ; then
17200 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17201 # We already found the complete path
17202 ac_dir=`dirname $GCC_FOR_TARGET`
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17204 $as_echo "pre-installed in $ac_dir" >&6; }
17205 else
17206 # Canadian cross, just use what we found
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17208 $as_echo "pre-installed" >&6; }
17210 else
17211 ok=yes
17212 case " ${configdirs} " in
17213 *" gcc "*) ;;
17214 *) ok=no ;;
17215 esac
17217 if test $ok = yes; then
17218 # An in-tree tool is available and we can use it
17219 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17221 $as_echo "just compiled" >&6; }
17222 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17223 # We already found the complete path
17224 ac_dir=`dirname $GCC_FOR_TARGET`
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17226 $as_echo "pre-installed in $ac_dir" >&6; }
17227 elif test "x$target" = "x$host"; then
17228 # We can use an host tool
17229 GCC_FOR_TARGET='$()'
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17231 $as_echo "host tool" >&6; }
17232 else
17233 # We need a cross tool
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17235 $as_echo "pre-installed" >&6; }
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17240 $as_echo_n "checking where to find the target gfortran... " >&6; }
17241 if test "x${build}" != "x${host}" ; then
17242 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17243 # We already found the complete path
17244 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17246 $as_echo "pre-installed in $ac_dir" >&6; }
17247 else
17248 # Canadian cross, just use what we found
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17250 $as_echo "pre-installed" >&6; }
17252 else
17253 ok=yes
17254 case " ${configdirs} " in
17255 *" gcc "*) ;;
17256 *) ok=no ;;
17257 esac
17258 case ,${enable_languages}, in
17259 *,fortran,*) ;;
17260 *) ok=no ;;
17261 esac
17262 if test $ok = yes; then
17263 # An in-tree tool is available and we can use it
17264 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17266 $as_echo "just compiled" >&6; }
17267 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17268 # We already found the complete path
17269 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17271 $as_echo "pre-installed in $ac_dir" >&6; }
17272 elif test "x$target" = "x$host"; then
17273 # We can use an host tool
17274 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17276 $as_echo "host tool" >&6; }
17277 else
17278 # We need a cross tool
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17280 $as_echo "pre-installed" >&6; }
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17285 $as_echo_n "checking where to find the target gccgo... " >&6; }
17286 if test "x${build}" != "x${host}" ; then
17287 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17288 # We already found the complete path
17289 ac_dir=`dirname $GOC_FOR_TARGET`
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17291 $as_echo "pre-installed in $ac_dir" >&6; }
17292 else
17293 # Canadian cross, just use what we found
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17295 $as_echo "pre-installed" >&6; }
17297 else
17298 ok=yes
17299 case " ${configdirs} " in
17300 *" gcc "*) ;;
17301 *) ok=no ;;
17302 esac
17303 case ,${enable_languages}, in
17304 *,go,*) ;;
17305 *) ok=no ;;
17306 esac
17307 if test $ok = yes; then
17308 # An in-tree tool is available and we can use it
17309 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17311 $as_echo "just compiled" >&6; }
17312 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17313 # We already found the complete path
17314 ac_dir=`dirname $GOC_FOR_TARGET`
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17316 $as_echo "pre-installed in $ac_dir" >&6; }
17317 elif test "x$target" = "x$host"; then
17318 # We can use an host tool
17319 GOC_FOR_TARGET='$(GOC)'
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17321 $as_echo "host tool" >&6; }
17322 else
17323 # We need a cross tool
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17325 $as_echo "pre-installed" >&6; }
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17330 $as_echo_n "checking where to find the target gdc... " >&6; }
17331 if test "x${build}" != "x${host}" ; then
17332 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17333 # We already found the complete path
17334 ac_dir=`dirname $GDC_FOR_TARGET`
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17336 $as_echo "pre-installed in $ac_dir" >&6; }
17337 else
17338 # Canadian cross, just use what we found
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17340 $as_echo "pre-installed" >&6; }
17342 else
17343 ok=yes
17344 case " ${configdirs} " in
17345 *" gcc "*) ;;
17346 *) ok=no ;;
17347 esac
17348 case ,${enable_languages}, in
17349 *,d,*) ;;
17350 *) ok=no ;;
17351 esac
17352 if test $ok = yes; then
17353 # An in-tree tool is available and we can use it
17354 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17356 $as_echo "just compiled" >&6; }
17357 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17358 # We already found the complete path
17359 ac_dir=`dirname $GDC_FOR_TARGET`
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17361 $as_echo "pre-installed in $ac_dir" >&6; }
17362 elif test "x$target" = "x$host"; then
17363 # We can use an host tool
17364 GDC_FOR_TARGET='$(GDC)'
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17366 $as_echo "host tool" >&6; }
17367 else
17368 # We need a cross tool
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17375 $as_echo_n "checking where to find the target ld... " >&6; }
17376 if test "x${build}" != "x${host}" ; then
17377 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17378 # We already found the complete path
17379 ac_dir=`dirname $LD_FOR_TARGET`
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17381 $as_echo "pre-installed in $ac_dir" >&6; }
17382 else
17383 # Canadian cross, just use what we found
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17385 $as_echo "pre-installed" >&6; }
17387 else
17388 ok=yes
17389 case " ${configdirs} " in
17390 *" ld "*) ;;
17391 *) ok=no ;;
17392 esac
17394 if test $ok = yes; then
17395 # An in-tree tool is available and we can use it
17396 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17398 $as_echo "just compiled" >&6; }
17399 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17400 # We already found the complete path
17401 ac_dir=`dirname $LD_FOR_TARGET`
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17403 $as_echo "pre-installed in $ac_dir" >&6; }
17404 elif test "x$target" = "x$host"; then
17405 # We can use an host tool
17406 LD_FOR_TARGET='$(LD)'
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17408 $as_echo "host tool" >&6; }
17409 else
17410 # We need a cross tool
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17412 $as_echo "pre-installed" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17417 $as_echo_n "checking where to find the target lipo... " >&6; }
17418 if test "x${build}" != "x${host}" ; then
17419 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17420 # We already found the complete path
17421 ac_dir=`dirname $LIPO_FOR_TARGET`
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17423 $as_echo "pre-installed in $ac_dir" >&6; }
17424 else
17425 # Canadian cross, just use what we found
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17427 $as_echo "pre-installed" >&6; }
17429 else
17430 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17431 # We already found the complete path
17432 ac_dir=`dirname $LIPO_FOR_TARGET`
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17434 $as_echo "pre-installed in $ac_dir" >&6; }
17435 elif test "x$target" = "x$host"; then
17436 # We can use an host tool
17437 LIPO_FOR_TARGET='$(LIPO)'
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17439 $as_echo "host tool" >&6; }
17440 else
17441 # We need a cross tool
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17443 $as_echo "pre-installed" >&6; }
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17448 $as_echo_n "checking where to find the target nm... " >&6; }
17449 if test "x${build}" != "x${host}" ; then
17450 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17451 # We already found the complete path
17452 ac_dir=`dirname $NM_FOR_TARGET`
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17454 $as_echo "pre-installed in $ac_dir" >&6; }
17455 else
17456 # Canadian cross, just use what we found
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17458 $as_echo "pre-installed" >&6; }
17460 else
17461 ok=yes
17462 case " ${configdirs} " in
17463 *" binutils "*) ;;
17464 *) ok=no ;;
17465 esac
17467 if test $ok = yes; then
17468 # An in-tree tool is available and we can use it
17469 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17471 $as_echo "just compiled" >&6; }
17472 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17473 # We already found the complete path
17474 ac_dir=`dirname $NM_FOR_TARGET`
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17476 $as_echo "pre-installed in $ac_dir" >&6; }
17477 elif test "x$target" = "x$host"; then
17478 # We can use an host tool
17479 NM_FOR_TARGET='$(NM)'
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17481 $as_echo "host tool" >&6; }
17482 else
17483 # We need a cross tool
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17485 $as_echo "pre-installed" >&6; }
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17490 $as_echo_n "checking where to find the target objcopy... " >&6; }
17491 if test "x${build}" != "x${host}" ; then
17492 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17493 # We already found the complete path
17494 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17496 $as_echo "pre-installed in $ac_dir" >&6; }
17497 else
17498 # Canadian cross, just use what we found
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17500 $as_echo "pre-installed" >&6; }
17502 else
17503 ok=yes
17504 case " ${configdirs} " in
17505 *" binutils "*) ;;
17506 *) ok=no ;;
17507 esac
17509 if test $ok = yes; then
17510 # An in-tree tool is available and we can use it
17511 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17513 $as_echo "just compiled" >&6; }
17514 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17515 # We already found the complete path
17516 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17518 $as_echo "pre-installed in $ac_dir" >&6; }
17519 elif test "x$target" = "x$host"; then
17520 # We can use an host tool
17521 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17523 $as_echo "host tool" >&6; }
17524 else
17525 # We need a cross tool
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17527 $as_echo "pre-installed" >&6; }
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17532 $as_echo_n "checking where to find the target objdump... " >&6; }
17533 if test "x${build}" != "x${host}" ; then
17534 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17535 # We already found the complete path
17536 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17538 $as_echo "pre-installed in $ac_dir" >&6; }
17539 else
17540 # Canadian cross, just use what we found
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17542 $as_echo "pre-installed" >&6; }
17544 else
17545 ok=yes
17546 case " ${configdirs} " in
17547 *" binutils "*) ;;
17548 *) ok=no ;;
17549 esac
17551 if test $ok = yes; then
17552 # An in-tree tool is available and we can use it
17553 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17555 $as_echo "just compiled" >&6; }
17556 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17557 # We already found the complete path
17558 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17560 $as_echo "pre-installed in $ac_dir" >&6; }
17561 elif test "x$target" = "x$host"; then
17562 # We can use an host tool
17563 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17565 $as_echo "host tool" >&6; }
17566 else
17567 # We need a cross tool
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17569 $as_echo "pre-installed" >&6; }
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17574 $as_echo_n "checking where to find the target otool... " >&6; }
17575 if test "x${build}" != "x${host}" ; then
17576 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17577 # We already found the complete path
17578 ac_dir=`dirname $OTOOL_FOR_TARGET`
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17580 $as_echo "pre-installed in $ac_dir" >&6; }
17581 else
17582 # Canadian cross, just use what we found
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17584 $as_echo "pre-installed" >&6; }
17586 else
17587 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17588 # We already found the complete path
17589 ac_dir=`dirname $OTOOL_FOR_TARGET`
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17591 $as_echo "pre-installed in $ac_dir" >&6; }
17592 elif test "x$target" = "x$host"; then
17593 # We can use an host tool
17594 OTOOL_FOR_TARGET='$(OTOOL)'
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17596 $as_echo "host tool" >&6; }
17597 else
17598 # We need a cross tool
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17600 $as_echo "pre-installed" >&6; }
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17605 $as_echo_n "checking where to find the target ranlib... " >&6; }
17606 if test "x${build}" != "x${host}" ; then
17607 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17608 # We already found the complete path
17609 ac_dir=`dirname $RANLIB_FOR_TARGET`
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17611 $as_echo "pre-installed in $ac_dir" >&6; }
17612 else
17613 # Canadian cross, just use what we found
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17615 $as_echo "pre-installed" >&6; }
17617 else
17618 ok=yes
17619 case " ${configdirs} " in
17620 *" binutils "*) ;;
17621 *) ok=no ;;
17622 esac
17624 if test $ok = yes; then
17625 # An in-tree tool is available and we can use it
17626 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17628 $as_echo "just compiled" >&6; }
17629 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17630 # We already found the complete path
17631 ac_dir=`dirname $RANLIB_FOR_TARGET`
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17633 $as_echo "pre-installed in $ac_dir" >&6; }
17634 elif test "x$target" = "x$host"; then
17635 # We can use an host tool
17636 RANLIB_FOR_TARGET='$(RANLIB)'
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17638 $as_echo "host tool" >&6; }
17639 else
17640 # We need a cross tool
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17642 $as_echo "pre-installed" >&6; }
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17647 $as_echo_n "checking where to find the target readelf... " >&6; }
17648 if test "x${build}" != "x${host}" ; then
17649 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17650 # We already found the complete path
17651 ac_dir=`dirname $READELF_FOR_TARGET`
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17653 $as_echo "pre-installed in $ac_dir" >&6; }
17654 else
17655 # Canadian cross, just use what we found
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17657 $as_echo "pre-installed" >&6; }
17659 else
17660 ok=yes
17661 case " ${configdirs} " in
17662 *" binutils "*) ;;
17663 *) ok=no ;;
17664 esac
17666 if test $ok = yes; then
17667 # An in-tree tool is available and we can use it
17668 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17670 $as_echo "just compiled" >&6; }
17671 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17672 # We already found the complete path
17673 ac_dir=`dirname $READELF_FOR_TARGET`
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17675 $as_echo "pre-installed in $ac_dir" >&6; }
17676 elif test "x$target" = "x$host"; then
17677 # We can use an host tool
17678 READELF_FOR_TARGET='$(READELF)'
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17680 $as_echo "host tool" >&6; }
17681 else
17682 # We need a cross tool
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17684 $as_echo "pre-installed" >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17689 $as_echo_n "checking where to find the target strip... " >&6; }
17690 if test "x${build}" != "x${host}" ; then
17691 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17692 # We already found the complete path
17693 ac_dir=`dirname $STRIP_FOR_TARGET`
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17695 $as_echo "pre-installed in $ac_dir" >&6; }
17696 else
17697 # Canadian cross, just use what we found
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17699 $as_echo "pre-installed" >&6; }
17701 else
17702 ok=yes
17703 case " ${configdirs} " in
17704 *" binutils "*) ;;
17705 *) ok=no ;;
17706 esac
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712 $as_echo "just compiled" >&6; }
17713 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $STRIP_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 STRIP_FOR_TARGET='$(STRIP)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722 $as_echo "host tool" >&6; }
17723 else
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17731 $as_echo_n "checking where to find the target windres... " >&6; }
17732 if test "x${build}" != "x${host}" ; then
17733 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $WINDRES_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738 else
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741 $as_echo "pre-installed" >&6; }
17743 else
17744 ok=yes
17745 case " ${configdirs} " in
17746 *" binutils "*) ;;
17747 *) ok=no ;;
17748 esac
17750 if test $ok = yes; then
17751 # An in-tree tool is available and we can use it
17752 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17754 $as_echo "just compiled" >&6; }
17755 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17756 # We already found the complete path
17757 ac_dir=`dirname $WINDRES_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 WINDRES_FOR_TARGET='$(WINDRES)'
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 windmc" >&5
17773 $as_echo_n "checking where to find the target windmc... " >&6; }
17774 if test "x${build}" != "x${host}" ; then
17775 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17776 # We already found the complete path
17777 ac_dir=`dirname $WINDMC_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 *" binutils "*) ;;
17789 *) ok=no ;;
17790 esac
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $WINDMC_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 WINDMC_FOR_TARGET='$(WINDMC)'
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; }
17818 # Certain tools may need extra flags.
17819 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17820 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17821 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17823 # When building target libraries, except in a Canadian cross, we use
17824 # the same toolchain as the compiler we just built.
17825 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17826 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17827 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17828 if test $host = $build; then
17829 case " $configdirs " in
17830 *" gcc "*)
17831 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17832 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17833 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17835 esac
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17843 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17844 # Check whether --enable-maintainer-mode was given.
17845 if test "${enable_maintainer_mode+set}" = set; then :
17846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17847 else
17848 USE_MAINTAINER_MODE=no
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17852 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17855 if test "$USE_MAINTAINER_MODE" = yes; then
17856 MAINTAINER_MODE_TRUE=
17857 MAINTAINER_MODE_FALSE='#'
17858 else
17859 MAINTAINER_MODE_TRUE='#'
17860 MAINTAINER_MODE_FALSE=
17862 MAINT=$MAINTAINER_MODE_TRUE
17864 # ---------------------
17865 # GCC bootstrap support
17866 # ---------------------
17867 # omitted.
17870 ac_config_files="$ac_config_files Makefile"
17872 cat >confcache <<\_ACEOF
17873 # This file is a shell script that caches the results of configure
17874 # tests run on this system so they can be shared between configure
17875 # scripts and configure runs, see configure's option --config-cache.
17876 # It is not useful on other systems. If it contains results you don't
17877 # want to keep, you may remove or edit it.
17879 # config.status only pays attention to the cache file if you give it
17880 # the --recheck option to rerun configure.
17882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17884 # following values.
17886 _ACEOF
17888 # The following way of writing the cache mishandles newlines in values,
17889 # but we know of no workaround that is simple, portable, and efficient.
17890 # So, we kill variables containing newlines.
17891 # Ultrix sh set writes to stderr and can't be redirected directly,
17892 # and sets the high bit in the cache file unless we assign to the vars.
17894 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17895 eval ac_val=\$$ac_var
17896 case $ac_val in #(
17897 *${as_nl}*)
17898 case $ac_var in #(
17899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17901 esac
17902 case $ac_var in #(
17903 _ | IFS | as_nl) ;; #(
17904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17905 *) { eval $ac_var=; unset $ac_var;} ;;
17906 esac ;;
17907 esac
17908 done
17910 (set) 2>&1 |
17911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17912 *${as_nl}ac_space=\ *)
17913 # `set' does not quote correctly, so add quotes: double-quote
17914 # substitution turns \\\\ into \\, and sed turns \\ into \.
17915 sed -n \
17916 "s/'/'\\\\''/g;
17917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17918 ;; #(
17920 # `set' quotes correctly as required by POSIX, so do not add quotes.
17921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17923 esac |
17924 sort
17926 sed '
17927 /^ac_cv_env_/b end
17928 t clear
17929 :clear
17930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17931 t end
17932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17933 :end' >>confcache
17934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17935 if test -w "$cache_file"; then
17936 if test "x$cache_file" != "x/dev/null"; then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17938 $as_echo "$as_me: updating cache $cache_file" >&6;}
17939 if test ! -f "$cache_file" || test -h "$cache_file"; then
17940 cat confcache >"$cache_file"
17941 else
17942 case $cache_file in #(
17943 */* | ?:*)
17944 mv -f confcache "$cache_file"$$ &&
17945 mv -f "$cache_file"$$ "$cache_file" ;; #(
17947 mv -f confcache "$cache_file" ;;
17948 esac
17951 else
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17953 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17956 rm -f confcache
17958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17959 # Let make expand exec_prefix.
17960 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17962 # Transform confdefs.h into DEFS.
17963 # Protect against shell expansion while executing Makefile rules.
17964 # Protect against Makefile macro expansion.
17966 # If the first sed substitution is executed (which looks for macros that
17967 # take arguments), then branch to the quote section. Otherwise,
17968 # look for a macro that doesn't take arguments.
17969 ac_script='
17970 :mline
17971 /\\$/{
17973 s,\\\n,,
17974 b mline
17976 t clear
17977 :clear
17978 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17979 t quote
17980 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17981 t quote
17982 b any
17983 :quote
17984 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17985 s/\[/\\&/g
17986 s/\]/\\&/g
17987 s/\$/$$/g
17989 :any
17992 s/^\n//
17993 s/\n/ /g
17997 DEFS=`sed -n "$ac_script" confdefs.h`
18000 ac_libobjs=
18001 ac_ltlibobjs=
18003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18004 # 1. Remove the extension, and $U if already installed.
18005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18006 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18008 # will be set to the directory where LIBOBJS objects are built.
18009 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18010 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18011 done
18012 LIBOBJS=$ac_libobjs
18014 LTLIBOBJS=$ac_ltlibobjs
18018 : "${CONFIG_STATUS=./config.status}"
18019 ac_write_fail=0
18020 ac_clean_files_save=$ac_clean_files
18021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18024 as_write_fail=0
18025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18026 #! $SHELL
18027 # Generated by $as_me.
18028 # Run this file to recreate the current configuration.
18029 # Compiler output produced by configure, useful for debugging
18030 # configure, is in config.log if it exists.
18032 debug=false
18033 ac_cs_recheck=false
18034 ac_cs_silent=false
18036 SHELL=\${CONFIG_SHELL-$SHELL}
18037 export SHELL
18038 _ASEOF
18039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18040 ## -------------------- ##
18041 ## M4sh Initialization. ##
18042 ## -------------------- ##
18044 # Be more Bourne compatible
18045 DUALCASE=1; export DUALCASE # for MKS sh
18046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18047 emulate sh
18048 NULLCMD=:
18049 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18050 # is contrary to our usage. Disable this feature.
18051 alias -g '${1+"$@"}'='"$@"'
18052 setopt NO_GLOB_SUBST
18053 else
18054 case `(set -o) 2>/dev/null` in #(
18055 *posix*) :
18056 set -o posix ;; #(
18057 *) :
18059 esac
18063 as_nl='
18065 export as_nl
18066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18070 # Prefer a ksh shell builtin over an external printf program on Solaris,
18071 # but without wasting forks for bash or zsh.
18072 if test -z "$BASH_VERSION$ZSH_VERSION" \
18073 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18074 as_echo='print -r --'
18075 as_echo_n='print -rn --'
18076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18077 as_echo='printf %s\n'
18078 as_echo_n='printf %s'
18079 else
18080 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18081 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18082 as_echo_n='/usr/ucb/echo -n'
18083 else
18084 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18085 as_echo_n_body='eval
18086 arg=$1;
18087 case $arg in #(
18088 *"$as_nl"*)
18089 expr "X$arg" : "X\\(.*\\)$as_nl";
18090 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18091 esac;
18092 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18094 export as_echo_n_body
18095 as_echo_n='sh -c $as_echo_n_body as_echo'
18097 export as_echo_body
18098 as_echo='sh -c $as_echo_body as_echo'
18101 # The user is always right.
18102 if test "${PATH_SEPARATOR+set}" != set; then
18103 PATH_SEPARATOR=:
18104 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18105 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18106 PATH_SEPARATOR=';'
18111 # IFS
18112 # We need space, tab and new line, in precisely that order. Quoting is
18113 # there to prevent editors from complaining about space-tab.
18114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18115 # splitting by setting IFS to empty value.)
18116 IFS=" "" $as_nl"
18118 # Find who we are. Look in the path if we contain no directory separator.
18119 as_myself=
18120 case $0 in #((
18121 *[\\/]* ) as_myself=$0 ;;
18122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18125 IFS=$as_save_IFS
18126 test -z "$as_dir" && as_dir=.
18127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18128 done
18129 IFS=$as_save_IFS
18132 esac
18133 # We did not find ourselves, most probably we were run as `sh COMMAND'
18134 # in which case we are not to be found in the path.
18135 if test "x$as_myself" = x; then
18136 as_myself=$0
18138 if test ! -f "$as_myself"; then
18139 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18140 exit 1
18143 # Unset variables that we do not need and which cause bugs (e.g. in
18144 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18145 # suppresses any "Segmentation fault" message there. '((' could
18146 # trigger a bug in pdksh 5.2.14.
18147 for as_var in BASH_ENV ENV MAIL MAILPATH
18148 do eval test x\${$as_var+set} = xset \
18149 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18150 done
18151 PS1='$ '
18152 PS2='> '
18153 PS4='+ '
18155 # NLS nuisances.
18156 LC_ALL=C
18157 export LC_ALL
18158 LANGUAGE=C
18159 export LANGUAGE
18161 # CDPATH.
18162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18166 # ----------------------------------------
18167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18169 # script with STATUS, using 1 if that was 0.
18170 as_fn_error ()
18172 as_status=$1; test $as_status -eq 0 && as_status=1
18173 if test "$4"; then
18174 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18175 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18177 $as_echo "$as_me: error: $2" >&2
18178 as_fn_exit $as_status
18179 } # as_fn_error
18182 # as_fn_set_status STATUS
18183 # -----------------------
18184 # Set $? to STATUS, without forking.
18185 as_fn_set_status ()
18187 return $1
18188 } # as_fn_set_status
18190 # as_fn_exit STATUS
18191 # -----------------
18192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18193 as_fn_exit ()
18195 set +e
18196 as_fn_set_status $1
18197 exit $1
18198 } # as_fn_exit
18200 # as_fn_unset VAR
18201 # ---------------
18202 # Portably unset VAR.
18203 as_fn_unset ()
18205 { eval $1=; unset $1;}
18207 as_unset=as_fn_unset
18208 # as_fn_append VAR VALUE
18209 # ----------------------
18210 # Append the text in VALUE to the end of the definition contained in VAR. Take
18211 # advantage of any shell optimizations that allow amortized linear growth over
18212 # repeated appends, instead of the typical quadratic growth present in naive
18213 # implementations.
18214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18215 eval 'as_fn_append ()
18217 eval $1+=\$2
18219 else
18220 as_fn_append ()
18222 eval $1=\$$1\$2
18224 fi # as_fn_append
18226 # as_fn_arith ARG...
18227 # ------------------
18228 # Perform arithmetic evaluation on the ARGs, and store the result in the
18229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18230 # must be portable across $(()) and expr.
18231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18232 eval 'as_fn_arith ()
18234 as_val=$(( $* ))
18236 else
18237 as_fn_arith ()
18239 as_val=`expr "$@" || test $? -eq 1`
18241 fi # as_fn_arith
18244 if expr a : '\(a\)' >/dev/null 2>&1 &&
18245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18246 as_expr=expr
18247 else
18248 as_expr=false
18251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18252 as_basename=basename
18253 else
18254 as_basename=false
18257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18258 as_dirname=dirname
18259 else
18260 as_dirname=false
18263 as_me=`$as_basename -- "$0" ||
18264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18265 X"$0" : 'X\(//\)$' \| \
18266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18267 $as_echo X/"$0" |
18268 sed '/^.*\/\([^/][^/]*\)\/*$/{
18269 s//\1/
18272 /^X\/\(\/\/\)$/{
18273 s//\1/
18276 /^X\/\(\/\).*/{
18277 s//\1/
18280 s/.*/./; q'`
18282 # Avoid depending upon Character Ranges.
18283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18286 as_cr_digits='0123456789'
18287 as_cr_alnum=$as_cr_Letters$as_cr_digits
18289 ECHO_C= ECHO_N= ECHO_T=
18290 case `echo -n x` in #(((((
18291 -n*)
18292 case `echo 'xy\c'` in
18293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18294 xy) ECHO_C='\c';;
18295 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18296 ECHO_T=' ';;
18297 esac;;
18299 ECHO_N='-n';;
18300 esac
18302 rm -f conf$$ conf$$.exe conf$$.file
18303 if test -d conf$$.dir; then
18304 rm -f conf$$.dir/conf$$.file
18305 else
18306 rm -f conf$$.dir
18307 mkdir conf$$.dir 2>/dev/null
18309 if (echo >conf$$.file) 2>/dev/null; then
18310 if ln -s conf$$.file conf$$ 2>/dev/null; then
18311 as_ln_s='ln -s'
18312 # ... but there are two gotchas:
18313 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18314 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18315 # In both cases, we have to default to `cp -pR'.
18316 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18317 as_ln_s='cp -pR'
18318 elif ln conf$$.file conf$$ 2>/dev/null; then
18319 as_ln_s=ln
18320 else
18321 as_ln_s='cp -pR'
18323 else
18324 as_ln_s='cp -pR'
18326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18327 rmdir conf$$.dir 2>/dev/null
18330 # as_fn_mkdir_p
18331 # -------------
18332 # Create "$as_dir" as a directory, including parents if necessary.
18333 as_fn_mkdir_p ()
18336 case $as_dir in #(
18337 -*) as_dir=./$as_dir;;
18338 esac
18339 test -d "$as_dir" || eval $as_mkdir_p || {
18340 as_dirs=
18341 while :; do
18342 case $as_dir in #(
18343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18344 *) as_qdir=$as_dir;;
18345 esac
18346 as_dirs="'$as_qdir' $as_dirs"
18347 as_dir=`$as_dirname -- "$as_dir" ||
18348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18349 X"$as_dir" : 'X\(//\)[^/]' \| \
18350 X"$as_dir" : 'X\(//\)$' \| \
18351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18352 $as_echo X"$as_dir" |
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18354 s//\1/
18357 /^X\(\/\/\)[^/].*/{
18358 s//\1/
18361 /^X\(\/\/\)$/{
18362 s//\1/
18365 /^X\(\/\).*/{
18366 s//\1/
18369 s/.*/./; q'`
18370 test -d "$as_dir" && break
18371 done
18372 test -z "$as_dirs" || eval "mkdir $as_dirs"
18373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18376 } # as_fn_mkdir_p
18377 if mkdir -p . 2>/dev/null; then
18378 as_mkdir_p='mkdir -p "$as_dir"'
18379 else
18380 test -d ./-p && rmdir ./-p
18381 as_mkdir_p=false
18385 # as_fn_executable_p FILE
18386 # -----------------------
18387 # Test if FILE is an executable regular file.
18388 as_fn_executable_p ()
18390 test -f "$1" && test -x "$1"
18391 } # as_fn_executable_p
18392 as_test_x='test -x'
18393 as_executable_p=as_fn_executable_p
18395 # Sed expression to map a string onto a valid CPP name.
18396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18398 # Sed expression to map a string onto a valid variable name.
18399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18402 exec 6>&1
18403 ## ----------------------------------- ##
18404 ## Main body of $CONFIG_STATUS script. ##
18405 ## ----------------------------------- ##
18406 _ASEOF
18407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 # Save the log message, to keep $0 and so on meaningful, and to
18411 # report actual input values of CONFIG_FILES etc. instead of their
18412 # values after options handling.
18413 ac_log="
18414 This file was extended by $as_me, which was
18415 generated by GNU Autoconf 2.69. Invocation command line was
18417 CONFIG_FILES = $CONFIG_FILES
18418 CONFIG_HEADERS = $CONFIG_HEADERS
18419 CONFIG_LINKS = $CONFIG_LINKS
18420 CONFIG_COMMANDS = $CONFIG_COMMANDS
18421 $ $0 $@
18423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18426 _ACEOF
18428 case $ac_config_files in *"
18429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18430 esac
18434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18435 # Files that config.status was made for.
18436 config_files="$ac_config_files"
18438 _ACEOF
18440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18441 ac_cs_usage="\
18442 \`$as_me' instantiates files and other configuration actions
18443 from templates according to the current configuration. Unless the files
18444 and actions are specified as TAGs, all are instantiated by default.
18446 Usage: $0 [OPTION]... [TAG]...
18448 -h, --help print this help, then exit
18449 -V, --version print version number and configuration settings, then exit
18450 --config print configuration, then exit
18451 -q, --quiet, --silent
18452 do not print progress messages
18453 -d, --debug don't remove temporary files
18454 --recheck update $as_me by reconfiguring in the same conditions
18455 --file=FILE[:TEMPLATE]
18456 instantiate the configuration file FILE
18458 Configuration files:
18459 $config_files
18461 Report bugs to the package provider."
18463 _ACEOF
18464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18465 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18466 ac_cs_version="\\
18467 config.status
18468 configured by $0, generated by GNU Autoconf 2.69,
18469 with options \\"\$ac_cs_config\\"
18471 Copyright (C) 2012 Free Software Foundation, Inc.
18472 This config.status script is free software; the Free Software Foundation
18473 gives unlimited permission to copy, distribute and modify it."
18475 ac_pwd='$ac_pwd'
18476 srcdir='$srcdir'
18477 INSTALL='$INSTALL'
18478 AWK='$AWK'
18479 test -n "\$AWK" || AWK=awk
18480 _ACEOF
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18483 # The default lists apply if the user does not specify any file.
18484 ac_need_defaults=:
18485 while test $# != 0
18487 case $1 in
18488 --*=?*)
18489 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18490 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18491 ac_shift=:
18493 --*=)
18494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18495 ac_optarg=
18496 ac_shift=:
18499 ac_option=$1
18500 ac_optarg=$2
18501 ac_shift=shift
18503 esac
18505 case $ac_option in
18506 # Handling of the options.
18507 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18508 ac_cs_recheck=: ;;
18509 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18510 $as_echo "$ac_cs_version"; exit ;;
18511 --config | --confi | --conf | --con | --co | --c )
18512 $as_echo "$ac_cs_config"; exit ;;
18513 --debug | --debu | --deb | --de | --d | -d )
18514 debug=: ;;
18515 --file | --fil | --fi | --f )
18516 $ac_shift
18517 case $ac_optarg in
18518 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18519 '') as_fn_error $? "missing file argument" ;;
18520 esac
18521 as_fn_append CONFIG_FILES " '$ac_optarg'"
18522 ac_need_defaults=false;;
18523 --he | --h | --help | --hel | -h )
18524 $as_echo "$ac_cs_usage"; exit ;;
18525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18527 ac_cs_silent=: ;;
18529 # This is an error.
18530 -*) as_fn_error $? "unrecognized option: \`$1'
18531 Try \`$0 --help' for more information." ;;
18533 *) as_fn_append ac_config_targets " $1"
18534 ac_need_defaults=false ;;
18536 esac
18537 shift
18538 done
18540 ac_configure_extra_args=
18542 if $ac_cs_silent; then
18543 exec 6>/dev/null
18544 ac_configure_extra_args="$ac_configure_extra_args --silent"
18547 _ACEOF
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 if \$ac_cs_recheck; then
18550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18551 shift
18552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18553 CONFIG_SHELL='$SHELL'
18554 export CONFIG_SHELL
18555 exec "\$@"
18558 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 exec 5>>config.log
18562 echo
18563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18564 ## Running $as_me. ##
18565 _ASBOX
18566 $as_echo "$ac_log"
18567 } >&5
18569 _ACEOF
18570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572 # INIT-COMMANDS
18574 extrasub_build="$extrasub_build"
18575 extrasub_host="$extrasub_host"
18576 extrasub_target="$extrasub_target"
18578 _ACEOF
18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18582 # Handling of arguments.
18583 for ac_config_target in $ac_config_targets
18585 case $ac_config_target in
18586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18588 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18589 esac
18590 done
18593 # If the user did not use the arguments to specify the items to instantiate,
18594 # then the envvar interface is used. Set only those that are not.
18595 # We use the long form for the default assignment because of an extremely
18596 # bizarre bug on SunOS 4.1.3.
18597 if $ac_need_defaults; then
18598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18601 # Have a temporary directory for convenience. Make it in the build tree
18602 # simply because there is no reason against having it here, and in addition,
18603 # creating and moving files from /tmp can sometimes cause problems.
18604 # Hook for its removal unless debugging.
18605 # Note that there is a small window in which the directory will not be cleaned:
18606 # after its creation but before its name has been assigned to `$tmp'.
18607 $debug ||
18609 tmp= ac_tmp=
18610 trap 'exit_status=$?
18611 : "${ac_tmp:=$tmp}"
18612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18614 trap 'as_fn_exit 1' 1 2 13 15
18616 # Create a (secure) tmp directory for tmp files.
18619 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18620 test -d "$tmp"
18621 } ||
18623 tmp=./conf$$-$RANDOM
18624 (umask 077 && mkdir "$tmp")
18625 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18626 ac_tmp=$tmp
18628 # Set up the scripts for CONFIG_FILES section.
18629 # No need to generate them if there are no CONFIG_FILES.
18630 # This happens for instance with `./config.status config.h'.
18631 if test -n "$CONFIG_FILES"; then
18633 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18634 ac_cs_awk_getline=:
18635 ac_cs_awk_pipe_init=
18636 ac_cs_awk_read_file='
18637 while ((getline aline < (F[key])) > 0)
18638 print(aline)
18639 close(F[key])'
18640 ac_cs_awk_pipe_fini=
18641 else
18642 ac_cs_awk_getline=false
18643 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18644 ac_cs_awk_read_file='
18645 print "|#_!!_#|"
18646 print "cat " F[key] " &&"
18647 '$ac_cs_awk_pipe_init
18648 # The final `:' finishes the AND list.
18649 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18651 ac_cr=`echo X | tr X '\015'`
18652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18653 # But we know of no other shell where ac_cr would be empty at this
18654 # point, so we can use a bashism as a fallback.
18655 if test "x$ac_cr" = x; then
18656 eval ac_cr=\$\'\\r\'
18658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18660 ac_cs_awk_cr='\\r'
18661 else
18662 ac_cs_awk_cr=$ac_cr
18665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18666 _ACEOF
18668 # Create commands to substitute file output variables.
18670 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18671 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18672 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18673 echo "_ACAWK" &&
18674 echo "_ACEOF"
18675 } >conf$$files.sh &&
18676 . ./conf$$files.sh ||
18677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18678 rm -f conf$$files.sh
18681 echo "cat >conf$$subs.awk <<_ACEOF" &&
18682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18683 echo "_ACEOF"
18684 } >conf$$subs.sh ||
18685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18687 ac_delim='%!_!# '
18688 for ac_last_try in false false false false false :; do
18689 . ./conf$$subs.sh ||
18690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18693 if test $ac_delim_n = $ac_delim_num; then
18694 break
18695 elif $ac_last_try; then
18696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18697 else
18698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18700 done
18701 rm -f conf$$subs.sh
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18705 _ACEOF
18706 sed -n '
18708 s/^/S["/; s/!.*/"]=/
18711 s/^[^!]*!//
18712 :repl
18713 t repl
18714 s/'"$ac_delim"'$//
18715 t delim
18718 s/\(.\{148\}\)..*/\1/
18719 t more1
18720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18723 b repl
18724 :more1
18725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18728 s/.\{148\}//
18729 t nl
18730 :delim
18732 s/\(.\{148\}\)..*/\1/
18733 t more2
18734 s/["\\]/\\&/g; s/^/"/; s/$/"/
18737 :more2
18738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18741 s/.\{148\}//
18742 t delim
18743 ' <conf$$subs.awk | sed '
18744 /^[^""]/{
18746 s/\n//
18748 ' >>$CONFIG_STATUS || ac_write_fail=1
18749 rm -f conf$$subs.awk
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751 _ACAWK
18752 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18753 for (key in S) S_is_set[key] = 1
18754 FS = "\a"
18755 \$ac_cs_awk_pipe_init
18758 line = $ 0
18759 nfields = split(line, field, "@")
18760 substed = 0
18761 len = length(field[1])
18762 for (i = 2; i < nfields; i++) {
18763 key = field[i]
18764 keylen = length(key)
18765 if (S_is_set[key]) {
18766 value = S[key]
18767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18768 len += length(value) + length(field[++i])
18769 substed = 1
18770 } else
18771 len += 1 + keylen
18773 if (nfields == 3 && !substed) {
18774 key = field[2]
18775 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18776 \$ac_cs_awk_read_file
18777 next
18780 print line
18782 \$ac_cs_awk_pipe_fini
18783 _ACAWK
18784 _ACEOF
18785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18786 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18788 else
18790 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18791 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18792 _ACEOF
18794 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18795 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18796 # trailing colons and then remove the whole line if VPATH becomes empty
18797 # (actually we leave an empty line to preserve line numbers).
18798 if test "x$srcdir" = x.; then
18799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18801 s///
18802 s/^/:/
18803 s/[ ]*$/:/
18804 s/:\$(srcdir):/:/g
18805 s/:\${srcdir}:/:/g
18806 s/:@srcdir@:/:/g
18807 s/^:*//
18808 s/:*$//
18810 s/\(=[ ]*\).*/\1/
18812 s/\n//
18813 s/^[^=]*=[ ]*$//
18817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18818 fi # test -n "$CONFIG_FILES"
18821 eval set X " :F $CONFIG_FILES "
18822 shift
18823 for ac_tag
18825 case $ac_tag in
18826 :[FHLC]) ac_mode=$ac_tag; continue;;
18827 esac
18828 case $ac_mode$ac_tag in
18829 :[FHL]*:*);;
18830 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18831 :[FH]-) ac_tag=-:-;;
18832 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18833 esac
18834 ac_save_IFS=$IFS
18835 IFS=:
18836 set x $ac_tag
18837 IFS=$ac_save_IFS
18838 shift
18839 ac_file=$1
18840 shift
18842 case $ac_mode in
18843 :L) ac_source=$1;;
18844 :[FH])
18845 ac_file_inputs=
18846 for ac_f
18848 case $ac_f in
18849 -) ac_f="$ac_tmp/stdin";;
18850 *) # Look for the file first in the build tree, then in the source tree
18851 # (if the path is not absolute). The absolute path cannot be DOS-style,
18852 # because $ac_f cannot contain `:'.
18853 test -f "$ac_f" ||
18854 case $ac_f in
18855 [\\/$]*) false;;
18856 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18857 esac ||
18858 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18859 esac
18860 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18861 as_fn_append ac_file_inputs " '$ac_f'"
18862 done
18864 # Let's still pretend it is `configure' which instantiates (i.e., don't
18865 # use $as_me), people would be surprised to read:
18866 # /* config.h. Generated by config.status. */
18867 configure_input='Generated from '`
18868 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18869 `' by configure.'
18870 if test x"$ac_file" != x-; then
18871 configure_input="$ac_file. $configure_input"
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18873 $as_echo "$as_me: creating $ac_file" >&6;}
18875 # Neutralize special characters interpreted by sed in replacement strings.
18876 case $configure_input in #(
18877 *\&* | *\|* | *\\* )
18878 ac_sed_conf_input=`$as_echo "$configure_input" |
18879 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18880 *) ac_sed_conf_input=$configure_input;;
18881 esac
18883 case $ac_tag in
18884 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18886 esac
18888 esac
18890 ac_dir=`$as_dirname -- "$ac_file" ||
18891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18892 X"$ac_file" : 'X\(//\)[^/]' \| \
18893 X"$ac_file" : 'X\(//\)$' \| \
18894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18895 $as_echo X"$ac_file" |
18896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18897 s//\1/
18900 /^X\(\/\/\)[^/].*/{
18901 s//\1/
18904 /^X\(\/\/\)$/{
18905 s//\1/
18908 /^X\(\/\).*/{
18909 s//\1/
18912 s/.*/./; q'`
18913 as_dir="$ac_dir"; as_fn_mkdir_p
18914 ac_builddir=.
18916 case "$ac_dir" in
18917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18919 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18920 # A ".." for each directory in $ac_dir_suffix.
18921 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18922 case $ac_top_builddir_sub in
18923 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18924 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18925 esac ;;
18926 esac
18927 ac_abs_top_builddir=$ac_pwd
18928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18929 # for backward compatibility:
18930 ac_top_builddir=$ac_top_build_prefix
18932 case $srcdir in
18933 .) # We are building in place.
18934 ac_srcdir=.
18935 ac_top_srcdir=$ac_top_builddir_sub
18936 ac_abs_top_srcdir=$ac_pwd ;;
18937 [\\/]* | ?:[\\/]* ) # Absolute name.
18938 ac_srcdir=$srcdir$ac_dir_suffix;
18939 ac_top_srcdir=$srcdir
18940 ac_abs_top_srcdir=$srcdir ;;
18941 *) # Relative name.
18942 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18943 ac_top_srcdir=$ac_top_build_prefix$srcdir
18944 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18945 esac
18946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18949 case $ac_mode in
18952 # CONFIG_FILE
18955 case $INSTALL in
18956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18957 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18958 esac
18959 _ACEOF
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 # If the template does not know about datarootdir, expand it.
18963 # FIXME: This hack should be removed a few years after 2.60.
18964 ac_datarootdir_hack=; ac_datarootdir_seen=
18965 ac_sed_dataroot='
18966 /datarootdir/ {
18970 /@datadir@/p
18971 /@docdir@/p
18972 /@infodir@/p
18973 /@localedir@/p
18974 /@mandir@/p'
18975 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18976 *datarootdir*) ac_datarootdir_seen=yes;;
18977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18979 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18980 _ACEOF
18981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18982 ac_datarootdir_hack='
18983 s&@datadir@&$datadir&g
18984 s&@docdir@&$docdir&g
18985 s&@infodir@&$infodir&g
18986 s&@localedir@&$localedir&g
18987 s&@mandir@&$mandir&g
18988 s&\\\${datarootdir}&$datarootdir&g' ;;
18989 esac
18990 _ACEOF
18992 # Neutralize VPATH when `$srcdir' = `.'.
18993 # Shell code in configure.ac might set extrasub.
18994 # FIXME: do we really want to maintain this feature?
18995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996 ac_sed_extra="$ac_vpsub
18997 $extrasub
18998 _ACEOF
18999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19002 s|@configure_input@|$ac_sed_conf_input|;t t
19003 s&@top_builddir@&$ac_top_builddir_sub&;t t
19004 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19005 s&@srcdir@&$ac_srcdir&;t t
19006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19007 s&@top_srcdir@&$ac_top_srcdir&;t t
19008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19009 s&@builddir@&$ac_builddir&;t t
19010 s&@abs_builddir@&$ac_abs_builddir&;t t
19011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19012 s&@INSTALL@&$ac_INSTALL&;t t
19013 $ac_datarootdir_hack
19015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19016 if $ac_cs_awk_getline; then
19017 $AWK -f "$ac_tmp/subs.awk"
19018 else
19019 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19020 fi \
19021 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19023 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19024 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19025 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19026 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19028 which seems to be undefined. Please make sure it is defined" >&5
19029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19030 which seems to be undefined. Please make sure it is defined" >&2;}
19032 rm -f "$ac_tmp/stdin"
19033 case $ac_file in
19034 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19035 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19036 esac \
19037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19042 esac
19045 case $ac_file$ac_mode in
19046 "Makefile":F) sed "$extrasub_build" Makefile |
19047 sed "$extrasub_host" |
19048 sed "$extrasub_target" > mf$$
19049 mv -f mf$$ Makefile ;;
19051 esac
19052 done # for ac_tag
19055 as_fn_exit 0
19056 _ACEOF
19057 ac_clean_files=$ac_clean_files_save
19059 test $ac_write_fail = 0 ||
19060 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19063 # configure is writing to config.log, and then calls config.status.
19064 # config.status does its own redirection, appending to config.log.
19065 # Unfortunately, on DOS this fails, as config.log is still kept open
19066 # by configure, so config.status won't be able to write to it; its
19067 # output is simply discarded. So we exec the FD to /dev/null,
19068 # effectively closing config.log, so it can be properly (re)opened and
19069 # appended to by config.status. When coming back to configure, we
19070 # need to make the FD available again.
19071 if test "$no_create" != yes; then
19072 ac_cs_success=:
19073 ac_config_status_args=
19074 test "$silent" = yes &&
19075 ac_config_status_args="$ac_config_status_args --quiet"
19076 exec 5>/dev/null
19077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19078 exec 5>>config.log
19079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19080 # would make configure fail if this is the last instruction.
19081 $ac_cs_success || as_fn_exit 1
19083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}