Compute a table of DWARF register sizes at compile
[official-gcc.git] / configure
blobd6716e38e99e3a779851775cc142002c4257af61
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GM2_FOR_TARGET
617 GDC_FOR_TARGET
618 GOC_FOR_TARGET
619 GFORTRAN_FOR_TARGET
620 GCC_FOR_TARGET
621 CXX_FOR_TARGET
622 CC_FOR_TARGET
623 GDCFLAGS
624 READELF
625 OTOOL
626 OBJDUMP
627 OBJCOPY
628 WINDMC
629 WINDRES
630 STRIP
631 RANLIB
633 LIPO
635 DSYMUTIL
636 DLLTOOL
639 RUNTEST
640 EXPECT
641 MAKEINFO
642 FLEX
645 BISON
646 YACC
647 WINDRES_FOR_BUILD
648 WINDMC_FOR_BUILD
649 RANLIB_FOR_BUILD
650 NM_FOR_BUILD
651 LD_FOR_BUILD
652 LDFLAGS_FOR_BUILD
653 GDC_FOR_BUILD
654 GOC_FOR_BUILD
655 GFORTRAN_FOR_BUILD
656 DSYMUTIL_FOR_BUILD
657 DLLTOOL_FOR_BUILD
658 CXX_FOR_BUILD
659 CXXFLAGS_FOR_BUILD
660 CPPFLAGS_FOR_BUILD
661 CPP_FOR_BUILD
662 CFLAGS_FOR_BUILD
663 CC_FOR_BUILD
664 AS_FOR_BUILD
665 AR_FOR_BUILD
666 target_configdirs
667 configdirs
668 build_configdirs
669 INSTALL_GDB_TK
670 GDB_TK
671 CONFIGURE_GDB_TK
672 build_tooldir
673 tooldir
674 GCC_SHLIB_SUBDIR
675 RPATH_ENVVAR
676 target_configargs
677 host_configargs
678 build_configargs
679 BUILD_CONFIG
680 LDFLAGS_FOR_TARGET
681 CXXFLAGS_FOR_TARGET
682 CFLAGS_FOR_TARGET
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
685 get_gcc_base_ver
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
688 stage1_languages
689 host_libs_picflag
690 host_shared
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
693 islinc
694 isllibs
695 poststage1_ldflags
696 poststage1_libs
697 stage1_ldflags
698 stage1_libs
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
703 gmpinc
704 gmplibs
705 PGO_BUILD_LTO_CFLAGS
706 PGO_BUILD_USE_CFLAGS
707 PGO_BUILD_GEN_CFLAGS
708 HAVE_CXX11_FOR_BUILD
709 HAVE_CXX11
710 do_compare
712 GNATMAKE
713 GNATBIND
714 ac_ct_CXX
715 CXXFLAGS
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
724 target_subdir
725 host_subdir
726 build_subdir
727 build_libsubdir
730 LN_S
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 target_noncanonical
744 host_noncanonical
745 build_noncanonical
746 build_os
747 build_vendor
748 build_cpu
749 build
750 TOPLEVEL_CONFIGURE_ARGUMENTS
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files='serialization_dependencies
790 host_makefile_frag
791 target_makefile_frag
792 alphaieee_frag
793 ospace_frag'
794 ac_user_opts='
795 enable_option_checking
796 with_build_libsubdir
797 with_system_zlib
798 enable_as_accelerator_for
799 enable_offload_targets
800 enable_offload_defaulted
801 enable_gold
802 enable_ld
803 enable_compressed_debug_sections
804 enable_libquadmath
805 enable_libquadmath_support
806 enable_libada
807 enable_libgm2
808 enable_libssp
809 enable_libstdcxx
810 enable_bootstrap
811 enable_pgo_build
812 with_mpc
813 with_mpc_include
814 with_mpc_lib
815 with_mpfr
816 with_mpfr_include
817 with_mpfr_lib
818 with_gmp
819 with_gmp_include
820 with_gmp_lib
821 with_stage1_libs
822 with_static_standard_libraries
823 with_stage1_ldflags
824 with_boot_libs
825 with_boot_ldflags
826 with_isl
827 with_isl_include
828 with_isl_lib
829 enable_isl_version_check
830 enable_lto
831 enable_linker_plugin_configure_flags
832 enable_linker_plugin_flags
833 enable_host_shared
834 enable_stage1_languages
835 enable_objc_gc
836 with_target_bdw_gc
837 with_target_bdw_gc_include
838 with_target_bdw_gc_lib
839 with_gcc_major_version_only
840 with_build_sysroot
841 with_debug_prefix_map
842 with_build_config
843 enable_vtable_verify
844 enable_serial_configure
845 with_build_time_tools
846 enable_maintainer_mode
847 enable_stage1_checking
848 enable_werror
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
859 CXXFLAGS
861 build_configargs
862 host_configargs
863 target_configargs
866 DLLTOOL
867 DSYMUTIL
869 LIPO
871 RANLIB
872 STRIP
873 WINDRES
874 WINDMC
875 OBJCOPY
876 OBJDUMP
877 OTOOL
878 READELF
879 CC_FOR_TARGET
880 CXX_FOR_TARGET
881 GCC_FOR_TARGET
882 GFORTRAN_FOR_TARGET
883 GOC_FOR_TARGET
884 GDC_FOR_TARGET
885 GM2_FOR_TARGET
886 AR_FOR_TARGET
887 AS_FOR_TARGET
888 DLLTOOL_FOR_TARGET
889 DSYMUTIL_FOR_TARGET
890 LD_FOR_TARGET
891 LIPO_FOR_TARGET
892 NM_FOR_TARGET
893 OBJCOPY_FOR_TARGET
894 OBJDUMP_FOR_TARGET
895 OTOOL_FOR_TARGET
896 RANLIB_FOR_TARGET
897 READELF_FOR_TARGET
898 STRIP_FOR_TARGET
899 WINDRES_FOR_TARGET
900 WINDMC_FOR_TARGET'
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
951 ac_prev=
952 ac_dashdash=
953 for ac_option
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
972 ac_dashdash=yes ;;
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
991 --config-cache | -C)
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1361 ac_tool_prefix=
1362 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364 test "$silent" = yes && exec 6>/dev/null
1367 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368 ac_ls_di=`ls -di .` &&
1369 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384 $as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1393 /^X\(\/\/\)$/{
1394 s//\1/
1397 /^X\(\/\).*/{
1398 s//\1/
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1406 else
1407 ac_srcdir_defaulted=no
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1413 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417 # When building in place, set srcdir=.
1418 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1421 # Remove unnecessary trailing slashes from srcdir.
1422 # Double slashes in file names in object file debugging info
1423 # mess up M-x gdb in Emacs.
1424 case $srcdir in
1425 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 esac
1427 case $srcdir in
1428 *" "*)
1429 as_fn_error $? "path to source, $srcdir, contains spaces"
1431 esac
1432 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1503 cat <<\_ACEOF
1505 Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514 _ACEOF
1517 if test -n "$ac_init_help"; then
1519 cat <<\_ACEOF
1521 Optional Features:
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1527 host triple by ARG
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1540 Enable compressed debug sections for gas, gold or ld
1541 by default
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
1545 --enable-libada build libada directory
1546 --enable-libgm2 build libgm2 directory
1547 --enable-libssp build libssp directory
1548 --disable-libstdcxx do not build libstdc++-v3 directory
1549 --enable-bootstrap enable bootstrapping [yes if native build]
1550 --enable-pgo-build[=lto]
1551 enable the PGO build
1552 --disable-isl-version-check
1553 disable check for isl version
1554 --enable-lto enable link time optimization support
1555 --enable-linker-plugin-configure-flags=FLAGS
1556 additional flags for configuring linker plugins
1557 [none]
1558 --enable-linker-plugin-flags=FLAGS
1559 additional flags for configuring and building linker
1560 plugins [none]
1561 --enable-host-shared build host code as shared libraries
1562 --enable-stage1-languages[=all]
1563 choose additional languages to build during stage1.
1564 Mostly useful for compiler development
1565 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1566 Objective-C runtime
1567 --enable-vtable-verify Enable vtable verification feature
1568 --enable-serial-[{host,target,build}-]configure
1569 force sequential configuration of sub-packages for
1570 the host, target or build machine, or all
1571 sub-packages
1572 --enable-maintainer-mode
1573 enable make rules and dependencies not useful (and
1574 sometimes confusing) to the casual installer
1575 --enable-stage1-checking[=all]
1576 choose additional checking for stage1 of the
1577 compiler
1578 --enable-werror enable -Werror in bootstrap stage2 and later
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-build-libsubdir=DIR Directory where to find libraries for build system
1584 --with-system-zlib use installed libz
1585 --with-mpc=PATH specify prefix directory for installed MPC package.
1586 Equivalent to --with-mpc-include=PATH/include plus
1587 --with-mpc-lib=PATH/lib
1588 --with-mpc-include=PATH specify directory for installed MPC include files
1589 --with-mpc-lib=PATH specify directory for the installed MPC library
1590 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1591 Equivalent to --with-mpfr-include=PATH/include plus
1592 --with-mpfr-lib=PATH/lib
1593 --with-mpfr-include=PATH
1594 specify directory for installed MPFR include files
1595 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1596 --with-gmp=PATH specify prefix directory for the installed GMP
1597 package. Equivalent to
1598 --with-gmp-include=PATH/include plus
1599 --with-gmp-lib=PATH/lib
1600 --with-gmp-include=PATH specify directory for installed GMP include files
1601 --with-gmp-lib=PATH specify directory for the installed GMP library
1602 --with-stage1-libs=LIBS libraries for stage1
1603 --with-static-standard-libraries
1604 use -static-libstdc++ and -static-libgcc
1605 (default=auto)
1606 --with-stage1-ldflags=FLAGS
1607 linker flags for stage1
1608 --with-boot-libs=LIBS libraries for stage2 and later
1609 --with-boot-ldflags=FLAGS
1610 linker flags for stage2 and later
1611 --with-isl=PATH Specify prefix directory for the installed isl
1612 package. Equivalent to
1613 --with-isl-include=PATH/include plus
1614 --with-isl-lib=PATH/lib
1615 --with-isl-include=PATH Specify directory for installed isl include files
1616 --with-isl-lib=PATH Specify the directory for the installed isl library
1617 --with-target-bdw-gc=PATHLIST
1618 specify prefix directory for installed bdw-gc
1619 package. Equivalent to
1620 --with-target-bdw-gc-include=PATH/include plus
1621 --with-target-bdw-gc-lib=PATH/lib
1622 --with-target-bdw-gc-include=PATHLIST
1623 specify directories for installed bdw-gc include
1624 files
1625 --with-target-bdw-gc-lib=PATHLIST
1626 specify directories for installed bdw-gc library
1627 --with-gcc-major-version-only
1628 use only GCC major number in filesystem paths
1629 --with-build-sysroot=SYSROOT
1630 use sysroot as the system root during the build
1631 --with-debug-prefix-map='A=B C=D ...'
1632 map A to B, C to D ... in debug information
1633 --with-build-config='NAME NAME2...'
1634 use config/NAME.mk build configuration
1635 --with-build-time-tools=PATH
1636 use given path to find target tools during the build
1638 Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
1643 LIBS libraries to pass to the linker, e.g. -l<library>
1644 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1645 you have headers in a nonstandard directory <include dir>
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
1648 build_configargs
1649 additional configure arguments for build directories
1650 host_configargs
1651 additional configure arguments for host directories
1652 target_configargs
1653 additional configure arguments for target directories
1654 AR AR for the host
1655 AS AS for the host
1656 DLLTOOL DLLTOOL for the host
1657 DSYMUTIL DSYMUTIL for the host
1658 LD LD for the host
1659 LIPO LIPO for the host
1660 NM NM for the host
1661 RANLIB RANLIB for the host
1662 STRIP STRIP for the host
1663 WINDRES WINDRES for the host
1664 WINDMC WINDMC for the host
1665 OBJCOPY OBJCOPY for the host
1666 OBJDUMP OBJDUMP for the host
1667 OTOOL OTOOL for the host
1668 READELF READELF for the host
1669 CC_FOR_TARGET
1670 CC for the target
1671 CXX_FOR_TARGET
1672 CXX for the target
1673 GCC_FOR_TARGET
1674 GCC for the target
1675 GFORTRAN_FOR_TARGET
1676 GFORTRAN for the target
1677 GOC_FOR_TARGET
1678 GOC for the target
1679 GDC_FOR_TARGET
1680 GDC for the target
1681 GM2_FOR_TARGET
1682 GM2 for the target
1683 AR_FOR_TARGET
1684 AR for the target
1685 AS_FOR_TARGET
1686 AS for the target
1687 DLLTOOL_FOR_TARGET
1688 DLLTOOL for the target
1689 DSYMUTIL_FOR_TARGET
1690 DSYMUTIL for the target
1691 LD_FOR_TARGET
1692 LD for the target
1693 LIPO_FOR_TARGET
1694 LIPO for the target
1695 NM_FOR_TARGET
1696 NM for the target
1697 OBJCOPY_FOR_TARGET
1698 OBJCOPY for the target
1699 OBJDUMP_FOR_TARGET
1700 OBJDUMP for the target
1701 OTOOL_FOR_TARGET
1702 OTOOL for the target
1703 RANLIB_FOR_TARGET
1704 RANLIB for the target
1705 READELF_FOR_TARGET
1706 READELF for the target
1707 STRIP_FOR_TARGET
1708 STRIP for the target
1709 WINDRES_FOR_TARGET
1710 WINDRES for the target
1711 WINDMC_FOR_TARGET
1712 WINDMC for the target
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1717 Report bugs to the package provider.
1718 _ACEOF
1719 ac_status=$?
1722 if test "$ac_init_help" = "recursive"; then
1723 # If there are subdirs, report their specific --help.
1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1725 test -d "$ac_dir" ||
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 continue
1728 ac_builddir=.
1730 case "$ac_dir" in
1731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734 # A ".." for each directory in $ac_dir_suffix.
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736 case $ac_top_builddir_sub in
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 esac ;;
1740 esac
1741 ac_abs_top_builddir=$ac_pwd
1742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743 # for backward compatibility:
1744 ac_top_builddir=$ac_top_build_prefix
1746 case $srcdir in
1747 .) # We are building in place.
1748 ac_srcdir=.
1749 ac_top_srcdir=$ac_top_builddir_sub
1750 ac_abs_top_srcdir=$ac_pwd ;;
1751 [\\/]* | ?:[\\/]* ) # Absolute name.
1752 ac_srcdir=$srcdir$ac_dir_suffix;
1753 ac_top_srcdir=$srcdir
1754 ac_abs_top_srcdir=$srcdir ;;
1755 *) # Relative name.
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 esac
1760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762 cd "$ac_dir" || { ac_status=$?; continue; }
1763 # Check for guested configure.
1764 if test -f "$ac_srcdir/configure.gnu"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767 elif test -f "$ac_srcdir/configure"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure" --help=recursive
1770 else
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 fi || ac_status=$?
1773 cd "$ac_pwd" || { ac_status=$?; break; }
1774 done
1777 test -n "$ac_init_help" && exit $ac_status
1778 if $ac_init_version; then
1779 cat <<\_ACEOF
1780 configure
1781 generated by GNU Autoconf 2.69
1783 Copyright (C) 2012 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1786 _ACEOF
1787 exit
1790 ## ------------------------ ##
1791 ## Autoconf initialization. ##
1792 ## ------------------------ ##
1794 # ac_fn_c_try_compile LINENO
1795 # --------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 ac_retval=1
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_compile
1832 # ac_fn_cxx_try_compile LINENO
1833 # ----------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_cxx_try_compile
1870 # ac_fn_cxx_try_link LINENO
1871 # -------------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_cxx_try_link
1916 # ac_fn_c_try_link LINENO
1917 # -----------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_c_try_link ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_c_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
1943 test -x conftest$ac_exeext
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 ac_retval=1
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1960 } # ac_fn_c_try_link
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1965 It was created by $as_me, which was
1966 generated by GNU Autoconf 2.69. Invocation command line was
1968 $ $0 $@
1970 _ACEOF
1971 exec 5>>config.log
1973 cat <<_ASUNAME
1974 ## --------- ##
1975 ## Platform. ##
1976 ## --------- ##
1978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1990 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995 _ASUNAME
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 $as_echo "PATH: $as_dir"
2003 done
2004 IFS=$as_save_IFS
2006 } >&5
2008 cat >&5 <<_ACEOF
2011 ## ----------- ##
2012 ## Core tests. ##
2013 ## ----------- ##
2015 _ACEOF
2018 # Keep a trace of the command line.
2019 # Strip out --no-create and --no-recursion so they do not pile up.
2020 # Strip out --silent because we don't want to record it for future runs.
2021 # Also quote any args containing shell meta-characters.
2022 # Make two passes to allow for proper duplicate-argument suppression.
2023 ac_configure_args=
2024 ac_configure_args0=
2025 ac_configure_args1=
2026 ac_must_keep_next=false
2027 for ac_pass in 1 2
2029 for ac_arg
2031 case $ac_arg in
2032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034 | -silent | --silent | --silen | --sile | --sil)
2035 continue ;;
2036 *\'*)
2037 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 esac
2039 case $ac_pass in
2040 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042 as_fn_append ac_configure_args1 " '$ac_arg'"
2043 if test $ac_must_keep_next = true; then
2044 ac_must_keep_next=false # Got value, back to normal.
2045 else
2046 case $ac_arg in
2047 *=* | --config-cache | -C | -disable-* | --disable-* \
2048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050 | -with-* | --with-* | -without-* | --without-* | --x)
2051 case "$ac_configure_args0 " in
2052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053 esac
2055 -* ) ac_must_keep_next=true ;;
2056 esac
2058 as_fn_append ac_configure_args " '$ac_arg'"
2060 esac
2061 done
2062 done
2063 { ac_configure_args0=; unset ac_configure_args0;}
2064 { ac_configure_args1=; unset ac_configure_args1;}
2066 # When interrupted or exit'd, cleanup temporary files, and complete
2067 # config.log. We remove comments because anyway the quotes in there
2068 # would cause problems or look ugly.
2069 # WARNING: Use '\'' to represent an apostrophe within the trap.
2070 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2071 trap 'exit_status=$?
2072 # Save into config.log some information that might help in debugging.
2074 echo
2076 $as_echo "## ---------------- ##
2077 ## Cache variables. ##
2078 ## ---------------- ##"
2079 echo
2080 # The following way of writing the cache mishandles newlines in values,
2082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in #(
2085 *${as_nl}*)
2086 case $ac_var in #(
2087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089 esac
2090 case $ac_var in #(
2091 _ | IFS | as_nl) ;; #(
2092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093 *) { eval $ac_var=; unset $ac_var;} ;;
2094 esac ;;
2095 esac
2096 done
2097 (set) 2>&1 |
2098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099 *${as_nl}ac_space=\ *)
2100 sed -n \
2101 "s/'\''/'\''\\\\'\'''\''/g;
2102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103 ;; #(
2105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 esac |
2108 sort
2110 echo
2112 $as_echo "## ----------------- ##
2113 ## Output variables. ##
2114 ## ----------------- ##"
2115 echo
2116 for ac_var in $ac_subst_vars
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2126 if test -n "$ac_subst_files"; then
2127 $as_echo "## ------------------- ##
2128 ## File substitutions. ##
2129 ## ------------------- ##"
2130 echo
2131 for ac_var in $ac_subst_files
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2142 if test -s confdefs.h; then
2143 $as_echo "## ----------- ##
2144 ## confdefs.h. ##
2145 ## ----------- ##"
2146 echo
2147 cat confdefs.h
2148 echo
2150 test "$ac_signal" != 0 &&
2151 $as_echo "$as_me: caught signal $ac_signal"
2152 $as_echo "$as_me: exit $exit_status"
2153 } >&5
2154 rm -f core *.core core.conftest.* &&
2155 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2156 exit $exit_status
2158 for ac_signal in 1 2 13 15; do
2159 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 done
2161 ac_signal=0
2163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2164 rm -f -r conftest* confdefs.h
2166 $as_echo "/* confdefs.h */" > confdefs.h
2168 # Predefined preprocessor variables.
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_NAME "$PACKAGE_NAME"
2172 _ACEOF
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_STRING "$PACKAGE_STRING"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188 _ACEOF
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_URL "$PACKAGE_URL"
2192 _ACEOF
2195 # Let the site file select an alternate cache file if it wants to.
2196 # Prefer an explicitly selected file to automatically selected ones.
2197 ac_site_file1=NONE
2198 ac_site_file2=NONE
2199 if test -n "$CONFIG_SITE"; then
2200 # We do not want a PATH search for config.site.
2201 case $CONFIG_SITE in #((
2202 -*) ac_site_file1=./$CONFIG_SITE;;
2203 */*) ac_site_file1=$CONFIG_SITE;;
2204 *) ac_site_file1=./$CONFIG_SITE;;
2205 esac
2206 elif test "x$prefix" != xNONE; then
2207 ac_site_file1=$prefix/share/config.site
2208 ac_site_file2=$prefix/etc/config.site
2209 else
2210 ac_site_file1=$ac_default_prefix/share/config.site
2211 ac_site_file2=$ac_default_prefix/etc/config.site
2213 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215 test "x$ac_site_file" = xNONE && continue
2216 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2218 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2219 sed 's/^/| /' "$ac_site_file" >&5
2220 . "$ac_site_file" \
2221 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 as_fn_error $? "failed to load site script $ac_site_file
2224 See \`config.log' for more details" "$LINENO" 5; }
2226 done
2228 if test -r "$cache_file"; then
2229 # Some versions of bash will fail to source /dev/null (special files
2230 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2231 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 case $cache_file in
2235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236 *) . "./$cache_file";;
2237 esac
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 >$cache_file
2245 # Check that the precious variables saved in the cache have kept the same
2246 # value.
2247 ac_cache_corrupted=false
2248 for ac_var in $ac_precious_vars; do
2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250 eval ac_new_set=\$ac_env_${ac_var}_set
2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252 eval ac_new_val=\$ac_env_${ac_var}_value
2253 case $ac_old_set,$ac_new_set in
2254 set,)
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2257 ac_cache_corrupted=: ;;
2258 ,set)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,);;
2264 if test "x$ac_old_val" != "x$ac_new_val"; then
2265 # differences in whitespace do not lead to failure.
2266 ac_old_val_w=`echo x $ac_old_val`
2267 ac_new_val_w=`echo x $ac_new_val`
2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271 ac_cache_corrupted=:
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275 eval $ac_var=\$ac_old_val
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2278 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2280 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2281 fi;;
2282 esac
2283 # Pass precious variables to config.status.
2284 if test "$ac_new_set" = set; then
2285 case $ac_new_val in
2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 *) ac_arg=$ac_var=$ac_new_val ;;
2288 esac
2289 case " $ac_configure_args " in
2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292 esac
2294 done
2295 if $ac_cache_corrupted; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2300 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 ## -------------------- ##
2303 ## Main body of script. ##
2304 ## -------------------- ##
2306 ac_ext=c
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 progname=$0
2320 # if PWD already has a value, it is probably wrong.
2321 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2323 # Export original configure arguments for use by sub-configures.
2324 # Quote arguments with shell meta charatcers.
2325 TOPLEVEL_CONFIGURE_ARGUMENTS=
2326 set -- "$progname" "$@"
2327 for ac_arg
2329 case "$ac_arg" in
2330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2331 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2332 # if the argument is of the form -foo=baz, quote the baz part only
2333 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2334 *) ;;
2335 esac
2336 # Add the quoted argument to the list.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2338 done
2339 if test "$silent" = yes; then
2340 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2342 # Remove the initial space we just introduced and, as these will be
2343 # expanded by make, quote '$'.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2347 # Find the build, host, and target systems.
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2363 done
2364 if test -z "$ac_aux_dir"; then
2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2368 # These three variables are undocumented and unsupported,
2369 # and are intended to be withdrawn in a future Autoconf release.
2370 # They can cause serious problems if a builder's source tree is in a directory
2371 # whose full name contains unusual characters.
2372 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2377 # Make sure we can run config.sub.
2378 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2382 $as_echo_n "checking build system type... " >&6; }
2383 if ${ac_cv_build+:} false; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 ac_build_alias=$build_alias
2387 test "x$ac_build_alias" = x &&
2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2389 test "x$ac_build_alias" = x &&
2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2391 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2396 $as_echo "$ac_cv_build" >&6; }
2397 case $ac_cv_build in
2398 *-*-*) ;;
2399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2400 esac
2401 build=$ac_cv_build
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_build
2404 shift
2405 build_cpu=$1
2406 build_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 build_os=$*
2411 IFS=$ac_save_IFS
2412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2415 case ${build_alias} in
2416 "") build_noncanonical=${build} ;;
2417 *) build_noncanonical=${build_alias} ;;
2418 esac
2422 case ${host_alias} in
2423 "") host_noncanonical=${build_noncanonical} ;;
2424 *) host_noncanonical=${host_alias} ;;
2425 esac
2429 case ${target_alias} in
2430 "") target_noncanonical=${host_noncanonical} ;;
2431 *) target_noncanonical=${target_alias} ;;
2432 esac
2437 test "$host_noncanonical" = "$target_noncanonical" &&
2438 test "$program_prefix$program_suffix$program_transform_name" = \
2439 NONENONEs,x,x, &&
2440 program_transform_name=s,y,y,
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2443 $as_echo_n "checking host system type... " >&6; }
2444 if ${ac_cv_host+:} false; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 if test "x$host_alias" = x; then
2448 ac_cv_host=$ac_cv_build
2449 else
2450 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2456 $as_echo "$ac_cv_host" >&6; }
2457 case $ac_cv_host in
2458 *-*-*) ;;
2459 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2460 esac
2461 host=$ac_cv_host
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_host
2464 shift
2465 host_cpu=$1
2466 host_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 host_os=$*
2471 IFS=$ac_save_IFS
2472 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2476 $as_echo_n "checking target system type... " >&6; }
2477 if ${ac_cv_target+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 if test "x$target_alias" = x; then
2481 ac_cv_target=$ac_cv_host
2482 else
2483 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2489 $as_echo "$ac_cv_target" >&6; }
2490 case $ac_cv_target in
2491 *-*-*) ;;
2492 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2493 esac
2494 target=$ac_cv_target
2495 ac_save_IFS=$IFS; IFS='-'
2496 set x $ac_cv_target
2497 shift
2498 target_cpu=$1
2499 target_vendor=$2
2500 shift; shift
2501 # Remember, the first character of IFS is used to create $*,
2502 # except with old shells:
2503 target_os=$*
2504 IFS=$ac_save_IFS
2505 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2508 # The aliases save the names the user supplied, while $host etc.
2509 # will get canonicalized.
2510 test -n "$target_alias" &&
2511 test "$program_prefix$program_suffix$program_transform_name" = \
2512 NONENONEs,x,x, &&
2513 program_prefix=${target_alias}-
2515 test "$program_prefix" != NONE &&
2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2527 # Get 'install' or 'install-sh' and its variants.
2528 # Find a good install program. We prefer a C program (faster),
2529 # so one script is as good as another. But avoid the broken or
2530 # incompatible versions:
2531 # SysV /etc/install, /usr/sbin/install
2532 # SunOS /usr/etc/install
2533 # IRIX /sbin/install
2534 # AIX /bin/install
2535 # AmigaOS /C/install, which installs bootblocks on floppy discs
2536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2539 # OS/2's system install, which has a completely different semantic
2540 # ./install, which can be erroneously created by make from ./install.sh.
2541 # Reject install programs that cannot install multiple files.
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2544 if test -z "$INSTALL"; then
2545 if ${ac_cv_path_install+:} false; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 # Account for people who put trailing slashes in PATH elements.
2554 case $as_dir/ in #((
2555 ./ | .// | /[cC]/* | \
2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2558 /usr/ucb/* ) ;;
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2566 if test $ac_prog = install &&
2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2568 # AIX install. It has an incompatible calling convention.
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2574 else
2575 rm -rf conftest.one conftest.two conftest.dir
2576 echo one > conftest.one
2577 echo two > conftest.two
2578 mkdir conftest.dir
2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580 test -s conftest.one && test -s conftest.two &&
2581 test -s conftest.dir/conftest.one &&
2582 test -s conftest.dir/conftest.two
2583 then
2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 break 3
2589 done
2590 done
2592 esac
2594 done
2595 IFS=$as_save_IFS
2597 rm -rf conftest.one conftest.two conftest.dir
2600 if test "${ac_cv_path_install+set}" = set; then
2601 INSTALL=$ac_cv_path_install
2602 else
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 INSTALL=$ac_install_sh
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611 $as_echo "$INSTALL" >&6; }
2613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614 # It thinks the first close brace ends the variable substitution.
2615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2622 $as_echo_n "checking whether ln works... " >&6; }
2623 if ${acx_cv_prog_LN+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 rm -f conftestdata_t
2627 echo >conftestdata_f
2628 if ln conftestdata_f conftestdata_t 2>/dev/null
2629 then
2630 acx_cv_prog_LN=ln
2631 else
2632 acx_cv_prog_LN=no
2634 rm -f conftestdata_f conftestdata_t
2637 if test $acx_cv_prog_LN = no; then
2638 LN="cp"
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2640 $as_echo "no, using $LN" >&6; }
2641 else
2642 LN="$acx_cv_prog_LN"
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2648 $as_echo_n "checking whether ln -s works... " >&6; }
2649 LN_S=$as_ln_s
2650 if test "$LN_S" = "ln -s"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 else
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2655 $as_echo "no, using $LN_S" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2659 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2660 if ${ac_cv_path_SED+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2664 for ac_i in 1 2 3 4 5 6 7; do
2665 ac_script="$ac_script$as_nl$ac_script"
2666 done
2667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2668 { ac_script=; unset ac_script;}
2669 if test -z "$SED"; then
2670 ac_path_SED_found=false
2671 # Loop through the user's path and test for each of PROGNAME-LIST
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_prog in sed gsed; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2680 as_fn_executable_p "$ac_path_SED" || continue
2681 # Check for GNU ac_path_SED and select it if it is found.
2682 # Check for GNU $ac_path_SED
2683 case `"$ac_path_SED" --version 2>&1` in
2684 *GNU*)
2685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2687 ac_count=0
2688 $as_echo_n 0123456789 >"conftest.in"
2689 while :
2691 cat "conftest.in" "conftest.in" >"conftest.tmp"
2692 mv "conftest.tmp" "conftest.in"
2693 cp "conftest.in" "conftest.nl"
2694 $as_echo '' >> "conftest.nl"
2695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2697 as_fn_arith $ac_count + 1 && ac_count=$as_val
2698 if test $ac_count -gt ${ac_path_SED_max-0}; then
2699 # Best one so far, save it but keep looking for a better one
2700 ac_cv_path_SED="$ac_path_SED"
2701 ac_path_SED_max=$ac_count
2703 # 10*(2^10) chars as input seems more than enough
2704 test $ac_count -gt 10 && break
2705 done
2706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2707 esac
2709 $ac_path_SED_found && break 3
2710 done
2711 done
2712 done
2713 IFS=$as_save_IFS
2714 if test -z "$ac_cv_path_SED"; then
2715 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2717 else
2718 ac_cv_path_SED=$SED
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2723 $as_echo "$ac_cv_path_SED" >&6; }
2724 SED="$ac_cv_path_SED"
2725 rm -f conftest.sed
2727 for ac_prog in gawk mawk nawk awk
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730 set dummy $ac_prog; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_AWK+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$AWK"; then
2737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_AWK="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 AWK=$ac_cv_prog_AWK
2757 if test -n "$AWK"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759 $as_echo "$AWK" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2766 test -n "$AWK" && break
2767 done
2770 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2772 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2773 # a relative path.
2774 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2775 INSTALL="${srcpwd}/install-sh -c"
2778 # Set srcdir to "." if that's what it is.
2779 # This is important for multilib support.
2780 pwd=`${PWDCMD-pwd}`
2781 if test "${pwd}" = "${srcpwd}" ; then
2782 srcdir=.
2785 topsrcdir=$srcpwd
2787 extra_host_args=
2789 ### To add a new directory to the tree, first choose whether it is a target
2790 ### or a host dependent tool. Then put it into the appropriate list
2791 ### (library or tools, host or target), doing a dependency sort.
2793 # Subdirs will be configured in the order listed in build_configdirs,
2794 # configdirs, or target_configdirs; see the serialization section below.
2796 # Dependency sorting is only needed when *configuration* must be done in
2797 # a particular order. In all cases a dependency should be specified in
2798 # the Makefile, whether or not it's implicitly specified here.
2800 # Double entries in build_configdirs, configdirs, or target_configdirs may
2801 # cause circular dependencies and break everything horribly.
2803 # these library is used by various programs built for the build
2804 # environment
2806 build_libs="build-libiberty build-libcpp"
2808 # these tools are built for the build environment
2809 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2811 # these libraries are used by various programs built for the host environment
2813 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2815 # these tools are built for the host environment
2816 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2817 # know that we are building the simulator.
2818 # binutils, gas and ld appear in that order because it makes sense to run
2819 # "make check" in that particular order.
2820 # If --enable-gold is used, "gold" may replace "ld".
2821 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2823 # these libraries are built for the target environment, and are built after
2824 # the host libraries and the host tools (which may be a cross compiler)
2825 # Note that libiberty is not a target library.
2826 target_libraries="target-libgcc \
2827 target-libbacktrace \
2828 target-libgloss \
2829 target-newlib \
2830 target-libgomp \
2831 target-libatomic \
2832 target-libitm \
2833 target-libstdc++-v3 \
2834 target-libsanitizer \
2835 target-libvtv \
2836 target-libssp \
2837 target-libquadmath \
2838 target-libgfortran \
2839 target-libffi \
2840 target-libobjc \
2841 target-libada \
2842 target-libgm2 \
2843 target-libgo \
2844 target-libphobos \
2845 target-zlib"
2847 # these tools are built using the target libraries, and are intended to
2848 # run only in the target environment
2850 # note: any program that *uses* libraries that are in the "target_libraries"
2851 # list belongs in this list.
2853 target_tools="target-rda"
2855 ################################################################################
2857 ## All tools belong in one of the four categories, and are assigned above
2858 ## We assign ${configdirs} this way to remove all embedded newlines. This
2859 ## is important because configure will choke if they ever get through.
2860 ## ${configdirs} is directories we build using the host tools.
2861 ## ${target_configdirs} is directories we build using the target tools.
2862 configdirs=`echo ${host_libs} ${host_tools}`
2863 target_configdirs=`echo ${target_libraries} ${target_tools}`
2864 build_configdirs=`echo ${build_libs} ${build_tools}`
2868 ################################################################################
2870 srcname="gnu development package"
2872 # This gets set non-empty for some net releases of packages.
2873 appdirs=""
2875 # Define is_cross_compiler to save on calls to 'test'.
2876 is_cross_compiler=
2877 if test x"${host}" = x"${target}" ; then
2878 is_cross_compiler=no
2879 else
2880 is_cross_compiler=yes
2883 # Find the build and target subdir names.
2885 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2886 # have matching libraries, they should use host libraries: Makefile.tpl
2887 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2888 # However, they still use the build modules, because the corresponding
2889 # host modules (e.g. bison) are only built for the host when bootstrap
2890 # finishes. So:
2891 # - build_subdir is where we find build modules, and never changes.
2892 # - build_libsubdir is where we find build libraries, and can be overridden.
2894 # Prefix 'build-' so this never conflicts with target_subdir.
2895 build_subdir="build-${build_noncanonical}"
2897 # Check whether --with-build-libsubdir was given.
2898 if test "${with_build_libsubdir+set}" = set; then :
2899 withval=$with_build_libsubdir; build_libsubdir="$withval"
2900 else
2901 build_libsubdir="$build_subdir"
2904 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2905 if ( test $srcdir = . && test -d gcc ) \
2906 || test -d $srcdir/../host-${host_noncanonical}; then
2907 host_subdir="host-${host_noncanonical}"
2908 else
2909 host_subdir=.
2911 # No prefix.
2912 target_subdir=${target_noncanonical}
2914 # Be sure to cover against remnants of an in-tree build.
2915 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2916 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2917 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2920 # Skipdirs are removed silently.
2921 skipdirs=
2922 # Noconfigdirs are removed loudly.
2923 noconfigdirs=""
2925 use_gnu_ld=
2926 # Make sure we don't let GNU ld be added if we didn't want it.
2927 if test x$with_gnu_ld = xno ; then
2928 use_gnu_ld=no
2929 noconfigdirs="$noconfigdirs ld gold"
2932 use_gnu_as=
2933 # Make sure we don't let GNU as be added if we didn't want it.
2934 if test x$with_gnu_as = xno ; then
2935 use_gnu_as=no
2936 noconfigdirs="$noconfigdirs gas"
2939 use_included_zlib=
2941 # Check whether --with-system-zlib was given.
2942 if test "${with_system_zlib+set}" = set; then :
2943 withval=$with_system_zlib;
2946 # Make sure we don't let ZLIB be added if we didn't want it.
2947 if test x$with_system_zlib = xyes ; then
2948 use_included_zlib=no
2949 noconfigdirs="$noconfigdirs zlib"
2952 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2953 # is provided.
2954 if test x$with_system_readline = xyes ; then
2955 noconfigdirs="$noconfigdirs readline"
2958 # some tools are so dependent upon X11 that if we're not building with X,
2959 # it's not even worth trying to configure, much less build, that tool.
2961 case ${with_x} in
2962 yes | "") ;; # the default value for this tree is that X11 is available
2964 skipdirs="${skipdirs} tk itcl libgui"
2965 # We won't be able to build gdbtk without X.
2966 enable_gdbtk=no
2968 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2969 esac
2971 # Some are only suitable for cross toolchains.
2972 # Remove these if host=target.
2973 cross_only="target-libgloss target-newlib target-opcodes"
2975 case $is_cross_compiler in
2976 no) skipdirs="${skipdirs} ${cross_only}" ;;
2977 esac
2979 # If both --with-headers and --with-libs are specified, default to
2980 # --without-newlib.
2981 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2982 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2983 if test x"${with_newlib}" = x ; then
2984 with_newlib=no
2988 # Recognize --with-newlib/--without-newlib.
2989 case ${with_newlib} in
2990 no) skipdirs="${skipdirs} target-newlib" ;;
2991 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2992 esac
2994 # Check whether --enable-as-accelerator-for was given.
2995 if test "${enable_as_accelerator_for+set}" = set; then :
2996 enableval=$enable_as_accelerator_for;
3000 # Check whether --enable-offload-targets was given.
3001 if test "${enable_offload_targets+set}" = set; then :
3002 enableval=$enable_offload_targets;
3003 if test x"$enable_offload_targets" = x; then
3004 as_fn_error $? "no offload targets specified" "$LINENO" 5
3007 else
3008 enable_offload_targets=
3012 # Check whether --enable-offload-defaulted was given.
3013 if test "${enable_offload_defaulted+set}" = set; then :
3014 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3015 else
3016 enable_offload_defaulted=
3020 # Handle --enable-gold, --enable-ld.
3021 # --disable-gold [--enable-ld]
3022 # Build only ld. Default option.
3023 # --enable-gold [--enable-ld]
3024 # Build both gold and ld. Install gold as "ld.gold", install ld
3025 # as "ld.bfd" and "ld".
3026 # --enable-gold=default [--enable-ld]
3027 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3028 # install ld as "ld.bfd".
3029 # --enable-gold[=default] --disable-ld
3030 # Build only gold, which is then installed as both "ld.gold" and "ld".
3031 # --enable-gold --enable-ld=default
3032 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3033 # and ld.bfd).
3034 # In other words, ld is default
3035 # --enable-gold=default --enable-ld=default
3036 # Error.
3038 default_ld=
3039 # Check whether --enable-gold was given.
3040 if test "${enable_gold+set}" = set; then :
3041 enableval=$enable_gold; ENABLE_GOLD=$enableval
3042 else
3043 ENABLE_GOLD=no
3046 case "${ENABLE_GOLD}" in
3047 yes|default)
3048 # Check for ELF target.
3049 is_elf=no
3050 case "${target}" in
3051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3052 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3054 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3055 case "${target}" in
3056 *-*-linux*aout* | *-*-linux*oldld*)
3059 is_elf=yes
3061 esac
3062 esac
3064 if test "$is_elf" = "yes"; then
3065 # Check for target supported by gold.
3066 case "${target}" in
3067 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3068 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
3069 configdirs="$configdirs gold"
3070 if test x${ENABLE_GOLD} = xdefault; then
3071 default_ld=gold
3073 ENABLE_GOLD=yes
3075 esac
3081 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3083 esac
3085 # Check whether --enable-ld was given.
3086 if test "${enable_ld+set}" = set; then :
3087 enableval=$enable_ld; ENABLE_LD=$enableval
3088 else
3089 ENABLE_LD=yes
3093 case "${ENABLE_LD}" in
3094 default)
3095 if test x${default_ld} != x; then
3096 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3099 yes)
3102 if test x${ENABLE_GOLD} != xyes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3104 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3106 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3109 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3111 esac
3113 # PR gas/19109
3114 # Decide the default method for compressing debug sections.
3115 # Provide a configure time option to override our default.
3116 # Check whether --enable-compressed_debug_sections was given.
3117 if test "${enable_compressed_debug_sections+set}" = set; then :
3118 enableval=$enable_compressed_debug_sections;
3119 if test x"$enable_compressed_debug_sections" = xyes; then
3120 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3123 else
3124 enable_compressed_debug_sections=
3128 # Configure extra directories which are host specific
3130 case "${host}" in
3131 *-cygwin*)
3132 configdirs="$configdirs libtermcap" ;;
3133 esac
3135 # A target can indicate whether a language isn't supported for some reason.
3136 # Only spaces may be used in this macro; not newlines or tabs.
3137 unsupported_languages=
3139 # Remove more programs from consideration, based on the host or
3140 # target this usually means that a port of the program doesn't
3141 # exist yet.
3143 case "${host}" in
3144 i[3456789]86-*-msdosdjgpp*)
3145 noconfigdirs="$noconfigdirs tcl tk itcl"
3147 esac
3150 # Check whether --enable-libquadmath was given.
3151 if test "${enable_libquadmath+set}" = set; then :
3152 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3153 else
3154 ENABLE_LIBQUADMATH=yes
3157 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3158 noconfigdirs="$noconfigdirs target-libquadmath"
3162 # Check whether --enable-libquadmath-support was given.
3163 if test "${enable_libquadmath_support+set}" = set; then :
3164 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3165 else
3166 ENABLE_LIBQUADMATH_SUPPORT=yes
3169 enable_libquadmath_support=
3170 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3171 enable_libquadmath_support=no
3175 # Check whether --enable-libada was given.
3176 if test "${enable_libada+set}" = set; then :
3177 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3178 else
3179 ENABLE_LIBADA=yes
3182 if test "${ENABLE_LIBADA}" != "yes" ; then
3183 noconfigdirs="$noconfigdirs gnattools"
3186 # Check whether --enable-libgm2 was given.
3187 if test "${enable_libgm2+set}" = set; then :
3188 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3189 else
3190 ENABLE_LIBGM2=no
3193 if test "${ENABLE_LIBGM2}" != "yes" ; then
3194 noconfigdirs="$noconfigdirs gm2tools"
3197 # Check whether --enable-libssp was given.
3198 if test "${enable_libssp+set}" = set; then :
3199 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3200 else
3201 ENABLE_LIBSSP=yes
3205 # Check whether --enable-libstdcxx was given.
3206 if test "${enable_libstdcxx+set}" = set; then :
3207 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3208 else
3209 ENABLE_LIBSTDCXX=default
3212 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3213 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3216 # Enable libgomp by default on hosted POSIX systems, and a few others.
3217 if test x$enable_libgomp = x ; then
3218 case "${target}" in
3219 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3221 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3223 *-*-solaris2* | *-*-hpux11*)
3225 *-*-darwin* | *-*-aix*)
3227 nvptx*-*-* | amdgcn*-*-*)
3230 noconfigdirs="$noconfigdirs target-libgomp"
3232 esac
3235 # Disable libatomic on unsupported systems.
3236 if test -d ${srcdir}/libatomic; then
3237 if test x$enable_libatomic = x; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3239 $as_echo_n "checking for libatomic support... " >&6; }
3240 if (srcdir=${srcdir}/libatomic; \
3241 . ${srcdir}/configure.tgt; \
3242 test -n "$UNSUPPORTED")
3243 then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 noconfigdirs="$noconfigdirs target-libatomic"
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3254 # Disable libitm on unsupported systems.
3255 if test -d ${srcdir}/libitm; then
3256 if test x$enable_libitm = x; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3258 $as_echo_n "checking for libitm support... " >&6; }
3259 if (srcdir=${srcdir}/libitm; \
3260 . ${srcdir}/configure.tgt; \
3261 test -n "$UNSUPPORTED")
3262 then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 noconfigdirs="$noconfigdirs target-libitm"
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3273 # Disable libsanitizer on unsupported systems.
3274 if test -d ${srcdir}/libsanitizer; then
3275 if test x$enable_libsanitizer = x; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277 $as_echo_n "checking for libsanitizer support... " >&6; }
3278 if (srcdir=${srcdir}/libsanitizer; \
3279 . ${srcdir}/configure.tgt; \
3280 test -n "$UNSUPPORTED")
3281 then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 noconfigdirs="$noconfigdirs target-libsanitizer"
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3292 # Disable libvtv on unsupported systems.
3293 if test -d ${srcdir}/libvtv; then
3294 if test x$enable_libvtv = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296 $as_echo_n "checking for libvtv support... " >&6; }
3297 if (srcdir=${srcdir}/libvtv; \
3298 . ${srcdir}/configure.tgt; \
3299 test "$VTV_SUPPORTED" != "yes")
3300 then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 noconfigdirs="$noconfigdirs target-libvtv"
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3311 # Disable libquadmath for some systems.
3312 case "${target}" in
3313 avr-*-*)
3314 noconfigdirs="$noconfigdirs target-libquadmath"
3316 # libquadmath is unused on AIX and libquadmath build process use of
3317 # LD_LIBRARY_PATH can break AIX bootstrap.
3318 powerpc-*-aix* | rs6000-*-aix*)
3319 noconfigdirs="$noconfigdirs target-libquadmath"
3321 esac
3323 # Disable libssp for some systems.
3324 case "${target}" in
3325 avr-*-*)
3326 # No hosted I/O support.
3327 noconfigdirs="$noconfigdirs target-libssp"
3329 bpf-*-*)
3330 noconfigdirs="$noconfigdirs target-libssp"
3332 powerpc-*-aix* | rs6000-*-aix*)
3333 noconfigdirs="$noconfigdirs target-libssp"
3335 pru-*-*)
3336 # No hosted I/O support.
3337 noconfigdirs="$noconfigdirs target-libssp"
3339 rl78-*-*)
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
3343 noconfigdirs="$noconfigdirs target-libssp"
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3349 esac
3351 # Disable libstdc++-v3 for some systems.
3352 # Allow user to override this if they pass --enable-libstdcxx
3353 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 amdgcn*-*-*)
3360 # Not ported/fails to build when using newlib.
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 arm*-wince-pe*)
3364 # the C++ libraries don't build on top of CE's C libraries
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 avr-*-*)
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3373 ft32-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3376 esac
3379 # Disable C++ on systems where it is known to not work.
3380 # For testing, you can override this with --enable-languages=c++.
3381 case ,${enable_languages}, in
3382 *,c++,*)
3385 case "${target}" in
3386 bpf-*-*)
3387 unsupported_languages="$unsupported_languages c++"
3389 esac
3391 esac
3393 # Disable Objc on systems where it is known to not work.
3394 # For testing, you can override this with --enable-languages=objc.
3395 case ,${enable_languages}, in
3396 *,objc,*)
3399 case "${target}" in
3400 bpf-*-*)
3401 unsupported_languages="$unsupported_languages objc"
3403 esac
3405 esac
3407 # Disable D on systems where it is known to not work.
3408 # For testing, you can override this with --enable-languages=d.
3409 case ,${enable_languages}, in
3410 *,d,*)
3413 case "${target}" in
3414 bpf-*-*)
3415 unsupported_languages="$unsupported_languages d"
3417 esac
3419 esac
3421 # Disable libphobos on unsupported systems.
3422 # For testing, you can override this with --enable-libphobos.
3423 if test -d ${srcdir}/libphobos; then
3424 if test x$enable_libphobos = x; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3426 $as_echo_n "checking for libphobos support... " >&6; }
3427 if (srcdir=${srcdir}/libphobos; \
3428 . ${srcdir}/configure.tgt; \
3429 test "$LIBPHOBOS_SUPPORTED" != "yes")
3430 then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 noconfigdirs="$noconfigdirs target-libphobos"
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436 $as_echo "yes" >&6; }
3441 # Disable Fortran for some systems.
3442 case "${target}" in
3443 mmix-*-*)
3444 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3445 unsupported_languages="$unsupported_languages fortran"
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages fortran"
3450 esac
3452 # Disable libffi for some systems.
3453 case "${target}" in
3454 powerpc-*-darwin*)
3456 i[3456789]86-*-darwin*)
3458 x86_64-*-darwin[912]*)
3460 *-*-darwin*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3463 *-*-netware*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3466 *-*-phoenix*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3469 *-*-rtems*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3472 *-*-tpf*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3475 *-*-uclinux*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3478 *-*-vxworks*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3481 aarch64*-*-freebsd*)
3482 noconfigdirs="$noconfigdirs target-libffi"
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs target-libffi"
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs target-libffi"
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs target-libffi"
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3496 bpf-*-*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3499 cris-*-* | crisv32-*-*)
3500 case "${target}" in
3501 *-*-linux*)
3503 *) # See PR46792 regarding target-libffi.
3504 noconfigdirs="$noconfigdirs target-libffi";;
3505 esac
3507 hppa*64*-*-hpux*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 ia64*-*-*vms*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 i[3456789]86-w64-mingw*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 i[3456789]86-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 x86_64-*-mingw*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 mmix-*-*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3525 powerpc-*-aix*)
3527 rs6000-*-aix*)
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3535 esac
3537 # Disable the go frontend on systems where it is known to not work. Please keep
3538 # this in sync with contrib/config-list.mk.
3539 case "${target}" in
3540 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3541 unsupported_languages="$unsupported_languages go"
3543 esac
3545 # Only allow gdbserver on some systems.
3546 if test -d ${srcdir}/gdbserver; then
3547 if test x$enable_gdbserver = x; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3549 $as_echo_n "checking for gdbserver support... " >&6; }
3550 if (srcdir=${srcdir}/gdbserver; \
3551 . ${srcdir}/configure.srv; \
3552 test -n "$UNSUPPORTED")
3553 then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 noconfigdirs="$noconfigdirs gdbserver"
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3564 # Disable libgo for some systems where it is known to not work.
3565 # For testing, you can easily override this with --enable-libgo.
3566 if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3575 bpf-*-*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3578 esac
3581 # Default libgloss CPU subdirectory.
3582 libgloss_dir="$target_cpu"
3584 case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3591 arm*-*-*)
3592 libgloss_dir=arm
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3597 hppa*-*-*)
3598 libgloss_dir=pa
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3603 loongarch*-*-*)
3604 libgloss_dir=loongarch
3606 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3607 libgloss_dir=m68hc11
3609 m68*-*-* | fido-*-*)
3610 libgloss_dir=m68k
3612 mips*-*-*)
3613 libgloss_dir=mips
3615 powerpc*-*-*)
3616 libgloss_dir=rs6000
3618 pru-*-*)
3619 libgloss_dir=pru
3621 sparc*-*-*)
3622 libgloss_dir=sparc
3624 esac
3626 # Disable newlib and libgloss for various target OSes.
3627 case "${target}" in
3628 alpha*-dec-osf*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 i[3456789]86-*-linux*)
3632 # This section makes it possible to build newlib natively on linux.
3633 # If we are using a cross compiler then don't configure newlib.
3634 if test x${is_cross_compiler} != xno ; then
3635 noconfigdirs="$noconfigdirs target-newlib"
3637 noconfigdirs="$noconfigdirs target-libgloss"
3638 # If we are not using a cross compiler, do configure newlib.
3639 # Note however, that newlib will only be configured in this situation
3640 # if the --with-newlib option has been given, because otherwise
3641 # 'target-newlib' will appear in skipdirs.
3643 i[3456789]86-*-rdos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 sparc-*-sunos4*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 bpf-*-*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 *-*-aix*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 *-*-beos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 *-*-chorusos)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 *-*-dragonfly*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 *-*-freebsd*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 *-*-lynxos*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 *-*-mingw*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 *-*-netbsd*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 *-*-netware*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 *-*-tpf*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 *-*-uclinux*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 *-*-vxworks*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 esac
3696 case "${target}" in
3697 *-*-chorusos)
3699 aarch64-*-darwin*)
3700 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3701 noconfigdirs="$noconfigdirs sim target-rda"
3703 amdgcn*-*-*)
3705 arm-*-darwin*)
3706 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs="$noconfigdirs sim target-rda"
3709 powerpc-*-darwin*)
3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3711 noconfigdirs="$noconfigdirs sim target-rda"
3713 i[3456789]86-*-darwin*)
3714 noconfigdirs="$noconfigdirs ld gprof"
3715 noconfigdirs="$noconfigdirs sim target-rda"
3717 x86_64-*-darwin[912]*)
3718 noconfigdirs="$noconfigdirs ld gas gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3721 *-*-darwin*)
3722 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
3725 *-*-dragonfly*)
3727 *-*-freebsd*)
3728 if test "x$with_gmp" = x \
3729 && ! test -d ${srcdir}/gmp \
3730 && test -f /usr/local/include/gmp.h; then
3731 with_gmp=/usr/local
3734 *-*-kaos*)
3735 # Remove unsupported stuff on all kaOS configurations.
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 *-*-netbsd*)
3740 *-*-netware*)
3742 *-*-phoenix*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3745 *-*-rtems*)
3746 noconfigdirs="$noconfigdirs target-libgloss"
3748 # The tpf target doesn't support gdb yet.
3749 *-*-tpf*)
3750 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3752 *-*-uclinux*)
3753 noconfigdirs="$noconfigdirs target-rda"
3755 *-*-vxworks*)
3757 alpha*-dec-osf*)
3758 # ld works, but does not support shared libraries.
3759 # gas doesn't generate exception information.
3760 noconfigdirs="$noconfigdirs gas ld"
3762 alpha*-*-*vms*)
3763 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3765 alpha*-*-*)
3766 # newlib is not 64 bit ready
3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 bpf-*-*)
3770 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3772 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3773 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3775 arc*-*-*)
3776 noconfigdirs="$noconfigdirs sim"
3778 arm-*-pe*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 arm-*-riscix*)
3782 noconfigdirs="$noconfigdirs ld target-libgloss"
3784 avr-*-*)
3785 if test x${with_avrlibc} != xno; then
3786 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3789 c4x-*-* | tic4x-*-*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3792 tic54x-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss gdb"
3795 d10v-*-*)
3796 noconfigdirs="$noconfigdirs target-libgloss"
3798 d30v-*-*)
3799 noconfigdirs="$noconfigdirs gdb"
3801 fr30-*-elf*)
3802 noconfigdirs="$noconfigdirs gdb"
3804 ft32-*-*)
3805 noconfigdirs="$noconfigdirs target-rda gprof"
3807 moxie-*-*)
3808 noconfigdirs="$noconfigdirs"
3810 h8300*-*-*)
3811 noconfigdirs="$noconfigdirs target-libgloss"
3813 h8500-*-*)
3814 noconfigdirs="$noconfigdirs target-libgloss"
3816 hppa*64*-*-hpux*)
3817 noconfigdirs="$noconfigdirs gdb"
3819 hppa*64*-*-linux*)
3821 hppa*-*-linux*)
3823 hppa*-*-*elf* | \
3824 hppa*-*-lites* | \
3825 hppa*-*-openbsd* | \
3826 hppa*64*-*-*)
3828 hppa*-*-pro*)
3830 hppa*-*-*)
3831 noconfigdirs="$noconfigdirs ld"
3833 i960-*-*)
3834 noconfigdirs="$noconfigdirs gdb"
3836 ia64*-*-elf*)
3837 # No gdb support yet.
3838 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3840 ia64*-**-hpux*)
3841 # No ld support yet.
3842 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3844 ia64*-*-*vms*)
3845 # No ld support yet.
3846 noconfigdirs="$noconfigdirs libgui itcl ld"
3848 i[3456789]86-w64-mingw*)
3850 i[3456789]86-*-mingw*)
3851 target_configdirs="$target_configdirs target-winsup"
3853 *-*-cygwin*)
3854 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3855 noconfigdirs="$noconfigdirs target-libgloss"
3856 # always build newlib if winsup directory is present.
3857 if test -d "$srcdir/winsup/cygwin"; then
3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3859 elif test -d "$srcdir/newlib"; then
3860 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3863 i[3456789]86-*-pe)
3864 noconfigdirs="$noconfigdirs target-libgloss"
3866 i[3456789]86-*-sco3.2v5*)
3867 # The linker does not yet know about weak symbols in COFF,
3868 # and is not configured to handle mixed ELF and COFF.
3869 noconfigdirs="$noconfigdirs ld target-libgloss"
3871 i[3456789]86-*-sco*)
3872 noconfigdirs="$noconfigdirs gprof target-libgloss"
3874 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3875 noconfigdirs="$noconfigdirs target-libgloss"
3877 i[3456789]86-*-sysv4*)
3878 noconfigdirs="$noconfigdirs target-libgloss"
3880 i[3456789]86-*-beos*)
3881 noconfigdirs="$noconfigdirs gdb"
3883 i[3456789]86-*-rdos*)
3884 noconfigdirs="$noconfigdirs gdb"
3886 mmix-*-*)
3887 noconfigdirs="$noconfigdirs gdb"
3889 mt-*-*)
3890 noconfigdirs="$noconfigdirs sim"
3892 nfp-*-*)
3893 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3894 noconfigdirs="$noconfigdirs $target_libraries"
3896 pdp11-*-*)
3897 noconfigdirs="$noconfigdirs gdb gprof"
3899 powerpc-*-aix*)
3900 # copied from rs6000-*-* entry
3901 noconfigdirs="$noconfigdirs gprof"
3903 powerpc*-*-winnt* | powerpc*-*-pe*)
3904 target_configdirs="$target_configdirs target-winsup"
3905 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3906 # always build newlib.
3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3909 # This is temporary until we can link against shared libraries
3910 powerpcle-*-solaris*)
3911 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3913 powerpc-*-beos*)
3914 noconfigdirs="$noconfigdirs gdb"
3916 rs6000-*-lynxos*)
3917 noconfigdirs="$noconfigdirs gprof"
3919 rs6000-*-aix*)
3920 noconfigdirs="$noconfigdirs gprof"
3922 rs6000-*-*)
3923 noconfigdirs="$noconfigdirs gprof"
3925 m68k-apollo-*)
3926 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3928 microblaze*)
3929 noconfigdirs="$noconfigdirs gprof"
3931 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3932 if test x$with_newlib = xyes; then
3933 noconfigdirs="$noconfigdirs gprof"
3936 mips*-*-irix5*)
3937 noconfigdirs="$noconfigdirs gprof target-libgloss"
3939 mips*-*-irix6*)
3940 noconfigdirs="$noconfigdirs gprof target-libgloss"
3942 mips*-*-bsd*)
3943 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3945 mips*-*-linux*)
3947 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3948 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3949 noconfigdirs="$noconfigdirs ld gas gprof"
3951 mips*-*-*)
3952 noconfigdirs="$noconfigdirs gprof"
3954 nvptx*-*-*)
3955 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3957 sh-*-*)
3958 case "${target}" in
3959 sh*-*-elf)
3962 noconfigdirs="$noconfigdirs target-libgloss" ;;
3963 esac
3965 sparc-*-sunos4*)
3966 if test x${is_cross_compiler} = xno ; then
3967 use_gnu_ld=no
3970 tic6x-*-*)
3971 noconfigdirs="$noconfigdirs sim"
3973 v810-*-*)
3974 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3976 vax-*-*)
3977 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3979 wasm32-*-*)
3980 noconfigdirs="$noconfigdirs ld"
3982 loongarch*-*-linux*)
3984 loongarch*-*-*)
3985 noconfigdirs="$noconfigdirs gprof"
3987 esac
3989 # If we aren't building newlib, then don't build libgloss, since libgloss
3990 # depends upon some newlib header files.
3991 case "${noconfigdirs}" in
3992 *target-libgloss*) ;;
3993 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3994 esac
3996 # Work in distributions that contain no compiler tools, like Autoconf.
3997 host_makefile_frag=/dev/null
3998 if test -d ${srcdir}/config ; then
3999 case "${host}" in
4000 i[3456789]86-*-msdosdjgpp*)
4001 host_makefile_frag="config/mh-djgpp"
4003 *-cygwin*)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4006 $as_echo_n "checking to see if cat works as expected... " >&6; }
4007 echo a >cygwin-cat-check
4008 if test `cat cygwin-cat-check` = a ; then
4009 rm cygwin-cat-check
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011 $as_echo "yes" >&6; }
4012 else
4013 rm cygwin-cat-check
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4016 as_fn_error $? "The cat command does not ignore carriage return characters.
4017 Please either mount the build directory in binary mode or run the following
4018 commands before running any configure script:
4019 set -o igncr
4020 export SHELLOPTS
4021 " "$LINENO" 5
4024 host_makefile_frag="config/mh-cygwin"
4026 *-mingw*)
4027 host_makefile_frag="config/mh-mingw"
4029 alpha*-linux*)
4030 host_makefile_frag="config/mh-alpha-linux"
4032 hppa*-hp-hpux*)
4033 host_makefile_frag="config/mh-pa"
4035 hppa*-*)
4036 host_makefile_frag="config/mh-pa"
4038 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4039 host_makefile_frag="config/mh-darwin"
4041 powerpc-*-aix*)
4042 host_makefile_frag="config/mh-ppc-aix"
4044 rs6000-*-aix*)
4045 host_makefile_frag="config/mh-ppc-aix"
4047 esac
4050 if test "${build}" != "${host}" ; then
4051 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4052 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4053 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4054 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4055 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4056 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4057 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4058 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4059 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4060 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4061 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4062 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4063 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4064 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4065 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4066 else
4067 AR_FOR_BUILD="\$(AR)"
4068 AS_FOR_BUILD="\$(AS)"
4069 CC_FOR_BUILD="\$(CC)"
4070 CXX_FOR_BUILD="\$(CXX)"
4071 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4072 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4073 GOC_FOR_BUILD="\$(GOC)"
4074 GDC_FOR_BUILD="\$(GDC)"
4075 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4076 LD_FOR_BUILD="\$(LD)"
4077 NM_FOR_BUILD="\$(NM)"
4078 RANLIB_FOR_BUILD="\$(RANLIB)"
4079 WINDRES_FOR_BUILD="\$(WINDRES)"
4080 WINDMC_FOR_BUILD="\$(WINDMC)"
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_CC+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4127 if test -z "$ac_cv_prog_CC"; then
4128 ac_ct_CC=$CC
4129 # Extract the first word of "gcc", so it can be a program name with args.
4130 set dummy gcc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_ac_ct_CC="gcc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4152 IFS=$as_save_IFS
4156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157 if test -n "$ac_ct_CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159 $as_echo "$ac_ct_CC" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4165 if test "x$ac_ct_CC" = x; then
4166 CC=""
4167 else
4168 case $cross_compiling:$ac_tool_warned in
4169 yes:)
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172 ac_tool_warned=yes ;;
4173 esac
4174 CC=$ac_ct_CC
4176 else
4177 CC="$ac_cv_prog_CC"
4180 if test -z "$CC"; then
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4183 set dummy ${ac_tool_prefix}cc; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_CC+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_CC="${ac_tool_prefix}cc"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4203 done
4204 done
4205 IFS=$as_save_IFS
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4221 if test -z "$CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223 set dummy cc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231 else
4232 ac_prog_rejected=no
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4242 continue
4244 ac_cv_prog_CC="cc"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4248 done
4249 done
4250 IFS=$as_save_IFS
4252 if test $ac_prog_rejected = yes; then
4253 # We found a bogon in the path, so make sure we never use it.
4254 set dummy $ac_cv_prog_CC
4255 shift
4256 if test $# != 0; then
4257 # We chose a different compiler from the bogus one.
4258 # However, it has the same basename, so the bogon will be chosen
4259 # first if we set CC to just the basename; use the full file name.
4260 shift
4261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4266 CC=$ac_cv_prog_CC
4267 if test -n "$CC"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269 $as_echo "$CC" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4277 if test -z "$CC"; then
4278 if test -n "$ac_tool_prefix"; then
4279 for ac_prog in cl.exe
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CC+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4304 IFS=$as_save_IFS
4308 CC=$ac_cv_prog_CC
4309 if test -n "$CC"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 $as_echo "$CC" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$CC" && break
4319 done
4321 if test -z "$CC"; then
4322 ac_ct_CC=$CC
4323 for ac_prog in cl.exe
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if test -n "$ac_ct_CC"; then
4333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_CC="$ac_prog"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4353 if test -n "$ac_ct_CC"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4355 $as_echo "$ac_ct_CC" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4362 test -n "$ac_ct_CC" && break
4363 done
4365 if test "x$ac_ct_CC" = x; then
4366 CC=""
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4373 esac
4374 CC=$ac_ct_CC
4381 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error $? "no acceptable C compiler found in \$PATH
4384 See \`config.log' for more details" "$LINENO" 5; }
4386 # Provide some information about the compiler.
4387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4388 set X $ac_compile
4389 ac_compiler=$2
4390 for ac_option in --version -v -V -qversion; do
4391 { { ac_try="$ac_compiler $ac_option >&5"
4392 case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4399 ac_status=$?
4400 if test -s conftest.err; then
4401 sed '10a\
4402 ... rest of stderr output deleted ...
4403 10q' conftest.err >conftest.er1
4404 cat conftest.er1 >&5
4406 rm -f conftest.er1 conftest.err
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }
4409 done
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4415 main ()
4419 return 0;
4421 _ACEOF
4422 ac_clean_files_save=$ac_clean_files
4423 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4424 # Try to create an executable without -o first, disregard a.out.
4425 # It will help us diagnose broken compilers, and finding out an intuition
4426 # of exeext.
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428 $as_echo_n "checking whether the C compiler works... " >&6; }
4429 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4431 # The possible output files:
4432 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4434 ac_rmfiles=
4435 for ac_file in $ac_files
4437 case $ac_file in
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4440 esac
4441 done
4442 rm -f $ac_rmfiles
4444 if { { ac_try="$ac_link_default"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_link_default") 2>&5
4452 ac_status=$?
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }; then :
4455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4456 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4457 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4458 # so that the user can short-circuit this test for compilers unknown to
4459 # Autoconf.
4460 for ac_file in $ac_files ''
4462 test -f "$ac_file" || continue
4463 case $ac_file in
4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4466 [ab].out )
4467 # We found the default executable, but exeext='' is most
4468 # certainly right.
4469 break;;
4470 *.* )
4471 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4472 then :; else
4473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475 # We set ac_cv_exeext here because the later test for it is not
4476 # safe: cross compilers may not add the suffix if given an `-o'
4477 # argument, so we may need to know it at that point already.
4478 # Even if this section looks crufty: it has the advantage of
4479 # actually working.
4480 break;;
4482 break;;
4483 esac
4484 done
4485 test "$ac_cv_exeext" = no && ac_cv_exeext=
4487 else
4488 ac_file=''
4490 if test -z "$ac_file"; then :
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error 77 "C compiler cannot create executables
4499 See \`config.log' for more details" "$LINENO" 5; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4505 $as_echo_n "checking for C compiler default output file name... " >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4507 $as_echo "$ac_file" >&6; }
4508 ac_exeext=$ac_cv_exeext
4510 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4511 ac_clean_files=$ac_clean_files_save
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4513 $as_echo_n "checking for suffix of executables... " >&6; }
4514 if { { ac_try="$ac_link"
4515 case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_link") 2>&5
4522 ac_status=$?
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }; then :
4525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4526 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4527 # work properly (i.e., refer to `conftest.exe'), while it won't with
4528 # `rm'.
4529 for ac_file in conftest.exe conftest conftest.*; do
4530 test -f "$ac_file" || continue
4531 case $ac_file in
4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4534 break;;
4535 * ) break;;
4536 esac
4537 done
4538 else
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4541 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4542 See \`config.log' for more details" "$LINENO" 5; }
4544 rm -f conftest conftest$ac_cv_exeext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4546 $as_echo "$ac_cv_exeext" >&6; }
4548 rm -f conftest.$ac_ext
4549 EXEEXT=$ac_cv_exeext
4550 ac_exeext=$EXEEXT
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #include <stdio.h>
4555 main ()
4557 FILE *f = fopen ("conftest.out", "w");
4558 return ferror (f) || fclose (f) != 0;
4561 return 0;
4563 _ACEOF
4564 ac_clean_files="$ac_clean_files conftest.out"
4565 # Check that the compiler produces executables we can run. If not, either
4566 # the compiler is broken, or we cross compile.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4568 $as_echo_n "checking whether we are cross compiling... " >&6; }
4569 if test "$cross_compiling" != yes; then
4570 { { ac_try="$ac_link"
4571 case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 $as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_link") 2>&5
4578 ac_status=$?
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581 if { ac_try='./conftest$ac_cv_exeext'
4582 { { case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587 $as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; }; then
4592 cross_compiling=no
4593 else
4594 if test "$cross_compiling" = maybe; then
4595 cross_compiling=yes
4596 else
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "cannot run C compiled programs.
4600 If you meant to cross compile, use \`--host'.
4601 See \`config.log' for more details" "$LINENO" 5; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4606 $as_echo "$cross_compiling" >&6; }
4608 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4609 ac_clean_files=$ac_clean_files_save
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4611 $as_echo_n "checking for suffix of object files... " >&6; }
4612 if ${ac_cv_objext+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4619 main ()
4623 return 0;
4625 _ACEOF
4626 rm -f conftest.o conftest.obj
4627 if { { ac_try="$ac_compile"
4628 case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631 esac
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_compile") 2>&5
4635 ac_status=$?
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 for ac_file in conftest.o conftest.obj conftest.*; do
4639 test -f "$ac_file" || continue;
4640 case $ac_file in
4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643 break;;
4644 esac
4645 done
4646 else
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652 as_fn_error $? "cannot compute suffix of object files: cannot compile
4653 See \`config.log' for more details" "$LINENO" 5; }
4655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658 $as_echo "$ac_cv_objext" >&6; }
4659 OBJEXT=$ac_cv_objext
4660 ac_objext=$OBJEXT
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4663 if ${ac_cv_c_compiler_gnu+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 main ()
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4677 return 0;
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681 ac_compiler_gnu=yes
4682 else
4683 ac_compiler_gnu=no
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4692 GCC=yes
4693 else
4694 GCC=
4696 ac_test_CFLAGS=${CFLAGS+set}
4697 ac_save_CFLAGS=$CFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4700 if ${ac_cv_prog_cc_g+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 ac_cv_prog_cc_g=no
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 main ()
4715 return 0;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_prog_cc_g=yes
4720 else
4721 CFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4726 main ()
4730 return 0;
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4735 else
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4737 CFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4742 main ()
4746 return 0;
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_prog_cc_g=yes
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760 $as_echo "$ac_cv_prog_cc_g" >&6; }
4761 if test "$ac_test_CFLAGS" = set; then
4762 CFLAGS=$ac_save_CFLAGS
4763 elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4765 CFLAGS="-g -O2"
4766 else
4767 CFLAGS="-g"
4769 else
4770 if test "$GCC" = yes; then
4771 CFLAGS="-O2"
4772 else
4773 CFLAGS=
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4778 if ${ac_cv_prog_cc_c89+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 ac_cv_prog_cc_c89=no
4782 ac_save_CC=$CC
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <stdarg.h>
4786 #include <stdio.h>
4787 struct stat;
4788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4789 struct buf { int x; };
4790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4791 static char *e (p, i)
4792 char **p;
4793 int i;
4795 return p[i];
4797 static char *f (char * (*g) (char **, int), char **p, ...)
4799 char *s;
4800 va_list v;
4801 va_start (v,p);
4802 s = g (p, va_arg (v,int));
4803 va_end (v);
4804 return s;
4807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4808 function prototypes and stuff, but not '\xHH' hex character constants.
4809 These don't provoke an error unfortunately, instead are silently treated
4810 as 'x'. The following induces an error, until -std is added to get
4811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4812 array size at least. It's necessary to write '\x00'==0 to get something
4813 that's true only with -std. */
4814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4817 inside strings and character constants. */
4818 #define FOO(x) 'x'
4819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4821 int test (int i, double x);
4822 struct s1 {int (*f) (int a);};
4823 struct s2 {int (*f) (double a);};
4824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825 int argc;
4826 char **argv;
4828 main ()
4830 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4832 return 0;
4834 _ACEOF
4835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4838 CC="$ac_save_CC $ac_arg"
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_prog_cc_c89=$ac_arg
4842 rm -f core conftest.err conftest.$ac_objext
4843 test "x$ac_cv_prog_cc_c89" != "xno" && break
4844 done
4845 rm -f conftest.$ac_ext
4846 CC=$ac_save_CC
4849 # AC_CACHE_VAL
4850 case "x$ac_cv_prog_cc_c89" in
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853 $as_echo "none needed" >&6; } ;;
4854 xno)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4856 $as_echo "unsupported" >&6; } ;;
4858 CC="$CC $ac_cv_prog_cc_c89"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4861 esac
4862 if test "x$ac_cv_prog_cc_c89" != xno; then :
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4873 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4874 if ${ac_cv_prog_cc_c99+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 ac_cv_prog_cc_c99=no
4878 ac_save_CC=$CC
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <stdarg.h>
4882 #include <stdbool.h>
4883 #include <stdlib.h>
4884 #include <wchar.h>
4885 #include <stdio.h>
4887 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4888 #define debug(...) fprintf (stderr, __VA_ARGS__)
4889 #define showlist(...) puts (#__VA_ARGS__)
4890 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4891 static void
4892 test_varargs_macros (void)
4894 int x = 1234;
4895 int y = 5678;
4896 debug ("Flag");
4897 debug ("X = %d\n", x);
4898 showlist (The first, second, and third items.);
4899 report (x>y, "x is %d but y is %d", x, y);
4902 // Check long long types.
4903 #define BIG64 18446744073709551615ull
4904 #define BIG32 4294967295ul
4905 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4906 #if !BIG_OK
4907 your preprocessor is broken;
4908 #endif
4909 #if BIG_OK
4910 #else
4911 your preprocessor is broken;
4912 #endif
4913 static long long int bignum = -9223372036854775807LL;
4914 static unsigned long long int ubignum = BIG64;
4916 struct incomplete_array
4918 int datasize;
4919 double data[];
4922 struct named_init {
4923 int number;
4924 const wchar_t *name;
4925 double average;
4928 typedef const char *ccp;
4930 static inline int
4931 test_restrict (ccp restrict text)
4933 // See if C++-style comments work.
4934 // Iterate through items via the restricted pointer.
4935 // Also check for declarations in for loops.
4936 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4937 continue;
4938 return 0;
4941 // Check varargs and va_copy.
4942 static void
4943 test_varargs (const char *format, ...)
4945 va_list args;
4946 va_start (args, format);
4947 va_list args_copy;
4948 va_copy (args_copy, args);
4950 const char *str;
4951 int number;
4952 float fnumber;
4954 while (*format)
4956 switch (*format++)
4958 case 's': // string
4959 str = va_arg (args_copy, const char *);
4960 break;
4961 case 'd': // int
4962 number = va_arg (args_copy, int);
4963 break;
4964 case 'f': // float
4965 fnumber = va_arg (args_copy, double);
4966 break;
4967 default:
4968 break;
4971 va_end (args_copy);
4972 va_end (args);
4976 main ()
4979 // Check bool.
4980 _Bool success = false;
4982 // Check restrict.
4983 if (test_restrict ("String literal") == 0)
4984 success = true;
4985 char *restrict newvar = "Another string";
4987 // Check varargs.
4988 test_varargs ("s, d' f .", "string", 65, 34.234);
4989 test_varargs_macros ();
4991 // Check flexible array members.
4992 struct incomplete_array *ia =
4993 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4994 ia->datasize = 10;
4995 for (int i = 0; i < ia->datasize; ++i)
4996 ia->data[i] = i * 1.234;
4998 // Check named initializers.
4999 struct named_init ni = {
5000 .number = 34,
5001 .name = L"Test wide string",
5002 .average = 543.34343,
5005 ni.number = 58;
5007 int dynamic_array[ni.number];
5008 dynamic_array[ni.number - 1] = 543;
5010 // work around unused variable warnings
5011 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5012 || dynamic_array[ni.number - 1] != 543);
5015 return 0;
5017 _ACEOF
5018 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5020 CC="$ac_save_CC $ac_arg"
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_prog_cc_c99=$ac_arg
5024 rm -f core conftest.err conftest.$ac_objext
5025 test "x$ac_cv_prog_cc_c99" != "xno" && break
5026 done
5027 rm -f conftest.$ac_ext
5028 CC=$ac_save_CC
5031 # AC_CACHE_VAL
5032 case "x$ac_cv_prog_cc_c99" in
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035 $as_echo "none needed" >&6; } ;;
5036 xno)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038 $as_echo "unsupported" >&6; } ;;
5040 CC="$CC $ac_cv_prog_cc_c99"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5043 esac
5044 if test "x$ac_cv_prog_cc_c99" != xno; then :
5049 ac_ext=cpp
5050 ac_cpp='$CXXCPP $CPPFLAGS'
5051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5054 if test -z "$CXX"; then
5055 if test -n "$CCC"; then
5056 CXX=$CCC
5057 else
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_CXX+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$CXX"; then
5069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 CXX=$ac_cv_prog_CXX
5089 if test -n "$CXX"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5091 $as_echo "$CXX" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5098 test -n "$CXX" && break
5099 done
5101 if test -z "$CXX"; then
5102 ac_ct_CXX=$CXX
5103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_CXX"; then
5113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_CXX="$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5126 done
5127 done
5128 IFS=$as_save_IFS
5132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5133 if test -n "$ac_ct_CXX"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5135 $as_echo "$ac_ct_CXX" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5142 test -n "$ac_ct_CXX" && break
5143 done
5145 if test "x$ac_ct_CXX" = x; then
5146 CXX="g++"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 CXX=$ac_ct_CXX
5160 # Provide some information about the compiler.
5161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5162 set X $ac_compile
5163 ac_compiler=$2
5164 for ac_option in --version -v -V -qversion; do
5165 { { ac_try="$ac_compiler $ac_option >&5"
5166 case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171 $as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5173 ac_status=$?
5174 if test -s conftest.err; then
5175 sed '10a\
5176 ... rest of stderr output deleted ...
5177 10q' conftest.err >conftest.er1
5178 cat conftest.er1 >&5
5180 rm -f conftest.er1 conftest.err
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183 done
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5186 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5187 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 main ()
5196 #ifndef __GNUC__
5197 choke me
5198 #endif
5201 return 0;
5203 _ACEOF
5204 if ac_fn_cxx_try_compile "$LINENO"; then :
5205 ac_compiler_gnu=yes
5206 else
5207 ac_compiler_gnu=no
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5214 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5215 if test $ac_compiler_gnu = yes; then
5216 GXX=yes
5217 else
5218 GXX=
5220 ac_test_CXXFLAGS=${CXXFLAGS+set}
5221 ac_save_CXXFLAGS=$CXXFLAGS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5223 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5224 if ${ac_cv_prog_cxx_g+:} false; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5228 ac_cxx_werror_flag=yes
5229 ac_cv_prog_cxx_g=no
5230 CXXFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5235 main ()
5239 return 0;
5241 _ACEOF
5242 if ac_fn_cxx_try_compile "$LINENO"; then :
5243 ac_cv_prog_cxx_g=yes
5244 else
5245 CXXFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5250 main ()
5254 return 0;
5256 _ACEOF
5257 if ac_fn_cxx_try_compile "$LINENO"; then :
5259 else
5260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5261 CXXFLAGS="-g"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5270 return 0;
5272 _ACEOF
5273 if ac_fn_cxx_try_compile "$LINENO"; then :
5274 ac_cv_prog_cxx_g=yes
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5284 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5285 if test "$ac_test_CXXFLAGS" = set; then
5286 CXXFLAGS=$ac_save_CXXFLAGS
5287 elif test $ac_cv_prog_cxx_g = yes; then
5288 if test "$GXX" = yes; then
5289 CXXFLAGS="-g -O2"
5290 else
5291 CXXFLAGS="-g"
5293 else
5294 if test "$GXX" = yes; then
5295 CXXFLAGS="-O2"
5296 else
5297 CXXFLAGS=
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 # We must set the default linker to the linker used by gcc for the correct
5308 # operation of libtool. If LD is not defined and we are using gcc, try to
5309 # set the LD default to the ld used by gcc.
5310 if test -z "$LD"; then
5311 if test "$GCC" = yes; then
5312 case $build in
5313 *-*-mingw*)
5314 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5316 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5317 esac
5318 case $gcc_prog_ld in
5319 # Accept absolute paths.
5320 [\\/]* | [A-Za-z]:[\\/]*)
5321 LD="$gcc_prog_ld" ;;
5322 esac
5326 # Check whether -static-libstdc++ -static-libgcc is supported.
5327 have_static_libs=no
5328 if test "$GCC" = yes; then
5329 saved_LDFLAGS="$LDFLAGS"
5331 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5333 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5334 ac_ext=cpp
5335 ac_cpp='$CXXCPP $CPPFLAGS'
5336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5344 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5345 #error -static-libstdc++ not implemented
5346 #endif
5347 int main() {}
5348 _ACEOF
5349 if ac_fn_cxx_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }; have_static_libs=yes
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5356 rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5365 LDFLAGS="$saved_LDFLAGS"
5371 if test -n "$ac_tool_prefix"; then
5372 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5373 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_GNATBIND+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$GNATBIND"; then
5380 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5393 done
5394 done
5395 IFS=$as_save_IFS
5399 GNATBIND=$ac_cv_prog_GNATBIND
5400 if test -n "$GNATBIND"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5402 $as_echo "$GNATBIND" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5410 if test -z "$ac_cv_prog_GNATBIND"; then
5411 ac_ct_GNATBIND=$GNATBIND
5412 # Extract the first word of "gnatbind", so it can be a program name with args.
5413 set dummy gnatbind; ac_word=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 if test -n "$ac_ct_GNATBIND"; then
5420 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5421 else
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5433 done
5434 done
5435 IFS=$as_save_IFS
5439 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5440 if test -n "$ac_ct_GNATBIND"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5442 $as_echo "$ac_ct_GNATBIND" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5448 if test "x$ac_ct_GNATBIND" = x; then
5449 GNATBIND="no"
5450 else
5451 case $cross_compiling:$ac_tool_warned in
5452 yes:)
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455 ac_tool_warned=yes ;;
5456 esac
5457 GNATBIND=$ac_ct_GNATBIND
5459 else
5460 GNATBIND="$ac_cv_prog_GNATBIND"
5463 if test -n "$ac_tool_prefix"; then
5464 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5465 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_GNATMAKE+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$GNATMAKE"; then
5472 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5485 done
5486 done
5487 IFS=$as_save_IFS
5491 GNATMAKE=$ac_cv_prog_GNATMAKE
5492 if test -n "$GNATMAKE"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5494 $as_echo "$GNATMAKE" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5502 if test -z "$ac_cv_prog_GNATMAKE"; then
5503 ac_ct_GNATMAKE=$GNATMAKE
5504 # Extract the first word of "gnatmake", so it can be a program name with args.
5505 set dummy gnatmake; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$ac_ct_GNATMAKE"; then
5512 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5532 if test -n "$ac_ct_GNATMAKE"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5534 $as_echo "$ac_ct_GNATMAKE" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5540 if test "x$ac_ct_GNATMAKE" = x; then
5541 GNATMAKE="no"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544 yes:)
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547 ac_tool_warned=yes ;;
5548 esac
5549 GNATMAKE=$ac_ct_GNATMAKE
5551 else
5552 GNATMAKE="$ac_cv_prog_GNATMAKE"
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5556 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5557 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 cat >conftest.adb <<EOF
5561 pragma Warnings (Off);
5562 with System.CRTL;
5563 pragma Warnings (On);
5564 use type System.CRTL.int64;
5565 procedure conftest is begin null; end conftest;
5567 acx_cv_cc_gcc_supports_ada=no
5568 # There is a bug in old released versions of GCC which causes the
5569 # driver to exit successfully when the appropriate language module
5570 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5571 # Therefore we must check for the error message as well as an
5572 # unsuccessful exit.
5573 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5574 # given a .adb file, but produce no object file. So we must check
5575 # if an object file was really produced to guard against this.
5576 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5577 if test x"$errors" = x && test -f conftest.$ac_objext; then
5578 acx_cv_cc_gcc_supports_ada=yes
5580 rm -f conftest.*
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5583 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5585 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5586 have_gnat=yes
5587 else
5588 have_gnat=no
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_prog_GDC+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$GDC"; then
5602 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5615 done
5616 done
5617 IFS=$as_save_IFS
5621 GDC=$ac_cv_prog_GDC
5622 if test -n "$GDC"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5624 $as_echo "$GDC" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5632 if test -z "$ac_cv_prog_GDC"; then
5633 ac_ct_GDC=$GDC
5634 # Extract the first word of "gdc", so it can be a program name with args.
5635 set dummy gdc; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$ac_ct_GDC"; then
5642 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_GDC="gdc"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5657 IFS=$as_save_IFS
5661 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5662 if test -n "$ac_ct_GDC"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5664 $as_echo "$ac_ct_GDC" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5670 if test "x$ac_ct_GDC" = x; then
5671 GDC="no"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674 yes:)
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned=yes ;;
5678 esac
5679 GDC=$ac_ct_GDC
5681 else
5682 GDC="$ac_cv_prog_GDC"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5686 $as_echo_n "checking whether the D compiler works... " >&6; }
5687 if ${acx_cv_d_compiler_works+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 cat >conftest.d <<EOF
5691 module conftest; int main() { return 0; }
5693 acx_cv_d_compiler_works=no
5694 if test "x$GDC" != xno; then
5695 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5696 if test x"$errors" = x && test -f conftest.$ac_objext; then
5697 acx_cv_d_compiler_works=yes
5699 rm -f conftest.*
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5703 $as_echo "$acx_cv_d_compiler_works" >&6; }
5704 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5705 have_gdc=yes
5706 else
5707 have_gdc=no
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5711 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5712 if ${gcc_cv_prog_cmp_skip+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 echo abfoo >t1
5716 echo cdfoo >t2
5717 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5718 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5719 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5721 else
5722 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5725 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5726 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5728 else
5729 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5732 rm t1 t2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5736 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5737 do_compare="$gcc_cv_prog_cmp_skip"
5741 # Check whether --enable-bootstrap was given.
5742 if test "${enable_bootstrap+set}" = set; then :
5743 enableval=$enable_bootstrap;
5744 else
5745 enable_bootstrap=default
5749 # Issue errors and warnings for invalid/strange bootstrap combinations.
5750 if test -r $srcdir/gcc/configure; then
5751 have_compiler=yes
5752 else
5753 have_compiler=no
5756 case "$have_compiler:$host:$target:$enable_bootstrap" in
5757 *:*:*:no) ;;
5759 # Default behavior. Enable bootstrap if we have a compiler
5760 # and we are in a native configuration.
5761 yes:$build:$build:default)
5762 enable_bootstrap=yes ;;
5764 *:*:*:default)
5765 enable_bootstrap=no ;;
5767 # We have a compiler and we are in a native configuration, bootstrap is ok
5768 yes:$build:$build:yes)
5771 # Other configurations, but we have a compiler. Assume the user knows
5772 # what he's doing.
5773 yes:*:*:yes)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5775 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5778 # No compiler: if they passed --enable-bootstrap explicitly, fail
5779 no:*:*:yes)
5780 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5782 # Fail if wrong command line
5784 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5786 esac
5788 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5789 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5790 # require C++11 (or higher).
5791 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5792 CXX="$CXX -std=c++11"
5793 elif test "$have_compiler" = yes; then
5794 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5795 ac_ext=cpp
5796 ac_cpp='$CXXCPP $CPPFLAGS'
5797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 ac_success=no
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5803 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5804 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5811 // If the compiler admits that it is not ready for C++11, why torture it?
5812 // Hopefully, this will speed up the test.
5814 #ifndef __cplusplus
5816 #error "This is not a C++ compiler"
5818 #elif __cplusplus < 201103L
5820 #error "This is not a C++11 compiler"
5822 #else
5824 namespace cxx11
5827 namespace test_static_assert
5830 template <typename T>
5831 struct check
5833 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5838 namespace test_final_override
5841 struct Base
5843 virtual ~Base() {}
5844 virtual void f() {}
5847 struct Derived : public Base
5849 virtual ~Derived() override {}
5850 virtual void f() override {}
5855 namespace test_double_right_angle_brackets
5858 template < typename T >
5859 struct check {};
5861 typedef check<void> single_type;
5862 typedef check<check<void>> double_type;
5863 typedef check<check<check<void>>> triple_type;
5864 typedef check<check<check<check<void>>>> quadruple_type;
5868 namespace test_decltype
5874 int a = 1;
5875 decltype(a) b = 2;
5876 return a + b;
5881 namespace test_type_deduction
5884 template < typename T1, typename T2 >
5885 struct is_same
5887 static const bool value = false;
5890 template < typename T >
5891 struct is_same<T, T>
5893 static const bool value = true;
5896 template < typename T1, typename T2 >
5897 auto
5898 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5900 return a1 + a2;
5904 test(const int c, volatile int v)
5906 static_assert(is_same<int, decltype(0)>::value == true, "");
5907 static_assert(is_same<int, decltype(c)>::value == false, "");
5908 static_assert(is_same<int, decltype(v)>::value == false, "");
5909 auto ac = c;
5910 auto av = v;
5911 auto sumi = ac + av + 'x';
5912 auto sumf = ac + av + 1.0;
5913 static_assert(is_same<int, decltype(ac)>::value == true, "");
5914 static_assert(is_same<int, decltype(av)>::value == true, "");
5915 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5916 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5917 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5918 return (sumf > 0.0) ? sumi : add(c, v);
5923 namespace test_noexcept
5926 int f() { return 0; }
5927 int g() noexcept { return 0; }
5929 static_assert(noexcept(f()) == false, "");
5930 static_assert(noexcept(g()) == true, "");
5934 namespace test_constexpr
5937 template < typename CharT >
5938 unsigned long constexpr
5939 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5941 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5944 template < typename CharT >
5945 unsigned long constexpr
5946 strlen_c(const CharT *const s) noexcept
5948 return strlen_c_r(s, 0UL);
5951 static_assert(strlen_c("") == 0UL, "");
5952 static_assert(strlen_c("1") == 1UL, "");
5953 static_assert(strlen_c("example") == 7UL, "");
5954 static_assert(strlen_c("another\0example") == 7UL, "");
5958 namespace test_rvalue_references
5961 template < int N >
5962 struct answer
5964 static constexpr int value = N;
5967 answer<1> f(int&) { return answer<1>(); }
5968 answer<2> f(const int&) { return answer<2>(); }
5969 answer<3> f(int&&) { return answer<3>(); }
5971 void
5972 test()
5974 int i = 0;
5975 const int c = 0;
5976 static_assert(decltype(f(i))::value == 1, "");
5977 static_assert(decltype(f(c))::value == 2, "");
5978 static_assert(decltype(f(0))::value == 3, "");
5983 namespace test_uniform_initialization
5986 struct test
5988 static const int zero {};
5989 static const int one {1};
5992 static_assert(test::zero == 0, "");
5993 static_assert(test::one == 1, "");
5997 namespace test_lambdas
6000 void
6001 test1()
6003 auto lambda1 = [](){};
6004 auto lambda2 = lambda1;
6005 lambda1();
6006 lambda2();
6010 test2()
6012 auto a = [](int i, int j){ return i + j; }(1, 2);
6013 auto b = []() -> int { return '0'; }();
6014 auto c = [=](){ return a + b; }();
6015 auto d = [&](){ return c; }();
6016 auto e = [a, &b](int x) mutable {
6017 const auto identity = [](int y){ return y; };
6018 for (auto i = 0; i < a; ++i)
6019 a += b--;
6020 return x + identity(a + b);
6021 }(0);
6022 return a + b + c + d + e;
6026 test3()
6028 const auto nullary = [](){ return 0; };
6029 const auto unary = [](int x){ return x; };
6030 using nullary_t = decltype(nullary);
6031 using unary_t = decltype(unary);
6032 const auto higher1st = [](nullary_t f){ return f(); };
6033 const auto higher2nd = [unary](nullary_t f1){
6034 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6036 return higher1st(nullary) + higher2nd(nullary)(unary);
6041 namespace test_variadic_templates
6044 template <int...>
6045 struct sum;
6047 template <int N0, int... N1toN>
6048 struct sum<N0, N1toN...>
6050 static constexpr auto value = N0 + sum<N1toN...>::value;
6053 template <>
6054 struct sum<>
6056 static constexpr auto value = 0;
6059 static_assert(sum<>::value == 0, "");
6060 static_assert(sum<1>::value == 1, "");
6061 static_assert(sum<23>::value == 23, "");
6062 static_assert(sum<1, 2>::value == 3, "");
6063 static_assert(sum<5, 5, 11>::value == 21, "");
6064 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6068 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6069 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6070 // because of this.
6071 namespace test_template_alias_sfinae
6074 struct foo {};
6076 template<typename T>
6077 using member = typename T::member_type;
6079 template<typename T>
6080 void func(...) {}
6082 template<typename T>
6083 void func(member<T>*) {}
6085 void test();
6087 void test() { func<foo>(0); }
6091 } // namespace cxx11
6093 #endif // __cplusplus >= 201103L
6097 _ACEOF
6098 if ac_fn_cxx_try_compile "$LINENO"; then :
6099 ax_cv_cxx_compile_cxx11=yes
6100 else
6101 ax_cv_cxx_compile_cxx11=no
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6106 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6107 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6108 ac_success=yes
6111 if test x$ac_success = xno; then
6112 for alternative in ${ax_cxx_compile_alternatives}; do
6113 switch="-std=gnu++${alternative}"
6114 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6116 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6117 if eval \${$cachevar+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 ac_save_CXX="$CXX"
6121 CXX="$CXX $switch"
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6126 // If the compiler admits that it is not ready for C++11, why torture it?
6127 // Hopefully, this will speed up the test.
6129 #ifndef __cplusplus
6131 #error "This is not a C++ compiler"
6133 #elif __cplusplus < 201103L
6135 #error "This is not a C++11 compiler"
6137 #else
6139 namespace cxx11
6142 namespace test_static_assert
6145 template <typename T>
6146 struct check
6148 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6153 namespace test_final_override
6156 struct Base
6158 virtual ~Base() {}
6159 virtual void f() {}
6162 struct Derived : public Base
6164 virtual ~Derived() override {}
6165 virtual void f() override {}
6170 namespace test_double_right_angle_brackets
6173 template < typename T >
6174 struct check {};
6176 typedef check<void> single_type;
6177 typedef check<check<void>> double_type;
6178 typedef check<check<check<void>>> triple_type;
6179 typedef check<check<check<check<void>>>> quadruple_type;
6183 namespace test_decltype
6189 int a = 1;
6190 decltype(a) b = 2;
6191 return a + b;
6196 namespace test_type_deduction
6199 template < typename T1, typename T2 >
6200 struct is_same
6202 static const bool value = false;
6205 template < typename T >
6206 struct is_same<T, T>
6208 static const bool value = true;
6211 template < typename T1, typename T2 >
6212 auto
6213 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6215 return a1 + a2;
6219 test(const int c, volatile int v)
6221 static_assert(is_same<int, decltype(0)>::value == true, "");
6222 static_assert(is_same<int, decltype(c)>::value == false, "");
6223 static_assert(is_same<int, decltype(v)>::value == false, "");
6224 auto ac = c;
6225 auto av = v;
6226 auto sumi = ac + av + 'x';
6227 auto sumf = ac + av + 1.0;
6228 static_assert(is_same<int, decltype(ac)>::value == true, "");
6229 static_assert(is_same<int, decltype(av)>::value == true, "");
6230 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6231 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6232 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6233 return (sumf > 0.0) ? sumi : add(c, v);
6238 namespace test_noexcept
6241 int f() { return 0; }
6242 int g() noexcept { return 0; }
6244 static_assert(noexcept(f()) == false, "");
6245 static_assert(noexcept(g()) == true, "");
6249 namespace test_constexpr
6252 template < typename CharT >
6253 unsigned long constexpr
6254 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6256 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6259 template < typename CharT >
6260 unsigned long constexpr
6261 strlen_c(const CharT *const s) noexcept
6263 return strlen_c_r(s, 0UL);
6266 static_assert(strlen_c("") == 0UL, "");
6267 static_assert(strlen_c("1") == 1UL, "");
6268 static_assert(strlen_c("example") == 7UL, "");
6269 static_assert(strlen_c("another\0example") == 7UL, "");
6273 namespace test_rvalue_references
6276 template < int N >
6277 struct answer
6279 static constexpr int value = N;
6282 answer<1> f(int&) { return answer<1>(); }
6283 answer<2> f(const int&) { return answer<2>(); }
6284 answer<3> f(int&&) { return answer<3>(); }
6286 void
6287 test()
6289 int i = 0;
6290 const int c = 0;
6291 static_assert(decltype(f(i))::value == 1, "");
6292 static_assert(decltype(f(c))::value == 2, "");
6293 static_assert(decltype(f(0))::value == 3, "");
6298 namespace test_uniform_initialization
6301 struct test
6303 static const int zero {};
6304 static const int one {1};
6307 static_assert(test::zero == 0, "");
6308 static_assert(test::one == 1, "");
6312 namespace test_lambdas
6315 void
6316 test1()
6318 auto lambda1 = [](){};
6319 auto lambda2 = lambda1;
6320 lambda1();
6321 lambda2();
6325 test2()
6327 auto a = [](int i, int j){ return i + j; }(1, 2);
6328 auto b = []() -> int { return '0'; }();
6329 auto c = [=](){ return a + b; }();
6330 auto d = [&](){ return c; }();
6331 auto e = [a, &b](int x) mutable {
6332 const auto identity = [](int y){ return y; };
6333 for (auto i = 0; i < a; ++i)
6334 a += b--;
6335 return x + identity(a + b);
6336 }(0);
6337 return a + b + c + d + e;
6341 test3()
6343 const auto nullary = [](){ return 0; };
6344 const auto unary = [](int x){ return x; };
6345 using nullary_t = decltype(nullary);
6346 using unary_t = decltype(unary);
6347 const auto higher1st = [](nullary_t f){ return f(); };
6348 const auto higher2nd = [unary](nullary_t f1){
6349 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6351 return higher1st(nullary) + higher2nd(nullary)(unary);
6356 namespace test_variadic_templates
6359 template <int...>
6360 struct sum;
6362 template <int N0, int... N1toN>
6363 struct sum<N0, N1toN...>
6365 static constexpr auto value = N0 + sum<N1toN...>::value;
6368 template <>
6369 struct sum<>
6371 static constexpr auto value = 0;
6374 static_assert(sum<>::value == 0, "");
6375 static_assert(sum<1>::value == 1, "");
6376 static_assert(sum<23>::value == 23, "");
6377 static_assert(sum<1, 2>::value == 3, "");
6378 static_assert(sum<5, 5, 11>::value == 21, "");
6379 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6383 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6384 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6385 // because of this.
6386 namespace test_template_alias_sfinae
6389 struct foo {};
6391 template<typename T>
6392 using member = typename T::member_type;
6394 template<typename T>
6395 void func(...) {}
6397 template<typename T>
6398 void func(member<T>*) {}
6400 void test();
6402 void test() { func<foo>(0); }
6406 } // namespace cxx11
6408 #endif // __cplusplus >= 201103L
6412 _ACEOF
6413 if ac_fn_cxx_try_compile "$LINENO"; then :
6414 eval $cachevar=yes
6415 else
6416 eval $cachevar=no
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 CXX="$ac_save_CXX"
6421 eval ac_res=\$$cachevar
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if eval test x\$$cachevar = xyes; then
6425 CXX="$CXX $switch"
6426 if test -n "$CXXCPP" ; then
6427 CXXCPP="$CXXCPP $switch"
6429 ac_success=yes
6430 break
6432 done
6435 if test x$ac_success = xno; then
6436 for alternative in ${ax_cxx_compile_alternatives}; do
6437 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6438 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6440 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6441 if eval \${$cachevar+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 ac_save_CXX="$CXX"
6445 CXX="$CXX $switch"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6450 // If the compiler admits that it is not ready for C++11, why torture it?
6451 // Hopefully, this will speed up the test.
6453 #ifndef __cplusplus
6455 #error "This is not a C++ compiler"
6457 #elif __cplusplus < 201103L
6459 #error "This is not a C++11 compiler"
6461 #else
6463 namespace cxx11
6466 namespace test_static_assert
6469 template <typename T>
6470 struct check
6472 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6477 namespace test_final_override
6480 struct Base
6482 virtual ~Base() {}
6483 virtual void f() {}
6486 struct Derived : public Base
6488 virtual ~Derived() override {}
6489 virtual void f() override {}
6494 namespace test_double_right_angle_brackets
6497 template < typename T >
6498 struct check {};
6500 typedef check<void> single_type;
6501 typedef check<check<void>> double_type;
6502 typedef check<check<check<void>>> triple_type;
6503 typedef check<check<check<check<void>>>> quadruple_type;
6507 namespace test_decltype
6513 int a = 1;
6514 decltype(a) b = 2;
6515 return a + b;
6520 namespace test_type_deduction
6523 template < typename T1, typename T2 >
6524 struct is_same
6526 static const bool value = false;
6529 template < typename T >
6530 struct is_same<T, T>
6532 static const bool value = true;
6535 template < typename T1, typename T2 >
6536 auto
6537 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6539 return a1 + a2;
6543 test(const int c, volatile int v)
6545 static_assert(is_same<int, decltype(0)>::value == true, "");
6546 static_assert(is_same<int, decltype(c)>::value == false, "");
6547 static_assert(is_same<int, decltype(v)>::value == false, "");
6548 auto ac = c;
6549 auto av = v;
6550 auto sumi = ac + av + 'x';
6551 auto sumf = ac + av + 1.0;
6552 static_assert(is_same<int, decltype(ac)>::value == true, "");
6553 static_assert(is_same<int, decltype(av)>::value == true, "");
6554 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6555 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6556 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6557 return (sumf > 0.0) ? sumi : add(c, v);
6562 namespace test_noexcept
6565 int f() { return 0; }
6566 int g() noexcept { return 0; }
6568 static_assert(noexcept(f()) == false, "");
6569 static_assert(noexcept(g()) == true, "");
6573 namespace test_constexpr
6576 template < typename CharT >
6577 unsigned long constexpr
6578 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6580 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6583 template < typename CharT >
6584 unsigned long constexpr
6585 strlen_c(const CharT *const s) noexcept
6587 return strlen_c_r(s, 0UL);
6590 static_assert(strlen_c("") == 0UL, "");
6591 static_assert(strlen_c("1") == 1UL, "");
6592 static_assert(strlen_c("example") == 7UL, "");
6593 static_assert(strlen_c("another\0example") == 7UL, "");
6597 namespace test_rvalue_references
6600 template < int N >
6601 struct answer
6603 static constexpr int value = N;
6606 answer<1> f(int&) { return answer<1>(); }
6607 answer<2> f(const int&) { return answer<2>(); }
6608 answer<3> f(int&&) { return answer<3>(); }
6610 void
6611 test()
6613 int i = 0;
6614 const int c = 0;
6615 static_assert(decltype(f(i))::value == 1, "");
6616 static_assert(decltype(f(c))::value == 2, "");
6617 static_assert(decltype(f(0))::value == 3, "");
6622 namespace test_uniform_initialization
6625 struct test
6627 static const int zero {};
6628 static const int one {1};
6631 static_assert(test::zero == 0, "");
6632 static_assert(test::one == 1, "");
6636 namespace test_lambdas
6639 void
6640 test1()
6642 auto lambda1 = [](){};
6643 auto lambda2 = lambda1;
6644 lambda1();
6645 lambda2();
6649 test2()
6651 auto a = [](int i, int j){ return i + j; }(1, 2);
6652 auto b = []() -> int { return '0'; }();
6653 auto c = [=](){ return a + b; }();
6654 auto d = [&](){ return c; }();
6655 auto e = [a, &b](int x) mutable {
6656 const auto identity = [](int y){ return y; };
6657 for (auto i = 0; i < a; ++i)
6658 a += b--;
6659 return x + identity(a + b);
6660 }(0);
6661 return a + b + c + d + e;
6665 test3()
6667 const auto nullary = [](){ return 0; };
6668 const auto unary = [](int x){ return x; };
6669 using nullary_t = decltype(nullary);
6670 using unary_t = decltype(unary);
6671 const auto higher1st = [](nullary_t f){ return f(); };
6672 const auto higher2nd = [unary](nullary_t f1){
6673 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6675 return higher1st(nullary) + higher2nd(nullary)(unary);
6680 namespace test_variadic_templates
6683 template <int...>
6684 struct sum;
6686 template <int N0, int... N1toN>
6687 struct sum<N0, N1toN...>
6689 static constexpr auto value = N0 + sum<N1toN...>::value;
6692 template <>
6693 struct sum<>
6695 static constexpr auto value = 0;
6698 static_assert(sum<>::value == 0, "");
6699 static_assert(sum<1>::value == 1, "");
6700 static_assert(sum<23>::value == 23, "");
6701 static_assert(sum<1, 2>::value == 3, "");
6702 static_assert(sum<5, 5, 11>::value == 21, "");
6703 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6707 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6708 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6709 // because of this.
6710 namespace test_template_alias_sfinae
6713 struct foo {};
6715 template<typename T>
6716 using member = typename T::member_type;
6718 template<typename T>
6719 void func(...) {}
6721 template<typename T>
6722 void func(member<T>*) {}
6724 void test();
6726 void test() { func<foo>(0); }
6730 } // namespace cxx11
6732 #endif // __cplusplus >= 201103L
6736 _ACEOF
6737 if ac_fn_cxx_try_compile "$LINENO"; then :
6738 eval $cachevar=yes
6739 else
6740 eval $cachevar=no
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 CXX="$ac_save_CXX"
6745 eval ac_res=\$$cachevar
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6748 if eval test x\$$cachevar = xyes; then
6749 CXX="$CXX $switch"
6750 if test -n "$CXXCPP" ; then
6751 CXXCPP="$CXXCPP $switch"
6753 ac_success=yes
6754 break
6756 done
6757 if test x$ac_success = xyes; then
6758 break
6760 done
6763 ac_ext=c
6764 ac_cpp='$CPP $CPPFLAGS'
6765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6769 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6770 if test x$ac_success = xno; then
6771 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6774 if test x$ac_success = xno; then
6775 HAVE_CXX11=0
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6777 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6778 else
6779 HAVE_CXX11=1
6781 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6787 if test "${build}" != "${host}"; then
6788 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6789 ac_ext=cpp
6790 ac_cpp='$CXXCPP $CPPFLAGS'
6791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6794 ac_success=no
6795 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6796 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6797 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6798 CXX="$CXX_FOR_BUILD"
6799 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6800 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6802 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6803 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6810 // If the compiler admits that it is not ready for C++11, why torture it?
6811 // Hopefully, this will speed up the test.
6813 #ifndef __cplusplus
6815 #error "This is not a C++ compiler"
6817 #elif __cplusplus < 201103L
6819 #error "This is not a C++11 compiler"
6821 #else
6823 namespace cxx11
6826 namespace test_static_assert
6829 template <typename T>
6830 struct check
6832 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6837 namespace test_final_override
6840 struct Base
6842 virtual ~Base() {}
6843 virtual void f() {}
6846 struct Derived : public Base
6848 virtual ~Derived() override {}
6849 virtual void f() override {}
6854 namespace test_double_right_angle_brackets
6857 template < typename T >
6858 struct check {};
6860 typedef check<void> single_type;
6861 typedef check<check<void>> double_type;
6862 typedef check<check<check<void>>> triple_type;
6863 typedef check<check<check<check<void>>>> quadruple_type;
6867 namespace test_decltype
6873 int a = 1;
6874 decltype(a) b = 2;
6875 return a + b;
6880 namespace test_type_deduction
6883 template < typename T1, typename T2 >
6884 struct is_same
6886 static const bool value = false;
6889 template < typename T >
6890 struct is_same<T, T>
6892 static const bool value = true;
6895 template < typename T1, typename T2 >
6896 auto
6897 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6899 return a1 + a2;
6903 test(const int c, volatile int v)
6905 static_assert(is_same<int, decltype(0)>::value == true, "");
6906 static_assert(is_same<int, decltype(c)>::value == false, "");
6907 static_assert(is_same<int, decltype(v)>::value == false, "");
6908 auto ac = c;
6909 auto av = v;
6910 auto sumi = ac + av + 'x';
6911 auto sumf = ac + av + 1.0;
6912 static_assert(is_same<int, decltype(ac)>::value == true, "");
6913 static_assert(is_same<int, decltype(av)>::value == true, "");
6914 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6915 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6916 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6917 return (sumf > 0.0) ? sumi : add(c, v);
6922 namespace test_noexcept
6925 int f() { return 0; }
6926 int g() noexcept { return 0; }
6928 static_assert(noexcept(f()) == false, "");
6929 static_assert(noexcept(g()) == true, "");
6933 namespace test_constexpr
6936 template < typename CharT >
6937 unsigned long constexpr
6938 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6940 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6943 template < typename CharT >
6944 unsigned long constexpr
6945 strlen_c(const CharT *const s) noexcept
6947 return strlen_c_r(s, 0UL);
6950 static_assert(strlen_c("") == 0UL, "");
6951 static_assert(strlen_c("1") == 1UL, "");
6952 static_assert(strlen_c("example") == 7UL, "");
6953 static_assert(strlen_c("another\0example") == 7UL, "");
6957 namespace test_rvalue_references
6960 template < int N >
6961 struct answer
6963 static constexpr int value = N;
6966 answer<1> f(int&) { return answer<1>(); }
6967 answer<2> f(const int&) { return answer<2>(); }
6968 answer<3> f(int&&) { return answer<3>(); }
6970 void
6971 test()
6973 int i = 0;
6974 const int c = 0;
6975 static_assert(decltype(f(i))::value == 1, "");
6976 static_assert(decltype(f(c))::value == 2, "");
6977 static_assert(decltype(f(0))::value == 3, "");
6982 namespace test_uniform_initialization
6985 struct test
6987 static const int zero {};
6988 static const int one {1};
6991 static_assert(test::zero == 0, "");
6992 static_assert(test::one == 1, "");
6996 namespace test_lambdas
6999 void
7000 test1()
7002 auto lambda1 = [](){};
7003 auto lambda2 = lambda1;
7004 lambda1();
7005 lambda2();
7009 test2()
7011 auto a = [](int i, int j){ return i + j; }(1, 2);
7012 auto b = []() -> int { return '0'; }();
7013 auto c = [=](){ return a + b; }();
7014 auto d = [&](){ return c; }();
7015 auto e = [a, &b](int x) mutable {
7016 const auto identity = [](int y){ return y; };
7017 for (auto i = 0; i < a; ++i)
7018 a += b--;
7019 return x + identity(a + b);
7020 }(0);
7021 return a + b + c + d + e;
7025 test3()
7027 const auto nullary = [](){ return 0; };
7028 const auto unary = [](int x){ return x; };
7029 using nullary_t = decltype(nullary);
7030 using unary_t = decltype(unary);
7031 const auto higher1st = [](nullary_t f){ return f(); };
7032 const auto higher2nd = [unary](nullary_t f1){
7033 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7035 return higher1st(nullary) + higher2nd(nullary)(unary);
7040 namespace test_variadic_templates
7043 template <int...>
7044 struct sum;
7046 template <int N0, int... N1toN>
7047 struct sum<N0, N1toN...>
7049 static constexpr auto value = N0 + sum<N1toN...>::value;
7052 template <>
7053 struct sum<>
7055 static constexpr auto value = 0;
7058 static_assert(sum<>::value == 0, "");
7059 static_assert(sum<1>::value == 1, "");
7060 static_assert(sum<23>::value == 23, "");
7061 static_assert(sum<1, 2>::value == 3, "");
7062 static_assert(sum<5, 5, 11>::value == 21, "");
7063 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7067 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7068 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7069 // because of this.
7070 namespace test_template_alias_sfinae
7073 struct foo {};
7075 template<typename T>
7076 using member = typename T::member_type;
7078 template<typename T>
7079 void func(...) {}
7081 template<typename T>
7082 void func(member<T>*) {}
7084 void test();
7086 void test() { func<foo>(0); }
7090 } // namespace cxx11
7092 #endif // __cplusplus >= 201103L
7096 _ACEOF
7097 if ac_fn_cxx_try_compile "$LINENO"; then :
7098 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7099 else
7100 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7105 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7106 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7107 ac_success=yes
7110 if test x$ac_success = xno; then
7111 for alternative in ${ax_cxx_compile_alternatives}; do
7112 switch="-std=gnu++${alternative}"
7113 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7115 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7116 if eval \${$cachevar+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 ac_save_CXX="$CXX"
7120 CXX="$CXX $switch"
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7125 // If the compiler admits that it is not ready for C++11, why torture it?
7126 // Hopefully, this will speed up the test.
7128 #ifndef __cplusplus
7130 #error "This is not a C++ compiler"
7132 #elif __cplusplus < 201103L
7134 #error "This is not a C++11 compiler"
7136 #else
7138 namespace cxx11
7141 namespace test_static_assert
7144 template <typename T>
7145 struct check
7147 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7152 namespace test_final_override
7155 struct Base
7157 virtual ~Base() {}
7158 virtual void f() {}
7161 struct Derived : public Base
7163 virtual ~Derived() override {}
7164 virtual void f() override {}
7169 namespace test_double_right_angle_brackets
7172 template < typename T >
7173 struct check {};
7175 typedef check<void> single_type;
7176 typedef check<check<void>> double_type;
7177 typedef check<check<check<void>>> triple_type;
7178 typedef check<check<check<check<void>>>> quadruple_type;
7182 namespace test_decltype
7188 int a = 1;
7189 decltype(a) b = 2;
7190 return a + b;
7195 namespace test_type_deduction
7198 template < typename T1, typename T2 >
7199 struct is_same
7201 static const bool value = false;
7204 template < typename T >
7205 struct is_same<T, T>
7207 static const bool value = true;
7210 template < typename T1, typename T2 >
7211 auto
7212 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7214 return a1 + a2;
7218 test(const int c, volatile int v)
7220 static_assert(is_same<int, decltype(0)>::value == true, "");
7221 static_assert(is_same<int, decltype(c)>::value == false, "");
7222 static_assert(is_same<int, decltype(v)>::value == false, "");
7223 auto ac = c;
7224 auto av = v;
7225 auto sumi = ac + av + 'x';
7226 auto sumf = ac + av + 1.0;
7227 static_assert(is_same<int, decltype(ac)>::value == true, "");
7228 static_assert(is_same<int, decltype(av)>::value == true, "");
7229 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7230 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7231 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7232 return (sumf > 0.0) ? sumi : add(c, v);
7237 namespace test_noexcept
7240 int f() { return 0; }
7241 int g() noexcept { return 0; }
7243 static_assert(noexcept(f()) == false, "");
7244 static_assert(noexcept(g()) == true, "");
7248 namespace test_constexpr
7251 template < typename CharT >
7252 unsigned long constexpr
7253 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7255 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7258 template < typename CharT >
7259 unsigned long constexpr
7260 strlen_c(const CharT *const s) noexcept
7262 return strlen_c_r(s, 0UL);
7265 static_assert(strlen_c("") == 0UL, "");
7266 static_assert(strlen_c("1") == 1UL, "");
7267 static_assert(strlen_c("example") == 7UL, "");
7268 static_assert(strlen_c("another\0example") == 7UL, "");
7272 namespace test_rvalue_references
7275 template < int N >
7276 struct answer
7278 static constexpr int value = N;
7281 answer<1> f(int&) { return answer<1>(); }
7282 answer<2> f(const int&) { return answer<2>(); }
7283 answer<3> f(int&&) { return answer<3>(); }
7285 void
7286 test()
7288 int i = 0;
7289 const int c = 0;
7290 static_assert(decltype(f(i))::value == 1, "");
7291 static_assert(decltype(f(c))::value == 2, "");
7292 static_assert(decltype(f(0))::value == 3, "");
7297 namespace test_uniform_initialization
7300 struct test
7302 static const int zero {};
7303 static const int one {1};
7306 static_assert(test::zero == 0, "");
7307 static_assert(test::one == 1, "");
7311 namespace test_lambdas
7314 void
7315 test1()
7317 auto lambda1 = [](){};
7318 auto lambda2 = lambda1;
7319 lambda1();
7320 lambda2();
7324 test2()
7326 auto a = [](int i, int j){ return i + j; }(1, 2);
7327 auto b = []() -> int { return '0'; }();
7328 auto c = [=](){ return a + b; }();
7329 auto d = [&](){ return c; }();
7330 auto e = [a, &b](int x) mutable {
7331 const auto identity = [](int y){ return y; };
7332 for (auto i = 0; i < a; ++i)
7333 a += b--;
7334 return x + identity(a + b);
7335 }(0);
7336 return a + b + c + d + e;
7340 test3()
7342 const auto nullary = [](){ return 0; };
7343 const auto unary = [](int x){ return x; };
7344 using nullary_t = decltype(nullary);
7345 using unary_t = decltype(unary);
7346 const auto higher1st = [](nullary_t f){ return f(); };
7347 const auto higher2nd = [unary](nullary_t f1){
7348 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7350 return higher1st(nullary) + higher2nd(nullary)(unary);
7355 namespace test_variadic_templates
7358 template <int...>
7359 struct sum;
7361 template <int N0, int... N1toN>
7362 struct sum<N0, N1toN...>
7364 static constexpr auto value = N0 + sum<N1toN...>::value;
7367 template <>
7368 struct sum<>
7370 static constexpr auto value = 0;
7373 static_assert(sum<>::value == 0, "");
7374 static_assert(sum<1>::value == 1, "");
7375 static_assert(sum<23>::value == 23, "");
7376 static_assert(sum<1, 2>::value == 3, "");
7377 static_assert(sum<5, 5, 11>::value == 21, "");
7378 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7382 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7383 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7384 // because of this.
7385 namespace test_template_alias_sfinae
7388 struct foo {};
7390 template<typename T>
7391 using member = typename T::member_type;
7393 template<typename T>
7394 void func(...) {}
7396 template<typename T>
7397 void func(member<T>*) {}
7399 void test();
7401 void test() { func<foo>(0); }
7405 } // namespace cxx11
7407 #endif // __cplusplus >= 201103L
7411 _ACEOF
7412 if ac_fn_cxx_try_compile "$LINENO"; then :
7413 eval $cachevar=yes
7414 else
7415 eval $cachevar=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 CXX="$ac_save_CXX"
7420 eval ac_res=\$$cachevar
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7422 $as_echo "$ac_res" >&6; }
7423 if eval test x\$$cachevar = xyes; then
7424 CXX="$CXX $switch"
7425 if test -n "$CXXCPP" ; then
7426 CXXCPP="$CXXCPP $switch"
7428 ac_success=yes
7429 break
7431 done
7434 if test x$ac_success = xno; then
7435 for alternative in ${ax_cxx_compile_alternatives}; do
7436 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7437 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7439 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7440 if eval \${$cachevar+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 ac_save_CXX="$CXX"
7444 CXX="$CXX $switch"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7449 // If the compiler admits that it is not ready for C++11, why torture it?
7450 // Hopefully, this will speed up the test.
7452 #ifndef __cplusplus
7454 #error "This is not a C++ compiler"
7456 #elif __cplusplus < 201103L
7458 #error "This is not a C++11 compiler"
7460 #else
7462 namespace cxx11
7465 namespace test_static_assert
7468 template <typename T>
7469 struct check
7471 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7476 namespace test_final_override
7479 struct Base
7481 virtual ~Base() {}
7482 virtual void f() {}
7485 struct Derived : public Base
7487 virtual ~Derived() override {}
7488 virtual void f() override {}
7493 namespace test_double_right_angle_brackets
7496 template < typename T >
7497 struct check {};
7499 typedef check<void> single_type;
7500 typedef check<check<void>> double_type;
7501 typedef check<check<check<void>>> triple_type;
7502 typedef check<check<check<check<void>>>> quadruple_type;
7506 namespace test_decltype
7512 int a = 1;
7513 decltype(a) b = 2;
7514 return a + b;
7519 namespace test_type_deduction
7522 template < typename T1, typename T2 >
7523 struct is_same
7525 static const bool value = false;
7528 template < typename T >
7529 struct is_same<T, T>
7531 static const bool value = true;
7534 template < typename T1, typename T2 >
7535 auto
7536 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7538 return a1 + a2;
7542 test(const int c, volatile int v)
7544 static_assert(is_same<int, decltype(0)>::value == true, "");
7545 static_assert(is_same<int, decltype(c)>::value == false, "");
7546 static_assert(is_same<int, decltype(v)>::value == false, "");
7547 auto ac = c;
7548 auto av = v;
7549 auto sumi = ac + av + 'x';
7550 auto sumf = ac + av + 1.0;
7551 static_assert(is_same<int, decltype(ac)>::value == true, "");
7552 static_assert(is_same<int, decltype(av)>::value == true, "");
7553 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7554 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7555 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7556 return (sumf > 0.0) ? sumi : add(c, v);
7561 namespace test_noexcept
7564 int f() { return 0; }
7565 int g() noexcept { return 0; }
7567 static_assert(noexcept(f()) == false, "");
7568 static_assert(noexcept(g()) == true, "");
7572 namespace test_constexpr
7575 template < typename CharT >
7576 unsigned long constexpr
7577 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7579 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7582 template < typename CharT >
7583 unsigned long constexpr
7584 strlen_c(const CharT *const s) noexcept
7586 return strlen_c_r(s, 0UL);
7589 static_assert(strlen_c("") == 0UL, "");
7590 static_assert(strlen_c("1") == 1UL, "");
7591 static_assert(strlen_c("example") == 7UL, "");
7592 static_assert(strlen_c("another\0example") == 7UL, "");
7596 namespace test_rvalue_references
7599 template < int N >
7600 struct answer
7602 static constexpr int value = N;
7605 answer<1> f(int&) { return answer<1>(); }
7606 answer<2> f(const int&) { return answer<2>(); }
7607 answer<3> f(int&&) { return answer<3>(); }
7609 void
7610 test()
7612 int i = 0;
7613 const int c = 0;
7614 static_assert(decltype(f(i))::value == 1, "");
7615 static_assert(decltype(f(c))::value == 2, "");
7616 static_assert(decltype(f(0))::value == 3, "");
7621 namespace test_uniform_initialization
7624 struct test
7626 static const int zero {};
7627 static const int one {1};
7630 static_assert(test::zero == 0, "");
7631 static_assert(test::one == 1, "");
7635 namespace test_lambdas
7638 void
7639 test1()
7641 auto lambda1 = [](){};
7642 auto lambda2 = lambda1;
7643 lambda1();
7644 lambda2();
7648 test2()
7650 auto a = [](int i, int j){ return i + j; }(1, 2);
7651 auto b = []() -> int { return '0'; }();
7652 auto c = [=](){ return a + b; }();
7653 auto d = [&](){ return c; }();
7654 auto e = [a, &b](int x) mutable {
7655 const auto identity = [](int y){ return y; };
7656 for (auto i = 0; i < a; ++i)
7657 a += b--;
7658 return x + identity(a + b);
7659 }(0);
7660 return a + b + c + d + e;
7664 test3()
7666 const auto nullary = [](){ return 0; };
7667 const auto unary = [](int x){ return x; };
7668 using nullary_t = decltype(nullary);
7669 using unary_t = decltype(unary);
7670 const auto higher1st = [](nullary_t f){ return f(); };
7671 const auto higher2nd = [unary](nullary_t f1){
7672 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7674 return higher1st(nullary) + higher2nd(nullary)(unary);
7679 namespace test_variadic_templates
7682 template <int...>
7683 struct sum;
7685 template <int N0, int... N1toN>
7686 struct sum<N0, N1toN...>
7688 static constexpr auto value = N0 + sum<N1toN...>::value;
7691 template <>
7692 struct sum<>
7694 static constexpr auto value = 0;
7697 static_assert(sum<>::value == 0, "");
7698 static_assert(sum<1>::value == 1, "");
7699 static_assert(sum<23>::value == 23, "");
7700 static_assert(sum<1, 2>::value == 3, "");
7701 static_assert(sum<5, 5, 11>::value == 21, "");
7702 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7706 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7707 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7708 // because of this.
7709 namespace test_template_alias_sfinae
7712 struct foo {};
7714 template<typename T>
7715 using member = typename T::member_type;
7717 template<typename T>
7718 void func(...) {}
7720 template<typename T>
7721 void func(member<T>*) {}
7723 void test();
7725 void test() { func<foo>(0); }
7729 } // namespace cxx11
7731 #endif // __cplusplus >= 201103L
7735 _ACEOF
7736 if ac_fn_cxx_try_compile "$LINENO"; then :
7737 eval $cachevar=yes
7738 else
7739 eval $cachevar=no
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 CXX="$ac_save_CXX"
7744 eval ac_res=\$$cachevar
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7747 if eval test x\$$cachevar = xyes; then
7748 CXX="$CXX $switch"
7749 if test -n "$CXXCPP" ; then
7750 CXXCPP="$CXXCPP $switch"
7752 ac_success=yes
7753 break
7755 done
7756 if test x$ac_success = xyes; then
7757 break
7759 done
7761 CXX_FOR_BUILD="$CXX"
7762 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7763 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7764 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7765 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7766 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7767 ac_ext=c
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7774 if test x$ac_success = xno; then
7775 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7778 if test x$ac_success = xno; then
7779 HAVE_CXX11_FOR_BUILD=0
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7781 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7782 else
7783 HAVE_CXX11_FOR_BUILD=1
7785 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7793 # Check whether --enable-pgo-build was given.
7794 if test "${enable_pgo_build+set}" = set; then :
7795 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7796 else
7797 enable_pgo_build=no
7801 # Issue errors and warnings for invalid/strange PGO build combinations.
7802 case "$have_compiler:$host:$target:$enable_pgo_build" in
7803 *:*:*:no) ;;
7805 # Allow the PGO build only if we aren't building a compiler and
7806 # we are in a native configuration.
7807 no:$build:$build:yes | no:$build:$build:lto) ;;
7809 # Disallow the PGO bootstrap if we are building a compiler.
7810 yes:*:*:yes | yes:*:*:lto)
7811 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7814 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7816 esac
7818 if test "$enable_pgo_build" != "no"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7820 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7821 old_CFLAGS="$CFLAGS"
7822 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7823 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 int foo;
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"; then :
7831 else
7832 PGO_BUILD_GEN_CFLAGS=
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 CFLAGS="$old_CFLAGS"
7836 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7843 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7846 if test "$enable_pgo_build" = "lto"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7848 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7849 old_CFLAGS="$CFLAGS"
7850 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7851 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 int foo;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"; then :
7858 else
7859 PGO_BUILD_LTO_CFLAGS=
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 CFLAGS="$old_CFLAGS"
7863 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865 $as_echo "yes" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7870 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7878 # Used for setting $lt_cv_objdir
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7880 $as_echo_n "checking for objdir... " >&6; }
7881 if ${lt_cv_objdir+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 rm -f .libs 2>/dev/null
7885 mkdir .libs 2>/dev/null
7886 if test -d .libs; then
7887 lt_cv_objdir=.libs
7888 else
7889 # MS-DOS does not allow filenames that begin with a dot.
7890 lt_cv_objdir=_libs
7892 rmdir .libs 2>/dev/null
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7895 $as_echo "$lt_cv_objdir" >&6; }
7896 objdir=$lt_cv_objdir
7902 cat >>confdefs.h <<_ACEOF
7903 #define LT_OBJDIR "$lt_cv_objdir/"
7904 _ACEOF
7908 # Check for GMP, MPFR and MPC
7909 require_gmp=no
7910 require_mpc=no
7911 if test -d ${srcdir}/gcc ; then
7912 require_gmp=yes
7913 require_mpc=yes
7915 if test -d ${srcdir}/gdb ; then
7916 require_gmp=yes
7919 gmplibs="-lmpfr -lgmp"
7920 if test x"$require_mpc" = "xyes" ; then
7921 gmplibs="-lmpc $gmplibs"
7923 gmpinc=
7924 have_gmp=no
7926 # Specify a location for mpc
7927 # check for this first so it ends up on the link line before mpfr.
7929 # Check whether --with-mpc was given.
7930 if test "${with_mpc+set}" = set; then :
7931 withval=$with_mpc;
7935 # Check whether --with-mpc-include was given.
7936 if test "${with_mpc_include+set}" = set; then :
7937 withval=$with_mpc_include;
7941 # Check whether --with-mpc-lib was given.
7942 if test "${with_mpc_lib+set}" = set; then :
7943 withval=$with_mpc_lib;
7947 if test "x$with_mpc" != x; then
7948 gmplibs="-L$with_mpc/lib $gmplibs"
7949 gmpinc="-I$with_mpc/include $gmpinc"
7951 if test "x$with_mpc_include" != x; then
7952 gmpinc="-I$with_mpc_include $gmpinc"
7954 if test "x$with_mpc_lib" != x; then
7955 gmplibs="-L$with_mpc_lib $gmplibs"
7957 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7958 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7959 gmpinc='-I$$s/mpc/src '"$gmpinc"
7960 # Do not test the mpc version. Assume that it is sufficient, since
7961 # it is in the source tree, and the library has not been built yet
7962 # but it would be included on the link line in the version check below
7963 # hence making the test fail.
7964 have_gmp=yes
7967 # Specify a location for mpfr
7968 # check for this first so it ends up on the link line before gmp.
7970 # Check whether --with-mpfr was given.
7971 if test "${with_mpfr+set}" = set; then :
7972 withval=$with_mpfr;
7976 # Check whether --with-mpfr-include was given.
7977 if test "${with_mpfr_include+set}" = set; then :
7978 withval=$with_mpfr_include;
7982 # Check whether --with-mpfr-lib was given.
7983 if test "${with_mpfr_lib+set}" = set; then :
7984 withval=$with_mpfr_lib;
7988 if test "x$with_mpfr" != x; then
7989 gmplibs="-L$with_mpfr/lib $gmplibs"
7990 gmpinc="-I$with_mpfr/include $gmpinc"
7992 if test "x$with_mpfr_include" != x; then
7993 gmpinc="-I$with_mpfr_include $gmpinc"
7995 if test "x$with_mpfr_lib" != x; then
7996 gmplibs="-L$with_mpfr_lib $gmplibs"
7998 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7999 # MPFR v3.1.0 moved the sources into a src sub-directory.
8000 if ! test -d ${srcdir}/mpfr/src; then
8001 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8003 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8004 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8005 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8006 # Do not test the mpfr version. Assume that it is sufficient, since
8007 # it is in the source tree, and the library has not been built yet
8008 # but it would be included on the link line in the version check below
8009 # hence making the test fail.
8010 have_gmp=yes
8013 # Specify a location for gmp
8015 # Check whether --with-gmp was given.
8016 if test "${with_gmp+set}" = set; then :
8017 withval=$with_gmp;
8021 # Check whether --with-gmp-include was given.
8022 if test "${with_gmp_include+set}" = set; then :
8023 withval=$with_gmp_include;
8027 # Check whether --with-gmp-lib was given.
8028 if test "${with_gmp_lib+set}" = set; then :
8029 withval=$with_gmp_lib;
8034 if test "x$with_gmp" != x; then
8035 gmplibs="-L$with_gmp/lib $gmplibs"
8036 gmpinc="-I$with_gmp/include $gmpinc"
8038 if test "x$with_gmp_include" != x; then
8039 gmpinc="-I$with_gmp_include $gmpinc"
8041 if test "x$with_gmp_lib" != x; then
8042 gmplibs="-L$with_gmp_lib $gmplibs"
8044 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8045 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8046 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8047 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8048 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8049 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8050 # Do not test the gmp version. Assume that it is sufficient, since
8051 # it is in the source tree, and the library has not been built yet
8052 # but it would be included on the link line in the version check below
8053 # hence making the test fail.
8054 have_gmp=yes
8057 if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
8058 have_gmp=yes
8059 saved_CFLAGS="$CFLAGS"
8060 CFLAGS="$CFLAGS $gmpinc"
8061 # Check for the recommended and required versions of GMP.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8063 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include "gmp.h"
8068 main ()
8071 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8072 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8073 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8074 choke me
8075 #endif
8078 return 0;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 #include <gmp.h>
8086 main ()
8089 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8090 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8091 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8092 choke me
8093 #endif
8096 return 0;
8098 _ACEOF
8099 if ac_fn_c_try_compile "$LINENO"; then :
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8102 else
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8104 $as_echo "buggy but acceptable" >&6; }
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }; have_gmp=no
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 # If we have GMP, check the MPFR version.
8114 if test x"$have_gmp" = xyes; then
8115 # Check for the recommended and required versions of MPFR.
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8117 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <gmp.h>
8121 #include <mpfr.h>
8123 main ()
8126 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8127 choke me
8128 #endif
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 #include <gmp.h>
8138 #include <mpfr.h>
8140 main ()
8143 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8144 choke me
8145 #endif
8148 return 0;
8150 _ACEOF
8151 if ac_fn_c_try_compile "$LINENO"; then :
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8156 $as_echo "buggy but acceptable" >&6; }
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }; have_gmp=no
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 # Check for the MPC header version.
8167 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
8168 # Check for the recommended and required versions of MPC.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8170 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 #include <mpc.h>
8175 main ()
8178 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8179 choke me
8180 #endif
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <mpc.h>
8191 main ()
8194 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8195 choke me
8196 #endif
8199 return 0;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8204 $as_echo "yes" >&6; }
8205 else
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8207 $as_echo "buggy but acceptable" >&6; }
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }; have_gmp=no
8214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 # Now check the MPFR library.
8218 if test x"$have_gmp" = xyes; then
8219 saved_LIBS="$LIBS"
8220 LIBS="$LIBS $gmplibs"
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8222 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #include <mpfr.h>
8227 main ()
8230 mpfr_t n;
8231 mpfr_t x;
8232 int t;
8233 mpfr_init (n);
8234 mpfr_init (x);
8235 mpfr_atan2 (n, n, x, MPFR_RNDN);
8236 mpfr_erfc (n, x, MPFR_RNDN);
8237 mpfr_subnormalize (x, t, MPFR_RNDN);
8238 mpfr_clear(n);
8239 mpfr_clear(x);
8242 return 0;
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8247 $as_echo "yes" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }; have_gmp=no
8252 rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LIBS="$saved_LIBS"
8257 # Now check the MPC library
8258 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8259 saved_LIBS="$LIBS"
8260 LIBS="$LIBS $gmplibs"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8262 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265 #include <mpc.h>
8267 main ()
8270 mpc_t c;
8271 mpc_init2 (c, 53);
8272 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8273 mpc_cosh (c, c, MPC_RNDNN);
8274 mpc_pow (c, c, c, MPC_RNDNN);
8275 mpc_acosh (c, c, MPC_RNDNN);
8276 mpc_clear (c);
8279 return 0;
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }; have_gmp=no
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 LIBS="$saved_LIBS"
8294 CFLAGS="$saved_CFLAGS"
8296 # The library versions listed in the error message below should match
8297 # the HARD-minimums enforced above.
8298 if test x$have_gmp != xyes; then
8299 if test -d ${srcdir}/gcc ; then
8300 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8301 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8302 their locations. Source code for these libraries can be found at
8303 their respective hosting sites as well as at
8304 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8305 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8306 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8307 make sure that you have installed both the libraries and the header
8308 files. They may be located in separate packages." "$LINENO" 5
8309 else
8310 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8311 Try the --with-gmp and/or --with-mpfr options to specify
8312 their locations. If you obtained GMP and/or MPFR from a vendor
8313 distribution package, make sure that you have installed both the libraries
8314 and the header files. They may be located in separate packages." "$LINENO" 5
8319 # Flags needed for both GMP, MPFR and/or MPC.
8327 # Libraries to use for stage1 or when not bootstrapping.
8329 # Check whether --with-stage1-libs was given.
8330 if test "${with_stage1_libs+set}" = set; then :
8331 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8332 stage1_libs=
8333 else
8334 stage1_libs=$withval
8336 else
8337 stage1_libs=
8342 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8343 # default is yes if gcc is being built; no otherwise. The reason for
8344 # this default is that gdb is sometimes linked against GNU Source
8345 # Highlight, which is a shared library that uses C++ exceptions. In
8346 # this case, -static-libstdc++ will cause crashes.
8348 # Check whether --with-static-standard-libraries was given.
8349 if test "${with_static_standard_libraries+set}" = set; then :
8350 withval=$with_static_standard_libraries;
8351 else
8352 with_static_standard_libraries=auto
8355 if test "$with_static_standard_libraries" = auto; then
8356 with_static_standard_libraries=$have_compiler
8359 # Linker flags to use for stage1 or when not bootstrapping.
8361 # Check whether --with-stage1-ldflags was given.
8362 if test "${with_stage1_ldflags+set}" = set; then :
8363 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8364 stage1_ldflags=
8365 else
8366 stage1_ldflags=$withval
8368 else
8369 stage1_ldflags=
8370 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8371 # if supported. But if the user explicitly specified the libraries to use,
8372 # trust that they are doing what they want.
8373 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8374 -a "$have_static_libs" = yes; then
8375 stage1_ldflags="-static-libstdc++ -static-libgcc"
8381 # Libraries to use for stage2 and later builds.
8383 # Check whether --with-boot-libs was given.
8384 if test "${with_boot_libs+set}" = set; then :
8385 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8386 poststage1_libs=
8387 else
8388 poststage1_libs=$withval
8390 else
8391 poststage1_libs=
8396 # Linker flags to use for stage2 and later builds.
8398 # Check whether --with-boot-ldflags was given.
8399 if test "${with_boot_ldflags+set}" = set; then :
8400 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8401 poststage1_ldflags=
8402 else
8403 poststage1_ldflags=$withval
8405 else
8406 poststage1_ldflags=
8407 # In stages 2 and 3, default to linking libstdc++ and libgcc
8408 # statically. But if the user explicitly specified the libraries to
8409 # use, trust that they are doing what they want.
8410 if test "$poststage1_libs" = ""; then
8411 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8417 # GCC GRAPHITE dependency isl.
8418 # Basic setup is inlined here, actual checks are in config/isl.m4
8421 # Check whether --with-isl was given.
8422 if test "${with_isl+set}" = set; then :
8423 withval=$with_isl;
8427 # Treat --without-isl as a request to disable
8428 # GRAPHITE support and skip all following checks.
8429 if test "x$with_isl" != "xno"; then
8430 # Check for isl
8433 # Check whether --with-isl-include was given.
8434 if test "${with_isl_include+set}" = set; then :
8435 withval=$with_isl_include;
8439 # Check whether --with-isl-lib was given.
8440 if test "${with_isl_lib+set}" = set; then :
8441 withval=$with_isl_lib;
8445 # Check whether --enable-isl-version-check was given.
8446 if test "${enable_isl_version_check+set}" = set; then :
8447 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8448 else
8449 ENABLE_ISL_CHECK=yes
8453 # Initialize isllibs and islinc.
8454 case $with_isl in
8456 isllibs=
8457 islinc=
8459 "" | yes)
8462 isllibs="-L$with_isl/lib"
8463 islinc="-I$with_isl/include"
8465 esac
8466 if test "x${with_isl_include}" != x ; then
8467 islinc="-I$with_isl_include"
8469 if test "x${with_isl_lib}" != x; then
8470 isllibs="-L$with_isl_lib"
8472 if test "x${islinc}" = x && test "x${isllibs}" = x \
8473 && test -d ${srcdir}/isl; then
8474 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8475 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8476 ENABLE_ISL_CHECK=no
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8478 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8481 isllibs="${isllibs} -lisl"
8485 if test "${ENABLE_ISL_CHECK}" = yes ; then
8486 _isl_saved_CFLAGS=$CFLAGS
8487 _isl_saved_LDFLAGS=$LDFLAGS
8488 _isl_saved_LIBS=$LIBS
8490 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8491 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8492 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8495 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <isl/schedule.h>
8500 main ()
8502 isl_options_set_schedule_serialize_sccs (NULL, 0);
8504 return 0;
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 gcc_cv_isl=yes
8509 else
8510 gcc_cv_isl=no
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8515 $as_echo "$gcc_cv_isl" >&6; }
8517 if test "${gcc_cv_isl}" = no ; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8519 $as_echo "required isl version is 0.15 or later" >&6; }
8522 CFLAGS=$_isl_saved_CFLAGS
8523 LDFLAGS=$_isl_saved_LDFLAGS
8524 LIBS=$_isl_saved_LIBS
8532 if test "x${with_isl}" = xno; then
8533 graphite_requested=no
8534 elif test "x${with_isl}" != x \
8535 || test "x${with_isl_include}" != x \
8536 || test "x${with_isl_lib}" != x ; then
8537 graphite_requested=yes
8538 else
8539 graphite_requested=no
8544 if test "${gcc_cv_isl}" = no ; then
8545 isllibs=
8546 islinc=
8549 if test "${graphite_requested}" = yes \
8550 && test "x${isllibs}" = x \
8551 && test "x${islinc}" = x ; then
8553 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8559 # If the isl check failed, disable builds of in-tree variant of isl
8560 if test "x$with_isl" = xno ||
8561 test "x$gcc_cv_isl" = xno; then
8562 noconfigdirs="$noconfigdirs isl"
8563 islinc=
8569 # Check for LTO support.
8570 # Check whether --enable-lto was given.
8571 if test "${enable_lto+set}" = set; then :
8572 enableval=$enable_lto; enable_lto=$enableval
8573 else
8574 enable_lto=yes; default_enable_lto=yes
8581 target_elf=no
8582 case $target in
8583 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8584 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8585 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8586 nvptx-*-none)
8587 target_elf=no
8590 target_elf=yes
8592 esac
8594 if test $target_elf = yes; then :
8595 # ELF platforms build the lto-plugin always.
8596 build_lto_plugin=yes
8598 else
8599 if test x"$default_enable_lto" = x"yes" ; then
8600 case $target in
8601 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8602 # On other non-ELF platforms, LTO has yet to be validated.
8603 *) enable_lto=no ;;
8604 esac
8605 else
8606 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8607 # It would also be nice to check the binutils support, but we don't
8608 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8609 # warn during gcc/ subconfigure; unless you're bootstrapping with
8610 # -flto it won't be needed until after installation anyway.
8611 case $target in
8612 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8613 *) if test x"$enable_lto" = x"yes"; then
8614 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8617 esac
8619 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8620 # Build it unless LTO was explicitly disabled.
8621 case $target in
8622 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8623 *) ;;
8624 esac
8629 # Check whether --enable-linker-plugin-configure-flags was given.
8630 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8631 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8632 else
8633 extra_linker_plugin_configure_flags=
8637 # Check whether --enable-linker-plugin-flags was given.
8638 if test "${enable_linker_plugin_flags+set}" = set; then :
8639 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8640 else
8641 extra_linker_plugin_flags=
8646 # Enable --enable-host-shared.
8647 # Checked early to determine whether jit is an 'all' language
8648 # Check whether --enable-host-shared was given.
8649 if test "${enable_host_shared+set}" = set; then :
8650 enableval=$enable_host_shared; host_shared=$enableval
8651 case $host in
8652 x86_64-*-darwin* | aarch64-*-darwin*)
8653 if test x$host_shared != xyes ; then
8654 # PIC is the default, and actually cannot be switched off.
8655 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8656 host_shared=yes
8657 fi ;;
8658 *) ;;
8659 esac
8660 else
8661 case $host in
8662 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8663 *) host_shared=no ;;
8664 esac
8670 # If we are building PIC/PIE host executables, and we are building dependent
8671 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8672 # code.
8673 host_libs_picflag=
8674 if test "$host_shared" = "yes";then
8675 host_libs_picflag='--with-pic'
8679 # By default, C and C++ are the only stage 1 languages.
8680 stage1_languages=,c,
8682 # Target libraries that we bootstrap.
8683 bootstrap_target_libs=,target-libgcc,
8685 # Figure out what language subdirectories are present.
8686 # Look if the user specified --enable-languages="..."; if not, use
8687 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8688 # go away some day.
8689 # NB: embedded tabs in this IF block -- do not untabify
8690 if test -d ${srcdir}/gcc; then
8691 if test x"${enable_languages+set}" != xset; then
8692 if test x"${LANGUAGES+set}" = xset; then
8693 enable_languages="${LANGUAGES}"
8694 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8695 else
8696 enable_languages=default
8698 else
8699 if test x"${enable_languages}" = x ||
8700 test x"${enable_languages}" = xyes;
8701 then
8702 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8703 exit 1
8706 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8708 # 'f95' is the old name for the 'fortran' language. We issue a warning
8709 # and make the substitution.
8710 case ,${enable_languages}, in
8711 *,f95,*)
8712 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8713 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8715 esac
8717 # If bootstrapping, C++ must be enabled.
8718 case ",$enable_languages,:$enable_bootstrap" in
8719 *,c++,*:*) ;;
8720 *:yes)
8721 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8722 enable_languages="${enable_languages},c++"
8723 else
8724 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8727 esac
8729 # First scan to see if an enabled language requires some other language.
8730 # We assume that a given config-lang.in will list all the language
8731 # front ends it requires, even if some are required indirectly.
8732 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8733 case ${lang_frag} in
8734 ..) ;;
8735 # The odd quoting in the next line works around
8736 # an apparent bug in bash 1.12 on linux.
8737 ${srcdir}/gcc/[*]/config-lang.in) ;;
8739 # From the config-lang.in, get $language, $lang_requires, and
8740 # $lang_requires_boot_languages.
8741 language=
8742 lang_requires=
8743 lang_requires_boot_languages=
8744 # set srcdir during sourcing lang_frag to the gcc dir.
8745 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8746 # polutes this shell
8747 saved_srcdir=${srcdir}
8748 srcdir=${srcdir}/gcc . ${lang_frag}
8749 srcdir=${saved_srcdir}
8750 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8751 case ,${enable_languages}, in
8752 *,$other,*) ;;
8753 *,default,*) ;;
8754 *,all,*) ;;
8755 *,$language,*)
8756 echo " \`$other' language required by \`$language'; enabling" 1>&2
8757 enable_languages="${enable_languages},${other}"
8759 esac
8760 done
8761 for other in ${lang_requires_boot_languages} ; do
8762 if test "$other" != "c"; then
8763 case ,${enable_stage1_languages}, in
8764 *,$other,*) ;;
8765 *,default,*) ;;
8766 *,all,*) ;;
8768 case ,${enable_languages}, in
8769 *,$language,*)
8770 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8771 enable_stage1_languages="$enable_stage1_languages,${other}"
8773 esac
8775 esac
8777 done
8779 esac
8780 done
8782 new_enable_languages=,c,
8784 # If LTO is enabled, add the LTO front end.
8785 if test "$enable_lto" = "yes" ; then
8786 case ,${enable_languages}, in
8787 *,lto,*) ;;
8788 *) enable_languages="${enable_languages},lto" ;;
8789 esac
8790 if test "${build_lto_plugin}" = "yes" ; then
8791 configdirs="$configdirs lto-plugin"
8795 # If we're building an offloading compiler, add the LTO front end.
8796 if test x"$enable_as_accelerator_for" != x ; then
8797 case ,${enable_languages}, in
8798 *,lto,*) ;;
8799 *) enable_languages="${enable_languages},lto" ;;
8800 esac
8803 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8804 potential_languages=,c,
8806 enabled_target_libs=
8807 disabled_target_libs=
8809 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8810 case ${lang_frag} in
8811 ..) ;;
8812 # The odd quoting in the next line works around
8813 # an apparent bug in bash 1.12 on linux.
8814 ${srcdir}/gcc/[*]/config-lang.in) ;;
8816 # From the config-lang.in, get $language, $target_libs,
8817 # $lang_dirs, $boot_language, and $build_by_default
8818 language=
8819 target_libs=
8820 lang_dirs=
8821 subdir_requires=
8822 boot_language=no
8823 build_by_default=yes
8824 # set srcdir during sourcing. See above about save & restore
8825 saved_srcdir=${srcdir}
8826 srcdir=${srcdir}/gcc . ${lang_frag}
8827 srcdir=${saved_srcdir}
8828 if test x${language} = x; then
8829 echo "${lang_frag} doesn't set \$language." 1>&2
8830 exit 1
8833 if test "$language" = "c++"; then
8834 boot_language=yes
8837 add_this_lang=no
8838 # C is always enabled, so no need to add it again
8839 if test "$language" != "c"; then
8840 case ,${enable_languages}, in
8841 *,${language},*)
8842 # Language was explicitly selected; include it
8843 add_this_lang=yes
8845 *,all,*)
8846 # All languages are enabled
8847 add_this_lang=all
8849 *,default,*)
8850 # 'default' was selected, select it if it is a default language
8851 add_this_lang=${build_by_default}
8853 esac
8856 # Disable languages that need other directories if these aren't available.
8857 for i in $subdir_requires; do
8858 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8859 case ${add_this_lang} in
8860 yes)
8861 # Specifically requested language; tell them.
8862 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8864 all)
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8866 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8867 add_this_lang=unsupported
8870 # Silently disable.
8871 add_this_lang=unsupported
8873 esac
8874 done
8876 # Disable Ada if no preexisting GNAT is available.
8877 case ${add_this_lang}:${language}:${have_gnat} in
8878 yes:ada:no)
8879 # Specifically requested language; tell them.
8880 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8882 all:ada:no)
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8884 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8885 add_this_lang=unsupported
8887 *:ada:no)
8888 # Silently disable.
8889 add_this_lang=unsupported
8891 esac
8893 # Disable D if no preexisting GDC is available.
8894 case ${add_this_lang}:${language}:${have_gdc} in
8895 yes:d:no)
8896 # Specifically requested language; tell them.
8897 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8899 all:d:no)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8901 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8902 add_this_lang=unsupported
8904 *:d:no)
8905 # Silently disable.
8906 add_this_lang=unsupported
8908 esac
8910 # Disable jit if -enable-host-shared not specified
8911 # but not if building for Mingw. All code in Windows
8912 # is position independent code (PIC).
8913 case $target in
8914 *mingw*) ;;
8916 case ${add_this_lang}:${language}:${host_shared} in
8917 yes:jit:no)
8918 # PR jit/64780: explicitly specify --enable-host-shared
8919 as_fn_error $? "
8920 Enabling language \"jit\" requires --enable-host-shared.
8922 --enable-host-shared typically slows the rest of the compiler down by
8923 a few %, so you must explicitly enable it.
8925 If you want to build both the jit and the regular compiler, it is often
8926 best to do this via two separate configure/builds, in separate
8927 directories, to avoid imposing the performance cost of
8928 --enable-host-shared on the regular compiler." "$LINENO" 5
8930 all:jit:no)
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8932 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8933 add_this_lang=unsupported
8935 *:jit:no)
8936 # Silently disable.
8937 add_this_lang=unsupported
8939 esac
8941 esac
8943 # Disable a language that is unsupported by the target.
8944 case "${add_this_lang}: $unsupported_languages " in
8945 no:*) ;;
8946 unsupported:*) ;;
8947 *:*" $language "*)
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8949 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8950 add_this_lang=unsupported
8952 esac
8954 case $add_this_lang in
8955 unsupported)
8956 # Remove language-dependent dirs.
8957 disabled_target_libs="$disabled_target_libs $target_libs"
8958 noconfigdirs="$noconfigdirs $lang_dirs"
8961 # Remove language-dependent dirs; still show language as supported.
8962 disabled_target_libs="$disabled_target_libs $target_libs"
8963 noconfigdirs="$noconfigdirs $lang_dirs"
8964 potential_languages="${potential_languages}${language},"
8966 all|yes)
8967 new_enable_languages="${new_enable_languages}${language},"
8968 potential_languages="${potential_languages}${language},"
8969 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8970 enabled_target_libs="$enabled_target_libs $target_libs"
8971 case "${boot_language}:,$enable_stage1_languages," in
8972 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8973 # Add to (comma-separated) list of stage 1 languages.
8974 case ",$stage1_languages," in
8975 *,$language,* | ,yes, | ,all,) ;;
8976 *) stage1_languages="${stage1_languages}${language}," ;;
8977 esac
8978 # We need to bootstrap any supporting libraries.
8979 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8981 esac
8983 esac
8985 esac
8986 done
8988 # Add target libraries which are only needed for disabled languages
8989 # to noconfigdirs.
8990 if test -n "$disabled_target_libs"; then
8991 for dir in $disabled_target_libs; do
8992 case " $enabled_target_libs " in
8993 *" ${dir} "*) ;;
8994 *) noconfigdirs="$noconfigdirs $dir" ;;
8995 esac
8996 done
8999 # Check whether --enable-stage1-languages was given.
9000 if test "${enable_stage1_languages+set}" = set; then :
9001 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9002 ,no,|,,)
9003 # Set it to something that will have no effect in the loop below
9004 enable_stage1_languages=c ;;
9005 ,yes,)
9006 enable_stage1_languages=`echo $new_enable_languages | \
9007 sed -e "s/^,//" -e "s/,$//" ` ;;
9008 *,all,*)
9009 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9010 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9011 esac
9013 # Add "good" languages from enable_stage1_languages to stage1_languages,
9014 # while "bad" languages go in missing_languages. Leave no duplicates.
9015 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9016 case $potential_languages in
9017 *,$i,*)
9018 case $stage1_languages in
9019 *,$i,*) ;;
9020 *) stage1_languages="$stage1_languages$i," ;;
9021 esac ;;
9023 case $missing_languages in
9024 *,$i,*) ;;
9025 *) missing_languages="$missing_languages$i," ;;
9026 esac ;;
9027 esac
9028 done
9032 # Remove leading/trailing commas that were added for simplicity
9033 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9034 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9035 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9036 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9038 if test "x$missing_languages" != x; then
9039 as_fn_error $? "
9040 The following requested languages could not be built: ${missing_languages}
9041 Supported languages are: ${potential_languages}" "$LINENO" 5
9043 if test "x$new_enable_languages" != "x$enable_languages"; then
9044 echo The following languages will be built: ${new_enable_languages}
9045 enable_languages="$new_enable_languages"
9049 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9052 # Handle --disable-<component> generically.
9053 for dir in $configdirs $build_configdirs $target_configdirs ; do
9054 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9055 varname=`echo $dirname | sed -e s/+/_/g`
9056 if eval test x\${enable_${varname}} "=" xno ; then
9057 noconfigdirs="$noconfigdirs $dir"
9059 done
9061 # Check for Boehm's garbage collector
9062 # Check whether --enable-objc-gc was given.
9063 if test "${enable_objc_gc+set}" = set; then :
9064 enableval=$enable_objc_gc;
9068 # Check whether --with-target-bdw-gc was given.
9069 if test "${with_target_bdw_gc+set}" = set; then :
9070 withval=$with_target_bdw_gc;
9074 # Check whether --with-target-bdw-gc-include was given.
9075 if test "${with_target_bdw_gc_include+set}" = set; then :
9076 withval=$with_target_bdw_gc_include;
9080 # Check whether --with-target-bdw-gc-lib was given.
9081 if test "${with_target_bdw_gc_lib+set}" = set; then :
9082 withval=$with_target_bdw_gc_lib;
9086 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9088 $as_echo_n "checking for bdw garbage collector... " >&6; }
9089 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9091 $as_echo "using bdw-gc in default locations" >&6; }
9092 else
9093 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
9094 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9095 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
9096 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9099 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9102 esac
9104 # Disable libitm, libsanitizer, libvtv if we're not building C++
9105 case ,${enable_languages}, in
9106 *,c++,*)
9107 # Disable libitm, libsanitizer if we're not building libstdc++
9108 case "${noconfigdirs}" in
9109 *target-libstdc++-v3*)
9110 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9112 *) ;;
9113 esac
9116 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9118 esac
9120 # If gcc/ is not in the source tree then we'll not be building a
9121 # target compiler, assume in that case we don't want to build any
9122 # target libraries or tools.
9124 # This was added primarily for the benefit for binutils-gdb who reuse
9125 # this configure script, but don't always have target tools available.
9126 if test ! -d ${srcdir}/gcc; then
9127 skipdirs="${skipdirs} ${target_configdirs}"
9130 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9131 # $build_configdirs and $target_configdirs.
9132 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9134 notsupp=""
9135 for dir in . $skipdirs $noconfigdirs ; do
9136 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9137 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9138 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9139 if test -r $srcdir/$dirname/configure ; then
9140 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9141 true
9142 else
9143 notsupp="$notsupp $dir"
9147 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9148 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9149 if test -r $srcdir/$dirname/configure ; then
9150 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9151 true
9152 else
9153 notsupp="$notsupp $dir"
9157 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9158 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9159 if test -r $srcdir/$dirname/configure ; then
9160 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9161 true
9162 else
9163 notsupp="$notsupp $dir"
9167 done
9169 # Quietly strip out all directories which aren't configurable in this tree.
9170 # This relies on all configurable subdirectories being autoconfiscated, which
9171 # is now the case.
9172 build_configdirs_all="$build_configdirs"
9173 build_configdirs=
9174 for i in ${build_configdirs_all} ; do
9175 j=`echo $i | sed -e s/build-//g`
9176 if test -f ${srcdir}/$j/configure ; then
9177 build_configdirs="${build_configdirs} $i"
9179 done
9181 configdirs_all="$configdirs"
9182 configdirs=
9183 for i in ${configdirs_all} ; do
9184 if test -f ${srcdir}/$i/configure ; then
9185 configdirs="${configdirs} $i"
9187 done
9189 target_configdirs_all="$target_configdirs"
9190 target_configdirs=
9191 for i in ${target_configdirs_all} ; do
9192 j=`echo $i | sed -e s/target-//g`
9193 if test -f ${srcdir}/$j/configure ; then
9194 target_configdirs="${target_configdirs} $i"
9196 done
9198 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9199 # so we have to add it after the preceding checks.
9200 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9201 then
9202 case " $configdirs " in
9203 *" libiberty "*)
9204 # If we can build libiberty, we can also build libiberty-linker-plugin.
9205 configdirs="$configdirs libiberty-linker-plugin"
9206 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9207 --with-libiberty=../libiberty-linker-plugin";;
9209 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9210 esac
9213 # Sometimes we have special requirements for the host libiberty.
9214 extra_host_libiberty_configure_flags=
9215 case " $configdirs " in
9216 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
9217 # When these are to be built as shared libraries, the same applies to
9218 # libiberty.
9219 extra_host_libiberty_configure_flags=--enable-shared
9221 esac
9224 # Sometimes we have special requirements for the host zlib.
9225 extra_host_zlib_configure_flags=
9226 case " $configdirs " in
9227 *" bfd "*)
9228 # When bfd is to be built as a shared library, the same applies to
9229 # zlib.
9230 if test "$enable_shared" = "yes"; then
9231 extra_host_zlib_configure_flags=--enable-host-shared
9234 esac
9237 # Produce a warning message for the subdirs we can't configure.
9238 # This isn't especially interesting in the Cygnus tree, but in the individual
9239 # FSF releases, it's important to let people know when their machine isn't
9240 # supported by the one or two programs in a package.
9242 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9243 # If $appdirs is non-empty, at least one of those directories must still
9244 # be configured, or we error out. (E.g., if the gas release supports a
9245 # specified target in some subdirs but not the gas subdir, we shouldn't
9246 # pretend that all is well.)
9247 if test -n "$appdirs" ; then
9248 for dir in $appdirs ; do
9249 if test -r $dir/Makefile.in ; then
9250 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9251 appdirs=""
9252 break
9254 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9255 appdirs=""
9256 break
9259 done
9260 if test -n "$appdirs" ; then
9261 echo "*** This configuration is not supported by this package." 1>&2
9262 exit 1
9265 # Okay, some application will build, or we don't care to check. Still
9266 # notify of subdirs not getting built.
9267 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9268 echo " ${notsupp}" 1>&2
9269 echo " (Any other directories should still work fine.)" 1>&2
9272 case "$host" in
9273 *msdosdjgpp*)
9274 enable_gdbtk=no ;;
9275 esac
9277 # To find our prefix, in gcc_cv_tool_prefix.
9279 # The user is always right.
9280 if test "${PATH_SEPARATOR+set}" != set; then
9281 echo "#! /bin/sh" >conf$$.sh
9282 echo "exit 0" >>conf$$.sh
9283 chmod +x conf$$.sh
9284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9285 PATH_SEPARATOR=';'
9286 else
9287 PATH_SEPARATOR=:
9289 rm -f conf$$.sh
9293 get_gcc_base_ver="cat"
9295 # Check whether --with-gcc-major-version-only was given.
9296 if test "${with_gcc_major_version_only+set}" = set; then :
9297 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9298 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9308 if test "x$exec_prefix" = xNONE; then
9309 if test "x$prefix" = xNONE; then
9310 gcc_cv_tool_prefix=$ac_default_prefix
9311 else
9312 gcc_cv_tool_prefix=$prefix
9314 else
9315 gcc_cv_tool_prefix=$exec_prefix
9318 # If there is no compiler in the tree, use the PATH only. In any
9319 # case, if there is no compiler in the tree nobody should use
9320 # AS_FOR_TARGET and LD_FOR_TARGET.
9321 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9322 if test x$with_gcc_major_version_only = xyes ; then
9323 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9324 else
9325 gcc_version=`cat $srcdir/gcc/BASE-VER`
9327 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9328 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9329 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9330 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9331 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9332 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9333 else
9334 gcc_cv_tool_dirs=
9337 if test x$build = x$target && test -n "$md_exec_prefix"; then
9338 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9343 copy_dirs=
9346 # Check whether --with-build-sysroot was given.
9347 if test "${with_build_sysroot+set}" = set; then :
9348 withval=$with_build_sysroot; if test x"$withval" != x ; then
9349 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9351 else
9352 SYSROOT_CFLAGS_FOR_TARGET=
9358 # Check whether --with-debug-prefix-map was given.
9359 if test "${with_debug_prefix_map+set}" = set; then :
9360 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9361 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9362 for debug_map in $withval; do
9363 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9364 done
9366 else
9367 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9372 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9373 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9374 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9375 # We want to ensure that TARGET libraries (which we know are built with
9376 # gcc) are built with "-O2 -g", so include those options when setting
9377 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9378 if test "x$CFLAGS_FOR_TARGET" = x; then
9379 if test "x${is_cross_compiler}" = xyes; then
9380 CFLAGS_FOR_TARGET="-g -O2"
9381 else
9382 CFLAGS_FOR_TARGET=$CFLAGS
9383 case " $CFLAGS " in
9384 *" -O2 "*) ;;
9385 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9386 esac
9387 case " $CFLAGS " in
9388 *" -g "* | *" -g3 "*) ;;
9389 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9390 esac
9395 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9396 if test "x${is_cross_compiler}" = xyes; then
9397 CXXFLAGS_FOR_TARGET="-g -O2"
9398 else
9399 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9400 case " $CXXFLAGS " in
9401 *" -O2 "*) ;;
9402 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9403 esac
9404 case " $CXXFLAGS " in
9405 *" -g "* | *" -g3 "*) ;;
9406 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9407 esac
9414 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9415 # the named directory are copied to $(tooldir)/sys-include.
9416 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9417 if test x${is_cross_compiler} = xno ; then
9418 echo 1>&2 '***' --with-headers is only supported when cross compiling
9419 exit 1
9421 if test x"${with_headers}" != xyes ; then
9422 x=${gcc_cv_tool_prefix}
9423 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9427 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9428 # the name directories are copied to $(tooldir)/lib. Multiple directories
9429 # are permitted.
9430 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9431 if test x${is_cross_compiler} = xno ; then
9432 echo 1>&2 '***' --with-libs is only supported when cross compiling
9433 exit 1
9435 if test x"${with_libs}" != xyes ; then
9436 # Copy the libraries in reverse order, so that files in the first named
9437 # library override files in subsequent libraries.
9438 x=${gcc_cv_tool_prefix}
9439 for l in ${with_libs}; do
9440 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9441 done
9445 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9447 # This is done by determining whether or not the appropriate directory
9448 # is available, and by checking whether or not specific configurations
9449 # have requested that this magic not happen.
9451 # The command line options always override the explicit settings in
9452 # configure.ac, and the settings in configure.ac override this magic.
9454 # If the default for a toolchain is to use GNU as and ld, and you don't
9455 # want to do that, then you should use the --without-gnu-as and
9456 # --without-gnu-ld options for the configure script. Similarly, if
9457 # the default is to use the included zlib and you don't want to do that,
9458 # you should use the --with-system-zlib option for the configure script.
9460 if test x${use_gnu_as} = x &&
9461 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9462 with_gnu_as=yes
9463 extra_host_args="$extra_host_args --with-gnu-as"
9466 if test x${use_gnu_ld} = x &&
9467 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9468 with_gnu_ld=yes
9469 extra_host_args="$extra_host_args --with-gnu-ld"
9472 if test x${use_included_zlib} = x &&
9473 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9475 else
9476 with_system_zlib=yes
9477 extra_host_args="$extra_host_args --with-system-zlib"
9480 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9481 # can detect this case.
9483 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9484 with_newlib=yes
9485 extra_host_args="$extra_host_args --with-newlib"
9488 # Handle ${copy_dirs}
9489 set fnord ${copy_dirs}
9490 shift
9491 while test $# != 0 ; do
9492 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9494 else
9495 echo Copying $1 to $2
9497 # Use the install script to create the directory and all required
9498 # parent directories.
9499 if test -d $2 ; then
9501 else
9502 echo >config.temp
9503 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9506 # Copy the directory, assuming we have tar.
9507 # FIXME: Should we use B in the second tar? Not all systems support it.
9508 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9510 # It is the responsibility of the user to correctly adjust all
9511 # symlinks. If somebody can figure out how to handle them correctly
9512 # here, feel free to add the code.
9514 echo $1 > $2/COPIED
9516 shift; shift
9517 done
9519 # Determine a target-dependent exec_prefix that the installed
9520 # gcc will search in. Keep this list sorted by triplet, with
9521 # the *-*-osname triplets last.
9522 md_exec_prefix=
9523 case "${target}" in
9524 i[34567]86-pc-msdosdjgpp*)
9525 md_exec_prefix=/dev/env/DJDIR/bin
9527 *-*-hpux* | \
9528 *-*-nto-qnx* | \
9529 *-*-solaris2*)
9530 md_exec_prefix=/usr/ccs/bin
9532 esac
9534 extra_arflags_for_target=
9535 extra_nmflags_for_target=
9536 extra_ranlibflags_for_target=
9537 target_makefile_frag=/dev/null
9538 case "${target}" in
9539 spu-*-*)
9540 target_makefile_frag="config/mt-spu"
9542 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9543 target_makefile_frag="config/mt-sde"
9545 mipsisa*-*-elfoabi*)
9546 target_makefile_frag="config/mt-mips-elfoabi"
9548 mips*-*-*linux* | mips*-*-gnu*)
9549 target_makefile_frag="config/mt-mips-gnu"
9551 nios2-*-elf*)
9552 target_makefile_frag="config/mt-nios2-elf"
9554 *-*-linux-android*)
9555 target_makefile_frag="config/mt-android"
9557 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9558 target_makefile_frag="config/mt-gnu"
9560 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9561 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9562 # commands to handle both 32-bit and 64-bit objects. These flags are
9563 # harmless if we're using GNU nm or ar.
9564 extra_arflags_for_target=" -X32_64"
9565 extra_nmflags_for_target=" -B -X32_64"
9567 esac
9569 alphaieee_frag=/dev/null
9570 case $target in
9571 alpha*-*-*)
9572 # This just makes sure to use the -mieee option to build target libs.
9573 # This should probably be set individually by each library.
9574 alphaieee_frag="config/mt-alphaieee"
9576 esac
9578 # If --enable-target-optspace always use -Os instead of -O2 to build
9579 # the target libraries, similarly if it is not specified, use -Os
9580 # on selected platforms.
9581 ospace_frag=/dev/null
9582 case "${enable_target_optspace}:${target}" in
9583 yes:*)
9584 ospace_frag="config/mt-ospace"
9586 :d30v-*)
9587 ospace_frag="config/mt-d30v"
9589 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9590 ospace_frag="config/mt-ospace"
9592 no:* | :*)
9595 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9597 esac
9599 # Some systems (e.g., one of the i386-aix systems the gas testers are
9600 # using) don't handle "\$" correctly, so don't use it here.
9601 tooldir='${exec_prefix}'/${target_noncanonical}
9602 build_tooldir=${tooldir}
9604 # Create a .gdbinit file which runs the one in srcdir
9605 # and tells GDB to look there for source files.
9607 if test -r ${srcdir}/.gdbinit ; then
9608 case ${srcdir} in
9609 .) ;;
9610 *) cat > ./.gdbinit <<EOF
9611 # ${NO_EDIT}
9612 dir ${srcdir}
9613 dir .
9614 source ${srcdir}/.gdbinit
9617 esac
9620 # Make sure that the compiler is able to generate an executable. If it
9621 # can't, we are probably in trouble. We don't care whether we can run the
9622 # executable--we might be using a cross compiler--we only care whether it
9623 # can be created. At this point the main configure script has set CC.
9624 we_are_ok=no
9625 echo "int main () { return 0; }" > conftest.c
9626 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9627 if test $? = 0 ; then
9628 if test -s conftest || test -s conftest.exe ; then
9629 we_are_ok=yes
9632 case $we_are_ok in
9634 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9635 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9636 rm -f conftest*
9637 exit 1
9639 esac
9640 rm -f conftest*
9642 # Decide which environment variable is used to find dynamic libraries.
9643 case "${host}" in
9644 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9645 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9646 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9647 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9648 esac
9650 # On systems where the dynamic library environment variable is PATH,
9651 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9652 # built executables to PATH.
9653 if test "$RPATH_ENVVAR" = PATH; then
9654 GCC_SHLIB_SUBDIR=/shlib
9655 else
9656 GCC_SHLIB_SUBDIR=
9659 # Adjust the toplevel makefile according to whether bootstrap was selected.
9660 case $enable_bootstrap in
9661 yes)
9662 bootstrap_suffix=bootstrap
9663 BUILD_CONFIG=bootstrap-debug
9666 bootstrap_suffix=no-bootstrap
9667 BUILD_CONFIG=
9669 esac
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9672 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9675 # Check whether --with-build-config was given.
9676 if test "${with_build_config+set}" = set; then :
9677 withval=$with_build_config; case $with_build_config in
9678 yes) with_build_config= ;;
9679 no) with_build_config= BUILD_CONFIG= ;;
9680 esac
9684 if test "x${with_build_config}" != x; then
9685 BUILD_CONFIG=$with_build_config
9686 else
9687 case $BUILD_CONFIG in
9688 bootstrap-debug)
9689 if echo "int f (void) { return 0; }" > conftest.c &&
9690 ${CC} -c conftest.c &&
9691 mv conftest.o conftest.o.g0 &&
9692 ${CC} -c -g conftest.c &&
9693 mv conftest.o conftest.o.g &&
9694 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9696 else
9697 BUILD_CONFIG=
9699 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9701 esac
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9704 $as_echo "$BUILD_CONFIG" >&6; }
9707 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9709 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9710 # Check whether --enable-vtable-verify was given.
9711 if test "${enable_vtable_verify+set}" = set; then :
9712 enableval=$enable_vtable_verify; case "$enableval" in
9713 yes) enable_vtable_verify=yes ;;
9714 no) enable_vtable_verify=no ;;
9715 *) enable_vtable_verify=no;;
9716 esac
9717 else
9718 enable_vtable_verify=no
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9722 $as_echo "$enable_vtable_verify" >&6; }
9724 # Record target_configdirs and the configure arguments for target and
9725 # build configuration in Makefile.
9726 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9727 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9728 bootstrap_fixincludes=no
9730 # If we are building libgomp, bootstrap it.
9731 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9732 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9735 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9736 # or bootstrap-ubsan, bootstrap it.
9737 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9738 case "$BUILD_CONFIG" in
9739 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9740 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9741 bootstrap_fixincludes=yes
9743 esac
9746 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9747 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9748 test "$enable_vtable_verify" != no; then
9749 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9752 # If we are building libatomic and the list of enabled languages includes the
9753 # D frontend, bootstrap it.
9754 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9755 case ,${enable_languages}, in
9756 *,d,*)
9757 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9759 esac
9762 # Determine whether gdb needs tk/tcl or not.
9763 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9764 # and in that case we want gdb to be built without tk. Ugh!
9765 # In fact I believe gdb is the *only* package directly dependent on tk,
9766 # so we should be able to put the 'maybe's in unconditionally and
9767 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9768 # 100% sure that that's safe though.
9770 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9771 case "$enable_gdbtk" in
9773 GDB_TK="" ;;
9774 yes)
9775 GDB_TK="${gdb_tk}" ;;
9777 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9778 # distro. Eventually someone will fix this and move Insight, nee
9779 # gdbtk to a separate directory.
9780 if test -d ${srcdir}/gdb/gdbtk ; then
9781 GDB_TK="${gdb_tk}"
9782 else
9783 GDB_TK=""
9786 esac
9787 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9788 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9790 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9791 # else does, only include them if one of these is built. The Makefile
9792 # provides the ordering, so it's enough here to add to the list.
9793 case " ${configdirs} " in
9794 *\ gdb\ *)
9795 configdirs="${configdirs} gnulib gdbsupport"
9797 *\ gdbserver\ *)
9798 configdirs="${configdirs} gnulib gdbsupport"
9800 *\ sim\ *)
9801 configdirs="${configdirs} gnulib"
9803 esac
9805 # Strip out unwanted targets.
9807 # While at that, we remove Makefiles if we were started for recursive
9808 # configuration, so that the top-level Makefile reconfigures them,
9809 # like we used to do when configure itself was recursive.
9811 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9812 # but now we're fixing up the Makefile ourselves with the additional
9813 # commands passed to AC_CONFIG_FILES. Use separate variables
9814 # extrasub-{build,host,target} not because there is any reason to split
9815 # the substitutions up that way, but only to remain below the limit of
9816 # 99 commands in a script, for HP-UX sed.
9818 # Do not nest @if/@endif or @unless/@endunless pairs, because
9819 # configure will not warn you at all.
9821 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9822 yes:yes:*\ gold\ *:*,c++,*) ;;
9823 yes:yes:*\ gold\ *:*)
9824 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9826 esac
9828 extrasub_build=
9829 for module in ${build_configdirs} ; do
9830 if test -z "${no_recursion}" \
9831 && test -f ${build_subdir}/${module}/Makefile; then
9832 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9833 rm -f ${build_subdir}/${module}/Makefile
9835 extrasub_build="$extrasub_build
9836 /^@if build-$module\$/d
9837 /^@endif build-$module\$/d
9838 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9839 /^@if build-$module-$bootstrap_suffix\$/d
9840 /^@endif build-$module-$bootstrap_suffix\$/d
9841 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9842 done
9843 extrasub_host=
9844 for module in ${configdirs} ; do
9845 if test -z "${no_recursion}"; then
9846 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9847 if test -f ${file}; then
9848 echo 1>&2 "*** removing ${file} to force reconfigure"
9849 rm -f ${file}
9851 done
9853 case ${module},${bootstrap_fixincludes} in
9854 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9855 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9856 esac
9857 extrasub_host="$extrasub_host
9858 /^@if $module\$/d
9859 /^@endif $module\$/d
9860 /^@unless $module\$/,/^@endunless $module\$/d
9861 /^@if $module-$host_bootstrap_suffix\$/d
9862 /^@endif $module-$host_bootstrap_suffix\$/d
9863 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9864 done
9865 extrasub_target=
9866 for module in ${target_configdirs} ; do
9867 if test -z "${no_recursion}" \
9868 && test -f ${target_subdir}/${module}/Makefile; then
9869 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9870 rm -f ${target_subdir}/${module}/Makefile
9873 # We only bootstrap target libraries listed in bootstrap_target_libs.
9874 case $bootstrap_target_libs in
9875 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9876 *) target_bootstrap_suffix=no-bootstrap ;;
9877 esac
9879 extrasub_target="$extrasub_target
9880 /^@if target-$module\$/d
9881 /^@endif target-$module\$/d
9882 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9883 /^@if target-$module-$target_bootstrap_suffix\$/d
9884 /^@endif target-$module-$target_bootstrap_suffix\$/d
9885 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9886 done
9888 # Do the final fixup along with target modules.
9889 extrasub_target="$extrasub_target
9890 /^@if /,/^@endif /d
9891 /^@unless /d
9892 /^@endunless /d"
9894 if test "$enable_pgo_build" != "no"; then
9895 extrasub_build="$extrasub_build
9896 /^@if pgo-build\$/d
9897 /^@endif pgo-build\$/d"
9900 # Create the serialization dependencies. This uses a temporary file.
9902 # Check whether --enable-serial-configure was given.
9903 if test "${enable_serial_configure+set}" = set; then :
9904 enableval=$enable_serial_configure;
9908 case ${enable_serial_configure} in
9909 yes)
9910 enable_serial_build_configure=yes
9911 enable_serial_host_configure=yes
9912 enable_serial_target_configure=yes
9914 esac
9916 # These force 'configure's to be done one at a time, to avoid problems
9917 # with contention over a shared config.cache.
9918 rm -f serdep.tmp
9919 echo '# serdep.tmp' > serdep.tmp
9920 olditem=
9921 test "x${enable_serial_build_configure}" = xyes &&
9922 for item in ${build_configdirs} ; do
9923 case ${olditem} in
9924 "") ;;
9925 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9926 esac
9927 olditem=${item}
9928 done
9929 olditem=
9930 test "x${enable_serial_host_configure}" = xyes &&
9931 for item in ${configdirs} ; do
9932 case ${olditem} in
9933 "") ;;
9934 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9935 esac
9936 olditem=${item}
9937 done
9938 olditem=
9939 test "x${enable_serial_target_configure}" = xyes &&
9940 for item in ${target_configdirs} ; do
9941 case ${olditem} in
9942 "") ;;
9943 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9944 esac
9945 olditem=${item}
9946 done
9947 serialization_dependencies=serdep.tmp
9950 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9951 # target, nonopt, and variable assignments. These are the ones we
9952 # might not want to pass down to subconfigures. The exception being
9953 # --cache-file=/dev/null, which is used to turn off the use of cache
9954 # files altogether, and which should be passed on to subconfigures.
9955 # Also strip program-prefix, program-suffix, and program-transform-name,
9956 # so that we can pass down a consistent program-transform-name.
9957 baseargs=
9958 tbaseargs=
9959 keep_next=no
9960 skip_next=no
9961 eval "set -- $ac_configure_args"
9962 for ac_arg
9964 if test X"$skip_next" = X"yes"; then
9965 skip_next=no
9966 continue
9968 if test X"$keep_next" = X"yes"; then
9969 case $ac_arg in
9970 *\'*)
9971 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9972 esac
9973 baseargs="$baseargs '$ac_arg'"
9974 tbaseargs="$tbaseargs '$ac_arg'"
9975 keep_next=no
9976 continue
9979 # Handle separated arguments. Based on the logic generated by
9980 # autoconf 2.59.
9981 case $ac_arg in
9982 *=* | --config-cache | -C | -disable-* | --disable-* \
9983 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9984 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9985 | -with-* | --with-* | -without-* | --without-* | --x)
9986 separate_arg=no
9989 separate_arg=yes
9992 separate_arg=no
9994 esac
9996 skip_targ=no
9997 case $ac_arg in
9999 --with-* | --without-*)
10000 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10002 case $libopt in
10003 *[-_]include)
10004 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10006 *[-_]lib)
10007 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10010 lib=$libopt
10012 esac
10015 case $lib in
10016 mpc | mpfr | gmp | isl)
10017 # If we're processing --with-$lib, --with-$lib-include or
10018 # --with-$lib-lib, for one of the libs above, and target is
10019 # different from host, don't pass the current argument to any
10020 # target library's configure.
10021 if test x$is_cross_compiler = xyes; then
10022 skip_targ=yes
10025 esac
10027 esac
10029 case "$ac_arg" in
10030 --cache-file=/dev/null | \
10031 -cache-file=/dev/null )
10032 # Handled here to avoid the test to skip args below.
10033 baseargs="$baseargs '$ac_arg'"
10034 tbaseargs="$tbaseargs '$ac_arg'"
10035 # Assert: $separate_arg should always be no.
10036 keep_next=$separate_arg
10038 --no*)
10039 continue
10041 --c* | \
10042 --sr* | \
10043 --ho* | \
10044 --bu* | \
10045 --t* | \
10046 --program-* | \
10047 -cache_file* | \
10048 -srcdir* | \
10049 -host* | \
10050 -build* | \
10051 -target* | \
10052 -program-prefix* | \
10053 -program-suffix* | \
10054 -program-transform-name* )
10055 skip_next=$separate_arg
10056 continue
10059 # An option. Add it.
10060 case $ac_arg in
10061 *\'*)
10062 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10063 esac
10064 baseargs="$baseargs '$ac_arg'"
10065 if test X"$skip_targ" = Xno; then
10066 tbaseargs="$tbaseargs '$ac_arg'"
10068 keep_next=$separate_arg
10071 # Either a variable assignment, or a nonopt (triplet). Don't
10072 # pass it down; let the Makefile handle this.
10073 continue
10075 esac
10076 done
10077 # Remove the initial space we just introduced and, as these will be
10078 # expanded by make, quote '$'.
10079 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10081 # Add in --program-transform-name, after --program-prefix and
10082 # --program-suffix have been applied to it. Autoconf has already
10083 # doubled dollar signs and backslashes in program_transform_name; we want
10084 # the backslashes un-doubled, and then the entire thing wrapped in single
10085 # quotes, because this will be expanded first by make and then by the shell.
10086 # Also, because we want to override the logic in subdir configure scripts to
10087 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10088 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10089 ${program_transform_name}
10090 EOF_SED
10091 gcc_transform_name=`cat conftestsed.out`
10092 rm -f conftestsed.out
10093 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10094 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10095 if test "$silent" = yes; then
10096 baseargs="$baseargs --silent"
10097 tbaseargs="$tbaseargs --silent"
10099 baseargs="$baseargs --disable-option-checking"
10100 tbaseargs="$tbaseargs --disable-option-checking"
10102 # Record and document user additions to sub configure arguments.
10107 # For the build-side libraries, we just need to pretend we're native,
10108 # and not use the same cache file. Multilibs are neither needed nor
10109 # desired. We can't even use the same cache file for all build-side
10110 # libraries, as they're compiled differently; some with C, some with
10111 # C++ or with different feature-enabling options.
10112 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10114 # For host modules, accept cache file option, or specification as blank.
10115 case "${cache_file}" in
10116 "") # empty
10117 cache_file_option="" ;;
10118 /* | [A-Za-z]:[\\/]* ) # absolute path
10119 cache_file_option="--cache-file=${cache_file}" ;;
10120 *) # relative path
10121 cache_file_option="--cache-file=../${cache_file}" ;;
10122 esac
10124 # Host dirs don't like to share a cache file either, horribly enough.
10125 # This seems to be due to autoconf 2.5x stupidity.
10126 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10128 target_configargs="$target_configargs ${tbaseargs}"
10130 # Passing a --with-cross-host argument lets the target libraries know
10131 # whether they are being built with a cross-compiler or being built
10132 # native. However, it would be better to use other mechanisms to make the
10133 # sorts of decisions they want to make on this basis. Please consider
10134 # this option to be deprecated. FIXME.
10135 if test x${is_cross_compiler} = xyes ; then
10136 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10139 # Special user-friendly check for native x86_64-linux build, if
10140 # multilib is not explicitly enabled.
10141 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10142 x86_64-*linux*:yes:$build:$build:)
10143 # Make sure we have a development environment that handles 32-bit
10144 dev64=no
10145 echo "int main () { return 0; }" > conftest.c
10146 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10147 if test $? = 0 ; then
10148 if test -s conftest || test -s conftest.exe ; then
10149 dev64=yes
10152 rm -f conftest*
10153 if test x${dev64} != xyes ; then
10154 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
10157 esac
10159 # Default to --enable-multilib.
10160 if test x${enable_multilib} = x ; then
10161 target_configargs="--enable-multilib ${target_configargs}"
10164 # Pass --with-newlib if appropriate. Note that target_configdirs has
10165 # changed from the earlier setting of with_newlib.
10166 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10167 target_configargs="--with-newlib ${target_configargs}"
10170 # Different target subdirs use different values of certain variables
10171 # (notably CXX). Worse, multilibs use *lots* of different values.
10172 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10173 # it doesn't automatically accept command-line overrides of them.
10174 # This means it's not safe for target subdirs to share a cache file,
10175 # which is disgusting, but there you have it. Hopefully this can be
10176 # fixed in future. It's still worthwhile to use a cache file for each
10177 # directory. I think.
10179 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10180 # We need to pass --target, as newer autoconf's requires consistency
10181 # for target_alias and gcc doesn't manage it consistently.
10182 target_configargs="--cache-file=./config.cache ${target_configargs}"
10184 FLAGS_FOR_TARGET=
10185 case " $target_configdirs " in
10186 *" newlib "*)
10187 case " $target_configargs " in
10188 *" --with-newlib "*)
10189 case "$target" in
10190 *-cygwin*)
10191 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10193 esac
10195 # If we're not building GCC, don't discard standard headers.
10196 if test -d ${srcdir}/gcc; then
10197 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10199 if test "${build}" != "${host}"; then
10200 # On Canadian crosses, CC_FOR_TARGET will have already been set
10201 # by `configure', so we won't have an opportunity to add -Bgcc/
10202 # to it. This is right: we don't want to search that directory
10203 # for binaries, but we want the header files in there, so add
10204 # them explicitly.
10205 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10207 # Someone might think of using the pre-installed headers on
10208 # Canadian crosses, in case the installed compiler is not fully
10209 # compatible with the compiler being built. In this case, it
10210 # would be better to flag an error than risking having
10211 # incompatible object files being constructed. We can't
10212 # guarantee that an error will be flagged, but let's hope the
10213 # compiler will do it, when presented with incompatible header
10214 # files.
10218 case "${target}-${is_cross_compiler}" in
10219 i[3456789]86-*-linux*-no)
10220 # Here host == target, so we don't need to build gcc,
10221 # so we don't want to discard standard headers.
10222 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10225 # If we're building newlib, use its generic headers last, but search
10226 # for any libc-related directories first (so make it the last -B
10227 # switch).
10228 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10230 # If we're building libgloss, find the startup file, simulator library
10231 # and linker script.
10232 case " $target_configdirs " in
10233 *" libgloss "*)
10234 # Look for startup file, simulator library and maybe linker script.
10235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10236 # Look for libnosys.a in case the target needs it.
10237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10238 # Most targets have the linker script in the source directory.
10239 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10241 esac
10243 esac
10245 esac
10247 esac
10249 case "$target" in
10250 x86_64-*mingw* | *-w64-mingw*)
10251 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10252 # however, use a symlink named 'mingw' in ${prefix} .
10253 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10255 *-mingw*)
10256 # MinGW can't be handled as Cygwin above since it does not use newlib.
10257 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'
10259 esac
10261 # Allow the user to override the flags for
10262 # our build compiler if desired.
10263 if test x"${build}" = x"${host}" ; then
10264 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10265 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10266 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10267 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10270 # On Canadian crosses, we'll be searching the right directories for
10271 # the previously-installed cross compiler, so don't bother to add
10272 # flags for directories within the install tree of the compiler
10273 # being built; programs in there won't even run.
10274 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10275 # Search for pre-installed headers if nothing else fits.
10276 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10279 if test "x${use_gnu_ld}" = x &&
10280 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10281 # Arrange for us to find uninstalled linker scripts.
10282 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10285 # Search for other target-specific linker scripts and such.
10286 case "${target}" in
10287 mep*)
10288 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10290 # The VxWorks support for shared libraries is getting in
10291 # incrementally. Make sure it doesn't get activated implicitly:
10292 *vxworks*)
10293 if test "${enable_shared-unset}" = unset ; then
10294 enable_shared=no
10295 # So the build of libraries knows ...
10296 target_configargs="${target_configargs} --disable-shared"
10297 # So gcc knows ...
10298 host_configargs="${host_configargs} --disable-shared"
10301 esac
10303 # Makefile fragments.
10304 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10306 eval fragval=\$$frag
10307 if test $fragval != /dev/null; then
10308 eval $frag=${srcdir}/$fragval
10310 done
10316 # Miscellanea: directories, flags, etc.
10325 # Build module lists & subconfigure args.
10329 # Host module lists & subconfigure args.
10334 # Target module lists & subconfigure args.
10338 # Build tools.
10359 # Generate default definitions for YACC, M4, LEX and other programs that run
10360 # on the build machine. These are used if the Makefile can't locate these
10361 # programs in objdir.
10362 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10364 for ac_prog in 'bison -y' byacc yacc
10366 # Extract the first word of "$ac_prog", so it can be a program name with args.
10367 set dummy $ac_prog; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if ${ac_cv_prog_YACC+:} false; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 if test -n "$YACC"; then
10374 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10375 else
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_prog_YACC="$ac_prog"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10393 YACC=$ac_cv_prog_YACC
10394 if test -n "$YACC"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10396 $as_echo "$YACC" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10403 test -n "$YACC" && break
10404 done
10405 test -n "$YACC" || YACC="$MISSING bison -y"
10407 case " $build_configdirs " in
10408 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10409 esac
10411 for ac_prog in bison
10413 # Extract the first word of "$ac_prog", so it can be a program name with args.
10414 set dummy $ac_prog; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_prog_BISON+:} false; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 if test -n "$BISON"; then
10421 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10422 else
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10430 ac_cv_prog_BISON="$ac_prog"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 break 2
10434 done
10435 done
10436 IFS=$as_save_IFS
10440 BISON=$ac_cv_prog_BISON
10441 if test -n "$BISON"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10443 $as_echo "$BISON" >&6; }
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10450 test -n "$BISON" && break
10451 done
10452 test -n "$BISON" || BISON="$MISSING bison"
10454 case " $build_configdirs " in
10455 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10456 esac
10458 for ac_prog in gm4 gnum4 m4
10460 # Extract the first word of "$ac_prog", so it can be a program name with args.
10461 set dummy $ac_prog; ac_word=$2
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463 $as_echo_n "checking for $ac_word... " >&6; }
10464 if ${ac_cv_prog_M4+:} false; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 if test -n "$M4"; then
10468 ac_cv_prog_M4="$M4" # Let the user override the test.
10469 else
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10477 ac_cv_prog_M4="$ac_prog"
10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10479 break 2
10481 done
10482 done
10483 IFS=$as_save_IFS
10487 M4=$ac_cv_prog_M4
10488 if test -n "$M4"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10490 $as_echo "$M4" >&6; }
10491 else
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10497 test -n "$M4" && break
10498 done
10499 test -n "$M4" || M4="$MISSING m4"
10501 case " $build_configdirs " in
10502 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10503 esac
10505 for ac_prog in flex lex
10507 # Extract the first word of "$ac_prog", so it can be a program name with args.
10508 set dummy $ac_prog; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_prog_LEX+:} false; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 if test -n "$LEX"; then
10515 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10516 else
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_prog_LEX="$ac_prog"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10534 LEX=$ac_cv_prog_LEX
10535 if test -n "$LEX"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10537 $as_echo "$LEX" >&6; }
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10544 test -n "$LEX" && break
10545 done
10546 test -n "$LEX" || LEX="$MISSING flex"
10548 case " $build_configdirs " in
10549 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10550 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10551 esac
10553 for ac_prog in flex
10555 # Extract the first word of "$ac_prog", so it can be a program name with args.
10556 set dummy $ac_prog; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_prog_FLEX+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 if test -n "$FLEX"; then
10563 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10564 else
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_FLEX="$ac_prog"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10576 done
10577 done
10578 IFS=$as_save_IFS
10582 FLEX=$ac_cv_prog_FLEX
10583 if test -n "$FLEX"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10585 $as_echo "$FLEX" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10592 test -n "$FLEX" && break
10593 done
10594 test -n "$FLEX" || FLEX="$MISSING flex"
10596 case " $build_configdirs " in
10597 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10598 esac
10600 for ac_prog in makeinfo
10602 # Extract the first word of "$ac_prog", so it can be a program name with args.
10603 set dummy $ac_prog; ac_word=$2
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605 $as_echo_n "checking for $ac_word... " >&6; }
10606 if ${ac_cv_prog_MAKEINFO+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 if test -n "$MAKEINFO"; then
10610 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10611 else
10612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_prog_MAKEINFO="$ac_prog"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10623 done
10624 done
10625 IFS=$as_save_IFS
10629 MAKEINFO=$ac_cv_prog_MAKEINFO
10630 if test -n "$MAKEINFO"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10632 $as_echo "$MAKEINFO" >&6; }
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10639 test -n "$MAKEINFO" && break
10640 done
10641 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10643 case " $build_configdirs " in
10644 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10647 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10648 # higher, else we use the "missing" dummy.
10649 if ${MAKEINFO} --version \
10650 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10652 else
10653 MAKEINFO="$MISSING makeinfo"
10657 esac
10659 # FIXME: expect and dejagnu may become build tools?
10661 for ac_prog in expect
10663 # Extract the first word of "$ac_prog", so it can be a program name with args.
10664 set dummy $ac_prog; ac_word=$2
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666 $as_echo_n "checking for $ac_word... " >&6; }
10667 if ${ac_cv_prog_EXPECT+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 if test -n "$EXPECT"; then
10671 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10672 else
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680 ac_cv_prog_EXPECT="$ac_prog"
10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10690 EXPECT=$ac_cv_prog_EXPECT
10691 if test -n "$EXPECT"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10693 $as_echo "$EXPECT" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10700 test -n "$EXPECT" && break
10701 done
10702 test -n "$EXPECT" || EXPECT="expect"
10704 case " $configdirs " in
10705 *" expect "*)
10706 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10708 esac
10710 for ac_prog in runtest
10712 # Extract the first word of "$ac_prog", so it can be a program name with args.
10713 set dummy $ac_prog; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if ${ac_cv_prog_RUNTEST+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$RUNTEST"; then
10720 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_RUNTEST="$ac_prog"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10733 done
10734 done
10735 IFS=$as_save_IFS
10739 RUNTEST=$ac_cv_prog_RUNTEST
10740 if test -n "$RUNTEST"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10742 $as_echo "$RUNTEST" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10749 test -n "$RUNTEST" && break
10750 done
10751 test -n "$RUNTEST" || RUNTEST="runtest"
10753 case " $configdirs " in
10754 *" dejagnu "*)
10755 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10757 esac
10760 # Host tools.
10761 ncn_tool_prefix=
10762 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10763 ncn_target_tool_prefix=
10764 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10768 if test -n "$AR"; then
10769 ac_cv_prog_AR=$AR
10770 elif test -n "$ac_cv_prog_AR"; then
10771 AR=$ac_cv_prog_AR
10774 if test -n "$ac_cv_prog_AR"; then
10775 for ncn_progname in ar; do
10776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10777 set dummy ${ncn_progname}; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if ${ac_cv_prog_AR+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 if test -n "$AR"; then
10784 ac_cv_prog_AR="$AR" # Let the user override the test.
10785 else
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_prog_AR="${ncn_progname}"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10797 done
10798 done
10799 IFS=$as_save_IFS
10803 AR=$ac_cv_prog_AR
10804 if test -n "$AR"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10806 $as_echo "$AR" >&6; }
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10813 done
10816 for ncn_progname in ar; do
10817 if test -n "$ncn_tool_prefix"; then
10818 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10819 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_prog_AR+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 if test -n "$AR"; then
10826 ac_cv_prog_AR="$AR" # Let the user override the test.
10827 else
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10835 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10839 done
10840 done
10841 IFS=$as_save_IFS
10845 AR=$ac_cv_prog_AR
10846 if test -n "$AR"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10848 $as_echo "$AR" >&6; }
10849 else
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10856 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10858 set dummy ${ncn_progname}; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_prog_AR+:} false; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 if test -n "$AR"; then
10865 ac_cv_prog_AR="$AR" # Let the user override the test.
10866 else
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874 ac_cv_prog_AR="${ncn_progname}"
10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10878 done
10879 done
10880 IFS=$as_save_IFS
10884 AR=$ac_cv_prog_AR
10885 if test -n "$AR"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10887 $as_echo "$AR" >&6; }
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10895 test -n "$ac_cv_prog_AR" && break
10896 done
10898 if test -z "$ac_cv_prog_AR" ; then
10899 set dummy ar
10900 if test $build = $host ; then
10901 AR="$2"
10902 else
10903 AR="${ncn_tool_prefix}$2"
10909 if test -n "$AS"; then
10910 ac_cv_prog_AS=$AS
10911 elif test -n "$ac_cv_prog_AS"; then
10912 AS=$ac_cv_prog_AS
10915 if test -n "$ac_cv_prog_AS"; then
10916 for ncn_progname in as; do
10917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_prog_AS+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 if test -n "$AS"; then
10925 ac_cv_prog_AS="$AS" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10934 ac_cv_prog_AS="${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10944 AS=$ac_cv_prog_AS
10945 if test -n "$AS"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10947 $as_echo "$AS" >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10954 done
10957 for ncn_progname in as; do
10958 if test -n "$ncn_tool_prefix"; then
10959 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10960 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_prog_AS+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 if test -n "$AS"; then
10967 ac_cv_prog_AS="$AS" # Let the user override the test.
10968 else
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10982 IFS=$as_save_IFS
10986 AS=$ac_cv_prog_AS
10987 if test -n "$AS"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10989 $as_echo "$AS" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10997 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10999 set dummy ${ncn_progname}; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_prog_AS+:} false; then :
11003 $as_echo_n "(cached) " >&6
11004 else
11005 if test -n "$AS"; then
11006 ac_cv_prog_AS="$AS" # Let the user override the test.
11007 else
11008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11011 IFS=$as_save_IFS
11012 test -z "$as_dir" && as_dir=.
11013 for ac_exec_ext in '' $ac_executable_extensions; do
11014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015 ac_cv_prog_AS="${ncn_progname}"
11016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 break 2
11019 done
11020 done
11021 IFS=$as_save_IFS
11025 AS=$ac_cv_prog_AS
11026 if test -n "$AS"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11028 $as_echo "$AS" >&6; }
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; }
11036 test -n "$ac_cv_prog_AS" && break
11037 done
11039 if test -z "$ac_cv_prog_AS" ; then
11040 set dummy as
11041 if test $build = $host ; then
11042 AS="$2"
11043 else
11044 AS="${ncn_tool_prefix}$2"
11050 if test -n "$DLLTOOL"; then
11051 ac_cv_prog_DLLTOOL=$DLLTOOL
11052 elif test -n "$ac_cv_prog_DLLTOOL"; then
11053 DLLTOOL=$ac_cv_prog_DLLTOOL
11056 if test -n "$ac_cv_prog_DLLTOOL"; then
11057 for ncn_progname in dlltool; do
11058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11059 set dummy ${ncn_progname}; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_prog_DLLTOOL+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 if test -n "$DLLTOOL"; then
11066 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11067 else
11068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
11073 for ac_exec_ext in '' $ac_executable_extensions; do
11074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075 ac_cv_prog_DLLTOOL="${ncn_progname}"
11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 break 2
11079 done
11080 done
11081 IFS=$as_save_IFS
11085 DLLTOOL=$ac_cv_prog_DLLTOOL
11086 if test -n "$DLLTOOL"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11088 $as_echo "$DLLTOOL" >&6; }
11089 else
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11095 done
11098 for ncn_progname in dlltool; do
11099 if test -n "$ncn_tool_prefix"; then
11100 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11101 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103 $as_echo_n "checking for $ac_word... " >&6; }
11104 if ${ac_cv_prog_DLLTOOL+:} false; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 if test -n "$DLLTOOL"; then
11108 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11109 else
11110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111 for as_dir in $PATH
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11117 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11121 done
11122 done
11123 IFS=$as_save_IFS
11127 DLLTOOL=$ac_cv_prog_DLLTOOL
11128 if test -n "$DLLTOOL"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11130 $as_echo "$DLLTOOL" >&6; }
11131 else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11138 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11140 set dummy ${ncn_progname}; ac_word=$2
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142 $as_echo_n "checking for $ac_word... " >&6; }
11143 if ${ac_cv_prog_DLLTOOL+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 if test -n "$DLLTOOL"; then
11147 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11148 else
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in $PATH
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_prog_DLLTOOL="${ncn_progname}"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11160 done
11161 done
11162 IFS=$as_save_IFS
11166 DLLTOOL=$ac_cv_prog_DLLTOOL
11167 if test -n "$DLLTOOL"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11169 $as_echo "$DLLTOOL" >&6; }
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11177 test -n "$ac_cv_prog_DLLTOOL" && break
11178 done
11180 if test -z "$ac_cv_prog_DLLTOOL" ; then
11181 set dummy dlltool
11182 if test $build = $host ; then
11183 DLLTOOL="$2"
11184 else
11185 DLLTOOL="${ncn_tool_prefix}$2"
11191 if test -n "$DSYMUTIL"; then
11192 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11193 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11194 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11197 if test -n "$ac_cv_prog_DSYMUTIL"; then
11198 for ncn_progname in dsymutil; do
11199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11200 set dummy ${ncn_progname}; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 if test -n "$DSYMUTIL"; then
11207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11208 else
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11216 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 break 2
11220 done
11221 done
11222 IFS=$as_save_IFS
11226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11227 if test -n "$DSYMUTIL"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11229 $as_echo "$DSYMUTIL" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11236 done
11239 for ncn_progname in dsymutil; do
11240 if test -n "$ncn_tool_prefix"; then
11241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11242 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test -n "$DSYMUTIL"; then
11249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11250 else
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11258 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11262 done
11263 done
11264 IFS=$as_save_IFS
11268 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11269 if test -n "$DSYMUTIL"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11271 $as_echo "$DSYMUTIL" >&6; }
11272 else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274 $as_echo "no" >&6; }
11279 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11281 set dummy ${ncn_progname}; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 if test -n "$DSYMUTIL"; then
11288 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11289 else
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11297 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11301 done
11302 done
11303 IFS=$as_save_IFS
11307 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11308 if test -n "$DSYMUTIL"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11310 $as_echo "$DSYMUTIL" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11318 test -n "$ac_cv_prog_DSYMUTIL" && break
11319 done
11321 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11322 set dummy dsymutil
11323 if test $build = $host ; then
11324 DSYMUTIL="$2"
11325 else
11326 DSYMUTIL="${ncn_tool_prefix}$2"
11332 if test -n "$LD"; then
11333 ac_cv_prog_LD=$LD
11334 elif test -n "$ac_cv_prog_LD"; then
11335 LD=$ac_cv_prog_LD
11338 if test -n "$ac_cv_prog_LD"; then
11339 for ncn_progname in ld; do
11340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11341 set dummy ${ncn_progname}; ac_word=$2
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 $as_echo_n "checking for $ac_word... " >&6; }
11344 if ${ac_cv_prog_LD+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 if test -n "$LD"; then
11348 ac_cv_prog_LD="$LD" # Let the user override the test.
11349 else
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357 ac_cv_prog_LD="${ncn_progname}"
11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11361 done
11362 done
11363 IFS=$as_save_IFS
11367 LD=$ac_cv_prog_LD
11368 if test -n "$LD"; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11370 $as_echo "$LD" >&6; }
11371 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11377 done
11380 for ncn_progname in ld; do
11381 if test -n "$ncn_tool_prefix"; then
11382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11383 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if ${ac_cv_prog_LD+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test -n "$LD"; then
11390 ac_cv_prog_LD="$LD" # Let the user override the test.
11391 else
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11399 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11403 done
11404 done
11405 IFS=$as_save_IFS
11409 LD=$ac_cv_prog_LD
11410 if test -n "$LD"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11412 $as_echo "$LD" >&6; }
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415 $as_echo "no" >&6; }
11420 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11422 set dummy ${ncn_progname}; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_prog_LD+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 if test -n "$LD"; then
11429 ac_cv_prog_LD="$LD" # Let the user override the test.
11430 else
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11438 ac_cv_prog_LD="${ncn_progname}"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11442 done
11443 done
11444 IFS=$as_save_IFS
11448 LD=$ac_cv_prog_LD
11449 if test -n "$LD"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11451 $as_echo "$LD" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11459 test -n "$ac_cv_prog_LD" && break
11460 done
11462 if test -z "$ac_cv_prog_LD" ; then
11463 set dummy ld
11464 if test $build = $host ; then
11465 LD="$2"
11466 else
11467 LD="${ncn_tool_prefix}$2"
11473 if test -n "$LIPO"; then
11474 ac_cv_prog_LIPO=$LIPO
11475 elif test -n "$ac_cv_prog_LIPO"; then
11476 LIPO=$ac_cv_prog_LIPO
11479 if test -n "$ac_cv_prog_LIPO"; then
11480 for ncn_progname in lipo; do
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if ${ac_cv_prog_LIPO+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test -n "$LIPO"; then
11489 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_prog_LIPO="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11502 done
11503 done
11504 IFS=$as_save_IFS
11508 LIPO=$ac_cv_prog_LIPO
11509 if test -n "$LIPO"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11511 $as_echo "$LIPO" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11518 done
11521 for ncn_progname in lipo; do
11522 if test -n "$ncn_tool_prefix"; then
11523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526 $as_echo_n "checking for $ac_word... " >&6; }
11527 if ${ac_cv_prog_LIPO+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 if test -n "$LIPO"; then
11531 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11536 IFS=$as_save_IFS
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 break 2
11544 done
11545 done
11546 IFS=$as_save_IFS
11550 LIPO=$ac_cv_prog_LIPO
11551 if test -n "$LIPO"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11553 $as_echo "$LIPO" >&6; }
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11556 $as_echo "no" >&6; }
11561 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563 set dummy ${ncn_progname}; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if ${ac_cv_prog_LIPO+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test -n "$LIPO"; then
11570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_LIPO="${ncn_progname}"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11583 done
11584 done
11585 IFS=$as_save_IFS
11589 LIPO=$ac_cv_prog_LIPO
11590 if test -n "$LIPO"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11592 $as_echo "$LIPO" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11600 test -n "$ac_cv_prog_LIPO" && break
11601 done
11603 if test -z "$ac_cv_prog_LIPO" ; then
11604 set dummy lipo
11605 if test $build = $host ; then
11606 LIPO="$2"
11607 else
11608 LIPO="${ncn_tool_prefix}$2"
11614 if test -n "$NM"; then
11615 ac_cv_prog_NM=$NM
11616 elif test -n "$ac_cv_prog_NM"; then
11617 NM=$ac_cv_prog_NM
11620 if test -n "$ac_cv_prog_NM"; then
11621 for ncn_progname in nm; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625 $as_echo_n "checking for $ac_word... " >&6; }
11626 if ${ac_cv_prog_NM+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test -n "$NM"; then
11630 ac_cv_prog_NM="$NM" # Let the user override the test.
11631 else
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_prog_NM="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11649 NM=$ac_cv_prog_NM
11650 if test -n "$NM"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11652 $as_echo "$NM" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11659 done
11662 for ncn_progname in nm; do
11663 if test -n "$ncn_tool_prefix"; then
11664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667 $as_echo_n "checking for $ac_word... " >&6; }
11668 if ${ac_cv_prog_NM+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test -n "$NM"; then
11672 ac_cv_prog_NM="$NM" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11685 done
11686 done
11687 IFS=$as_save_IFS
11691 NM=$ac_cv_prog_NM
11692 if test -n "$NM"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11694 $as_echo "$NM" >&6; }
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697 $as_echo "no" >&6; }
11702 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11704 set dummy ${ncn_progname}; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11706 $as_echo_n "checking for $ac_word... " >&6; }
11707 if ${ac_cv_prog_NM+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 if test -n "$NM"; then
11711 ac_cv_prog_NM="$NM" # Let the user override the test.
11712 else
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_prog_NM="${ncn_progname}"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11724 done
11725 done
11726 IFS=$as_save_IFS
11730 NM=$ac_cv_prog_NM
11731 if test -n "$NM"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11733 $as_echo "$NM" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11741 test -n "$ac_cv_prog_NM" && break
11742 done
11744 if test -z "$ac_cv_prog_NM" ; then
11745 set dummy nm
11746 if test $build = $host ; then
11747 NM="$2"
11748 else
11749 NM="${ncn_tool_prefix}$2"
11755 if test -n "$RANLIB"; then
11756 ac_cv_prog_RANLIB=$RANLIB
11757 elif test -n "$ac_cv_prog_RANLIB"; then
11758 RANLIB=$ac_cv_prog_RANLIB
11761 if test -n "$ac_cv_prog_RANLIB"; then
11762 for ncn_progname in ranlib; do
11763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11764 set dummy ${ncn_progname}; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_prog_RANLIB+:} false; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 if test -n "$RANLIB"; then
11771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11772 else
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_prog_RANLIB="${ncn_progname}"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11790 RANLIB=$ac_cv_prog_RANLIB
11791 if test -n "$RANLIB"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11793 $as_echo "$RANLIB" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 done
11803 for ncn_progname in ranlib; do
11804 if test -n "$ncn_tool_prefix"; then
11805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11806 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_RANLIB+:} false; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 if test -n "$RANLIB"; then
11813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11826 done
11827 done
11828 IFS=$as_save_IFS
11832 RANLIB=$ac_cv_prog_RANLIB
11833 if test -n "$RANLIB"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11835 $as_echo "$RANLIB" >&6; }
11836 else
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11843 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11845 set dummy ${ncn_progname}; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if ${ac_cv_prog_RANLIB+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 if test -n "$RANLIB"; then
11852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11853 else
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861 ac_cv_prog_RANLIB="${ncn_progname}"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11865 done
11866 done
11867 IFS=$as_save_IFS
11871 RANLIB=$ac_cv_prog_RANLIB
11872 if test -n "$RANLIB"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11874 $as_echo "$RANLIB" >&6; }
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11882 test -n "$ac_cv_prog_RANLIB" && break
11883 done
11885 if test -z "$ac_cv_prog_RANLIB" ; then
11886 RANLIB="true"
11891 if test -n "$STRIP"; then
11892 ac_cv_prog_STRIP=$STRIP
11893 elif test -n "$ac_cv_prog_STRIP"; then
11894 STRIP=$ac_cv_prog_STRIP
11897 if test -n "$ac_cv_prog_STRIP"; then
11898 for ncn_progname in strip; do
11899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_STRIP+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 if test -n "$STRIP"; then
11907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11908 else
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_STRIP="${ncn_progname}"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11920 done
11921 done
11922 IFS=$as_save_IFS
11926 STRIP=$ac_cv_prog_STRIP
11927 if test -n "$STRIP"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11929 $as_echo "$STRIP" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11936 done
11939 for ncn_progname in strip; do
11940 if test -n "$ncn_tool_prefix"; then
11941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_prog_STRIP+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$STRIP"; then
11949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11968 STRIP=$ac_cv_prog_STRIP
11969 if test -n "$STRIP"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11971 $as_echo "$STRIP" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11979 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_prog_STRIP+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 if test -n "$STRIP"; then
11988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_STRIP="${ncn_progname}"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12001 done
12002 done
12003 IFS=$as_save_IFS
12007 STRIP=$ac_cv_prog_STRIP
12008 if test -n "$STRIP"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12010 $as_echo "$STRIP" >&6; }
12011 else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013 $as_echo "no" >&6; }
12018 test -n "$ac_cv_prog_STRIP" && break
12019 done
12021 if test -z "$ac_cv_prog_STRIP" ; then
12022 STRIP="true"
12027 if test -n "$WINDRES"; then
12028 ac_cv_prog_WINDRES=$WINDRES
12029 elif test -n "$ac_cv_prog_WINDRES"; then
12030 WINDRES=$ac_cv_prog_WINDRES
12033 if test -n "$ac_cv_prog_WINDRES"; then
12034 for ncn_progname in windres; do
12035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12036 set dummy ${ncn_progname}; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_prog_WINDRES+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 if test -n "$WINDRES"; then
12043 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12044 else
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_prog_WINDRES="${ncn_progname}"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12056 done
12057 done
12058 IFS=$as_save_IFS
12062 WINDRES=$ac_cv_prog_WINDRES
12063 if test -n "$WINDRES"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12065 $as_echo "$WINDRES" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12072 done
12075 for ncn_progname in windres; do
12076 if test -n "$ncn_tool_prefix"; then
12077 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12078 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_WINDRES+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -n "$WINDRES"; then
12085 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12086 else
12087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088 for as_dir in $PATH
12090 IFS=$as_save_IFS
12091 test -z "$as_dir" && as_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096 break 2
12098 done
12099 done
12100 IFS=$as_save_IFS
12104 WINDRES=$ac_cv_prog_WINDRES
12105 if test -n "$WINDRES"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12107 $as_echo "$WINDRES" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12115 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12117 set dummy ${ncn_progname}; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_prog_WINDRES+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 if test -n "$WINDRES"; then
12124 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12125 else
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_WINDRES="${ncn_progname}"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 break 2
12137 done
12138 done
12139 IFS=$as_save_IFS
12143 WINDRES=$ac_cv_prog_WINDRES
12144 if test -n "$WINDRES"; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12146 $as_echo "$WINDRES" >&6; }
12147 else
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 $as_echo "no" >&6; }
12154 test -n "$ac_cv_prog_WINDRES" && break
12155 done
12157 if test -z "$ac_cv_prog_WINDRES" ; then
12158 set dummy windres
12159 if test $build = $host ; then
12160 WINDRES="$2"
12161 else
12162 WINDRES="${ncn_tool_prefix}$2"
12168 if test -n "$WINDMC"; then
12169 ac_cv_prog_WINDMC=$WINDMC
12170 elif test -n "$ac_cv_prog_WINDMC"; then
12171 WINDMC=$ac_cv_prog_WINDMC
12174 if test -n "$ac_cv_prog_WINDMC"; then
12175 for ncn_progname in windmc; do
12176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12177 set dummy ${ncn_progname}; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if ${ac_cv_prog_WINDMC+:} false; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 if test -n "$WINDMC"; then
12184 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12193 ac_cv_prog_WINDMC="${ncn_progname}"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12197 done
12198 done
12199 IFS=$as_save_IFS
12203 WINDMC=$ac_cv_prog_WINDMC
12204 if test -n "$WINDMC"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12206 $as_echo "$WINDMC" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12213 done
12216 for ncn_progname in windmc; do
12217 if test -n "$ncn_tool_prefix"; then
12218 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12219 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_WINDMC+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$WINDMC"; then
12226 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12239 done
12240 done
12241 IFS=$as_save_IFS
12245 WINDMC=$ac_cv_prog_WINDMC
12246 if test -n "$WINDMC"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12248 $as_echo "$WINDMC" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12256 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12258 set dummy ${ncn_progname}; ac_word=$2
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260 $as_echo_n "checking for $ac_word... " >&6; }
12261 if ${ac_cv_prog_WINDMC+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 if test -n "$WINDMC"; then
12265 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12266 else
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_prog_WINDMC="${ncn_progname}"
12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 break 2
12278 done
12279 done
12280 IFS=$as_save_IFS
12284 WINDMC=$ac_cv_prog_WINDMC
12285 if test -n "$WINDMC"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12287 $as_echo "$WINDMC" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12295 test -n "$ac_cv_prog_WINDMC" && break
12296 done
12298 if test -z "$ac_cv_prog_WINDMC" ; then
12299 set dummy windmc
12300 if test $build = $host ; then
12301 WINDMC="$2"
12302 else
12303 WINDMC="${ncn_tool_prefix}$2"
12309 if test -n "$OBJCOPY"; then
12310 ac_cv_prog_OBJCOPY=$OBJCOPY
12311 elif test -n "$ac_cv_prog_OBJCOPY"; then
12312 OBJCOPY=$ac_cv_prog_OBJCOPY
12315 if test -n "$ac_cv_prog_OBJCOPY"; then
12316 for ncn_progname in objcopy; do
12317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12318 set dummy ${ncn_progname}; ac_word=$2
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if ${ac_cv_prog_OBJCOPY+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 if test -n "$OBJCOPY"; then
12325 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12326 else
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_prog_OBJCOPY="${ncn_progname}"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12344 OBJCOPY=$ac_cv_prog_OBJCOPY
12345 if test -n "$OBJCOPY"; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12347 $as_echo "$OBJCOPY" >&6; }
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350 $as_echo "no" >&6; }
12354 done
12357 for ncn_progname in objcopy; do
12358 if test -n "$ncn_tool_prefix"; then
12359 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12360 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362 $as_echo_n "checking for $ac_word... " >&6; }
12363 if ${ac_cv_prog_OBJCOPY+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test -n "$OBJCOPY"; then
12367 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12368 else
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12380 done
12381 done
12382 IFS=$as_save_IFS
12386 OBJCOPY=$ac_cv_prog_OBJCOPY
12387 if test -n "$OBJCOPY"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12389 $as_echo "$OBJCOPY" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12397 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12399 set dummy ${ncn_progname}; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if ${ac_cv_prog_OBJCOPY+:} false; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$OBJCOPY"; then
12406 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12415 ac_cv_prog_OBJCOPY="${ncn_progname}"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12419 done
12420 done
12421 IFS=$as_save_IFS
12425 OBJCOPY=$ac_cv_prog_OBJCOPY
12426 if test -n "$OBJCOPY"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12428 $as_echo "$OBJCOPY" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12436 test -n "$ac_cv_prog_OBJCOPY" && break
12437 done
12439 if test -z "$ac_cv_prog_OBJCOPY" ; then
12440 set dummy objcopy
12441 if test $build = $host ; then
12442 OBJCOPY="$2"
12443 else
12444 OBJCOPY="${ncn_tool_prefix}$2"
12450 if test -n "$OBJDUMP"; then
12451 ac_cv_prog_OBJDUMP=$OBJDUMP
12452 elif test -n "$ac_cv_prog_OBJDUMP"; then
12453 OBJDUMP=$ac_cv_prog_OBJDUMP
12456 if test -n "$ac_cv_prog_OBJDUMP"; then
12457 for ncn_progname in objdump; do
12458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12459 set dummy ${ncn_progname}; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if ${ac_cv_prog_OBJDUMP+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 if test -n "$OBJDUMP"; then
12466 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12467 else
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12475 ac_cv_prog_OBJDUMP="${ncn_progname}"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12485 OBJDUMP=$ac_cv_prog_OBJDUMP
12486 if test -n "$OBJDUMP"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12488 $as_echo "$OBJDUMP" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12495 done
12498 for ncn_progname in objdump; do
12499 if test -n "$ncn_tool_prefix"; then
12500 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12501 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if ${ac_cv_prog_OBJDUMP+:} false; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 if test -n "$OBJDUMP"; then
12508 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12509 else
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in $PATH
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12517 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12521 done
12522 done
12523 IFS=$as_save_IFS
12527 OBJDUMP=$ac_cv_prog_OBJDUMP
12528 if test -n "$OBJDUMP"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12530 $as_echo "$OBJDUMP" >&6; }
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12538 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12540 set dummy ${ncn_progname}; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_OBJDUMP+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 if test -n "$OBJDUMP"; then
12547 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12548 else
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12552 IFS=$as_save_IFS
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12556 ac_cv_prog_OBJDUMP="${ncn_progname}"
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12558 break 2
12560 done
12561 done
12562 IFS=$as_save_IFS
12566 OBJDUMP=$ac_cv_prog_OBJDUMP
12567 if test -n "$OBJDUMP"; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12569 $as_echo "$OBJDUMP" >&6; }
12570 else
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572 $as_echo "no" >&6; }
12577 test -n "$ac_cv_prog_OBJDUMP" && break
12578 done
12580 if test -z "$ac_cv_prog_OBJDUMP" ; then
12581 set dummy objdump
12582 if test $build = $host ; then
12583 OBJDUMP="$2"
12584 else
12585 OBJDUMP="${ncn_tool_prefix}$2"
12591 if test -n "$OTOOL"; then
12592 ac_cv_prog_OTOOL=$OTOOL
12593 elif test -n "$ac_cv_prog_OTOOL"; then
12594 OTOOL=$ac_cv_prog_OTOOL
12597 if test -n "$ac_cv_prog_OTOOL"; then
12598 for ncn_progname in otool; do
12599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12600 set dummy ${ncn_progname}; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if ${ac_cv_prog_OTOOL+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 if test -n "$OTOOL"; then
12607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12616 ac_cv_prog_OTOOL="${ncn_progname}"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12626 OTOOL=$ac_cv_prog_OTOOL
12627 if test -n "$OTOOL"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12629 $as_echo "$OTOOL" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12636 done
12639 for ncn_progname in otool; do
12640 if test -n "$ncn_tool_prefix"; then
12641 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12642 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12644 $as_echo_n "checking for $ac_word... " >&6; }
12645 if ${ac_cv_prog_OTOOL+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 if test -n "$OTOOL"; then
12649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12650 else
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $PATH
12654 IFS=$as_save_IFS
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 break 2
12662 done
12663 done
12664 IFS=$as_save_IFS
12668 OTOOL=$ac_cv_prog_OTOOL
12669 if test -n "$OTOOL"; then
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12671 $as_echo "$OTOOL" >&6; }
12672 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12679 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12681 set dummy ${ncn_progname}; ac_word=$2
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 $as_echo_n "checking for $ac_word... " >&6; }
12684 if ${ac_cv_prog_OTOOL+:} false; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 if test -n "$OTOOL"; then
12688 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12689 else
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $PATH
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12697 ac_cv_prog_OTOOL="${ncn_progname}"
12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699 break 2
12701 done
12702 done
12703 IFS=$as_save_IFS
12707 OTOOL=$ac_cv_prog_OTOOL
12708 if test -n "$OTOOL"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12710 $as_echo "$OTOOL" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12718 test -n "$ac_cv_prog_OTOOL" && break
12719 done
12721 if test -z "$ac_cv_prog_OTOOL" ; then
12722 set dummy otool
12723 if test $build = $host ; then
12724 OTOOL="$2"
12725 else
12726 OTOOL="${ncn_tool_prefix}$2"
12732 if test -n "$READELF"; then
12733 ac_cv_prog_READELF=$READELF
12734 elif test -n "$ac_cv_prog_READELF"; then
12735 READELF=$ac_cv_prog_READELF
12738 if test -n "$ac_cv_prog_READELF"; then
12739 for ncn_progname in readelf; do
12740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12741 set dummy ${ncn_progname}; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_prog_READELF+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 if test -n "$READELF"; then
12748 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12749 else
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $PATH
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757 ac_cv_prog_READELF="${ncn_progname}"
12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12761 done
12762 done
12763 IFS=$as_save_IFS
12767 READELF=$ac_cv_prog_READELF
12768 if test -n "$READELF"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12770 $as_echo "$READELF" >&6; }
12771 else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12777 done
12780 for ncn_progname in readelf; do
12781 if test -n "$ncn_tool_prefix"; then
12782 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12783 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_prog_READELF+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 if test -n "$READELF"; then
12790 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12791 else
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12803 done
12804 done
12805 IFS=$as_save_IFS
12809 READELF=$ac_cv_prog_READELF
12810 if test -n "$READELF"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12812 $as_echo "$READELF" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12820 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12822 set dummy ${ncn_progname}; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if ${ac_cv_prog_READELF+:} false; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 if test -n "$READELF"; then
12829 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12830 else
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12834 IFS=$as_save_IFS
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12838 ac_cv_prog_READELF="${ncn_progname}"
12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12840 break 2
12842 done
12843 done
12844 IFS=$as_save_IFS
12848 READELF=$ac_cv_prog_READELF
12849 if test -n "$READELF"; then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12851 $as_echo "$READELF" >&6; }
12852 else
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12859 test -n "$ac_cv_prog_READELF" && break
12860 done
12862 if test -z "$ac_cv_prog_READELF" ; then
12863 set dummy readelf
12864 if test $build = $host ; then
12865 READELF="$2"
12866 else
12867 READELF="${ncn_tool_prefix}$2"
12878 # Target tools.
12880 # Check whether --with-build-time-tools was given.
12881 if test "${with_build_time_tools+set}" = set; then :
12882 withval=$with_build_time_tools; case x"$withval" in
12883 x/*) ;;
12885 with_build_time_tools=
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12887 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12889 esac
12890 else
12891 with_build_time_tools=
12897 if test -n "$CC_FOR_TARGET"; then
12898 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12899 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12900 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12903 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12904 for ncn_progname in cc gcc; do
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908 $as_echo_n "checking for $ac_word... " >&6; }
12909 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test -n "$CC_FOR_TARGET"; then
12913 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12914 else
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12926 done
12927 done
12928 IFS=$as_save_IFS
12932 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12933 if test -n "$CC_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12935 $as_echo "$CC_FOR_TARGET" >&6; }
12936 else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938 $as_echo "no" >&6; }
12942 done
12945 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12946 for ncn_progname in cc gcc; do
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12949 if test -x $with_build_time_tools/${ncn_progname}; then
12950 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12952 $as_echo "yes" >&6; }
12953 break
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12958 done
12961 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12962 for ncn_progname in cc gcc; do
12963 if test -n "$ncn_target_tool_prefix"; then
12964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 if test -n "$CC_FOR_TARGET"; then
12972 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12973 else
12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH
12977 IFS=$as_save_IFS
12978 test -z "$as_dir" && as_dir=.
12979 for ac_exec_ext in '' $ac_executable_extensions; do
12980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12981 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 break 2
12985 done
12986 done
12987 IFS=$as_save_IFS
12991 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12992 if test -n "$CC_FOR_TARGET"; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12994 $as_echo "$CC_FOR_TARGET" >&6; }
12995 else
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997 $as_echo "no" >&6; }
13002 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13004 set dummy ${ncn_progname}; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$CC_FOR_TARGET"; then
13011 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13020 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13024 done
13025 done
13026 IFS=$as_save_IFS
13030 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13031 if test -n "$CC_FOR_TARGET"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13033 $as_echo "$CC_FOR_TARGET" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13041 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13042 done
13045 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13046 set dummy cc gcc
13047 if test $build = $target ; then
13048 CC_FOR_TARGET="$2"
13049 else
13050 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13052 else
13053 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13058 if test -n "$CXX_FOR_TARGET"; then
13059 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13060 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13064 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13065 for ncn_progname in c++ g++ cxx gxx; do
13066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13067 set dummy ${ncn_progname}; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test -n "$CXX_FOR_TARGET"; then
13074 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13075 else
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13087 done
13088 done
13089 IFS=$as_save_IFS
13093 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13094 if test -n "$CXX_FOR_TARGET"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13096 $as_echo "$CXX_FOR_TARGET" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13103 done
13106 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13107 for ncn_progname in c++ g++ cxx gxx; do
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13109 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13110 if test -x $with_build_time_tools/${ncn_progname}; then
13111 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114 break
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13119 done
13122 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13123 for ncn_progname in c++ g++ cxx gxx; do
13124 if test -n "$ncn_target_tool_prefix"; then
13125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13126 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 if test -n "$CXX_FOR_TARGET"; then
13133 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13134 else
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13146 done
13147 done
13148 IFS=$as_save_IFS
13152 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13153 if test -n "$CXX_FOR_TARGET"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13155 $as_echo "$CXX_FOR_TARGET" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13163 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13165 set dummy ${ncn_progname}; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 if test -n "$CXX_FOR_TARGET"; then
13172 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13181 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13185 done
13186 done
13187 IFS=$as_save_IFS
13191 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13192 if test -n "$CXX_FOR_TARGET"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13194 $as_echo "$CXX_FOR_TARGET" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13202 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13203 done
13206 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13207 set dummy c++ g++ cxx gxx
13208 if test $build = $target ; then
13209 CXX_FOR_TARGET="$2"
13210 else
13211 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13213 else
13214 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13219 if test -n "$GCC_FOR_TARGET"; then
13220 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13221 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13225 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13226 for ncn_progname in gcc; do
13227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13228 set dummy ${ncn_progname}; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 if test -n "$GCC_FOR_TARGET"; then
13235 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13236 else
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13244 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13254 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13255 if test -n "$GCC_FOR_TARGET"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13257 $as_echo "$GCC_FOR_TARGET" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13264 done
13267 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13268 for ncn_progname in gcc; do
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13270 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13271 if test -x $with_build_time_tools/${ncn_progname}; then
13272 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13274 $as_echo "yes" >&6; }
13275 break
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13280 done
13283 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13284 for ncn_progname in gcc; do
13285 if test -n "$ncn_target_tool_prefix"; then
13286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13287 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289 $as_echo_n "checking for $ac_word... " >&6; }
13290 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 if test -n "$GCC_FOR_TARGET"; then
13294 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13295 else
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13307 done
13308 done
13309 IFS=$as_save_IFS
13313 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13314 if test -n "$GCC_FOR_TARGET"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13316 $as_echo "$GCC_FOR_TARGET" >&6; }
13317 else
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13324 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 if test -n "$GCC_FOR_TARGET"; then
13333 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13334 else
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13342 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13352 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13353 if test -n "$GCC_FOR_TARGET"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13355 $as_echo "$GCC_FOR_TARGET" >&6; }
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13363 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13364 done
13367 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13368 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13369 else
13370 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13375 if test -n "$GFORTRAN_FOR_TARGET"; then
13376 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13377 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13381 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13382 for ncn_progname in gfortran; do
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386 $as_echo_n "checking for $ac_word... " >&6; }
13387 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 if test -n "$GFORTRAN_FOR_TARGET"; then
13391 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13392 else
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13406 IFS=$as_save_IFS
13410 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13411 if test -n "$GFORTRAN_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13413 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13420 done
13423 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13424 for ncn_progname in gfortran; do
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13426 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13427 if test -x $with_build_time_tools/${ncn_progname}; then
13428 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13430 $as_echo "yes" >&6; }
13431 break
13432 else
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13434 $as_echo "no" >&6; }
13436 done
13439 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13440 for ncn_progname in gfortran; do
13441 if test -n "$ncn_target_tool_prefix"; then
13442 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13443 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445 $as_echo_n "checking for $ac_word... " >&6; }
13446 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448 else
13449 if test -n "$GFORTRAN_FOR_TARGET"; then
13450 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13451 else
13452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453 for as_dir in $PATH
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13463 done
13464 done
13465 IFS=$as_save_IFS
13469 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13470 if test -n "$GFORTRAN_FOR_TARGET"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13472 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13473 else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13480 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13482 set dummy ${ncn_progname}; ac_word=$2
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484 $as_echo_n "checking for $ac_word... " >&6; }
13485 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 if test -n "$GFORTRAN_FOR_TARGET"; then
13489 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13490 else
13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13494 IFS=$as_save_IFS
13495 test -z "$as_dir" && as_dir=.
13496 for ac_exec_ext in '' $ac_executable_extensions; do
13497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 break 2
13502 done
13503 done
13504 IFS=$as_save_IFS
13508 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13509 if test -n "$GFORTRAN_FOR_TARGET"; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13511 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13519 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13520 done
13523 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13524 set dummy gfortran
13525 if test $build = $target ; then
13526 GFORTRAN_FOR_TARGET="$2"
13527 else
13528 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13530 else
13531 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13536 if test -n "$GOC_FOR_TARGET"; then
13537 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13538 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13542 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13543 for ncn_progname in gccgo; do
13544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13545 set dummy ${ncn_progname}; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$GOC_FOR_TARGET"; then
13552 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13561 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13571 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13572 if test -n "$GOC_FOR_TARGET"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13574 $as_echo "$GOC_FOR_TARGET" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13581 done
13584 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13585 for ncn_progname in gccgo; do
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13587 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13588 if test -x $with_build_time_tools/${ncn_progname}; then
13589 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 break
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13597 done
13600 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13601 for ncn_progname in gccgo; do
13602 if test -n "$ncn_target_tool_prefix"; then
13603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$GOC_FOR_TARGET"; then
13611 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13626 IFS=$as_save_IFS
13630 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13631 if test -n "$GOC_FOR_TARGET"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13633 $as_echo "$GOC_FOR_TARGET" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13641 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643 set dummy ${ncn_progname}; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$GOC_FOR_TARGET"; then
13650 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13659 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13669 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13670 if test -n "$GOC_FOR_TARGET"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13672 $as_echo "$GOC_FOR_TARGET" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13680 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13681 done
13684 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13685 set dummy gccgo
13686 if test $build = $target ; then
13687 GOC_FOR_TARGET="$2"
13688 else
13689 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13691 else
13692 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13697 if test -n "$GDC_FOR_TARGET"; then
13698 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13699 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13700 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13703 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13704 for ncn_progname in gdc; do
13705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13706 set dummy ${ncn_progname}; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 if test -n "$GDC_FOR_TARGET"; then
13713 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13714 else
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13726 done
13727 done
13728 IFS=$as_save_IFS
13732 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13733 if test -n "$GDC_FOR_TARGET"; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13735 $as_echo "$GDC_FOR_TARGET" >&6; }
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13742 done
13745 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13746 for ncn_progname in gdc; do
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13749 if test -x $with_build_time_tools/${ncn_progname}; then
13750 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 break
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13758 done
13761 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13762 for ncn_progname in gdc; do
13763 if test -n "$ncn_target_tool_prefix"; then
13764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$GDC_FOR_TARGET"; then
13772 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13785 done
13786 done
13787 IFS=$as_save_IFS
13791 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13792 if test -n "$GDC_FOR_TARGET"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13794 $as_echo "$GDC_FOR_TARGET" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13802 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13804 set dummy ${ncn_progname}; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 if test -n "$GDC_FOR_TARGET"; then
13811 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13820 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13824 done
13825 done
13826 IFS=$as_save_IFS
13830 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13831 if test -n "$GDC_FOR_TARGET"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13833 $as_echo "$GDC_FOR_TARGET" >&6; }
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13841 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13842 done
13845 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13846 set dummy gdc
13847 if test $build = $target ; then
13848 GDC_FOR_TARGET="$2"
13849 else
13850 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13852 else
13853 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13858 if test -n "$GM2_FOR_TARGET"; then
13859 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13860 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13861 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13864 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13865 for ncn_progname in gm2; do
13866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13867 set dummy ${ncn_progname}; ac_word=$2
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869 $as_echo_n "checking for $ac_word... " >&6; }
13870 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -n "$GM2_FOR_TARGET"; then
13874 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13887 done
13888 done
13889 IFS=$as_save_IFS
13893 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13894 if test -n "$GM2_FOR_TARGET"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13896 $as_echo "$GM2_FOR_TARGET" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13903 done
13906 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13907 for ncn_progname in gm2; do
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13909 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13910 if test -x $with_build_time_tools/${ncn_progname}; then
13911 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914 break
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13919 done
13922 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13923 for ncn_progname in gm2; do
13924 if test -n "$ncn_target_tool_prefix"; then
13925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13926 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 if test -n "$GM2_FOR_TARGET"; then
13933 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13934 else
13935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936 for as_dir in $PATH
13938 IFS=$as_save_IFS
13939 test -z "$as_dir" && as_dir=.
13940 for ac_exec_ext in '' $ac_executable_extensions; do
13941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944 break 2
13946 done
13947 done
13948 IFS=$as_save_IFS
13952 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13953 if test -n "$GM2_FOR_TARGET"; then
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13955 $as_echo "$GM2_FOR_TARGET" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13963 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13965 set dummy ${ncn_progname}; ac_word=$2
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13967 $as_echo_n "checking for $ac_word... " >&6; }
13968 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 if test -n "$GM2_FOR_TARGET"; then
13972 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13973 else
13974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13975 for as_dir in $PATH
13977 IFS=$as_save_IFS
13978 test -z "$as_dir" && as_dir=.
13979 for ac_exec_ext in '' $ac_executable_extensions; do
13980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13981 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13983 break 2
13985 done
13986 done
13987 IFS=$as_save_IFS
13991 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13992 if test -n "$GM2_FOR_TARGET"; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13994 $as_echo "$GM2_FOR_TARGET" >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13997 $as_echo "no" >&6; }
14002 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14003 done
14006 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14007 set dummy gm2
14008 if test $build = $target ; then
14009 GM2_FOR_TARGET="$2"
14010 else
14011 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14013 else
14014 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14019 cat > conftest.c << \EOF
14020 #ifdef __GNUC__
14021 gcc_yay;
14022 #endif
14024 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14025 have_gcc_for_target=yes
14026 else
14027 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14028 have_gcc_for_target=no
14030 rm conftest.c
14035 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14036 if test -n "$with_build_time_tools"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14038 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
14039 if test -x $with_build_time_tools/ar; then
14040 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14041 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14043 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14048 elif test $build != $host && test $have_gcc_for_target = yes; then
14049 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14050 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14051 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14054 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14055 # Extract the first word of "ar", so it can be a program name with args.
14056 set dummy ar; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 case $AR_FOR_TARGET in
14063 [\\/]* | ?:[\\/]*)
14064 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $gcc_cv_tool_dirs
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14083 esac
14085 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14086 if test -n "$AR_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14088 $as_echo "$AR_FOR_TARGET" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14096 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14099 if test -n "$AR_FOR_TARGET"; then
14100 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14101 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14102 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14105 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14106 for ncn_progname in ar; do
14107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14108 set dummy ${ncn_progname}; ac_word=$2
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110 $as_echo_n "checking for $ac_word... " >&6; }
14111 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 if test -n "$AR_FOR_TARGET"; then
14115 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
14123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14124 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14126 break 2
14128 done
14129 done
14130 IFS=$as_save_IFS
14134 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14135 if test -n "$AR_FOR_TARGET"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14137 $as_echo "$AR_FOR_TARGET" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14144 done
14147 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14148 for ncn_progname in ar; do
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14150 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14151 if test -x $with_build_time_tools/${ncn_progname}; then
14152 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154 $as_echo "yes" >&6; }
14155 break
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14160 done
14163 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14164 for ncn_progname in ar; do
14165 if test -n "$ncn_target_tool_prefix"; then
14166 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14167 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 if test -n "$AR_FOR_TARGET"; then
14174 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14175 else
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $PATH
14179 IFS=$as_save_IFS
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 break 2
14187 done
14188 done
14189 IFS=$as_save_IFS
14193 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14194 if test -n "$AR_FOR_TARGET"; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14196 $as_echo "$AR_FOR_TARGET" >&6; }
14197 else
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14204 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14206 set dummy ${ncn_progname}; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 if test -n "$AR_FOR_TARGET"; then
14213 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14226 done
14227 done
14228 IFS=$as_save_IFS
14232 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14233 if test -n "$AR_FOR_TARGET"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14235 $as_echo "$AR_FOR_TARGET" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14243 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14244 done
14247 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14248 set dummy ar
14249 if test $build = $target ; then
14250 AR_FOR_TARGET="$2"
14251 else
14252 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14254 else
14255 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14258 else
14259 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14265 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14266 if test -n "$with_build_time_tools"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14268 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14269 if test -x $with_build_time_tools/as; then
14270 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14271 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14273 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14278 elif test $build != $host && test $have_gcc_for_target = yes; then
14279 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14280 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14281 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14284 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14285 # Extract the first word of "as", so it can be a program name with args.
14286 set dummy as; ac_word=$2
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 case $AS_FOR_TARGET in
14293 [\\/]* | ?:[\\/]*)
14294 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $gcc_cv_tool_dirs
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14304 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14308 done
14309 done
14310 IFS=$as_save_IFS
14313 esac
14315 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14316 if test -n "$AS_FOR_TARGET"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14318 $as_echo "$AS_FOR_TARGET" >&6; }
14319 else
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14326 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14329 if test -n "$AS_FOR_TARGET"; then
14330 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14331 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14332 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14335 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14336 for ncn_progname in as; do
14337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14338 set dummy ${ncn_progname}; ac_word=$2
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340 $as_echo_n "checking for $ac_word... " >&6; }
14341 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 if test -n "$AS_FOR_TARGET"; then
14345 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14346 else
14347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14348 for as_dir in $PATH
14350 IFS=$as_save_IFS
14351 test -z "$as_dir" && as_dir=.
14352 for ac_exec_ext in '' $ac_executable_extensions; do
14353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14354 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14356 break 2
14358 done
14359 done
14360 IFS=$as_save_IFS
14364 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14365 if test -n "$AS_FOR_TARGET"; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14367 $as_echo "$AS_FOR_TARGET" >&6; }
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370 $as_echo "no" >&6; }
14374 done
14377 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14378 for ncn_progname in as; do
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14380 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14381 if test -x $with_build_time_tools/${ncn_progname}; then
14382 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14384 $as_echo "yes" >&6; }
14385 break
14386 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 $as_echo "no" >&6; }
14390 done
14393 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14394 for ncn_progname in as; do
14395 if test -n "$ncn_target_tool_prefix"; then
14396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 if test -n "$AS_FOR_TARGET"; then
14404 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14405 else
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $PATH
14409 IFS=$as_save_IFS
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14415 break 2
14417 done
14418 done
14419 IFS=$as_save_IFS
14423 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14424 if test -n "$AS_FOR_TARGET"; then
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14426 $as_echo "$AS_FOR_TARGET" >&6; }
14427 else
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429 $as_echo "no" >&6; }
14434 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14436 set dummy ${ncn_progname}; ac_word=$2
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438 $as_echo_n "checking for $ac_word... " >&6; }
14439 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 if test -n "$AS_FOR_TARGET"; then
14443 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14444 else
14445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14448 IFS=$as_save_IFS
14449 test -z "$as_dir" && as_dir=.
14450 for ac_exec_ext in '' $ac_executable_extensions; do
14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14452 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14454 break 2
14456 done
14457 done
14458 IFS=$as_save_IFS
14462 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14463 if test -n "$AS_FOR_TARGET"; then
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14465 $as_echo "$AS_FOR_TARGET" >&6; }
14466 else
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 $as_echo "no" >&6; }
14473 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14474 done
14477 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14478 set dummy as
14479 if test $build = $target ; then
14480 AS_FOR_TARGET="$2"
14481 else
14482 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14484 else
14485 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14488 else
14489 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14495 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14496 if test -n "$with_build_time_tools"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14498 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14499 if test -x $with_build_time_tools/dlltool; then
14500 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14501 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14503 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14508 elif test $build != $host && test $have_gcc_for_target = yes; then
14509 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14510 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14511 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14514 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14515 # Extract the first word of "dlltool", so it can be a program name with args.
14516 set dummy dlltool; ac_word=$2
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14518 $as_echo_n "checking for $ac_word... " >&6; }
14519 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 case $DLLTOOL_FOR_TARGET in
14523 [\\/]* | ?:[\\/]*)
14524 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528 for as_dir in $gcc_cv_tool_dirs
14530 IFS=$as_save_IFS
14531 test -z "$as_dir" && as_dir=.
14532 for ac_exec_ext in '' $ac_executable_extensions; do
14533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14534 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14536 break 2
14538 done
14539 done
14540 IFS=$as_save_IFS
14543 esac
14545 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14546 if test -n "$DLLTOOL_FOR_TARGET"; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14548 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14549 else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14556 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14559 if test -n "$DLLTOOL_FOR_TARGET"; then
14560 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14561 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14562 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14565 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14566 for ncn_progname in dlltool; do
14567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14568 set dummy ${ncn_progname}; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 if test -n "$DLLTOOL_FOR_TARGET"; then
14575 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14576 else
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14580 IFS=$as_save_IFS
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14584 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14586 break 2
14588 done
14589 done
14590 IFS=$as_save_IFS
14594 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14595 if test -n "$DLLTOOL_FOR_TARGET"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14597 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14604 done
14607 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14608 for ncn_progname in dlltool; do
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14610 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14611 if test -x $with_build_time_tools/${ncn_progname}; then
14612 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14614 $as_echo "yes" >&6; }
14615 break
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 $as_echo "no" >&6; }
14620 done
14623 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14624 for ncn_progname in dlltool; do
14625 if test -n "$ncn_target_tool_prefix"; then
14626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14631 $as_echo_n "(cached) " >&6
14632 else
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14639 IFS=$as_save_IFS
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 break 2
14647 done
14648 done
14649 IFS=$as_save_IFS
14653 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14654 if test -n "$DLLTOOL_FOR_TARGET"; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14656 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14657 else
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14659 $as_echo "no" >&6; }
14664 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14666 set dummy ${ncn_progname}; ac_word=$2
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668 $as_echo_n "checking for $ac_word... " >&6; }
14669 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 if test -n "$DLLTOOL_FOR_TARGET"; then
14673 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14674 else
14675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676 for as_dir in $PATH
14678 IFS=$as_save_IFS
14679 test -z "$as_dir" && as_dir=.
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684 break 2
14686 done
14687 done
14688 IFS=$as_save_IFS
14692 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14693 if test -n "$DLLTOOL_FOR_TARGET"; then
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14695 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14696 else
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14703 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14704 done
14707 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14708 set dummy dlltool
14709 if test $build = $target ; then
14710 DLLTOOL_FOR_TARGET="$2"
14711 else
14712 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14714 else
14715 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14718 else
14719 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14725 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14726 if test -n "$with_build_time_tools"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14728 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14729 if test -x $with_build_time_tools/dsymutil; then
14730 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14731 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14733 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14738 elif test $build != $host && test $have_gcc_for_target = yes; then
14739 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14740 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14741 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14744 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14745 # Extract the first word of "dsymutil", so it can be a program name with args.
14746 set dummy dsymutil; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 $as_echo_n "checking for $ac_word... " >&6; }
14749 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 case $DSYMUTIL_FOR_TARGET in
14753 [\\/]* | ?:[\\/]*)
14754 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $gcc_cv_tool_dirs
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14764 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14768 done
14769 done
14770 IFS=$as_save_IFS
14773 esac
14775 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14776 if test -n "$DSYMUTIL_FOR_TARGET"; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14778 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14779 else
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14786 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14789 if test -n "$DSYMUTIL_FOR_TARGET"; then
14790 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14791 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14792 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14795 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14796 for ncn_progname in dsymutil; do
14797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14798 set dummy ${ncn_progname}; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 if test -n "$DSYMUTIL_FOR_TARGET"; then
14805 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14806 else
14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808 for as_dir in $PATH
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14816 break 2
14818 done
14819 done
14820 IFS=$as_save_IFS
14824 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14825 if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14827 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14828 else
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14834 done
14837 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14838 for ncn_progname in dsymutil; do
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14840 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14841 if test -x $with_build_time_tools/${ncn_progname}; then
14842 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14844 $as_echo "yes" >&6; }
14845 break
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14850 done
14853 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14854 for ncn_progname in dsymutil; do
14855 if test -n "$ncn_target_tool_prefix"; then
14856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14857 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14859 $as_echo_n "checking for $ac_word... " >&6; }
14860 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14865 else
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14875 break 2
14877 done
14878 done
14879 IFS=$as_save_IFS
14883 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14884 if test -n "$DSYMUTIL_FOR_TARGET"; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14886 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14887 else
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14894 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14896 set dummy ${ncn_progname}; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 $as_echo_n "checking for $ac_word... " >&6; }
14899 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 if test -n "$DSYMUTIL_FOR_TARGET"; then
14903 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14904 else
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 for as_dir in $PATH
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
14910 for ac_exec_ext in '' $ac_executable_extensions; do
14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14912 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14914 break 2
14916 done
14917 done
14918 IFS=$as_save_IFS
14922 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14923 if test -n "$DSYMUTIL_FOR_TARGET"; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14925 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14926 else
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14928 $as_echo "no" >&6; }
14933 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14934 done
14937 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14938 set dummy dsymutil
14939 if test $build = $target ; then
14940 DSYMUTIL_FOR_TARGET="$2"
14941 else
14942 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14944 else
14945 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14948 else
14949 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14955 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14956 if test -n "$with_build_time_tools"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14958 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14959 if test -x $with_build_time_tools/ld; then
14960 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14961 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14963 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14968 elif test $build != $host && test $have_gcc_for_target = yes; then
14969 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14970 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14971 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14974 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14975 # Extract the first word of "ld", so it can be a program name with args.
14976 set dummy ld; ac_word=$2
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14978 $as_echo_n "checking for $ac_word... " >&6; }
14979 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 case $LD_FOR_TARGET in
14983 [\\/]* | ?:[\\/]*)
14984 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $gcc_cv_tool_dirs
14990 IFS=$as_save_IFS
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14996 break 2
14998 done
14999 done
15000 IFS=$as_save_IFS
15003 esac
15005 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15006 if test -n "$LD_FOR_TARGET"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15008 $as_echo "$LD_FOR_TARGET" >&6; }
15009 else
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15016 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15019 if test -n "$LD_FOR_TARGET"; then
15020 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15021 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15022 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15025 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15026 for ncn_progname in ld; do
15027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15028 set dummy ${ncn_progname}; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 if test -n "$LD_FOR_TARGET"; then
15035 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15036 else
15037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15038 for as_dir in $PATH
15040 IFS=$as_save_IFS
15041 test -z "$as_dir" && as_dir=.
15042 for ac_exec_ext in '' $ac_executable_extensions; do
15043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15044 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046 break 2
15048 done
15049 done
15050 IFS=$as_save_IFS
15054 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15055 if test -n "$LD_FOR_TARGET"; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15057 $as_echo "$LD_FOR_TARGET" >&6; }
15058 else
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15064 done
15067 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15068 for ncn_progname in ld; do
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15071 if test -x $with_build_time_tools/${ncn_progname}; then
15072 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15074 $as_echo "yes" >&6; }
15075 break
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15080 done
15083 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15084 for ncn_progname in ld; do
15085 if test -n "$ncn_target_tool_prefix"; then
15086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15089 $as_echo_n "checking for $ac_word... " >&6; }
15090 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 if test -n "$LD_FOR_TARGET"; then
15094 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15095 else
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $PATH
15099 IFS=$as_save_IFS
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15105 break 2
15107 done
15108 done
15109 IFS=$as_save_IFS
15113 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15114 if test -n "$LD_FOR_TARGET"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15116 $as_echo "$LD_FOR_TARGET" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15124 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15126 set dummy ${ncn_progname}; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128 $as_echo_n "checking for $ac_word... " >&6; }
15129 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131 else
15132 if test -n "$LD_FOR_TARGET"; then
15133 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15134 else
15135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136 for as_dir in $PATH
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15146 done
15147 done
15148 IFS=$as_save_IFS
15152 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15153 if test -n "$LD_FOR_TARGET"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15155 $as_echo "$LD_FOR_TARGET" >&6; }
15156 else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15163 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15164 done
15167 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15168 set dummy ld
15169 if test $build = $target ; then
15170 LD_FOR_TARGET="$2"
15171 else
15172 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15174 else
15175 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15178 else
15179 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15185 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15186 if test -n "$with_build_time_tools"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15188 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15189 if test -x $with_build_time_tools/lipo; then
15190 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15191 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15193 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15198 elif test $build != $host && test $have_gcc_for_target = yes; then
15199 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15200 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15201 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15204 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15205 # Extract the first word of "lipo", so it can be a program name with args.
15206 set dummy lipo; ac_word=$2
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15208 $as_echo_n "checking for $ac_word... " >&6; }
15209 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 case $LIPO_FOR_TARGET in
15213 [\\/]* | ?:[\\/]*)
15214 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $gcc_cv_tool_dirs
15220 IFS=$as_save_IFS
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15226 break 2
15228 done
15229 done
15230 IFS=$as_save_IFS
15233 esac
15235 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15236 if test -n "$LIPO_FOR_TARGET"; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15238 $as_echo "$LIPO_FOR_TARGET" >&6; }
15239 else
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15241 $as_echo "no" >&6; }
15246 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15249 if test -n "$LIPO_FOR_TARGET"; then
15250 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15251 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15252 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15255 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15256 for ncn_progname in lipo; do
15257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15258 set dummy ${ncn_progname}; ac_word=$2
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15260 $as_echo_n "checking for $ac_word... " >&6; }
15261 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15262 $as_echo_n "(cached) " >&6
15263 else
15264 if test -n "$LIPO_FOR_TARGET"; then
15265 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15266 else
15267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15268 for as_dir in $PATH
15270 IFS=$as_save_IFS
15271 test -z "$as_dir" && as_dir=.
15272 for ac_exec_ext in '' $ac_executable_extensions; do
15273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15274 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15276 break 2
15278 done
15279 done
15280 IFS=$as_save_IFS
15284 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15285 if test -n "$LIPO_FOR_TARGET"; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15287 $as_echo "$LIPO_FOR_TARGET" >&6; }
15288 else
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15290 $as_echo "no" >&6; }
15294 done
15297 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15298 for ncn_progname in lipo; do
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15300 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15301 if test -x $with_build_time_tools/${ncn_progname}; then
15302 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15304 $as_echo "yes" >&6; }
15305 break
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15310 done
15313 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15314 for ncn_progname in lipo; do
15315 if test -n "$ncn_target_tool_prefix"; then
15316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15319 $as_echo_n "checking for $ac_word... " >&6; }
15320 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15325 else
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15329 IFS=$as_save_IFS
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15335 break 2
15337 done
15338 done
15339 IFS=$as_save_IFS
15343 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15344 if test -n "$LIPO_FOR_TARGET"; then
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15346 $as_echo "$LIPO_FOR_TARGET" >&6; }
15347 else
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15349 $as_echo "no" >&6; }
15354 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15356 set dummy ${ncn_progname}; ac_word=$2
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15358 $as_echo_n "checking for $ac_word... " >&6; }
15359 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 if test -n "$LIPO_FOR_TARGET"; then
15363 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15364 else
15365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366 for as_dir in $PATH
15368 IFS=$as_save_IFS
15369 test -z "$as_dir" && as_dir=.
15370 for ac_exec_ext in '' $ac_executable_extensions; do
15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15372 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15374 break 2
15376 done
15377 done
15378 IFS=$as_save_IFS
15382 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15383 if test -n "$LIPO_FOR_TARGET"; then
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15385 $as_echo "$LIPO_FOR_TARGET" >&6; }
15386 else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388 $as_echo "no" >&6; }
15393 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15394 done
15397 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15398 set dummy lipo
15399 if test $build = $target ; then
15400 LIPO_FOR_TARGET="$2"
15401 else
15402 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15404 else
15405 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15408 else
15409 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15415 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15416 if test -n "$with_build_time_tools"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15418 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15419 if test -x $with_build_time_tools/nm; then
15420 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15421 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15423 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15424 else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15428 elif test $build != $host && test $have_gcc_for_target = yes; then
15429 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15430 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15431 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15434 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15435 # Extract the first word of "nm", so it can be a program name with args.
15436 set dummy nm; ac_word=$2
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15438 $as_echo_n "checking for $ac_word... " >&6; }
15439 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 case $NM_FOR_TARGET in
15443 [\\/]* | ?:[\\/]*)
15444 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15448 for as_dir in $gcc_cv_tool_dirs
15450 IFS=$as_save_IFS
15451 test -z "$as_dir" && as_dir=.
15452 for ac_exec_ext in '' $ac_executable_extensions; do
15453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15454 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15456 break 2
15458 done
15459 done
15460 IFS=$as_save_IFS
15463 esac
15465 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15466 if test -n "$NM_FOR_TARGET"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15468 $as_echo "$NM_FOR_TARGET" >&6; }
15469 else
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471 $as_echo "no" >&6; }
15476 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15479 if test -n "$NM_FOR_TARGET"; then
15480 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15481 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15482 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15485 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15486 for ncn_progname in nm; do
15487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15488 set dummy ${ncn_progname}; ac_word=$2
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15490 $as_echo_n "checking for $ac_word... " >&6; }
15491 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 if test -n "$NM_FOR_TARGET"; then
15495 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15496 else
15497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15498 for as_dir in $PATH
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15504 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15508 done
15509 done
15510 IFS=$as_save_IFS
15514 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15515 if test -n "$NM_FOR_TARGET"; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15517 $as_echo "$NM_FOR_TARGET" >&6; }
15518 else
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15520 $as_echo "no" >&6; }
15524 done
15527 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15528 for ncn_progname in nm; do
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15531 if test -x $with_build_time_tools/${ncn_progname}; then
15532 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15535 break
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15540 done
15543 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15544 for ncn_progname in nm; do
15545 if test -n "$ncn_target_tool_prefix"; then
15546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15549 $as_echo_n "checking for $ac_word... " >&6; }
15550 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552 else
15553 if test -n "$NM_FOR_TARGET"; then
15554 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15555 else
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $PATH
15559 IFS=$as_save_IFS
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15563 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15565 break 2
15567 done
15568 done
15569 IFS=$as_save_IFS
15573 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15574 if test -n "$NM_FOR_TARGET"; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15576 $as_echo "$NM_FOR_TARGET" >&6; }
15577 else
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15584 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15586 set dummy ${ncn_progname}; ac_word=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588 $as_echo_n "checking for $ac_word... " >&6; }
15589 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 if test -n "$NM_FOR_TARGET"; then
15593 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15594 else
15595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596 for as_dir in $PATH
15598 IFS=$as_save_IFS
15599 test -z "$as_dir" && as_dir=.
15600 for ac_exec_ext in '' $ac_executable_extensions; do
15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15602 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15604 break 2
15606 done
15607 done
15608 IFS=$as_save_IFS
15612 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15613 if test -n "$NM_FOR_TARGET"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15615 $as_echo "$NM_FOR_TARGET" >&6; }
15616 else
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618 $as_echo "no" >&6; }
15623 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15624 done
15627 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15628 set dummy nm
15629 if test $build = $target ; then
15630 NM_FOR_TARGET="$2"
15631 else
15632 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15634 else
15635 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15638 else
15639 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15645 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15646 if test -n "$with_build_time_tools"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15648 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15649 if test -x $with_build_time_tools/objcopy; then
15650 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15651 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15653 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15654 else
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 $as_echo "no" >&6; }
15658 elif test $build != $host && test $have_gcc_for_target = yes; then
15659 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15660 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15661 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15664 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15665 # Extract the first word of "objcopy", so it can be a program name with args.
15666 set dummy objcopy; ac_word=$2
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15668 $as_echo_n "checking for $ac_word... " >&6; }
15669 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15670 $as_echo_n "(cached) " >&6
15671 else
15672 case $OBJCOPY_FOR_TARGET in
15673 [\\/]* | ?:[\\/]*)
15674 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678 for as_dir in $gcc_cv_tool_dirs
15680 IFS=$as_save_IFS
15681 test -z "$as_dir" && as_dir=.
15682 for ac_exec_ext in '' $ac_executable_extensions; do
15683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15684 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15686 break 2
15688 done
15689 done
15690 IFS=$as_save_IFS
15693 esac
15695 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15696 if test -n "$OBJCOPY_FOR_TARGET"; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15698 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15699 else
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15706 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15709 if test -n "$OBJCOPY_FOR_TARGET"; then
15710 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15711 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15712 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15715 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15716 for ncn_progname in objcopy; do
15717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15718 set dummy ${ncn_progname}; ac_word=$2
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15720 $as_echo_n "checking for $ac_word... " >&6; }
15721 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15722 $as_echo_n "(cached) " >&6
15723 else
15724 if test -n "$OBJCOPY_FOR_TARGET"; then
15725 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15726 else
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15730 IFS=$as_save_IFS
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15736 break 2
15738 done
15739 done
15740 IFS=$as_save_IFS
15744 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15745 if test -n "$OBJCOPY_FOR_TARGET"; then
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15747 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15748 else
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15750 $as_echo "no" >&6; }
15754 done
15757 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15758 for ncn_progname in objcopy; do
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15760 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15761 if test -x $with_build_time_tools/${ncn_progname}; then
15762 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15764 $as_echo "yes" >&6; }
15765 break
15766 else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15770 done
15773 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15774 for ncn_progname in objcopy; do
15775 if test -n "$ncn_target_tool_prefix"; then
15776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15785 else
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $PATH
15789 IFS=$as_save_IFS
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15795 break 2
15797 done
15798 done
15799 IFS=$as_save_IFS
15803 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15804 if test -n "$OBJCOPY_FOR_TARGET"; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15806 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15807 else
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15809 $as_echo "no" >&6; }
15814 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15816 set dummy ${ncn_progname}; ac_word=$2
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15818 $as_echo_n "checking for $ac_word... " >&6; }
15819 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 if test -n "$OBJCOPY_FOR_TARGET"; then
15823 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15824 else
15825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826 for as_dir in $PATH
15828 IFS=$as_save_IFS
15829 test -z "$as_dir" && as_dir=.
15830 for ac_exec_ext in '' $ac_executable_extensions; do
15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15832 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15834 break 2
15836 done
15837 done
15838 IFS=$as_save_IFS
15842 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15843 if test -n "$OBJCOPY_FOR_TARGET"; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15845 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15846 else
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 $as_echo "no" >&6; }
15853 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15854 done
15857 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15858 set dummy objcopy
15859 if test $build = $target ; then
15860 OBJCOPY_FOR_TARGET="$2"
15861 else
15862 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15864 else
15865 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15868 else
15869 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15875 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15876 if test -n "$with_build_time_tools"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15878 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15879 if test -x $with_build_time_tools/objdump; then
15880 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15881 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15883 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15884 else
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15888 elif test $build != $host && test $have_gcc_for_target = yes; then
15889 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15890 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15891 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15894 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15895 # Extract the first word of "objdump", so it can be a program name with args.
15896 set dummy objdump; ac_word=$2
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15898 $as_echo_n "checking for $ac_word... " >&6; }
15899 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 case $OBJDUMP_FOR_TARGET in
15903 [\\/]* | ?:[\\/]*)
15904 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908 for as_dir in $gcc_cv_tool_dirs
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15918 done
15919 done
15920 IFS=$as_save_IFS
15923 esac
15925 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15926 if test -n "$OBJDUMP_FOR_TARGET"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15928 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15929 else
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15931 $as_echo "no" >&6; }
15936 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15939 if test -n "$OBJDUMP_FOR_TARGET"; then
15940 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15941 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15942 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15945 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15946 for ncn_progname in objdump; do
15947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15948 set dummy ${ncn_progname}; ac_word=$2
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15950 $as_echo_n "checking for $ac_word... " >&6; }
15951 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953 else
15954 if test -n "$OBJDUMP_FOR_TARGET"; then
15955 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15956 else
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958 for as_dir in $PATH
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15964 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15968 done
15969 done
15970 IFS=$as_save_IFS
15974 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15975 if test -n "$OBJDUMP_FOR_TARGET"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15977 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15978 else
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15984 done
15987 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15988 for ncn_progname in objdump; do
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15991 if test -x $with_build_time_tools/${ncn_progname}; then
15992 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15994 $as_echo "yes" >&6; }
15995 break
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
16000 done
16003 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16004 for ncn_progname in objdump; do
16005 if test -n "$ncn_target_tool_prefix"; then
16006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009 $as_echo_n "checking for $ac_word... " >&6; }
16010 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16015 else
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $PATH
16019 IFS=$as_save_IFS
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16025 break 2
16027 done
16028 done
16029 IFS=$as_save_IFS
16033 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16034 if test -n "$OBJDUMP_FOR_TARGET"; then
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16036 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16037 else
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16044 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16046 set dummy ${ncn_progname}; ac_word=$2
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048 $as_echo_n "checking for $ac_word... " >&6; }
16049 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 if test -n "$OBJDUMP_FOR_TARGET"; then
16053 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16054 else
16055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056 for as_dir in $PATH
16058 IFS=$as_save_IFS
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
16061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16064 break 2
16066 done
16067 done
16068 IFS=$as_save_IFS
16072 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16073 if test -n "$OBJDUMP_FOR_TARGET"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16075 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16076 else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078 $as_echo "no" >&6; }
16083 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16084 done
16087 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16088 set dummy objdump
16089 if test $build = $target ; then
16090 OBJDUMP_FOR_TARGET="$2"
16091 else
16092 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16094 else
16095 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16098 else
16099 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16105 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16106 if test -n "$with_build_time_tools"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16108 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16109 if test -x $with_build_time_tools/otool; then
16110 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16111 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16113 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16114 else
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16118 elif test $build != $host && test $have_gcc_for_target = yes; then
16119 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16120 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16121 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16124 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16125 # Extract the first word of "otool", so it can be a program name with args.
16126 set dummy otool; ac_word=$2
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16128 $as_echo_n "checking for $ac_word... " >&6; }
16129 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 case $OTOOL_FOR_TARGET in
16133 [\\/]* | ?:[\\/]*)
16134 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16138 for as_dir in $gcc_cv_tool_dirs
16140 IFS=$as_save_IFS
16141 test -z "$as_dir" && as_dir=.
16142 for ac_exec_ext in '' $ac_executable_extensions; do
16143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16144 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16146 break 2
16148 done
16149 done
16150 IFS=$as_save_IFS
16153 esac
16155 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16156 if test -n "$OTOOL_FOR_TARGET"; then
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16158 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16159 else
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16161 $as_echo "no" >&6; }
16166 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16169 if test -n "$OTOOL_FOR_TARGET"; then
16170 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16171 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16172 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16175 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16176 for ncn_progname in otool; do
16177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16178 set dummy ${ncn_progname}; ac_word=$2
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16180 $as_echo_n "checking for $ac_word... " >&6; }
16181 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 if test -n "$OTOOL_FOR_TARGET"; then
16185 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16186 else
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188 for as_dir in $PATH
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
16193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16194 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16196 break 2
16198 done
16199 done
16200 IFS=$as_save_IFS
16204 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16205 if test -n "$OTOOL_FOR_TARGET"; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16207 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16208 else
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16210 $as_echo "no" >&6; }
16214 done
16217 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16218 for ncn_progname in otool; do
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16220 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16221 if test -x $with_build_time_tools/${ncn_progname}; then
16222 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16224 $as_echo "yes" >&6; }
16225 break
16226 else
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16230 done
16233 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16234 for ncn_progname in otool; do
16235 if test -n "$ncn_target_tool_prefix"; then
16236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16239 $as_echo_n "checking for $ac_word... " >&6; }
16240 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16241 $as_echo_n "(cached) " >&6
16242 else
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16245 else
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $PATH
16249 IFS=$as_save_IFS
16250 test -z "$as_dir" && as_dir=.
16251 for ac_exec_ext in '' $ac_executable_extensions; do
16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16253 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16255 break 2
16257 done
16258 done
16259 IFS=$as_save_IFS
16263 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16264 if test -n "$OTOOL_FOR_TARGET"; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16266 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16267 else
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16269 $as_echo "no" >&6; }
16274 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16276 set dummy ${ncn_progname}; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278 $as_echo_n "checking for $ac_word... " >&6; }
16279 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 if test -n "$OTOOL_FOR_TARGET"; then
16283 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16284 else
16285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286 for as_dir in $PATH
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
16290 for ac_exec_ext in '' $ac_executable_extensions; do
16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16292 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16294 break 2
16296 done
16297 done
16298 IFS=$as_save_IFS
16302 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16303 if test -n "$OTOOL_FOR_TARGET"; then
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16305 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16306 else
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308 $as_echo "no" >&6; }
16313 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16314 done
16317 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16318 set dummy otool
16319 if test $build = $target ; then
16320 OTOOL_FOR_TARGET="$2"
16321 else
16322 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16324 else
16325 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16328 else
16329 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16335 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16336 if test -n "$with_build_time_tools"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16338 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16339 if test -x $with_build_time_tools/ranlib; then
16340 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16341 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16343 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16344 else
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 $as_echo "no" >&6; }
16348 elif test $build != $host && test $have_gcc_for_target = yes; then
16349 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16350 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16351 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16354 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16355 # Extract the first word of "ranlib", so it can be a program name with args.
16356 set dummy ranlib; ac_word=$2
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16358 $as_echo_n "checking for $ac_word... " >&6; }
16359 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16360 $as_echo_n "(cached) " >&6
16361 else
16362 case $RANLIB_FOR_TARGET in
16363 [\\/]* | ?:[\\/]*)
16364 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16368 for as_dir in $gcc_cv_tool_dirs
16370 IFS=$as_save_IFS
16371 test -z "$as_dir" && as_dir=.
16372 for ac_exec_ext in '' $ac_executable_extensions; do
16373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16374 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16376 break 2
16378 done
16379 done
16380 IFS=$as_save_IFS
16383 esac
16385 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16386 if test -n "$RANLIB_FOR_TARGET"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16388 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16389 else
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 $as_echo "no" >&6; }
16396 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16399 if test -n "$RANLIB_FOR_TARGET"; then
16400 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16401 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16402 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16405 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16406 for ncn_progname in ranlib; do
16407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16408 set dummy ${ncn_progname}; ac_word=$2
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16410 $as_echo_n "checking for $ac_word... " >&6; }
16411 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16412 $as_echo_n "(cached) " >&6
16413 else
16414 if test -n "$RANLIB_FOR_TARGET"; then
16415 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16416 else
16417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16418 for as_dir in $PATH
16420 IFS=$as_save_IFS
16421 test -z "$as_dir" && as_dir=.
16422 for ac_exec_ext in '' $ac_executable_extensions; do
16423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16424 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16426 break 2
16428 done
16429 done
16430 IFS=$as_save_IFS
16434 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16435 if test -n "$RANLIB_FOR_TARGET"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16437 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16440 $as_echo "no" >&6; }
16444 done
16447 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16448 for ncn_progname in ranlib; do
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16450 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16451 if test -x $with_build_time_tools/${ncn_progname}; then
16452 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16454 $as_echo "yes" >&6; }
16455 break
16456 else
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458 $as_echo "no" >&6; }
16460 done
16463 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16464 for ncn_progname in ranlib; do
16465 if test -n "$ncn_target_tool_prefix"; then
16466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16469 $as_echo_n "checking for $ac_word... " >&6; }
16470 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16475 else
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $PATH
16479 IFS=$as_save_IFS
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16483 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 break 2
16487 done
16488 done
16489 IFS=$as_save_IFS
16493 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16494 if test -n "$RANLIB_FOR_TARGET"; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16496 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16497 else
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16499 $as_echo "no" >&6; }
16504 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16506 set dummy ${ncn_progname}; ac_word=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508 $as_echo_n "checking for $ac_word... " >&6; }
16509 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16510 $as_echo_n "(cached) " >&6
16511 else
16512 if test -n "$RANLIB_FOR_TARGET"; then
16513 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16514 else
16515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516 for as_dir in $PATH
16518 IFS=$as_save_IFS
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16524 break 2
16526 done
16527 done
16528 IFS=$as_save_IFS
16532 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16533 if test -n "$RANLIB_FOR_TARGET"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16535 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16536 else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16543 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16544 done
16547 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16548 set dummy ranlib
16549 if test $build = $target ; then
16550 RANLIB_FOR_TARGET="$2"
16551 else
16552 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16554 else
16555 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16558 else
16559 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16565 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16566 if test -n "$with_build_time_tools"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16568 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16569 if test -x $with_build_time_tools/readelf; then
16570 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16571 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16573 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16574 else
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16578 elif test $build != $host && test $have_gcc_for_target = yes; then
16579 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16580 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16581 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16584 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16585 # Extract the first word of "readelf", so it can be a program name with args.
16586 set dummy readelf; ac_word=$2
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16588 $as_echo_n "checking for $ac_word... " >&6; }
16589 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 case $READELF_FOR_TARGET in
16593 [\\/]* | ?:[\\/]*)
16594 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598 for as_dir in $gcc_cv_tool_dirs
16600 IFS=$as_save_IFS
16601 test -z "$as_dir" && as_dir=.
16602 for ac_exec_ext in '' $ac_executable_extensions; do
16603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16604 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16606 break 2
16608 done
16609 done
16610 IFS=$as_save_IFS
16613 esac
16615 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16616 if test -n "$READELF_FOR_TARGET"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16618 $as_echo "$READELF_FOR_TARGET" >&6; }
16619 else
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16621 $as_echo "no" >&6; }
16626 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16629 if test -n "$READELF_FOR_TARGET"; then
16630 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16631 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16632 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16635 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16636 for ncn_progname in readelf; do
16637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16638 set dummy ${ncn_progname}; ac_word=$2
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16640 $as_echo_n "checking for $ac_word... " >&6; }
16641 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16642 $as_echo_n "(cached) " >&6
16643 else
16644 if test -n "$READELF_FOR_TARGET"; then
16645 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16646 else
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
16652 for ac_exec_ext in '' $ac_executable_extensions; do
16653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16654 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16656 break 2
16658 done
16659 done
16660 IFS=$as_save_IFS
16664 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16665 if test -n "$READELF_FOR_TARGET"; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16667 $as_echo "$READELF_FOR_TARGET" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16674 done
16677 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16678 for ncn_progname in readelf; do
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16680 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16681 if test -x $with_build_time_tools/${ncn_progname}; then
16682 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684 $as_echo "yes" >&6; }
16685 break
16686 else
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16690 done
16693 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16694 for ncn_progname in readelf; do
16695 if test -n "$ncn_target_tool_prefix"; then
16696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16699 $as_echo_n "checking for $ac_word... " >&6; }
16700 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 if test -n "$READELF_FOR_TARGET"; then
16704 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16705 else
16706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16707 for as_dir in $PATH
16709 IFS=$as_save_IFS
16710 test -z "$as_dir" && as_dir=.
16711 for ac_exec_ext in '' $ac_executable_extensions; do
16712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16713 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16715 break 2
16717 done
16718 done
16719 IFS=$as_save_IFS
16723 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16724 if test -n "$READELF_FOR_TARGET"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16726 $as_echo "$READELF_FOR_TARGET" >&6; }
16727 else
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16734 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16736 set dummy ${ncn_progname}; ac_word=$2
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16738 $as_echo_n "checking for $ac_word... " >&6; }
16739 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16740 $as_echo_n "(cached) " >&6
16741 else
16742 if test -n "$READELF_FOR_TARGET"; then
16743 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16744 else
16745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746 for as_dir in $PATH
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
16750 for ac_exec_ext in '' $ac_executable_extensions; do
16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16752 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16754 break 2
16756 done
16757 done
16758 IFS=$as_save_IFS
16762 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16763 if test -n "$READELF_FOR_TARGET"; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16765 $as_echo "$READELF_FOR_TARGET" >&6; }
16766 else
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16773 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16774 done
16777 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16778 set dummy readelf
16779 if test $build = $target ; then
16780 READELF_FOR_TARGET="$2"
16781 else
16782 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16784 else
16785 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16788 else
16789 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16795 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16796 if test -n "$with_build_time_tools"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16798 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16799 if test -x $with_build_time_tools/strip; then
16800 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16801 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16803 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16804 else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16806 $as_echo "no" >&6; }
16808 elif test $build != $host && test $have_gcc_for_target = yes; then
16809 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16810 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16811 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16814 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16815 # Extract the first word of "strip", so it can be a program name with args.
16816 set dummy strip; ac_word=$2
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16818 $as_echo_n "checking for $ac_word... " >&6; }
16819 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 case $STRIP_FOR_TARGET in
16823 [\\/]* | ?:[\\/]*)
16824 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828 for as_dir in $gcc_cv_tool_dirs
16830 IFS=$as_save_IFS
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16834 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 break 2
16838 done
16839 done
16840 IFS=$as_save_IFS
16843 esac
16845 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16846 if test -n "$STRIP_FOR_TARGET"; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16848 $as_echo "$STRIP_FOR_TARGET" >&6; }
16849 else
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16856 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16859 if test -n "$STRIP_FOR_TARGET"; then
16860 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16861 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16862 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16865 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16866 for ncn_progname in strip; do
16867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16868 set dummy ${ncn_progname}; ac_word=$2
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870 $as_echo_n "checking for $ac_word... " >&6; }
16871 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 if test -n "$STRIP_FOR_TARGET"; then
16875 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16876 else
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16880 IFS=$as_save_IFS
16881 test -z "$as_dir" && as_dir=.
16882 for ac_exec_ext in '' $ac_executable_extensions; do
16883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16884 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16886 break 2
16888 done
16889 done
16890 IFS=$as_save_IFS
16894 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16895 if test -n "$STRIP_FOR_TARGET"; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16897 $as_echo "$STRIP_FOR_TARGET" >&6; }
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16900 $as_echo "no" >&6; }
16904 done
16907 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16908 for ncn_progname in strip; do
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16910 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16911 if test -x $with_build_time_tools/${ncn_progname}; then
16912 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 $as_echo "yes" >&6; }
16915 break
16916 else
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918 $as_echo "no" >&6; }
16920 done
16923 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16924 for ncn_progname in strip; do
16925 if test -n "$ncn_target_tool_prefix"; then
16926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16927 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16931 $as_echo_n "(cached) " >&6
16932 else
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16935 else
16936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16937 for as_dir in $PATH
16939 IFS=$as_save_IFS
16940 test -z "$as_dir" && as_dir=.
16941 for ac_exec_ext in '' $ac_executable_extensions; do
16942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16945 break 2
16947 done
16948 done
16949 IFS=$as_save_IFS
16953 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16954 if test -n "$STRIP_FOR_TARGET"; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16956 $as_echo "$STRIP_FOR_TARGET" >&6; }
16957 else
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16964 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16966 set dummy ${ncn_progname}; ac_word=$2
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16968 $as_echo_n "checking for $ac_word... " >&6; }
16969 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 if test -n "$STRIP_FOR_TARGET"; then
16973 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16974 else
16975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in $PATH
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for ac_exec_ext in '' $ac_executable_extensions; do
16981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16982 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16984 break 2
16986 done
16987 done
16988 IFS=$as_save_IFS
16992 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16993 if test -n "$STRIP_FOR_TARGET"; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16995 $as_echo "$STRIP_FOR_TARGET" >&6; }
16996 else
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998 $as_echo "no" >&6; }
17003 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17004 done
17007 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17008 set dummy strip
17009 if test $build = $target ; then
17010 STRIP_FOR_TARGET="$2"
17011 else
17012 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17014 else
17015 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17018 else
17019 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17025 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17026 if test -n "$with_build_time_tools"; then
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17028 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
17029 if test -x $with_build_time_tools/windres; then
17030 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17031 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17033 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17034 else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17038 elif test $build != $host && test $have_gcc_for_target = yes; then
17039 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17040 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17041 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17044 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17045 # Extract the first word of "windres", so it can be a program name with args.
17046 set dummy windres; ac_word=$2
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17048 $as_echo_n "checking for $ac_word... " >&6; }
17049 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17050 $as_echo_n "(cached) " >&6
17051 else
17052 case $WINDRES_FOR_TARGET in
17053 [\\/]* | ?:[\\/]*)
17054 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $gcc_cv_tool_dirs
17060 IFS=$as_save_IFS
17061 test -z "$as_dir" && as_dir=.
17062 for ac_exec_ext in '' $ac_executable_extensions; do
17063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17064 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17066 break 2
17068 done
17069 done
17070 IFS=$as_save_IFS
17073 esac
17075 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17076 if test -n "$WINDRES_FOR_TARGET"; then
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17078 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17079 else
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081 $as_echo "no" >&6; }
17086 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17089 if test -n "$WINDRES_FOR_TARGET"; then
17090 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17091 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17092 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17095 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17096 for ncn_progname in windres; do
17097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17098 set dummy ${ncn_progname}; ac_word=$2
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17100 $as_echo_n "checking for $ac_word... " >&6; }
17101 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 if test -n "$WINDRES_FOR_TARGET"; then
17105 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17106 else
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17110 IFS=$as_save_IFS
17111 test -z "$as_dir" && as_dir=.
17112 for ac_exec_ext in '' $ac_executable_extensions; do
17113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17116 break 2
17118 done
17119 done
17120 IFS=$as_save_IFS
17124 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17125 if test -n "$WINDRES_FOR_TARGET"; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17127 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17128 else
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17130 $as_echo "no" >&6; }
17134 done
17137 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17138 for ncn_progname in windres; do
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17141 if test -x $with_build_time_tools/${ncn_progname}; then
17142 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17144 $as_echo "yes" >&6; }
17145 break
17146 else
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17150 done
17153 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17154 for ncn_progname in windres; do
17155 if test -n "$ncn_target_tool_prefix"; then
17156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17159 $as_echo_n "checking for $ac_word... " >&6; }
17160 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17165 else
17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17167 for as_dir in $PATH
17169 IFS=$as_save_IFS
17170 test -z "$as_dir" && as_dir=.
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17175 break 2
17177 done
17178 done
17179 IFS=$as_save_IFS
17183 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17184 if test -n "$WINDRES_FOR_TARGET"; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17186 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17187 else
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17194 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17196 set dummy ${ncn_progname}; ac_word=$2
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198 $as_echo_n "checking for $ac_word... " >&6; }
17199 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17202 if test -n "$WINDRES_FOR_TARGET"; then
17203 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17204 else
17205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206 for as_dir in $PATH
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
17210 for ac_exec_ext in '' $ac_executable_extensions; do
17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17212 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17214 break 2
17216 done
17217 done
17218 IFS=$as_save_IFS
17222 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17223 if test -n "$WINDRES_FOR_TARGET"; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17225 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17226 else
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228 $as_echo "no" >&6; }
17233 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17234 done
17237 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17238 set dummy windres
17239 if test $build = $target ; then
17240 WINDRES_FOR_TARGET="$2"
17241 else
17242 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17244 else
17245 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17248 else
17249 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17255 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17256 if test -n "$with_build_time_tools"; then
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17258 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17259 if test -x $with_build_time_tools/windmc; then
17260 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17261 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17263 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17264 else
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17266 $as_echo "no" >&6; }
17268 elif test $build != $host && test $have_gcc_for_target = yes; then
17269 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17270 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17271 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17274 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17275 # Extract the first word of "windmc", so it can be a program name with args.
17276 set dummy windmc; ac_word=$2
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17278 $as_echo_n "checking for $ac_word... " >&6; }
17279 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17282 case $WINDMC_FOR_TARGET in
17283 [\\/]* | ?:[\\/]*)
17284 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288 for as_dir in $gcc_cv_tool_dirs
17290 IFS=$as_save_IFS
17291 test -z "$as_dir" && as_dir=.
17292 for ac_exec_ext in '' $ac_executable_extensions; do
17293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17294 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17296 break 2
17298 done
17299 done
17300 IFS=$as_save_IFS
17303 esac
17305 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17306 if test -n "$WINDMC_FOR_TARGET"; then
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17308 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17309 else
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17311 $as_echo "no" >&6; }
17316 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17319 if test -n "$WINDMC_FOR_TARGET"; then
17320 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17321 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17322 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17325 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17326 for ncn_progname in windmc; do
17327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17328 set dummy ${ncn_progname}; ac_word=$2
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17330 $as_echo_n "checking for $ac_word... " >&6; }
17331 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17332 $as_echo_n "(cached) " >&6
17333 else
17334 if test -n "$WINDMC_FOR_TARGET"; then
17335 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17336 else
17337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338 for as_dir in $PATH
17340 IFS=$as_save_IFS
17341 test -z "$as_dir" && as_dir=.
17342 for ac_exec_ext in '' $ac_executable_extensions; do
17343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17344 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17346 break 2
17348 done
17349 done
17350 IFS=$as_save_IFS
17354 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17355 if test -n "$WINDMC_FOR_TARGET"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17357 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17360 $as_echo "no" >&6; }
17364 done
17367 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17368 for ncn_progname in windmc; do
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17370 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17371 if test -x $with_build_time_tools/${ncn_progname}; then
17372 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17374 $as_echo "yes" >&6; }
17375 break
17376 else
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 $as_echo "no" >&6; }
17380 done
17383 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17384 for ncn_progname in windmc; do
17385 if test -n "$ncn_target_tool_prefix"; then
17386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17387 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17395 else
17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17399 IFS=$as_save_IFS
17400 test -z "$as_dir" && as_dir=.
17401 for ac_exec_ext in '' $ac_executable_extensions; do
17402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17405 break 2
17407 done
17408 done
17409 IFS=$as_save_IFS
17413 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17414 if test -n "$WINDMC_FOR_TARGET"; then
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17416 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17417 else
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419 $as_echo "no" >&6; }
17424 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17426 set dummy ${ncn_progname}; ac_word=$2
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17428 $as_echo_n "checking for $ac_word... " >&6; }
17429 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17430 $as_echo_n "(cached) " >&6
17431 else
17432 if test -n "$WINDMC_FOR_TARGET"; then
17433 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17434 else
17435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436 for as_dir in $PATH
17438 IFS=$as_save_IFS
17439 test -z "$as_dir" && as_dir=.
17440 for ac_exec_ext in '' $ac_executable_extensions; do
17441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17442 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17444 break 2
17446 done
17447 done
17448 IFS=$as_save_IFS
17452 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17453 if test -n "$WINDMC_FOR_TARGET"; then
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17455 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17456 else
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17458 $as_echo "no" >&6; }
17463 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17464 done
17467 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17468 set dummy windmc
17469 if test $build = $target ; then
17470 WINDMC_FOR_TARGET="$2"
17471 else
17472 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17474 else
17475 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17478 else
17479 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17483 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17486 $as_echo_n "checking where to find the target ar... " >&6; }
17487 if test "x${build}" != "x${host}" ; then
17488 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17489 # We already found the complete path
17490 ac_dir=`dirname $AR_FOR_TARGET`
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17492 $as_echo "pre-installed in $ac_dir" >&6; }
17493 else
17494 # Canadian cross, just use what we found
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17496 $as_echo "pre-installed" >&6; }
17498 else
17499 ok=yes
17500 case " ${configdirs} " in
17501 *" binutils "*) ;;
17502 *) ok=no ;;
17503 esac
17505 if test $ok = yes; then
17506 # An in-tree tool is available and we can use it
17507 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17509 $as_echo "just compiled" >&6; }
17510 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17511 # We already found the complete path
17512 ac_dir=`dirname $AR_FOR_TARGET`
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17514 $as_echo "pre-installed in $ac_dir" >&6; }
17515 elif test "x$target" = "x$host"; then
17516 # We can use an host tool
17517 AR_FOR_TARGET='$(AR)'
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17519 $as_echo "host tool" >&6; }
17520 else
17521 # We need a cross tool
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17523 $as_echo "pre-installed" >&6; }
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17528 $as_echo_n "checking where to find the target as... " >&6; }
17529 if test "x${build}" != "x${host}" ; then
17530 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17531 # We already found the complete path
17532 ac_dir=`dirname $AS_FOR_TARGET`
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17534 $as_echo "pre-installed in $ac_dir" >&6; }
17535 else
17536 # Canadian cross, just use what we found
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17538 $as_echo "pre-installed" >&6; }
17540 else
17541 ok=yes
17542 case " ${configdirs} " in
17543 *" gas "*) ;;
17544 *) ok=no ;;
17545 esac
17547 if test $ok = yes; then
17548 # An in-tree tool is available and we can use it
17549 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17551 $as_echo "just compiled" >&6; }
17552 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17553 # We already found the complete path
17554 ac_dir=`dirname $AS_FOR_TARGET`
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17556 $as_echo "pre-installed in $ac_dir" >&6; }
17557 elif test "x$target" = "x$host"; then
17558 # We can use an host tool
17559 AS_FOR_TARGET='$(AS)'
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17561 $as_echo "host tool" >&6; }
17562 else
17563 # We need a cross tool
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17565 $as_echo "pre-installed" >&6; }
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17570 $as_echo_n "checking where to find the target cc... " >&6; }
17571 if test "x${build}" != "x${host}" ; then
17572 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17573 # We already found the complete path
17574 ac_dir=`dirname $CC_FOR_TARGET`
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17576 $as_echo "pre-installed in $ac_dir" >&6; }
17577 else
17578 # Canadian cross, just use what we found
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17580 $as_echo "pre-installed" >&6; }
17582 else
17583 ok=yes
17584 case " ${configdirs} " in
17585 *" gcc "*) ;;
17586 *) ok=no ;;
17587 esac
17589 if test $ok = yes; then
17590 # An in-tree tool is available and we can use it
17591 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17593 $as_echo "just compiled" >&6; }
17594 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17595 # We already found the complete path
17596 ac_dir=`dirname $CC_FOR_TARGET`
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17598 $as_echo "pre-installed in $ac_dir" >&6; }
17599 elif test "x$target" = "x$host"; then
17600 # We can use an host tool
17601 CC_FOR_TARGET='$(CC)'
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17603 $as_echo "host tool" >&6; }
17604 else
17605 # We need a cross tool
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17607 $as_echo "pre-installed" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17612 $as_echo_n "checking where to find the target c++... " >&6; }
17613 if test "x${build}" != "x${host}" ; then
17614 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17615 # We already found the complete path
17616 ac_dir=`dirname $CXX_FOR_TARGET`
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17618 $as_echo "pre-installed in $ac_dir" >&6; }
17619 else
17620 # Canadian cross, just use what we found
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17622 $as_echo "pre-installed" >&6; }
17624 else
17625 ok=yes
17626 case " ${configdirs} " in
17627 *" gcc "*) ;;
17628 *) ok=no ;;
17629 esac
17630 case ,${enable_languages}, in
17631 *,c++,*) ;;
17632 *) ok=no ;;
17633 esac
17634 if test $ok = yes; then
17635 # An in-tree tool is available and we can use it
17636 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'
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17638 $as_echo "just compiled" >&6; }
17639 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17640 # We already found the complete path
17641 ac_dir=`dirname $CXX_FOR_TARGET`
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17643 $as_echo "pre-installed in $ac_dir" >&6; }
17644 elif test "x$target" = "x$host"; then
17645 # We can use an host tool
17646 CXX_FOR_TARGET='$(CXX)'
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17648 $as_echo "host tool" >&6; }
17649 else
17650 # We need a cross tool
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17652 $as_echo "pre-installed" >&6; }
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17657 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17658 if test "x${build}" != "x${host}" ; then
17659 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17660 # We already found the complete path
17661 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17663 $as_echo "pre-installed in $ac_dir" >&6; }
17664 else
17665 # Canadian cross, just use what we found
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17667 $as_echo "pre-installed" >&6; }
17669 else
17670 ok=yes
17671 case " ${configdirs} " in
17672 *" gcc "*) ;;
17673 *) ok=no ;;
17674 esac
17675 case ,${enable_languages}, in
17676 *,c++,*) ;;
17677 *) ok=no ;;
17678 esac
17679 if test $ok = yes; then
17680 # An in-tree tool is available and we can use it
17681 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'
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17683 $as_echo "just compiled" >&6; }
17684 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17685 # We already found the complete path
17686 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17688 $as_echo "pre-installed in $ac_dir" >&6; }
17689 elif test "x$target" = "x$host"; then
17690 # We can use an host tool
17691 RAW_CXX_FOR_TARGET='$(CXX)'
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17693 $as_echo "host tool" >&6; }
17694 else
17695 # We need a cross tool
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17697 $as_echo "pre-installed" >&6; }
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17702 $as_echo_n "checking where to find the target dlltool... " >&6; }
17703 if test "x${build}" != "x${host}" ; then
17704 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17705 # We already found the complete path
17706 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17708 $as_echo "pre-installed in $ac_dir" >&6; }
17709 else
17710 # Canadian cross, just use what we found
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17712 $as_echo "pre-installed" >&6; }
17714 else
17715 ok=yes
17716 case " ${configdirs} " in
17717 *" binutils "*) ;;
17718 *) ok=no ;;
17719 esac
17721 if test $ok = yes; then
17722 # An in-tree tool is available and we can use it
17723 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17725 $as_echo "just compiled" >&6; }
17726 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17727 # We already found the complete path
17728 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17730 $as_echo "pre-installed in $ac_dir" >&6; }
17731 elif test "x$target" = "x$host"; then
17732 # We can use an host tool
17733 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17735 $as_echo "host tool" >&6; }
17736 else
17737 # We need a cross tool
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17739 $as_echo "pre-installed" >&6; }
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17744 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17745 if test "x${build}" != "x${host}" ; then
17746 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17747 # We already found the complete path
17748 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17750 $as_echo "pre-installed in $ac_dir" >&6; }
17751 else
17752 # Canadian cross, just use what we found
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17754 $as_echo "pre-installed" >&6; }
17756 else
17757 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17758 # We already found the complete path
17759 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17761 $as_echo "pre-installed in $ac_dir" >&6; }
17762 elif test "x$target" = "x$host"; then
17763 # We can use an host tool
17764 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17766 $as_echo "host tool" >&6; }
17767 else
17768 # We need a cross tool
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17770 $as_echo "pre-installed" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17775 $as_echo_n "checking where to find the target gcc... " >&6; }
17776 if test "x${build}" != "x${host}" ; then
17777 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $GCC_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17781 $as_echo "pre-installed in $ac_dir" >&6; }
17782 else
17783 # Canadian cross, just use what we found
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17785 $as_echo "pre-installed" >&6; }
17787 else
17788 ok=yes
17789 case " ${configdirs} " in
17790 *" gcc "*) ;;
17791 *) ok=no ;;
17792 esac
17794 if test $ok = yes; then
17795 # An in-tree tool is available and we can use it
17796 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17798 $as_echo "just compiled" >&6; }
17799 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17800 # We already found the complete path
17801 ac_dir=`dirname $GCC_FOR_TARGET`
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17803 $as_echo "pre-installed in $ac_dir" >&6; }
17804 elif test "x$target" = "x$host"; then
17805 # We can use an host tool
17806 GCC_FOR_TARGET='$()'
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17808 $as_echo "host tool" >&6; }
17809 else
17810 # We need a cross tool
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17812 $as_echo "pre-installed" >&6; }
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17817 $as_echo_n "checking where to find the target gfortran... " >&6; }
17818 if test "x${build}" != "x${host}" ; then
17819 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17823 $as_echo "pre-installed in $ac_dir" >&6; }
17824 else
17825 # Canadian cross, just use what we found
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17827 $as_echo "pre-installed" >&6; }
17829 else
17830 ok=yes
17831 case " ${configdirs} " in
17832 *" gcc "*) ;;
17833 *) ok=no ;;
17834 esac
17835 case ,${enable_languages}, in
17836 *,fortran,*) ;;
17837 *) ok=no ;;
17838 esac
17839 if test $ok = yes; then
17840 # An in-tree tool is available and we can use it
17841 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17843 $as_echo "just compiled" >&6; }
17844 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17845 # We already found the complete path
17846 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17848 $as_echo "pre-installed in $ac_dir" >&6; }
17849 elif test "x$target" = "x$host"; then
17850 # We can use an host tool
17851 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17853 $as_echo "host tool" >&6; }
17854 else
17855 # We need a cross tool
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17857 $as_echo "pre-installed" >&6; }
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17862 $as_echo_n "checking where to find the target gccgo... " >&6; }
17863 if test "x${build}" != "x${host}" ; then
17864 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17865 # We already found the complete path
17866 ac_dir=`dirname $GOC_FOR_TARGET`
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17868 $as_echo "pre-installed in $ac_dir" >&6; }
17869 else
17870 # Canadian cross, just use what we found
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17872 $as_echo "pre-installed" >&6; }
17874 else
17875 ok=yes
17876 case " ${configdirs} " in
17877 *" gcc "*) ;;
17878 *) ok=no ;;
17879 esac
17880 case ,${enable_languages}, in
17881 *,go,*) ;;
17882 *) ok=no ;;
17883 esac
17884 if test $ok = yes; then
17885 # An in-tree tool is available and we can use it
17886 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17888 $as_echo "just compiled" >&6; }
17889 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17890 # We already found the complete path
17891 ac_dir=`dirname $GOC_FOR_TARGET`
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17893 $as_echo "pre-installed in $ac_dir" >&6; }
17894 elif test "x$target" = "x$host"; then
17895 # We can use an host tool
17896 GOC_FOR_TARGET='$(GOC)'
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17898 $as_echo "host tool" >&6; }
17899 else
17900 # We need a cross tool
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17902 $as_echo "pre-installed" >&6; }
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17907 $as_echo_n "checking where to find the target gdc... " >&6; }
17908 if test "x${build}" != "x${host}" ; then
17909 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17910 # We already found the complete path
17911 ac_dir=`dirname $GDC_FOR_TARGET`
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17913 $as_echo "pre-installed in $ac_dir" >&6; }
17914 else
17915 # Canadian cross, just use what we found
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17917 $as_echo "pre-installed" >&6; }
17919 else
17920 ok=yes
17921 case " ${configdirs} " in
17922 *" gcc "*) ;;
17923 *) ok=no ;;
17924 esac
17925 case ,${enable_languages}, in
17926 *,d,*) ;;
17927 *) ok=no ;;
17928 esac
17929 if test $ok = yes; then
17930 # An in-tree tool is available and we can use it
17931 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17933 $as_echo "just compiled" >&6; }
17934 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $GDC_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17938 $as_echo "pre-installed in $ac_dir" >&6; }
17939 elif test "x$target" = "x$host"; then
17940 # We can use an host tool
17941 GDC_FOR_TARGET='$(GDC)'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17943 $as_echo "host tool" >&6; }
17944 else
17945 # We need a cross tool
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17947 $as_echo "pre-installed" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17952 $as_echo_n "checking where to find the target gm2... " >&6; }
17953 if test "x${build}" != "x${host}" ; then
17954 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
17956 ac_dir=`dirname $GM2_FOR_TARGET`
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958 $as_echo "pre-installed in $ac_dir" >&6; }
17959 else
17960 # Canadian cross, just use what we found
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17962 $as_echo "pre-installed" >&6; }
17964 else
17965 ok=yes
17966 case " ${configdirs} " in
17967 *" gcc "*) ;;
17968 *) ok=no ;;
17969 esac
17970 case ,${enable_languages}, in
17971 *,m2,*) ;;
17972 *) ok=no ;;
17973 esac
17974 if test $ok = yes; then
17975 # An in-tree tool is available and we can use it
17976 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17978 $as_echo "just compiled" >&6; }
17979 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17980 # We already found the complete path
17981 ac_dir=`dirname $GM2_FOR_TARGET`
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17983 $as_echo "pre-installed in $ac_dir" >&6; }
17984 elif test "x$target" = "x$host"; then
17985 # We can use an host tool
17986 GM2_FOR_TARGET='$(GM2)'
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17988 $as_echo "host tool" >&6; }
17989 else
17990 # We need a cross tool
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17992 $as_echo "pre-installed" >&6; }
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17997 $as_echo_n "checking where to find the target ld... " >&6; }
17998 if test "x${build}" != "x${host}" ; then
17999 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18000 # We already found the complete path
18001 ac_dir=`dirname $LD_FOR_TARGET`
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18003 $as_echo "pre-installed in $ac_dir" >&6; }
18004 else
18005 # Canadian cross, just use what we found
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18007 $as_echo "pre-installed" >&6; }
18009 else
18010 ok=yes
18011 case " ${configdirs} " in
18012 *" ld "*) ;;
18013 *) ok=no ;;
18014 esac
18016 if test $ok = yes; then
18017 # An in-tree tool is available and we can use it
18018 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18020 $as_echo "just compiled" >&6; }
18021 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18022 # We already found the complete path
18023 ac_dir=`dirname $LD_FOR_TARGET`
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18025 $as_echo "pre-installed in $ac_dir" >&6; }
18026 elif test "x$target" = "x$host"; then
18027 # We can use an host tool
18028 LD_FOR_TARGET='$(LD)'
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18030 $as_echo "host tool" >&6; }
18031 else
18032 # We need a cross tool
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18034 $as_echo "pre-installed" >&6; }
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18039 $as_echo_n "checking where to find the target lipo... " >&6; }
18040 if test "x${build}" != "x${host}" ; then
18041 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18042 # We already found the complete path
18043 ac_dir=`dirname $LIPO_FOR_TARGET`
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18045 $as_echo "pre-installed in $ac_dir" >&6; }
18046 else
18047 # Canadian cross, just use what we found
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18049 $as_echo "pre-installed" >&6; }
18051 else
18052 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $LIPO_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056 $as_echo "pre-installed in $ac_dir" >&6; }
18057 elif test "x$target" = "x$host"; then
18058 # We can use an host tool
18059 LIPO_FOR_TARGET='$(LIPO)'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18061 $as_echo "host tool" >&6; }
18062 else
18063 # We need a cross tool
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18065 $as_echo "pre-installed" >&6; }
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18070 $as_echo_n "checking where to find the target nm... " >&6; }
18071 if test "x${build}" != "x${host}" ; then
18072 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $NM_FOR_TARGET`
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18076 $as_echo "pre-installed in $ac_dir" >&6; }
18077 else
18078 # Canadian cross, just use what we found
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18080 $as_echo "pre-installed" >&6; }
18082 else
18083 ok=yes
18084 case " ${configdirs} " in
18085 *" binutils "*) ;;
18086 *) ok=no ;;
18087 esac
18089 if test $ok = yes; then
18090 # An in-tree tool is available and we can use it
18091 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18093 $as_echo "just compiled" >&6; }
18094 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18095 # We already found the complete path
18096 ac_dir=`dirname $NM_FOR_TARGET`
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18098 $as_echo "pre-installed in $ac_dir" >&6; }
18099 elif test "x$target" = "x$host"; then
18100 # We can use an host tool
18101 NM_FOR_TARGET='$(NM)'
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18103 $as_echo "host tool" >&6; }
18104 else
18105 # We need a cross tool
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18107 $as_echo "pre-installed" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18112 $as_echo_n "checking where to find the target objcopy... " >&6; }
18113 if test "x${build}" != "x${host}" ; then
18114 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
18116 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18118 $as_echo "pre-installed in $ac_dir" >&6; }
18119 else
18120 # Canadian cross, just use what we found
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18122 $as_echo "pre-installed" >&6; }
18124 else
18125 ok=yes
18126 case " ${configdirs} " in
18127 *" binutils "*) ;;
18128 *) ok=no ;;
18129 esac
18131 if test $ok = yes; then
18132 # An in-tree tool is available and we can use it
18133 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18135 $as_echo "just compiled" >&6; }
18136 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18137 # We already found the complete path
18138 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18140 $as_echo "pre-installed in $ac_dir" >&6; }
18141 elif test "x$target" = "x$host"; then
18142 # We can use an host tool
18143 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18145 $as_echo "host tool" >&6; }
18146 else
18147 # We need a cross tool
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18149 $as_echo "pre-installed" >&6; }
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18154 $as_echo_n "checking where to find the target objdump... " >&6; }
18155 if test "x${build}" != "x${host}" ; then
18156 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18157 # We already found the complete path
18158 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18160 $as_echo "pre-installed in $ac_dir" >&6; }
18161 else
18162 # Canadian cross, just use what we found
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18164 $as_echo "pre-installed" >&6; }
18166 else
18167 ok=yes
18168 case " ${configdirs} " in
18169 *" binutils "*) ;;
18170 *) ok=no ;;
18171 esac
18173 if test $ok = yes; then
18174 # An in-tree tool is available and we can use it
18175 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18177 $as_echo "just compiled" >&6; }
18178 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18179 # We already found the complete path
18180 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18182 $as_echo "pre-installed in $ac_dir" >&6; }
18183 elif test "x$target" = "x$host"; then
18184 # We can use an host tool
18185 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18187 $as_echo "host tool" >&6; }
18188 else
18189 # We need a cross tool
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18191 $as_echo "pre-installed" >&6; }
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18196 $as_echo_n "checking where to find the target otool... " >&6; }
18197 if test "x${build}" != "x${host}" ; then
18198 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18199 # We already found the complete path
18200 ac_dir=`dirname $OTOOL_FOR_TARGET`
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18202 $as_echo "pre-installed in $ac_dir" >&6; }
18203 else
18204 # Canadian cross, just use what we found
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18206 $as_echo "pre-installed" >&6; }
18208 else
18209 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18210 # We already found the complete path
18211 ac_dir=`dirname $OTOOL_FOR_TARGET`
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18213 $as_echo "pre-installed in $ac_dir" >&6; }
18214 elif test "x$target" = "x$host"; then
18215 # We can use an host tool
18216 OTOOL_FOR_TARGET='$(OTOOL)'
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18218 $as_echo "host tool" >&6; }
18219 else
18220 # We need a cross tool
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18222 $as_echo "pre-installed" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18227 $as_echo_n "checking where to find the target ranlib... " >&6; }
18228 if test "x${build}" != "x${host}" ; then
18229 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18230 # We already found the complete path
18231 ac_dir=`dirname $RANLIB_FOR_TARGET`
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18233 $as_echo "pre-installed in $ac_dir" >&6; }
18234 else
18235 # Canadian cross, just use what we found
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18237 $as_echo "pre-installed" >&6; }
18239 else
18240 ok=yes
18241 case " ${configdirs} " in
18242 *" binutils "*) ;;
18243 *) ok=no ;;
18244 esac
18246 if test $ok = yes; then
18247 # An in-tree tool is available and we can use it
18248 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18250 $as_echo "just compiled" >&6; }
18251 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18252 # We already found the complete path
18253 ac_dir=`dirname $RANLIB_FOR_TARGET`
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18255 $as_echo "pre-installed in $ac_dir" >&6; }
18256 elif test "x$target" = "x$host"; then
18257 # We can use an host tool
18258 RANLIB_FOR_TARGET='$(RANLIB)'
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18260 $as_echo "host tool" >&6; }
18261 else
18262 # We need a cross tool
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18264 $as_echo "pre-installed" >&6; }
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18269 $as_echo_n "checking where to find the target readelf... " >&6; }
18270 if test "x${build}" != "x${host}" ; then
18271 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18272 # We already found the complete path
18273 ac_dir=`dirname $READELF_FOR_TARGET`
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18275 $as_echo "pre-installed in $ac_dir" >&6; }
18276 else
18277 # Canadian cross, just use what we found
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18279 $as_echo "pre-installed" >&6; }
18281 else
18282 ok=yes
18283 case " ${configdirs} " in
18284 *" binutils "*) ;;
18285 *) ok=no ;;
18286 esac
18288 if test $ok = yes; then
18289 # An in-tree tool is available and we can use it
18290 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18292 $as_echo "just compiled" >&6; }
18293 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18294 # We already found the complete path
18295 ac_dir=`dirname $READELF_FOR_TARGET`
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18297 $as_echo "pre-installed in $ac_dir" >&6; }
18298 elif test "x$target" = "x$host"; then
18299 # We can use an host tool
18300 READELF_FOR_TARGET='$(READELF)'
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18302 $as_echo "host tool" >&6; }
18303 else
18304 # We need a cross tool
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18306 $as_echo "pre-installed" >&6; }
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18311 $as_echo_n "checking where to find the target strip... " >&6; }
18312 if test "x${build}" != "x${host}" ; then
18313 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18314 # We already found the complete path
18315 ac_dir=`dirname $STRIP_FOR_TARGET`
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18317 $as_echo "pre-installed in $ac_dir" >&6; }
18318 else
18319 # Canadian cross, just use what we found
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18321 $as_echo "pre-installed" >&6; }
18323 else
18324 ok=yes
18325 case " ${configdirs} " in
18326 *" binutils "*) ;;
18327 *) ok=no ;;
18328 esac
18330 if test $ok = yes; then
18331 # An in-tree tool is available and we can use it
18332 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18334 $as_echo "just compiled" >&6; }
18335 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18336 # We already found the complete path
18337 ac_dir=`dirname $STRIP_FOR_TARGET`
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18339 $as_echo "pre-installed in $ac_dir" >&6; }
18340 elif test "x$target" = "x$host"; then
18341 # We can use an host tool
18342 STRIP_FOR_TARGET='$(STRIP)'
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18344 $as_echo "host tool" >&6; }
18345 else
18346 # We need a cross tool
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18348 $as_echo "pre-installed" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18353 $as_echo_n "checking where to find the target windres... " >&6; }
18354 if test "x${build}" != "x${host}" ; then
18355 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18356 # We already found the complete path
18357 ac_dir=`dirname $WINDRES_FOR_TARGET`
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18359 $as_echo "pre-installed in $ac_dir" >&6; }
18360 else
18361 # Canadian cross, just use what we found
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18363 $as_echo "pre-installed" >&6; }
18365 else
18366 ok=yes
18367 case " ${configdirs} " in
18368 *" binutils "*) ;;
18369 *) ok=no ;;
18370 esac
18372 if test $ok = yes; then
18373 # An in-tree tool is available and we can use it
18374 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18376 $as_echo "just compiled" >&6; }
18377 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18378 # We already found the complete path
18379 ac_dir=`dirname $WINDRES_FOR_TARGET`
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18381 $as_echo "pre-installed in $ac_dir" >&6; }
18382 elif test "x$target" = "x$host"; then
18383 # We can use an host tool
18384 WINDRES_FOR_TARGET='$(WINDRES)'
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18386 $as_echo "host tool" >&6; }
18387 else
18388 # We need a cross tool
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18390 $as_echo "pre-installed" >&6; }
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18395 $as_echo_n "checking where to find the target windmc... " >&6; }
18396 if test "x${build}" != "x${host}" ; then
18397 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18398 # We already found the complete path
18399 ac_dir=`dirname $WINDMC_FOR_TARGET`
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18401 $as_echo "pre-installed in $ac_dir" >&6; }
18402 else
18403 # Canadian cross, just use what we found
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18405 $as_echo "pre-installed" >&6; }
18407 else
18408 ok=yes
18409 case " ${configdirs} " in
18410 *" binutils "*) ;;
18411 *) ok=no ;;
18412 esac
18414 if test $ok = yes; then
18415 # An in-tree tool is available and we can use it
18416 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18418 $as_echo "just compiled" >&6; }
18419 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18420 # We already found the complete path
18421 ac_dir=`dirname $WINDMC_FOR_TARGET`
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18423 $as_echo "pre-installed in $ac_dir" >&6; }
18424 elif test "x$target" = "x$host"; then
18425 # We can use an host tool
18426 WINDMC_FOR_TARGET='$(WINDMC)'
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18428 $as_echo "host tool" >&6; }
18429 else
18430 # We need a cross tool
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18432 $as_echo "pre-installed" >&6; }
18440 # Certain tools may need extra flags.
18441 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18442 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18443 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18445 # When building target libraries, except in a Canadian cross, we use
18446 # the same toolchain as the compiler we just built.
18447 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18448 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18449 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18450 if test $host = $build; then
18451 case " $configdirs " in
18452 *" gcc "*)
18453 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18454 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18455 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18457 esac
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18465 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18466 # Check whether --enable-maintainer-mode was given.
18467 if test "${enable_maintainer_mode+set}" = set; then :
18468 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18469 else
18470 USE_MAINTAINER_MODE=no
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18474 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18477 if test "$USE_MAINTAINER_MODE" = yes; then
18478 MAINTAINER_MODE_TRUE=
18479 MAINTAINER_MODE_FALSE='#'
18480 else
18481 MAINTAINER_MODE_TRUE='#'
18482 MAINTAINER_MODE_FALSE=
18484 MAINT=$MAINTAINER_MODE_TRUE
18486 # ---------------------
18487 # GCC bootstrap support
18488 # ---------------------
18490 # Stage specific cflags for build.
18491 stage1_cflags="-g"
18492 case $build in
18493 vax-*-*)
18494 case ${GCC} in
18495 yes) stage1_cflags="-g -Wa,-J" ;;
18496 *) stage1_cflags="-g -J" ;;
18497 esac ;;
18498 esac
18502 # Enable --enable-checking in stage1 of the compiler.
18503 # Check whether --enable-stage1-checking was given.
18504 if test "${enable_stage1_checking+set}" = set; then :
18505 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18506 else
18507 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18508 # For --disable-checking or implicit --enable-checking=release, avoid
18509 # setting --enable-checking=gc in the default stage1 checking for LTO
18510 # bootstraps. See PR62077.
18511 case $BUILD_CONFIG in
18512 *lto*)
18513 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18515 stage1_checking=--enable-checking=yes,types;;
18516 esac
18517 if test "x$enable_checking" = x && \
18518 test -d ${srcdir}/gcc && \
18519 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18520 stage1_checking=--enable-checking=yes,types,extra
18522 else
18523 stage1_checking=--enable-checking=$enable_checking,types
18529 # Enable -Werror in bootstrap stage2 and later.
18530 # Check whether --enable-werror was given.
18531 if test "${enable_werror+set}" = set; then :
18532 enableval=$enable_werror;
18533 case ${enable_werror} in
18534 yes) stage2_werror_flag="--enable-werror-always" ;;
18535 *) stage2_werror_flag="" ;;
18536 esac
18538 else
18540 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18541 case $BUILD_CONFIG in
18542 bootstrap-debug)
18543 stage2_werror_flag="--enable-werror-always" ;;
18545 stage2_werror_flag="--enable-werror-always" ;;
18546 esac
18554 # Specify what files to not compare during bootstrap.
18556 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18557 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18558 compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18559 compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
18560 case "$target" in
18561 hppa*64*-*-hpux*) ;;
18562 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18563 esac
18566 ac_config_files="$ac_config_files Makefile"
18568 cat >confcache <<\_ACEOF
18569 # This file is a shell script that caches the results of configure
18570 # tests run on this system so they can be shared between configure
18571 # scripts and configure runs, see configure's option --config-cache.
18572 # It is not useful on other systems. If it contains results you don't
18573 # want to keep, you may remove or edit it.
18575 # config.status only pays attention to the cache file if you give it
18576 # the --recheck option to rerun configure.
18578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18580 # following values.
18582 _ACEOF
18584 # The following way of writing the cache mishandles newlines in values,
18585 # but we know of no workaround that is simple, portable, and efficient.
18586 # So, we kill variables containing newlines.
18587 # Ultrix sh set writes to stderr and can't be redirected directly,
18588 # and sets the high bit in the cache file unless we assign to the vars.
18590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18591 eval ac_val=\$$ac_var
18592 case $ac_val in #(
18593 *${as_nl}*)
18594 case $ac_var in #(
18595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18597 esac
18598 case $ac_var in #(
18599 _ | IFS | as_nl) ;; #(
18600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18601 *) { eval $ac_var=; unset $ac_var;} ;;
18602 esac ;;
18603 esac
18604 done
18606 (set) 2>&1 |
18607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18608 *${as_nl}ac_space=\ *)
18609 # `set' does not quote correctly, so add quotes: double-quote
18610 # substitution turns \\\\ into \\, and sed turns \\ into \.
18611 sed -n \
18612 "s/'/'\\\\''/g;
18613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18614 ;; #(
18616 # `set' quotes correctly as required by POSIX, so do not add quotes.
18617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18619 esac |
18620 sort
18622 sed '
18623 /^ac_cv_env_/b end
18624 t clear
18625 :clear
18626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18627 t end
18628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18629 :end' >>confcache
18630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18631 if test -w "$cache_file"; then
18632 if test "x$cache_file" != "x/dev/null"; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18634 $as_echo "$as_me: updating cache $cache_file" >&6;}
18635 if test ! -f "$cache_file" || test -h "$cache_file"; then
18636 cat confcache >"$cache_file"
18637 else
18638 case $cache_file in #(
18639 */* | ?:*)
18640 mv -f confcache "$cache_file"$$ &&
18641 mv -f "$cache_file"$$ "$cache_file" ;; #(
18643 mv -f confcache "$cache_file" ;;
18644 esac
18647 else
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18652 rm -f confcache
18654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18655 # Let make expand exec_prefix.
18656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18658 # Transform confdefs.h into DEFS.
18659 # Protect against shell expansion while executing Makefile rules.
18660 # Protect against Makefile macro expansion.
18662 # If the first sed substitution is executed (which looks for macros that
18663 # take arguments), then branch to the quote section. Otherwise,
18664 # look for a macro that doesn't take arguments.
18665 ac_script='
18666 :mline
18667 /\\$/{
18669 s,\\\n,,
18670 b mline
18672 t clear
18673 :clear
18674 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18675 t quote
18676 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18677 t quote
18678 b any
18679 :quote
18680 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18681 s/\[/\\&/g
18682 s/\]/\\&/g
18683 s/\$/$$/g
18685 :any
18688 s/^\n//
18689 s/\n/ /g
18693 DEFS=`sed -n "$ac_script" confdefs.h`
18696 ac_libobjs=
18697 ac_ltlibobjs=
18699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18700 # 1. Remove the extension, and $U if already installed.
18701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18704 # will be set to the directory where LIBOBJS objects are built.
18705 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18706 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18707 done
18708 LIBOBJS=$ac_libobjs
18710 LTLIBOBJS=$ac_ltlibobjs
18714 : "${CONFIG_STATUS=./config.status}"
18715 ac_write_fail=0
18716 ac_clean_files_save=$ac_clean_files
18717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18720 as_write_fail=0
18721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18722 #! $SHELL
18723 # Generated by $as_me.
18724 # Run this file to recreate the current configuration.
18725 # Compiler output produced by configure, useful for debugging
18726 # configure, is in config.log if it exists.
18728 debug=false
18729 ac_cs_recheck=false
18730 ac_cs_silent=false
18732 SHELL=\${CONFIG_SHELL-$SHELL}
18733 export SHELL
18734 _ASEOF
18735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18736 ## -------------------- ##
18737 ## M4sh Initialization. ##
18738 ## -------------------- ##
18740 # Be more Bourne compatible
18741 DUALCASE=1; export DUALCASE # for MKS sh
18742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18743 emulate sh
18744 NULLCMD=:
18745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18746 # is contrary to our usage. Disable this feature.
18747 alias -g '${1+"$@"}'='"$@"'
18748 setopt NO_GLOB_SUBST
18749 else
18750 case `(set -o) 2>/dev/null` in #(
18751 *posix*) :
18752 set -o posix ;; #(
18753 *) :
18755 esac
18759 as_nl='
18761 export as_nl
18762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18766 # Prefer a ksh shell builtin over an external printf program on Solaris,
18767 # but without wasting forks for bash or zsh.
18768 if test -z "$BASH_VERSION$ZSH_VERSION" \
18769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18770 as_echo='print -r --'
18771 as_echo_n='print -rn --'
18772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18773 as_echo='printf %s\n'
18774 as_echo_n='printf %s'
18775 else
18776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18778 as_echo_n='/usr/ucb/echo -n'
18779 else
18780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18781 as_echo_n_body='eval
18782 arg=$1;
18783 case $arg in #(
18784 *"$as_nl"*)
18785 expr "X$arg" : "X\\(.*\\)$as_nl";
18786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18787 esac;
18788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18790 export as_echo_n_body
18791 as_echo_n='sh -c $as_echo_n_body as_echo'
18793 export as_echo_body
18794 as_echo='sh -c $as_echo_body as_echo'
18797 # The user is always right.
18798 if test "${PATH_SEPARATOR+set}" != set; then
18799 PATH_SEPARATOR=:
18800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18802 PATH_SEPARATOR=';'
18807 # IFS
18808 # We need space, tab and new line, in precisely that order. Quoting is
18809 # there to prevent editors from complaining about space-tab.
18810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18811 # splitting by setting IFS to empty value.)
18812 IFS=" "" $as_nl"
18814 # Find who we are. Look in the path if we contain no directory separator.
18815 as_myself=
18816 case $0 in #((
18817 *[\\/]* ) as_myself=$0 ;;
18818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819 for as_dir in $PATH
18821 IFS=$as_save_IFS
18822 test -z "$as_dir" && as_dir=.
18823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18824 done
18825 IFS=$as_save_IFS
18828 esac
18829 # We did not find ourselves, most probably we were run as `sh COMMAND'
18830 # in which case we are not to be found in the path.
18831 if test "x$as_myself" = x; then
18832 as_myself=$0
18834 if test ! -f "$as_myself"; then
18835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18836 exit 1
18839 # Unset variables that we do not need and which cause bugs (e.g. in
18840 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18841 # suppresses any "Segmentation fault" message there. '((' could
18842 # trigger a bug in pdksh 5.2.14.
18843 for as_var in BASH_ENV ENV MAIL MAILPATH
18844 do eval test x\${$as_var+set} = xset \
18845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18846 done
18847 PS1='$ '
18848 PS2='> '
18849 PS4='+ '
18851 # NLS nuisances.
18852 LC_ALL=C
18853 export LC_ALL
18854 LANGUAGE=C
18855 export LANGUAGE
18857 # CDPATH.
18858 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18861 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18862 # ----------------------------------------
18863 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18864 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18865 # script with STATUS, using 1 if that was 0.
18866 as_fn_error ()
18868 as_status=$1; test $as_status -eq 0 && as_status=1
18869 if test "$4"; then
18870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18873 $as_echo "$as_me: error: $2" >&2
18874 as_fn_exit $as_status
18875 } # as_fn_error
18878 # as_fn_set_status STATUS
18879 # -----------------------
18880 # Set $? to STATUS, without forking.
18881 as_fn_set_status ()
18883 return $1
18884 } # as_fn_set_status
18886 # as_fn_exit STATUS
18887 # -----------------
18888 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18889 as_fn_exit ()
18891 set +e
18892 as_fn_set_status $1
18893 exit $1
18894 } # as_fn_exit
18896 # as_fn_unset VAR
18897 # ---------------
18898 # Portably unset VAR.
18899 as_fn_unset ()
18901 { eval $1=; unset $1;}
18903 as_unset=as_fn_unset
18904 # as_fn_append VAR VALUE
18905 # ----------------------
18906 # Append the text in VALUE to the end of the definition contained in VAR. Take
18907 # advantage of any shell optimizations that allow amortized linear growth over
18908 # repeated appends, instead of the typical quadratic growth present in naive
18909 # implementations.
18910 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18911 eval 'as_fn_append ()
18913 eval $1+=\$2
18915 else
18916 as_fn_append ()
18918 eval $1=\$$1\$2
18920 fi # as_fn_append
18922 # as_fn_arith ARG...
18923 # ------------------
18924 # Perform arithmetic evaluation on the ARGs, and store the result in the
18925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18926 # must be portable across $(()) and expr.
18927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18928 eval 'as_fn_arith ()
18930 as_val=$(( $* ))
18932 else
18933 as_fn_arith ()
18935 as_val=`expr "$@" || test $? -eq 1`
18937 fi # as_fn_arith
18940 if expr a : '\(a\)' >/dev/null 2>&1 &&
18941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18942 as_expr=expr
18943 else
18944 as_expr=false
18947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18948 as_basename=basename
18949 else
18950 as_basename=false
18953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18954 as_dirname=dirname
18955 else
18956 as_dirname=false
18959 as_me=`$as_basename -- "$0" ||
18960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18961 X"$0" : 'X\(//\)$' \| \
18962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18963 $as_echo X/"$0" |
18964 sed '/^.*\/\([^/][^/]*\)\/*$/{
18965 s//\1/
18968 /^X\/\(\/\/\)$/{
18969 s//\1/
18972 /^X\/\(\/\).*/{
18973 s//\1/
18976 s/.*/./; q'`
18978 # Avoid depending upon Character Ranges.
18979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18982 as_cr_digits='0123456789'
18983 as_cr_alnum=$as_cr_Letters$as_cr_digits
18985 ECHO_C= ECHO_N= ECHO_T=
18986 case `echo -n x` in #(((((
18987 -n*)
18988 case `echo 'xy\c'` in
18989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18990 xy) ECHO_C='\c';;
18991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18992 ECHO_T=' ';;
18993 esac;;
18995 ECHO_N='-n';;
18996 esac
18998 rm -f conf$$ conf$$.exe conf$$.file
18999 if test -d conf$$.dir; then
19000 rm -f conf$$.dir/conf$$.file
19001 else
19002 rm -f conf$$.dir
19003 mkdir conf$$.dir 2>/dev/null
19005 if (echo >conf$$.file) 2>/dev/null; then
19006 if ln -s conf$$.file conf$$ 2>/dev/null; then
19007 as_ln_s='ln -s'
19008 # ... but there are two gotchas:
19009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19011 # In both cases, we have to default to `cp -pR'.
19012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19013 as_ln_s='cp -pR'
19014 elif ln conf$$.file conf$$ 2>/dev/null; then
19015 as_ln_s=ln
19016 else
19017 as_ln_s='cp -pR'
19019 else
19020 as_ln_s='cp -pR'
19022 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19023 rmdir conf$$.dir 2>/dev/null
19026 # as_fn_mkdir_p
19027 # -------------
19028 # Create "$as_dir" as a directory, including parents if necessary.
19029 as_fn_mkdir_p ()
19032 case $as_dir in #(
19033 -*) as_dir=./$as_dir;;
19034 esac
19035 test -d "$as_dir" || eval $as_mkdir_p || {
19036 as_dirs=
19037 while :; do
19038 case $as_dir in #(
19039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19040 *) as_qdir=$as_dir;;
19041 esac
19042 as_dirs="'$as_qdir' $as_dirs"
19043 as_dir=`$as_dirname -- "$as_dir" ||
19044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19045 X"$as_dir" : 'X\(//\)[^/]' \| \
19046 X"$as_dir" : 'X\(//\)$' \| \
19047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19048 $as_echo X"$as_dir" |
19049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19050 s//\1/
19053 /^X\(\/\/\)[^/].*/{
19054 s//\1/
19057 /^X\(\/\/\)$/{
19058 s//\1/
19061 /^X\(\/\).*/{
19062 s//\1/
19065 s/.*/./; q'`
19066 test -d "$as_dir" && break
19067 done
19068 test -z "$as_dirs" || eval "mkdir $as_dirs"
19069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19072 } # as_fn_mkdir_p
19073 if mkdir -p . 2>/dev/null; then
19074 as_mkdir_p='mkdir -p "$as_dir"'
19075 else
19076 test -d ./-p && rmdir ./-p
19077 as_mkdir_p=false
19081 # as_fn_executable_p FILE
19082 # -----------------------
19083 # Test if FILE is an executable regular file.
19084 as_fn_executable_p ()
19086 test -f "$1" && test -x "$1"
19087 } # as_fn_executable_p
19088 as_test_x='test -x'
19089 as_executable_p=as_fn_executable_p
19091 # Sed expression to map a string onto a valid CPP name.
19092 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19094 # Sed expression to map a string onto a valid variable name.
19095 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19098 exec 6>&1
19099 ## ----------------------------------- ##
19100 ## Main body of $CONFIG_STATUS script. ##
19101 ## ----------------------------------- ##
19102 _ASEOF
19103 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19106 # Save the log message, to keep $0 and so on meaningful, and to
19107 # report actual input values of CONFIG_FILES etc. instead of their
19108 # values after options handling.
19109 ac_log="
19110 This file was extended by $as_me, which was
19111 generated by GNU Autoconf 2.69. Invocation command line was
19113 CONFIG_FILES = $CONFIG_FILES
19114 CONFIG_HEADERS = $CONFIG_HEADERS
19115 CONFIG_LINKS = $CONFIG_LINKS
19116 CONFIG_COMMANDS = $CONFIG_COMMANDS
19117 $ $0 $@
19119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19122 _ACEOF
19124 case $ac_config_files in *"
19125 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19126 esac
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19131 # Files that config.status was made for.
19132 config_files="$ac_config_files"
19134 _ACEOF
19136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19137 ac_cs_usage="\
19138 \`$as_me' instantiates files and other configuration actions
19139 from templates according to the current configuration. Unless the files
19140 and actions are specified as TAGs, all are instantiated by default.
19142 Usage: $0 [OPTION]... [TAG]...
19144 -h, --help print this help, then exit
19145 -V, --version print version number and configuration settings, then exit
19146 --config print configuration, then exit
19147 -q, --quiet, --silent
19148 do not print progress messages
19149 -d, --debug don't remove temporary files
19150 --recheck update $as_me by reconfiguring in the same conditions
19151 --file=FILE[:TEMPLATE]
19152 instantiate the configuration file FILE
19154 Configuration files:
19155 $config_files
19157 Report bugs to the package provider."
19159 _ACEOF
19160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19161 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19162 ac_cs_version="\\
19163 config.status
19164 configured by $0, generated by GNU Autoconf 2.69,
19165 with options \\"\$ac_cs_config\\"
19167 Copyright (C) 2012 Free Software Foundation, Inc.
19168 This config.status script is free software; the Free Software Foundation
19169 gives unlimited permission to copy, distribute and modify it."
19171 ac_pwd='$ac_pwd'
19172 srcdir='$srcdir'
19173 INSTALL='$INSTALL'
19174 AWK='$AWK'
19175 test -n "\$AWK" || AWK=awk
19176 _ACEOF
19178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19179 # The default lists apply if the user does not specify any file.
19180 ac_need_defaults=:
19181 while test $# != 0
19183 case $1 in
19184 --*=?*)
19185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19187 ac_shift=:
19189 --*=)
19190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19191 ac_optarg=
19192 ac_shift=:
19195 ac_option=$1
19196 ac_optarg=$2
19197 ac_shift=shift
19199 esac
19201 case $ac_option in
19202 # Handling of the options.
19203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19204 ac_cs_recheck=: ;;
19205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19206 $as_echo "$ac_cs_version"; exit ;;
19207 --config | --confi | --conf | --con | --co | --c )
19208 $as_echo "$ac_cs_config"; exit ;;
19209 --debug | --debu | --deb | --de | --d | -d )
19210 debug=: ;;
19211 --file | --fil | --fi | --f )
19212 $ac_shift
19213 case $ac_optarg in
19214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19215 '') as_fn_error $? "missing file argument" ;;
19216 esac
19217 as_fn_append CONFIG_FILES " '$ac_optarg'"
19218 ac_need_defaults=false;;
19219 --he | --h | --help | --hel | -h )
19220 $as_echo "$ac_cs_usage"; exit ;;
19221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19223 ac_cs_silent=: ;;
19225 # This is an error.
19226 -*) as_fn_error $? "unrecognized option: \`$1'
19227 Try \`$0 --help' for more information." ;;
19229 *) as_fn_append ac_config_targets " $1"
19230 ac_need_defaults=false ;;
19232 esac
19233 shift
19234 done
19236 ac_configure_extra_args=
19238 if $ac_cs_silent; then
19239 exec 6>/dev/null
19240 ac_configure_extra_args="$ac_configure_extra_args --silent"
19243 _ACEOF
19244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245 if \$ac_cs_recheck; then
19246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19247 shift
19248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19249 CONFIG_SHELL='$SHELL'
19250 export CONFIG_SHELL
19251 exec "\$@"
19254 _ACEOF
19255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19256 exec 5>>config.log
19258 echo
19259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19260 ## Running $as_me. ##
19261 _ASBOX
19262 $as_echo "$ac_log"
19263 } >&5
19265 _ACEOF
19266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19268 # INIT-COMMANDS
19270 extrasub_build="$extrasub_build"
19271 extrasub_host="$extrasub_host"
19272 extrasub_target="$extrasub_target"
19274 _ACEOF
19276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19278 # Handling of arguments.
19279 for ac_config_target in $ac_config_targets
19281 case $ac_config_target in
19282 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19284 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19285 esac
19286 done
19289 # If the user did not use the arguments to specify the items to instantiate,
19290 # then the envvar interface is used. Set only those that are not.
19291 # We use the long form for the default assignment because of an extremely
19292 # bizarre bug on SunOS 4.1.3.
19293 if $ac_need_defaults; then
19294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19297 # Have a temporary directory for convenience. Make it in the build tree
19298 # simply because there is no reason against having it here, and in addition,
19299 # creating and moving files from /tmp can sometimes cause problems.
19300 # Hook for its removal unless debugging.
19301 # Note that there is a small window in which the directory will not be cleaned:
19302 # after its creation but before its name has been assigned to `$tmp'.
19303 $debug ||
19305 tmp= ac_tmp=
19306 trap 'exit_status=$?
19307 : "${ac_tmp:=$tmp}"
19308 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19310 trap 'as_fn_exit 1' 1 2 13 15
19312 # Create a (secure) tmp directory for tmp files.
19315 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19316 test -d "$tmp"
19317 } ||
19319 tmp=./conf$$-$RANDOM
19320 (umask 077 && mkdir "$tmp")
19321 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19322 ac_tmp=$tmp
19324 # Set up the scripts for CONFIG_FILES section.
19325 # No need to generate them if there are no CONFIG_FILES.
19326 # This happens for instance with `./config.status config.h'.
19327 if test -n "$CONFIG_FILES"; then
19329 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19330 ac_cs_awk_getline=:
19331 ac_cs_awk_pipe_init=
19332 ac_cs_awk_read_file='
19333 while ((getline aline < (F[key])) > 0)
19334 print(aline)
19335 close(F[key])'
19336 ac_cs_awk_pipe_fini=
19337 else
19338 ac_cs_awk_getline=false
19339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19340 ac_cs_awk_read_file='
19341 print "|#_!!_#|"
19342 print "cat " F[key] " &&"
19343 '$ac_cs_awk_pipe_init
19344 # The final `:' finishes the AND list.
19345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19347 ac_cr=`echo X | tr X '\015'`
19348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19349 # But we know of no other shell where ac_cr would be empty at this
19350 # point, so we can use a bashism as a fallback.
19351 if test "x$ac_cr" = x; then
19352 eval ac_cr=\$\'\\r\'
19354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19356 ac_cs_awk_cr='\\r'
19357 else
19358 ac_cs_awk_cr=$ac_cr
19361 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19362 _ACEOF
19364 # Create commands to substitute file output variables.
19366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19367 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19369 echo "_ACAWK" &&
19370 echo "_ACEOF"
19371 } >conf$$files.sh &&
19372 . ./conf$$files.sh ||
19373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19374 rm -f conf$$files.sh
19377 echo "cat >conf$$subs.awk <<_ACEOF" &&
19378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19379 echo "_ACEOF"
19380 } >conf$$subs.sh ||
19381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19383 ac_delim='%!_!# '
19384 for ac_last_try in false false false false false :; do
19385 . ./conf$$subs.sh ||
19386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19389 if test $ac_delim_n = $ac_delim_num; then
19390 break
19391 elif $ac_last_try; then
19392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19393 else
19394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19396 done
19397 rm -f conf$$subs.sh
19399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19401 _ACEOF
19402 sed -n '
19404 s/^/S["/; s/!.*/"]=/
19407 s/^[^!]*!//
19408 :repl
19409 t repl
19410 s/'"$ac_delim"'$//
19411 t delim
19414 s/\(.\{148\}\)..*/\1/
19415 t more1
19416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19419 b repl
19420 :more1
19421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19424 s/.\{148\}//
19425 t nl
19426 :delim
19428 s/\(.\{148\}\)..*/\1/
19429 t more2
19430 s/["\\]/\\&/g; s/^/"/; s/$/"/
19433 :more2
19434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19437 s/.\{148\}//
19438 t delim
19439 ' <conf$$subs.awk | sed '
19440 /^[^""]/{
19442 s/\n//
19444 ' >>$CONFIG_STATUS || ac_write_fail=1
19445 rm -f conf$$subs.awk
19446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19447 _ACAWK
19448 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19449 for (key in S) S_is_set[key] = 1
19450 FS = "\a"
19451 \$ac_cs_awk_pipe_init
19454 line = $ 0
19455 nfields = split(line, field, "@")
19456 substed = 0
19457 len = length(field[1])
19458 for (i = 2; i < nfields; i++) {
19459 key = field[i]
19460 keylen = length(key)
19461 if (S_is_set[key]) {
19462 value = S[key]
19463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19464 len += length(value) + length(field[++i])
19465 substed = 1
19466 } else
19467 len += 1 + keylen
19469 if (nfields == 3 && !substed) {
19470 key = field[2]
19471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19472 \$ac_cs_awk_read_file
19473 next
19476 print line
19478 \$ac_cs_awk_pipe_fini
19479 _ACAWK
19480 _ACEOF
19481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19484 else
19486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19488 _ACEOF
19490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19492 # trailing colons and then remove the whole line if VPATH becomes empty
19493 # (actually we leave an empty line to preserve line numbers).
19494 if test "x$srcdir" = x.; then
19495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19497 s///
19498 s/^/:/
19499 s/[ ]*$/:/
19500 s/:\$(srcdir):/:/g
19501 s/:\${srcdir}:/:/g
19502 s/:@srcdir@:/:/g
19503 s/^:*//
19504 s/:*$//
19506 s/\(=[ ]*\).*/\1/
19508 s/\n//
19509 s/^[^=]*=[ ]*$//
19513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19514 fi # test -n "$CONFIG_FILES"
19517 eval set X " :F $CONFIG_FILES "
19518 shift
19519 for ac_tag
19521 case $ac_tag in
19522 :[FHLC]) ac_mode=$ac_tag; continue;;
19523 esac
19524 case $ac_mode$ac_tag in
19525 :[FHL]*:*);;
19526 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19527 :[FH]-) ac_tag=-:-;;
19528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19529 esac
19530 ac_save_IFS=$IFS
19531 IFS=:
19532 set x $ac_tag
19533 IFS=$ac_save_IFS
19534 shift
19535 ac_file=$1
19536 shift
19538 case $ac_mode in
19539 :L) ac_source=$1;;
19540 :[FH])
19541 ac_file_inputs=
19542 for ac_f
19544 case $ac_f in
19545 -) ac_f="$ac_tmp/stdin";;
19546 *) # Look for the file first in the build tree, then in the source tree
19547 # (if the path is not absolute). The absolute path cannot be DOS-style,
19548 # because $ac_f cannot contain `:'.
19549 test -f "$ac_f" ||
19550 case $ac_f in
19551 [\\/$]*) false;;
19552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19553 esac ||
19554 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19555 esac
19556 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19557 as_fn_append ac_file_inputs " '$ac_f'"
19558 done
19560 # Let's still pretend it is `configure' which instantiates (i.e., don't
19561 # use $as_me), people would be surprised to read:
19562 # /* config.h. Generated by config.status. */
19563 configure_input='Generated from '`
19564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19565 `' by configure.'
19566 if test x"$ac_file" != x-; then
19567 configure_input="$ac_file. $configure_input"
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19569 $as_echo "$as_me: creating $ac_file" >&6;}
19571 # Neutralize special characters interpreted by sed in replacement strings.
19572 case $configure_input in #(
19573 *\&* | *\|* | *\\* )
19574 ac_sed_conf_input=`$as_echo "$configure_input" |
19575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19576 *) ac_sed_conf_input=$configure_input;;
19577 esac
19579 case $ac_tag in
19580 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19582 esac
19584 esac
19586 ac_dir=`$as_dirname -- "$ac_file" ||
19587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19588 X"$ac_file" : 'X\(//\)[^/]' \| \
19589 X"$ac_file" : 'X\(//\)$' \| \
19590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19591 $as_echo X"$ac_file" |
19592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19593 s//\1/
19596 /^X\(\/\/\)[^/].*/{
19597 s//\1/
19600 /^X\(\/\/\)$/{
19601 s//\1/
19604 /^X\(\/\).*/{
19605 s//\1/
19608 s/.*/./; q'`
19609 as_dir="$ac_dir"; as_fn_mkdir_p
19610 ac_builddir=.
19612 case "$ac_dir" in
19613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19616 # A ".." for each directory in $ac_dir_suffix.
19617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19618 case $ac_top_builddir_sub in
19619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19621 esac ;;
19622 esac
19623 ac_abs_top_builddir=$ac_pwd
19624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19625 # for backward compatibility:
19626 ac_top_builddir=$ac_top_build_prefix
19628 case $srcdir in
19629 .) # We are building in place.
19630 ac_srcdir=.
19631 ac_top_srcdir=$ac_top_builddir_sub
19632 ac_abs_top_srcdir=$ac_pwd ;;
19633 [\\/]* | ?:[\\/]* ) # Absolute name.
19634 ac_srcdir=$srcdir$ac_dir_suffix;
19635 ac_top_srcdir=$srcdir
19636 ac_abs_top_srcdir=$srcdir ;;
19637 *) # Relative name.
19638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19639 ac_top_srcdir=$ac_top_build_prefix$srcdir
19640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19641 esac
19642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19645 case $ac_mode in
19648 # CONFIG_FILE
19651 case $INSTALL in
19652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19654 esac
19655 _ACEOF
19657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19658 # If the template does not know about datarootdir, expand it.
19659 # FIXME: This hack should be removed a few years after 2.60.
19660 ac_datarootdir_hack=; ac_datarootdir_seen=
19661 ac_sed_dataroot='
19662 /datarootdir/ {
19666 /@datadir@/p
19667 /@docdir@/p
19668 /@infodir@/p
19669 /@localedir@/p
19670 /@mandir@/p'
19671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19672 *datarootdir*) ac_datarootdir_seen=yes;;
19673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19676 _ACEOF
19677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19678 ac_datarootdir_hack='
19679 s&@datadir@&$datadir&g
19680 s&@docdir@&$docdir&g
19681 s&@infodir@&$infodir&g
19682 s&@localedir@&$localedir&g
19683 s&@mandir@&$mandir&g
19684 s&\\\${datarootdir}&$datarootdir&g' ;;
19685 esac
19686 _ACEOF
19688 # Neutralize VPATH when `$srcdir' = `.'.
19689 # Shell code in configure.ac might set extrasub.
19690 # FIXME: do we really want to maintain this feature?
19691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19692 ac_sed_extra="$ac_vpsub
19693 $extrasub
19694 _ACEOF
19695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19698 s|@configure_input@|$ac_sed_conf_input|;t t
19699 s&@top_builddir@&$ac_top_builddir_sub&;t t
19700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19701 s&@srcdir@&$ac_srcdir&;t t
19702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19703 s&@top_srcdir@&$ac_top_srcdir&;t t
19704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19705 s&@builddir@&$ac_builddir&;t t
19706 s&@abs_builddir@&$ac_abs_builddir&;t t
19707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19708 s&@INSTALL@&$ac_INSTALL&;t t
19709 $ac_datarootdir_hack
19711 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19712 if $ac_cs_awk_getline; then
19713 $AWK -f "$ac_tmp/subs.awk"
19714 else
19715 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19716 fi \
19717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19724 which seems to be undefined. Please make sure it is defined" >&5
19725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19726 which seems to be undefined. Please make sure it is defined" >&2;}
19728 rm -f "$ac_tmp/stdin"
19729 case $ac_file in
19730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19732 esac \
19733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19738 esac
19741 case $ac_file$ac_mode in
19742 "Makefile":F) sed "$extrasub_build" Makefile |
19743 sed "$extrasub_host" |
19744 sed "$extrasub_target" > mf$$
19745 mv -f mf$$ Makefile ;;
19747 esac
19748 done # for ac_tag
19751 as_fn_exit 0
19752 _ACEOF
19753 ac_clean_files=$ac_clean_files_save
19755 test $ac_write_fail = 0 ||
19756 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19759 # configure is writing to config.log, and then calls config.status.
19760 # config.status does its own redirection, appending to config.log.
19761 # Unfortunately, on DOS this fails, as config.log is still kept open
19762 # by configure, so config.status won't be able to write to it; its
19763 # output is simply discarded. So we exec the FD to /dev/null,
19764 # effectively closing config.log, so it can be properly (re)opened and
19765 # appended to by config.status. When coming back to configure, we
19766 # need to make the FD available again.
19767 if test "$no_create" != yes; then
19768 ac_cs_success=:
19769 ac_config_status_args=
19770 test "$silent" = yes &&
19771 ac_config_status_args="$ac_config_status_args --quiet"
19772 exec 5>/dev/null
19773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19774 exec 5>>config.log
19775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19776 # would make configure fail if this is the last instruction.
19777 $ac_cs_success || as_fn_exit 1
19779 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19781 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}